Update NEWS post GDB 10 branch creation.
[binutils-gdb.git] / gdb / ChangeLog
1 2020-09-13 Joel Brobecker <brobecker@adacore.com>
2
3 * NEWS: Create a new section for the next release branch.
4 Rename the section of the current branch, now that it has
5 been cut.
6
7 2020-09-13 Joel Brobecker <brobecker@adacore.com>
8
9 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
10 * version.in: Bump version to 11.0.50.DATE-git.
11
12 2020-09-12 Joel Brobecker <brobecker@adacore.com>
13
14 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
15
16 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
17 Felix Willgerodt <Felix.Willgerodt@intel.com>
18
19 * gdbarch.sh: Added bfloat16 type.
20 * gdbarch.c: Regenerated.
21 * gdbarch.h: Regenerated.
22 * gdbtypes.c (floatformats_bfloat16): New struct.
23 (gdbtypes_post_init): Add builtin_bfloat16.
24 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
25 (floatformats_bfloat16): New struct.
26 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
27 (i386_ymm_type): Add field "v16_bfloat16"
28 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
29 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
30 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
31 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
32 * features/i386/64bit-avx512.xml: Add bfloat16 type.
33 * features/i386/64bit-avx512.c: Regenerated.
34 * features/i386/64bit-sse.xml: Add bfloat16 type.
35 * features/i386/64bit-sse.c: Regenerated.
36
37 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
38
39 * i386-tdep.c (i386_zmm_type): Fix field names.
40 (i386_ymm_type): Fix field names.
41
42 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
43
44 * breakpoint.c: Fix typo in the help message of the
45 "set breakpoint condition-evaluation" command.
46
47 2020-09-10 Kamil Rytarowski <n54@gmx.com>
48
49 * nbsd-nat.c: Include "nat/netbsd-nat.h".
50 * (nbsd_nat_target::pid_to_exec_file)
51 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
52 (nbsd_nat_target::post_startup_inferior)
53 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
54 (nbsd_add_threads): Switch local code to common gdb/nat functions.
55 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
56 * (nbsd_thread_lister): Remove.
57
58 2020-09-10 Kamil Rytarowski <n54@gmx.com>
59
60 * fork-inferior.c (startup_inferior): Avoid double free.
61
62 2020-09-10 Kamil Rytarowski <n54@gmx.com>
63
64 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
65 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
66
67 2020-09-10 Kamil Rytarowski <n54@gmx.com>
68
69 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
70 * netbsd-nat.c: Include <sys/ptrace.h>.
71 * (netbsd_nat::enable_proc_events): Add.
72
73 2020-09-10 Kamil Rytarowski <n54@gmx.com>
74
75 * netbsd-nat.h: Include "gdbsupport/function-view.h".
76 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
77 (netbsd_nat::for_each_thread): Add.
78 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
79 "gdbsupport/common-debug.h".
80 * (netbsd_nat::netbsd_thread_lister)
81 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
82 (netbsd_nat::for_each_thread): Add.
83
84 2020-09-10 Kamil Rytarowski <n54@gmx.com>
85
86 * netbsd-nat.h: Include <unistd.h>.
87 * (netbsd_nat::pid_to_exec_file): Add.
88 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
89 * (netbsd_nat::pid_to_exec_file) Add.
90
91 2020-09-10 Kamil Rytarowski <n54@gmx.com>
92
93 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
94
95 2020-09-10 Kamil Rytarowski <n54@gmx.com>
96
97 * netbsd-nat.h: New file.
98 * netbsd-nat.c: Likewise.
99
100 2020-09-09 Tom Tromey <tromey@adacore.com>
101
102 * ada-lang.c (remove_extra_symbols): Do not increment when
103 removing an element
104
105 2020-09-08 Tom Tromey <tromey@adacore.com>
106
107 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
108
109 2020-09-08 Tom Tromey <tromey@adacore.com>
110
111 PR win32/25302:
112 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
113 (gdb_bfd_init_data): New function.
114 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
115
116 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
117
118 * infrun.c (fetch_inferior_event): Use
119 `switch_to_target_no_thread` to switch the target.
120
121 2020-09-06 Tom Tromey <tom@tromey.com>
122
123 * symfile.h (dwarf2_free_objfile): Don't declare.
124
125 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
126
127 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
128 to match 16 byte real/complex type generated by Flang compiler.
129
130 2020-09-03 Tom de Vries <tdevries@suse.de>
131
132 PR breakpoint/26546
133 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
134 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
135
136 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
137
138 * maint.c (index_digits): New function.
139 (struct maint_print_section_data): Remove.
140 (print_bfd_section_info): Remove print_data parameter, add arg
141 and index_digits.
142 (print_objfile_section_info): Likewise.
143 (print_bfd_section_info_maybe_relocated): Likewise (plus
144 objfile).
145 (maintenance_info_sections): Adjust calls.
146
147 2020-09-02 Tom Tromey <tromey@adacore.com>
148
149 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
150 for null pointers.
151 (ada_varobj_adjust_for_child_access): Special-case null pointers.
152
153 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
154
155 * bcache.h (struct bcache) <insert>: Change type of `added` to
156 pointer to bool.
157 * bcache.c (bcache::insert): Likewise.
158 * gdbtypes.c (check_types_worklist): Adjust.
159 * psymtab.c (add_psymbol_to_bcache): Adjust.
160
161 2020-08-31 Kevin Buettner <kevinb@redhat.com>
162
163 * corelow.c (unordered_set): Include.
164 (class core_target): Add field 'm_core_unavailable_mappings'.
165 (core_target::build_file_mappings): Print only one warning
166 per inaccessible file. Add unavailable/broken mappings
167 to m_core_unavailable_mappings.
168 (core_target::xfer_partial): Call...
169 (core_target::xfer_memory_via_mappings): New method.
170
171 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
172
173 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
174 type to bool.
175
176 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
177
178 * dwarf2/read.c (struct field_info): Fix indentation.
179
180 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
181
182 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
183 ordering in comment.
184 * frame.c (frame_id_eq): Fix indentation.
185
186 2020-08-31 Scott Linder <scott@scottlinder.com>
187 Simon Marchi <simon.marchi@efficios.com>
188
189 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
190 inline frame ids in outer frame.
191
192 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
193
194 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
195 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
196 (outer_frame_id): Use FID_STACK_OUTER instead of
197 FID_STACK_INVALID.
198 (frame_id_p): Don't check for outer_frame_id.
199
200 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
201
202 * frame-unwind.c (frame_unwind_got_optimized): Don't set
203 regnum/frame in value. Call allocate_value_lazy.
204 * frame.c (frame_unwind_register_value): Use
205 val_print_not_saved.
206
207 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
208
209 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
210
211 2020-08-29 Pedro Alves <pedro@palves.net>
212
213 * progspace.c (print_program_space): Use all_inferiors. Switch to
214 the inferior before calling target_pid_to_str.
215
216 2020-08-28 Tom Tromey <tom@tromey.com>
217
218 * xcoffread.c (xcoff_end_psymtab): Update comment.
219 * dbxread.c (dbx_end_psymtab): Update comment.
220
221 2020-08-28 Tom de Vries <tdevries@suse.de>
222
223 PR breakpoint/26544
224 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
225 event_location.
226 (create_breakpoint): Same.
227 (base_breakpoint_decode_location): Same.
228 (bkpt_create_sals_from_location): Same.
229 (bkpt_decode_location): Same.
230 (bkpt_probe_create_sals_from_location): Same.
231 (bkpt_probe_decode_location): Same.
232 (tracepoint_create_sals_from_location): Same.
233 (tracepoint_decode_location): Same.
234 (tracepoint_probe_decode_location): Same.
235 (strace_marker_create_sals_from_location): Same.
236 (strace_marker_decode_location): Same.
237 (create_sals_from_location_default): Same.
238 (decode_location_default): Same.
239 * breakpoint.h (struct breakpoint_ops): Same.
240 (create_breakpoint): Same.
241 * linespec.h (decode_line_full): Same.
242 * linespec.c (decode_line_full): Same. Throw error if
243 result.size () == 0.
244
245 2020-08-27 Pedro Alves <pedro@palves.net>
246
247 PR gdb/26524
248 * breakpoint.c (until_break_fsm) <location_breakpoint,
249 caller_breakpoint>: Delete fields.
250 <breakpoints>: New field.
251 <until_break_fsm>: Adjust to save a breakpoint vector instead of
252 two individual breakpoints.
253 (until_break_fsm::should_stop): Loop over breakpoints in the
254 breakpoint vector.
255 (until_break_fsm::clean_up): Adjust to clear the breakpoints
256 vector.
257 (until_break_command): Handle location expanding into multiple
258 sals.
259
260 2020-08-27 Pedro Alves <pedro@palves.net>
261
262 PR gdb/26523
263 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
264 bp_until breakpoints user-specified locations. Update intro
265 comment.
266
267 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
268
269 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
270 gdb_bfd_sections): New.
271 * maint.c (print_bfd_section_info): Change param type to
272 maint_print_section_data.
273 (print_objfile_section_info): Likewise.
274 (print_bfd_section_info_maybe_relocated): Likewise.
275 (maintenance_info_sections): Use gdb_bfd_sections.
276
277 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
278
279 * MAINTAINERS: Add ARC target and maintainer.
280
281 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
282
283 * configure.tgt: ARC support for GNU/Linux.
284 * Makefile.in (ALL_TARGET_OBJS): Likewise.
285 * arc-linux-tdep.c: New file.
286 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
287 * arc-tdep.c (arc_write_pc): Use it.
288
289 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
290
291 * arc-tdep.c (arc_check_for_hardware_loop): New.
292 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
293
294 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
295
296 * arc-tdep.h: Include "gdbarch.h".
297
298 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
299
300 * arch/arc.h
301 (arc_gdbarch_features): New class to stir the selection of target XML.
302 (arc_create_target_description): Use FEATURES to choose XML target.
303 (arc_lookup_target_description): Use arc_create_target_description
304 to create _new_ target descriptions or return the already created
305 ones if the FEATURES is the same.
306 * arch/arc.c: Implementation of prototypes described above.
307 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
308 (arc_gdbarch_features_init): Initialize the FEATURES struct.
309 * arc-tdep.c (*_feature_name): Make feature names consistent.
310 (arc_register_feature): A new struct to hold information about
311 registers of a particular target/feature.
312 (arc_check_tdesc_feature): Check if XML provides registers in
313 compliance with ARC_REGISTER_FEATURE structs.
314 (arc_update_acc_reg_names): Add aliases for r58 and r59.
315 (determine_*_reg_feature_set): Which feature name to look for.
316 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
317 (mach_type_to_arc_isa): Convert from a set of binutils machine types
318 to expected ISA enums to be used in arc_gdbarch_features structs.
319 * features/Makefile (FEATURE_XMLFILES): Add new files.
320 * gdb/features/arc/v1-aux.c: New file.
321 * gdb/features/arc/v1-aux.xml: Likewise.
322 * gdb/features/arc/v1-core.c: Likewise.
323 * gdb/features/arc/v1-core.xml: Likewise.
324 * gdb/features/arc/v2-aux.c: Likewise.
325 * gdb/features/arc/v2-aux.xml: Likewise.
326 * gdb/features/arc/v2-core.c: Likewise.
327 * gdb/features/arc/v2-core.xml: Likewise.
328 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
329
330 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
331 Andrew Burgess <andrew.burgess@embecosm.com>
332
333 PR m2/26372
334 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
335 an assert. Remove single element array indexing pattern as the
336 MULTI_SUBSCRIPT support will handle this case too.
337
338 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
339
340 * value.h (valprint_check_validity): Move declaration from
341 here...
342 * valprint.h (valprint_check_validity): ... to here.
343
344 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
345
346 * debug.h: New file.
347 * debug.c (debug_prefixed_vprintf): New function.
348 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
349 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
350
351 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
352
353 * infrun.h (infrun_debug_printf_1): New function declaration.
354 (infrun_debug_printf): New macro.
355 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
356 throughout.
357 (infrun_debug_printf): New function.
358 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
359 (handle_jit_event): Likewise.
360
361 2020-08-21 Mark Wielaard <mark@klomp.org>
362
363 * ada-lex.l: Extend register warnings diagnostics comment for g++.
364
365 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
366
367 * frame.c (enum class frame_id_status): New.
368 (struct frame_info) <this_id::p>: Change type to frame_id_status.
369 (fprintf_frame): Update.
370 (compute_frame_id): Set frame id status to "computing" on entry.
371 Set it back to "not_computed" on failure and to "computed" on
372 success.
373 (get_frame_id): Assert the frame id is not being computed.
374 (create_sentinel_frame): Use frame_id_status::COMPUTED.
375 (create_new_frame): Likewise.
376 (frame_cleanup_after_sniffer): Update assert.
377
378 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
379
380 * regcache.c (pid_ptid_regcache_map): New type.
381 (target_ptid_regcache_map): Remove.
382 (target_pid_ptid_regcache_map): New type.
383 (regcaches): Change type to target_pid_ptid_regcache_map.
384 (get_thread_arch_aspace_regcache): Update.
385 (regcache_thread_ptid_changed): Update, handle pid-like ptid
386 case.
387 (regcaches_size): Update.
388 (regcache_count): Update.
389 (registers_changed_ptid_target_pid_test): New.
390 (_initialize_regcache): Register new test.
391
392 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
393
394 * regcache.c (regcache_count): New.
395 (struct regcache_test_data): New.
396 (regcache_test_data_up): New.
397 (populate_regcaches_for_test): New.
398 (regcaches_test): Remove.
399 (get_thread_arch_aspace_regcache_test): New.
400 (registers_changed_ptid_all_test): New.
401 (registers_changed_ptid_target_test): New.
402 (registers_changed_ptid_target_ptid_test): New.
403 (regcache_thread_ptid_changed): Remove regcache_count lambda.
404 (_initialize_regcache): Register new tests.
405
406 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
407
408 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
409 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
410 gdbarch and aspace parameter. Use current inferior's aspace.
411 Validate regcache's arch value.
412 (regcaches_test): Update.
413
414 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
415
416 * regcache.c (regcaches_test): Call registers_changed.
417
418 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
419
420 * infrun.c (process_event_stop_test): Fix typo "breapoint".
421
422 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
423
424 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
425 to find the end of prologue for flang compiled binaries.
426 * arm-tdep.c (arm_skip_prologue): Likewise.
427 * i386-tdep.c (i386_skip_prologue): Likewise.
428 * producer.c (producer_is_llvm): New function.
429 (producer_parsing_tests): Added new tests for clang/flang.
430 * producer.h (producer_is_llvm): New declaration.
431
432 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
433
434 * linux-nat.c (linux_nat_debug_printf): New function.
435 (linux_nat_debug_printf_1): New macro. Use throughout the file.
436
437 2020-08-18 Aaron Merey <amerey@redhat.com>
438
439 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
440 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
441 (CLIBS): Add DEBUGINFOD_LIBS.
442
443 2020-08-17 Sergei Trofimovich <siarheit@google.com>
444
445 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
446 'gdbarch_num_regs'.
447
448 2020-08-17 Tom Tromey <tromey@adacore.com>
449
450 * ada-varobj.c (ada_varobj_decode_var): Handle case where
451 ada_get_decoded_value returns NULL.
452
453 2020-08-17 Tom Tromey <tromey@adacore.com>
454
455 * python/py-inferior.c (infpy_search_memory): Use
456 gdb_py_object_from_ulongest.
457 * python/py-infevents.c (create_inferior_call_event_object)
458 (create_memory_changed_event_object): Use
459 gdb_py_object_from_ulongest.
460 * python/py-linetable.c (ltpy_entry_get_pc): Use
461 gdb_py_object_from_ulongest.
462
463 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
464
465 * loc.c (class symbol_needs_eval_context): Fix indentation.
466
467 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
468
469 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
470 bool.
471
472 2020-08-17 Tom de Vries <tdevries@suse.de>
473
474 PR gdb/26393
475 * gdbtypes.c (dump_dynamic_prop): New function.
476 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
477
478 2020-08-15 Tom de Vries <tdevries@suse.de>
479
480 PR backtrace/26390
481 * stack.c (print_frame_args): Temporarily set the selected
482 frame to FRAME while printing the frame's arguments.
483
484 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
485
486 PR breakpoints/26385
487 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
488 Always clear watchpoint with PTRACE_SET_DEBUGREG.
489
490 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
491
492 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
493 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
494 and >= to check return value instead of == -1 and != -1.
495
496 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
497
498 * utils.h (class gdb_argv) <as_array_view>: New method.
499 * utils.c (gdb_argv_as_array_view_test): New.
500 (_initialize_utils): Register selftest.
501 * maint.c (maintenance_selftest): Use the new method.
502
503 2020-08-13 Kamil Rytarowski <n54@gmx.com>
504
505 * target.h (supports_dumpcore, dumpcore): New
506 function declarations.
507 * target.c (supports_dumpcore, dumpcore): New
508 functions.
509 * target-delegates.c: Rebuild.
510 * gcore.c (gcore_command): Use target_supports_dumpcore ()
511 and target_dumpcore ().
512
513 2020-08-13 Aaron Merey <amerey@redhat.com>
514
515 * debuginfod-support.c: Replace global variables with user_data.
516
517 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
518
519 * maint.c (maintenance_selftest): Split args and pass array_view
520 to run_tests.
521
522 2020-08-12 Luis Machado <luis.machado@linaro.org>
523
524 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
525 type's length.
526 Use %s and pulongest to print the length.
527
528 2020-08-12 Pedro Alves <palves@redhat.com>
529
530 * NEWS: Move "Multi-target debugging support" item to the
531 "Changes since GDB 9" section.
532
533 2020-08-12 Pedro Alves <palves@redhat.com>
534
535 PR gdb/26336
536 * progspace.c (program_space::remove_objfile): Invalidate the
537 frame cache.
538
539 2020-08-11 Tom de Vries <tdevries@suse.de>
540
541 * MAINTAINERS: Mark ms1 as deleted.
542
543 2020-08-10 Luis Machado <luis.machado@linaro.org>
544
545 PR gdb/26310
546
547 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
548 act accordingly.
549 (aarch64_analyze_prologue_test): Add more unit tests to exercise
550 movz/str/stur/stp skipping behavior.
551
552 2020-08-10 Luis Machado <luis.machado@linaro.org>
553
554 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
555 struct user_sve_header instead of struct sve_context.
556
557 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
558
559 * read.h (dwarf2_fetch_die_loc_sect_off,
560 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
561 `void *` parameter with function_view.
562 * read.c (dwarf2_fetch_die_loc_sect_off,
563 dwarf2_fetch_die_loc_cu_off): Likewise.
564 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
565 (per_cu_dwarf_call): Adjust.
566 (get_frame_address_in_block_wrapper): Remove.
567 (indirect_synthetic_pointer): Adjust.
568 (get_ax_pc): Remove.
569 (dwarf2_compile_expr_to_ax): Adjust.
570
571 2020-08-08 Tom de Vries <tdevries@suse.de>
572
573 PR build/26344
574 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
575 constructor.
576 * regcache.c (get_thread_arch_aspace_regcache): Same.
577
578 2020-08-07 Tom Tromey <tromey@adacore.com>
579
580 * ravenscar-thread.c
581 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
582 New method.
583 (ravenscar_thread_target::wait): Check
584 runtime_initialized.
585 (ravenscar_thread_target::prepare_to_store)
586 (ravenscar_thread_target::stopped_by_sw_breakpoint)
587 (ravenscar_thread_target::stopped_by_hw_breakpoint)
588 (ravenscar_thread_target::stopped_by_watchpoint)
589 (ravenscar_thread_target::stopped_data_address)
590 (ravenscar_thread_target::core_of_thread): Use
591 scoped_restore_current_thread and
592 set_base_thread_from_ravenscar_task.
593
594 2020-08-07 Tom Tromey <tromey@adacore.com>
595
596 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
597
598 2020-08-07 Tom Tromey <tromey@adacore.com>
599
600 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
601 update_inferior_ptid before update_thread_list.
602 (temporarily_change_regcache_ptid): New class.
603 (ravenscar_thread_target::fetch_registers)
604 (ravenscar_thread_target::store_registers)
605 (ravenscar_thread_target::prepare_to_store): Use base thread when
606 forwarding operation.
607
608 2020-08-07 Tom Tromey <tromey@adacore.com>
609
610 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
611 "is_pid" case.
612
613 2020-08-07 Tom Tromey <tromey@adacore.com>
614
615 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
616 New methods.
617 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
618 first.
619 (ravenscar_thread_target::add_thread): Rename from
620 ravenscar_add_thread.
621 (ravenscar_thread_target::update_thread_list): Use a lambda.
622 (ravenscar_thread_target::xfer_partial): New method.
623
624 2020-08-07 Tom Tromey <tromey@adacore.com>
625
626 * ada-lang.h (ada_task_list_iterator_ftype): Now a
627 gdb::function_view.
628 (iterate_over_live_ada_tasks): Change type of argument.
629 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
630 of argument.
631
632 2020-08-07 Tom Tromey <tromey@adacore.com>
633
634 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
635 Remove.
636 (ravenscar_thread_target::extra_thread_info): Remove.
637 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
638 defer to target beneath for non-Ravenscar threads.
639
640 2020-08-07 Tom Tromey <tromey@adacore.com>
641
642 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
643 get_base_thread_from_ravenscar_task>: Now methods.
644 <m_cpu_map>: New member.
645 (ravenscar_thread_target::get_thread_base_cpu): Rename from
646 ravenscar_get_thread_base_cpu. Check m_cpu_map.
647 (ravenscar_thread_target::task_is_currently_active): Update.
648 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
649 Now a method.
650 (ravenscar_thread_target::add_active_thread): Put initial thread
651 into the m_cpu_map.
652
653 2020-08-07 Tom Tromey <tromey@adacore.com>
654
655 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
656 event_ptid.
657
658 2020-08-07 Tom Tromey <tromey@adacore.com>
659
660 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
661 runtime_initialized.
662
663 2020-08-07 Tom Tromey <tromey@adacore.com>
664
665 * ravenscar-thread.c (ravenscar_thread_target): Don't call
666 add_active_thread.
667 (ravenscar_thread_target::add_active_thread): Now public.
668 (ravenscar_inferior_created): Call add_active_thread after pushing
669 the target.
670
671 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
672
673 * regcache.c (ptid_regcache_map): New type.
674 (target_ptid_regcache_map): New type.
675 (regcaches): Change type to target_ptid_regcache_map.
676 (get_thread_arch_aspace_regcache): Update to regcaches' new
677 type.
678 (regcache_thread_ptid_changed): Likewise.
679 (registers_changed_ptid): Likewise.
680 (regcaches_size): Likewise.
681 (regcaches_test): Update.
682 (regcache_thread_ptid_changed): Update.
683 * regcache.h (regcache_up): New type.
684 * gdbsupport/ptid.h (hash_ptid): New struct.
685
686 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
687
688 * observable.h (thread_ptid_changed): Add parameter
689 `process_stratum_target *`.
690 * infrun.c (infrun_thread_ptid_changed): Add parameter
691 `process_stratum_target *` and use it.
692 (selftests): New namespace.
693 (infrun_thread_ptid_changed): New function.
694 (_initialize_infrun): Register selftest.
695 * regcache.c (regcache_thread_ptid_changed): Add parameter
696 `process_stratum_target *` and use it.
697 (regcache_thread_ptid_changed): New function.
698 (_initialize_regcache): Register selftest.
699 * thread.c (thread_change_ptid): Pass target to
700 thread_ptid_changed observable.
701
702 2020-08-06 Caroline Tice <cmtice@google.com>
703
704 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
705 (struct dwp_sections): Update field comments. Add loclists and
706 rnglists fields.
707 (struct virtual_v2_dwo_sections): Rename struct to
708 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
709 size & offset fields for loclists and rnglists.
710 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
711 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
712 skipping dummy type units.
713 (create_dwp_hash_table): Update the large comment above the function to
714 discuss Version 5 DWP files as well, with references. Update all the
715 version checks in the function to check for version 5 as well. Add new
716 section at the end to create dwp hash table for version 5.
717 (create_dwp_v2_section): Rename function to
718 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
719 Add V5 to error message text.
720 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
721 into calls to create_dwp_v2_or_v5_section.
722 (create_dwo_unit_in_dwp_v5): New function.
723 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
724 check for version2; add else clause to handle version 5.
725 (open_and_init_dwo_file): Add code to check dwarf version & only call
726 create_debug_types_hash_table (with sections.types) if version is not 5;
727 else call create_debug_type_hash_table, with sections.info.
728 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
729 version 5.
730 (dwarf2_locate_v5_dwp_sections): New function.
731 (open_and_init_dwp_file): Add else-if clause for version 5 to call
732 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
733
734 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
735
736 * regcache.h (class regcache): Remove friend
737 registers_changed_ptid.
738 <regcache_thread_ptid_changed>: Remove.
739 <regcaches>: Remove.
740 * regcache.c (regcache::regcaches): Rename to...
741 (regcaches): ... this. Make static.
742 (get_thread_arch_aspace_regcache): Update.
743 (regcache::regcache_thread_ptid_changed): Rename to...
744 (regcache_thread_ptid_changed): ... this. Update.
745 (class regcache_access): Remove.
746 (regcaches_test): Update.
747 (_initialize_regcache): Update.
748 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
749 <forward_list>.
750
751 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
752
753 * regcache.h (class regcache) <current_regcache>: Rename to...
754 <regcaches>: ... this. Move doc here.
755 * regcache.c (regcache::current_regcache) Rename to...
756 (regcache::regcaches): ... this. Move doc to header.
757 (get_thread_arch_aspace_regcache): Update.
758 (regcache::regcache_thread_ptid_changed): Update.
759 (registers_changed_ptid): Update.
760 (class regcache_access) <current_regcache_size>: Rename to...
761 <regcaches_size>: ... this.
762 (current_regcache_test): Rename to...
763 (regcaches_test): ... this.
764 (_initialize_regcache): Update.
765
766 2020-08-06 Victor Collod <vcollod@nvidia.com>
767
768 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
769
770 2020-08-05 Kevin Buettner <kevinb@redhat.com>
771
772 * corelow.c (core_target::build_file_mappings): Don't output
773 null pathname in warning.
774
775 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
776
777 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
778 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
779 gdb.dwarf2/dw2-single-line-discriminators.exp,
780 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
781
782 2020-08-05 Tom Tromey <tromey@adacore.com>
783
784 PR rust/26197:
785 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
786 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
787 Fix off-by-one and type size errors in ordinary case.
788
789 2020-08-05 Tom de Vries <tdevries@suse.de>
790
791 * gdbtypes.c (type_not_allocated, type_not_associated): Use
792 "prop->const_val () == 0" instead of "prop->const_val () != 0".
793
794 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
795
796 * frame.h (frame_id_p): Return bool.
797 (frame_id_artificial_p): Return bool.
798 (frame_id_eq): Return bool.
799 (has_stack_frames): Return bool.
800 (get_selected_frame): Fix typo in comment.
801 (get_frame_pc_if_available): Return bool.
802 (get_frame_address_in_block_if_available): Return bool.
803 (get_frame_func_if_available): Return bool.
804 (read_frame_register_unsigned): Return bool.
805 (get_frame_register_bytes): Return bool.
806 (safe_frame_unwind_memory): Return bool.
807 (deprecated_frame_register_read): Return bool.
808 (frame_unwinder_is): Return bool.
809 * frame.c (struct frame_info) <prev_arch::p>: Change type to
810 bool.
811 <this_id::p>: Likewise.
812 <prev_p>: Likewise.
813 (frame_stash_add): Return bool.
814 (get_frame_id): Use bool.
815 (frame_id_build_special) Use bool.
816 (frame_id_build_unavailable_stack): Use bool.
817 (frame_id_build): Use bool.
818 (frame_id_p): Return bool, use true/false instead of 1/0.
819 (frame_id_artificial_p): Likewise.
820 (frame_id_eq): Likewise.
821 (frame_id_inner): Likewise.
822 (get_frame_func_if_available): Likewise.
823 (read_frame_register_unsigned): Likewise.
824 (deprecated_frame_register_read): Likewise.
825 (get_frame_register_bytes): Likewise.
826 (has_stack_frames): Likewise.
827 (inside_main_func): Likewise.
828 (inside_entry_func): Likewise.
829 (get_frame_pc_if_available): Likewise.
830 (get_frame_address_in_block_if_available): Likewise.
831 (frame_unwinder_is): Likewise.
832 (safe_frame_unwind_memory): Likewise.
833 (frame_unwind_arch): Likewise.
834
835 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
836
837 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
838 type to cached_copy_status.
839 (fprintf_frame): Adjust.
840 (get_frame_func_if_available): Adjust.
841 (frame_cleanup_after_sniffer): Adjust.
842
843 2020-08-04 Mark Wielaard <mark@klomp.org>
844
845 * MAINTAINERS (Write After Approval): Update email address.
846
847 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
848
849 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
850 dynamic_prop::const_val.
851
852 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
853
854 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
855 dynamic_prop::kind.
856
857 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
858
859 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
860
861 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
862
863 * configure.tgt: Set gdb_sim for bpf-*-* targets.
864
865 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
866 Jose E. Marchesi <jose.marchesi@oracle.com>
867
868 * configure.tgt: Add entry for bpf-*-*.
869 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
870 (ALLDEPFILES): Add bpf-tdep.c.
871 * bpf-tdep.c: New file.
872 * MAINTAINERS: Add bpf target and maintainer.
873 * NEWS: Mention the support for the new target.
874
875 2020-08-04 Tom de Vries <tdevries@suse.de>
876
877 PR symtab/23270
878 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
879 Error.
880
881 2020-08-03 John Baldwin <jhb@FreeBSD.org>
882
883 * syscalls/freebsd.xml: Regenerate.
884
885 2020-08-03 John Baldwin <jhb@FreeBSD.org>
886
887 * syscalls/update-freebsd.sh: Fix usage and year range.
888
889 2020-08-03 Tom de Vries <tdevries@suse.de>
890
891 PR symtab/26333
892 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
893 DW_LNE_lo_user/DW_LNE_hi_user range.
894
895 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
896
897 PR ada/26318
898 * ada-lang.c (ada_modulus): Return 0 if property is not of const
899 kind.
900
901 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
902
903 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
904
905 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
906
907 * breakpoint.c (set_breakpoint_condition): Update the condition
908 expressions after checking that the input condition string parses
909 successfully and does not contain junk at the end.
910
911 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
912
913 * breakpoint.c (set_breakpoint_condition): Update the
914 condition string after parsing the new condition successfully.
915
916 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
917
918 * proc-api.c (_STRUCTURED_PROC): Don't define.
919 * proc-events.c: Likewise.
920 * proc-flags.c: Likewise.
921 * proc-why.c: Likewise.
922 * procfs.c: Likewise.
923
924 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
925 * configure, config.in: Regenerate.
926
927 2020-07-30 Tom de Vries <tdevries@suse.de>
928
929 PR build/26320
930 * ui-style.h (struct ui_file_style::color): Wrap m_value and
931 m_red/m_green/m_blue in a union.
932
933 2020-07-29 Tom de Vries <tdevries@suse.de>
934
935 PR tdep/26280
936 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
937
938 2020-07-28 Tom Tromey <tromey@adacore.com>
939
940 PR symtab/26270:
941 * symtab.h (find_pc_partial_function_sym): Declare.
942 * cli/cli-cmds.c (disassemble_command): Use
943 find_pc_partial_function_sym. Check asm_demangle.
944 * blockframe.c (cache_pc_function_sym): New global.
945 (cache_pc_function_name): Remove.
946 (clear_pc_function_cache): Update.
947 (find_pc_partial_function_sym): New function, from
948 find_pc_partial_function.
949 (find_pc_partial_function): Rewrite using
950 find_pc_partial_function_sym.
951
952 2020-07-28 Tom Tromey <tromey@adacore.com>
953
954 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
955 help. Add usage.
956
957 2020-07-28 Tom Tromey <tromey@adacore.com>
958
959 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
960 <DW_OP_GNU_variable_value>: Cast to address type.
961
962 2020-07-28 Kamil Rytarowski <n54@gmx.com>
963
964 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
965 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
966 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
967 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
968 (nbsd_get_siginfo_type): New.
969 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
970 (_initialize_nbsd_tdep): New.
971
972 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
973
974 PR binutils/26301
975 * configure: Regenerated.
976
977 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
978
979 PR binutils/26301
980 * configure: Regenerated.
981
982 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
983
984 * python/py-frame.c: Remove 'user-regs.h' include.
985 (frapy_read_register): Rewrite to make use of
986 gdbpy_parse_register_id.
987 * python/py-registers.c (gdbpy_parse_register_id): New function,
988 moved here from python/py-unwind.c. Updated the return type, and
989 also accepts register descriptor objects.
990 * python/py-unwind.c: Remove 'user-regs.h' include.
991 (pyuw_parse_register_id): Moved to python/py-registers.c.
992 (unwind_infopy_add_saved_register): Update to use
993 gdbpy_parse_register_id.
994 (pending_framepy_read_register): Likewise.
995 * python/python-internal.h (gdbpy_parse_register_id): Declare.
996
997 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
998
999 * python/py-registers.c: Add 'user-regs.h' include.
1000 (register_descriptor_iter_find): New function.
1001 (register_descriptor_iterator_object_methods): New static global
1002 methods array.
1003 (register_descriptor_iterator_object_type): Add pointer to methods
1004 array.
1005
1006 2020-07-27 John Baldwin <jhb@FreeBSD.org>
1007
1008 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
1009 for all architectures on FreeBSD 11.3 and later.
1010
1011 2020-07-27 Tom Tromey <tromey@adacore.com>
1012
1013 * gcore.h (load_corefile): Don't declare.
1014
1015 2020-07-27 Tom de Vries <tdevries@suse.de>
1016
1017 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
1018 * config.in: Regenerate.
1019 * configure: Regenerate.
1020
1021 2020-07-26 Eli Zaretskii <eliz@gnu.org>
1022
1023 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
1024 ws2tcpip.h. When checking whether socklen_t type is defined, use
1025 ws2tcpip.h if it is available and sys/socket.h isn't.
1026 * configure: Regenerate.
1027 * config.in: Regenerate.
1028
1029 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
1030
1031 PR fortran/23051
1032 PR fortran/26139
1033 * valops.c (value_ind): Pass address to
1034 readjust_indirect_value_type.
1035 * value.c (readjust_indirect_value_type): Make parameter
1036 non-const, and add extra address parameter. Resolve original type
1037 before using it.
1038 * value.h (readjust_indirect_value_type): Update function
1039 signature and comment.
1040
1041 2020-07-25 Tom de Vries <tdevries@suse.de>
1042
1043 PR symtab/26243
1044 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
1045 entries.
1046
1047 2020-07-24 Aaron Merey <amerey@redhat.com>
1048
1049 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
1050 * configure: Rebuild.
1051
1052 2020-07-23 Kevin Buettner <kevinb@redhat.com>
1053
1054 PR corefiles/26294
1055 * corelow.c (_initialize_corelow): Add period to help text
1056 for "maintenance print core-file-backed-mappings".
1057
1058 2020-07-23 Pedro Alves <pedro@palves.net>
1059
1060 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
1061 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
1062 meanwhile.
1063 * frame.c (frame_cache_generation, get_frame_cache_generation):
1064 New.
1065 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
1066 (get_prev_frame_if_no_cycle): On exception, don't touch
1067 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
1068 * frame.h (get_frame_cache_generation): Declare.
1069
1070 2020-07-23 Tom de Vries <tdevries@suse.de>
1071
1072 PR tui/26282
1073 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
1074 New default constructor.
1075
1076 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
1077
1078 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
1079 exclude non-statement entries.
1080
1081 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1082
1083 * NEWS (New commands): Mention new command
1084 "maintenance print core-file-backed-mappings".
1085
1086 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1087
1088 * corelow.c (gdbcmd.h): Include.
1089 (core_target::info_proc_mappings): New method.
1090 (get_current_core_target): New function.
1091 (maintenance_print_core_file_backed_mappings): New function.
1092 (_initialize_corelow): Add core-file-backed-mappings to
1093 "maint print" commands.
1094
1095 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1096
1097 * linux-tdep.c (dump_note_entry_p): New function.
1098 (linux_dump_mapping_p_ftype): New typedef.
1099 (linux_find_memory_regions_full): Add new parameter,
1100 should_dump_mapping_p.
1101 (linux_find_memory_regions): Adjust call to
1102 linux_find_memory_regions_full.
1103 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
1104 call to linux_find_memory_regions_full.
1105
1106 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1107
1108 * corelow.c (solist.h, unordered_map): Include.
1109 (class core_target): Add field m_core_file_mappings and
1110 method build_file_mappings.
1111 (core_target::core_target): Call build_file_mappings.
1112 (core_target::~core_target): Free memory associated with
1113 m_core_file_mappings.
1114 (core_target::build_file_mappings): New method.
1115 (core_target::xfer_partial): Use m_core_file_mappings
1116 for memory transfers.
1117 * linux-tdep.c (linux_read_core_file_mappings): New
1118 function.
1119 (linux_core_info_proc_mappings): Rewrite to use
1120 linux_read_core_file_mappings.
1121 (linux_init_abi): Register linux_read_core_file_mappings.
1122
1123 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1124
1125 * arch-utils.c (default_read_core_file_mappings): New function.
1126 * arch-utils.c (default_read_core_file_mappings): Declare.
1127 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
1128 * gdbarch.h, gdbarch.c: Regenerate.
1129
1130 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1131
1132 PR corefiles/25631
1133 * corelow.c (core_target:xfer_partial): Revise
1134 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
1135 case after first checking the stratum beneath the core
1136 target.
1137 (has_all_memory): Return true.
1138 * target.c (raw_memory_xfer_partial): Revise comment
1139 regarding use of has_all_memory.
1140
1141 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1142
1143 * exec.h (section_table_xfer_memory): Revise declaration,
1144 replacing section name parameter with an optional callback
1145 predicate.
1146 * exec.c (section_table_xfer_memory): Likewise.
1147 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
1148 of section_table_xfer_memory.
1149
1150 2020-07-22 Tom Tromey <tromey@adacore.com>
1151
1152 * mi/mi-cmd-stack.c (list_args_or_locals): Use
1153 lookup_symbol_search_name.
1154
1155 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1156
1157 * python/py-registers.c (gdbpy_register_object_data_init): Remove
1158 redundant local variable.
1159 (gdbpy_get_register_descriptor): Extract descriptor vector as a
1160 reference, not pointer, update code accordingly.
1161
1162 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1163 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1164
1165 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
1166 * jit.c (jit_breakpoint_re_set_internal): Use the
1167 `skip_jit_symbol_lookup` field.
1168
1169 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1170 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1171
1172 * jit.c (jit_read_descriptor): Define the descriptor address once,
1173 use twice.
1174 (jit_breakpoint_deleted): Move the declaration of the loop variable
1175 `iter` into the loop header.
1176 (jit_breakpoint_re_set_internal): Move the declaration of the local
1177 variable `objf_data` to the first point of definition.
1178 (jit_event_handler): Move the declaration of local variables
1179 `code_entry`, `entry_addr`, and `objf` to their first point of use.
1180 Rename `objf` to `jited`.
1181
1182 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1183
1184 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
1185 Remove.
1186 * jit.c (get_jiter_objfile_data): Update.
1187
1188 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1189 Simon Marchi <simon.marchi@polymtl.ca>
1190
1191 * jit.c (struct jit_program_space_data): Remove.
1192 (jit_program_space_key): Remove.
1193 (jiter_objfile_data::~jiter_objfile_data): Remove program space
1194 stuff.
1195 (get_jit_program_space_data): Remove.
1196 (jit_breakpoint_deleted): Iterate on all of the program space's
1197 objfiles.
1198 (jit_inferior_init): Likewise.
1199 (jit_breakpoint_re_set_internal): Likewise. Also change return
1200 type to void.
1201 (jit_breakpoint_re_set): Pass current_program_space to
1202 jit_breakpoint_re_set_internal.
1203
1204 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1205
1206 * jit.h (struct jiter_objfile_data) <cached_code_address,
1207 jit_breakpoint>: Move to here from ...
1208 * jit.c (jit_program_space_data): ... here.
1209 (jiter_objfile_data::~jiter_objfile_data): Update.
1210 (jit_breakpoint_deleted): Update.
1211 (jit_breakpoint_re_set_internal): Update.
1212
1213 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1214
1215 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
1216 checks.
1217 (jit_read_descriptor): Remove NULL check.
1218 (jit_event_handler): Add an assertion.
1219
1220 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1221
1222 * jit.h (struct jit_objfile_data): Split into...
1223 (struct jiter_objfile_data): ... this ...
1224 (struct jited_objfile_data): ... and this.
1225 * objfiles.h (struct objfile) <jit_data>: Remove.
1226 <jiter_data, jited_data>: New fields.
1227 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
1228 (jiter_objfile_data::~jiter_objfile_data): ... this.
1229 (get_jit_objfile_data): Rename to ...
1230 (get_jiter_objfile_data): ... this.
1231 (add_objfile_entry): Update.
1232 (jit_read_descriptor): Use get_jiter_objfile_data.
1233 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
1234 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
1235 (jit_inferior_exit_hook): Use objfile's jited_data field.
1236
1237 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1238
1239 * jit.h: Forward-declare `struct minimal_symbol`.
1240 (struct jit_objfile_data): Migrate to here from jit.c; also add a
1241 constructor, destructor, and an objfile* field.
1242 * jit.c (jit_objfile_data): Remove.
1243 (struct jit_objfile_data): Migrate from here to jit.h.
1244 (jit_objfile_data::~jit_objfile_data): New destructor
1245 implementation with code moved from free_objfile_data.
1246 (free_objfile_data): Delete.
1247 (get_jit_objfile_data): Update to use the jit_data field of objfile.
1248 (jit_find_objf_with_entry_addr): Ditto.
1249 (jit_inferior_exit_hook): Ditto.
1250 (_initialize_jit): Remove the call to
1251 register_objfile_data_with_cleanup.
1252 * objfiles.h (struct objfile) <jit_data>: New field.
1253
1254 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1255
1256 * jit.h: Forward-declare `struct objfile`.
1257 (jit_event_handler): Add a second parameter, the JITer objfile.
1258 * jit.c (jit_read_descriptor): Change the signature to take the
1259 JITer objfile as an argument instead of the jit_program_space_data.
1260 (jit_inferior_init): Update the call to jit_read_descriptor.
1261 (jit_event_handler): Use the new JITer objfile argument when calling
1262 jit_read_descriptor.
1263 * breakpoint.c (handle_jit_event): Update the call to
1264 jit_event_handler to pass the JITer objfile.
1265
1266 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1267
1268 * gdbarch.c: Regenerate.
1269 * gdbarch.h: Regenerate.
1270 * gdbarch.sh (handle_segmentation_fault): Remove method.
1271 * infrun.c (handle_segmentation_fault): Remove.
1272 (print_signal_received_reason): Remove call to
1273 handle_segmentation_fault.
1274
1275 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1276
1277 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1278 Rename to sparc64_linux_report_signal_info and add siggnal
1279 argument.
1280 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
1281 instead of sparc64_linux_handle_segmentation_fault.
1282
1283 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1284
1285 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
1286 i386_linux_report_signal_info instead of
1287 i386_linux_handle_segmentation_fault.
1288 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
1289 to i386_linux_report_signal_info and add siggnal argument.
1290 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
1291 of i386_linux_handle_segmentation_fault.
1292 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
1293 to i386_linux_report_signal_info and add siggnal argument.
1294
1295 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1296
1297 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1298 hook if present.
1299
1300 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1301
1302 * gdbarch.c: Regenerate.
1303 * gdbarch.h: Regenerate.
1304 * gdbarch.sh (report_signal_info): New method.
1305 * infrun.c (print_signal_received_reason): Invoke gdbarch
1306 report_signal_info hook if present.
1307
1308 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1309
1310 * python/py-registers.c : Add 'unordered_map' include.
1311 (gdbpy_new_reggroup): Renamed to...
1312 (gdbpy_get_reggroup): ...this. Update to only create register
1313 group descriptors when needed.
1314 (gdbpy_reggroup_iter_next): Update.
1315
1316 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1317
1318 * python/py-registers.c (gdbpy_register_object_data): New static
1319 global.
1320 (gdbpy_register_object_data_init): New function.
1321 (gdbpy_new_register_descriptor): Renamed to...
1322 (gdbpy_get_register_descriptor): ...this, and update to reuse
1323 existing register descriptors where possible.
1324 (gdbpy_register_descriptor_iter_next): Update.
1325 (gdbpy_initialize_registers): Register new gdbarch data.
1326
1327 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
1328
1329 * linux-nat.c (stopped_pids): Make static.
1330
1331 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1332
1333 PR ada/26235
1334 * gdbtypes.c (ada_discrete_type_low_bound,
1335 ada_discrete_type_high_bound): Handle undefined bounds.
1336
1337 2020-07-21 Kamil Rytarowski <n54@gmx.com>
1338
1339 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1340 declaration.
1341 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1342 function.
1343
1344 2020-07-20 John Baldwin <jhb@FreeBSD.org>
1345
1346 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1347 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1348 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1349 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1350 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1351 method.
1352
1353 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1354
1355 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1356 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1357 which are deprecated in Guile 3.0.
1358 * configure.ac (try_guile_versions): Add "guile-3.0".
1359 * configure (try_guile_versions): Regenerate.
1360 * NEWS: Update entry.
1361
1362 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1363 Doug Evans <dje@google.com>
1364
1365 PR gdb/21104
1366 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1367 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1368 USING_GUILE_BEFORE_2_2.
1369 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1370 Change type to 'scm_t_port_type *'.
1371 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1372 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1373 parameter and honor it. Update callers.
1374 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1375 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1376 functions.
1377 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1378 USING_GUILE_BEFORE_2_2.
1379 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1380 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1381 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1382 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1383 and 'SCM_PORT_TYPE'.
1384 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1385 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1386 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1387 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1388 [!USING_GUILE_BEFORE_2_2]: New functions.
1389 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1390 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1391 'gdbscm_memory_port_read'.
1392 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1393 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1394 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1395 function.
1396 (ioscm_init_memory_port): Remove.
1397 (ioscm_init_memory_port_stream): New function
1398 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1399 function.
1400 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1401 Return scm_from_uint (0).
1402 (gdbscm_set_memory_port_read_buffer_size_x)
1403 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1404 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1405 Return scm_from_uint (0).
1406 (gdbscm_set_memory_port_write_buffer_size_x)
1407 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1408 * configure.ac (try_guile_versions): Add "guile-2.2".
1409 * configure: Regenerate.
1410 * NEWS: Add entry.
1411
1412 2020-07-18 Tom Tromey <tom@tromey.com>
1413
1414 * linux-nat.c (linux_multi_process): Remove.
1415 (linux_nat_target::supports_multi_process): Return true.
1416
1417 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1418
1419 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1420 (riscv_lookup_target_description): Return pointer out of
1421 unique_ptr.
1422 * target-descriptions.c (allocate_target_description): Add
1423 comment.
1424 (target_desc_deleter::operator()): Likewise.
1425 * target-descriptions.h (struct target_desc_deleter): Moved to
1426 gdbsupport/tdesc.h.
1427 (target_desc_up): Likewise.
1428
1429 2020-07-17 Tom Tromey <tromey@adacore.com>
1430
1431 * linux-nat.c (linux_nat_target::supports_non_stop)
1432 (linux_nat_target::always_non_stop_p): Use "true".
1433 (linux_nat_target::supports_disable_randomization): Use "true" and
1434 "false".
1435
1436 2020-07-16 Caroline Tice <cmtice@google.com>
1437
1438 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1439 (RNGLIST_HEADER_SIZE64): New constant definition.
1440 (struct dwop_section_names): Add rnglists_dwo.
1441 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1442 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1443 (struct dwo_sections): Add rnglists field.
1444 (read_attribut_reprocess): Add tag parameter.
1445 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1446 (cu_debug_rnglists_section): New function (decl & definition).
1447 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1448 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1449 die whose range is being checked; get rnglist section from
1450 cu_debug_rnglists_section, to get from either objfile or dwo file as
1451 appropriate. Add cases for DW_RLE_base_addressx,
1452 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1453 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1454 test inside if-condition and updating complaint message.
1455 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1456 dwarf2_rnglists_process.
1457 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1458 dwarf2_ranges_process.
1459 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1460 need_ranges_base and update comment appropriately. Also pass die tag
1461 to dwarf2_ranges_read.
1462 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1463 need_ranges_base and update comment appropriately. Also pass die tag
1464 to dwarf2_ranges_process.
1465 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1466 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1467 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1468 need_ranges_base and update comment appropriately. Also pass die tag
1469 to read_attribute_reprocess and dwarf2_ranges_read.
1470 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1471 and update function comment appropriately.
1472 (read_loclist_index): Call read_loclists_rnglists_header instead of
1473 read_loclist_header.
1474 (read_rnglist_index): New function.
1475 (read_attribute_reprocess): Add tag parameter. Add code for
1476 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1477 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1478
1479 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1480
1481 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1482 being resolved.
1483
1484 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1485
1486 * arch-utils.c (show_architecture): Update formatting of messages.
1487
1488 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1489
1490 * gdbtypes.h (struct type) <bounds>: Handle array and string
1491 types.
1492 * ada-lang.c (assign_aggregate): Use type::bounds on
1493 array/string type.
1494 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1495 * c-varobj.c (c_number_of_children): Likewise.
1496 (c_describe_child): Likewise.
1497 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1498 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1499 (f_type_print_base): Likewise.
1500 * f-valprint.c (f77_array_offset_tbl): Likewise.
1501 (f77_get_upperbound): Likewise.
1502 (f77_print_array_1): Likewise.
1503 * guile/scm-type.c (gdbscm_type_range): Likewise.
1504 * m2-typeprint.c (m2_array): Likewise.
1505 (m2_is_long_set_of_type): Likewise.
1506 * m2-valprint.c (get_long_set_bounds): Likewise.
1507 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1508 * python/py-type.c (typy_range): Likewise.
1509 * rust-lang.c (rust_internal_print_type): Likewise.
1510 * type-stack.c (type_stack::follow_types): Likewise.
1511 * valarith.c (value_subscripted_rvalue): Likewise.
1512 * valops.c (value_cast): Likewise.
1513
1514 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1515
1516 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1517 callers to use the equivalent accessor methods.
1518
1519 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1520
1521 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1522 (struct type) <bit_stride>: New method.
1523 (TYPE_BIT_STRIDE): Remove.
1524 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1525
1526 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1527
1528 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1529 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1530 callers to use the equivalent accessor methods instead.
1531
1532 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1533
1534 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1535 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1536 callers to use the equivalent accessor methods instead.
1537
1538 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1539
1540 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1541 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1542 to use dynamic_prop::kind.
1543
1544 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1545
1546 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1547 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1548 to get the bound property's kind and check against
1549 PROP_UNDEFINED.
1550
1551 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1552
1553 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1554 all callers to use type::range_bounds followed by
1555 dynamic_prop::{low,high}.
1556
1557 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1558
1559 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1560 const_val, set_const_val, baton, set_locexpr, set_loclist,
1561 set_addr_offset, variant_parts, set_variant_parts,
1562 original_type, set_original_type>: New methods.
1563 <kind>: Rename to...
1564 <m_kind>: ... this. Update all users to use the new methods
1565 instead.
1566 <data>: Rename to...
1567 <m_data>: ... this. Update all users to use the new methods
1568 instead.
1569
1570 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1571
1572 * gdbtypes.c (get_discrete_bounds): Return failure if
1573 the range type's bounds are not both defined and constant
1574 values.
1575 (get_array_bounds): Update comment. Remove undefined bound check.
1576
1577 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1578
1579 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1580 the type::bounds method directly.
1581
1582 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1583
1584 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1585 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1586 are used to set the range type's bounds to use set_bounds.
1587
1588 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1589
1590 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1591
1592 2020-07-10 Pedro Alves <pedro@palves.net>
1593
1594 * gdbthread.h (inferior_ref): Define.
1595 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1596 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1597 * thread.c
1598 (scoped_restore_current_thread::restore):
1599 Adjust to gdb::ref_ptr.
1600 (scoped_restore_current_thread::~scoped_restore_current_thread):
1601 Remove manual decref handling.
1602 (scoped_restore_current_thread::scoped_restore_current_thread):
1603 Adjust to use
1604 inferior_ref::new_reference/thread_info_ref::new_reference.
1605 Incref the thread before calling get_frame_id instead of after.
1606 Let TARGET_CLOSE_ERROR propagate.
1607
1608 2020-07-10 Pedro Alves <pedro@palves.net>
1609
1610 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1611 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1612 NOT_AVAILABLE_ERROR.
1613 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1614 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1615
1616 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1617 Pedro Alves <pedro@palves.net>
1618
1619 PR gdb/26199
1620 * infrun.c (threads_are_resumed_pending_p): Delete.
1621 (do_target_wait): Remove threads_are_executing and
1622 threads_are_resumed_pending_p checks from the inferior_matches
1623 lambda. Update comments.
1624
1625 2020-07-10 Pedro Alves <pedro@palves.net>
1626
1627 PR gdb/26199
1628 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1629 executing threads.
1630
1631 2020-07-10 Pedro Alves <pedro@palves.net>
1632
1633 PR gdb/26199
1634 * infrun.c (handle_no_resumed): Handle multiple targets.
1635
1636 2020-07-10 Pedro Alves <pedro@palves.net>
1637
1638 PR gdb/26199
1639 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1640 target_is_async_p.
1641
1642 2020-07-10 Pedro Alves <pedro@palves.net>
1643
1644 PR gdb/26199
1645 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1646 threads, not all threads.
1647
1648 2020-07-10 Pedro Alves <pedro@palves.net>
1649
1650 PR gdb/26199
1651 * remote.c (remote_target::open_1): Pass remote target pointer as
1652 data to create_async_event_handler.
1653 (remote_async_inferior_event_handler): Mark async event handler
1654 before returning if the remote target still has either pending
1655 events or unacknowledged notifications.
1656
1657 2020-07-10 John Baldwin <jhb@FreeBSD.org>
1658
1659 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1660 declaration.
1661 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1662 function.
1663
1664 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1665
1666 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1667 inferior_ptid.
1668
1669 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1670
1671 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1672 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1673 AT_FREEBSD_PS_STRINGS.
1674
1675 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
1676
1677 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1678 of debugfile path on Windows.
1679
1680 2020-07-08 John Baldwin <jhb@FreeBSD.org>
1681
1682 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1683 argument to 'data'.
1684
1685 2020-07-08 Tom Tromey <tromey@adacore.com>
1686
1687 * ada-lang.c (ada_exception_message_1): Use read_memory.
1688
1689 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1690
1691 PR python/22748
1692 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1693 special handling for inline frames.
1694 * findvar.c (value_of_register_lazy): Skip inline frames when
1695 creating lazy register values.
1696 * frame.c (frame_id_computed_p): Delete definition.
1697 * frame.h (frame_id_computed_p): Delete declaration.
1698
1699 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1700
1701 * NEWS: Mention additions to Python API.
1702 * python/py-arch.c (archpy_register_groups): New function.
1703 (arch_object_methods): Add 'register_groups' method.
1704 * python/py-registers.c (reggroup_iterator_object): New struct.
1705 (reggroup_object): New struct.
1706 (gdbpy_new_reggroup): New function.
1707 (gdbpy_reggroup_to_string): New function.
1708 (gdbpy_reggroup_name): New function.
1709 (gdbpy_reggroup_iter): New function.
1710 (gdbpy_reggroup_iter_next): New function.
1711 (gdbpy_new_reggroup_iterator): New function
1712 (gdbpy_initialize_registers): Register new types.
1713 (reggroup_iterator_object_type): Define new Python type.
1714 (gdbpy_reggroup_getset): New static global.
1715 (reggroup_object_type): Define new Python type.
1716 * python/python-internal.h
1717
1718 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1719
1720 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1721 * python/py-arch.c (archpy_registers): New function.
1722 (arch_object_methods): Add 'registers' method.
1723 * python/py-registers.c: New file.
1724 * python/python-internal.h
1725 (gdbpy_new_register_descriptor_iterator): Declare.
1726 (gdbpy_initialize_registers): Declare.
1727 * python/python.c (do_start_initialization): Call
1728 gdbpy_initialize_registers.
1729 * NEWS: Mention additions to the Python API.
1730
1731 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1732
1733 * NEWS: Mention new Python API method.
1734 * python/py-unwind.c (pending_framepy_architecture): New function.
1735 (pending_frame_object_methods): Add architecture method.
1736
1737 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1738
1739 * gdbarch.c: Regenerate.
1740 * gdbarch.h: Regenerate.
1741 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1742 (gdbarch_data): Use internal_error for the case where
1743 deprecated_set_gdbarch_data was originally needed.
1744 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1745 and use passed in obstack.
1746 (libunwind_frame_set_descr): Should no longer get back NULL from
1747 gdbarch_data.
1748 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1749 type.
1750 * user-regs.c (user_regs_init): Update parameters, and use passed
1751 in obstack.
1752 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1753 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1754
1755 2020-07-06 Tom de Vries <tdevries@suse.de>
1756
1757 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1758 End-Of-Sequence in lte_is_less_than.
1759 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1760 "gdb: Don't reorder line table entries too much when sorting".
1761
1762 2020-07-06 Tom de Vries <tdevries@suse.de>
1763
1764 PR tui/26205
1765 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1766
1767 2020-07-05 Tom de Vries <tdevries@suse.de>
1768
1769 PR build/26187
1770 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1771 std::uncaught_exceptions instead of deprecated
1772 std::uncaught_exception.
1773
1774 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1775
1776 * macroexp.h (macro_stringify): Return
1777 gdb::unique_xmalloc_ptr<char>.
1778 * macroexp.c (macro_stringify): Likewise.
1779 * macrotab.c (fixup_definition): Update.
1780
1781 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1782
1783 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1784 (lex_one_token): Update.
1785 * macroexp.c (struct macro_buffer) <release>: Return
1786 gdb::unique_xmalloc_ptr<char>.
1787 (macro_stringify): Update.
1788 (macro_expand): Update.
1789 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1790 * macroexp.h (macro_expand_next): Likewise.
1791
1792 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
1793
1794 * macroexp.h (macro_lookup_ftype): Remove.
1795 (macro_expand, macro_expand_once, macro_expand_next): Remove
1796 lookup function parameters, add scope parameter.
1797 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1798 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1799 * macroscope.h (standard_macro_lookup): Change parameter type
1800 to macro_scope.
1801 * macroscope.c (standard_macro_lookup): Likewise.
1802 * c-exp.y (lex_one_token): Update.
1803 * macrocmd.c (macro_expand_command): Likewise.
1804 (macro_expand_once_command): Likewise.
1805
1806 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1807
1808 * inf-loop.c (inferior_event_handler): Remove client_data param.
1809 * inf-loop.h (inferior_event_handler): Likewise.
1810 * infcmd.c (step_1): Adjust.
1811 * infrun.c (proceed): Adjust.
1812 (fetch_inferior_event): Remove client_data param.
1813 (infrun_async_inferior_event_handler): Adjust.
1814 * infrun.h (fetch_inferior_event): Remove `void *` param.
1815 * linux-nat.c (handle_target_event): Adjust.
1816 * record-btrace.c (record_btrace_handle_async_inferior_event):
1817 Adjust.
1818 * record-full.c (record_full_async_inferior_event_handler):
1819 Adjust.
1820 * remote.c (remote_async_inferior_event_handler): Adjust.
1821
1822 2020-07-01 Tom Tromey <tom@tromey.com>
1823
1824 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1825 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1826
1827 2020-07-01 Tom Tromey <tom@tromey.com>
1828
1829 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1830 tui_gen_win_info.
1831 (tui_win_info::make_window): Merge with
1832 tui_gen_win_info::make_window.
1833 (tui_win_info::make_visible): Move from tui_gen_win_info.
1834 * tui/tui-win.c (tui_win_info::max_width): Move from
1835 tui_gen_win_info.
1836 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1837 type.
1838 <window_factory>: Likewise.
1839 * tui/tui-layout.c (tui_win_info::resize): Move from
1840 tui_gen_win_info.
1841 (make_standard_window): Change return type.
1842 (get_locator_window, tui_get_window_by_name): Likewise.
1843 (tui_layout_window::apply): Remove a cast.
1844 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1845 (struct tui_win_info): Merge with tui_gen_win_info.
1846 (struct tui_gen_win_info): Remove.
1847
1848 2020-07-01 Tom Tromey <tom@tromey.com>
1849
1850 * tui/tui-stack.h (struct tui_locator_window): Derive from
1851 tui_win_info.
1852 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1853 <can_box>: New method.
1854
1855 2020-07-01 Tom Tromey <tom@tromey.com>
1856
1857 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1858
1859 2020-07-01 Tom Tromey <tom@tromey.com>
1860
1861 * tui/tui-regs.c (tui_data_window::display_registers_from)
1862 (tui_data_window::display_registers_from)
1863 (tui_data_window::first_data_item_displayed)
1864 (tui_data_window::delete_data_content_windows): Update.
1865 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1866 Remove.
1867 (tui_data_window::check_register_values): Update.
1868 (tui_data_item_window::rerender): Add parameters. Update.
1869 (tui_data_item_window::refresh_window): Remove.
1870 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1871 virtual.
1872 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1873 tui_gen_win_info.
1874 <refresh_window, max_height, min_height>: Remove.
1875 <rerender>: Add parameters.
1876 <x, y, visible>: New members.
1877 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1878 <m_item_width>: New member.
1879
1880 2020-07-01 Tom Tromey <tom@tromey.com>
1881
1882 * tui/tui-regs.c (tui_data_window::show_register_group)
1883 (tui_data_window::check_register_values): Update.
1884 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1885 from item_no.
1886
1887 2020-07-01 Tom Tromey <tom@tromey.com>
1888
1889 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1890 useless "if".
1891
1892 2020-07-01 Tom Tromey <tom@tromey.com>
1893
1894 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1895 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1896
1897 2020-07-01 Tom Tromey <tom@tromey.com>
1898
1899 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1900 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1901 (struct tui_line_or_address): Move from tui-data.h.
1902 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1903 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1904 (tui_cmd_window, tui_source_window_base, tui_source_window)
1905 (tui_disasm_window): Don't declare.
1906 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1907 to tui-winsource.h.
1908 (SINGLE_KEY): Move to tui-stack.c.
1909
1910 2020-07-01 Tom Tromey <tom@tromey.com>
1911
1912 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1913 std::string.
1914 * tui/tui-regs.c (class tab_expansion_file): New.
1915 (tab_expansion_file::write): New method.
1916 (tui_register_format): Change return type. Use
1917 tab_expansion_file.
1918 (tui_get_register, tui_data_window::display_registers_from)
1919 (tui_data_item_window::rerender): Update.
1920 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1921 * tui/tui-io.c (tui_expand_tabs): Remove.
1922
1923 2020-07-01 Tom Tromey <tom@tromey.com>
1924
1925 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1926
1927 2020-07-01 Fangrui Song <maskray@google.com>
1928
1929 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1930
1931 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1932
1933 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1934 forms for DW_AT_associated and DW_AT_allocated attributes,
1935 which is already checked in function attr_to_dynamic_prop.
1936
1937 2020-06-30 Tom Tromey <tromey@adacore.com>
1938
1939 * dwarf2/read.c (quirk_rust_enum): Correctly call
1940 alloc_rust_variant for default-less enum.
1941
1942 2020-06-30 Tom Tromey <tromey@adacore.com>
1943
1944 PR build/26183:
1945 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1946 gdb::to_string.
1947
1948 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
1949
1950 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1951 * gdbarch.h: Re-generate.
1952
1953 2020-06-28 Tom Tromey <tom@tromey.com>
1954
1955 * command.h (cmd_types): Remove.
1956 (cmd_type): Don't declare.
1957 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1958 typedef.
1959 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1960 * cli/cli-decode.c (cmd_type): Remove.
1961
1962 2020-06-27 Pedro Alves <palves@redhat.com>
1963
1964 * fork-child.c (prefork_hook): Adjust.
1965 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1966 Delete.
1967 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1968 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1969 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1970 Remove declarations.
1971 (struct inferior) <set_tty, tty>: New methods.
1972 (struct inferior) <terminal>: Rename to ...
1973 (struct inferior) <m_terminal>: ... this and make private.
1974 * main.c (captured_main_1): Adjust.
1975 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1976 (mi_cmd_inferior_tty_show): Adjust.
1977 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1978 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1979
1980 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
1981
1982 * configure.ac: Add --enable-libctf: handle --disable-static
1983 properly.
1984 * acinclude.m4: sinclude ../config/enable.m4.
1985 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1986 (LIBCTF): Substitute in.
1987 (CTF_DEPS): New, likewise.
1988 (CLIBS): libctf needs symbols from libbfd: move earlier.
1989 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1990 flags.
1991 * ctfread.c: Surround in ENABLE_LIBCTF.
1992 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1993 * configure: Regenerate.
1994 * config.in: Likewise.
1995
1996 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1997
1998 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1999
2000 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
2001
2002 * inferior.h (struct inferior) <terminal>: Change type to
2003 gdb::unique_xmalloc_ptr<char>.
2004 * inferior.c (inferior::~inferior): Don't free inf->terminal.
2005 * infcmd.c (set_inferior_io_terminal): Don't free terminal
2006 field, adjust to unique pointer.
2007 (get_inferior_io_terminal): Adjust to unique pointer.
2008
2009 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2010
2011 * riscv-tdep.c (riscv_print_registers_info): Loop over all
2012 registers, not just the known core set of registers.
2013
2014 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2015
2016 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
2017 fflags, frm, and fcsr registers.
2018 (riscv_register_reggroup_p): Remove unknown CSRs from save and
2019 restore groups.
2020 (riscv_tdesc_unknown_reg): New function.
2021 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
2022 tdesc_use_registers.
2023 * riscv-tdep.h (struct gdbarch_tdep): Add
2024 unknown_csrs_first_regnum, unknown_csrs_count,
2025 duplicate_fflags_regnum, duplicate_frm_regnum, and
2026 duplicate_fcsr_regnum fields.
2027
2028 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2029
2030 * target-descriptions.c (tdesc_use_registers): Add new parameter a
2031 callback, use the callback (when not null) to help number unknown
2032 registers.
2033 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
2034 (tdesc_use_registers): Add extra parameter to declaration.
2035
2036 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2037
2038 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
2039 in the file.
2040 (class riscv_pending_register_alias): Likewise.
2041 (riscv_register_feature::register_info): Change 'required_p' field
2042 to 'required', and change its type. Add 'check' member function.
2043 (riscv_register_feature::register_info::check): Define new member
2044 function.
2045 (riscv_xreg_feature): Change initialisation of 'required' field.
2046 (riscv_freg_feature): Likewise.
2047 (riscv_virtual_feature): Likewise.
2048 (riscv_csr_feature): Likewise.
2049 (riscv_check_tdesc_feature): Take extra parameter, the csr
2050 tdesc_feature, rewrite the function to use the new
2051 riscv_register_feature::register_info::check function.
2052 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
2053
2054 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2055
2056 * features/Makefile: Remove all references to the deleted files
2057 below.
2058 * features/riscv/32bit-csr.c: Deleted.
2059 * features/riscv/32bit-csr.xml: Deleted.
2060 * features/riscv/64bit-csr.c: Deleted.
2061 * features/riscv/64bit-csr.xml: Deleted.
2062 * features/riscv/rebuild-csr-xml.sh: Deleted.
2063
2064 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2065
2066 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
2067 whitespace error for declaration of names member variable.
2068 (struct riscv_register_feature): Add new prefer_first_name member
2069 variable, and fix whitespace error in declaration of registers.
2070 (riscv_xreg_feature): Initialize prefer_first_name field.
2071 (riscv_freg_feature): Likewise.
2072 (riscv_virtual_feature): Likewise.
2073 (riscv_csr_feature): Likewise.
2074 (riscv_register_name): Expand on comments. Remove register name
2075 modifications for CSR and virtual registers.
2076
2077 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2078
2079 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
2080 errors.
2081
2082 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2083
2084 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
2085 riscv-opc.h.
2086 (class riscv_pending_register_alias): New class.
2087 (riscv_check_tdesc_feature): Take vector of pending aliases and
2088 populate it as appropriate.
2089 (riscv_setup_register_aliases): Delete.
2090 (riscv_gdbarch_init): Create vector of pending aliases and pass it
2091 to riscv_check_tdesc_feature in all cases. Use the vector to
2092 create the register aliases.
2093
2094 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2095
2096 * sol2-tdep.c (sol2_static_transform_name): Remove.
2097 (sol2_init_abi): Don't register it.
2098 * gdbarch.sh (static_transform_name): Remove.
2099 * gdbarch.c, gdbarch.h: Regenerate.
2100
2101 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
2102 gdbarch_static_transform_name.
2103 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
2104 * stabsread.c (define_symbol) <'X'>: Remove.
2105 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
2106 handling.
2107 <'V'>: Likewise.
2108 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
2109 <'S'>: Remove call to gdbarch_static_transform_name.
2110
2111 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2112
2113 * procfs.c (procfs_pre_trace): New function.
2114 (procfs_target::create_inferior): Pass it to fork_inferior.
2115
2116 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2117
2118 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
2119 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
2120 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
2121 sol2-tdep.o, sparc-sol2-tdep.o.
2122 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
2123 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
2124 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
2125 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
2126
2127 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2128
2129 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
2130 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
2131 Call sol2_init_abi.
2132 Remove calls to set_gdbarch_skip_solib_resolver,
2133 set_gdbarch_core_pid_to_str.
2134 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
2135 (i386_sol2_static_transform_name): Remove.
2136 (i386_sol2_init_abi): Call sol2_init_abi.
2137 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2138 set_gdbarch_static_transform_name,
2139 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2140 Use sol2_sigtramp_p.
2141 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
2142 (sol2_sigtramp_p): New function.
2143 (sol2_static_transform_name): New function.
2144 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
2145 (sol2_init_abi): New function.
2146 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
2147 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
2148 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
2149 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
2150 (sparc_sol2_static_transform_name): Remove.
2151 (sparc32_sol2_init_abi): Call sol2_init_abi.
2152 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2153 set_gdbarch_static_transform_name,
2154 set_gdbarch_skip_solib_resolver,
2155 set_gdbarch_core_pid_to_str.
2156 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
2157 (sparc_sol2_static_transform_name): Remove
2158 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
2159 call sol2_sigtramp_p.
2160 (sparc64_sol2_init_abi): Call sol2_init_abi.
2161 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2162 set_gdbarch_static_transform_name,
2163 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2164
2165 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2166
2167 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
2168 * exec.c (validate_exec_file): If from_tty, set both
2169 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
2170 * symfile.c (symbol_file_add_with_addrs): if always_confirm
2171 and from_tty, unconditionally ask a confirmation.
2172
2173 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2174
2175 * target-descriptions.c (tdesc_architecture_name): Protect against
2176 NULL pointer dereference.
2177 (maint_print_xml_tdesc_cmd): New function.
2178 (_initialize_target_descriptions): Register new 'maint print
2179 xml-tdesc' command and give it the filename completer.
2180 * NEWS: Mention new 'maint print xml-tdesc' command.
2181
2182 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2183
2184 * target-descriptions.c (class tdesc_compatible_info): New class.
2185 (struct target_desc): Change type of compatible vector.
2186 (tdesc_compatible_p): Update for change in type of
2187 target_desc::compatible.
2188 (tdesc_compatible_info_list): New function.
2189 (tdesc_compatible_info_arch_name): New function.
2190 (tdesc_add_compatible): Update for change in type of
2191 target_desc::compatible.
2192 (print_c_tdesc::visit_pre): Likewise.
2193
2194 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2195
2196 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
2197 whitespace to underscore.
2198 (maint_print_c_tdesc_cmd): Use fake filename for target
2199 descriptions that came from the target.
2200 (_initialize_target_descriptions): Add filename command completion
2201 for 'maint print c-tdesc'.
2202
2203 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2204
2205 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
2206 lines.
2207
2208 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2209
2210 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
2211 lines.
2212 (dwarf2_find_location_expression): Likewise.
2213 (call_site_parameter_matches): Likewise.
2214 (dwarf2_compile_expr_to_ax): Likewise.
2215 (disassemble_dwarf_expression): Likewise.
2216 (loclist_describe_location): Likewise.
2217
2218 2020-06-23 Pedro Alves <palves@redhat.com>
2219
2220 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
2221 progspace-and-thread.h. Include scoped-mock-context.h instead.
2222 (register_to_value_test): Use scoped_mock_context.
2223 * regcache.c: Include "scoped-mock-context.h".
2224 (cooked_read_test): Don't error out if a target is already pushed.
2225 Use scoped_mock_context. Adjust.
2226 * scoped-mock-context.h: New file.
2227
2228 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2229
2230 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
2231 initializer.
2232 (ada_language::is_string_type_p): New member function.
2233 * c-lang.c (c_language_data): Delete la_is_string_type_p
2234 initializer.
2235 (cplus_language_data): Likewise.
2236 (asm_language_data): Likewise.
2237 (minimal_language_data): Likewise.
2238 * d-lang.c (d_language_data): Likewise.
2239 * f-lang.c (f_is_string_type_p): Delete function, implementation
2240 moved to f_language::is_string_type_p.
2241 (f_language_data): Delete la_is_string_type_p initializer.
2242 (f_language::is_string_type_p): New member function,
2243 implementation from f_is_string_type_p.
2244 * go-lang.c (go_is_string_type_p): Delete function, implementation
2245 moved to go_language::is_string_type_p.
2246 (go_language_data): Delete la_is_string_type_p initializer.
2247 (go_language::is_string_type_p): New member function,
2248 implementation from go_is_string_type_p.
2249 * language.c (language_defn::is_string_type_p): Define new member
2250 function.
2251 (default_is_string_type_p): Make static, add comment copied from
2252 header file.
2253 (unknown_language_data): Delete la_is_string_type_p initializer.
2254 (unknown_language::is_string_type_p): New member function.
2255 (auto_language_data): Delete la_is_string_type_p initializer.
2256 (auto_language::is_string_type_p): New member function.
2257 * language.h (language_data): Delete la_is_string_type_p field.
2258 (language_defn::is_string_type_p): Declare new function.
2259 (default_is_string_type_p): Delete desclaration, move comment to
2260 definition.
2261 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
2262 moved to m2_language::is_string_type_p.
2263 (m2_language_data): Delete la_is_string_type_p initializer.
2264 (m2_language::is_string_type_p): New member function,
2265 implementation from m2_is_string_type_p.
2266 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
2267 initializer.
2268 * opencl-lang.c (opencl_language_data): Likewise.
2269 * p-lang.c (pascal_is_string_type_p): Delete function,
2270 implementation moved to pascal_language::is_string_type_p.
2271 (pascal_language_data): Delete la_is_string_type_p initializer.
2272 (pascal_language::is_string_type_p): New member function,
2273 implementation from pascal_is_string_type_p.
2274 * rust-lang.c (rust_is_string_type_p): Delete function,
2275 implementation moved to rust_language::is_string_type_p.
2276 (rust_language_data): Delete la_is_string_type_p initializer.
2277 (rust_language::is_string_type_p): New member function,
2278 implementation from rust_is_string_type_p.
2279 * valprint.c (val_print_scalar_or_string_type_p): Update call to
2280 is_string_type_p.
2281
2282 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2283
2284 * ada-lang.c (ada_language_data): Delete la_print_typedef
2285 initializer.
2286 (ada_language::print_typedef): New member function.
2287 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
2288 (cplus_language_data): Likewise.
2289 (asm_language_data): Likewise.
2290 (minimal_language_data): Likewise.
2291 * d-lang.c (d_language_data): Likewise.
2292 * f-lang.c (f_language_data): Likewise.
2293 (f_language::print_typedef): New member function.
2294 * go-lang.c (go_language_data): Delete la_print_typedef
2295 initializer.
2296 * language.c (language_defn::print_typedef): Define member
2297 function.
2298 (unknown_language_data): Delete la_print_typedef initializer.
2299 (unknown_language::print_typedef): New member function.
2300 (auto_language_data): Delete la_print_typedef initializer.
2301 (auto_language::print_typedef): New member function.
2302 * language.h (language_data): Delete la_print_typedef field.
2303 (language_defn::print_typedef): Declare new member function.
2304 (LA_PRINT_TYPEDEF): Update call to print_typedef.
2305 (default_print_typedef): Delete declaration.
2306 * m2-lang.c (m2_language_data): Delete la_print_typedef
2307 initializer.
2308 (m2_language::print_typedef): New member function.
2309 * objc-lang.c (objc_language_data): Delete la_print_typedef
2310 initializer.
2311 * opencl-lang.c (opencl_language_data): Likewise.
2312 * p-lang.c (pascal_language_data): Likewise.
2313 (pascal_language::print_typedef): New member function.
2314 * rust-lang.c (rust_print_typedef): Delete function,
2315 implementation moved to rust_language::print_typedef.
2316 (rust_language): Delete la_print_typedef initializer.
2317 (rust_language::print_typedef): New member function,
2318 implementation from rust_print_typedef.
2319 * typeprint.c (default_print_typedef): Delete.
2320
2321 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2322
2323 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2324 (ada_language::printstr): New member function.
2325 * c-lang.c (c_language_data): Delete la_printstr initializer.
2326 (cplus_language_data): Likewise.
2327 (asm_language_data): Likewise.
2328 (minimal_language_data): Likewise.
2329 * d-lang.c (d_language_data): Likewise.
2330 * f-lang.c (f_printstr): Rename to f_language::printstr.
2331 (f_language_data): Delete la_printstr initializer.
2332 (f_language::printstr): New member function, implementation from
2333 f_printstr.
2334 * go-lang.c (go_language_data): Delete la_printstr initializer.
2335 * language.c (language_defn::printstr): Define new member
2336 function.
2337 (unk_lang_printstr): Delete.
2338 (unknown_language_data): Delete la_printstr initializer.
2339 (unknown_language::printstr): New member function.
2340 (auto_language_data): Delete la_printstr initializer.
2341 (auto_language::printstr): New member function.
2342 * language.h (language_data): Delete la_printstr field.
2343 (language_defn::printstr): Declare new member function.
2344 (LA_PRINT_STRING): Update call to printstr.
2345 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2346 (m2_language_data): Delete la_printstr initializer.
2347 (m2_language::printstr): New member function, implementation from
2348 m2_printstr.
2349 * objc-lang.c (objc_language_data): Delete la_printstr
2350 initializer.
2351 * opencl-lang.c (opencl_language_data): Likewise.
2352 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2353 (pascal_language_data): Delete la_printstr initializer.
2354 (pascal_language::printstr): New member function, implementation
2355 from pascal_printstr.
2356 * p-lang.h (pascal_printstr): Delete declaration.
2357 * rust-lang.c (rust_printstr): Update header comment.
2358 (rust_language_data): Delete la_printstr initializer.
2359 (rust_language::printstr): New member function.
2360
2361 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2362
2363 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2364 (ada_language::printchar): New member function.
2365 * c-lang.c (c_language_data): Delete la_printchar initializer.
2366 (cplus_language_data): Likewise.
2367 (asm_language_data): Likewise.
2368 (minimal_language_data): Likewise.
2369 * d-lang.c (d_language_data): Likewise.
2370 * f-lang.c (f_printchar): Rename to f_language::printchar.
2371 (f_language_data): Delete la_printchar initializer.
2372 (f_language::printchar): New member function, implementation from
2373 f_printchar.
2374 * go-lang.c (go_language_data): Delete la_printchar initializer.
2375 * language.c (unk_lang_printchar): Delete.
2376 (language_defn::printchar): Define new member function.
2377 (unknown_language_data): Delete la_printchar initializer.
2378 (unknown_language::printchar): New member function.
2379 (auto_language_data): Delete la_printchar initializer.
2380 (auto_language::printchar): New member function.
2381 * language.h (language_data): Delete la_printchar field.
2382 (language_defn::printchar): Declare new member function.
2383 (LA_PRINT_CHAR): Update call to printchar.
2384 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2385 (m2_language::printchar): New member function.
2386 * objc-lang.c (objc_language_data): Delete la_printchar
2387 initializer.
2388 * opencl-lang.c (opencl_language_data): Likewise.
2389 * p-lang.c (pascal_language_data): Delete la_printchar
2390 initializer.
2391 (pascal_language::printchar): New member function.
2392 * rust-lang.c (rust_printchar): Rename to
2393 rust_language::printchar.
2394 (rust_language_data): Delete la_printchar initializer.
2395 (rust_language::printchar): New member function, implementation
2396 from rust_printchar.
2397
2398 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2399
2400 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2401 (ada_language_data): Delete la_emitchar initializer.
2402 (ada_language::emitchar): New member function, implementation from
2403 emit_char.
2404 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2405 (cplus_language_data): Likewise.
2406 (asm_language_data): Likewise.
2407 (minimal_language_data): Likewise.
2408 * d-lang.c (d_language_data): Likewise.
2409 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2410 (f_language_data): Delete la_emitchar initializer.
2411 (f_language::emitchar): New member function, implementation from
2412 f_emit_char.
2413 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2414 * language.c (unk_lang_emit_char): Delete.
2415 (language_defn::emitchar): New member function definition.
2416 (unknown_language_data): Delete la_emitchar initializer.
2417 (unknown_language::emitchar): New member function.
2418 (auto_language_data): Delete la_emitchar initializer.
2419 (auto_language::emitchar): New member function.
2420 * language.h (language_data): Delete la_emitchar field.
2421 (language_defn::emitchar): New member field declaration.
2422 (LA_EMIT_CHAR): Update call to emitchar.
2423 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2424 (m2_language_data): Delete la_emitchar initializer.
2425 (m2_language::emitchar): New member function, implementation from
2426 m2_emit_char.
2427 * objc-lang.c (objc_language_data): Delete la_emitchar
2428 initializer.
2429 * opencl-lang.c (opencl_language_data): Likewise.
2430 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2431 (pascal_language_data): Delete la_emitchar initializer.
2432 (pascal_language::emitchar): New member function, implementation
2433 from pascal_emit_char.
2434 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2435 (rust_language_data): Delete la_emitchar initializer.
2436 (rust_language::emitchar): New member function, implementation
2437 from rust_emitchar.
2438
2439 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2440
2441 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2442 (ada_language_data): Delete la_post_parser initializer.
2443 (ada_language::post_parser): New member function.
2444 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2445 (cplus_language_data): Likewise.
2446 (asm_language_data): Likewise.
2447 (minimal_language_data): Likewise.
2448 * d-lang.c (d_language_data): Likewise.
2449 * f-lang.c (f_language_data): Likewise.
2450 * go-lang.c (go_language_data): Likewise.
2451 * language.c (unknown_language_data): Likewise.
2452 (auto_language_data): Likewise.
2453 * language.h (language_data): Delete la_post_parser field.
2454 (language_defn::post_parser): New member function.
2455 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2456 * objc-lang.c (objc_language_data): Likewise.
2457 * opencl-lang.c (opencl_language_data): Likewise.
2458 * p-lang.c (pascal_language_data): Likewise.
2459 * parse.c (parse_exp_in_context): Update call to post_parser.
2460 (null_post_parser): Delete definition.
2461 * parser-defs.h (null_post_parser): Delete declaration.
2462 * rust-lang.c (rust_language_data): Delete la_post_parser
2463 initializer.
2464
2465 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2466
2467 * ada-lang.c (parse): Rename to ada_language::parser.
2468 (ada_language_data): Delete la_parser initializer.
2469 (ada_language::parser): New member function, implementation from
2470 parse.
2471 * c-lang.c (c_language_data): Delete la_parser initializer.
2472 (cplus_language_data): Likewise.
2473 (asm_language_data): Likewise.
2474 (minimal_language_data): Likewise.
2475 * d-lang.c (d_language_data): Likewise.
2476 (d_language::parser): New member function.
2477 * f-lang.c (f_language_data): Delete la_parser initializer.
2478 (f_language::parser): New member function.
2479 * go-lang.c (go_language_data): Delete la_parser initializer.
2480 (go_language::parser): New member function.
2481 * language.c (unk_lang_parser): Delete.
2482 (language_defn::parser): Define new member function.
2483 (unknown_language_data): Delete la_parser initializer.
2484 (unknown_language::parser): New member function.
2485 (auto_language_data): Delete la_parser initializer.
2486 (auto_language::parser): New member function.
2487 * language.h (language_data): Delete la_parser field.
2488 (language_defn::parser): Declare new member function.
2489 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2490 (m2_language::parser): New member function.
2491 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2492 * opencl-lang.c (opencl_language_data): Likewise.
2493 * p-lang.c (pascal_language_data): Likewise.
2494 (pascal_language::parser): New member function.
2495 * parse.c (parse_exp_in_context): Update call to parser.
2496 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2497 (rust_language::parser): New member function.
2498
2499 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2500
2501 * top.c (print_gdb_configuration): Print --with-python-libdir
2502 configuration value.
2503
2504 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2505
2506 * NEWS: Mention change to the alias command.
2507
2508 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2509
2510 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2511 (alias_command_completer)
2512 (make_alias_options_def_group): New functions.
2513 (alias_opts, alias_option_defs): New struct and array.
2514 (alias_usage_error): Update usage.
2515 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2516 Use option framework.
2517 (_initialize_cli_cmds): Update alias command help.
2518 Update aliases command help.
2519 (show_user):
2520 Add NULL for new default_args lookup_cmd argument.
2521 (valid_command_p): Rename to validate_aliased_command.
2522 Add NULL for new default_args lookup_cmd argument. Verify that the
2523 aliased_command has no default args.
2524 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2525 (lookup_cmd_1, lookup_cmd): New argument default_args.
2526 (add_alias_cmd):
2527 Add NULL for new default_args lookup_cmd argument.
2528 (print_help_for_command): Show default args under the layout
2529 alias some_alias = some_aliased_cmd some_alias_default_arg.
2530 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2531 xfree default_args in destructor.
2532 * cli/cli-script.c (process_next_line, do_define_command):
2533 Add NULL for new default_args lookup_cmd argument.
2534 * command.h: Declare new default_args argument in lookup_cmd
2535 and lookup_cmd_1.
2536 * completer.c (complete_line_internal_1):
2537 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2538 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2539 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2540 Likewise.
2541 * infcmd.c (_initialize_infcmd): Likewise.
2542 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2543 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2544 * python/py-param.c (add_setshow_generic): Likewise.
2545 * remote.c (_initialize_remote): Likewise.
2546 * top.c (execute_command): Prepend default_args if command has some.
2547 (set_verbose):
2548 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2549 * tracepoint.c (validate_actionline, encode_actions_1):
2550 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2551
2552 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2553
2554 * jit.c (jit_read_descriptor): Use bool as the return type.
2555 (jit_breakpoint_re_set_internal): Use bool as the return type.
2556 Invert the return value logic; return true if the jit breakpoint
2557 has been successfully initialized.
2558 (jit_inferior_init): Update the call to
2559 jit_breakpoint_re_set_internal.
2560
2561 2020-06-22 Pedro Alves <palves@redhat.com>
2562
2563 PR gdb/25939
2564 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2565 Use the current inferior instead. Don't return
2566 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2567 wait again.
2568 * sol-thread.c (sol_thread_target::wait): Don't reference
2569 inferior_ptid.
2570 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2571 (sol_update_thread_list_callback): Use the current inferior's pid
2572 instead of inferior_ptid.
2573
2574 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2575
2576 * procfs.c: Cleanup many comments.
2577
2578 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2579 (AFTER_WATCHFLAG): Replace by value.
2580
2581 (MAIN_PROC_NAME_FORMAT): Inline ...
2582 (create_procinfo): ... here.
2583
2584 (procfs_debug_inferior): Remove SYS_exec handling.
2585 (syscall_is_exec): Likewise.
2586 (procfs_set_exec_trap): Likewise.
2587
2588 (syscall_is_lwp_exit): Inline in callers.
2589 (syscall_is_exit): Likewise.
2590 (syscall_is_exec): Likewise.
2591 (syscall_is_lwp_create): Likewise.
2592
2593 (invalidate_cache): Remove #if 0 code.
2594
2595 (make_signal_thread_runnable): Remove.
2596 (procfs_target::resume): Remove #if 0 code.
2597
2598 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2599
2600 PR gdb/25939
2601 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2602 call ...
2603 (procfs_target::create_inferior): ... here.
2604
2605 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2606
2607 * exec.c (validate_exec_file): Ensure the build-id is up to
2608 date by calling reopen_exec_file (that checks file timestamp
2609 to decide to re-read the file).
2610
2611 2020-06-18 Pedro Alves <palves@redhat.com>
2612
2613 PR gdb/25412
2614 * gdbthread.h (delete_thread, delete_thread_silent)
2615 (find_thread_ptid): Update comments.
2616 * thread.c (current_thread_): New global.
2617 (is_current_thread): Move higher, and reimplement.
2618 (inferior_thread): Reimplement.
2619 (set_thread_exited): Use bool. Add assertions.
2620 (add_thread_silent): Simplify thread-reuse handling by always
2621 calling delete_thread.
2622 (delete_thread): Remove intro comment.
2623 (find_thread_ptid): Skip exited threads.
2624 (switch_to_thread_no_regs): Write to current_thread_.
2625 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2626 INFERIOR_PTID. Clear current_thread_.
2627
2628 2020-06-18 Pedro Alves <palves@redhat.com>
2629
2630 * aix-thread.c (pd_update): Use switch_to_thread.
2631
2632 2020-06-18 Pedro Alves <palves@redhat.com>
2633
2634 * ravenscar-thread.c (ravenscar_thread_target): Update.
2635 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2636 (ravenscar_thread_target::add_active_thread): ... this. Don't
2637 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2638 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2639
2640 2020-06-18 Pedro Alves <palves@redhat.com>
2641
2642 * nat/windows-nat.c (current_windows_thread): Remove.
2643 * nat/windows-nat.h (current_windows_thread): Remove.
2644 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2645 Adjust.
2646 (display_selectors): Adjust to fetch the current
2647 windows_thread_info based on inferior_ptid.
2648 (fake_create_process): No longer write to current_windows_thread.
2649 (windows_nat_target::get_windows_debug_event):
2650 Don't set inferior_ptid or current_windows_thread.
2651 (windows_nat_target::wait): Adjust to not rely on
2652 current_windows_thread.
2653 (do_initial_windows_stuff): Now a method of windows_nat_target.
2654 Switch to the last_ptid thread.
2655 (windows_nat_target::attach): Adjust.
2656 (windows_nat_target::detach): Use switch_to_no_thread instead of
2657 writing to inferior_ptid directly.
2658 (windows_nat_target::create_inferior): Adjust.
2659
2660 2020-06-18 Pedro Alves <palves@redhat.com>
2661
2662 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2663
2664 2020-06-18 Pedro Alves <palves@redhat.com>
2665
2666 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2667 after creating it, instead of writing to inferior_ptid. Don't
2668 write to inferior_ptid.
2669
2670 2020-06-18 Pedro Alves <palves@redhat.com>
2671
2672 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2673
2674 2020-06-18 Pedro Alves <palves@redhat.com>
2675
2676 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2677 it, instead of writing to inferior_ptid.
2678
2679 2020-06-18 Pedro Alves <palves@redhat.com>
2680
2681 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2682 to inferior_ptid.
2683
2684 2020-06-18 Pedro Alves <palves@redhat.com>
2685
2686 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2687 instead of writing to inferior_ptid directly.
2688
2689 2020-06-18 Pedro Alves <palves@redhat.com>
2690
2691 * corelow.c (core_target::close): Use switch_to_no_thread instead
2692 of writing to inferior_ptid directly.
2693 (add_to_thread_list, core_target_open): Use switch_to_thread
2694 instead of writing to inferior_ptid directly.
2695
2696 2020-06-18 Pedro Alves <palves@redhat.com>
2697
2698 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2699 inferior_ptid.
2700 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2701 inferior_ptid.
2702 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2703 inferior_ptid directly.
2704 (darwin_nat_target::init_thread_list): Switch to thread, instead
2705 of writing to inferior_ptid.
2706 (darwin_nat_target::attach): Don't write to inferior_ptid.
2707 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2708
2709 2020-06-18 Pedro Alves <palves@redhat.com>
2710
2711 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2712 thread.
2713 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2714 Instead use switch_to_thread.
2715 (gnu_nat_target::detach): Use switch_to_no_thread
2716 instead of writing to inferior_ptid directly. Used passed-in
2717 inferior instead of looking up the inferior by pid.
2718
2719 2020-06-18 Pedro Alves <palves@redhat.com>
2720
2721 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2722 inferior_ptid.
2723
2724 2020-06-18 Pedro Alves <palves@redhat.com>
2725
2726 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2727 inferior_ptid.
2728 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2729 thread.
2730 (nto_procfs_target::detach): Avoid referencing
2731 inferior_ptid. Use switch_to_no_thread instead of writing to
2732 inferior_ptid directly.
2733 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2734 instead of writing to inferior_ptid directly.
2735 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2736 to thread.
2737
2738 2020-06-18 Pedro Alves <palves@redhat.com>
2739
2740 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2741 after creating it, instead of writing to inferior_ptid.
2742 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2743 to inferior_ptid directly.
2744 (gdbsim_target::wait): Don't write to inferior_ptid.
2745
2746 2020-06-18 Pedro Alves <palves@redhat.com>
2747
2748 * remote.c (remote_target::remote_notice_new_inferior): Use
2749 switch_to_thread instead of writing to inferior_ptid directly.
2750 (remote_target::add_current_inferior_and_thread): Use
2751 switch_to_no_thread instead of writing to inferior_ptid directly.
2752 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2753 and switch_to_thread instead of using set_current_inferior or
2754 writing to inferior_ptid directly.
2755
2756 2020-06-18 Pedro Alves <palves@redhat.com>
2757
2758 * tracectf.c (ctf_target_open): Switch to added thread instead of
2759 writing to inferior_ptid directly.
2760 (ctf_target::close): Use switch_to_no_thread instead of writing to
2761 inferior_ptid directly.
2762
2763 2020-06-18 Pedro Alves <palves@redhat.com>
2764
2765 * tracefile-tfile.c (tfile_target_open): Don't write to
2766 inferior_ptid directly, instead switch to added thread.
2767 (tfile_target::close): Use switch_to_no_thread instead of writing
2768 to inferior_ptid directly.
2769
2770 2020-06-18 Pedro Alves <palves@redhat.com>
2771
2772 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2773 (procfs_target::detach): Use switch_to_no_thread
2774 instead of writing to inferior_ptid directly.
2775 (do_attach): Change return type to void. Switch to the added
2776 thread.
2777 (procfs_target::create_inferior): Switch to the added thread.
2778 (procfs_do_thread_registers): Don't write to inferior_ptid.
2779
2780 2020-06-18 Pedro Alves <palves@redhat.com>
2781
2782 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2783 of writing to inferior_ptid.
2784 (scoped_restore_exited_inferior): Delete.
2785 (handle_vfork_child_exec_or_exit): Simplify using
2786 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2787 instead of writing to inferior_ptid.
2788 (THREAD_STOPPED_BY): Delete.
2789 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2790 (thread_stopped_by_hw_breakpoint): Delete.
2791 (save_waitstatus): Use
2792 scoped_restore_current_thread+switch_to_thread, and call
2793 target_stopped_by_watchpoint instead of
2794 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2795 instead of thread_stopped_by_sw_breakpoint, and
2796 target_stopped_by_hw_breakpoint instead of
2797 thread_stopped_by_hw_breakpoint.
2798 (handle_inferior_event)
2799 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2800 inferior_ptid directly, nor
2801 set_current_inferior/set_current_program_space. Use
2802 switch_to_thread / switch_to_inferior_no_thread instead.
2803
2804 2020-06-18 Pedro Alves <palves@redhat.com>
2805
2806 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2807 instead of writing to inferior_ptid.
2808
2809 2020-06-18 Pedro Alves <palves@redhat.com>
2810
2811 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2812 added thread.
2813 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2814 to the added thread.
2815 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2816 instead of writing to inferior_ptid.
2817
2818 2020-06-18 Pedro Alves <palves@redhat.com>
2819
2820 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2821 (register_to_value_test): Mock a program_space too. Heap-allocate
2822 the address space. Don't write to inferior_ptid. Use
2823 switch_to_thread instead.
2824
2825 2020-06-18 Pedro Alves <palves@redhat.com>
2826
2827 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2828 Delete.
2829 (find_signalled_thread()): New, factored out from
2830 linux_make_corefile_notes and adjusted to handle exited threads.
2831 (linux_make_corefile_notes): Adjust to use the new
2832 find_signalled_thread.
2833
2834 2020-06-18 Pedro Alves <palves@redhat.com>
2835
2836 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2837 of saving/restoring inferior_ptid.
2838
2839 2020-06-17 Tom Tromey <tom@tromey.com>
2840
2841 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2842 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2843 declare.
2844 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2845
2846 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
2847
2848 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2849 of partial symtabs.
2850
2851 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2852
2853 * regformats/reg-arm.dat: Remove.
2854 * regformats/reg-bfin.dat: Remove.
2855 * regformats/reg-cris.dat: Remove.
2856 * regformats/reg-crisv32.dat: Remove.
2857 * regformats/reg-m32r.dat: Remove.
2858 * regformats/reg-tilegx.dat: Remove.
2859 * regformats/reg-tilegx32.dat: Remove.
2860
2861 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2862
2863 * features/Makefile (WHICH): Remove arm files.
2864 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2865 * regformats/arm/arm-with-neon.dat: Remove.
2866 * regformats/arm/arm-with-vfpv2.dat: Remove.
2867 * regformats/arm/arm-with-vfpv3.dat: Remove.
2868
2869 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2870
2871 * features/Makefile (XMLTOC): Remove rx.xml.
2872
2873 2020-06-17 Pedro Alves <palves@redhat.com>
2874
2875 * gdbthread.h (thread_control_state) <trap_expected> Update
2876 comments.
2877
2878 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2879
2880 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2881 ada_language::lookup_symbol_nonlocal.
2882 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2883 (ada_language::lookup_symbol_nonlocal): New member function,
2884 implementation from ada_lookup_symbol_nonlocal.
2885 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2886 initializer.
2887 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2888 initializer.
2889 (cplus_language::lookup_symbol_nonlocal): New member function.
2890 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2891 (minimal_language_data) Likewise.
2892 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2893 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2894 initializer.
2895 (d_language::lookup_symbol_nonlocal): New member function.
2896 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2897 initializer.
2898 (f_language::lookup_symbol_nonlocal): New member function.
2899 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2900 initializer.
2901 * language.c (unknown_language_data): Likewise.
2902 (auto_language_data): Likewise.
2903 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2904 field.
2905 (language_defn::lookup_symbol_nonlocal): New member function.
2906 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2907 initializer.
2908 * objc-lang.c (objc_language_data): Likewise.
2909 * opencl-lang.c (opencl_language_data): Likewise.
2910 * p-lang.c (pascal_language_data): Likewise.
2911 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2912 rust_language::lookup_symbol_nonlocal.
2913 (rust_language_data): Delete la_lookup_symbol_nonlocal
2914 initializer.
2915 (rust_language::lookup_symbol_nonlocal): New member function,
2916 implementation from rust_lookup_symbol_nonlocal.
2917 * symtab.c (lookup_symbol_aux): Update call to
2918 lookup_symbol_nonlocal.
2919 (basic_lookup_symbol_nonlocal): Rename to...
2920 (language_defn::lookup_symbol_nonlocal): ...this, and update
2921 header comment. Remove language_defn parameter, and replace with
2922 uses of `this'.
2923 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2924
2925 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2926
2927 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2928 initializer.
2929 (ada_language::value_print_inner): New member function.
2930 * c-lang.c (c_language_data): Delete la_value_print_inner
2931 initializer.
2932 (cplus_language_data): Likewise.
2933 (asm_language_data): Likewise.
2934 (minimal_language_data): Likewise.
2935 * d-lang.c (d_language_data): Likewise.
2936 (d_language::value_print_inner): New member function.
2937 * f-lang.c (f_language_data): Delete la_value_print_inner
2938 initializer.
2939 (f_language::value_print_inner): New member function.
2940 * f-lang.h (f_value_print_innner): Rename to...
2941 (f_value_print_inner): ...this (note spelling of 'inner').
2942 * f-valprint.c (f_value_print_innner): Rename to...
2943 (f_value_print_inner): ...this (note spelling of 'inner').
2944 * go-lang.c (go_language_data): Delete la_value_print_inner
2945 initializer.
2946 (go_language::value_print_inner): New member function.
2947 * language.c (language_defn::value_print_inner): Define new member
2948 function.
2949 (unk_lang_value_print_inner): Delete.
2950 (unknown_language_data): Delete la_value_print_inner initializer.
2951 (unknown_language::value_print_inner): New member function.
2952 (auto_language_data): Delete la_value_print_inner initializer.
2953 (auto_language::value_print_inner): New member function.
2954 * language.h (language_data): Delete la_value_print_inner field.
2955 (language_defn::value_print_inner): Delcare new member function.
2956 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2957 initializer.
2958 (m2_language::value_print_inner): New member function.
2959 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2960 initializer.
2961 * opencl-lang.c (opencl_language_data): Likewise.
2962 * p-lang.c (pascal_language_data): Likewise.
2963 (pascal_language::value_print_inner): New member function.
2964 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2965 initializer.
2966 (rust_language::value_print_inner): New member function.
2967 * valprint.c (do_val_print): Update call to value_print_inner.
2968
2969 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2970
2971 * ada-lang.c (ada_language_data): Delete la_value_print
2972 initializer.
2973 (ada_language::value_print): New member function.
2974 * c-lang.c (c_language_data): Delete la_value_print initializer.
2975 (cplus_language_data): Likewise.
2976 (asm_language_data): Likewise.
2977 (minimal_language_data): Likewise.
2978 * d-lang.c (d_language_data): Likewise.
2979 * f-lang.c (f_language_data): Likewise.
2980 * go-lang.c (go_language_data): Likewise.
2981 * language.c (unk_lang_value_print): Delete.
2982 (language_defn::value_print): Define new member function.
2983 (unknown_language_data): Delete la_value_print initializer.
2984 (unknown_language::value_print): New member function.
2985 (auto_language_data): Delete la_value_print initializer.
2986 (auto_language::value_print): New member function.
2987 * language.h (language_data): Delete la_value_print field.
2988 (language_defn::value_print): Declare new member function.
2989 (LA_VALUE_PRINT): Update call to value_print.
2990 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2991 * objc-lang.c (objc_language_data): Likewise.
2992 * opencl-lang.c (opencl_language_data): Likewise.
2993 * p-lang.c (pascal_language_data): Likewise.
2994 (pascal_language::value_print): New member function.
2995 * rust-lang.c (rust_language_data): Delete la_value_print
2996 initializer.
2997
2998 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2999
3000 * ada-lang.c (ada_watch_location_expression): Rename to
3001 ada_language::watch_location_expression.
3002 (ada_language_data): Delete la_watch_location_expression
3003 initializer.
3004 (ada_language::watch_location_expression): New member function,
3005 implementation from ada_watch_location_expression.
3006 * breakpoint.c (watch_command_1): Update call to
3007 watch_location_expression.
3008 * c-lang.c (c_watch_location_expression): Rename to
3009 language_defn::watch_location_expression.
3010 (c_language_data): Delete la_watch_location_expression
3011 initializer.
3012 (cplus_language_data): Likewise.
3013 (asm_language_data): Likewise.
3014 (minimal_language_data): Likewise.
3015 * c-lang.h (c_watch_location_expression): Delete declaration.
3016 * d-lang.c (d_language_data): Delete la_watch_location_expression
3017 initializer.
3018 * f-lang.c (f_language_data): Likewise.
3019 * go-lang.c (go_language_data): Likewise.
3020 * language.c (language_defn::watch_location_expression): Member
3021 function implementation from c_watch_location_expression.
3022 (unknown_language_data): Delete la_watch_location_expression
3023 initializer.
3024 (auto_language_data): Likewise.
3025 * language.h (language_data): Delete la_watch_location_expression
3026 field.
3027 (language_defn::watch_location_expression): Declare new member
3028 function.
3029 * m2-lang.c (m2_language_data): Delete
3030 la_watch_location_expression initializer.
3031 * objc-lang.c (objc_language_data): Likewise.
3032 * opencl-lang.c (opencl_language_data): Likewise.
3033 * p-lang.c (pascal_language_data): Likewise.
3034 * rust-lang.c (rust_watch_location_expression): Rename to
3035 rust_language::watch_location_expression.
3036 (rust_language_data): Delete la_watch_location_expression
3037 initializer.
3038 (rust_language::watch_location_expression): New member function,
3039 implementation from rust_watch_location_expression.
3040
3041 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3042
3043 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
3044 ada_language::collect_symbol_completion_matches.
3045 (ada_language_data): Delete la_collect_symbol_completion_matches
3046 initializer.
3047 (ada_language::collect_symbol_completion_matches): New member
3048 function, implementation from
3049 ada_collect_symbol_completion_matches.
3050 * c-lang.c (c_language_data): Delete
3051 la_collect_symbol_completion_matches initializer.
3052 (cplus_language_data): Likewise.
3053 (asm_language_data): Likewise.
3054 (minimal_language_data): Likewise.
3055 * d-lang.c (d_language_data): Likewise.
3056 * f-lang.c (f_collect_symbol_completion_matches): Rename to
3057 f_language::collect_symbol_completion_matches.
3058 (f_language_data): Delete la_collect_symbol_completion_matches
3059 initializer.
3060 (f_language::collect_symbol_completion_matches) New member
3061 function, implementation from f_collect_symbol_completion_matches.
3062 * go-lang.c (go_language_data): Delete
3063 la_collect_symbol_completion_matches initializer.
3064 * language.c (unknown_language_data): Likewise.
3065 (auto_language_data): Likewise.
3066 * language.h (language_data): Delete
3067 la_collect_symbol_completion_matches field.
3068 (language_defn::collect_symbol_completion_matches): New member
3069 function.
3070 * m2-lang.c (m2_language_data): Delete
3071 la_collect_symbol_completion_matches initializer.
3072 * objc-lang.c (objc_language_data): Likewise.
3073 * opencl-lang.c (opencl_language_data): Likewise.
3074 * p-lang.c (pascal_language_data): Likewise.
3075 * rust-lang.c (rust_language_data): Likewise.
3076 * symtab.c (default_collect_symbol_completion_matches): Delete.
3077 (collect_symbol_completion_matches): Update call to
3078 collect_symbol_completion_matches.
3079 (collect_symbol_completion_matches_type): Likewise.
3080 * symtab.h (default_collect_symbol_completion_matches): Delete
3081 declaration.
3082
3083 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3084
3085 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
3086 (ada_language_data): Delete la_word_break_characters initializer.
3087 (ada_language::word_break_characters): New member function.
3088 * c-lang.c (c_language_data): Delete la_word_break_characters
3089 initializer.
3090 (cplus_language_data): Likewise.
3091 (asm_language_data): Likewise.
3092 (minimal_language_data): Likewise.
3093 * completer.c: Update global comment.
3094 (advance_to_expression_complete_word_point): Update call to
3095 word_break_characters.
3096 (complete_files_symbols): Likewise.
3097 (complete_line_internal_1): Likewise.
3098 (default_completer_handle_brkchars): Likewise.
3099 (skip_quoted_chars): Likewise.
3100 * d-lang.c (d_language_data): Delete la_word_break_characters
3101 initializer.
3102 * f-lang.c (f_word_break_characters): Delete.
3103 (f_language_data): Delete la_word_break_characters initializer.
3104 (f_language::word_break_characters): New member function.
3105 * go-lang.c (go_language_data): Delete la_word_break_characters
3106 initializer.
3107 * language.c (unknown_language_data): Likewise.
3108 (auto_language_data): Likewise.
3109 * language.h (default_word_break_characters): Move declaration to
3110 earlier in the file.
3111 (language_data): Delete la_word_break_characters field.
3112 (language_defn::word_break_characters): New member function.
3113 * m2-lang.c (m2_language_data): Delete la_word_break_characters
3114 initializer.
3115 * objc-lang.c (objc_language_data): Likewise.
3116 * opencl-lang.c (opencl_language_data): Likewise.
3117 * p-lang.c (pascal_language_data): Likewise.
3118 * rust-lang.c (rust_language_data): Likewise.
3119
3120 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3121
3122 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
3123 (ada_language_data): Delete la_get_symbol_name_matcher
3124 initializer.
3125 (language_defn::get_symbol_name_matcher_inner): New member
3126 function.
3127 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
3128 initializer.
3129 (cplus_language_data): Likewise.
3130 (cplus_language::get_symbol_name_matcher_inner): New member
3131 function.
3132 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
3133 (minimal_language_data): Likewise.
3134 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
3135 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
3136 initializer.
3137 * dictionary.c (iter_match_first_hashed): Update call to
3138 get_symbol_name_matcher.
3139 (iter_match_next_hashed): Likewise.
3140 (iter_match_next_linear): Likewise.
3141 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
3142 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
3143 initializer.
3144 (f_language::get_symbol_name_matcher_inner): New member function.
3145 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
3146 initializer.
3147 * language.c (default_symbol_name_matcher): Update header comment,
3148 make static.
3149 (language_defn::get_symbol_name_matcher): New definition.
3150 (language_defn::get_symbol_name_matcher_inner): Likewise.
3151 (get_symbol_name_matcher): Delete.
3152 (unknown_language_data): Delete la_get_symbol_name_matcher
3153 initializer.
3154 (auto_language_data): Likewise.
3155 * language.h (language_data): Delete la_get_symbol_name_matcher
3156 field.
3157 (language_defn::get_symbol_name_matcher): New member function.
3158 (language_defn::get_symbol_name_matcher_inner): Likewise.
3159 (default_symbol_name_matcher): Delete declaration.
3160 * linespec.c (find_methods): Update call to
3161 get_symbol_name_matcher.
3162 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
3163 initializer.
3164 * minsyms.c (lookup_minimal_symbol): Update call to
3165 get_symbol_name_matcher.
3166 (iterate_over_minimal_symbols): Likewise.
3167 * objc-lang.c (objc_language_data): Delete
3168 la_get_symbol_name_matcher initializer.
3169 * opencl-lang.c (opencl_language_data): Likewise.
3170 * p-lang.c (pascal_language_data): Likewise.
3171 * psymtab.c (psymbol_name_matches): Update call to
3172 get_symbol_name_matcher.
3173 * rust-lang.c (rust_language_data): Delete
3174 la_get_symbol_name_matcher initializer.
3175 * symtab.c (symbol_matches_search_name): Update call to
3176 get_symbol_name_matcher.
3177 (compare_symbol_name): Likewise.
3178
3179 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3180
3181 * ada-lang.c (ada_language_data): Delete la_compute_program
3182 initializer.
3183 * c-lang.c (c_language_data): Likewise.
3184 (c_language::compute_program): New member function.
3185 (cplus_language_data): Delete la_compute_program initializer.
3186 (cplus_language::compute_program): New member function.
3187 (asm_language_data): Delete la_compute_program initializer.
3188 (minimal_language_data): Likewise.
3189 * c-lang.h (c_compute_program): Update comment.
3190 (cplus_compute_program): Likewise.
3191 * compile/compile-c-support.c (c_compute_program): Likewise.
3192 (cplus_compute_program): Likewise.
3193 * compile/compile.c (compile_to_object): Update call to
3194 la_compute_program.
3195 * d-lang.c (d_language_data): Delete la_compute_program
3196 initializer.
3197 * f-lang.c (f_language_data): Likewise.
3198 * go-lang.c (go_language_data): Likewise.
3199 * language.c (unknown_language_data): Likewise.
3200 (auto_language_data): Likewise.
3201 * language.h (language_data): Delete la_compute_program field.
3202 (language_defn::compute_program): New member function.
3203 * m2-lang.c (m2_language_data): Delete la_compute_program
3204 initializer.
3205 * objc-lang.c (objc_language_data): Likewise.
3206 * opencl-lang.c (opencl_language_data): Likewise.
3207 * p-lang.c (pascal_language_data): Likewise.
3208 * rust-lang.c (rust_language_data): Likewise.
3209
3210 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3211
3212 * ada-lang.c (ada_language_data) Delete
3213 la_class_name_from_physname initializer.
3214 * c-lang.c (c_language_data): Likewise.
3215 (cplus_language_data): Likewise.
3216 (cplus_language::class_name_from_physname): New member function.
3217 (asm_language_data): Delete la_class_name_from_physname
3218 initializer.
3219 (minimal_language_data): Likewise.
3220 * d-lang.c (d_language_data): Likewise.
3221 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
3222 method on language_defn class.
3223 (guess_full_die_structure_name): Likewise.
3224 * f-lang.c (f_language_data): Delete la_class_name_from_physname
3225 initializer.
3226 * go-lang.c (go_language_data): Likewise.
3227 * language.c (language_class_name_from_physname): Delete.
3228 (unk_lang_class_name): Delete.
3229 (unknown_language_data): Delete la_class_name_from_physname
3230 initializer.
3231 (auto_language_data): Likewise.
3232 * language.h (language_data): Delete la_class_name_from_physname
3233 field.
3234 (language_defn::class_name_from_physname): New function.
3235 (language_class_name_from_physname): Delete declaration.
3236 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
3237 initializer.
3238 * objc-lang.c (objc_language_data): Likewise.
3239 * opencl-lang.c (opencl_language_data): Likewise.
3240 * p-lang.c (pascal_language_data): Likewise.
3241 * rust-lang.c (rust_language_data): Likewise.
3242
3243 2020-06-16 Tom Tromey <tom@tromey.com>
3244
3245 * tui/tui-data.h (STATUS_NAME): New macro.
3246 * tui/tui-layout.c (tui_remove_some_windows)
3247 (initialize_known_windows, tui_register_window)
3248 (tui_layout_split::remove_windows, initialize_layouts)
3249 (tui_new_layout_command): Don't use hard-coded window names.
3250
3251 2020-06-16 Tom Tromey <tom@tromey.com>
3252
3253 PR tui/25348:
3254 * tui/tui.c (tui_ensure_readline_initialized): Rename from
3255 tui_initialize_readline. Only run once. Call rl_initialize.
3256 * tui/tui.h (tui_ensure_readline_initialized): Rename from
3257 tui_initialize_readline.
3258 * tui/tui-io.c (tui_setup_io): Call
3259 tui_ensure_readline_initialized.
3260 * tui/tui-interp.c (tui_interp::init): Update.
3261
3262 2020-06-16 Tom Tromey <tom@tromey.com>
3263
3264 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
3265 Also preserve the status window.
3266
3267 2020-06-16 Tom Tromey <tom@tromey.com>
3268
3269 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
3270 where m_window==nullptr.
3271
3272 2020-06-15 Tom Tromey <tromey@adacore.com>
3273
3274 * windows-nat.c (windows_nat::handle_output_debug_string):
3275 Update.
3276 (windows_nat::handle_ms_vc_exception): Update.
3277 * target.h (target_read_string): Change API.
3278 * target.c (target_read_string): Change API.
3279 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
3280 Update.
3281 * solib-frv.c (frv_current_sos): Update.
3282 * solib-dsbt.c (dsbt_current_sos): Update.
3283 * solib-darwin.c (darwin_current_sos): Update.
3284 * linux-thread-db.c (inferior_has_bug): Update.
3285 * expprint.c (print_subexp_standard): Update.
3286 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
3287 (ada_exception_message_1): Update.
3288
3289 2020-06-15 Tom Tromey <tromey@adacore.com>
3290
3291 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
3292
3293 2020-06-15 Tom Tromey <tromey@adacore.com>
3294
3295 * valprint.c (read_string): Update comment.
3296 * target.c (MIN): Remove.
3297 (target_read_string): Rewrite.
3298
3299 2020-06-15 Tom Tromey <tromey@adacore.com>
3300
3301 * corefile.c (read_memory_string): Remove.
3302 * ada-valprint.c (ada_value_print_ptr): Update.
3303 * ada-lang.h (ada_tag_name): Change return type.
3304 * ada-lang.c (type_from_tag): Update.
3305 (ada_tag_name_from_tsd): Change return type. Use
3306 target_read_string.
3307 (ada_tag_name): Likewise.
3308 * gdbcore.h (read_memory_string): Don't declare.
3309
3310 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
3311
3312 * symtab.c (rbreak_command): Ignore Windows drive colon.
3313
3314 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
3315
3316 * NEWS: Mention removed GDBserver host support.
3317
3318 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
3319
3320 * features/riscv/rebuild-csr-xml.sh: Updated.
3321
3322 2020-06-11 Tom Tromey <tom@tromey.com>
3323
3324 PR gdb/18318:
3325 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3326
3327 2020-06-09 Jonny Grant <jg@jguk.org>
3328 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3329
3330 * main.c (captured_main_1): Don't print new line after help.
3331 (print_gdb_help): add mailing list and IRC channel information
3332 to --help. Add new lines between items in the footer. Remove
3333 quotes around bug url.
3334
3335 2020-06-11 Keith Seitz <keiths@redhat.com>
3336
3337 PR gdb/21356
3338 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3339 Resolve typedefs for type length calculations.
3340
3341 2020-06-10 Tom de Vries <tdevries@suse.de>
3342
3343 PR ada/24713
3344 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3345 (write_psymbols): Enable .gdb_index for ada.
3346 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3347 ada.
3348
3349 2020-06-10 Tom de Vries <tdevries@suse.de>
3350
3351 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3352 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3353 namei" instead of "const char *name" argument.
3354 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3355 dw2_symtab_iter_init.
3356
3357 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3358
3359 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3360 to use type::field and field::type instead.
3361
3362 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3363
3364 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3365 to use field::type instead.
3366
3367 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3368
3369 * gdbtypes.h (struct field) <type, set_type>: New methods.
3370 Rename `type` field to...
3371 <m_type>: ... this. Change references throughout to use type or
3372 set_type methods.
3373 (FIELD_TYPE): Use field::type. Change call sites that modify
3374 the field's type to use field::set_type instead.
3375
3376 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3377
3378 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3379 to use type::index_type instead.
3380
3381 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3382
3383 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3384 methods.
3385 (TYPE_INDEX_TYPE): Use type::index_type.
3386 * gdbtypes.c (create_array_type_with_stride): Likewise.
3387
3388 2020-06-07 Tom Tromey <tom@tromey.com>
3389
3390 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3391 parameter.
3392 (generic_value_print): Update.
3393
3394 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3395
3396 Revert commit 982a38f60b0.
3397 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3398
3399 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3400
3401 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3402 avoid use after free.
3403
3404 2020-06-05 Tom de Vries <tdevries@suse.de>
3405
3406 * NEWS: Fix typos.
3407
3408 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
3409
3410 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3411 the per_bfd object.
3412 (dwarf2_read_debug_names): Likewise.
3413 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3414 object when re-using a per_bfd object with an index.
3415
3416 2020-06-03 Tom de Vries <tdevries@suse.de>
3417
3418 PR symtab/26046
3419 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3420 children for C++.
3421 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3422 DW_TAG_subprogram.
3423
3424 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3425
3426 * ada-lang.c (ada_language_data): Delete skip_trampoline
3427 initializer.
3428 * c-lang.c (c_language_data): Likewise.
3429 (cplus_language_data): Likewise.
3430 (cplus_language::skip_trampoline): New member function.
3431 (asm_language_data): Delete skip_trampoline initializer.
3432 (minimal_language_data): Likewise.
3433 * d-lang.c (d_language_data): Likewise.
3434 * f-lang.c (f_language_data): Likewise.
3435 * go-lang.c (go_language_data): Likewise.
3436 * language.c (unk_lang_trampoline): Delete function.
3437 (skip_language_trampoline): Update.
3438 (unknown_language_data): Delete skip_trampoline initializer.
3439 (auto_language_data): Likewise.
3440 * language.h (language_data): Delete skip_trampoline field.
3441 (language_defn::skip_trampoline): New function.
3442 * m2-lang.c (m2_language_data): Delete skip_trampoline
3443 initializer.
3444 * objc-lang.c (objc_skip_trampoline): Delete function, move
3445 implementation to objc_language::skip_trampoline.
3446 (objc_language_data): Delete skip_trampoline initializer.
3447 (objc_language::skip_trampoline): New member function with
3448 implementation from objc_skip_trampoline.
3449 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3450 initializer.
3451 * p-lang.c (pascal_language_data): Likewise.
3452 * rust-lang.c (rust_language_data): Likewise.
3453
3454 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3455
3456 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3457 (ada_language::demangle): New member function.
3458 * c-lang.c (c_language_data): Delete la_demangle initializer.
3459 (cplus_language_data): Delete la_demangle initializer.
3460 (cplus_language::demangle): New member function.
3461 (asm_language_data): Delete la_demangle initializer.
3462 (minimal_language_data): Delete la_demangle initializer.
3463 * d-lang.c (d_language_data): Delete la_demangle initializer.
3464 (d_language::demangle): New member function.
3465 * f-lang.c (f_language_data): Delete la_demangle initializer.
3466 (f_language::demangle): New member function.
3467 * go-lang.c (go_language_data): Delete la_demangle initializer.
3468 (go_language::demangle): New member function.
3469 * language.c (language_demangle): Update.
3470 (unk_lang_demangle): Delete.
3471 (unknown_language_data): Delete la_demangle initializer.
3472 (unknown_language::demangle): New member function.
3473 (auto_language_data): Delete la_demangle initializer.
3474 (auto_language::demangle): New member function.
3475 * language.h (language_data): Delete la_demangle field.
3476 (language_defn::demangle): New function.
3477 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3478 * objc-lang.c (objc_language_data): Delete la_demangle
3479 initializer.
3480 (objc_language::demangle): New member function.
3481 * opencl-lang.c (opencl_language_data): Delete la_demangle
3482 initializer.
3483 * p-lang.c (pascal_language_data): Likewise.
3484 * rust-lang.c (rust_language_data): Likewise.
3485 (rust_language::demangle): New member function.
3486
3487 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3488
3489 * ada-lang.c (ada_language_data): Delete la_print_type
3490 initializer.
3491 (ada_language::print_type): New member function.
3492 * c-lang.c (c_language_data): Delete la_print_type initializer.
3493 (c_language::print_type): New member function.
3494 (cplus_language_data): Delete la_print_type initializer.
3495 (cplus_language::print_type): New member function.
3496 (asm_language_data): Delete la_print_type initializer.
3497 (asm_language::print_type): New member function.
3498 (minimal_language_data): Delete la_print_type initializer.
3499 (minimal_language::print_type): New member function.
3500 * d-lang.c (d_language_data): Delete la_print_type initializer.
3501 (d_language::print_type): New member function.
3502 * f-lang.c (f_language_data): Delete la_print_type initializer.
3503 (f_language::print_type): New member function.
3504 * go-lang.c (go_language_data): Delete la_print_type initializer.
3505 (go_language::print_type): New member function.
3506 * language.c (unk_lang_print_type): Delete.
3507 (unknown_language_data): Delete la_print_type initializer.
3508 (unknown_language::print_type): New member function.
3509 (auto_language_data): Delete la_print_type initializer.
3510 (auto_language::print_type): New member function.
3511 * language.h (language_data): Delete la_print_type field.
3512 (language_defn::print_type): New function.
3513 (LA_PRINT_TYPE): Update.
3514 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3515 (m2_language::print_type): New member function.
3516 * objc-lang.c (objc_language_data): Delete la_print_type
3517 initializer.
3518 (objc_language::print_type): New member function.
3519 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3520 to opencl_language::print_type.
3521 (opencl_language_data): Delete la_print_type initializer.
3522 (opencl_language::print_type): New member function, implementation
3523 from opencl_print_type.
3524 * p-lang.c (pascal_language_data): Delete la_print_type
3525 initializer.
3526 (pascal_language::print_type): New member function.
3527 * rust-lang.c (rust_print_type): Delete, implementation moved to
3528 rust_language::print_type.
3529 (rust_language_data): Delete la_print_type initializer.
3530 (rust_language::print_type): New member function, implementation
3531 from rust_print_type.
3532
3533 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3534
3535 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3536 implementation moves to...
3537 (ada_language::sniff_from_mangled_name): ...here. Update return
3538 type.
3539 (ada_language_data): Delete la_sniff_from_mangled_name
3540 initializer.
3541 * c-lang.c (c_language_data): Likewise.
3542 (cplus_language_data): Likewise.
3543 (cplus_language::sniff_from_mangled_name): New member function,
3544 implementation taken from gdb_sniff_from_mangled_name.
3545 (asm_language_data): Delete la_sniff_from_mangled_name
3546 initializer.
3547 (minimal_language_data): Likewise.
3548 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3549 implementation moves to cplus_language::sniff_from_mangled_name.
3550 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3551 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3552 moves to...
3553 (d_language::sniff_from_mangled_name): ...here.
3554 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3555 * f-lang.c (f_language_data): Likewise.
3556 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3557 moves to...
3558 (go_language::sniff_from_mangled_name): ...here.
3559 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3560 * language.c (language_sniff_from_mangled_name): Delete.
3561 (unknown_language_data): Delete la_sniff_from_mangled_name
3562 initializer.
3563 (auto_language_data): Likewise.
3564 * language.h (language_data): Delete la_sniff_from_mangled_name
3565 field.
3566 (language_defn::sniff_from_mangled_name): New function.
3567 (language_sniff_from_mangled_name): Delete declaration.
3568 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3569 field.
3570 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3571 implementation moves to...
3572 (objc_language::sniff_from_mangled_name): ...here.
3573 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3574 * opencl-lang.c (opencl_language_data): Likewise.
3575 * p-lang.c (pascal_language_data): Likewise.
3576 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3577 implementation moves to...
3578 (rust_language::sniff_from_mangled_name): ...here.
3579 (rust_language_data): Delete la_sniff_from_mangled_name
3580 initializer.
3581 * symtab.c (symbol_find_demangled_name): Call
3582 sniff_from_mangled_name member function.
3583
3584 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3585
3586 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3587 initializer.
3588 * c-lang.c (c_language_data): Likewise.
3589 (cplus_language_data): Likewise.
3590 (cplus_language::search_name_hash): New member function.
3591 (asm_language_data): Delete la_search_name_hash initializer.
3592 (minimal_language_data): Likewise.
3593 * d-lang.c (d_language_data): Likewise.
3594 * dictionary.c (default_search_name_hash): Rename to...
3595 (language_defn::search_name_hash): ...this.
3596 * f-lang.c (f_language_data): Likewise.
3597 (f_language::search_name_hash): New member function.
3598 * go-lang.c (go_language_data): Delete la_search_name_hash
3599 initializer.
3600 * language.c (unknown_language_data): Likewise.
3601 (auto_language_data): Likewise.
3602 * language.h (struct language_data): Delete la_search_name_hash
3603 field.
3604 (language_defn::search_name_hash): Declare new member function.
3605 (default_search_name_hash): Delete declaration.
3606 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3607 initializer.
3608 * objc-lang.c (objc_language_data): Likewise.
3609 * opencl-lang.c (opencl_language_data): Likewise.
3610 * p-lang.c (pascal_language_data): Likewise.
3611 * rust-lang.c (rust_language_data): Likewise.
3612 * symtab.c (search_name_hash): Update call.
3613
3614 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3615
3616 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3617 initializer.
3618 * c-lang.c (class compile_instance): Declare.
3619 (c_language_data): Delete la_get_compile_instance initializer.
3620 (c_language::get_compile_instance): New member function.
3621 (cplus_language_data): Delete la_get_compile_instance initializer.
3622 (cplus_language::get_compile_instance): New member function.
3623 (asm_language_data): Delete la_get_compile_instance initializer.
3624 (minimal_language_data): Likewise.
3625 * c-lang.h (c_get_compile_context): Update comment.
3626 (cplus_get_compile_context): Update comment.
3627 * compile/compile.c (compile_to_object): Update calls, don't rely
3628 on function pointer being NULL.
3629 * d-lang.c (d_language_data): Delete la_get_compile_instance
3630 initializer.
3631 * f-lang.c (f_language_data): Likewise.
3632 * go-lang.c (go_language_data): Likewise.
3633 * language.c (unknown_language_data): Likewise.
3634 (auto_language_data): Likewise.
3635 * language.h (language_data): Delete la_get_compile_instance field.
3636 (language_defn::get_compile_instance): New member function.
3637 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3638 initializer.
3639 * objc-lang.c (objc_language_data): Likewise.
3640 * opencl-lang.c (opencl_language_data): Likewise.
3641 * p-lang.c (pascal_language_data): Likewise.
3642 * rust-lang.c (rust_language_data): Likewise.
3643
3644 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3645
3646 * ada-lang.c (ada_add_all_symbols): Update comment.
3647 (ada_iterate_over_symbols): Delete, move implementation to...
3648 (ada_language::iterate_over_symbols): ...here, a new member
3649 function, rewrite to use range based for loop.
3650 (ada_language_data): Delete la_iterate_over_symbols initializer.
3651 * c-lang.c (c_language_data): Likewise.
3652 (cplus_language_data): Likewise.
3653 (asm_language_data): Likewise.
3654 (minimal_language_data): Likewise.
3655 * d-lang.c (d_language_data): Likewise.
3656 * f-lang.c (f_language_data): Likewise.
3657 * go-lang.c (go_language_data): Likewise.
3658 * language.c (unknown_language_data): Likewise.
3659 (auto_language_data): Likewise.
3660 * language.h (language_data): Delete la_iterate_over_symbols field.
3661 (language_defn::iterate_over_symbols): New member function.
3662 (LA_ITERATE_OVER_SYMBOLS): Update.
3663 * linespec.c (iterate_over_all_matching_symtabs): Update.
3664 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3665 initializer.
3666 * objc-lang.c (objc_language_data): Likewise.
3667 * opencl-lang.c (opencl_language_data): Likewise.
3668 * p-lang.c (pascal_language_data): Likewise.
3669 * rust-lang.c (rust_language_data): Likewise.
3670
3671 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3672
3673 * ada-lang.c (ada_language_data): Delete
3674 la_lookup_transparent_type initializer.
3675 * c-lang.c (c_language_data): Likewise.
3676 (cplus_language_data): Likewise.
3677 (cplus_language::lookup_transparent_type): New member function.
3678 (asm_language_data): Delete la_lookup_transparent_type
3679 initializer.
3680 (minimal_language_data): Likewise.
3681 * d-lang.c (d_language_data): Likewise.
3682 * f-lang.c (f_language_data): Likewise.
3683 * go-lang.c (go_language_data): Likewise.
3684 * language.c (unknown_language_data): Likewise.
3685 (auto_language_data): Likewise.
3686 * language.h (struct language_data): Delete
3687 la_lookup_transparent_type field.
3688 (language_defn::lookup_transparent_type): New member function.
3689 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3690 initializer.
3691 * objc-lang.c (objc_language_data): Likewise.
3692 * opencl-lang.c (opencl_language_data): Likewise.
3693 * p-lang.c (pascal_language_data): Likewise.
3694 * rust-lang.c (rust_language_data): Likewise.
3695 * symtab.c (symbol_matches_domain): Update call.
3696
3697 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3698
3699 * ada-lang.c (ada_language_arch_info): Delete function, move
3700 implementation to...
3701 (ada_language::language_arch_info): ...here, a new member
3702 function.
3703 (ada_language_data): Delete la_language_arch_info.
3704 * c-lang.c (c_language_data): Likewise.
3705 (c_language::language_arch_info): New member function.
3706 (cplus_language_arch_info): Delete function, move
3707 implementation to...
3708 (cplus_language::language_arch_info): ...here, a new member
3709 function.
3710 (cplus_language_data): Delete la_language_arch_info.
3711 (asm_language_data): Likewise.
3712 (asm_language::language_arch_info): New member function.
3713 (minimal_language_data): Delete la_language_arch_info.
3714 (minimal_language::language_arch_info): New member function.
3715 * d-lang.c (d_language_arch_info): Delete function, move
3716 implementation to...
3717 (d_language::language_arch_info): ...here, a new member
3718 function.
3719 (d_language_data): Delete la_language_arch_info.
3720 * f-lang.c (f_language_arch_info): Delete function, move
3721 implementation to...
3722 (f_language::language_arch_info): ...here, a new member
3723 function.
3724 (f_language_data): Delete la_language_arch_info.
3725 * go-lang.c (go_language_arch_info): Delete function, move
3726 implementation to...
3727 (go_language::language_arch_info): ...here, a new member
3728 function.
3729 (go_language_data): Delete la_language_arch_info.
3730 * language.c (unknown_language_data): Likewise.
3731 (unknown_language::language_arch_info): New member function.
3732 (auto_language_data): Delete la_language_arch_info.
3733 (auto_language::language_arch_info): New member function.
3734 (language_gdbarch_post_init): Update call to
3735 la_language_arch_info.
3736 * language.h (language_data): Delete la_language_arch_info
3737 function pointer.
3738 (language_defn::language_arch_info): New function.
3739 * m2-lang.c (m2_language_arch_info): Delete function, move
3740 implementation to...
3741 (m2_language::language_arch_info): ...here, a new member
3742 function.
3743 (m2_language_data): Delete la_language_arch_info.
3744 * objc-lang.c (objc_language_arch_info): Delete function, move
3745 implementation to...
3746 (objc_language::language_arch_info): ...here, a new member
3747 function.
3748 (objc_language_data): Delete la_language_arch_info.
3749 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3750 implementation to...
3751 (opencl_language::language_arch_info): ...here, a new member
3752 function.
3753 (opencl_language_data): Delete la_language_arch_info.
3754 * p-lang.c (pascal_language_arch_info): Delete function, move
3755 implementation to...
3756 (pascal_language::language_arch_info): ...here, a new member
3757 function.
3758 (pascal_language_data): Delete la_language_arch_info.
3759 * rust-lang.c (rust_language_arch_info): Delete function, move
3760 implementation to...
3761 (rust_language::language_arch_info): ...here, a new member
3762 function.
3763 (rust_language_data): Delete la_language_arch_info.
3764
3765 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3766
3767 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3768 initializer.
3769 * c-lang.c (c_language_data): Likewise.
3770 (cplus_language_data): Likewise.
3771 (cplus_language::pass_by_reference_info): New method.
3772 (asm_language_data): Delete la_pass_by_reference initializer.
3773 (minimal_language_data): Likewise.
3774 * cp-abi.c (cp_pass_by_reference): Remove use of
3775 default_pass_by_reference.
3776 * d-lang.c (d_language_data): Likewise.
3777 * f-lang.c (f_language_data): Likewise.
3778 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3779 default_pass_by_reference.
3780 * go-lang.c (go_language_data): Likewise.
3781 * language.c (language_pass_by_reference): Update.
3782 (default_pass_by_reference): Delete.
3783 (unknown_language_data): Delete la_pass_by_reference
3784 initializer.
3785 (auto_language_data): Likewise.
3786 * language.h (struct language_data): Delete la_pass_by_reference
3787 field.
3788 (language_defn::pass_by_reference_info): New member function.
3789 (default_pass_by_reference): Delete declaration.
3790 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3791 initializer.
3792 * objc-lang.c (objc_language_data): Likewise.
3793 * opencl-lang.c (opencl_language_data): Likewise.
3794 * p-lang.c (pascal_language_data): Likewise.
3795 * rust-lang.c (rust_language_data): Likewise.
3796
3797 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3798
3799 * ada-lang.c (ada_read_var_value): Delete function, move
3800 implementation to...
3801 (ada_language::read_var_value): ...here.
3802 (ada_language_data): Delete la_read_var_value initializer.
3803 * c-lang.c (c_language_data): Likewise.
3804 (cplus_language_data): Likewise.
3805 (minimal_language_data): Likewise.
3806 * d-lang.c (d_language_data): Likewise.
3807 * f-lang.c (f_language_data): Likewise.
3808 * findvar.c (default_read_var_value): Rename to...
3809 (language_defn::read_var_value): ...this.
3810 * findvar.c (read_var_value): Update header comment, and change to
3811 call member function instead of function pointer.
3812 * go-lang.c (go_language_data): Likewise.
3813 * language.c (unknown_language_data): Delete la_read_var_value
3814 initializer.
3815 (auto_language_data): Likewise.
3816 * language.h (struct language_data): Delete la_read_var_value
3817 field.
3818 (language_defn::read_var_value): New member function.
3819 (default_read_var_value): Delete declaration.
3820 * m2-lang.c (m2_language_data): Delete la_read_var_value
3821 initializer.
3822 * objc-lang.c (objc_language_data): Likewise.
3823 * opencl-lang.c (opencl_language_data): Likewise.
3824 * p-lang.c (pascal_language_data): Likewise.
3825 * rust-lang.c (rust_language_data): Likewise.
3826 * value.h (default_read_var_value): Delete declaration.
3827
3828 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3829
3830 * ada-lang.c (ada_print_array_index): Delete function, move
3831 implementation to...
3832 (ada_language::print_array_index): ...here.
3833 (ada_language_data): Delete la_print_array_index initializer.
3834 * c-lang.c (c_language_data): Likewise.
3835 (cplus_language_data): Likewise.
3836 (minimal_language_data): Likewise.
3837 * d-lang.c (d_language_data): Likewise.
3838 * f-lang.c (f_language_data): Likewise.
3839 * go-lang.c (go_language_data): Likewise.
3840 * language.c (default_print_array_index): Delete function, move
3841 implementation to...
3842 (language_defn::print_array_index): ...here.
3843 (unknown_language_data): Delete la_print_array_index initializer.
3844 (auto_language_data): Likewise.
3845 * language.h (struct language_data): Delete la_print_array_index
3846 field.
3847 (language_defn::print_array_index): New member function.
3848 (LA_PRINT_ARRAY_INDEX): Update.
3849 (default_print_array_index): Delete declaration.
3850 * m2-lang.c (m2_language_data): Delete la_print_array_index
3851 initializer.
3852 * objc-lang.c (objc_language_data): Likewise.
3853 * opencl-lang.c (opencl_language_data): Likewise.
3854 * p-lang.c (pascal_language_data): Likewise.
3855 * rust-lang.c (rust_language_data): Likewise.
3856
3857 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3858
3859 * gdb/ada-lang.c (ada_language_defn): Convert to...
3860 (ada_language_data): ...this.
3861 (class ada_language): New class.
3862 (ada_language_defn): New static global.
3863 * gdb/c-lang.c (c_language_defn): Convert to...
3864 (c_language_data): ...this.
3865 (class c_language): New class.
3866 (c_language_defn): New static global.
3867 (cplus_language_defn): Convert to...
3868 (cplus_language_data): ...this.
3869 (class cplus_language): New class.
3870 (cplus_language_defn): New static global.
3871 (asm_language_defn): Convert to...
3872 (asm_language_data): ...this.
3873 (class asm_language): New class.
3874 (asm_language_defn): New static global.
3875 (minimal_language_defn): Convert to...
3876 (minimal_language_data): ...this.
3877 (class minimal_language): New class.
3878 (minimal_language_defn): New static global.
3879 * gdb/d-lang.c (d_language_defn): Convert to...
3880 (d_language_data): ...this.
3881 (class d_language): New class.
3882 (d_language_defn): New static global.
3883 * gdb/f-lang.c (f_language_defn): Convert to...
3884 (f_language_data): ...this.
3885 (class f_language): New class.
3886 (f_language_defn): New static global.
3887 * gdb/go-lang.c (go_language_defn): Convert to...
3888 (go_language_data): ...this.
3889 (class go_language): New class.
3890 (go_language_defn): New static global.
3891 * gdb/language.c (unknown_language_defn): Remove declaration.
3892 (current_language): Initialize to nullptr, real initialization is
3893 moved to _initialize_language.
3894 (languages): Delete global.
3895 (language_defn::languages): Define.
3896 (set_language_command): Use language_defn::languages.
3897 (set_language): Likewise.
3898 (range_error): Likewise.
3899 (language_enum): Likewise.
3900 (language_def): Likewise.
3901 (add_set_language_command): Use language_def::languages for the
3902 language list, and language_def to lookup language pointers.
3903 (skip_language_trampoline): Use language_defn::languages.
3904 (unknown_language_defn): Convert to...
3905 (unknown_language_data): ...this.
3906 (class unknown_language): New class.
3907 (unknown_language_defn): New static global.
3908 (auto_language_defn): Convert to...
3909 (auto_language_data): ...this.
3910 (class auto_language): New class.
3911 (auto_language_defn): New static global.
3912 (language_gdbarch_post_init): Use language_defn::languages.
3913 (_initialize_language): Initialize current_language.
3914 * gdb/language.h (struct language_defn): Rename to...
3915 (struct language_data): ...this.
3916 (struct language_defn): New.
3917 (auto_language_defn): Delete.
3918 (unknown_language_defn): Delete.
3919 (minimal_language_defn): Delete.
3920 (ada_language_defn): Delete.
3921 (asm_language_defn): Delete.
3922 (c_language_defn): Delete.
3923 (cplus_language_defn): Delete.
3924 (d_language_defn): Delete.
3925 (f_language_defn): Delete.
3926 (go_language_defn): Delete.
3927 (m2_language_defn): Delete.
3928 (objc_language_defn): Delete.
3929 (opencl_language_defn): Delete.
3930 (pascal_language_defn): Delete.
3931 (rust_language_defn): Delete.
3932 * gdb/m2-lang.c (m2_language_defn): Convert to...
3933 (m2_language_data): ...this.
3934 (class m2_language): New class.
3935 (m2_language_defn): New static global.
3936 * gdb/objc-lang.c (objc_language_defn): Convert to...
3937 (objc_language_data): ...this.
3938 (class objc_language): New class.
3939 (objc_language_defn): New static global.
3940 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3941 (opencl_language_data): ...this.
3942 (class opencl_language): New class.
3943 (opencl_language_defn): New static global.
3944 * gdb/p-lang.c (pascal_language_defn): Convert to...
3945 (pascal_language_data): ...this.
3946 (class pascal_language): New class.
3947 (pascal_language_defn): New static global.
3948 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3949 language pointer, update comment format.
3950 * gdb/rust-lang.c (rust_language_defn): Convert to...
3951 (rust_language_data): ...this.
3952 (class rust_language): New class.
3953 (rust_language_defn): New static global.
3954
3955 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3956
3957 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3958 member variable.
3959 <m_stmt_at_address>: New member variable.
3960 (lnp_state_machine::record_line): Don't record some lines, update
3961 tracking of is_stmt at the same address.
3962 (lnp_state_machine::lnp_state_machine): Initialise new member
3963 variables.
3964
3965 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3966
3967 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3968 "-include gnu-nat-mig.h".
3969 * gnu-nat-mig.h: New file.
3970 * gnu-nat.c: Include "gnu-nat-mig.h".
3971 (exc_server, msg_reply_server, notify_server,
3972 process_reply_server): Remove declarations.
3973
3974 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3975
3976 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3977 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3978 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3979 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3980 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3981 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3982 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3983 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3984 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3985 to gnu_nat_target class.
3986 * gnu-nat.c: Likewise.
3987 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3988 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3989 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3990 object.
3991 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3992 instead of `gnu_target'.
3993
3994 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3995
3996 * i386-gnu-tdep.c: Include "gdbcore.h"
3997 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3998 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3999 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
4000 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
4001 i386_gnu_sigcontext_addr): New functions
4002 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
4003 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
4004 tdep.
4005
4006 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4007
4008 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
4009 before fork_inferior call. Avoid calling it if target_is_pushed returns
4010 true.
4011
4012 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4013
4014 * gnu-nat.h (gnu_target): New variable declaration.
4015 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
4016 gnu_target.
4017 * gnu-nat.c (gnu_target): New variable.
4018 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
4019 add_thread_silent, and add_thread calls.
4020 (gnu_nat_target::create_inferior): Pass gnu_target to
4021 add_thread_silent, thread_change_ptid call.
4022 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
4023 call.
4024
4025 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4026
4027 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
4028 (gnu_nat_target::find_memory_regions): Remove unused
4029 `old_address' variable.
4030
4031 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4032
4033 * gnu-nat.c: Include "gdbarch.h".
4034
4035 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4036
4037 * reply_mig_hack.awk (Error return): Cast function through
4038 void *, to bypass compiler function call check.
4039
4040 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4041
4042 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
4043 $(srcdir)/reply_mig_hack.awk.
4044
4045 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4046
4047 * gnu-nat.h (gnu_debug_flag): Set type to bool.
4048
4049 2020-05-30 Jonny Grant <jg@jguk.org>
4050
4051 * configure.ac (ACX_BUGURL): change bug URL to https.
4052
4053 2020-05-30 Pedro Alves <palves@redhat.com>
4054
4055 * cp-support.c (replace_typedefs_template): New.
4056 (replace_typedefs_qualified_name): Handle
4057 DEMANGLE_COMPONENT_TEMPLATE.
4058
4059 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
4060
4061 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
4062 dwarf2/index-cache.h, dwarf2/index-write.c,
4063 dwarf2/index-write.h, dwarf2/line-header.c,
4064 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
4065 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
4066 variables and fields from `dwarf2_per_objfile` to just
4067 `per_objfile` throughout.
4068
4069 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
4070
4071 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4072 <push_dwarf_reg_entry_value>: Add comment.
4073
4074 2020-05-28 Kevin Buettner <kevinb@redhat.com>
4075 Keith Seitz <keiths@redhat.com>
4076
4077 * python/python.c (do_start_initialization): Call PyEval_SaveThread
4078 instead of PyEval_ReleaseLock.
4079 (class gdbpy_gil): Move to earlier in file.
4080 (finalize_python): Set gdb_python_initialized.
4081 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
4082 when not initialized.
4083
4084 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
4085
4086 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4087 <push_dwarf_reg_entry_value>: Remove assert. Override
4088 per_objfile with caller_per_objfile.
4089
4090 2020-05-28 Tom de Vries <tdevries@suse.de>
4091
4092 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
4093 PR gold/15646 workaround to symbol kind "type".
4094
4095 2020-05-27 Tom Tromey <tromey@adacore.com>
4096
4097 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
4098
4099 2020-05-27 Tom Tromey <tromey@adacore.com>
4100
4101 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
4102 Use htab_find_with_hash.
4103 <add_abbrev>: Remove "abbrev_number" parameter.
4104 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
4105 "abbrev_number" parameter. Use htab_find_slot_with_hash.
4106 (hash_abbrev): Add comment.
4107 (abbrev_table::lookup_abbrev): Move to header file.
4108 (abbrev_table::read): Update.
4109
4110 2020-05-27 Tom Tromey <tromey@adacore.com>
4111
4112 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
4113 method.
4114 <canonical_name>: New member.
4115 <raw_name>: Rename from "name".
4116 (partial_die_info): Initialize canonical_name.
4117 (scan_partial_symbols): Check raw_name.
4118 (partial_die_parent_scope, partial_die_full_name)
4119 (add_partial_symbol, add_partial_subprogram)
4120 (add_partial_enumeration, load_partial_dies): Use "name" method.
4121 (partial_die_info::name): New method.
4122 (partial_die_info::read, guess_partial_die_structure_name)
4123 (partial_die_info::fixup): Update.
4124
4125 2020-05-27 Tom Tromey <tromey@adacore.com>
4126
4127 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
4128 <get_ref_die_offset>: Inline.
4129 <get_ref_die_offset_complaint>: New method.
4130 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
4131 (attribute::get_ref_die_offset_complaint): Rename from
4132 get_ref_die_offset. Just issue complaint.
4133
4134 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4135
4136 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
4137
4138 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4139
4140 * exec.c (exec_file_attach): Use errno value of first openp failure.
4141
4142 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4143
4144 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
4145 Don't close thread handle.
4146
4147 2020-05-27 Tom Tromey <tom@tromey.com>
4148 Simon Marchi <simon.marchi@efficios.com>
4149
4150 * objfiles.h (struct objfile) <partial_symtabs>: Now a
4151 shared_ptr.
4152 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
4153 member.
4154 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
4155 dwarf2_per_bfd_objfile_data_key>: New globals.
4156 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
4157 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
4158 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
4159 shared.
4160 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
4161 short-circuit when sharing.
4162 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
4163 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
4164
4165 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4166
4167 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
4168 to...
4169 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
4170 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
4171
4172 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4173
4174 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
4175 build_name_components, find_name_components_bounds>:
4176 Add per_objfile parameter.
4177 (struct mapped_index) <symbol_name_at>: Likewise.
4178 (struct mapped_debug_names): Remove constructor.
4179 <dwarf2_per_objfile>: Remove field.
4180 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
4181 (mapped_index_base::find_name_components_bounds,
4182 mapped_index_base::build_name_components,
4183 dw2_expand_symtabs_matching_symbol): Likewise.
4184 (class mock_mapped_index) <symbol_name_at>: Likewise.
4185 (check_match): Likewise.
4186 (check_find_bounds_finds): Likewise.
4187 (test_mapped_index_find_name_component_bounds): Update.
4188 (CHECK_MATCH): Update.
4189 (dw2_expand_symtabs_matching): Update.
4190 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
4191 per_objfile parameter.
4192 <find_vec_in_debug_names>: Likewise.
4193 <m_per_objfile>: New field.
4194 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
4195 parameter.
4196 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
4197 (dw2_debug_names_iterator::next): Update.
4198 (dw2_debug_names_lookup_symbol): Update.
4199 (dw2_debug_names_expand_symtabs_for_function): Update.
4200 (dw2_debug_names_map_matching_symbols): Update.
4201 (dw2_debug_names_expand_symtabs_matching): Update.
4202 (dwarf2_read_debug_names): Update.
4203
4204 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4205
4206 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
4207 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
4208 move to dwarf2_per_objfile.
4209 <read_in_chain>: Remove.
4210 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
4211 remove_all_cus, age_comp_units>: New methods.
4212 <m_dwarf2_cus>: New member.
4213 (struct dwarf2_per_cu_data) <cu>: Remove.
4214 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
4215 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
4216 moved to methods of dwarf2_per_objfile.
4217 (dwarf2_clear_marks): Remove.
4218 (dwarf2_queue_item::~dwarf2_queue_item): Update.
4219 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
4220 (dwarf2_per_bfd::free_cached_comp_units): Remove.
4221 (dwarf2_per_objfile::remove_all_cus): New.
4222 (class free_cached_comp_units) <~free_cached_comp_units>:
4223 Update.
4224 (load_cu): Update.
4225 (dw2_do_instantiate_symtab): Adjust.
4226 (fill_in_sig_entry_from_dwo_entry): Adjust.
4227 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4228 (cutu_reader::cutu_reader): Likewise.
4229 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
4230 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
4231 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
4232 and dwarf2_per_objfile::age_comp_units.
4233 (load_partial_comp_unit): Update.
4234 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
4235 (process_queue): Likewise.
4236 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
4237 backlink.
4238 (dwarf2_read_addr_index): Likewise.
4239 (follow_die_offset): Likewise.
4240 (dwarf2_fetch_die_loc_sect_off): Likewise.
4241 (dwarf2_fetch_constant_bytes): Likewise.
4242 (dwarf2_fetch_die_type_sect_off): Likewise.
4243 (follow_die_sig_1): Likewise.
4244 (load_full_type_unit): Likewise.
4245 (read_signatured_type): Likewise.
4246 (dwarf2_cu::dwarf2_cu): Don't set cu field.
4247 (dwarf2_cu::~dwarf2_cu): Remove.
4248 (dwarf2_per_objfile::get_cu): New.
4249 (dwarf2_per_objfile::set_cu): New.
4250 (age_cached_comp_units): Rename to...
4251 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
4252 to std::unordered_map.
4253 (free_one_cached_comp_unit): Rename to...
4254 (dwarf2_per_objfile::remove_cu): ... this. Adjust
4255 to std::unordered_map.
4256 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
4257 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
4258 a dwarf2_per_objfile in data.
4259 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
4260 (dwarf2_clear_marks): Remove.
4261
4262 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4263
4264 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
4265 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
4266 (init_tu_and_read_dwo_dies): Likewise.
4267 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
4268 (cutu_reader::cutu_reader): Likewise.
4269 (load_partial_comp_unit): Likewise.
4270 (process_psymtab_comp_unit): Update.
4271 (build_type_psymtabs_1): Update.
4272 (process_skeletonless_type_unit): Update.
4273 (load_full_comp_unit): Update.
4274 (find_partial_die): Update.
4275 (dwarf2_read_addr_index): Update.
4276 (read_signatured_type): Update.
4277
4278 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4279
4280 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
4281 m_header_read_in>: New fields.
4282 <get_header>: New method.
4283 * dwarf2/read.c (per_cu_header_read_in): Remove.
4284 (dwarf2_per_cu_data::get_header): New.
4285 (dwarf2_per_cu_data::addr_size): Update.
4286 (dwarf2_per_cu_data::offset_size): Update.
4287 (dwarf2_per_cu_data::ref_addr_size): Update.
4288
4289 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4290
4291 * dwarf2/read.c (load_cu): Return dwarf2_cu.
4292 (dw2_do_instantiate_symtab): Update.
4293 (queue_and_load_all_dwo_tus): Change parameter from
4294 dwarf2_per_cu_data to dwarf2_cu.
4295 (dwarf2_fetch_die_loc_sect_off): Update.
4296 (dwarf2_fetch_constant_bytes): Update.
4297 (dwarf2_fetch_die_type_sect_off): Update.
4298
4299 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4300
4301 * dwarf2/read.c (process_full_comp_unit,
4302 process_full_type_unit): Remove per_cu, per_objfile paramters.
4303 Add dwarf2_cu parameter.
4304 (process_queue): Update.
4305
4306 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4307
4308 * dwarf2/read.c (create_cu_from_index_list): Replace
4309 dwarf2_per_objfile parameter with dwarf2_per_bfd.
4310 (create_cus_from_index_list): Likewise.
4311 (create_cus_from_index): Likewise.
4312 (create_signatured_type_table_from_index): Likewise.
4313 (create_cus_from_debug_names_list): Likewise.
4314 (create_cus_from_debug_names): Likewise.
4315 (dwarf2_read_gdb_index): Update.
4316 (dwarf2_read_debug_names): Update.
4317
4318 2020-05-27 Tom Tromey <tom@tromey.com>
4319 Simon Marchi <simon.marchi@efficios.com>
4320
4321 * dwarf2/read.h (struct dwarf2_per_objfile)
4322 <get_type_for_signatured_type, set_type_for_signatured_type>:
4323 New methods.
4324 <m_type_map>: New member.
4325 (struct signatured_type) <type>: Remove.
4326 * dwarf2/read.c
4327 (dwarf2_per_objfile::get_type_for_signatured_type,
4328 dwarf2_per_objfile::set_type_for_signatured_type): New.
4329 (get_signatured_type): Use new methods.
4330
4331 2020-05-27 Tom Tromey <tom@tromey.com>
4332 Simon Marchi <simon.marchi@efficios.com>
4333
4334 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4335 (struct dwarf2_per_objfile) <type_units>: New member.
4336 <get_type_unit_group_unshareable>: New method.
4337 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4338 num_symtabs, symtabs>: Remove; move to
4339 type_unit_group_unshareable.
4340 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4341 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4342 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4343
4344 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4345
4346 * dwarf2/read.h (struct dwarf2_per_cu_data):
4347 <dwarf2_per_objfile>: Remove.
4348 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4349 dwarf2_per_objfile.
4350 (create_signatured_type_table_from_index): Likewise.
4351 (create_signatured_type_table_from_debug_names): Likewise.
4352 (create_debug_type_hash_table): Likewise.
4353 (fill_in_sig_entry_from_dwo_entry): Likewise.
4354 (create_type_unit_group): Likewise.
4355 (read_comp_units_from_section): Likewise.
4356 (create_cus_hash_table): Likewise.
4357
4358 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4359
4360 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4361 dwarf2_per_cu_data::dwarf2_per_objfile.
4362 (compute_compunit_symtab_includes): Likewise.
4363 (dwarf2_cu::start_symtab): Likewise.
4364
4365 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4366
4367 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4368 parameter.
4369 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4370 (read_namespace_alias): Update.
4371 (lookup_die_type): Update.
4372 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4373 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4374 Update.
4375 (disassemble_dwarf_expression): Update.
4376
4377 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4378
4379 * dwarf2/read.h (struct dwarf2_queue_item): Add
4380 dwarf2_per_objfile parameter, assign new parameter.
4381 <per_objfile>: New field.
4382 * dwarf2/read.c (free_one_cached_comp_unit): Add
4383 dwarf2_per_objfile parameter.
4384 (queue_comp_unit): Likewise.
4385 (dw2_do_instantiate_symtab): Update.
4386 (process_psymtab_comp_unit): Update.
4387 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4388 (process_imported_unit_die): Update.
4389 (queue_and_load_dwo_tu): Update.
4390 (follow_die_offset): Update.
4391 (follow_die_sig_1): Update.
4392
4393 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4394
4395 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4396 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4397 (read_call_site_scope): Assign per_objfile.
4398 (dwarf2_per_cu_data::objfile): Remove.
4399 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4400 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4401 dwarf2_per_objfile parameter.
4402 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4403 dwarf2_per_objfile parameter.
4404 (dwarf_expr_reg_to_entry_parameter): Add output
4405 dwarf2_per_objfile parameter.
4406 (locexpr_get_frame_base): Update.
4407 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4408 <push_dwarf_reg_entry_value>: Update.
4409 <call_site_to_target_addr>: Update.
4410 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4411 parameter.
4412 (value_of_dwarf_reg_entry): Update.
4413 (rw_pieced_value): Update.
4414 (indirect_synthetic_pointer): Update.
4415 (dwarf2_evaluate_property): Update.
4416 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4417 parameter.
4418 (locexpr_read_variable): Update.
4419 (locexpr_get_symbol_read_needs): Update.
4420 (loclist_read_variable): Update.
4421
4422 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4423
4424 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4425 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4426 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4427 parameter.
4428 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4429 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4430 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4431 parameter.
4432 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4433 sect_variable_value): Add dwarf2_per_objfile parameter.
4434 (class dwarf_evaluate_loc_desc) <dwarf_call,
4435 dwarf_variable_value>: Update.
4436 (fetch_const_value_from_synthetic_pointer): Add
4437 dwarf2_per_objfile parameter.
4438 (fetch_const_value_from_synthetic_pointer): Update.
4439 (coerced_pieced_ref): Update.
4440 (class symbol_needs_eval_context) <dwarf_call,
4441 dwarf_variable_value>: Update.
4442 (dwarf2_compile_expr_to_ax): Update.
4443
4444 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4445
4446 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4447 parameter.
4448 (dwarf2_evaluate_loc_desc_full): Update.
4449
4450 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4451
4452 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4453 parameter.
4454 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4455 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4456 dwarf2_per_objfile parameter.
4457 (decode_debug_loc_dwo_addresses): Likewise.
4458 (dwarf2_find_location_expression): Update.
4459 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4460 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4461 parameter.
4462 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4463 parameter.
4464 (locexpr_describe_location_1): Likewise.
4465 (locexpr_describe_location): Update.
4466
4467 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4468
4469 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4470 Remove.
4471 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4472 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4473 (dwarf2_compile_property_to_c): Update.
4474 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4475 use text offset from objfile.
4476 (locexpr_tracepoint_var_ref): Update.
4477 (locexpr_generate_c_location): Update.
4478 (loclist_describe_location): Update.
4479 (loclist_tracepoint_var_ref): Update.
4480 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4481 dwarf2_per_objfile parameter.
4482 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4483 use text offset from objfile.
4484 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4485
4486 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4487
4488 * dwarf2/expr.h (struct dwarf_expr_context)
4489 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4490 <offset>: Remove.
4491 <per_objfile>: New member.
4492 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4493 dwarf2_per_objfile parameter. Don't set offset, set
4494 per_objfile.
4495 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4496 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4497 a dwarf2_per_objfile object instead of an offset.
4498 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4499 constructor.
4500 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4501 to dwarf2_expr_executor constructor. Don't set offset.
4502 (dwarf2_fetch_cfa_info): Update.
4503 (struct dwarf2_frame_cache) <text_offset>: Remove.
4504 <per_objfile>: New field.
4505 (dwarf2_frame_cache): Update.
4506 (dwarf2_frame_prev_register): Update.
4507 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4508 <dwarf_evaluate_loc_desc>: Add constructor.
4509 (dwarf2_evaluate_loc_desc_full): Update.
4510 (dwarf2_locexpr_baton_eval): Update.
4511 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4512 Add constructor.
4513 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4514
4515 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4516
4517 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4518 addr_sized_int_type>: Move to dwarf2_cu.
4519 <int_type>: Move to dwarf2_per_objfile.
4520 (struct dwarf2_per_objfile) <int_type>: Move here.
4521 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4522 addr_sized_int_type>: Move here.
4523 (read_func_scope): Update.
4524 (read_array_type): Update.
4525 (read_tag_string_type): Update.
4526 (attr_to_dynamic_prop): Update.
4527 (dwarf2_per_cu_data::int_type): Rename to...
4528 (dwarf2_per_objfile::int_type): ... this.
4529 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4530 (dwarf2_cu::addr_sized_int_type): ... this.
4531 (read_subrange_type): Update.
4532 (dwarf2_per_cu_data::addr_type): Rename to...
4533 (dwarf2_cu::addr_type): ... this.
4534 (set_die_type): Update.
4535
4536 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4537
4538 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4539 data through per_cu->cu.
4540
4541 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4542
4543 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4544 dwarf2_per_cu_data parameter fo dwarf2_cu.
4545 (lookup_dwo_type_unit): Likewise.
4546 (read_cutu_die_from_dwo): Likewise.
4547 (lookup_dwo_unit): Likewise.
4548 (open_and_init_dwo_file): Likewise.
4549 (lookup_dwo_cutu): Likewise.
4550 (lookup_dwo_comp_unit): Likewise.
4551 (lookup_dwo_type_unit): Likewise.
4552 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4553 (cutu_reader::cutu_reader): Update.
4554
4555 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4556
4557 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4558 parameter.
4559 (process_full_type_unit): Likewise.
4560 (process_queue): Update.
4561
4562 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4563
4564 * dwarf2/read.c (recursively_compute_inclusions): Add
4565 dwarf2_per_objfile parameter.
4566 (compute_compunit_symtab_includes): Likewise.
4567 (process_cu_includes): Update.
4568
4569 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4570
4571 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4572 parameter.
4573 (create_type_unit_group): Update.
4574 (process_psymtab_comp_unit_reader): Update.
4575 (build_type_psymtabs_reader): Update.
4576
4577 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4578
4579 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4580 object through m_this_cu->cu.
4581
4582 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4583
4584 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4585 the info parameter.
4586 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4587
4588 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4589
4590 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4591 per_objfile parameter.
4592 (load_full_type_unit): Add per_objfile parameter.
4593 (read_signatured_type): Likewise.
4594 (load_full_comp_unit): Likewise.
4595 (load_cu): Likewise.
4596 (dw2_do_instantiate_symtab): Likewise.
4597 (dw2_get_file_names): Likewise.
4598 (dw2_map_symtabs_matching_filename): Update.
4599 (dw_expand_symtabs_matching_file_matcher): Update.
4600 (dw2_map_symbol_filenames): Update.
4601 (process_psymtab_comp_unit): Add per_objfile parameter.
4602 (build_type_psymtabs_1): Update.
4603 (process_skeletonless_type_unit): Update.
4604 (dwarf2_build_psymtabs_hard): Update.
4605 (load_partial_comp_unit): Add per_objfile parameter.
4606 (scan_partial_symbols): Update.
4607 (load_full_comp_unit): Add per_objfile parameter.
4608 (process_imported_unit_die): Update.
4609 (create_cus_hash_table): Update.
4610 (find_partial_die): Update.
4611 (dwarf2_read_addr_index): Update.
4612 (follow_die_offset): Update.
4613 (dwarf2_fetch_die_loc_sect_off): Update.
4614 (dwarf2_fetch_constant_bytes): Update.
4615 (dwarf2_fetch_die_type_sect_off): Update.
4616 (follow_die_sig_1): Update.
4617 (load_full_type_unit): Add per_objfile parameter.
4618 (read_signatured_type): Likewise.
4619
4620 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4621
4622 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4623 of objfile_name.
4624
4625 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4626
4627 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4628 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4629 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4630 field.
4631 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4632 (create_cus_from_index): Update.
4633 (dwarf2_read_gdb_index): Update.
4634 (create_cus_from_debug_names): Update.
4635 (dwarf2_read_debug_names): Update.
4636 (get_abbrev_section_for_cu): Update.
4637 (create_all_comp_units): Update.
4638 (read_attribute_value): Update.
4639 (get_debug_line_section): Update.
4640 * dwarf2/index-cache.c (index_cache::store): Update.
4641 * dwarf2/index-write.c (save_gdb_index_command): Update.
4642 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4643
4644 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4645
4646 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4647 member.
4648 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4649 dwarf2_per_cu_data::per_bfd.
4650 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4651 (create_type_unit_group): Likewise.
4652 (queue_comp_unit): Remove reference to
4653 per_cu->dwarf2_per_objfile.
4654 (maybe_queue_comp_unit): Likewise.
4655 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4656 (create_cus_hash_table): Assign new field.
4657
4658 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4659
4660 * dwarf2/read.c: Replace
4661 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4662 dwarf2_cu->per_objfile throughout.
4663
4664 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4665
4666 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4667 parameter, don't use per_cu->dwarf2_per_objfile.
4668 (dw2_instantiate_symtab): Likewise.
4669 (dw2_find_last_source_symtab): Update.
4670 (dw2_map_expand_apply): Update.
4671 (dw2_lookup_symbol): Update.
4672 (dw2_expand_symtabs_for_function): Update.
4673 (dw2_expand_all_symtabs): Update.
4674 (dw2_expand_symtabs_with_fullname): Update.
4675 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4676 don't use per_cu->dwarf2_per_objfile.
4677 (dw2_expand_marked_cus): Update.
4678 (dw2_find_pc_sect_compunit_symtab): Update.
4679 (dw2_debug_names_lookup_symbol): Update.
4680 (dw2_debug_names_expand_symtabs_for_function): Update.
4681 (dw2_debug_names_map_matching_symbols): Update.
4682 (dwarf2_psymtab::expand_psymtab): Update.
4683
4684 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4685
4686 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4687 <per_objfile>: New member.
4688 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4689 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4690 call to dwarf2_cu.
4691 (cutu_reader::cutu_reader): Update.
4692 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4693
4694 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4695
4696 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4697 struct dwarf2_per_objfile.
4698 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4699 dwarf2_per_bfd.
4700 * dwarf2/read.c (set_die_type): Update.
4701 (get_die_type_at_offset): Update.
4702
4703 2020-05-27 Tom Tromey <tom@tromey.com>
4704 Simon Marchi <simon.marchi@efficios.com>
4705
4706 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4707 method.
4708 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4709 get_symtab, set_symtab>: New methods.
4710 <m_symtabs>: New field.
4711 (struct dwarf2_psymtab): Derive from partial_symtab.
4712 <readin_p, get_compunit_symtab>: Declare methods.
4713 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4714 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4715 New methods.
4716 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4717 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4718 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4719 (dw2_symtab_iter_next, dw2_print_stats)
4720 (dw2_expand_symtabs_with_fullname)
4721 (dw2_expand_symtabs_matching_one)
4722 (dw_expand_symtabs_matching_file_matcher)
4723 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4724 (dw2_debug_names_iterator::next)
4725 (dw2_debug_names_map_matching_symbols)
4726 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4727 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4728 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4729 New methods.
4730 (get_compunit_symtab, process_full_comp_unit)
4731 (process_full_type_unit): Update.
4732 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4733
4734 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4735
4736 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4737 then introduce a new dwarf2_per_objfile type.
4738 <read_line_string>: Move to the new dwarf2_per_objfile type.
4739 <objfile>: Likewise.
4740 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4741 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4742 dwarf2_per_objfile->per_bfd.
4743 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4744 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4745 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4746 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4747 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4748 (dwarf2_per_objfile::locate_sections): Rename to...
4749 (dwarf2_per_bfd::locate_sections): ... this.
4750 (dwarf2_per_objfile::get_cutu): Rename to...
4751 (dwarf2_per_bfd::get_cutu): ... this.
4752 (dwarf2_per_objfile::get_cu): Rename to...
4753 (dwarf2_per_bfd::get_cu): ... this.
4754 (dwarf2_per_objfile::get_tu): Rename to...
4755 (dwarf2_per_bfd::get_tu): ... this.
4756 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4757 (dwarf2_per_bfd::allocate_per_cu): ... this.
4758 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4759 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4760 (get_gdb_index_contents_ftype): Change parameter from
4761 dwarf2_per_objfile to dwarf2_per_bfd.
4762 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4763 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4764
4765 2020-05-27 Tom Tromey <tom@tromey.com>
4766 Simon Marchi <simon.marchi@efficios.com>
4767
4768 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4769 (allocate_piece_closure): Set "per_objfile" member.
4770 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4771 (locexpr_describe_location, loclist_describe_location): Use new
4772 member.
4773 * dwarf2/read.c (read_call_site_scope)
4774 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4775 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4776 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4777 handle_data_member_location): Set per_objfile member.
4778 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4779 member.
4780 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4781
4782 2020-05-27 Tom Tromey <tom@tromey.com>
4783
4784 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4785 allocate_signatured_type>: Declare new methods.
4786 <m_num_psymtabs>: New member.
4787 (struct dwarf2_per_cu_data) <index>: New member.
4788 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4789 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4790 (create_cu_from_index_list): Use allocate_per_cu.
4791 (create_signatured_type_table_from_index)
4792 (create_signatured_type_table_from_debug_names)
4793 (create_debug_type_hash_table, add_type_unit)
4794 (read_comp_units_from_section): Use allocate_signatured_type.
4795
4796 2020-05-27 Tom Tromey <tom@tromey.com>
4797
4798 * psymtab.c (partial_map_expand_apply)
4799 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4800 (psym_lookup_global_symbol_language)
4801 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4802 (psym_print_stats, psym_expand_symtabs_for_function)
4803 (psym_map_symbol_filenames, psym_map_matching_symbols)
4804 (psym_expand_symtabs_matching)
4805 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4806 (maintenance_check_psymtabs): Update.
4807 * psympriv.h (struct partial_symtab) <readin_p,
4808 get_compunit_symtab>: Add objfile parameter.
4809 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4810 Likewise.
4811 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4812 get_compunit_symtab>: Likewise.
4813 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4814
4815 2020-05-27 Tom Tromey <tom@tromey.com>
4816
4817 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4818 member.
4819 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4820 (create_cu_from_index_list)
4821 (create_signatured_type_table_from_index)
4822 (create_signatured_type_table_from_debug_names)
4823 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4824 (dwarf2_create_include_psymtab)
4825 (create_debug_type_hash_table, add_type_unit)
4826 (create_type_unit_group, read_comp_units_from_section)
4827 (dwarf2_compute_name, create_cus_hash_table)
4828 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4829 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4830 obstack.
4831 (dw2_get_real_path): Likewise. Change argument to
4832 dwarf2_per_objfile.
4833
4834 2020-05-27 Luis Machado <luis.machado@linaro.org>
4835
4836 PR tdep/26000
4837 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4838 for ldrd (immediate).
4839
4840 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4841
4842 * command.h: Add comment giving the name of class_tui.
4843 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4844 create the fake command for the help for class_tui.
4845
4846 2020-05-26 Tom Tromey <tromey@adacore.com>
4847
4848 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4849 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4850 (val_atr): New function.
4851 (value_val_atr): Use it.
4852 * ada-valprint.c (print_optional_low_bound): Change low bound
4853 handling for enums.
4854 (val_print_packed_array_elements): Don't call discrete_position.
4855 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4856 discrete_position for enum types.
4857 * language.c (default_print_array_index): Change type.
4858 * language.h (struct language_defn) <la_print_array_index>: Add
4859 index_type parameter, change type of index_value.
4860 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4861 (default_print_array_index): Update.
4862 * valprint.c (maybe_print_array_index): Don't call
4863 value_from_longest. Update.
4864 (value_print_array_elements): Don't call discrete_position.
4865
4866 2020-05-26 Tom Tromey <tromey@adacore.com>
4867
4868 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4869 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4870
4871 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4872
4873 PR gdb/13519
4874 * avr-tdep.c (avr_integer_to_address): Return data or code
4875 address accordingly to the second 'type' argument of the
4876 function.
4877
4878 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4879
4880 * infcmd.c, inferior.h: (construct_inferior_arguments):
4881 Moved function from here to gdbsupport/common-inferior.{h,cc}
4882
4883 2020-05-23 Tom Tromey <tom@tromey.com>
4884
4885 Revert commit eca1f90c:
4886 * NEWS: Remove entry for completion styling.
4887 * completer.c (_rl_completion_prefix_display_length): Move
4888 declaration later.
4889 (gdb_fnprint): Revert.
4890 (gdb_display_match_list_1): Likewise.
4891 * cli/cli-style.c (completion_prefix_style)
4892 (completion_difference_style, completion_suffix_style): Remove.
4893 (_initialize_cli_style): Revert.
4894 * cli/cli-style.h (completion_prefix_style)
4895 (completion_difference_style, completion_suffix_style): Don't
4896 declare.
4897
4898 2020-05-24 Pedro Alves <palves@redhat.com>
4899
4900 * symtab.c (completion_list_add_name): Return boolean indication
4901 of whether the symbol matched.
4902 (completion_list_add_symbol): Don't try to remove C++ aliases if
4903 the symbol didn't match in the first place.
4904 * symtab.h (completion_list_add_name): Return bool.
4905
4906 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4907
4908 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4909 type::field.
4910
4911 2020-05-23 Joel Brobecker <brobecker@adacore.com>
4912
4913 GDB 9.2 released.
4914
4915 2020-05-23 Tom Tromey <tom@tromey.com>
4916
4917 * NEWS: Add entry for completion styling.
4918 * completer.c (_rl_completion_prefix_display_length): Move
4919 declaration earlier.
4920 (gdb_fnprint): Use completion_style.
4921 (gdb_display_match_list_1): Likewise.
4922 * cli/cli-style.c (completion_prefix_style)
4923 (completion_difference_style, completion_suffix_style): New
4924 globals.
4925 (_initialize_cli_style): Register new globals.
4926 * cli/cli-style.h (completion_prefix_style)
4927 (completion_difference_style, completion_suffix_style): Declare.
4928
4929 2020-05-23 Pedro Alves <palves@redhat.com>
4930
4931 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4932 (parse_escape): Use ISDIGIT instead of isdigit.
4933 (puts_debug): Use gdb_isprint instead of isprint.
4934 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4935 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4936 ISSPACE instead of isspace.
4937 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4938 instead of isspace.
4939 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4940 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4941 instead of isxdigit and ISDIGIT instead of isdigit.
4942
4943 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4944
4945 * gdbtypes.h (struct type) <field>: New method.
4946 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4947 or type::field.
4948
4949 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4950
4951 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4952 (TYPE_FIELDS): Use type::fields. Change all call sites that
4953 modify the propery to use type::set_fields instead.
4954
4955 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4956
4957 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4958 type::num_fields instead.
4959
4960 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4961
4962 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4963 methods.
4964 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4965 that modify the number of fields to use type::set_num_fields
4966 instead.
4967
4968 2020-05-22 Tom Tromey <tromey@adacore.com>
4969
4970 * compile/compile-object-load.h (munmap_list_free): Don't
4971 declare.
4972
4973 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4974
4975 * annotate.c (annotate_source_line): Update return type, add call
4976 to update current symtab and line.
4977 * annotate.h (annotate_source_line): Update return type, and
4978 extend header comment.
4979 * source.c (info_line_command): Check annotation_level before
4980 calling annotate_source_line.
4981 * stack.c (print_frame_info): If calling annotate_source_line
4982 returns true, then don't print any other source line information.
4983
4984 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4985
4986 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4987
4988 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4989
4990 * coffread.c (patch_type): Remove NULL check before xfree.
4991 * corefile.c (set_gnutarget): Likewise.
4992 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4993 * exec.c (build_section_table): Likewise.
4994 * remote.c (remote_target::pass_signals): Likewise.
4995 * utils.c (n_spaces): Likewise.
4996 * cli/cli-script.c (document_command): Likewise.
4997 * i386-windows-tdep.c (core_process_module_section): Likewise.
4998 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4999
5000 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
5001
5002 * symfile.c (reread_symbols): Clear objfile's section_offsets
5003 vector and section indices, re-compute them by calling
5004 sym_offsets.
5005
5006 2020-05-20 Tom Tromey <tromey@adacore.com>
5007
5008 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
5009 (desc_one_bound, desc_index_type): Compute field name.
5010
5011 2020-05-20 Tom de Vries <tdevries@suse.de>
5012
5013 PR symtab/25833
5014 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
5015
5016 2020-05-20 Alan Modra <amodra@gmail.com>
5017
5018 PR 25993
5019 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
5020 bfd_set_filename.
5021 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
5022 passed to bfd_set_filename.
5023 * symfile-mem.c (add_vsyscall_page): Likewise for string
5024 passed to symbol_file_add_from_memory.
5025 (symbol_file_add_from_memory): Make name param a const char* and
5026 don't strdup.
5027
5028 2020-05-20 Alan Modra <amodra@gmail.com>
5029
5030 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
5031 rather than accessing bfd->filename directly.
5032 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
5033 and use bfd_section_name.
5034 * dwarf2/frame.c (decode_frame_entry): Likewise.
5035 * exec.c (exec_set_section_address): Likewise.
5036 * solib-aix.c (solib_aix_bfd_open): Likewise.
5037 * stap-probe.c (get_stap_base_address): Likewise.
5038 * symfile.c (reread_symbols): Likewise.
5039
5040 2020-05-19 Tom Tromey <tromey@adacore.com>
5041
5042 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
5043
5044 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5045
5046 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
5047
5048 2020-05-19 Pedro Alves <palves@redhat.com>
5049
5050 * NEWS (set exec-file-mismatch): Adjust entry.
5051 * exec.c: Include "build-id.h".
5052 (validate_exec_file): Try to match build IDs instead of filenames.
5053 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
5054 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
5055 and pass down 'warn_if_slow'.
5056 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
5057 gdb_bfd_open_closure to pass it down.
5058 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
5059
5060 2020-05-19 Pedro Alves <palves@redhat.com>
5061
5062 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
5063 * target.c (target_fileio_open_1): Rename to target_fileio_open
5064 and make extern. Use bool.
5065 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
5066 (target_fileio_read_alloc_1): Adjust.
5067 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
5068 (target_fileio_open_warn_if_slow): Delete declaration.
5069
5070 2020-05-19 Pedro Alves <palves@redhat.com>
5071
5072 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
5073 Adjust all callers.
5074
5075 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
5076
5077 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
5078 whether disp is negative.
5079
5080 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5081
5082 * symfile.h (struct symfile_segment_data)
5083 <~symfile_segment_data>: Remove.
5084 <segment_info>: Change to std::vector.
5085 * symfile.c (default_symfile_segments): Update.
5086 * elfread.c (elf_symfile_segments): Update.
5087
5088 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5089
5090 * symfile.h (struct symfile_segment_data) <struct segment>: New.
5091 <segments>: New.
5092 <segment_bases, segment_sizes>: Remove.
5093 * symfile.c (default_symfile_segments): Update.
5094 * elfread.c (elf_symfile_segments): Update.
5095 * remote.c (remote_target::get_offsets): Update.
5096 * solib-target.c (solib_target_relocate_section_addresses):
5097 Update.
5098
5099 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5100
5101 * symfile.h (struct symfile_segment_data): Initialize fields.
5102 <~symfile_segment_data>: Add.
5103 (symfile_segment_data_up): New.
5104 (struct sym_fns) <sym_segments>: Return a
5105 symfile_segment_data_up.
5106 (default_symfile_segments): Return a symfile_segment_data_up.
5107 (free_symfile_segment_data): Remove.
5108 (get_symfile_segment_data): Return a symfile_segment_data_up.
5109 * symfile.c (default_symfile_segments): Likewise.
5110 (get_symfile_segment_data): Likewise.
5111 (free_symfile_segment_data): Remove.
5112 (symfile_find_segment_sections): Update.
5113 * elfread.c (elf_symfile_segments): Return a
5114 symfile_segment_data_up.
5115 * remote.c (remote_target::get_offsets): Update.
5116 * solib-target.c (solib_target_relocate_section_addresses):
5117 Update.
5118 * symfile-debug.c (debug_sym_segments): Return a
5119 symfile_segment_data_up.
5120
5121 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5122
5123 PR build/25981
5124 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
5125 Hardcode register numbers.
5126
5127 PR build/25981
5128 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
5129 procfs_find_LDT_entry): Remove.
5130 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
5131 procfs_find_LDT_entry): Remove.
5132 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
5133 Remove.
5134
5135 2020-05-17 Pedro Alves <palves@redhat.com>
5136 Andrew Burgess <andrew.burgess@embecosm.com>
5137 Keno Fischer <keno@juliacomputing.com>
5138
5139 PR gdb/25741
5140 * breakpoint.c (build_target_condition_list): Update comments.
5141 (build_target_command_list): Update comments and skip matching
5142 locations.
5143 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
5144 a separate function. Simplify "set breakpoint auto-hw off"
5145 handling.
5146 (insert_breakpoints): Update comment.
5147 (tracepoint_locations_match): New parameter. For breakpoints,
5148 compare location types too, if the caller wants to.
5149 (handle_automatic_hardware_breakpoints): New functions.
5150 (bp_location_is_less_than): Also sort by location type and
5151 hardware breakpoint length.
5152 (update_global_location_list): Handle "set breakpoint auto-hw on"
5153 here.
5154 (update_breakpoint_locations): Ask breakpoint_locations_match to
5155 ignore location types.
5156
5157 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5158
5159 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
5160 type::name instead.
5161
5162 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5163
5164 * gdbtypes.h (struct type) <name, set_name>: New methods.
5165 (TYPE_CODE): Use type::name. Change all call sites used to set
5166 the name to use type::set_name instead.
5167
5168 2020-05-16 Tom Tromey <tom@tromey.com>
5169
5170 * top.c (quit_force): Update.
5171 * infrun.c (handle_no_resumed): Update.
5172 * top.h (all_uis): New function.
5173 (ALL_UIS): Remove.
5174
5175 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5176
5177 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
5178
5179 2020-05-16 Pedro Alves <palves@redhat.com>
5180
5181 * ia64-linux-nat.c
5182 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
5183 Declare method.
5184 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
5185
5186 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
5187
5188 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
5189 (sparc64_adi_info): Likewise.
5190
5191 2020-05-15 Tom Tromey <tom@tromey.com>
5192
5193 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
5194 block_objfile.
5195 (lookup_objfile_from_block): Remove.
5196 (lookup_symbol_in_block, lookup_symbol_in_static_block)
5197 (lookup_global_symbol): Use block_objfile.
5198 * symtab.h (lookup_objfile_from_block): Don't declare.
5199 * printcmd.c (clear_dangling_display_expressions): Use
5200 block_objfile.
5201 * parse.c (operator_check_standard): Use block_objfile.
5202
5203 2020-05-15 Tom Tromey <tom@tromey.com>
5204
5205 * language.c (language_alloc_type_symbol): Set
5206 SYMBOL_SECTION.
5207 * symtab.c (initialize_objfile_symbol): Remove.
5208 (allocate_symbol): Remove.
5209 (allocate_template_symbol): Remove.
5210 * dwarf2/read.c (fixup_go_packaging): Use "new".
5211 (new_symbol): Use "new".
5212 (read_variable): Don't call initialize_objfile_symbol. Use
5213 "new".
5214 (read_func_scope): Use "new".
5215 * xcoffread.c (process_xcoff_symbol): Don't call
5216 initialize_objfile_symbol.
5217 (SYMBOL_DUP): Remove.
5218 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
5219 "new".
5220 * symtab.h (allocate_symbol, initialize_objfile_symbol)
5221 (allocate_template_symbol): Don't declare.
5222 (struct symbol): Add copy constructor. Change defaults.
5223 * jit.c (finalize_symtab): Use "new".
5224 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
5225 Use "new".
5226 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5227 (common_block_end): Use "new".
5228 * mdebugread.c (parse_symbol): Use "new".
5229 (new_symbol): Likewise.
5230
5231 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5232
5233 * NEWS: Mention changes to help and apropos.
5234
5235 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5236
5237 * command.h (enum command_class): Improve comments, document
5238 that class_alias is for user-defined aliases, give the class
5239 name for each class, remove unused class_xdb.
5240 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
5241 * breakpoint.c (_initialize_breakpoint): Replace class_alias
5242 by a precise class.
5243 * infcmd.c (_initialize_infcmd): Likewise.
5244 * reverse.c (_initialize_reverse): Likewise.
5245 * stack.c (_initialize_stack): Likewise.
5246 * symfile.c (_initialize_symfile): Likewise.
5247 * tracepoint.c (_initialize_tracepoint): Likewise.
5248
5249 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5250
5251 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
5252 when their aliased command is traversed.
5253 (help_cmd): Add fput_command_names_styled call to
5254 output command name and aliases when command has an alias.
5255
5256 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5257
5258 * cli/cli-decode.h (help_cmd_list): Remove declaration.
5259 * cli/cli-decode.c (help_cmd_list): Declare as static,
5260 remove prefix argument, use bool for recurse arg, rework to show the aliases of
5261 a command together with the command.
5262 (fput_command_name_styled, fput_command_names_styled): New functions.
5263 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
5264 fput_command_name_styled.
5265 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
5266 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
5267
5268 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5269
5270 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
5271 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
5272 * command.h (cmd_show_list): Likewise.
5273 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
5274 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
5275
5276 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5277
5278 * unittests/command-def-selftests.c (traverse_command_structure):
5279 Verify all commands of a list have the same prefix command and
5280 that only the top cmdlist commands have a null prefix.
5281
5282 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5283
5284 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
5285 as prefix, not one of its aliases.
5286 (set_cmd_prefix): Remove.
5287 (do_add_cmd): Centralize the setting of the prefix of a command, when
5288 command is defined after its full chain of prefix commands.
5289 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
5290 (add_setshow_cmd_full): Likewise.
5291 (update_prefix_field_of_prefixed_commands): New function.
5292 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
5293 update_prefix_field_of_prefixed_commands.
5294 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
5295 addresses of remote_set_cmdlist and remote_show_cmdlist given
5296 as argument, not the address of an argument.
5297 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5298 * gdb/remote.c (_initialize_remote): Likewise.
5299
5300 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5301
5302 * cli/cli-cmds.c (alias_command): Check for an existing alias
5303 using lookup_cmd_composition, as valid_command_p is too strict
5304 and forbids aliases that are the prefix of an existing alias
5305 or command.
5306 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5307 command is properly recognised as a valid command.
5308
5309 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5310
5311 * unittests/help-doc-selftests.c: Rename to
5312 unittests/command-def-selftests.c
5313 * unittests/command-def-selftests.c (help_doc_tests): Update some
5314 comments.
5315 (command_structure_tests, traverse_command_structure): New namespace
5316 and function.
5317 (command_structure_invariants_tests): New function.
5318 (_initialize_command_def_selftests) Renamed from
5319 _initialize_help_doc_selftests, register command_structure_invariants
5320 selftest.
5321
5322 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5323
5324 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5325 an alias of 'show'.
5326
5327 2020-05-15 Joel Brobecker <brobecker@adacore.com>
5328
5329 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5330 ada_is_fixed_point_type. Update all callers.
5331 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5332 all callers.
5333 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5334 Update all callers.
5335 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5336 print_fixed_point_type. Update all callers.
5337 * ada-valprint.c (ada_value_print_num): Replace call to
5338 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5339
5340 2020-05-14 Kevin Buettner <kevinb@redhat.com>
5341
5342 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5343 processors.
5344 (cpu_supports_bts): Add CV_AMD case.
5345
5346 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5347 Simon Marchi <simon.marchi@efficios.com>
5348
5349 * infrun.c (stop_all_threads): Collect multiple wait events at
5350 each pass.
5351
5352 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5353
5354 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5355 type::code instead.
5356
5357 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5358
5359 * gdbtypes.h (struct type) <code, set_code>: New methods.
5360 (TYPE_CODE): Use type::code. Change all call sites used to set
5361 the code to use type::set_code instead.
5362
5363 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5364 Tom de Vries <tdevries@suse.de>
5365 Pedro Alves <palves@redhat.com>
5366
5367 PR threads/25478
5368 * infrun.c (stop_all_threads): Do NOT ignore
5369 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5370 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5371 received.
5372 (handle_no_resumed): Remove code handling a live inferior with no
5373 threads.
5374 * remote.c (has_single_non_exited_thread): New.
5375 (remote_target::update_thread_list): Do not delete a thread if is
5376 the last thread of the process.
5377 * thread.c (thread_select): Call delete_exited_threads instead of
5378 prune_threads.
5379
5380 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5381
5382 * infrun.c (stop_all_threads): Enable/disable thread events of all
5383 targets. Move a debug message denoting the end of the function
5384 into the SCOPED_EXIT block.
5385
5386 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5387
5388 * process-stratum-target.h: Include <set>.
5389 (all_non_exited_process_targets, switch_to_target_no_thread): New
5390 function declarations.
5391 * process-stratum-target.c (all_non_exited_process_targets)
5392 (switch_to_target_no_thread): New function implementations.
5393
5394 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5395
5396 * infrun.c (handle_inferior_event): Extract out a piece of code
5397 into...
5398 (mark_non_executing_threads): ...this new function.
5399
5400 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5401
5402 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5403 use.
5404
5405 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5406
5407 * regcache.c (regcache_read_pc_protected): New function
5408 implementation that returns 0 if the PC cannot read via
5409 'regcache_read_pc'.
5410 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5411 instead of 'regcache_read_pc'.
5412 (keep_going_pass_signal): Ditto.
5413
5414 2020-05-13 Tom Tromey <tromey@adacore.com>
5415
5416 * ada-lang.c (align_value): Remove.
5417 (ada_template_to_fixed_record_type_1): Use align_up.
5418
5419 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5420
5421 * async-event.c: Update the copyright year.
5422 * async-event.h: Update the copyright year.
5423
5424 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
5425
5426 * objfiles.h (is_addr_in_objfile,
5427 shared_objfile_contains_address_p): Return bool.
5428 * objfile.c (is_addr_in_objfile,
5429 shared_objfile_contains_address_p): Return bool.
5430
5431 2020-05-11 Tom Tromey <tromey@adacore.com>
5432
5433 * cli/cli-cmds.c (info_command): Restore.
5434 (_initialize_cli_cmds): Use add_prefix_command for "info".
5435 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5436
5437 2020-05-11 Tom Tromey <tromey@adacore.com>
5438
5439 * ada-lang.c (ada_value_primitive_field): Now public.
5440 * ada-lang.h (ada_value_primitive_field): Declare.
5441 * ada-valprint.c (print_field_values): Use
5442 ada_value_primitive_field for wrapper fields.
5443
5444 2020-05-11 Tom de Vries <tdevries@suse.de>
5445
5446 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5447 MODULE_DOMAIN.
5448
5449 2020-05-11 Tom de Vries <tdevries@suse.de>
5450
5451 PR symtab/25941
5452 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5453 with length 0, if not gdb-produced.
5454 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5455
5456 2020-05-09 Tom de Vries <tdevries@suse.de>
5457
5458 PR gdb/25955
5459 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5460 calculation.
5461
5462 2020-05-09 Tom Tromey <tom@tromey.com>
5463
5464 * top.c (server_command): Now bool.
5465 * top.h (server_command): Now bool.
5466
5467 2020-05-08 Tom Tromey <tromey@adacore.com>
5468
5469 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5470 already being processed.
5471
5472 2020-05-08 Tom Tromey <tom@tromey.com>
5473
5474 * printcmd.c (struct display) <next>: Remove.
5475 <display>: New constructor.
5476 <exp_string>: Now a std::string.
5477 <enabled_p>: Now a bool.
5478 (display_number): Move definition earlier.
5479 (displays): Rename from display_chain. Now a std::vector.
5480 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5481 (display_command): Update.
5482 (do_one_display, disable_display)
5483 (enable_disable_display_command, do_enable_disable_display):
5484 Update.
5485 (free_display): Remove.
5486 (clear_displays): Rewrite.
5487 (delete_display): Update.
5488 (map_display_numbers): Use function_view. Remove "data"
5489 parameter. Update.
5490 (do_delete_display): Remove.
5491 (undisplay_command): Update.
5492 (do_one_display, do_displays, disable_display)
5493 (info_display_command): Update.
5494 (do_enable_disable_display): Remove.
5495 (enable_disable_display_command)
5496 (clear_dangling_display_expressions): Update.
5497
5498 2020-05-08 Tom Tromey <tom@tromey.com>
5499
5500 * symtab.c (set_symbol_cache_size)
5501 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5502 (maintenance_print_symbol_cache_statistics): Update.
5503 * symmisc.c (print_symbol_bcache_statistics)
5504 (print_objfile_statistics, maintenance_print_objfiles)
5505 (maintenance_info_symtabs, maintenance_check_symtabs)
5506 (maintenance_expand_symtabs, maintenance_info_line_tables):
5507 Update.
5508 * symfile-debug.c (set_debug_symfile): Update.
5509 * source.c (forget_cached_source_info): Update.
5510 * python/python.c (gdbpy_progspaces): Update.
5511 * psymtab.c (maintenance_info_psymtabs): Update.
5512 * probe.c (parse_probes): Update.
5513 * linespec.c (iterate_over_all_matching_symtabs)
5514 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5515 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5516 * exec.c (exec_target::close): Update.
5517 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5518 * breakpoint.c (print_one_breakpoint_location)
5519 (create_longjmp_master_breakpoint)
5520 (create_std_terminate_master_breakpoint): Update.
5521 * progspace.c (program_spaces): Now a std::vector.
5522 (maybe_new_address_space): Update.
5523 (add_program_space): Remove.
5524 (program_space::program_space): Update.
5525 (remove_program_space): Update.
5526 (number_of_program_spaces): Remove.
5527 (print_program_space, update_address_spaces): Update.
5528 * progspace.h (program_spaces): Change type.
5529 (ALL_PSPACES): Remove.
5530 (number_of_program_spaces): Don't declare.
5531 (struct program_space) <next>: Remove.
5532
5533 2020-05-08 Tom Tromey <tom@tromey.com>
5534
5535 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5536 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5537 (enable_break): Update.
5538 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5539 (frv_fdpic_find_canonical_descriptor): Update.
5540 (frv_fetch_objfile_link_map): Update.
5541 * progspace.c (program_space::free_all_objfiles): Update.
5542 (program_space::solibs): New method.
5543 * progspace.h (struct program_space) <solibs>: New method.
5544 * solist.h (master_so_list): Don't declare.
5545 (ALL_SO_LIBS): Remove.
5546 * solib.h (so_list_head): Remove.
5547 (update_solib_list): Update comment.
5548 * solib.c (master_so_list): Remove.
5549 (solib_used, update_solib_list, solib_add)
5550 (info_sharedlibrary_command, clear_solib)
5551 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5552
5553 2020-05-08 Tom Tromey <tom@tromey.com>
5554
5555 * extension.c (extension_languages): Now a std::array.
5556 (ALL_EXTENSION_LANGUAGES): Remove.
5557 (get_ext_lang_defn, get_ext_lang_of_file)
5558 (eval_ext_lang_from_control_command): Update.
5559 (finish_ext_lang_initialization)
5560 (auto_load_ext_lang_scripts_for_objfile)
5561 (ext_lang_type_printers::ext_lang_type_printers)
5562 (apply_ext_lang_type_printers)
5563 (ext_lang_type_printers::~ext_lang_type_printers)
5564 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5565 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5566 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5567 (get_matching_xmethod_workers, ext_lang_colorize)
5568 (ext_lang_before_prompt): Update.
5569 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5570
5571 2020-05-08 Tom Tromey <tom@tromey.com>
5572
5573 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5574 overload.
5575 <swap_string, m_string>: Remove.
5576 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5577 Update.
5578 * stabsread.c (define_symbol, read_type): Update.
5579 * linespec.c (find_linespec_symbols): Update.
5580 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5581 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5582 * dbxread.c (read_dbx_symtab): Update.
5583 * cp-support.h (cp_canonicalize_string_full)
5584 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5585 Return unique_xmalloc_ptr.
5586 * cp-support.c (inspect_type): Update.
5587 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5588 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5589 Likewise.
5590 * c-typeprint.c (print_name_maybe_canonical): Update.
5591 * break-catch-throw.c (check_status_exception_catchpoint):
5592 Update.
5593
5594 2020-05-08 Tom de Vries <tdevries@suse.de>
5595
5596 * infrun.c (follow_fork): Copy current_line and current_symtab to
5597 child thread.
5598
5599 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5600
5601 * async-event.c (struct async_signal_handler, struct
5602 async_event_handler): Reformat, remove typedef.
5603
5604 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5605
5606 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5607 access thistype->main_type->dyn_prop_list directly.
5608
5609 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5610
5611 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5612 (remove_dyn_prop): Remove. Update all users to use
5613 type::remove_dyn_prop.
5614 * gdbtypes.c (remove_dyn_prop): Rename to...
5615 (type::remove_dyn_prop): ... this.
5616
5617 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5618
5619 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5620 (add_dyn_prop): Remove. Update all users to use
5621 type::add_dyn_prop.
5622 * gdbtypes.c (add_dyn_prop): Rename to...
5623 (type::add_dyn_prop): ... this.
5624
5625 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5626
5627 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5628 (get_dyn_prop): Remove. Update all users to use
5629 type::dyn_prop.
5630 * gdbtypes.c (get_dyn_prop): Rename to...
5631 (type::dyn_prop): ... this.
5632
5633 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5634
5635 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5636
5637 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5638
5639 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5640 instruction, skip it if it's there.
5641
5642 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
5643
5644 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5645
5646 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
5647
5648 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5649 * gdbtypes.c (recursive_dump_type): Remove use of
5650 TYPE_INCOMPLETE.
5651
5652 2020-05-03 Tom Tromey <tom@tromey.com>
5653
5654 * breakpoint.c (catch_command, tcatch_command): Remove.
5655 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5656 add_show_prefix_cmd.
5657 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5658 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5659 Remove.
5660 (add_internal_problem_command): Use add_basic_prefix_cmd,
5661 add_show_prefix_cmd.
5662 * mips-tdep.c (set_mipsfpu_command): Remove.
5663 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5664 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5665 (_initialize_index_cache): Use add_basic_prefix_cmd.
5666 * memattr.c (dummy_cmd): Remove.
5667 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5668 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5669 (_initialize_tui_win): Use add_basic_prefix_cmd,
5670 add_show_prefix_cmd.
5671 * cli/cli-logging.c (set_logging_command): Remove.
5672 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5673 add_show_prefix_cmd.
5674 (show_logging_command): Remove.
5675 * target.c (target_command): Remove.
5676 (add_target): Use add_basic_prefix_cmd.
5677
5678 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
5679
5680 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5681
5682 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5683
5684 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5685 info_command.
5686
5687 2020-04-30 Kamil Rytarowski <n54@gmx.com>
5688
5689 * nbsd-nat.c (nbsd_enable_proc_events)
5690 (nbsd_nat_target::post_startup_inferior): Add.
5691 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5692 (nbsd_nat_target::update_thread_list): Rewrite.
5693 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5694 "PTRACE_LWP_CREATE".
5695 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5696
5697 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5698
5699 * stack.c (_initialize_stack): Remove duplicated creation
5700 of "frame" command and "f" alias.
5701
5702 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5703
5704 PR gdb/18706
5705 * gdbtypes.c (check_typedef): Calculate size of array of
5706 stubbed type.
5707
5708 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5709
5710 PR gdb/15559
5711 * i386-tdep.c (i386_push_dummy_call): Call
5712 i386_thiscall_push_dummy_call.
5713 (i386_thiscall_push_dummy_call): New function.
5714 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5715 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5716 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5717
5718 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5719
5720 * gdbarch.sh (do_read): Add shellcheck disable directive for
5721 warning SC2162.
5722
5723 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5724
5725 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5726 "referenced but not assigned" warning.
5727
5728 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5729
5730 * gdbarch.sh: Remove code that sets fallbackdefault.
5731
5732 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5733
5734 * gdbarch.sh: Use shell operators && and || instead of
5735 -a and -o.
5736
5737 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5738
5739 * gdbarch.sh: Use $(...) instead of `...`.
5740
5741 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5742
5743 * gdbarch.sh: Use double quotes around variables.
5744
5745 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5746
5747 * gdbarch.sh: Use %s with printf, instead of variables in the
5748 format string.
5749
5750 2020-04-29 Tom Tromey <tromey@adacore.com>
5751
5752 PR ada/25875:
5753 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5754 type fields here.
5755 (read_enumeration_type): Call
5756 update_enumeration_type_from_children later. Update comments.
5757 (process_enumeration_scope): Don't create type fields.
5758
5759 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5760
5761 * nbsd-tdep.c: Include "xml-syscall.h".
5762 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5763
5764 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5765
5766 * nbsd-nat.c: Include "sys/wait.h".
5767 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5768 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5769 (nbsd_nat_target::remove_exec_catchpoint)
5770 (nbsd_nat_target::set_syscall_catchpoint): Add.
5771 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5772 (nbsd_nat_target::insert_exec_catchpoint)
5773 (nbsd_nat_target::remove_exec_catchpoint)
5774 (nbsd_nat_target::set_syscall_catchpoint): Add.
5775 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5776 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5777 `nbsd_get_syscall_number'.
5778
5779 2020-04-29 Tom Tromey <tom@tromey.com>
5780
5781 * stack.c (print_block_frame_labels): Remove.
5782
5783 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
5784
5785 PR gdb/17320
5786 * ada-valprint.c (val_print_packed_array_elements): Move array
5787 end bracket to new line.
5788 (ada_val_print_string): Remove extra spaces before first array
5789 element.
5790 * c-valprint.c (c_value_print_array): Likewise.
5791 * m2-valprint.c (m2_print_array_contents): Likewise.
5792 (m2_value_print_inner): Likewise.
5793 * p-valprint.c (pascal_value_print_inner): Likewise.
5794 * valprint.c (generic_val_print_array): Likewise.
5795 (value_print_array_elements): Move first array element and array
5796 end bracket to new line.
5797
5798 2020-04-29 Tom de Vries <tdevries@suse.de>
5799
5800 PR symtab/25889
5801 * linespec.c (find_method): Fix ix calculation.
5802
5803 2020-04-28 Kamil Rytarowski <n54@gmx.com>
5804
5805 * syscalls/update-netbsd.sh: New file.
5806 * syscalls/netbsd.xml: Regenerate.
5807 * data-directory/Makefile.in: Register `netbsd.xml' in
5808 `SYSCALLS_FILES'.
5809
5810 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5811
5812 * syscalls/update-freebsd.sh: Add double quotes.
5813
5814 2020-04-28 Tom Tromey <tom@tromey.com>
5815
5816 * NEWS: Update.
5817 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5818 (cmdpy_init): Allow class_tui.
5819
5820 2020-04-28 Mark Williams <mark@myosotissp.com>
5821
5822 PR gdb/24480
5823 * dwarf2read.c: Add missing assingments to list_in_scope when
5824 start_symtab was already called.
5825
5826 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5827
5828 PR gdb/25881
5829 * dwarf2/read.c (offset_map_type): Use
5830 gdb:hash_enum<sect_offset> as hash function.
5831
5832 2020-04-28 Tom de Vries <tdevries@suse.de>
5833
5834 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5835 with DW_AT_signature.
5836
5837 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
5838
5839 * configure.ac: Remove check for fs_base/gs_base in
5840 user_regs_struct.
5841 * configure: Re-generate.
5842 * config.in: Re-generate.
5843 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5844 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5845 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5846
5847 2020-04-27 Luis Machado <luis.machado@linaro.org>
5848
5849 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5850 problematic inline frame unwinding situation.
5851 * frame.c (frame_id_computed_p): New function.
5852 * frame.h (frame_id_computed_p): New prototype.
5853
5854 2020-04-26 Tom Tromey <tom@tromey.com>
5855
5856 * command.h (enum command_class) <class_pseudo>: Remove.
5857
5858 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5859
5860 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5861 and whitespace.
5862
5863 2020-04-25 Kamil Rytarowski <n54@gmx.com>
5864
5865 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5866 `PT_GET_PROCESS_STATE' block.
5867
5868 2020-04-24 Tom Tromey <tom@tromey.com>
5869
5870 * symtab.h (symbol_get_demangled_name): Don't declare.
5871 * symtab.c (symbol_get_demangled_name): Remove.
5872 (general_symbol_info::natural_name)
5873 (general_symbol_info::demangled_name): Update.
5874
5875 2020-04-24 Tom Tromey <tom@tromey.com>
5876
5877 PR rust/25025:
5878 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5879
5880 2020-04-24 Tom Tromey <tom@tromey.com>
5881
5882 PR symtab/12707:
5883 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5884 exists.
5885 (new_symbol): Likewise.
5886 * compile/compile-object-load.c (get_out_value_type): Use
5887 symbol_matches_search_name.
5888
5889 2020-04-24 Tom Tromey <tom@tromey.com>
5890
5891 * dwarf2/read.c (add_partial_symbol): Do not call
5892 compute_and_set_names.
5893
5894 2020-04-24 Tom Tromey <tom@tromey.com>
5895
5896 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5897 overload.
5898
5899 2020-04-24 Tom Tromey <tom@tromey.com>
5900
5901 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5902 (add_psymbol_to_list): New overload. Make old overload call new
5903 one.
5904 * psympriv.h (add_psymbol_to_list): New overload.
5905
5906 2020-04-24 Tom Tromey <tom@tromey.com>
5907
5908 * dwarf2/read.c (partial_die_info::read) <case
5909 DW_AT_linkage_name>: Use value_as_string.
5910 (dwarf2_string_attr): Use value_as_string.
5911 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5912 method.
5913 * dwarf2/attribute.c (attribute::value_as_string): New method.
5914
5915 2020-04-24 Tom Tromey <tom@tromey.com>
5916
5917 * symtab.c (general_symbol_info::natural_name)
5918 (general_symbol_info::demangled_name): Check for language_rust.
5919
5920 2020-04-24 Tom Tromey <tom@tromey.com>
5921
5922 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5923 (dwarf2_physname): ... from here.
5924 (partial_die_info::read): Add Rust "{" hack.
5925
5926 2020-04-24 Tom Tromey <tom@tromey.com>
5927
5928 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5929 method.
5930 (symbol_set_demangled_name): Don't declare.
5931 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5932 symbol_set_demangled_name.
5933 (general_symbol_info::set_language)
5934 (general_symbol_info::compute_and_set_names): Update.
5935 * minsyms.c (minimal_symbol_reader::install): Update.
5936 * dwarf2/read.c (new_symbol): Update.
5937
5938 2020-04-24 Tom Tromey <tromey@adacore.com>
5939
5940 PR python/23662:
5941 * python/py-type.c (convert_field): Handle
5942 FIELD_LOC_KIND_DWARF_BLOCK.
5943 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5944 (typy_get_dynamic): Nw function.
5945 (type_object_getset): Add "dynamic".
5946 * NEWS: Add entry.
5947
5948 2020-04-24 Tom Tromey <tromey@adacore.com>
5949
5950 * ada-typeprint.c (print_choices, print_variant_part)
5951 (print_record_field_types_dynamic): New functions.
5952 (print_record_field_types): Use print_record_field_types_dynamic.
5953
5954 2020-04-24 Tom Tromey <tromey@adacore.com>
5955
5956 * dwarf2/read.c (handle_data_member_location): New overload.
5957 (dwarf2_add_field): Use it.
5958 (decode_locdesc): Add "computed" parameter. Update comment.
5959 * gdbtypes.c (is_dynamic_type_internal): Also look for
5960 FIELD_LOC_KIND_DWARF_BLOCK.
5961 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5962 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5963 virtual base classes.
5964 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5965 FIELD_LOC_KIND_DWARF_BLOCK.
5966
5967 2020-04-24 Tom Tromey <tromey@adacore.com>
5968
5969 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5970 * gdbtypes.c (is_dynamic_type_internal): Check
5971 TYPE_HAS_DYNAMIC_LENGTH.
5972 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5973 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5974 New macros.
5975 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5976 constant.
5977
5978 2020-04-24 Tom Tromey <tromey@adacore.com>
5979
5980 * dwarf2/read.c (struct variant_field): Rewrite.
5981 (struct variant_part_builder): New.
5982 (struct nextfield): Remove "variant" field. Add "offset".
5983 (struct field_info): Add "current_variant_part" and
5984 "variant_parts".
5985 (alloc_discriminant_info): Remove.
5986 (alloc_rust_variant): New function.
5987 (quirk_rust_enum): Update.
5988 (dwarf2_add_field): Set "offset" member. Don't handle
5989 DW_TAG_variant_part.
5990 (offset_map_type): New typedef.
5991 (convert_variant_range, create_one_variant)
5992 (create_one_variant_part, create_variant_parts)
5993 (add_variant_property): New functions.
5994 (dwarf2_attach_fields_to_type): Call add_variant_property.
5995 (read_structure_type): Don't handle DW_TAG_variant_part.
5996 (handle_variant_part, handle_variant): New functions.
5997 (handle_struct_member_die): Use them.
5998 (process_structure_scope): Don't handle variant parts.
5999 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
6000 (struct discriminant_info): Remove.
6001 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
6002 (struct main_type) <flag_discriminated_union>: Remove.
6003 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
6004 (rust_enum_variant): Return int. Remove "contents". Rewrite.
6005 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
6006 Update.
6007 * valops.c (value_union_variant): Remove.
6008 * value.h (value_union_variant): Don't declare.
6009
6010 2020-04-24 Tom Tromey <tromey@adacore.com>
6011
6012 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
6013 (ada_value_primitive_packed_val): Update.
6014 * ada-valprint.c (ada_value_print_1): Update.
6015 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
6016 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
6017 just an address. Use evaluate_for_locexpr_baton.
6018 (dwarf2_evaluate_property): Update.
6019 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
6020 array_view.
6021 * findvar.c (default_read_var_value): Update.
6022 * gdbtypes.c (compute_variant_fields_inner)
6023 (resolve_dynamic_type_internal): Update.
6024 (resolve_dynamic_type): Change type of valaddr parameter.
6025 * gdbtypes.h (resolve_dynamic_type): Update.
6026 * valarith.c (value_subscripted_rvalue): Update.
6027 * value.c (value_from_contents_and_address): Update.
6028
6029 2020-04-24 Tom Tromey <tromey@adacore.com>
6030
6031 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
6032 "push_initial_value" parameter.
6033 (dwarf2_evaluate_property): Likewise.
6034 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
6035
6036 2020-04-24 Tom Tromey <tromey@adacore.com>
6037
6038 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
6039 (variant::matches, compute_variant_fields_recurse)
6040 (compute_variant_fields_inner, compute_variant_fields): New
6041 functions.
6042 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
6043 Use resolved_type after type is made.
6044 (operator==): Add new cases.
6045 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
6046 (struct discriminant_range, struct variant, struct variant_part):
6047 New.
6048 (union dynamic_prop_data) <variant_parts, original_type>: New
6049 members.
6050 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
6051 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
6052 constants.
6053 * value.c (unpack_bits_as_long): Now public.
6054 * value.h (unpack_bits_as_long): Declare.
6055
6056 2020-04-24 Tom Tromey <tromey@adacore.com>
6057
6058 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
6059 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
6060
6061 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
6062
6063 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
6064
6065 2020-04-24 Kamil Rytarowski <n54@gmx.com>
6066
6067 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
6068 (remove_fork_catchpoint, post_startup_inferior)
6069 (post_attach): Move...
6070 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
6071 (remove_fork_catchpoint, post_startup_inferior)
6072 (post_attach): ...here.
6073 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
6074 (remove_fork_catchpoint, post_startup_inferior)
6075 (post_attach): Move...
6076 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
6077 (remove_fork_catchpoint, post_startup_inferior)
6078 (post_attach): ...here.
6079
6080 2020-04-24 Tom Tromey <tromey@adacore.com>
6081
6082 * nat/windows-nat.h (struct windows_thread_info)
6083 <pc_adjusted>: New member.
6084 * windows-nat.c (windows_fetch_one_register): Check
6085 pc_adjusted.
6086 (windows_nat_target::get_windows_debug_event)
6087 (windows_nat_target::wait): Set pc_adjusted.
6088
6089 2020-04-24 Tom de Vries <tdevries@suse.de>
6090
6091 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
6092 Run gdb-add-index inside temp dir.
6093
6094 2020-04-23 Tom Tromey <tromey@adacore.com>
6095
6096 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
6097 in loop.
6098
6099 2020-04-23 Luis Machado <luis.machado@linaro.org>
6100
6101 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
6102 get_frame_register instead of gdbarch_unwind_pc.
6103
6104 2020-04-23 Tom de Vries <tdevries@suse.de>
6105
6106 * symtab.c (lookup_global_symbol): Prefer def over decl.
6107
6108 2020-04-23 Tom de Vries <tdevries@suse.de>
6109
6110 PR symtab/25807
6111 * block.c (best_symbol, better_symbol): Promote to external.
6112 * block.h (best_symbol, better_symbol): Declare.
6113 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
6114 decl.
6115
6116 2020-04-23 Tom Tromey <tromey@adacore.com>
6117
6118 PR ada/25837:
6119 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
6120 "const char *", not a "const std::string &".
6121 <name_and_matcher::operator==>: Update.
6122 * unittests/lookup_name_info-selftests.c: Change type of
6123 "result".
6124
6125 2020-04-23 Tom Tromey <tom@tromey.com>
6126
6127 * inferior.h (iterate_over_inferiors): Don't declare.
6128 * inferior.c (iterate_over_inferiors): Remove.
6129 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
6130 Remove.
6131 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
6132 use iterate_over_inferiors.
6133 (darwin_resume_inferior_it)
6134 (struct resume_inferior_threads_param)
6135 (darwin_resume_inferior_threads_it): Remove.
6136 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
6137
6138 2020-04-23 Tom de Vries <tdevries@suse.de>
6139
6140 * blockframe.c (find_pc_partial_function): Use
6141 find_pc_sect_compunit_symtab rather than
6142 objfile->sf->qf->find_pc_sect_compunit_symtab.
6143
6144 2020-04-22 Tom de Vries <tdevries@suse.de>
6145
6146 PR symtab/25764
6147 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
6148 in psymtabs.
6149
6150 2020-04-22 Tom de Vries <tdevries@suse.de>
6151
6152 PR symtab/25801
6153 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
6154 symtabs.
6155
6156 2020-04-22 Tom de Vries <tdevries@suse.de>
6157
6158 PR symtab/25700
6159 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
6160 CU if already created.
6161
6162 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6163
6164 * infrun.c (displaced_step_fixup): Switch to the event_thread
6165 before calling displaced_step_restore, not after.
6166
6167 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6168
6169 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
6170 its inferior is not recorded by us.
6171 (record_btrace_target_open): Replace call to
6172 all_non_exited_threads () with call to current_inferior
6173 ()->non_exited_threads ().
6174 (record_btrace_target::stop_recording): Likewise.
6175 (record_btrace_target::close): Likewise.
6176 (record_btrace_target::wait): Likewise.
6177 (record_btrace_target::record_stop_replaying): Likewise.
6178
6179 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6180
6181 * btrace.c (btrace_enable): Throw an error on double enables and
6182 when enabling recording fails.
6183 (btrace_disable): Throw an error if the thread is not recorded.
6184
6185 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6186
6187 * record-btrace.c (record_btrace_target::fetch_registers): Forward
6188 request if we do not have a thread_info.
6189
6190 2020-04-21 Tom de Vries <tdevries@suse.de>
6191
6192 PR gdb/25471
6193 * thread.c
6194 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
6195 exception in get_frame_id.
6196
6197 2020-04-20 Tom Tromey <tromey@adacore.com>
6198
6199 * python/python.c (struct gdbpy_event): Mark move constructor as
6200 noexcept.
6201 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
6202 constructor as noexcept.
6203 * completer.h (struct completion_result): Mark move constructor as
6204 noexcept.
6205 * completer.c (completion_result::completion_result): Use
6206 initialization style. Don't call reset_match_list.
6207
6208 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
6209
6210 * MAINTAINERS (Write After Approval): Add myself.
6211
6212 2020-04-18 Tom Tromey <tom@tromey.com>
6213
6214 * windows-tdep.c (init_w32_command_list)
6215 (w32_prefix_command_valid): Restore.
6216 (_initialize_windows_tdep): Call init_w32_command_list.
6217
6218 2020-04-18 Tom Tromey <tom@tromey.com>
6219
6220 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
6221 * value.c (value_fn_field): Update.
6222 * valops.c (find_function_in_inferior)
6223 (value_allocate_space_in_inferior): Update.
6224 * tui/tui-winsource.c (tui_update_source_windows_with_line):
6225 Update.
6226 * tui/tui-source.c (tui_source_window::set_contents): Update.
6227 * symtab.c (lookup_global_or_static_symbol)
6228 (find_function_start_sal_1, skip_prologue_sal)
6229 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
6230 * symmisc.c (dump_msymbols, dump_symtab_1)
6231 (maintenance_print_one_line_table): Update.
6232 * symfile.c (init_entry_point_info, section_is_mapped)
6233 (list_overlays_command, simple_read_overlay_table)
6234 (simple_overlay_update_1): Update.
6235 * stap-probe.c (handle_stap_probe): Update.
6236 * stabsread.c (dbx_init_float_type, define_symbol)
6237 (read_one_struct_field, read_enum_type, read_range_type): Update.
6238 * source.c (info_line_command): Update.
6239 * python/python.c (gdbpy_source_objfile_script)
6240 (gdbpy_execute_objfile_script): Update.
6241 * python/py-type.c (save_objfile_types): Update.
6242 * python/py-objfile.c (py_free_objfile): Update.
6243 * python/py-inferior.c (python_new_objfile): Update.
6244 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
6245 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
6246 (maintenance_check_psymtabs): Update.
6247 * printcmd.c (info_address_command): Update.
6248 * objfiles.h (struct objfile) <arch>: New method, from
6249 get_objfile_arch.
6250 (get_objfile_arch): Don't declare.
6251 * objfiles.c (get_objfile_arch): Remove.
6252 (filter_overlapping_sections): Update.
6253 * minsyms.c (msymbol_is_function): Update.
6254 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
6255 (output_nondebug_symbol): Update.
6256 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
6257 (mdebug_expand_psymtab): Update.
6258 * machoread.c (macho_add_oso_symfile): Update.
6259 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
6260 Update.
6261 * linux-fork.c (checkpoint_command): Update.
6262 * linespec.c (convert_linespec_to_sals): Update.
6263 * jit.c (finalize_symtab): Update.
6264 * infrun.c (insert_exception_resume_from_probe): Update.
6265 * ia64-tdep.c (ia64_find_unwind_table): Update.
6266 * hppa-tdep.c (internalize_unwinds): Update.
6267 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
6268 Update.
6269 * gcore.c (call_target_sbrk): Update.
6270 * elfread.c (record_minimal_symbol, elf_symtab_read)
6271 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
6272 (elf_gnu_ifunc_resolve_by_got): Update.
6273 * dwarf2/read.c (create_addrmap_from_index)
6274 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6275 (read_debug_names_from_section)
6276 (process_psymtab_comp_unit_reader, add_partial_symbol)
6277 (add_partial_subprogram, process_full_comp_unit)
6278 (read_file_scope, read_func_scope, read_lexical_block_scope)
6279 (read_call_site_scope, dwarf2_ranges_read)
6280 (dwarf2_record_block_ranges, dwarf2_add_field)
6281 (mark_common_block_symbol_computed, read_tag_pointer_type)
6282 (read_tag_string_type, dwarf2_init_float_type)
6283 (dwarf2_init_complex_target_type, read_base_type)
6284 (partial_die_info::read, partial_die_info::read)
6285 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
6286 (dwarf2_fetch_die_loc_sect_off): Update.
6287 * dwarf2/loc.c (dwarf2_find_location_expression)
6288 (class dwarf_evaluate_loc_desc, rw_pieced_value)
6289 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
6290 (dwarf2_loc_desc_get_symbol_read_needs)
6291 (locexpr_describe_location_piece, locexpr_describe_location_1)
6292 (loclist_describe_location): Update.
6293 * dwarf2/index-write.c (write_debug_names): Update.
6294 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
6295 * dtrace-probe.c (dtrace_process_dof): Update.
6296 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6297 (process_one_symbol): Update.
6298 * ctfread.c (ctf_init_float_type, read_base_type): Update.
6299 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6300 (coff_read_enum_type): Update.
6301 * cli/cli-cmds.c (edit_command, list_command): Update.
6302 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6303 * breakpoint.c (create_overlay_event_breakpoint)
6304 (create_longjmp_master_breakpoint)
6305 (create_std_terminate_master_breakpoint)
6306 (create_exception_master_breakpoint, get_sal_arch): Update.
6307 * block.c (block_gdbarch): Update.
6308 * annotate.c (annotate_source_line): Update.
6309
6310 2020-04-17 Tom Tromey <tromey@adacore.com>
6311
6312 * auto-load.c (show_auto_load_cmd): Remove.
6313 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6314 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6315 (maintenance_print_arc_command): Remove.
6316 * tui/tui-win.c (tui_command): Remove.
6317 (tui_get_cmd_list): Use add_basic_prefix_cmd.
6318 * tui/tui-layout.c (tui_layout_command): Remove.
6319 (_initialize_tui_layout): Use add_basic_prefix_cmd.
6320 * python/python.c (user_set_python, user_show_python): Remove.
6321 (_initialize_python): Use add_basic_prefix_cmd,
6322 add_show_prefix_cmd.
6323 * guile/guile.c (set_guile_command, show_guile_command): Remove.
6324 (install_gdb_commands): Use add_basic_prefix_cmd,
6325 add_show_prefix_cmd.
6326 (info_guile_command): Remove.
6327 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6328 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6329 add_show_prefix_cmd.
6330 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6331 Remove do_set and do_show parameters.
6332 * cli/cli-style.c (set_style, show_style): Remove.
6333 (_initialize_cli_style): Use add_basic_prefix_cmd,
6334 add_show_prefix_cmd.
6335 (cli_style_option::add_setshow_commands): Remove do_set and
6336 do_show parameters.
6337 (cli_style_option::add_setshow_commands): Use
6338 add_basic_prefix_cmd, add_show_prefix_cmd.
6339 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6340 (set_style_name): Remove.
6341 * cli/cli-dump.c (dump_command, append_command): Remove.
6342 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6343 (tekhex_dump_command, binary_dump_command)
6344 (binary_append_command): Remove.
6345 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6346 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6347 (init_w32_command_list): Remove; move into ...
6348 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6349 * valprint.c (set_print, show_print, set_print_raw)
6350 (show_print_raw): Remove.
6351 (_initialize_valprint): Use add_basic_prefix_cmd,
6352 add_show_prefix_cmd.
6353 * typeprint.c (set_print_type, show_print_type): Remove.
6354 (_initialize_typeprint): Use add_basic_prefix_cmd,
6355 add_show_prefix_cmd.
6356 * record.c (set_record_command, show_record_command): Remove.
6357 (_initialize_record): Use add_basic_prefix_cmd,
6358 add_show_prefix_cmd.
6359 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6360 add_show_prefix_cmd.
6361 (info_command, show_command, set_debug, show_debug): Remove.
6362 * top.h (set_history, show_history): Don't declare.
6363 * top.c (set_history, show_history): Remove.
6364 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6365 (unset_tdesc_cmd): Remove.
6366 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6367 add_show_prefix_cmd.
6368 * symtab.c (info_module_command): Remove.
6369 (_initialize_symtab): Use add_basic_prefix_cmd.
6370 * symfile.c (overlay_command): Remove.
6371 (_initialize_symfile): Use add_basic_prefix_cmd.
6372 * sparc64-tdep.c (info_adi_command): Remove.
6373 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6374 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6375 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6376 add_show_prefix_cmd.
6377 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6378 (_initialize_serial): Use add_basic_prefix_cmd,
6379 add_show_prefix_cmd.
6380 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6381 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6382 add_show_prefix_cmd.
6383 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6384 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6385 add_show_prefix_cmd.
6386 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6387 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6388 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6389 add_show_prefix_cmd.
6390 * remote.c (remote_command, set_remote_cmd): Remove.
6391 (_initialize_remote): Use add_basic_prefix_cmd.
6392 * record-full.c (set_record_full_command)
6393 (show_record_full_command): Remove.
6394 (_initialize_record_full): Use add_basic_prefix_cmd,
6395 add_show_prefix_cmd.
6396 * record-btrace.c (cmd_set_record_btrace)
6397 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6398 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6399 (cmd_show_record_btrace_pt): Remove.
6400 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6401 add_show_prefix_cmd.
6402 * ravenscar-thread.c (set_ravenscar_command)
6403 (show_ravenscar_command): Remove.
6404 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6405 add_show_prefix_cmd.
6406 * mips-tdep.c (show_mips_command, set_mips_command)
6407 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6408 add_show_prefix_cmd.
6409 * maint.c (maintenance_command, maintenance_info_command)
6410 (maintenance_check_command, maintenance_print_command)
6411 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6412 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6413 add_show_prefix_cmd.
6414 (show_per_command_cmd): Remove.
6415 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6416 Remove.
6417 (maintenance_show_test_settings_cmd): Remove.
6418 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6419 add_show_prefix_cmd.
6420 * maint-test-options.c (maintenance_test_options_command):
6421 Remove.
6422 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6423 * macrocmd.c (macro_command): Remove
6424 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6425 * language.c (set_check, show_check): Remove.
6426 (_initialize_language): Use add_basic_prefix_cmd,
6427 add_show_prefix_cmd.
6428 * infcmd.c (unset_command): Remove.
6429 (_initialize_infcmd): Use add_basic_prefix_cmd.
6430 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6431 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6432 add_show_prefix_cmd.
6433 * go32-nat.c (go32_info_dos_command): Remove.
6434 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6435 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6436 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6437 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6438 (_initialize_frame): Use add_basic_prefix_cmd,
6439 add_show_prefix_cmd.
6440 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6441 (_initialize_dcache): Use add_basic_prefix_cmd,
6442 add_show_prefix_cmd.
6443 * cp-support.c (maint_cplus_command): Remove.
6444 (_initialize_cp_support): Use add_basic_prefix_cmd.
6445 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6446 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6447 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6448 add_basic_prefix_cmd, add_show_prefix_cmd.
6449 * breakpoint.c (save_command): Remove.
6450 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6451 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6452 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6453 add_show_prefix_cmd.
6454 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6455 (set_ada_command, show_ada_command): Remove.
6456 (_initialize_ada_language): Use add_basic_prefix_cmd,
6457 add_show_prefix_cmd.
6458 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6459
6460 2020-04-16 Kamil Rytarowski <n54@gmx.com>
6461
6462 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6463 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6464
6465 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6466
6467 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6468 warning messages.
6469
6470 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6471
6472 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6473 import table is not at beginning of .idata section.
6474
6475 2020-04-16 Pedro Alves <palves@redhat.com>
6476
6477 * inferior.c (delete_inferior): Use delete operator directly
6478 instead of delete_program_space.
6479 * progspace.c (add_program_space): New, factored out from
6480 program_space::program_space.
6481 (remove_program_space): New, factored out from
6482 delete_program_space.
6483 (program_space::program_space): Remove intro comment. Rewrite.
6484 (program_space::~program_space): Remove intro comment. Call
6485 remove_program_space.
6486 (delete_program_space): Delete.
6487 * progspace.h (program_space::program_space): Make explicit. Move
6488 intro comment here, adjusted.
6489 (program_space::~program_space): Move intro comment here,
6490 adjusted.
6491 (delete_program_space): Remove.
6492
6493 2020-04-16 Tom Tromey <tromey@adacore.com>
6494
6495 * windows-nat.c (windows_nat::handle_access_violation): New
6496 function.
6497 * nat/windows-nat.h (handle_access_violation): Declare.
6498 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6499 windows-nat.c. Call handle_access_violation.
6500
6501 2020-04-16 Tom de Vries <tdevries@suse.de>
6502
6503 PR symtab/25791
6504 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6505 CUs without psymtab.
6506
6507 2020-04-16 Kevin Buettner <kevinb@redhat.com>
6508
6509 * python/python.c (do_start_initialization): Don't call
6510 PyEval_InitThreads for Python 3.9 and beyond.
6511
6512 2020-04-15 Kamil Rytarowski <n54@gmx.com>
6513
6514 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6515 thread functions.
6516 (obsd_nat_target::wait): Likewise.
6517
6518 2020-04-15 Tom Tromey <tromey@adacore.com>
6519
6520 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6521 (DEBUG_EXCEPT): Use debug_printf.
6522
6523 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6524
6525 * completer.c (class completion_tracker::completion_hash_entry)
6526 <hash_name>: New member function.
6527 (completion_tracker::discard_completions): New callback to hash a
6528 completion_hash_entry, pass this to htab_create_alloc.
6529
6530 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6531
6532 * windows-nat.c (windows_make_so): Warn rather than stopping with
6533 an error if realpath() fails.
6534
6535 2020-04-14 Kamil Rytarowski <n54@gmx.com>
6536
6537 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6538 (nbsd_nat_target::info_proc): Add do_status.
6539
6540 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6541 Tom de Vries <tdevries@suse.de>
6542
6543 PR symtab/25718
6544 * psympriv.h (struct partial_symtab::read_symtab)
6545 (struct partial_symtab::expand_psymtab)
6546 (struct partial_symtab::read_dependencies): Update comments.
6547 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6548 read_symtab for includer.
6549 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6550 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6551 (struct dwarf2_include_psymtab::m_readin): Remove.
6552 (struct dwarf2_include_psymtab::includer): New member function.
6553 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6554
6555 2020-04-14 Tom de Vries <tdevries@suse.de>
6556
6557 PR symtab/25720
6558 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6559 with NULL symbol_matcher and lookup_name.
6560 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6561 and lookup_name.
6562 * dwarf2/read.c (dw2_expand_symtabs_matching)
6563 (dw2_debug_names_expand_symtabs_matching): Same.
6564 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6565 Make lookup_name a pointer. Update comment.
6566 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6567 lookup_name being a pointer.
6568 * symfile.c (expand_symtabs_matching): Same.
6569 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6570 * linespec.c (iterate_over_all_matching_symtabs): Same.
6571
6572 2020-04-13 Tom Tromey <tom@tromey.com>
6573
6574 * run-on-main-thread.c: Update include.
6575 * unittests/main-thread-selftests.c: Update include.
6576 * tui/tui-win.c: Update include.
6577 * tui/tui-io.c: Update include.
6578 * tui/tui-interp.c: Update include.
6579 * tui/tui-hooks.c: Update include.
6580 * top.h: Update include.
6581 * top.c: Update include.
6582 * ser-base.c: Update include.
6583 * remote.c: Update include.
6584 * remote-notif.c: Update include.
6585 * remote-fileio.c: Update include.
6586 * record-full.c: Update include.
6587 * record-btrace.c: Update include.
6588 * python/python.c: Update include.
6589 * posix-hdep.c: Update include.
6590 * mingw-hdep.c: Update include.
6591 * mi/mi-main.c: Update include.
6592 * mi/mi-interp.c: Update include.
6593 * main.c: Update include.
6594 * linux-nat.c: Update include.
6595 * interps.c: Update include.
6596 * infrun.c: Update include.
6597 * inf-loop.c: Update include.
6598 * event-top.c: Update include.
6599 * event-loop.c: Move to ../gdbsupport/.
6600 * event-loop.h: Move to ../gdbsupport/.
6601 * async-event.h: Update include.
6602 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6603
6604 2020-04-13 Tom Tromey <tom@tromey.com>
6605
6606 * tui/tui-win.c: Include async-event.h.
6607 * remote.c: Include async-event.h.
6608 * remote-notif.c: Include async-event.h.
6609 * record-full.c: Include async-event.h.
6610 * record-btrace.c: Include async-event.h.
6611 * infrun.c: Include async-event.h.
6612 * event-top.c: Include async-event.h.
6613 * event-loop.h: Move some declarations to async-event.h.
6614 * event-loop.c: Don't include ser-event.h or top.h. Move some
6615 code to async-event.c.
6616 * async-event.h: New file.
6617 * async-event.c: New file.
6618 * Makefile.in (COMMON_SFILES): Add async-event.c.
6619 (HFILES_NO_SRCDIR): Add async-event.h.
6620
6621 2020-04-13 Tom Tromey <tom@tromey.com>
6622
6623 * utils.c (flush_streams): New function.
6624 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6625
6626 2020-04-13 Tom Tromey <tom@tromey.com>
6627
6628 * event-loop.c (handle_file_event): Use warning, not
6629 printf_unfiltered.
6630
6631 2020-04-13 Tom Tromey <tom@tromey.com>
6632
6633 * event-loop.c: Include <chrono>.
6634
6635 2020-04-13 Tom Tromey <tom@tromey.com>
6636
6637 * gdb_select.h: Move to ../gdbsupport/.
6638 * event-loop.c: Update include path.
6639 * top.c: Update include path.
6640 * ser-base.c: Update include path.
6641 * ui-file.c: Update include path.
6642 * ser-tcp.c: Update include path.
6643 * guile/scm-ports.c: Update include path.
6644 * posix-hdep.c: Update include path.
6645 * ser-unix.c: Update include path.
6646 * gdb_usleep.c: Update include path.
6647 * mingw-hdep.c: Update include path.
6648 * inflow.c: Update include path.
6649 * infrun.c: Update include path.
6650 * event-top.c: Update include path.
6651
6652 2020-04-13 Tom Tromey <tom@tromey.com>
6653
6654 * configure: Rebuild.
6655 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6656
6657 2020-04-13 Tom Tromey <tom@tromey.com>
6658
6659 * event-loop.h (start_event_loop): Don't declare.
6660 * event-loop.c (start_event_loop): Move...
6661 * main.c (start_event_loop): ...here. Now static.
6662
6663 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6664
6665 * MAINTAINERS: Update my email address.
6666
6667 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6668
6669 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6670 IP_ALL.
6671
6672 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6673
6674 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
6675 (nbsd_nat_target::info_proc): Add do_cmdline.
6676
6677 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6678
6679 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
6680 (nbsd_nat_target::info_proc): Add do_cwd.
6681
6682 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6683
6684 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6685
6686 2020-04-11 Kamil Rytarowski <n54@gmx.com>
6687
6688 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6689 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6690 (nbsd_nat_target::info_proc): New functions.
6691 * nbsd-nat.c (kinfo_get_vmmap): New function.
6692 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6693 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6694 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6695 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6696 functions.
6697 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6698 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6699 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6700 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6701 (KINFO_VME_FLAG_GROWS_DOWN): New.
6702
6703 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6704
6705 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6706 bit shift.
6707
6708 2020-04-10 Tom Tromey <tromey@adacore.com>
6709
6710 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6711
6712 2020-04-10 Tom Tromey <tromey@adacore.com>
6713
6714 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6715 separate debug files.
6716
6717 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
6718
6719 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6720 Move to...
6721 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6722 ... here.
6723 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6724 Check for STATUS_WX86_BREAKPOINT.
6725 (windows_nat_target::wait): Same.
6726
6727 2020-04-10 Tom de Vries <tdevries@suse.de>
6728
6729 PR cli/25808
6730 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6731
6732 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6733
6734 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6735 (Write After Approval): Remove Tom de Vries.
6736
6737 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6738
6739 revert partially:
6740 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6741
6742 * buildsym.c (record_line): Fix undefined behavior and preserve
6743 lines at eof.
6744
6745 2020-04-09 Kamil Rytarowski <n54@gmx.com>
6746
6747 * auxv.h (svr4_auxv_parse): New.
6748 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6749 and generic_auxv_parse.
6750 (svr4_auxv_parse): Add.
6751 * obsd-tdep.c: Include "auxv.h".
6752 (obsd_auxv_parse): Remove.
6753 (obsd_init_abi): Remove comment.
6754 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6755 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6756 * nbsd-tdep.c: Include "auxv.h".
6757 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6758
6759 2020-04-08 Tom Tromey <tromey@adacore.com>
6760
6761 * nat/windows-nat.h (last_wait_event): Don't declare.
6762 (wait_for_debug_event): Update comment.
6763 * nat/windows-nat.c (last_wait_event): Now static.
6764
6765 2020-04-08 Tom Tromey <tromey@adacore.com>
6766
6767 * windows-nat.c (wait_for_debug_event): Move to
6768 nat/windows-nat.c.
6769 * nat/windows-nat.h (wait_for_debug_event): Declare.
6770 * nat/windows-nat.c (wait_for_debug_event): Move from
6771 windows-nat.c. No longer static.
6772
6773 2020-04-08 Tom Tromey <tromey@adacore.com>
6774
6775 * windows-nat.c (get_windows_debug_event): Use
6776 fetch_pending_stop.
6777 * nat/windows-nat.h (fetch_pending_stop): Declare.
6778 * nat/windows-nat.c (fetch_pending_stop): New function.
6779
6780 2020-04-08 Tom Tromey <tromey@adacore.com>
6781
6782 * windows-nat.c (windows_continue): Use matching_pending_stop and
6783 continue_last_debug_event.
6784 * nat/windows-nat.h (matching_pending_stop)
6785 (continue_last_debug_event): Declare.
6786 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6787 (matching_pending_stop, continue_last_debug_event): New
6788 functions.
6789
6790 2020-04-08 Tom Tromey <tromey@adacore.com>
6791
6792 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6793 (handle_exception_result): Move to nat/windows-nat.h.
6794 (DEBUG_EXCEPTION_SIMPLE): Remove.
6795 (windows_nat::handle_ms_vc_exception): New function.
6796 (handle_exception): Move to nat/windows-nat.c.
6797 (get_windows_debug_event): Update.
6798 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6799 nat/windows-nat.c.
6800 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6801 (handle_exception_result): Move from windows-nat.c.
6802 (handle_exception): Declare.
6803 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6804 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6805 windows-nat.c.
6806
6807 2020-04-08 Tom Tromey <tromey@adacore.com>
6808
6809 * windows-nat.c (exception_count, event_count): Remove.
6810 (handle_exception, get_windows_debug_event)
6811 (do_initial_windows_stuff): Update.
6812
6813 2020-04-08 Tom Tromey <tromey@adacore.com>
6814
6815 * windows-nat.c (windows_nat::handle_load_dll)
6816 (windows_nat::handle_unload_dll): Rename. No longer static.
6817 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6818 Declare.
6819
6820 2020-04-08 Tom Tromey <tromey@adacore.com>
6821
6822 * complaints.h (stop_whining): Declare at top-level.
6823 (complaint): Don't declare stop_whining.
6824
6825 2020-04-08 Tom Tromey <tromey@adacore.com>
6826
6827 * windows-nat.c (windows_nat::handle_output_debug_string):
6828 Rename. No longer static.
6829 * nat/windows-nat.h (handle_output_debug_string): Declare.
6830
6831 2020-04-08 Tom Tromey <tromey@adacore.com>
6832
6833 * windows-nat.c (current_process_handle, current_process_id)
6834 (main_thread_id, last_sig, current_event, last_wait_event)
6835 (current_windows_thread, desired_stop_thread_id, pending_stops)
6836 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6837 (display_selectors, fake_create_process)
6838 (get_windows_debug_event): Update.
6839 * nat/windows-nat.h (current_process_handle, current_process_id)
6840 (main_thread_id, last_sig, current_event, last_wait_event)
6841 (current_windows_thread, desired_stop_thread_id, pending_stops)
6842 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6843 * nat/windows-nat.c (current_process_handle, current_process_id)
6844 (main_thread_id, last_sig, current_event, last_wait_event)
6845 (current_windows_thread, desired_stop_thread_id, pending_stops)
6846 (siginfo_er): New globals. Move from windows-nat.c.
6847
6848 2020-04-08 Tom Tromey <tromey@adacore.com>
6849
6850 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6851 (handle_load_dll): Update.
6852 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6853
6854 2020-04-08 Tom Tromey <tromey@adacore.com>
6855
6856 * windows-nat.c (enum thread_disposition_type): Move to
6857 nat/windows-nat.h.
6858 (windows_nat::thread_rec): Rename from thread_rec. No longer
6859 static.
6860 (windows_add_thread, windows_nat_target::fetch_registers)
6861 (windows_nat_target::store_registers, handle_exception)
6862 (windows_nat_target::resume, get_windows_debug_event)
6863 (windows_nat_target::get_tib_address)
6864 (windows_nat_target::thread_name)
6865 (windows_nat_target::thread_alive): Update.
6866 * nat/windows-nat.h (enum thread_disposition_type): Move from
6867 windows-nat.c.
6868 (thread_rec): Declare.
6869
6870 2020-04-08 Tom Tromey <tromey@adacore.com>
6871
6872 * windows-nat.c: Add "using namespace".
6873 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6874 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6875
6876 2020-04-08 Tom Tromey <tromey@adacore.com>
6877
6878 * nat/windows-nat.h (struct windows_thread_info): Declare
6879 destructor.
6880 * nat/windows-nat.c (~windows_thread_info): New.
6881
6882 2020-04-08 Tom Tromey <tromey@adacore.com>
6883
6884 PR gdb/22992
6885 * windows-nat.c (current_event): Update comment.
6886 (last_wait_event, desired_stop_thread_id): New globals.
6887 (struct pending_stop): New.
6888 (pending_stops): New global.
6889 (windows_nat_target) <stopped_by_sw_breakpoint>
6890 <supports_stopped_by_sw_breakpoint>: New methods.
6891 (windows_fetch_one_register): Add assertions. Adjust PC.
6892 (windows_continue): Handle pending stops. Suspend other threads
6893 when stepping. Use last_wait_event
6894 (wait_for_debug_event): New function.
6895 (get_windows_debug_event): Use wait_for_debug_event. Handle
6896 pending stops. Queue spurious stops.
6897 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6898 (windows_nat_target::kill): Use wait_for_debug_event.
6899 * nat/windows-nat.h (struct windows_thread_info)
6900 <stopped_at_software_breakpoint>: New field.
6901 * nat/windows-nat.c (windows_thread_info::resume): Clear
6902 stopped_at_software_breakpoint.
6903
6904 2020-04-08 Tom Tromey <tromey@adacore.com>
6905
6906 * windows-nat.c (enum thread_disposition_type): New.
6907 (thread_rec): Replace "get_context" parameter with "disposition";
6908 change type.
6909 (windows_add_thread, windows_nat_target::fetch_registers)
6910 (windows_nat_target::store_registers, handle_exception)
6911 (windows_nat_target::resume, get_windows_debug_event)
6912 (windows_nat_target::get_tib_address)
6913 (windows_nat_target::thread_name)
6914 (windows_nat_target::thread_alive): Update.
6915
6916 2020-04-08 Tom Tromey <tromey@adacore.com>
6917
6918 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6919 (windows_continue): Use windows_continue::resume.
6920 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6921 resume>: Declare new methods.
6922 * nat/windows-nat.c: New file.
6923 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6924
6925 2020-04-08 Tom Tromey <tromey@adacore.com>
6926
6927 * windows-nat.c (windows_add_thread, windows_delete_thread)
6928 (windows_nat_target::fetch_registers)
6929 (windows_nat_target::store_registers, fake_create_process)
6930 (windows_nat_target::resume, windows_nat_target::resume)
6931 (get_windows_debug_event, windows_nat_target::wait)
6932 (windows_nat_target::pid_to_str)
6933 (windows_nat_target::get_tib_address)
6934 (windows_nat_target::get_ada_task_ptid)
6935 (windows_nat_target::thread_name)
6936 (windows_nat_target::thread_alive): Use lwp, not tid.
6937
6938 2020-04-08 Tom Tromey <tromey@adacore.com>
6939
6940 * windows-nat.c (handle_exception)
6941 (windows_nat_target::thread_name): Update.
6942 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6943 <name>: Now unique_xmalloc_ptr.
6944
6945 2020-04-08 Tom Tromey <tromey@adacore.com>
6946
6947 * windows-nat.c (thread_rec)
6948 (windows_nat_target::fetch_registers): Update.
6949 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6950 Update comment.
6951 <debug_registers_changed, reload_context>: Now bool.
6952
6953 2020-04-08 Tom Tromey <tromey@adacore.com>
6954
6955 * windows-nat.c (windows_add_thread): Use new.
6956 (windows_init_thread_list, windows_delete_thread): Use delete.
6957 (get_windows_debug_event): Update.
6958 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6959 destructor, and initializers.
6960
6961 2020-04-08 Tom Tromey <tromey@adacore.com>
6962
6963 * windows-nat.c (struct windows_thread_info): Remove.
6964 * nat/windows-nat.h: New file.
6965
6966 2020-04-08 Tom Tromey <tromey@adacore.com>
6967
6968 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6969 (thread_rec, windows_add_thread, windows_delete_thread)
6970 (windows_continue): Update.
6971
6972 2020-04-08 Tom Tromey <tromey@adacore.com>
6973
6974 * windows-nat.c (struct windows_thread_info): Remove typedef.
6975 (thread_head): Remove.
6976 (thread_list): New global.
6977 (thread_rec, windows_add_thread, windows_init_thread_list)
6978 (windows_delete_thread, windows_continue): Update.
6979
6980 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6981
6982 * windows-tdep.h (windows_init_abi): Add comment.
6983 (cygwin_init_abi): New declaration.
6984 * windows-tdep.c: Split signal enumeration in two, one for
6985 Windows and one for Cygwin.
6986 (windows_gdb_signal_to_target): Only deal with signal of the
6987 Windows OS ABI.
6988 (cygwin_gdb_signal_to_target): New function.
6989 (windows_init_abi): Rename to windows_init_abi_common, don't set
6990 gdb_signal_to_target gdbarch method. Add new new function with
6991 this name.
6992 (cygwin_init_abi): New function.
6993 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6994 comment. Don't call windows_init_abi.
6995 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6996 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6997 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6998 i386_windows_init_abi_common, don't call windows_init_abi. Add
6999 a new function of this name.
7000 (i386_cygwin_init_abi): New function.
7001 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
7002 OS ABI Cygwin.
7003
7004 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7005
7006 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
7007 parameter.c.
7008 (dwarf2_read_gdb_index): Update.
7009
7010 2020-04-07 Kamil Rytarowski <n54@gmx.com>
7011
7012 * nbsd-tdep.c: Include "objfiles.h".
7013 (nbsd_skip_solib_resolver): New.
7014 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
7015
7016 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7017
7018 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
7019 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
7020 with DW_LLE_base_addressx are being emitted in DWARFv5.
7021 Add the newly added kind DW_LOC_OFFSET_PAIR also.
7022 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
7023 unsigned integer.
7024
7025 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7026
7027 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
7028 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
7029 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
7030 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
7031 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
7032 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
7033 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
7034
7035
7036 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7037
7038 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
7039 (read_loclist_index): New function definition.
7040 (lookup_loclist_base): New function definition.
7041 (read_loclist_header): New function definition.
7042 (dwarf2_cu): Add loclist_base and loclist_header field.
7043 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
7044 (read_full_die_1): Read the value of DW_AT_loclists_base.
7045 (read_attribute_reprocess): Handle DW_FORM_loclistx.
7046 (read_attribute_value): Handle DW_FORM_loclistx.
7047 (skip_one_die): Handle DW_FORM_loclistx.
7048 (loclist_header): New structure declaration.
7049 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
7050
7051 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7052
7053 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
7054 constructor. Remove `addr` parameter from other constructor and
7055 add `per_cu` parameter.
7056 * dwarf2/read.c (create_partial_symtab): Update.
7057
7058 2020-04-07 Tom de Vries <tdevries@suse.de>
7059
7060 PR symtab/25796
7061 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
7062 (partial_die_info::fixup): Inherit has_const_value.
7063
7064 2020-04-07 Tom de Vries <tdevries@suse.de>
7065
7066 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
7067 symbols without address.
7068
7069 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7070
7071 * nbsd-nat.h (struct thread_info): Add forward declaration.
7072 (nbsd_nat_target::thread_alive): Add.
7073 (nbsd_nat_target::thread_name): Likewise.
7074 (nbsd_nat_target::update_thread_list): Likewise.
7075 (update_thread_list::post_attach): Likewise.
7076 (post_attach::pid_to_str): Likewise.
7077 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
7078 (nbsd_thread_lister): Add.
7079 (nbsd_nat_target::thread_alive): Likewise.
7080 (nbsd_nat_target::thread_name): Likewise.
7081 (nbsd_add_threads): Likewise.
7082 (update_thread_list::post_attach): Likewise.
7083 (nbsd_nat_target::update_thread_list): Likewise.
7084 (post_attach::pid_to_str): Likewise.
7085
7086 2020-04-06 Tom Tromey <tromey@adacore.com>
7087
7088 * ada-valprint.c (print_variant_part): Extract the variant field.
7089 (print_field_values): Use the field as the outer value when
7090 recursing.
7091
7092 2020-04-06 Tom Tromey <tromey@adacore.com>
7093
7094 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
7095 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
7096 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
7097 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
7098 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
7099
7100 2020-04-06 Tom Tromey <tromey@adacore.com>
7101
7102 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
7103 TYPE_CODE_ERROR.
7104
7105 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7106
7107 * nbsd-tdep.c: Include "gdbarch.h".
7108 Define enum with NetBSD signal numbers.
7109 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
7110 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
7111 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
7112 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
7113 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
7114 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
7115 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
7116 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
7117 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
7118 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7119 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7120 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
7121
7122 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
7123
7124 PR gdb/25325
7125 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
7126
7127 2020-04-03 Tom Tromey <tromey@adacore.com>
7128
7129 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
7130 Read constant block.
7131
7132 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7133
7134 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
7135 (gdb_bfd_get_full_section_contents): New declaration.
7136 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
7137 * windows-tdep.c (is_linked_with_cygwin_dll): Use
7138 gdb_bfd_get_full_section_contents.
7139
7140 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7141
7142 * exec.c (build_section_table): Replace internal_error with
7143 gdb_assert.
7144 (section_table_xfer_memory_partial): Likewise.
7145 * mdebugread.c (parse_partial_symbols): Likewise.
7146 * psymtab.c (lookup_partial_symbol): Likewise.
7147 * utils.c (wrap_here): Likewise.
7148
7149 2020-04-02 Tom Tromey <tromey@adacore.com>
7150
7151 * f-lang.c (build_fortran_types): Use arch_type to initialize
7152 builtin_complex_s32 in the TYPE_CODE_ERROR case.
7153
7154 2020-04-02 Tom Tromey <tromey@adacore.com>
7155
7156 * dwarf2/read.c (partial_die_info::read): Do not create a vector
7157 of attributes.
7158
7159 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
7160 Bernd Edlinger <bernd.edlinger@hotmail.de>
7161 Tom Tromey <tromey@adacore.com>
7162
7163 * buildsym.c (buildsym_compunit::record_line): Remove
7164 deduplication code.
7165
7166 2020-04-02 Tom de Vries <tdevries@suse.de>
7167
7168 PR ada/24671
7169 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
7170
7171 2020-04-02 Tom de Vries <tdevries@suse.de>
7172
7173 * dwarf2/read.c (dwarf2_gdb_index_functions,
7174 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
7175 NULL.
7176 * psymtab.c (psym_lookup_global_symbol_language): New function.
7177 (psym_functions): Init psym_lookup_global_symbol_language with
7178 psym_lookup_global_symbol_language.
7179 * symfile-debug.c (debug_sym_quick_functions): Init
7180 lookup_global_symbol_language with NULL.
7181 * symfile.c (set_initial_language): Remove fixme comment.
7182 * symfile.h (struct quick_symbol_functions): Add
7183 lookup_global_symbol_language.
7184 * symtab.c (find_quick_global_symbol_language): New function.
7185 (find_main_name): Use find_quick_global_symbol_language.
7186
7187 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
7188
7189 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
7190
7191 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7192
7193 * buildsym.c (record_line): Fix undefined behavior and preserve
7194 lines at eof.
7195
7196 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7197
7198 * buildsym.c (record_line): Fix the resizing condition.
7199
7200 2020-04-01 Tom Tromey <tom@tromey.com>
7201
7202 * value.h (value_literal_complex): Add comment.
7203 * valops.c (value_literal_complex): Refer to value.h.
7204
7205 2020-04-01 Tom Tromey <tom@tromey.com>
7206
7207 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
7208 (scalar_type): New rule, from typebase.
7209 (typebase): Use scalar_type. Recognize complex types.
7210 (field_name): Handle FLOAT_KEYWORD.
7211 (ident_tokens): Add _Complex and __complex__.
7212
7213 2020-04-01 Tom Tromey <tom@tromey.com>
7214
7215 PR exp/25299:
7216 * valarith.c (promotion_type, complex_binop): New functions.
7217 (scalar_binop): Handle complex numbers. Use promotion_type.
7218 (value_pos, value_neg, value_complement): Handle complex numbers.
7219
7220 2020-04-01 Tom Tromey <tom@tromey.com>
7221
7222 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
7223 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
7224 (parse_number): Handle complex numbers.
7225
7226 2020-04-01 Tom Tromey <tom@tromey.com>
7227
7228 * c-valprint.c (c_decorations): Change complex suffix to "i".
7229
7230 2020-04-01 Tom Tromey <tom@tromey.com>
7231
7232 * valprint.c (generic_value_print_complex): Use accessors.
7233 * value.h (value_real_part, value_imaginary_part): Declare.
7234 * valops.c (value_real_part, value_imaginary_part): New
7235 functions.
7236 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
7237
7238 2020-04-01 Tom Tromey <tom@tromey.com>
7239
7240 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
7241 (read_range_type): Update.
7242 * mdebugread.c (basic_type): Update.
7243 * go-lang.c (build_go_types): Use init_complex_type.
7244 * gdbtypes.h (struct main_type) <complex_type>: New member.
7245 (init_complex_type): Update.
7246 (arch_complex_type): Don't declare.
7247 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
7248 Make name if none given. Use alloc_type_copy. Look for cached
7249 complex type.
7250 (arch_complex_type): Remove.
7251 (gdbtypes_post_init): Use init_complex_type.
7252 * f-lang.c (build_fortran_types): Use init_complex_type.
7253 * dwarf2/read.c (read_base_type): Update.
7254 * d-lang.c (build_d_types): Use init_complex_type.
7255 * ctfread.c (read_base_type): Update.
7256
7257 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7258
7259 * infrun.c (stop_all_threads): Update assertion, plus when
7260 stopping threads, take into account that we might be trying
7261 to stop an all-stop target.
7262 (stop_waiting): Call 'stop_all_threads' if there exists a
7263 non-stop target.
7264
7265 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7266
7267 * target.h (exists_non_stop_target): New function declaration.
7268 * target.c (exists_non_stop_target): New function.
7269
7270 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
7271
7272 PR gdb/24789
7273 * eval.c (is_integral_or_integral_reference): New function.
7274 (evaluate_subexp_standard): Allow integer references in
7275 pointer arithmetic.
7276
7277 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7278
7279 * remote.c (remote_target::remote_parse_stop_reply): Remove the
7280 check for no ptid in the stop reply when the target is non-stop.
7281
7282 2020-04-01 Tom Tromey <tromey@adacore.com>
7283
7284 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
7285 "name" parameter to rvalue reference. Initialize m_name_holder.
7286 <lookup_name_info>: New overloads.
7287 <name>: Return gdb::string_view.
7288 <c_str>: New method.
7289 <make_ignore_params>: Update.
7290 <search_name_hash>: Update.
7291 <language_lookup_name>: Return const char *.
7292 <m_name>: Change type.
7293 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
7294 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
7295 (lookup_name_info::match_any): Update.
7296 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7297 Update.
7298 * minsyms.c (linkage_name_str): Update.
7299 * language.c (default_symbol_name_matcher): Update.
7300 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7301 Update.
7302 * ada-lang.c (ada_fold_name): Change parameter to string_view.
7303 (ada_lookup_name_info::ada_lookup_name_info): Update.
7304 (literal_symbol_name_matcher): Update.
7305
7306 2020-04-01 Tom Tromey <tromey@adacore.com>
7307
7308 * psymtab.c (psymtab_search_name): Remove function.
7309 (psym_lookup_symbol): Create search name and lookup name here.
7310 (lookup_partial_symbol): Remove "name" parameter; add
7311 lookup_name.
7312 (psym_expand_symtabs_for_function): Update.
7313
7314 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
7315
7316 PR tui/25597:
7317 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7318
7319 2020-03-31 Tom Tromey <tromey@adacore.com>
7320
7321 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7322 memcpy.
7323
7324 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
7325
7326 * features/riscv/32bit-csr.xml: Regenerated.
7327 * features/riscv/64bit-csr.xml: Regenerated.
7328
7329 2020-03-30 Tom Tromey <tromey@adacore.com>
7330
7331 * ada-valprint.c (print_variant_part): Update.
7332 * ada-lang.h (ada_which_variant_applies): Update.
7333 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7334 outer_valaddr parameters; replace with "outer" value parameter.
7335 (to_fixed_variant_branch_type): Update.
7336
7337 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7338
7339 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7340 <list>. Remove inclusion of observable.h.
7341 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7342 (struct arch_lwp_info): New struct.
7343 (class ppc_linux_dreg_interface): New class.
7344 (struct ppc_linux_process_info): New struct.
7345 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7346 <low_new_clone, low_forget_process, low_prepare_to_resume>
7347 <copy_thread_dreg_state, mark_thread_stale>
7348 <mark_debug_registers_changed, register_hw_breakpoint>
7349 <clear_hw_breakpoint, register_wp, clear_wp>
7350 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7351 <num_memory_accesses, get_trigger_type>
7352 <create_watchpoint_request, hwdebug_point_cmp>
7353 <init_arch_lwp_info, get_arch_lwp_info>
7354 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7355 methods.
7356 <struct ptid_hash>: New inner struct.
7357 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7358 members.
7359 (saved_dabr_value, hwdebug_info, max_slots_number)
7360 (struct hw_break_tuple, struct thread_points, ppc_threads)
7361 (have_ptrace_hwdebug_interface)
7362 (hwdebug_find_thread_points_by_tid)
7363 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7364 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7365 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7366 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7367 use m_dreg_interface.
7368 (hwdebug_point_cmp): Change to...
7369 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7370 reference arguments instead of pointers.
7371 (ppc_linux_nat_target::ranged_break_num_registers): Use
7372 m_dreg_interface.
7373 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7374 m_dreg_interface. Call register_hw_breakpoint.
7375 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7376 m_dreg_interface. Call clear_hw_breakpoint.
7377 (get_trigger_type): Change to...
7378 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7379 comment.
7380 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7381 use m_dreg_interface. Call register_hw_breakpoint.
7382 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7383 use m_dreg_interface. Call clear_hw_breakpoint.
7384 (can_use_watchpoint_cond_accel): Change to...
7385 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7386 method. Update comment, use m_dreg_interface and
7387 m_process_info.
7388 (calculate_dvc): Change to...
7389 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7390 m_dreg_interface.
7391 (num_memory_accesses): Change to...
7392 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7393 (check_condition): Change to...
7394 (ppc_linux_nat_target::check_condition): ...this method.
7395 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7396 comment, use m_dreg_interface.
7397 (create_watchpoint_request): Change to...
7398 (ppc_linux_nat_target::create_watchpoint_request): ...this
7399 method. Use m_dreg_interface.
7400 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7401 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7402 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7403 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7404 (ppc_linux_nat_target::low_forget_process)
7405 (ppc_linux_nat_target::low_new_fork)
7406 (ppc_linux_nat_target::low_new_clone)
7407 (ppc_linux_nat_target::low_delete_thread)
7408 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7409 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7410 only call mark_thread_stale.
7411 (ppc_linux_thread_exit): Remove.
7412 (ppc_linux_nat_target::stopped_data_address): Change to...
7413 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7414 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7415 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7416 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7417 comment. Call low_stopped_data_address.
7418 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7419 m_dreg_interface.
7420 (ppc_linux_nat_target::masked_watch_num_registers): Use
7421 m_dreg_interface.
7422 (ppc_linux_nat_target::copy_thread_dreg_state)
7423 (ppc_linux_nat_target::mark_thread_stale)
7424 (ppc_linux_nat_target::mark_debug_registers_changed)
7425 (ppc_linux_nat_target::register_hw_breakpoint)
7426 (ppc_linux_nat_target::clear_hw_breakpoint)
7427 (ppc_linux_nat_target::register_wp)
7428 (ppc_linux_nat_target::clear_wp)
7429 (ppc_linux_nat_target::init_arch_lwp_info)
7430 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7431 (_initialize_ppc_linux_nat): Remove observer callback.
7432
7433 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7434
7435 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7436 (ppc_linux_nat_target::auxv_parse)
7437 (ppc_linux_nat_target::read_description)
7438 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7439 Move up.
7440
7441 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7442
7443 * linux-nat.h (low_new_clone): New method.
7444 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7445
7446 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7447
7448 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7449 (dbx_expand_psymtab): ... this.
7450 (start_psymtab): Update.
7451 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7452 (mdebug_expand_psymtab): ... this.
7453 (parse_partial_symbols): Update.
7454 (new_psymtab): Update.
7455 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7456 (xcoff_expand_psymtab): ... this.
7457 (xcoff_start_psymtab): Update.
7458
7459 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7460
7461 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7462 <expand_dependencies>: ... this.
7463 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7464 (partial_symtab::expand_dependencies): ... this.
7465 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7466 Update.
7467 (dwarf2_psymtab::expand_psymtab): Update.
7468 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7469 * mdebugread.c (psymtab_to_symtab_1): Update.
7470 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7471
7472 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7473
7474 * psympriv.h (discard_psymtab): Remove.
7475 * dbxread.c (dbx_end_psymtab): Update.
7476 * xcoffread.c (xcoff_end_psymtab): Update.
7477
7478 2020-03-28 Tom Tromey <tom@tromey.com>
7479
7480 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7481 comment.
7482
7483 2020-03-28 Tom Tromey <tom@tromey.com>
7484
7485 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7486
7487 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
7488
7489 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7490
7491 2020-03-26 John Baldwin <jhb@FreeBSD.org>
7492
7493 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7494
7495 2020-03-26 Tom Tromey <tom@tromey.com>
7496
7497 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7498 (mark_common_block_symbol_computed, read_tag_string_type)
7499 (attr_to_dynamic_prop, read_subrange_type): Update.
7500 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7501 to be methods on struct attribute.
7502 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7503 (read_call_site_scope, partial_die_info::read)
7504 (partial_die_info::read, lookup_die_type, follow_die_ref):
7505 Update.
7506 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7507 from dwarf2_get_ref_die_offset.
7508 (attribute::constant_value): New method, from
7509 dwarf2_get_attr_constant_value.
7510 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7511 Declare method.
7512 <constant_value>: New method.
7513
7514 2020-03-26 Tom Tromey <tom@tromey.com>
7515
7516 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7517 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7518 (dwarf_type_encoding_name): Move to stringify.c.
7519 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7520 * dwarf2/stringify.c: New file.
7521 * dwarf2/stringify.h: New file.
7522
7523 2020-03-26 Tom Tromey <tom@tromey.com>
7524
7525 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7526 Rewrite.
7527
7528 2020-03-26 Tom Tromey <tom@tromey.com>
7529
7530 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7531 methods.
7532 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7533 (lookup_ranges_base): Likewise.
7534 (read_cutu_die_from_dwo, read_full_die_1): Update.
7535
7536 2020-03-26 Tom Tromey <tom@tromey.com>
7537
7538 * dwarf2/read.c (read_import_statement, read_file_scope)
7539 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7540 (read_lexical_block_scope, read_call_site_scope)
7541 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7542 (handle_struct_member_die, process_structure_scope)
7543 (update_enumeration_type_from_children)
7544 (process_enumeration_scope, read_array_type, read_common_block)
7545 (read_namespace, read_module, read_subroutine_type): Update.
7546 (sibling_die): Remove.
7547
7548 2020-03-26 Tom Tromey <tom@tromey.com>
7549
7550 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7551 (build_type_psymtabs_reader, read_structure_type)
7552 (read_enumeration_type, read_full_die_1): Update.
7553 (dwarf2_attr_no_follow): Move to die.h.
7554 * dwarf2/die.h (struct die_info) <attr>: New method.
7555
7556 2020-03-26 Tom Tromey <tom@tromey.com>
7557
7558 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7559 <base_address>: Now an optional.
7560 (dwarf2_find_base_address, dwarf2_rnglists_process)
7561 (dwarf2_ranges_process, fill_in_loclist_baton)
7562 (dwarf2_symbol_mark_computed): Update.
7563
7564 2020-03-26 Tom Tromey <tom@tromey.com>
7565
7566 * dwarf2/read.c (struct die_info): Move to die.h.
7567 * dwarf2/die.h: New file.
7568
7569 2020-03-26 Tom Tromey <tom@tromey.com>
7570
7571 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7572 * dwarf2/read.c
7573 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7574 Move to line-header.c.
7575 (read_checked_initial_length_and_offset, read_formatted_entries):
7576 Likewise.
7577 (dwarf_decode_line_header): Split into two.
7578 * dwarf2/line-header.c
7579 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7580 Move from read.c.
7581 (read_checked_initial_length_and_offset, read_formatted_entries):
7582 Likewise.
7583 (dwarf_decode_line_header): New function, split from read.c.
7584
7585 2020-03-26 Tom Tromey <tom@tromey.com>
7586
7587 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7588 Declare method.
7589 * dwarf2/read.c (read_attribute_value): Update.
7590 (dwarf2_per_objfile::read_line_string): Rename from
7591 read_indirect_line_string.
7592 (read_formatted_entries): Update.
7593
7594 2020-03-26 Tom Tromey <tom@tromey.com>
7595
7596 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7597 variable.
7598
7599 2020-03-26 Tom Tromey <tom@tromey.com>
7600
7601 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7602 const.
7603 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7604 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7605 parameter const.
7606
7607 2020-03-26 Tom Tromey <tom@tromey.com>
7608
7609 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7610 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7611 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7612 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7613
7614 2020-03-26 Tom Tromey <tom@tromey.com>
7615
7616 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7617 file_names_size, file_full_name, file_file_name>: Use const.
7618 <file_name_at, file_names>: Add const overload.
7619 * dwarf2/line-header.c (line_header::file_file_name)
7620 (line_header::file_full_name): Update.
7621
7622 2020-03-26 Tom Tromey <tom@tromey.com>
7623
7624 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7625 (macro_start_file, consume_improper_spaces)
7626 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7627 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7628 (dwarf_decode_macros): Move to macro.c.
7629 * dwarf2/macro.c: New file.
7630 * dwarf2/macro.h: New file.
7631 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7632
7633 2020-03-26 Tom Tromey <tom@tromey.com>
7634
7635 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7636 method.
7637 * dwarf2/section.c: New method. From
7638 read_indirect_string_at_offset_from.
7639 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7640 (read_indirect_string_at_offset_from): Move to section.c.
7641 (read_indirect_string_at_offset): Rewrite.
7642 (read_indirect_line_string_at_offset): Remove.
7643 (read_indirect_string, read_indirect_line_string)
7644 (dwarf_decode_macro_bytes): Update.
7645
7646 2020-03-26 Tom Tromey <tom@tromey.com>
7647
7648 * dwarf2/section.h (struct dwarf2_section_info)
7649 <overload_complaint>: Declare.
7650 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7651 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7652 Rename from dwarf2_section_buffer_overflow_complaint.
7653 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7654 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7655
7656 2020-03-26 Tom Tromey <tom@tromey.com>
7657
7658 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7659 Declare.
7660 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7661 Move from read.c.
7662 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7663 to section.c.
7664
7665 2020-03-26 Tom Tromey <tom@tromey.com>
7666
7667 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7668
7669 2020-03-26 Tom Tromey <tom@tromey.com>
7670
7671 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7672 "builder".
7673 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7674 parameter.
7675 (dwarf_decode_macros): Update.
7676
7677 2020-03-26 Tom Tromey <tom@tromey.com>
7678
7679 * dwarf2/read.c (read_attribute_value): Update.
7680 (read_indirect_string_from_dwz): Move to dwz.c; change into
7681 method.
7682 (dwarf_decode_macro_bytes): Update.
7683 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7684 * dwarf2/dwz.c: New file.
7685 * Makefile.in (COMMON_SFILES): Add dwz.c.
7686
7687 2020-03-26 Tom Tromey <tom@tromey.com>
7688
7689 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7690 * dwarf2/read.c: Add include.
7691 * dwarf2/index-write.c: Add include.
7692 * dwarf2/index-cache.c: Add include.
7693 * dwarf2/dwz.h: New file.
7694
7695 2020-03-25 Tom Tromey <tom@tromey.com>
7696
7697 * compile/compile-object-load.c (get_out_value_type): Mention
7698 correct symbol name in error message.
7699
7700 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
7701
7702 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7703
7704 2020-03-25 Tom de Vries <tdevries@suse.de>
7705
7706 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7707 * symmisc.c (dump_symtab_1): Print user and includes fields.
7708 (maintenance_info_symtabs): Same.
7709
7710 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7711
7712 PR gdb/25534
7713 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7714 (riscv_regcache_cooked_write): New function.
7715 (riscv_push_dummy_call): Use new function.
7716 (riscv_return_value): Likewise.
7717
7718 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7719
7720 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7721 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7722 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7723 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7724 * infrun.c (follow_fork): Likewise.
7725 (follow_fork_inferior): Likewise.
7726 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7727 * linux-nat.h (class linux_nat_target): Likewise.
7728 * remote.c (class remote_target) <follow_fork>: Likewise.
7729 (remote_target::follow_fork): Likewise.
7730 * target-delegates.c: Re-generate.
7731 * target.c (default_follow_fork): Likewise.
7732 (target_follow_fork): Likewise.
7733 * target.h (struct target_ops) <follow_fork>: Likewise.
7734 (target_follow_fork): Likewise.
7735
7736 2020-03-24 Tom de Vries <tdevries@suse.de>
7737
7738 * psymtab.c (maintenance_info_psymtabs): Print user field.
7739
7740 2020-03-20 Tom Tromey <tromey@adacore.com>
7741
7742 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7743 const.
7744 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7745 const.
7746
7747 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
7748
7749 * ptrace.m4: Don't check for ptrace declaration.
7750 * config.in: Re-generate.
7751 * configure: Re-generate.
7752 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7753 not defined.
7754
7755 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7756
7757 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7758 `PTRACE_TYPE_RET'.
7759 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7760 * sparc-nat.c (gdb_ptrace): Likewise.
7761 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7762
7763 2020-03-20 Tom Tromey <tromey@adacore.com>
7764
7765 * c-exp.y (lex_one_token): Fix assert.
7766
7767 2020-03-20 Tom Tromey <tromey@adacore.com>
7768
7769 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7770 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7771 strncpy call.
7772
7773 2020-03-20 Tom Tromey <tromey@adacore.com>
7774
7775 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7776
7777 2020-03-20 Tom Tromey <tromey@adacore.com>
7778
7779 * ada-valprint.c (print_variant_part): Remove parameters; switch
7780 to value-based API.
7781 (print_field_values): Likewise.
7782 (ada_val_print_struct_union): Likewise.
7783 (ada_value_print_1): Update.
7784
7785 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7786
7787 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7788 nbsd_nat_target instead of inf_ptrace_target.
7789 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7790 nbsd_nat_target.
7791
7792 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7793
7794 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7795 it to the ptrace call.
7796 * (store_registers): Likewise.
7797
7798 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7799
7800 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7801 it to the ptrace call.
7802 * (store_registers): Likewise.
7803
7804 2020-03-19 Luis Machado <luis.machado@linaro.org>
7805
7806 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7807 valid, fetch vg value from ptrace.
7808
7809 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7810 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7811 * inf-ptrace.c: Likewise.
7812 * (gdb_ptrace): Add.
7813 * (inf_ptrace_target::resume): Update.
7814 * (inf_ptrace_target::xfer_partial): Likewise.
7815 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7816 * (inf_ptrace_peek_poke): Update.
7817
7818 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7819
7820 * x86-bsd-nat.c (gdb_ptrace): New.
7821 * (x86bsd_dr_set): Add new argument `ptid'.
7822 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7823 x86bsd_dr_set_addr): Update.
7824
7825 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7826
7827 * remote.c (remote_target::process_stop_reply): Handle events for
7828 all threads differently.
7829
7830 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7831
7832 * completer.c (completion_tracker::remove_completion): Define new
7833 function.
7834 * completer.h (completion_tracker::remove_completion): Declare new
7835 function.
7836 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7837 when adding a C++ function symbol.
7838
7839 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7840
7841 * completer.c (completion_tracker::completion_hash_entry): Define
7842 new class.
7843 (advance_to_filename_complete_word_point): Call
7844 recompute_lowest_common_denominator.
7845 (completion_tracker::completion_tracker): Call discard_completions
7846 to setup the hash table.
7847 (completion_tracker::discard_completions): Allow for being called
7848 from the constructor, pass new equal function, and element deleter
7849 when constructing the hash table. Initialise new class member
7850 variables.
7851 (completion_tracker::maybe_add_completion): Remove use of
7852 m_entries_vec, and store more information into m_entries_hash.
7853 (completion_tracker::recompute_lcd_visitor): New function, most
7854 content taken from...
7855 (completion_tracker::recompute_lowest_common_denominator):
7856 ...here, this now just visits each item in the hash calling the
7857 above visitor.
7858 (completion_tracker::build_completion_result): Remove use of
7859 m_entries_vec, call recompute_lowest_common_denominator.
7860 * completer.h (completion_tracker::have_completions): Remove use
7861 of m_entries_vec.
7862 (completion_tracker::completion_hash_entry): Declare new class.
7863 (completion_tracker::recompute_lowest_common_denominator): Change
7864 function signature.
7865 (completion_tracker::recompute_lcd_visitor): Declare new function.
7866 (completion_tracker::m_entries_vec): Delete.
7867 (completion_tracker::m_entries_hash): Initialize to NULL.
7868 (completion_tracker::m_lowest_common_denominator_valid): New
7869 member variable.
7870 (completion_tracker::m_lowest_common_denominator_max_length): New
7871 member variable.
7872
7873 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7874
7875 * regformats/regdef.h: Put reg in gdb namespace.
7876
7877 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7878
7879 * i386-bsd-nat.c (gdb_ptrace): New.
7880 * (i386bsd_fetch_inferior_registers,
7881 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7882 * (i386bsd_fetch_inferior_registers,
7883 i386bsd_store_inferior_registers) Use gdb_ptrace.
7884
7885 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7886
7887 * amd64-bsd-nat.c (gdb_ptrace): New.
7888 * (amd64bsd_fetch_inferior_registers,
7889 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7890 * (amd64bsd_fetch_inferior_registers,
7891 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7892
7893 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7894
7895 * user-regs.c (user_reg::read): Rename to...
7896 (user_reg::xread): ...this.
7897 * (append_user_reg): Rename argument `read' to `xread'.
7898 * (user_reg_add_builtin): Likewise.
7899 * (user_reg_add): Likewise.
7900 * (value_of_user_reg): Likewise.
7901
7902 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7903
7904 * sparc-nat.c (gdb_ptrace): New.
7905 * sparc-nat.c (sparc_fetch_inferior_registers)
7906 (sparc_store_inferior_registers) Remove obsolete comment.
7907 * sparc-nat.c (sparc_fetch_inferior_registers)
7908 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7909 * sparc-nat.c (sparc_fetch_inferior_registers)
7910 (sparc_store_inferior_registers) Use gdb_ptrace.
7911
7912 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7913
7914 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7915 it to the ptrace call.
7916 * sh-nbsd-nat.c (store_registers): Likewise.
7917
7918 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7919
7920 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7921 nbsd_nat_target instead of inf_ptrace_target.
7922 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7923 nbsd_nat_target.
7924
7925 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7926
7927 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7928
7929 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7930
7931 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7932 <sys/sysctl.h>.
7933 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7934
7935 2020-03-17 Tom de Vries <tdevries@suse.de>
7936
7937 PR gdb/23710
7938 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7939 fields.
7940 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7941 fields.
7942 (process_imported_unit_die): Skip import of c++ CUs.
7943
7944 2020-03-16 Tom Tromey <tom@tromey.com>
7945
7946 * p-valprint.c (pascal_object_print_value): Initialize
7947 base_value.
7948
7949 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7950 Shahab Vahedi <shahab@synopsys.com>
7951
7952 * Makefile.in: Add arch/arc.o
7953 * configure.tgt: Likewise.
7954 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7955 (_initialize_arc_tdep): Don't initialize old target descriptions.
7956 (arc_read_description): New function to cache target descriptions.
7957 * arc-tdep.h (arc_read_description): Add proto type.
7958 * arch/arc.c: New file.
7959 * arch/arc.h: Likewise.
7960 * features/Makefile: Replace old target descriptions with new.
7961 * features/arc-arcompact.c: Remove.
7962 * features/arc-arcompact.xml: Likewise.
7963 * features/arc-v2.c: Likewise
7964 * features/arc-v2.xml: Likewise
7965 * features/arc/aux-arcompact.xml: New file.
7966 * features/arc/aux-v2.xml: Likewise.
7967 * features/arc/core-arcompact.xml: Likewise.
7968 * features/arc/core-v2.xml: Likewise.
7969 * features/arc/aux-arcompact.c: Generate.
7970 * features/arc/aux-v2.c: Likewise.
7971 * features/arc/core-arcompact.c: Likewise.
7972 * features/arc/core-v2.c: Likewise.
7973 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7974
7975 2020-03-16 Tom Tromey <tromey@adacore.com>
7976
7977 PR gdb/25663:
7978 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7979 putting value into bcache.
7980
7981 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7982
7983 PR gdb/21500
7984 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7985 to...
7986 (amd64_windows_init_abi_common): ... this. Don't set size of
7987 long type.
7988 (amd64_windows_init_abi): New function.
7989 (amd64_cygwin_init_abi): New function.
7990 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7991 the Cygwin OS ABI.
7992 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7993 comment.
7994
7995 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7996
7997 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7998 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7999 (pe_import_directory_entry): New struct type.
8000 (is_linked_with_cygwin_dll): New function.
8001 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
8002 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
8003 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
8004
8005 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8006
8007 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
8008 i386_cygwin_core_osabi_sniffer.
8009
8010 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8011
8012 * i386-cygwin-tdep.c: Rename to...
8013 * i386-windows-tdep.c: ... this.
8014 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
8015 i386-windows-tdep.c.
8016 * configure.tgt: Likewise.
8017
8018 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8019
8020 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
8021 * osabi.c (gdb_osabi_names): Add "Windows".
8022 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
8023 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
8024 (i386_cygwin_core_osabi_sniffer): New function, extracted from
8025 i386_cygwin_osabi_sniffer.
8026 (_initialize_i386_cygwin_tdep): Register OS ABI
8027 GDB_OSABI_WINDOWS for i386.
8028 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
8029 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
8030 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
8031 for x86-64.
8032 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
8033 when the target matches '*-*-mingw*'.
8034
8035 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8036
8037 * defs.h (enum gdb_osabi): Move to...
8038 * osabi.h (enum gdb_osabi): ... here.
8039 * gdbarch.sh: Include osabi.h in gdbarch.h.
8040 * gdbarch.h: Re-generate.
8041
8042 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8043
8044 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
8045 function.
8046 (_initialize_amd64_windows_tdep): Register osabi sniffer.
8047
8048 2020-03-14 Tom Tromey <tom@tromey.com>
8049
8050 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
8051 for C++.
8052 (c_type_print_modifier): Likewise. Add "language" parameter.
8053 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
8054 (c_type_print_base_1): Update.
8055 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
8056 constants.
8057 * type-stack.c (type_stack::insert): Handle tp_atomic and
8058 tp_restrict.
8059 (type_stack::follow_type_instance_flags): Likewise.
8060 (type_stack::follow_types): Likewise. Merge type-following code.
8061 * c-exp.y (RESTRICT, ATOMIC): New tokens.
8062 (space_identifier, cv_with_space_id)
8063 (const_or_volatile_or_space_identifier_noopt)
8064 (const_or_volatile_or_space_identifier): Remove.
8065 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
8066 rules.
8067 (ptr_operator, typebase): Update.
8068 (enum token_flag) <FLAG_C>: New constant.
8069 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
8070 "_Atomic".
8071 (lex_one_token): Handle FLAG_C.
8072
8073 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8074
8075 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
8076 it to the ptrace call.
8077 * m68k-bsd-nat.c (store_registers): Likewise.
8078
8079 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8080
8081 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
8082 gdb_byte *.
8083 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
8084 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
8085 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
8086
8087 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8088
8089 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
8090 nbsd_nat_target instead of inf_ptrace_target.
8091 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8092 nbsd_nat_target.
8093
8094 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8095
8096 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
8097 register_t.
8098
8099 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8100
8101 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
8102 it to the ptrace call.
8103 * alpha-bsd-nat.c (store_registers): Likewise.
8104
8105 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8106
8107 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
8108 includes.
8109 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
8110 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
8111 fill_fpregset): Likewise.
8112
8113 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8114
8115 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
8116 nbsd_nat_target instead of inf_ptrace_target.
8117 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8118 nbsd_nat_target.
8119
8120 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8121
8122 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
8123 register_t.
8124
8125 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8126
8127 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
8128 it to the ptrace call.
8129 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
8130 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
8131 * arm-nbsd-nat.c (store_register): Likewise.
8132 * arm-nbsd-nat.c (store_regs): Likewise.
8133 * arm-nbsd-nat.c (store_fp_register): Likewise.
8134 * arm-nbsd-nat.c (store_fp_regs): Likewise.
8135
8136 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8137
8138 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
8139 nbsd_nat_target instead of inf_ptrace_target.
8140 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8141 nbsd_nat_target.
8142
8143 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8144
8145 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
8146 it to the ptrace call.
8147 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
8148
8149 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8150
8151 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
8152 it to the ptrace call.
8153 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
8154
8155 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8156
8157 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
8158 gdb_byte *.
8159 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
8160
8161 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8162
8163 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
8164 instead of inf_ptrace_target.
8165 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8166 nbsd_nat_target.
8167
8168 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8169
8170 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8171 register_t.
8172
8173 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8174
8175 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8176 register_t.
8177
8178 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8179
8180 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
8181 register_t.
8182
8183 2020-03-13 Tom Tromey <tom@tromey.com>
8184
8185 * value.h (val_print): Don't declare.
8186 * valprint.h (val_print_array_elements)
8187 (val_print_scalar_formatted, generic_val_print): Don't declare.
8188 * valprint.c (generic_val_print_array): Take a struct value.
8189 (generic_val_print_ptr, generic_val_print_memberptr)
8190 (generic_val_print_bool, generic_val_print_int)
8191 (generic_val_print_char, generic_val_print_complex)
8192 (generic_val_print): Remove.
8193 (generic_value_print): Update.
8194 (do_val_print): Remove unused parameters. Don't call
8195 la_val_print.
8196 (val_print): Remove.
8197 (common_val_print): Update. Don't call value_check_printable.
8198 (val_print_scalar_formatted, val_print_array_elements): Remove.
8199 * rust-lang.c (rust_val_print): Remove.
8200 (rust_language_defn): Update.
8201 * p-valprint.c (pascal_val_print): Remove.
8202 (pascal_value_print_inner): Update.
8203 (pascal_object_print_val_fields, pascal_object_print_val):
8204 Remove.
8205 (pascal_object_print_static_field): Update.
8206 * p-lang.h (pascal_val_print): Don't declare.
8207 * p-lang.c (pascal_language_defn): Update.
8208 * opencl-lang.c (opencl_language_defn): Update.
8209 * objc-lang.c (objc_language_defn): Update.
8210 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
8211 * m2-lang.h (m2_val_print): Don't declare.
8212 * m2-lang.c (m2_language_defn): Update.
8213 * language.h (struct language_defn) <la_val_print>: Remove.
8214 * language.c (unk_lang_value_print_inner): Rename. Change
8215 argument types.
8216 (unknown_language_defn, auto_language_defn): Update.
8217 * go-valprint.c (go_val_print): Remove.
8218 * go-lang.h (go_val_print): Don't declare.
8219 * go-lang.c (go_language_defn): Update.
8220 * f-valprint.c (f_val_print): Remove.
8221 * f-lang.h (f_value_print): Don't declare.
8222 * f-lang.c (f_language_defn): Update.
8223 * d-valprint.c (d_val_print): Remove.
8224 * d-lang.h (d_value_print): Don't declare.
8225 * d-lang.c (d_language_defn): Update.
8226 * cp-valprint.c (cp_print_value_fields)
8227 (cp_print_value_fields_rtti, cp_print_value): Remove.
8228 (cp_print_static_field): Update.
8229 * c-valprint.c (c_val_print_array, c_val_print_ptr)
8230 (c_val_print_struct, c_val_print_union, c_val_print_int)
8231 (c_val_print_memberptr, c_val_print): Remove.
8232 * c-lang.h (c_val_print_array, cp_print_value_fields)
8233 (cp_print_value_fields_rtti): Don't declare.
8234 * c-lang.c (c_language_defn, cplus_language_defn)
8235 (asm_language_defn, minimal_language_defn): Update.
8236 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
8237 (ada_val_print_enum): Take a struct value.
8238 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
8239 (ada_val_print): Remove.
8240 (ada_value_print_1): Update.
8241 (printable_val_type): Remove.
8242 * ada-lang.h (ada_val_print): Don't declare.
8243 * ada-lang.c (ada_language_defn): Update.
8244
8245 2020-03-13 Tom Tromey <tom@tromey.com>
8246
8247 * valprint.c (do_val_print): Update.
8248 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
8249 a struct value.
8250 (value_to_value_object_no_release): Declare.
8251 * python/py-value.c (value_to_value_object_no_release): New
8252 function.
8253 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
8254 struct value.
8255 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
8256 function.
8257 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
8258 a struct value.
8259 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
8260 Declare.
8261 (gdbscm_apply_val_pretty_printer): Take a struct value.
8262 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
8263 value.
8264 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
8265 value.
8266 * extension-priv.h (struct extension_language_ops)
8267 <apply_val_pretty_printer>: Take a struct value.
8268 * cp-valprint.c (cp_print_value): Create a struct value.
8269 (cp_print_value): Update.
8270
8271 2020-03-13 Tom Tromey <tom@tromey.com>
8272
8273 * ada-valprint.c (print_field_values): Call common_val_print.
8274
8275 2020-03-13 Tom Tromey <tom@tromey.com>
8276
8277 * ada-valprint.c (val_print_packed_array_elements): Remove
8278 bitoffset and val parameters. Call common_val_print.
8279 (ada_val_print_string): Remove offset, address, and original_value
8280 parameters.
8281 (ada_val_print_array): Update.
8282 (ada_value_print_array): New function.
8283 (ada_value_print_1): Call it.
8284
8285 2020-03-13 Tom Tromey <tom@tromey.com>
8286
8287 * ada-valprint.c (ada_value_print): Use common_val_print.
8288
8289 2020-03-13 Tom Tromey <tom@tromey.com>
8290
8291 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
8292
8293 2020-03-13 Tom Tromey <tom@tromey.com>
8294
8295 * ada-valprint.c (ada_value_print_num): New function.
8296 (ada_value_print_1): Use it.
8297
8298 2020-03-13 Tom Tromey <tom@tromey.com>
8299
8300 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8301
8302 2020-03-13 Tom Tromey <tom@tromey.com>
8303
8304 * ada-valprint.c (ada_value_print_ptr): New function.
8305 (ada_value_print_1): Use it.
8306
8307 2020-03-13 Tom Tromey <tom@tromey.com>
8308
8309 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8310 call common_val_print.
8311 (ada_val_print_1): Update.
8312 (ada_value_print_1): New function.
8313 (ada_value_print_inner): Rewrite.
8314
8315 2020-03-13 Tom Tromey <tom@tromey.com>
8316
8317 * cp-valprint.c (cp_print_value_fields): Update.
8318 (cp_print_value): New function.
8319
8320 2020-03-13 Tom Tromey <tom@tromey.com>
8321
8322 * m2-valprint.c (m2_value_print_inner): Use
8323 cp_print_value_fields.
8324 * cp-valprint.c (cp_print_value_fields): New function.
8325 * c-valprint.c (c_value_print_struct): New function.
8326 (c_value_print_inner): Use c_value_print_struct.
8327 * c-lang.h (cp_print_value_fields): Declare.
8328
8329 2020-03-13 Tom Tromey <tom@tromey.com>
8330
8331 * c-valprint.c (c_value_print_array): New function.
8332 (c_value_print_inner): Use it.
8333
8334 2020-03-13 Tom Tromey <tom@tromey.com>
8335
8336 * c-valprint.c (c_value_print_memberptr): New function.
8337 (c_value_print_inner): Use it.
8338
8339 2020-03-13 Tom Tromey <tom@tromey.com>
8340
8341 * c-valprint.c (c_value_print_int): New function.
8342 (c_value_print_inner): Use it.
8343
8344 2020-03-13 Tom Tromey <tom@tromey.com>
8345
8346 * c-valprint.c (c_value_print_ptr): New function.
8347 (c_value_print_inner): Use it.
8348
8349 2020-03-13 Tom Tromey <tom@tromey.com>
8350
8351 * c-valprint.c (c_value_print_inner): Rewrite.
8352
8353 2020-03-13 Tom Tromey <tom@tromey.com>
8354
8355 * valprint.c (generic_value_print_complex): New function.
8356 (generic_value_print): Use it.
8357
8358 2020-03-13 Tom Tromey <tom@tromey.com>
8359
8360 * valprint.c (generic_val_print_float): Don't call
8361 val_print_scalar_formatted.
8362 (generic_val_print, generic_value_print): Update.
8363
8364 2020-03-13 Tom Tromey <tom@tromey.com>
8365
8366 * valprint.c (generic_value_print_char): New function
8367 (generic_value_print): Use it.
8368
8369 2020-03-13 Tom Tromey <tom@tromey.com>
8370
8371 * valprint.c (generic_value_print_int): New function.
8372 (generic_value_print): Use it.
8373
8374 2020-03-13 Tom Tromey <tom@tromey.com>
8375
8376 * valprint.c (generic_value_print_bool): New function.
8377 (generic_value_print): Use it.
8378
8379 2020-03-13 Tom Tromey <tom@tromey.com>
8380
8381 * valprint.c (generic_val_print_func): Simplify.
8382 (generic_val_print, generic_value_print): Update.
8383
8384 2020-03-13 Tom Tromey <tom@tromey.com>
8385
8386 * valprint.c (generic_val_print_flags): Remove.
8387 (generic_val_print, generic_value_print): Update.
8388 (val_print_type_code_flags): Add original_value parameter.
8389
8390 2020-03-13 Tom Tromey <tom@tromey.com>
8391
8392 * valprint.c (generic_val_print): Update.
8393 (generic_value_print): Update.
8394 * valprint.c (generic_val_print_enum): Don't call
8395 val_print_scalar_formatted.
8396
8397 2020-03-13 Tom Tromey <tom@tromey.com>
8398
8399 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8400 * valprint.c (generic_value_print_ptr): New function.
8401
8402 2020-03-13 Tom Tromey <tom@tromey.com>
8403
8404 * valprint.c (generic_value_print): Rewrite.
8405
8406 2020-03-13 Tom Tromey <tom@tromey.com>
8407
8408 * p-valprint.c (pascal_object_print_value_fields)
8409 (pascal_object_print_value): New functions.
8410
8411 2020-03-13 Tom Tromey <tom@tromey.com>
8412
8413 * p-valprint.c (pascal_value_print_inner): Rewrite.
8414
8415 2020-03-13 Tom Tromey <tom@tromey.com>
8416
8417 * f-valprint.c (f_value_print_innner): Rewrite.
8418
8419 2020-03-13 Tom Tromey <tom@tromey.com>
8420
8421 * m2-valprint.c (m2_print_unbounded_array): New overload.
8422 (m2_print_unbounded_array): Update.
8423 (m2_print_array_contents): Take a struct value.
8424 (m2_value_print_inner): Rewrite.
8425
8426 2020-03-13 Tom Tromey <tom@tromey.com>
8427
8428 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8429 (d_value_print_inner): New function.
8430 * d-lang.h (d_value_print_inner): Declare.
8431 * d-lang.c (d_language_defn): Use d_value_print_inner.
8432
8433 2020-03-13 Tom Tromey <tom@tromey.com>
8434
8435 * go-valprint.c (go_value_print_inner): New function.
8436 * go-lang.h (go_value_print_inner): Declare.
8437 * go-lang.c (go_language_defn): Use go_value_print_inner.
8438
8439 2020-03-13 Tom Tromey <tom@tromey.com>
8440
8441 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8442 API.
8443 (rust_val_print): Rewrite.
8444 (rust_value_print_inner): New function, from rust_val_print.
8445 (rust_language_defn): Use rust_value_print_inner.
8446
8447 2020-03-13 Tom Tromey <tom@tromey.com>
8448
8449 * ada-valprint.c (ada_value_print_inner): New function.
8450 * ada-lang.h (ada_value_print_inner): Declare.
8451 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8452
8453 2020-03-13 Tom Tromey <tom@tromey.com>
8454
8455 * f-valprint.c (f_value_print_innner): New function.
8456 * f-lang.h (f_value_print_innner): Declare.
8457 * f-lang.c (f_language_defn): Use f_value_print_innner.
8458
8459 2020-03-13 Tom Tromey <tom@tromey.com>
8460
8461 * p-valprint.c (pascal_value_print_inner): New function.
8462 * p-lang.h (pascal_value_print_inner): Declare.
8463 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8464
8465 2020-03-13 Tom Tromey <tom@tromey.com>
8466
8467 * m2-valprint.c (m2_value_print_inner): New function.
8468 * m2-lang.h (m2_value_print_inner): Declare.
8469 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8470
8471 2020-03-13 Tom Tromey <tom@tromey.com>
8472
8473 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8474 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8475 * c-valprint.c (c_value_print_inner): New function.
8476 * c-lang.h (c_value_print_inner): Declare.
8477 * c-lang.c (c_language_defn, cplus_language_defn)
8478 (asm_language_defn, minimal_language_defn): Use
8479 c_value_print_inner.
8480
8481 2020-03-13 Tom Tromey <tom@tromey.com>
8482
8483 * p-valprint.c (pascal_object_print_value_fields): Now static.
8484 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8485
8486 2020-03-13 Tom Tromey <tom@tromey.com>
8487
8488 * c-valprint.c (c_val_print_array): Simplify.
8489
8490 2020-03-13 Tom Tromey <tom@tromey.com>
8491
8492 * valprint.c (value_print_array_elements): New function.
8493 * valprint.h (value_print_array_elements): Declare.
8494
8495 2020-03-13 Tom Tromey <tom@tromey.com>
8496
8497 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8498 * mips-tdep.c (mips_print_register): Use
8499 value_print_scalar_formatted.
8500
8501 2020-03-13 Tom Tromey <tom@tromey.com>
8502
8503 * valprint.h (value_print_scalar_formatted): Declare.
8504 * valprint.c (value_print_scalar_formatted): New function.
8505
8506 2020-03-13 Tom Tromey <tom@tromey.com>
8507
8508 * valprint.h (generic_value_print): Declare.
8509 * valprint.c (generic_value_print): New function.
8510
8511 2020-03-13 Tom Tromey <tom@tromey.com>
8512
8513 * valprint.c (do_val_print): Call la_value_print_inner, if
8514 available.
8515 * rust-lang.c (rust_language_defn): Update.
8516 * p-lang.c (pascal_language_defn): Update.
8517 * opencl-lang.c (opencl_language_defn): Update.
8518 * objc-lang.c (objc_language_defn): Update.
8519 * m2-lang.c (m2_language_defn): Update.
8520 * language.h (struct language_defn) <la_value_print_inner>: New
8521 member.
8522 * language.c (unknown_language_defn, auto_language_defn): Update.
8523 * go-lang.c (go_language_defn): Update.
8524 * f-lang.c (f_language_defn): Update.
8525 * d-lang.c (d_language_defn): Update.
8526 * c-lang.c (c_language_defn, cplus_language_defn)
8527 (asm_language_defn, minimal_language_defn): Update.
8528 * ada-lang.c (ada_language_defn): Update.
8529
8530 2020-03-13 Tom Tromey <tom@tromey.com>
8531
8532 * c-valprint.c (c_value_print): Use common_val_print.
8533
8534 2020-03-13 Tom Tromey <tom@tromey.com>
8535
8536 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8537
8538 2020-03-13 Tom Tromey <tom@tromey.com>
8539
8540 * f-valprint.c (f77_print_array_1, f_val_print): Use
8541 common_val_print.
8542
8543 2020-03-13 Tom Tromey <tom@tromey.com>
8544
8545 * riscv-tdep.c (riscv_print_one_register_info): Use
8546 common_val_print.
8547
8548 2020-03-13 Tom Tromey <tom@tromey.com>
8549
8550 * mi/mi-main.c (output_register): Use common_val_print.
8551
8552 2020-03-13 Tom Tromey <tom@tromey.com>
8553
8554 * infcmd.c (default_print_one_register_info): Use
8555 common_val_print.
8556
8557 2020-03-13 Tom Tromey <tom@tromey.com>
8558
8559 * valprint.h (common_val_print_checked): Declare.
8560 * valprint.c (common_val_print_checked): New function.
8561 * stack.c (print_frame_arg): Use common_val_print_checked.
8562
8563 2020-03-13 Tom Tromey <tom@tromey.com>
8564
8565 * valprint.c (do_val_print): New function, from val_print.
8566 (val_print): Use do_val_print.
8567 (common_val_print): Use do_val_print.
8568
8569 2020-03-13 Tom Tromey <tom@tromey.com>
8570
8571 * valprint.c (value_print): Use scoped_value_mark.
8572
8573 2020-03-13 Tom de Vries <tdevries@suse.de>
8574
8575 PR symtab/25646
8576 * psymtab.c (partial_symtab::partial_symtab): Don't set
8577 globals_offset and statics_offset. Push element onto
8578 current_global_psymbols and current_static_psymbols stacks.
8579 (concat): New function.
8580 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8581 element from current_global_psymbols and current_static_psymbols
8582 stacks. Concat popped elements to global_psymbols and
8583 static_symbols.
8584 (add_psymbol_to_list): Use current_global_psymbols and
8585 current_static_psymbols stacks.
8586 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8587 current_static_psymbols fields.
8588
8589 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8590
8591 * corelow.c (sniff_core_bfd): Remove.
8592 (class core_target) <m_core_vec>: Remove.
8593 (core_target::core_target): Update.
8594 (core_file_fns): Remove.
8595 (deprecated_add_core_fns): Remove.
8596 (default_core_sniffer): Remove.
8597 (sniff_core_bfd): Remove.
8598 (default_check_format): Remove.
8599 (gdb_check_format): Remove.
8600 (core_target_open): Update.
8601 (core_target::get_core_register_section): Update.
8602 (get_core_registers_cb): Update.
8603 (core_target::fetch_registers): Update.
8604 * gdbcore.h (struct core_fns): Remove.
8605 (deprecated_add_core_fns): Remove.
8606 (default_core_sniffer): Remove.
8607 (default_check_format): Remove.
8608
8609 2020-03-12 Tom Tromey <tom@tromey.com>
8610
8611 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8612 CORE_ADDR.
8613 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8614
8615 2020-03-12 Tom Tromey <tom@tromey.com>
8616
8617 * remote.c (remote_target::download_tracepoint)
8618 (remote_target::enable_tracepoint)
8619 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8620 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8621 sprintf_vma.
8622
8623 2020-03-12 Tom Tromey <tom@tromey.com>
8624
8625 * symfile-mem.c: Update CORE_ADDR size assert.
8626
8627 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8628
8629 * selftest.m4: Move to gdbsupport/.
8630 * acinclude.m4: Update path to selftest.m4.
8631
8632 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8633
8634 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8635 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8636 gdbarch-selfselftests.c and selftest-arch.c.
8637 (SUBDIR_UNITTESTS_OBS): Rename to...
8638 (SELFTESTS_OBS): ... this.
8639 (COMMON_SFILES): Remove disasm-selftests.c and
8640 gdbarch-selftests.c.
8641 * configure.ac: Don't add selftest-arch.{c,o} to
8642 CONFIG_{SRCS,OBS}.
8643 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8644 preprocessor conditions.
8645
8646 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8647
8648 * configure.ac: Don't source bfd/development.sh.
8649 * selftest.m4: Modify comment.
8650 * configure: Re-generate.
8651
8652 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8653
8654 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8655 not "true" or "false".
8656 * configure: Re-generate.
8657
8658 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8659
8660 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8661 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8662 renamed to arm_nbsd_supply_gregset.
8663 (fetch_register): Update to call arm_nbsd_supply_gregset.
8664 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8665 (arm_netbsd_nat_target::fetch_registers): Update.
8666 (fetch_elfcore_registers): Removed.
8667 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8668 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8669 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8670 not require NetBSD system headers.
8671 (arm_nbsd_regset): New struct.
8672 (arm_nbsd_iterate_over_regset_sections): New function.
8673 (arm_netbsd_init_abi_common): Updated to call
8674 set_gdbarch_iterate_over_regset_sections.
8675 * arm-nbsd-tdep.h: New file.
8676
8677 2020-03-11 Kevin Buettner <kevinb@redhat.com>
8678
8679 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8680 recursion.
8681
8682 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
8683
8684 * configure: Re-generate.
8685
8686 2020-03-11 Tom Tromey <tromey@adacore.com>
8687
8688 * ada-typeprint.c (print_choices): Fix comment.
8689
8690 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8691
8692 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8693 previous item in the list, when the list has no items.
8694
8695 2020-03-11 Tom de Vries <tdevries@suse.de>
8696
8697 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8698 PROP_LOCLIST handling code.
8699
8700 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8701
8702 * buildsym-legacy.c (record_line): Pass extra parameter to
8703 record_line.
8704 * buildsym.c (buildsym_compunit::record_line): Take an extra
8705 parameter, reduce duplication in the line table, and record the
8706 is_stmt flag in the line table.
8707 * buildsym.h (buildsym_compunit::record_line): Add extra
8708 parameter.
8709 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8710 non-statement lines.
8711 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8712 this to the symtab builder.
8713 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8714 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8715 through to dwarf_record_line_1.
8716 * infrun.c (process_event_stop_test): When stepping, don't stop at
8717 a non-statement instruction, and only refresh the step info when
8718 we land in the middle of a line's range. Also add an extra
8719 comment.
8720 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8721 field.
8722 * record-btrace.c (btrace_find_line_range): Only record lines
8723 marked as is-statement.
8724 * stack.c (frame_show_address): Show the frame address if we are
8725 in a non-statement sal.
8726 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8727 (maintenance_print_one_line_table): Print a header for the is_stmt
8728 column, and include is_stmt information in the output.
8729 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8730 preference to non-statements.
8731 (find_pcs_for_symtab_line): Prefer is-statement entries.
8732 (find_line_common): Likewise.
8733 * symtab.h (struct linetable_entry): Add is_stmt field.
8734 (struct symtab_and_line): Likewise.
8735 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8736 arranging the line table.
8737
8738 2020-03-07 Tom de Vries <tdevries@suse.de>
8739
8740 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8741 DIE.
8742
8743 2020-03-07 Tom Tromey <tom@tromey.com>
8744
8745 * valops.c (value_literal_complex): Remove obsolete comment.
8746 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8747 comment.
8748
8749 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8750
8751 * infrun.h: Forward-declare thread_info.
8752 (set_step_info): Add thread_info parameter, add doc.
8753 * infrun.c (set_step_info): Add thread_info parameter, move doc
8754 to header.
8755 * infrun.c (process_event_stop_test): Pass thread to
8756 set_step_info call.
8757 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8758 set_step_info.
8759 (prepare_one_step): Add thread_info parameter, pass it to
8760 set_step_frame and prepare_one_step (recursive) call.
8761 (step_1): Pass thread to prepare_one_step call.
8762 (step_command_fsm::should_stop): Pass thread to
8763 prepare_one_step.
8764 (until_next_fsm): Pass thread to set_step_frame call.
8765 (finish_command): Pass thread to set_step_info call.
8766
8767 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
8768
8769 * windows-tdep.c (windows_solib_create_inferior_hook):
8770 Check if inferior is running.
8771
8772 2020-03-06 Tom de Vries <tdevries@suse.de>
8773
8774 * NEWS: Fix "the the".
8775 * ctfread.c: Same.
8776
8777 2020-03-06 Tom de Vries <tdevries@suse.de>
8778
8779 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8780
8781 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8782
8783 * .dir-locals.el: Add a comment referencing the other copies of
8784 this file.
8785
8786 2020-03-05 John Baldwin <jhb@FreeBSD.org>
8787
8788 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8789 psargs.
8790
8791 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8792
8793 * .gitattributes: New file.
8794
8795 2020-03-04 Tom Tromey <tom@tromey.com>
8796
8797 * symmisc.c (print_symbol_bcache_statistics)
8798 (print_objfile_statistics): Update.
8799 * symfile.c (allocate_symtab): Use intern.
8800 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8801 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8802 macro_cache>: Remove.
8803 <string_cache>: New member.
8804 (struct objfile) <intern>: New methods.
8805 * elfread.c (elf_symtab_read): Use intern.
8806 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8807 (dwarf2_compute_name, dwarf2_physname)
8808 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8809 names.
8810 (guess_partial_die_structure_name): Update.
8811 (partial_die_info::fixup): Intern name.
8812 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8813 name.
8814 (dwarf2_name): Intern name. Update.
8815 * buildsym.c (buildsym_compunit::get_macro_table): Use
8816 string_cache.
8817
8818 2020-03-04 Tom Tromey <tom@tromey.com>
8819
8820 * jit.c (bfd_open_from_target_memory): Make "target" const.
8821 * corefile.c (gnutarget): Now const.
8822 * gdbcore.h (gnutarget): Now const.
8823
8824 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
8825
8826 * NEWS: Mention support for WOW64 processes.
8827 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8828 (amd64_windows_segment_register_p): Remove static.
8829 (_initialize_amd64_windows_nat): Update.
8830 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8831 * i386-windows-nat.c (context_offset): Update.
8832 (i386_mappings): Rename and remove static.
8833 (i386_windows_segment_register_p): Remove static.
8834 (_initialize_i386_windows_nat): Update.
8835 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8836 (STATUS_WX86_SINGLE_STEP): New macro.
8837 (EnumProcessModulesEx): New macro.
8838 (Wow64SuspendThread): New macro.
8839 (Wow64GetThreadContext): New macro.
8840 (Wow64SetThreadContext): New macro.
8841 (Wow64GetThreadSelectorEntry): New macro.
8842 (windows_set_context_register_offsets): Add static.
8843 (windows_set_segment_register_p): Likewise.
8844 (windows_add_thread): Adapt for WOW64 processes.
8845 (windows_fetch_one_register): Likewise.
8846 (windows_nat_target::fetch_registers): Likewise.
8847 (windows_store_one_register): Likewise.
8848 (display_selector): Likewise.
8849 (display_selectors): Likewise.
8850 (handle_exception): Likewise.
8851 (windows_continue): Likewise.
8852 (windows_nat_target::resume): Likewise.
8853 (windows_add_all_dlls): Likewise.
8854 (do_initial_windows_stuff): Likewise.
8855 (windows_nat_target::attach): Likewise.
8856 (windows_get_exec_module_filename): Likewise.
8857 (windows_nat_target::create_inferior): Likewise.
8858 (windows_xfer_siginfo): Likewise.
8859 (_initialize_loadable): Initialize Wow64SuspendThread,
8860 Wow64GetThreadContext, Wow64SetThreadContext,
8861 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8862 * windows-nat.h (windows_set_context_register_offsets):
8863 Remove declaration.
8864 (windows_set_segment_register_p): Likewise.
8865 (i386_windows_segment_register_p): Add declaration.
8866 (amd64_windows_segment_register_p): Likewise.
8867
8868 2020-03-04 Luis Machado <luis.machado@linaro.org>
8869
8870 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8871 in "info registers" for AArch64/ARM.
8872
8873 The change caused "info registers" to not print GPR's.
8874
8875 gdb/ChangeLog:
8876
8877 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8878
8879 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8880 when reg->group is empty and reggroup is not.
8881
8882 2020-03-03 Tom Tromey <tromey@adacore.com>
8883
8884 * dwarf2/frame.c (struct dwarf2_frame_cache)
8885 <checked_tailcall_bottom, entry_cfa_sp_offset,
8886 entry_cfa_sp_offset_p>: Remove members.
8887 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8888 (dwarf2_frame_prev_register): Don't call
8889 dwarf2_tailcall_sniffer_first.
8890 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8891 * frame-unwind.c (add_unwinder): New fuction.
8892 (frame_unwind_init): Use it. Add tailcall unwinder.
8893
8894 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8895 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8896
8897 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8898 value should be printed as true.
8899
8900 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
8901
8902 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8903 (windows_init_abi): Set and use windows_so_ops.
8904
8905 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8906
8907 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8908 when verifying if dealing with a convenience variable.
8909
8910 2020-03-03 Luis Machado <luis.machado@linaro.org>
8911
8912 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8913
8914 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8915
8916 * infrun.c (gdbarch_supports_displaced_stepping): New.
8917 (use_displaced_stepping): Break up conditions in smaller pieces.
8918 Use gdbarch_supports_displaced_stepping.
8919 (displaced_step_prepare_throw): Use
8920 gdbarch_supports_displaced_stepping.
8921
8922 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8923
8924 * NEWS: Mention new behaviour of the history filename.
8925 * top.c (write_history_p): Add comment.
8926 (show_write_history_p): Add header comment, give a different
8927 message when history writing is on, but the history filename is
8928 empty.
8929 (history_filename): Add comment.
8930 (history_filename_empty): New function.
8931 (show_history_filename): Add header comment, give a different
8932 message when the filename is empty.
8933 (init_history): Compare history_filename against nullptr, and only
8934 read history if the filename is not empty.
8935 (set_history_filename): Add header comment, and only make
8936 non-empty filenames absolute.
8937 (init_main): Make the filename argument to 'set history filename'
8938 optional.
8939
8940 2020-03-02 Christian Biesinger <cbiesinger@google.com>
8941
8942 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8943 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8944 (fetch_fp_register): Update.
8945 (fetch_fp_regs): Update.
8946 (store_fp_register): Update.
8947 (store_fp_regs): Update.
8948 (arm_netbsd_nat_target::read_description): New function.
8949 (fetch_elfcore_registers): Update.
8950
8951 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8952
8953 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8954 general_thread if the stop reply is missing a thread-id.
8955 (remote_target::process_stop_reply): Use the first non-exited
8956 thread if the target didn't pass a thread-id.
8957 * infrun.c (do_target_wait): Move call to
8958 switch_to_inferior_no_thread to ....
8959 (do_target_wait_1): ... here.
8960
8961 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8962
8963 * debuginfod-support.c: Include defs.h first.
8964
8965 2020-02-28 Tom de Vries <tdevries@suse.de>
8966
8967 * symfile.c (set_initial_language): Use default language for lookup.
8968
8969 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
8970
8971 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8972 reader variable, pass `this` to read_cutu_die_from_dwo.
8973
8974 2020-02-27 Aaron Merey <amerey@redhat.com>
8975
8976 * source.c (open_source_file): Check for nullptr when computing
8977 srcpath.
8978
8979 2020-02-27 Tom Tromey <tromey@adacore.com>
8980
8981 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8982 member.
8983 (dwarf2_add_field): Don't update nfields.
8984 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8985
8986 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8987
8988 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8989 abs.
8990
8991 2020-02-26 Tom Tromey <tom@tromey.com>
8992
8993 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8994 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8995 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8996 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8997 per_cu_data.
8998
8999 2020-02-26 Tom Tromey <tom@tromey.com>
9000
9001 * dwarf2/index-write.c (psym_index_map): Change type.
9002 (add_address_entry_worker, write_one_signatured_type)
9003 (recursively_count_psymbols, recursively_write_psymbols)
9004 (class debug_names, psyms_seen_size, write_gdbindex)
9005 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
9006
9007 2020-02-26 Aaron Merey <amerey@redhat.com>
9008
9009 * Makefile.in: Handle optional debuginfod support.
9010 * NEWS: Update.
9011 * README: Add --with-debuginfod summary.
9012 * config.in: Regenerate.
9013 * configure: Regenerate.
9014 * configure.ac: Handle optional debuginfod support.
9015 * debuginfod-support.c: debuginfod helper functions.
9016 * debuginfod-support.h: Ditto.
9017 * doc/gdb.texinfo: Add --with-debuginfod to configure options
9018 summary.
9019 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
9020 when a dwz file cannot be found.
9021 * elfread.c (elf_symfile_read): Query debuginfod servers when a
9022 debuginfo file cannot be found.
9023 * source.c (open_source_file): Query debuginfod servers when a
9024 source file cannot be found.
9025 * top.c (print_gdb_configuration): Include
9026 --{with,without}-debuginfod in the output.
9027
9028 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
9029
9030 * thread.c (thr_try_catch_cmd): Print thread name.
9031
9032 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
9033
9034 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
9035 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9036 dwarf2_fetch_die_type_sect_off): Move to...
9037 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9038 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9039 dwarf2_fetch_die_type_sect_off): ... here.
9040 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9041 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9042 dwarf2_fetch_die_type_sect_off): Move doc to header file.
9043
9044 2020-02-26 Tom de Vries <tdevries@suse.de>
9045
9046 PR gdb/25603
9047 * symfile.c (set_initial_language): Exit-early if
9048 language_mode == language_mode_manual.
9049
9050 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9051
9052 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
9053 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
9054 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
9055
9056 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
9057
9058 * gdbtypes.c (create_array_type_with_stride): Handle negative
9059 array strides.
9060 * valarith.c (value_subscripted_rvalue): Likewise.
9061
9062 2020-02-25 Luis Machado <luis.machado@linaro.org>
9063
9064 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
9065
9066 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9067
9068 * loc.h (dwarf2_get_die_type): Move to...
9069 * read.h (dwarf2_get_die_type): ... here.
9070 * read.c (dwarf2_get_die_type): Move doc to header.
9071
9072 2020-02-25 Joel Brobecker <brobecker@adacore.com>
9073
9074 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
9075 'gnulib/Makefile.in' to the list.
9076
9077 2020-02-24 Tom Tromey <tom@tromey.com>
9078
9079 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
9080 Remove.
9081 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
9082 XOBNEWVEC.
9083
9084 2020-02-24 Tom Tromey <tom@tromey.com>
9085
9086 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
9087 New method.
9088 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
9089 (dw2_do_instantiate_symtab, dw2_get_file_names)
9090 (build_type_psymtab_dependencies, load_full_type_unit): Update.
9091
9092 2020-02-24 Tom Tromey <tom@tromey.com>
9093
9094 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
9095 make_scoped_restore.
9096 (dwarf2_psymtab::read_symtab): Don't clear
9097 reading_partial_symbols.
9098
9099 2020-02-24 Tom de Vries <tdevries@suse.de>
9100
9101 PR gdb/25592
9102 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
9103
9104 2020-02-24 Tom de Vries <tdevries@suse.de>
9105
9106 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
9107 commands layout next/prev/regs.
9108
9109 2020-02-22 Tom Tromey <tom@tromey.com>
9110
9111 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
9112 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
9113
9114 2020-02-22 Tom Tromey <tom@tromey.com>
9115
9116 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
9117
9118 2020-02-22 Tom Tromey <tom@tromey.com>
9119
9120 * tui/tui-win.c (_initialize_tui_win): Add usage text.
9121 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
9122 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
9123 * tui/tui.c (_initialize_tui): Add usage text.
9124
9125 2020-02-22 Tom Tromey <tom@tromey.com>
9126
9127 * tui/tui-win.c (tui_set_focus_command)
9128 (tui_set_win_height_command): Use error_no_arg.
9129 (_initialize_tui_win): Update help text.
9130 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
9131
9132 2020-02-22 Tom Tromey <tom@tromey.com>
9133
9134 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
9135 * tui/tui-disasm.h (struct tui_disasm_window)
9136 <display_start_addr>: Declare.
9137 * tui/tui-source.h (struct tui_source_window)
9138 <display_start_addr>: Declare.
9139 * tui/tui-winsource.h (struct tui_source_window_base)
9140 <show_source_line, display_start_addr>: New methods.
9141 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
9142 Rename and move to protected section.
9143 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
9144 (tui_source_window_base::do_erase_source_content): Update.
9145 (tui_source_window_base::show_source_line): Now a method.
9146 (tui_source_window_base::show_source_content)
9147 (tui_source_window_base::tui_source_window_base)
9148 (tui_source_window_base::rerender)
9149 (tui_source_window_base::refill)
9150 (tui_source_window_base::do_scroll_horizontal)
9151 (tui_source_window_base::set_is_exec_point_at)
9152 (tui_source_window_base::update_breakpoint_info)
9153 (tui_source_window_base::update_exec_info): Update.
9154 * tui/tui-source.c (tui_source_window::set_contents)
9155 (tui_source_window::showing_source_p)
9156 (tui_source_window::do_scroll_vertical)
9157 (tui_source_window::location_matches_p)
9158 (tui_source_window::line_is_displayed): Update.
9159 (tui_source_window::display_start_addr): New method.
9160 * tui/tui-disasm.c (tui_disasm_window::set_contents)
9161 (tui_disasm_window::do_scroll_vertical)
9162 (tui_disasm_window::location_matches_p): Update.
9163 (tui_disasm_window::display_start_addr): New method.
9164
9165 2020-02-22 Tom Tromey <tom@tromey.com>
9166
9167 * NEWS: Add entry for gdb.register_window_type.
9168 * tui/tui-layout.h (window_factory): New typedef.
9169 (tui_register_window): Declare.
9170 * tui/tui-layout.c (saved_tui_windows): New global.
9171 (tui_apply_current_layout): Use it.
9172 (tui_register_window): New function.
9173 * python/python.c (do_start_initialization): Call
9174 gdbpy_initialize_tui.
9175 (python_GdbMethods): Add "register_window_type" function.
9176 * python/python-internal.h (gdbpy_register_tui_window)
9177 (gdbpy_initialize_tui): Declare.
9178 * python/py-tui.c: New file.
9179 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
9180
9181 2020-02-22 Tom Tromey <tom@tromey.com>
9182
9183 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
9184
9185 2020-02-22 Tom Tromey <tom@tromey.com>
9186
9187 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
9188 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
9189 * tui/tui-data.c (tui_set_win_with_focus): Remove.
9190 (tui_set_win_focus_to): Move from tui-win.c.
9191
9192 2020-02-22 Tom Tromey <tom@tromey.com>
9193
9194 * tui/tui-layout.c (make_standard_window, get_locator_window): New
9195 functions.
9196 (known_window_types): New global.
9197 (tui_get_window_by_name): Reimplement.
9198 (initialize_known_windows): New function.
9199 (validate_window_name): Rewrite.
9200 (_initialize_tui_layout): Call initialize_known_windows.
9201
9202 2020-02-22 Tom Tromey <tom@tromey.com>
9203
9204 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
9205 Remove constants.
9206 * tui/tui-winsource.h (struct tui_source_window_base)
9207 <tui_source_window_base>: Remove parameter.
9208 * tui/tui-winsource.c
9209 (tui_source_window_base::tui_source_window_base): Remove
9210 parameter.
9211 (tui_source_window_base::refill): Update.
9212 * tui/tui-stack.h (struct tui_locator_window)
9213 <tui_locator_window>: Update.
9214 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
9215 Default the constructor.
9216 * tui/tui-regs.h (struct tui_data_item_window)
9217 <tui_data_item_window>: Default the constructor.
9218 (struct tui_data_window) <tui_data_window>: Likewise.
9219 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
9220 Default the constructor.
9221 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
9222 Default the constructor.
9223 <type>: Remove.
9224 (struct tui_win_info) <tui_win_info>: Default the constructor.
9225 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
9226 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
9227 Default the constructor.
9228
9229 2020-02-22 Tom Tromey <tom@tromey.com>
9230
9231 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
9232 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
9233 * tui/tui-win.c (tui_resize_all): Don't call
9234 tui_delete_invisible_windows.
9235 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
9236 done.
9237 (tui_set_layout): Update.
9238 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
9239 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
9240 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
9241
9242 2020-02-22 Tom Tromey <tom@tromey.com>
9243
9244 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
9245 correctly.
9246
9247 2020-02-22 Tom Tromey <tom@tromey.com>
9248
9249 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
9250
9251 2020-02-22 Tom Tromey <tom@tromey.com>
9252
9253 * tui/tui-winsource.h (struct tui_source_window_iterator)
9254 <inner_iterator>: New etytypedef.
9255 <tui_source_window_iterator>: Take "end" parameter.
9256 <tui_source_window_iterator>: Take iterator.
9257 <operator*, advance>: Update.
9258 <m_iter>: Change type.
9259 <m_end>: New field.
9260 (struct tui_source_windows) <begin, end>: Update.
9261 * tui/tui-layout.c (tui_windows): New global.
9262 (tui_apply_current_layout): Clear tui_windows.
9263 (tui_layout_window::apply): Update tui_windows.
9264 * tui/tui-data.h (tui_windows): Declare.
9265 (all_tui_windows): Now inline function.
9266 (class tui_window_iterator, struct all_tui_windows): Remove.
9267
9268 2020-02-22 Tom Tromey <tom@tromey.com>
9269
9270 PR tui/17850:
9271 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
9272 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
9273 "height" argument.
9274 (class tui_layout_window) <get_sizes>: Likewise.
9275 (class tui_layout_split) <tui_layout_split>: Add "vertical"
9276 argument.
9277 <get_sizes>: Add "height" argument.
9278 <m_vertical>: New field.
9279 * tui/tui-layout.c (tui_layout_split::clone): Update.
9280 (tui_layout_split::get_sizes): Add "height" argument.
9281 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
9282 (tui_new_layout_command): Parse "-horizontal".
9283 (_initialize_tui_layout): Update help string.
9284 (tui_layout_split::specification): Add "-horizontal" when needed.
9285 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
9286 argument.
9287 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
9288 New methods.
9289
9290 2020-02-22 Tom Tromey <tom@tromey.com>
9291
9292 * tui/tui-layout.h (enum tui_adjust_result): New.
9293 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
9294 (class tui_layout_window) <adjust_size>: Return
9295 tui_adjust_result. Rewrite.
9296 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9297 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9298
9299 2020-02-22 Tom Tromey <tom@tromey.com>
9300
9301 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9302 parameter and return types.
9303 (class tui_layout_base) <specification>: Add "depth".
9304 (class tui_layout_window) <specification>: Add "depth".
9305 (class tui_layout_split) <specification>: Add "depth".
9306 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9307 and return types.
9308 (tui_new_layout_command): Parse sub-layouts.
9309 (_initialize_tui_layout): Update help string.
9310 (tui_layout_window::specification): Add "depth".
9311 (add_layout_command): Update.
9312
9313 2020-02-22 Tom Tromey <tom@tromey.com>
9314
9315 * NEWS: Add "tui new-layout" item.
9316 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9317 Add new-layout command to help text.
9318 (validate_window_name): New function.
9319 (tui_new_layout_command): New function.
9320 (_initialize_tui_layout): Register "new-layout".
9321 (tui_layout_window::specification): New method.
9322 (tui_layout_window::specification): New method.
9323 * tui/tui-layout.h (class tui_layout_base) <specification>: New
9324 method.
9325 (class tui_layout_window) <specification>: New method.
9326 (class tui_layout_split) <specification>: New method.
9327
9328 2020-02-22 Tom Tromey <tom@tromey.com>
9329
9330 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9331 * tui/tui-win.c (window_name_completer): Update comment.
9332 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9333 Declare method.
9334 (class tui_layout_window) <replace_window>: Likewise.
9335 (class tui_layout_split) <replace_window>: Likewise.
9336 (tui_set_layout): Don't declare.
9337 (tui_set_initial_layout): Declare function.
9338 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9339 (asm_regs_layout): New globals.
9340 (tui_current_layout, show_layout): Remove.
9341 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9342 (find_layout, tui_apply_layout): New function.
9343 (layout_completer): Remove.
9344 (tui_next_layout): Reimplement.
9345 (tui_next_layout_command): New function.
9346 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9347 (tui_regs_layout): Reimplement.
9348 (tui_regs_layout_command): New function.
9349 (extract_display_start_addr): Rewrite.
9350 (next_layout, prev_layout): Remove.
9351 (tui_layout_window::replace_window): New method.
9352 (tui_layout_split::replace_window): New method.
9353 (destroy_layout): New function.
9354 (layout_list): New global.
9355 (add_layout_command): New function.
9356 (initialize_layouts): Update.
9357 (tui_layout_command): New function.
9358 (_initialize_tui_layout): Install "layout" commands.
9359 * tui/tui-data.h (enum tui_layout_type): Remove.
9360 (tui_current_layout): Don't declare.
9361
9362 2020-02-22 Tom Tromey <tom@tromey.com>
9363
9364 * tui/tui-regs.c (tui_reg_layout): Remove.
9365 (tui_reg_command): Use tui_regs_layout.
9366 * tui/tui-layout.h (tui_reg_command): Declare.
9367 * tui/tui-layout.c (tui_reg_command): New function.
9368
9369 2020-02-22 Tom Tromey <tom@tromey.com>
9370
9371 * tui/tui.c (tui_rl_delete_other_windows): Call
9372 tui_remove_some_windows.
9373 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9374 Declare method.
9375 (class tui_layout_window) <remove_windows>: New method.
9376 (class tui_layout_split) <remove_windows>: Declare.
9377 (tui_remove_some_windows): Declare.
9378 * tui/tui-layout.c (tui_remove_some_windows): New function.
9379 (tui_layout_split::remove_windows): New method.
9380
9381 2020-02-22 Tom Tromey <tom@tromey.com>
9382
9383 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9384 * tui/tui-layout.h (tui_next_layout): Declare.
9385 * tui/tui-layout.c (tui_next_layout): New function.
9386
9387 2020-02-22 Tom Tromey <tom@tromey.com>
9388
9389 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9390 correct coordinates.
9391
9392 2020-02-22 Tom Tromey <tom@tromey.com>
9393
9394 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9395 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9396 DATA_WIN case.
9397
9398 2020-02-22 Tom Tromey <tom@tromey.com>
9399
9400 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9401 TUI_DISASM_WIN, not tui_win_list.
9402
9403 2020-02-22 Tom Tromey <tom@tromey.com>
9404
9405 * valprint.c (generic_val_print_enum_1)
9406 (val_print_type_code_flags): Style member names.
9407 * rust-lang.c (val_print_struct, rust_print_enum)
9408 (rust_print_struct_def, rust_internal_print_type): Style member
9409 names.
9410 * p-valprint.c (pascal_object_print_value_fields): Style member
9411 names. Only call fprintf_symbol_filtered for static members.
9412 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9413 * f-valprint.c (f_val_print): Style member names.
9414 * f-typeprint.c (f_type_print_base): Style member names.
9415 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9416 call fprintf_symbol_filtered for static members.
9417 (cp_print_class_member): Style member names.
9418 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9419 member names.
9420 * ada-valprint.c (ada_print_scalar): Style enum names.
9421 (ada_val_print_enum): Likewise.
9422 * ada-typeprint.c (print_enum_type): Style enum names.
9423
9424 2020-02-21 Tom Tromey <tom@tromey.com>
9425
9426 * psympriv.h (struct partial_symtab): Update comment.
9427
9428 2020-02-21 Tom Tromey <tromey@adacore.com>
9429
9430 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9431 type is CORE_ADDR.
9432
9433 2020-02-21 Tom de Vries <tdevries@suse.de>
9434
9435 PR gdb/25534
9436 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9437 if dependencies[i]->user != NULL.
9438
9439 2020-02-21 Ali Tamur <tamur@google.com>
9440
9441 * dwarf2/read.c (dwarf2_name): Add null check.
9442
9443 2020-02-20 Tom Tromey <tom@tromey.com>
9444
9445 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9446 ">=", in binary search.
9447 (dwarf2_find_containing_comp_unit): New overload.
9448 (run_test): New self-test.
9449 (_initialize_dwarf2_read): Register new test.
9450
9451 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
9452
9453 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9454 * riscv-tdep.h: Likewise.
9455 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9456 rv32-only CSR.
9457 * features/riscv/64bit-csr.xml: Regenerated.
9458
9459 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9460 Tom Tromey <tom@tromey.com>
9461
9462 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9463 of 'fputc_unfiltered'.
9464 (putchar_unfiltered): Call 'fputc_unfiltered'.
9465 (fputc_unfiltered): Call 'fputs_unfiltered'.
9466
9467 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9468
9469 * config.in: Regenerate.
9470 * configure: Regenerate.
9471 * configure.ac: Add --with-python-libdir option.
9472 * main.c: Use WITH_PYTHON_LIBDIR.
9473
9474 2020-02-19 Tom Tromey <tom@tromey.com>
9475
9476 * symtab.c (general_symbol_info::compute_and_set_names): Use
9477 obstack_strndup. Simplify call to symbol_set_demangled_name.
9478
9479 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
9480
9481 * dwarf2/read.c (allocate_signatured_type_table,
9482 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9483 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9484 Remove objfile parameter, update all callers.
9485
9486 2020-02-19 Doug Evans <dje@google.com>
9487
9488 PR rust/25535
9489 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9490 rust_enum_variant calculation.
9491
9492 2020-02-19 Tom Tromey <tromey@adacore.com>
9493
9494 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9495
9496 2020-02-19 Tom Tromey <tromey@adacore.com>
9497
9498 * ada-lang.c (cache_symbol): Use obstack_strdup.
9499
9500 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9501
9502 * configure: Regenerate.
9503
9504 2020-02-19 Tom Tromey <tromey@adacore.com>
9505
9506 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9507 NULL check.
9508
9509 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
9510
9511 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9512
9513 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9514
9515 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9516 if GDBSERVER is not defined.
9517 (riscv_tdesc_cache): Likewise, also store const target_desc.
9518 (STATIC_IN_GDB): Define.
9519 (riscv_create_target_description): Update declaration with
9520 STATIC_IN_GDB.
9521 (riscv_lookup_target_description): New function, only define if
9522 GDBSERVER is not defined.
9523 * arch/riscv.h (riscv_create_target_description): Declare only
9524 when GDBSERVER is defined.
9525 (riscv_lookup_target_description): New declaration when GDBSERVER
9526 is not defined.
9527 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9528 (riscv_linux_read_features): ...this, and return
9529 riscv_gdbarch_features instead of target_desc.
9530 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9531 (riscv_linux_read_description): Rename to...
9532 (riscv_linux_read_features): ...this.
9533 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9534 Update to use riscv_gdbarch_features and
9535 riscv_lookup_target_description.
9536 * riscv-tdep.c (riscv_find_default_target_description): Use
9537 riscv_lookup_target_description instead of
9538 riscv_create_target_description.
9539
9540 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9541
9542 * valprint.c (generic_val_print_enum_1): When printing a flag
9543 enum with value 0 and there is no enumerator with value 0, print
9544 just "0" instead of "(unknown: 0x0)".
9545
9546 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9547
9548 * valprint.c (generic_val_print_enum_1): Print unknown part of
9549 flag enum in hex.
9550
9551 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9552
9553 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9554 flag enums to contain duplicate enumerators.
9555 * valprint.c (generic_val_print_enum_1): Update comment.
9556
9557 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9558
9559 * dwarf2/read.c: Include "count-one-bits.h".
9560 (update_enumeration_type_from_children): If an enumerator has
9561 multiple bits set, don't treat the enumeration as a "flag enum".
9562 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9563 of flag enums have 0 or 1 bit set.
9564
9565 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9566
9567 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9568 conversion.
9569 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9570 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9571 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9572 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9573 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9574
9575 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9576
9577 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9578
9579 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9580
9581 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9582 displaced_step_closure_up.
9583 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9584 (struct displaced_step_closure_up):
9585 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9586 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9587 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9588 Likewise.
9589 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9590 * gdbarch.c, gdbarch.h: Re-generate.
9591 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9592 displaced_step_closure_up.
9593 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9594 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9595 * infrun.h (displaced_step_closure_up): New type alias.
9596 (struct displaced_step_inferior_state) <step_closure>: Change
9597 type to displaced_step_closure_up.
9598 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9599 displaced_step_closure_up.
9600 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9601
9602 2020-02-14 Tom Tromey <tom@tromey.com>
9603
9604 * minidebug.c (gnu_debug_key): New global.
9605 (find_separate_debug_file_in_section): Use it.
9606
9607 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9608
9609 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9610 std::unique_ptr.
9611 * gdbarch.c: Re-generate.
9612 * gdbarch.h: Re-generate.
9613 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9614 change.
9615 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9616 type to std::unique_ptr.
9617 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9618 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9619 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9620 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9621 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9622 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9623 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9624 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9625 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9626
9627 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9628
9629 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9630 std::unique_ptr.
9631 (displaced_step_clear): Rename to...
9632 (displaced_step_reset): ... this. Just call displaced->reset ().
9633 (displaced_step_clear_cleanup): Rename to...
9634 (displaced_step_reset_cleanup): ... this.
9635 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9636 (displaced_step_fixup): Likewise.
9637 (resume_1): Likewise.
9638 (handle_inferior_event): Restore child's memory before calling
9639 displaced_step_fixup on the parent.
9640 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9641 to std::unique_ptr.
9642 <step_closure>: Change type to std::unique_ptr.
9643
9644 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9645
9646 * arm-tdep.c: Include count-one-bits.h.
9647 (cleanup_block_store_pc): Use count_one_bits.
9648 (cleanup_block_load_pc): Use count_one_bits.
9649 (arm_copy_block_xfer): Use count_one_bits.
9650 (thumb2_copy_block_xfer): Use count_one_bits.
9651 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9652 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9653 (thumb_get_next_pcs_raw): Use count_one_bits.
9654 (arm_get_next_pcs_raw): Use count_one_bits_l.
9655 * arch/arm.c (bitcount): Remove.
9656 * arch/arm.h (bitcount): Remove.
9657
9658 2020-02-14 Tom Tromey <tromey@adacore.com>
9659
9660 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9661 Update.
9662 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9663 * dwarf2/loc.c (call_site_find_chain_1): Return
9664 unique_xmalloc_ptr.
9665 (call_site_find_chain): Likewise.
9666
9667 2020-02-14 Richard Biener <rguenther@suse.de>
9668
9669 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9670 on expression with division operators.
9671
9672 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9673
9674 * MAINTAINERS (Write After Approval): Adding myself.
9675
9676 2020-02-12 Tom Tromey <tom@tromey.com>
9677
9678 * event-loop.c (event_data, gdb_event, event_handler_func):
9679 Remove.
9680
9681 2020-02-12 Tom Tromey <tom@tromey.com>
9682
9683 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9684 (dwarf2_frame_objfile_data): Add comment.
9685 (find_comp_unit, set_comp_unit): New functions.
9686 (dwarf2_frame_find_fde): Use find_comp_unit.
9687 (dwarf2_build_frame_info): Use set_comp_unit.
9688
9689 2020-02-12 Tom Tromey <tom@tromey.com>
9690
9691 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9692 (comp_unit): Don't initialize objfile.
9693 (execute_cfa_program): Add text_offset parameter.
9694 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9695 (dwarf2_frame_cache): Update.
9696 (dwarf2_build_frame_info): Don't set "objfile" member.
9697
9698 2020-02-12 Tom Tromey <tom@tromey.com>
9699
9700 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9701 (decode_frame_entry): Likewise.
9702 (dwarf2_build_frame_info): Update.
9703
9704 2020-02-12 Tom Tromey <tom@tromey.com>
9705
9706 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9707 (decode_frame_entry_1): Use the comp_unit obstack.
9708
9709 2020-02-12 Tom Tromey <tom@tromey.com>
9710
9711 * dwarf2/frame.c (struct comp_unit): Add initializers and
9712 constructor.
9713 (dwarf2_frame_objfile_data): Store a comp_unit.
9714 (dwarf2_frame_find_fde): Update.
9715 (dwarf2_build_frame_info): Use "new".
9716
9717 2020-02-12 Tom Tromey <tom@tromey.com>
9718
9719 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9720 (dwarf2_fde_table): Typedef for std::vector.
9721 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9722 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9723 (decode_frame_entry): Update.
9724 (dwarf2_build_frame_info): Use "new".
9725
9726 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9727
9728 * arm-tdep.c (arm_gdbarch_init): Update.
9729 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9730 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9731 have_neon, is_m>: Change to bool.
9732
9733 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9734
9735 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9736
9737 2020-02-12 Tom Tromey <tom@tromey.com>
9738
9739 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9740
9741 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
9742
9743 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9744 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9745
9746 2020-02-11 Tom Tromey <tom@tromey.com>
9747
9748 * psymtab.h: Update comment.
9749
9750 2020-02-11 Tom Tromey <tom@tromey.com>
9751
9752 * gdb_obstack.h (struct auto_obstack): Use
9753 DISABLE_COPY_AND_ASSIGN.
9754
9755 2020-02-11 Tom Tromey <tom@tromey.com>
9756
9757 * dwarf2/frame.h (struct objfile): Don't forward declare.
9758
9759 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9760
9761 * cris-tdep.c (cris_supply_gregset): Change signature to match
9762 what struct regset expects.
9763 (cris_regset): New struct.
9764 (fetch_core_registers): Remove.
9765 (cris_iterate_over_regset_sections): New function.
9766 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9767 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9768
9769 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9770
9771 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9772 registers.
9773
9774 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9775
9776 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9777
9778 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9779
9780 * configure: Re-generate.
9781
9782 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9783
9784 * configure: Re-generate.
9785
9786 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9787
9788 * acinclude: Update warning.m4 path.
9789 * warning.m4: Move to gdbsupport.
9790
9791 2020-02-11 Tom Tromey <tromey@adacore.com>
9792
9793 * remote.c (remote_console_output): Update.
9794 * printcmd.c (printf_command): Update.
9795 * event-loop.c (gdb_wait_for_event): Update.
9796 * linux-nat.c (sigchld_handler): Update.
9797 * remote-sim.c (gdb_os_write_stdout): Update.
9798 (gdb_os_flush_stdout): Update.
9799 (gdb_os_flush_stderr): Update.
9800 (gdb_os_write_stderr): Update.
9801 * exceptions.c (print_exception): Update.
9802 * remote-fileio.c (remote_fileio_func_read): Update.
9803 (remote_fileio_func_write): Update.
9804 * tui/tui.c (tui_enable): Update.
9805 * tui/tui-interp.c (tui_interp::init): Update.
9806 * utils.c (init_page_info): Update.
9807 (putchar_unfiltered, fputc_unfiltered): Update.
9808 (gdb_flush): Update.
9809 (emit_style_escape): Update.
9810 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9811 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9812 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9813 (stderr_file::write): Update.
9814 (stderr_file::puts): Update.
9815 * ui-file.h (ui_file_isatty, ui_file_write)
9816 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9817 (ui_file_puts): Don't declare.
9818
9819 2020-02-10 Tom de Vries <tdevries@suse.de>
9820
9821 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9822 sentinel to char *.
9823
9824 2020-02-09 Tom de Vries <tdevries@suse.de>
9825
9826 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9827 filename if it matches "<artificial>".
9828
9829 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9830
9831 * windows-tdep.c (struct enum_value_name): New struct.
9832 (create_enum): New function.
9833 (windows_get_siginfo_type): Create and use enum types.
9834
9835 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9836
9837 * NEWS: Mention $_siginfo support for Windows.
9838 * windows-nat.c (handle_exception): Set siginfo_er.
9839 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9840 (windows_xfer_siginfo): New function.
9841 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9842 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9843 (init_windows_gdbarch_data): New function.
9844 (get_windows_gdbarch_data): New function.
9845 (windows_get_siginfo_type): New function.
9846 (windows_init_abi): Register windows_get_siginfo_type.
9847 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9848
9849 2020-02-08 Tom Tromey <tom@tromey.com>
9850
9851 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9852 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9853 <keep>: Declare method.
9854 <m_keep>: Remove member.
9855 <~cutu_reader>: Remove.
9856 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9857 (cutu_reader::cutu_reader): Update.
9858 (cutu_reader::keep): Rename from ~cutu_reader.
9859 (process_psymtab_comp_unit, build_type_psymtabs_1)
9860 (process_skeletonless_type_unit, load_partial_comp_unit)
9861 (load_full_comp_unit, dwarf2_read_addr_index)
9862 (read_signatured_type): Update.
9863
9864 2020-02-08 Tom Tromey <tom@tromey.com>
9865
9866 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9867 "want_partial_unit" parameter.
9868 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9869 Inline check for DW_TAG_partial_unit.
9870 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9871
9872 2020-02-08 Tom Tromey <tom@tromey.com>
9873
9874 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9875 read.c.
9876 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9877 read.c.
9878
9879 2020-02-08 Tom Tromey <tom@tromey.com>
9880
9881 * dwarf2/read.c (read_address): Move to comp-unit.c.
9882 (dwarf2_rnglists_process, dwarf2_ranges_process)
9883 (read_attribute_value, dwarf_decode_lines_1)
9884 (var_decode_location, decode_locdesc): Update.
9885 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9886 read.c. Remove "cu" parameter.
9887 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9888 method.
9889
9890 2020-02-08 Tom Tromey <tom@tromey.com>
9891
9892 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9893 (read_indirect_line_string): Update.
9894 * dwarf2/comp-unit.c (read_offset): Remove.
9895 (read_comp_unit_head): Update.
9896 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9897 method.
9898 (read_offset): Don't declare.
9899
9900 2020-02-08 Tom Tromey <tom@tromey.com>
9901
9902 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9903 * dwarf2/read.c (struct comp_unit_head): Move to
9904 dwarf2/comp-unit.h.
9905 (enum class rcuh_kind): Move to comp-unit.h.
9906 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9907 (read_comp_unit_head, error_check_comp_unit_head)
9908 (read_and_check_comp_unit_head): Move to comp-unit.c.
9909 (read_offset, dwarf_unit_type_name): Likewise.
9910 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9911 (cutu_reader::cutu_reader, read_call_site_scope)
9912 (find_partial_die, follow_die_offset): Update.
9913 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9914
9915 2020-02-08 Tom Tromey <tom@tromey.com>
9916
9917 * dwarf2/read.c (read_offset_1): Move to leb.c.
9918 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9919 (dwarf_decode_macro_bytes): Update.
9920 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9921 * dwarf2/leb.h (read_offset): Declare.
9922
9923 2020-02-08 Tom Tromey <tom@tromey.com>
9924
9925 * dwarf2/read.c (dwarf2_section_size): Remove.
9926 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9927 Update.
9928 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9929
9930 2020-02-08 Tom Tromey <tom@tromey.com>
9931
9932 * dwarf2/read.c (read_initial_length): Move to leb.c.
9933 * dwarf2/leb.h (read_initial_length): Declare.
9934 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9935 handle_nonstd parameter.
9936 * dwarf2/frame.c (read_initial_length): Remove.
9937 (decode_frame_entry_1): Update.
9938
9939 2020-02-08 Tom Tromey <tom@tromey.com>
9940
9941 * dwarf2/loc.c (dwarf2_find_location_expression)
9942 (dwarf_evaluate_loc_desc::get_tls_address)
9943 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9944 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9945 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9946 (dwarf2_compile_property_to_c)
9947 (dwarf2_loc_desc_get_symbol_read_needs)
9948 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9949 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9950 (loclist_describe_location, loclist_tracepoint_var_ref)
9951 (loclist_generate_c_location): Update.
9952 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9953 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9954 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9955 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9956 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9957 (dwarf2_per_cu_data::addr_size)
9958 (dwarf2_per_cu_data::ref_addr_size)
9959 (dwarf2_per_cu_data::text_offset)
9960 (dwarf2_per_cu_data::addr_type): Now methods.
9961 (per_cu_header_read_in): Make per_cu "const".
9962 (dwarf2_version): Remove.
9963 (dwarf2_per_cu_data::int_type): Now a method.
9964 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9965 (set_die_type, read_array_type, read_subrange_index_type)
9966 (read_tag_string_type, read_subrange_type): Update.
9967 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9968 offset_size, ref_addr_size, text_offset, addr_type, version,
9969 objfile, int_type, addr_sized_int_type>: Declare methods.
9970
9971 2020-02-08 Tom Tromey <tom@tromey.com>
9972
9973 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9974 Move earlier.
9975
9976 2020-02-08 Tom Tromey <tom@tromey.com>
9977
9978 * dwarf2/read.h (dwarf_line_debug): Declare.
9979 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9980 * dwarf2/read.c: Move line_header code to new files.
9981 (dwarf_line_debug): No longer static.
9982 * dwarf2/line-header.c: New file.
9983 * dwarf2/line-header.h: New file.
9984
9985 2020-02-08 Tom Tromey <tom@tromey.com>
9986
9987 * dwarf2/read.c (struct line_header) <file_full_name,
9988 file_file_name>: Return unique_xmalloc_ptr.
9989 (line_header::file_file_name): Update.
9990 (line_header::file_full_name): Update.
9991 (dw2_get_file_names_reader): Update.
9992 (macro_start_file): Update.
9993
9994 2020-02-08 Tom Tromey <tom@tromey.com>
9995
9996 * dwarf2/read.c (struct line_header) <file_full_name,
9997 file_file_name>: Declare methods.
9998 (dw2_get_file_names_reader): Update.
9999 (file_file_name): Now a method.
10000 (file_full_name): Likewise.
10001 (macro_start_file): Update.
10002
10003 2020-02-08 Tom Tromey <tom@tromey.com>
10004
10005 * dwarf2/read.c (dwarf_always_disassemble)
10006 (show_dwarf_always_disassemble): Move to loc.c.
10007 (_initialize_dwarf2_read): Move "always-disassemble" registration
10008 to loc.c.
10009 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
10010 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
10011 static.
10012 (show_dwarf_always_disassemble): Move from read.c.
10013 (_initialize_dwarf2loc): Move always-disassemble from read.c.
10014
10015 2020-02-08 Tom Tromey <tom@tromey.com>
10016
10017 * dwarf2/read.c (~dwarf2_per_objfile): Update.
10018 (create_quick_file_names_table): Return htab_up.
10019 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
10020 Update.
10021 * dwarf2/read.h (struct dwarf2_per_objfile)
10022 <quick_file_names_table>: Now htab_up.
10023
10024 2020-02-08 Tom Tromey <tom@tromey.com>
10025
10026 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
10027
10028 2020-02-08 Tom Tromey <tom@tromey.com>
10029
10030 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
10031 Rewrite.
10032 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
10033 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
10034 (abbrev_table::abbrev_table): No longer inline.
10035 (ABBREV_HASH_SIZE): Remove.
10036 (abbrev_table::m_abbrevs): Now an htab_up.
10037
10038 2020-02-08 Tom Tromey <tom@tromey.com>
10039
10040 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
10041 (cutu_reader): Update.
10042 (build_type_psymtabs_1): Update.
10043 * dwarf2/abbrev.c (abbrev_table::read): Rename.
10044 (abbrev_table::alloc_abbrev): Update.
10045 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
10046 (abbrev_table::read): New static method, renamed from
10047 abbrev_table_read_table.
10048 (abbrev_table::alloc_abbrev)
10049 (abbrev_table::add_abbrev): Now private.
10050 (abbrev_table::abbrev_table): Now private.
10051 (abbrev_table::m_abbrev_obstack): Now private. Rename.
10052
10053 2020-02-08 Tom Tromey <tom@tromey.com>
10054
10055 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
10056 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
10057 htab_up.
10058
10059 2020-02-08 Tom Tromey <tom@tromey.com>
10060
10061 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
10062 htab_up.
10063 (lookup_dwo_unit_in_dwp): Update.
10064 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
10065 on obstack.
10066
10067 2020-02-08 Tom Tromey <tom@tromey.com>
10068
10069 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
10070 obstack.
10071
10072 2020-02-08 Tom Tromey <tom@tromey.com>
10073
10074 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
10075 line_header_hash.
10076 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
10077 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
10078 Change type to htab_up.
10079
10080 2020-02-08 Tom Tromey <tom@tromey.com>
10081
10082 * dwarf2/read.c (allocate_type_unit_groups_table): Return
10083 htab_up. Don't allocate on obstack.
10084 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
10085 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
10086 Change type to htab_up.
10087
10088 2020-02-08 Tom Tromey <tom@tromey.com>
10089
10090 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
10091 Change type to htab_up.
10092 * dwarf2/read.c (create_signatured_type_table_from_index)
10093 (create_signatured_type_table_from_debug_names)
10094 (create_all_type_units, add_type_unit)
10095 (lookup_dwo_signatured_type, lookup_signatured_type)
10096 (process_skeletonless_type_unit): Update.
10097 (create_debug_type_hash_table, create_debug_types_hash_table):
10098 Change type of types_htab.
10099 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
10100 htab_up. Don't allocate on obstack.
10101 (create_cus_hash_table): Change type of cus_htab parameter.
10102 (struct dwo_file) <cus, tus>: Now htab_up.
10103 (lookup_dwo_signatured_type, lookup_dwo_cutu)
10104 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
10105 (queue_and_load_all_dwo_tus): Update.
10106 * dwarf2/index-write.c (write_gdbindex): Update.
10107 (write_debug_names): Update.
10108
10109 2020-02-08 Tom Tromey <tom@tromey.com>
10110
10111 * dwarf2/read.h (struct dwarf2_queue_item): Move from
10112 dwarf2/read.c. Remove "next" member. Add constructor ntad
10113 destructor.
10114 (struct dwarf2_per_objfile) <queue>: New member.
10115 * dwarf2/read.c (struct dwarf2_queue_item): Move to
10116 dwarf2/read.h.
10117 (dwarf2_queue, dwarf2_queue_tail): Remove.
10118 (class dwarf2_queue_guard): Add parameter to constructor. Use
10119 DISABLE_COPY_AND_ASSIGN.
10120 <m_per_objfile>: New member.
10121 <~dwarf2_queue_guard>: Rewrite.
10122 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
10123 Update.
10124 (~dwarf2_queue_item): New.
10125
10126 2020-02-08 Tom Tromey <tom@tromey.com>
10127
10128 * dwarf2/read.c (struct die_info) <has_children>: New member.
10129 (dw2_get_file_names_reader): Remove has_children.
10130 (dw2_get_file_names): Update.
10131 (read_cutu_die_from_dwo): Remove has_children.
10132 (cutu_reader::init_tu_and_read_dwo_dies)
10133 (cutu_reader::cutu_reader): Update.
10134 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
10135 Remove has_children.
10136 (build_type_psymtabs_1, process_skeletonless_type_unit)
10137 (load_partial_comp_unit, load_full_comp_unit): Update.
10138 (create_dwo_cu_reader): Remove has_children.
10139 (create_cus_hash_table, read_die_and_children): Update.
10140 (read_full_die_1,read_full_die): Remove has_children.
10141 (read_signatured_type): Update.
10142 (class cutu_reader) <has_children>: Remove.
10143
10144 2020-02-08 Tom Tromey <tom@tromey.com>
10145
10146 * dwarf2/expr.c: Rename from dwarf2expr.c.
10147 * dwarf2/expr.h: Rename from dwarf2expr.h.
10148 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
10149 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
10150 * dwarf2/frame.c: Rename from dwarf2-frame.c.
10151 * dwarf2/frame.h: Rename from dwarf2-frame.h.
10152 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
10153 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
10154 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
10155 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
10156 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
10157 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
10158 * dwarf2/loc.c: Rename from dwarf2loc.c.
10159 * dwarf2/loc.h: Rename from dwarf2loc.h.
10160 * dwarf2/read.c: Rename from dwarf2read.c.
10161 * dwarf2/read.h: Rename from dwarf2read.h.
10162 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
10163 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
10164 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
10165 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
10166 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
10167 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
10168 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
10169 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
10170 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
10171 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
10172 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
10173 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
10174 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
10175 Update.
10176 * Makefile.in (COMMON_SFILES): Update.
10177 (HFILES_NO_SRCDIR): Update.
10178
10179 2020-02-08 Tom Tromey <tom@tromey.com>
10180
10181 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
10182 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
10183
10184 2020-02-08 Tom Tromey <tom@tromey.com>
10185
10186 * dwarf2read.h (struct die_info): Don't declare.
10187
10188 2020-02-08 Tom Tromey <tom@tromey.com>
10189
10190 * dwarf2read.h (die_info_ptr): Remove typedef.
10191
10192 2020-02-08 Tom Tromey <tom@tromey.com>
10193
10194 * dwarf2read.c (read_call_site_scope)
10195 (handle_data_member_location, dwarf2_add_member_fn)
10196 (mark_common_block_symbol_computed, read_common_block)
10197 (attr_to_dynamic_prop, partial_die_info::read)
10198 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
10199 (dwarf2_symbol_mark_computed, set_die_type): Update.
10200 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
10201 method.
10202 (attr_form_is_block): Don't declare.
10203 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
10204
10205 2020-02-08 Tom Tromey <tom@tromey.com>
10206
10207 * dwarf2read.c (dwarf2_find_base_address, )
10208 (read_call_site_scope, rust_containing_type)
10209 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
10210 (handle_data_member_location, dwarf2_add_member_fn)
10211 (get_alignment, read_structure_type, process_structure_scope)
10212 (mark_common_block_symbol_computed, read_common_block)
10213 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
10214 (partial_die_info::read, read_attribute_value, new_symbol)
10215 (lookup_die_type, dwarf2_get_ref_die_offset)
10216 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
10217 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
10218 (dwarf2_symbol_mark_computed): Update.
10219 * dwarf2/attribute.h (struct attribute) <value_as_address,
10220 form_is_section_offset, form_is_constant, form_is_ref>: Declare
10221 methods.
10222 (value_as_address, attr_form_is_section_offset)
10223 (attr_form_is_constant, attr_form_is_ref): Don't declare.
10224 * dwarf2/attribute.c (attribute::value_as_address)
10225 (attribute::form_is_section_offset, attribute::form_is_constant)
10226 (attribute::form_is_ref): Now methods.
10227
10228 2020-02-08 Tom Tromey <tom@tromey.com>
10229
10230 * dwarf2read.c (struct attribute, DW_STRING)
10231 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
10232 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
10233 (attr_form_is_block, attr_form_is_section_offset)
10234 (attr_form_is_constant, attr_form_is_ref): Move.
10235 * dwarf2/attribute.h: New file.
10236 * dwarf2/attribute.c: New file, from dwarf2read.c.
10237 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
10238
10239 2020-02-08 Tom Tromey <tom@tromey.com>
10240
10241 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
10242 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
10243 Move.
10244 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
10245 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
10246 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
10247 abbrev.c.
10248 * dwarf2/abbrev.h: New file.
10249 * dwarf2/abbrev.c: New file, from dwarf2read.c.
10250 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
10251
10252 2020-02-08 Tom Tromey <tom@tromey.com>
10253
10254 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
10255 (dwarf2_section_size, dwarf2_get_section_info)
10256 (create_signatured_type_table_from_debug_names)
10257 (create_addrmap_from_aranges, read_debug_names_from_section)
10258 (get_gdb_index_contents_from_section, read_comp_unit_head)
10259 (error_check_comp_unit_head, read_abbrev_offset)
10260 (create_debug_type_hash_table, init_cu_die_reader)
10261 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
10262 (read_comp_units_from_section, create_cus_hash_table)
10263 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10264 (create_dwp_v2_section, dwarf2_rnglists_process)
10265 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
10266 (abbrev_table_read_table, read_indirect_string_at_offset_from)
10267 (read_indirect_string_from_dwz, read_addr_index_1)
10268 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
10269 (dwarf_decode_macro_bytes, dwarf_decode_macros)
10270 (fill_in_loclist_baton): Update.
10271 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
10272 get_containing_section, get_bfd_owner, get_bfd_section,
10273 get_file_name, get_id, get_flags, empty, read>: Declare methods.
10274 (dwarf2_read_section, get_section_name, get_section_file_name)
10275 (get_containing_section, get_section_bfd_owner)
10276 (get_section_bfd_section, get_section_name, get_section_file_name)
10277 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
10278 declare.
10279 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
10280 (dwarf2_section_info::get_bfd_owner)
10281 (dwarf2_section_info::get_bfd_section)
10282 (dwarf2_section_info::get_name)
10283 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
10284 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
10285 (dwarf2_section_info::read): Now methods.
10286 * dwarf-index-write.c (class debug_names): Update.
10287
10288 2020-02-08 Tom Tromey <tom@tromey.com>
10289
10290 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
10291 Move to dwarf2/section.h.
10292 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
10293 (get_section_bfd_section, get_section_name)
10294 (get_section_file_name, get_section_id, get_section_flags)
10295 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
10296 dwarf2/section.c.
10297 * dwarf2/section.h: New file.
10298 * dwarf2/section.c: New file, from dwarf2read.c.
10299 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10300
10301 2020-02-08 Tom Tromey <tom@tromey.com>
10302
10303 * dwarf2read.h (read_unsigned_leb128): Don't declare.
10304 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10305 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10306 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10307 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10308 * dwarf2/leb.h: New file, from dwarf2read.c.
10309 * dwarf2/leb.c: New file, from dwarf2read.c.
10310 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10311 Remove.
10312 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10313 (COMMON_SFILES): Add dwarf2/leb.c.
10314
10315 2020-02-08 Joel Brobecker <brobecker@adacore.com>
10316
10317 GDB 9.1 released.
10318
10319 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10320
10321 PR gdb/25190:
10322 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10323 * gdb/remote.c (remote_console_output): Update.
10324 * gdb/ui-file.c (fputs_unfiltered): Rename to...
10325 (ui_file_puts): ...this.
10326 * gdb/ui-file.h (ui_file_puts): Add declaration.
10327 * gdb/utils.c (emit_style_escape): Update.
10328 (flush_wrap_buffer): Update.
10329 (fputs_maybe_filtered): Update.
10330 (fputs_unfiltered): Add function.
10331
10332 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10333
10334 * gdb/event-loop.c (gdb_wait_for_event): Update.
10335 * gdb/printcmd.c (printf_command): Update.
10336 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10337 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10338 (gdb_os_flush_stderr): Update.
10339 * gdb/remote.c (remote_console_output): Update.
10340 * gdb/ui-file.c (gdb_flush): Rename to...
10341 (ui_file_flush): ...this.
10342 (stderr_file::write): Update.
10343 (stderr_file::puts): Update.
10344 * gdb/ui-file.h (gdb_flush): Rename to...
10345 (ui_file_flush): ...this.
10346 * gdb/utils.c (gdb_flush): Add function.
10347 * gdb/utils.h (gdb_flush): Add declaration.
10348
10349 2020-02-07 Tom Tromey <tromey@adacore.com>
10350
10351 PR breakpoints/24915:
10352 * source.c (find_and_open_source): Do not check basenames_may_differ.
10353
10354 2020-02-07 Tom Tromey <tom@tromey.com>
10355
10356 * README: Update gdbserver documentation.
10357 * gdbserver: Move to top level.
10358 * configure.tgt (build_gdbserver): Remove.
10359 * configure.ac: Remove --enable-gdbserver.
10360 * configure: Rebuild.
10361 * Makefile.in (distclean): Don't mention gdbserver.
10362
10363 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10364
10365 * source-cache.c (source_cache::ensure): Surround
10366 get_plain_source_lines with a try/catch.
10367 (source_cache::get_line_charpos): Get rid of try/catch
10368 and only check for the return value of "ensure".
10369 * tui/tui-source.c (tui_source_window::set_contents):
10370 Simplify "nlines" calculation.
10371
10372 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10373
10374 * MAINTAINERS (Write After Approval): Add myself.
10375
10376 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10377
10378 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10379 function call.
10380
10381 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10382
10383 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10384
10385 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
10386
10387 * nat/riscv-linux-tdesc.h: New file.
10388 * nat/riscv-linux-tdesc.c: New file, taking code from...
10389 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10390 ... here.
10391 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10392 NATDEPFILES.
10393
10394 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10395
10396 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10397 we don't set the fake simulator ptid to the null_ptid.
10398
10399 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
10400
10401 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10402 * gdbthread.h (class thread_info) <resumed>: Likewise.
10403 * infrun.c (resume_1): Likewise.
10404 (proceed): Likewise.
10405 (infrun_thread_stop_requested): Likewise.
10406 (stop_all_threads): Likewise.
10407 (handle_inferior_event): Likewise.
10408 (restart_threads): Likewise.
10409 (finish_step_over): Likewise.
10410 (keep_going_stepped_thread): Likewise.
10411 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10412 (linux_handle_extended_wait): Likewise.
10413 * record-btrace.c (get_thread_current_frame_id): Likewise.
10414 * record-full.c (record_full_wait_1): Likewise.
10415 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10416 * target.c (target_resume): Likewise.
10417 * thread.c (set_running_thread): Likewise.
10418
10419 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10420
10421 * f-valprint.c (f77_print_array_1): Changed datatype of index
10422 variable to LONGEST from int to enable it to contain bound
10423 values correctly.
10424
10425 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
10426
10427 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10428 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10429 offsets according to FLEN determined.
10430 (riscv_linux_nat_target::read_description): Determine FLEN
10431 dynamically.
10432 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10433 according to FLEN determined.
10434 (riscv_linux_nat_target::store_registers): Likewise.
10435
10436 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10437
10438 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10439 when reg->group is empty and reggroup is not.
10440
10441 2020-01-31 Tom Tromey <tromey@adacore.com>
10442
10443 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10444 Call beneath target's mourn_inferior after unpushing.
10445
10446 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10447
10448 PR tui/9765
10449 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10450 have enough lines to fill the screen, still return the lowest
10451 address we found.
10452
10453 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10454
10455 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10456 '-', '<', and '>' commands.
10457
10458 2020-01-29 Pedro Alves <palves@redhat.com>
10459 Sergio Durigan Junior <sergiodj@redhat.com>
10460
10461 * infcmd.c (construct_inferior_arguments): Assert that
10462 'argc' is greater than 0.
10463
10464 2020-01-29 Luis Machado <luis.machado@linaro.org>
10465
10466 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10467 (BRK_INSN_MASK): Define to 0xd4200000.
10468 (aarch64_program_breakpoint_here_p): New function.
10469 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10470 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10471 breakpoint.c.
10472 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10473 breakpoint.h
10474 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10475 call gdbarch_program_breakpoint_here_p.
10476 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10477 default_program_breakpoint_here_p, changed return type to bool and
10478 simplified.
10479 * breakpoint.h (program_breakpoint_here): Moved prototype to
10480 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10481 return type to bool.
10482 * gdbarch.c: Regenerate.
10483 * gdbarch.h: Regenerate.
10484 * gdbarch.sh (program_breakpoint_here_p): New method.
10485 * infrun.c (handle_signal_stop): Call
10486 gdbarch_program_breakpoint_here_p.
10487
10488 2020-01-26 Tom Tromey <tom@tromey.com>
10489
10490 * ctfread.c (struct ctf_fp_info): Reindent.
10491 (_initialize_ctfread): Remove.
10492
10493 2020-01-26 Tom Tromey <tom@tromey.com>
10494
10495 * psymtab.c (partial_map_expand_apply)
10496 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10497 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10498 (psym_print_stats, psym_expand_symtabs_for_function)
10499 (psym_map_symbol_filenames, psym_map_matching_symbols)
10500 (psym_expand_symtabs_matching)
10501 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10502 (maintenance_check_psymtabs): Use new methods.
10503 * psympriv.h (struct partial_symtab) <readin_p,
10504 get_compunit_symtab>: New methods.
10505 <readin, compunit_symtab>: Remove members.
10506 (struct standard_psymtab): New.
10507 (struct legacy_psymtab): Derive from standard_psymtab.
10508 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10509 standard_psymtab.
10510 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10511
10512 2020-01-26 Tom Tromey <tom@tromey.com>
10513
10514 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10515 read_dependencies. Add assert.
10516 * psymtab.c (partial_symtab::read_dependencies): New method.
10517 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10518 method.
10519 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10520 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10521 read_dependencies.
10522 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10523 Add assert.
10524
10525 2020-01-26 Tom Tromey <tom@tromey.com>
10526
10527 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10528 Call expand_psymtab.
10529 (xcoff_read_symtab): Call expand_psymtab.
10530 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10531 legacy_expand_psymtab.
10532 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10533 method.
10534 (struct legacy_psymtab) <expand_psymtab>: Implement.
10535 <legacy_expand_psymtab>: New member.
10536 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10537 (parse_partial_symbols): Set legacy_expand_psymtab.
10538 (psymtab_to_symtab_1): Change argument order. Call
10539 expand_psymtab.
10540 (new_psymtab): Set legacy_expand_psymtab.
10541 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10542 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10543 expand_psymtab.
10544 (dwarf2_psymtab::expand_psymtab): Rename from
10545 psymtab_to_symtab_1. Call expand_psymtab.
10546 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10547 (dbx_end_psymtab): Likewise.
10548 (dbx_psymtab_to_symtab_1): Change argument order. Call
10549 expand_psymtab.
10550 (dbx_read_symtab): Call expand_psymtab.
10551 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10552 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10553 (ctf_psymtab::read_symtab): Call expand_psymtab.
10554
10555 2020-01-26 Tom Tromey <tom@tromey.com>
10556
10557 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10558 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10559 messages.
10560 * mdebugread.c (mdebug_read_symtab): Remove prints.
10561 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10562 assert.
10563 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10564
10565 2020-01-26 Tom Tromey <tom@tromey.com>
10566
10567 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10568 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10569 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10570 legacy_symtab.
10571 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10572 * psymtab.c (psymtab_to_symtab): Call method.
10573 (dump_psymtab): Update.
10574 * psympriv.h (struct partial_symtab): Add virtual destructor.
10575 <read_symtab>: New method.
10576 (struct legacy_symtab): New.
10577 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10578 (struct pst_map) <pst>: Now a legacy_psymtab.
10579 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10580 (new_psymtab): Use legacy_psymtab.
10581 * dwarf2read.h (struct dwarf2_psymtab): New.
10582 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10583 * dwarf2read.c (dwarf2_create_include_psymtab)
10584 (dwarf2_build_include_psymtabs, create_type_unit_group)
10585 (create_partial_symtab, process_psymtab_comp_unit_reader)
10586 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10587 (set_partial_user): Use dwarf2_psymtab.
10588 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10589 (psymtab_to_symtab_1, process_full_comp_unit)
10590 (process_full_type_unit, dwarf2_ranges_read)
10591 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10592 (dwarf_decode_lines): Use dwarf2_psymtab.
10593 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10594 (add_address_entry_worker, write_one_signatured_type)
10595 (recursively_count_psymbols, recursively_write_psymbols)
10596 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10597 (write_debug_names): Likewise.
10598 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10599 <pst>: Now a legacy_psymtab.
10600 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10601 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10602 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10603 * ctfread.c (struct ctf_psymtab): New.
10604 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10605 ctf_psymtab.
10606 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10607 (create_partial_symtab): Return a ctf_psymtab.
10608 (scan_partial_symbols): Update.
10609
10610 2020-01-26 Tom Tromey <tom@tromey.com>
10611
10612 * xcoffread.c (xcoff_start_psymtab): Use new.
10613 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10614 renamed from start_psymtab_common.
10615 * psympriv.h (struct partial_symtab): Add new constructor.
10616 (start_psymtab_common): Don't declare.
10617 * mdebugread.c (parse_partial_symbols): Use new.
10618 * dwarf2read.c (create_partial_symtab): Use new.
10619 * dbxread.c (start_psymtab): Use new.
10620 * ctfread.c (create_partial_symtab): Use new.
10621
10622 2020-01-26 Tom Tromey <tom@tromey.com>
10623
10624 * xcoffread.c (xcoff_end_psymtab): Use new.
10625 * psymtab.c (start_psymtab_common): Use new.
10626 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10627 Update.
10628 * psympriv.h (struct partial_symtab): Add parameters to
10629 constructor. Don't inline.
10630 (allocate_psymtab): Don't declare.
10631 * mdebugread.c (new_psymtab): Use new.
10632 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10633 * dbxread.c (dbx_end_psymtab): Use new.
10634
10635 2020-01-26 Tom Tromey <tom@tromey.com>
10636
10637 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10638 allocate_psymtab. Update documentation.
10639 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10640 allocate_psymtab. Do not use new.
10641 (allocate_psymtab): Use new. Update.
10642
10643 2020-01-26 Tom Tromey <tom@tromey.com>
10644
10645 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10646 * psymtab.c (psym_print_stats): Update.
10647 * psympriv.h (struct partial_symtab) <readin,
10648 psymtabs_addrmap_supported, anonymous>: Now bool.
10649 * mdebugread.c (psymtab_to_symtab_1): Update.
10650 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10651 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10652 (process_full_comp_unit, process_full_type_unit): Update.
10653 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10654 * ctfread.c (psymtab_to_symtab): Update.
10655
10656 2020-01-26 Tom Tromey <tom@tromey.com>
10657
10658 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10659 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10660 * psymtab.c (psymtab_storage): Delete psymtabs.
10661 (psymtab_storage::allocate_psymtab): Use new.
10662 (psymtab_storage::discard_psymtab): Use delete.
10663 * psympriv.h (struct partial_symtab): Add constructor and
10664 initializers.
10665
10666 2020-01-26 Tom Tromey <tom@tromey.com>
10667
10668 * machoread.c: Do not include psympriv.h.
10669
10670 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10671
10672 * NEWS: Mention the new option and the set/show commands.
10673
10674 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10675
10676 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10677 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10678 (validate_exec_file): New variables, enums, functions.
10679 (exec_file_locate_attach, print_section_info): Style the filenames.
10680 (_initialize_exec): Install show_exec_file_mismatch_command and
10681 set_exec_file_mismatch_command.
10682 * gdbcore.h (validate_exec_file): Declare.
10683 * infcmd.c (attach_command): Call validate_exec_file.
10684 * remote.c ( remote_target::remote_add_inferior): Likewise.
10685
10686 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10687
10688 * frame.c (find_frame_sal): Move call to get_next_frame into more
10689 inner scope.
10690 * inline-frame.c (inilne_state) <inline_state>: Update argument
10691 types.
10692 (inilne_state) <skipped_symbol>: Rename to...
10693 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10694 (skip_inline_frames): Build vector of skipped symbols and use this
10695 to reate the inline_state.
10696 (inline_skipped_symbol): Add a comment and some assertions, fetch
10697 skipped symbol from the list.
10698
10699 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10700
10701 * buildsym.c (lte_is_less_than): Delete.
10702 (buildsym_compunit::end_symtab_with_blockvector): Create local
10703 lambda function to sort line table entries, and use
10704 std::stable_sort instead of std::sort.
10705 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10706 markers when looking for a previous line.
10707
10708 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10709
10710 * dwarf2read.c (lnp_state_machine::record_line): Include
10711 end_sequence parameter in debug print out. Record the line if we
10712 are at an end_sequence marker even if it's not the start of a
10713 statement.
10714 * symmisc.c (maintenance_print_one_line_table): Print end of
10715 sequence markers with 'END' not '0'.
10716
10717 2020-01-24 Pedro Alves <palves@redhat.com>
10718
10719 PR gdb/25410
10720 * thread.c (scoped_restore_current_thread::restore): Use
10721 switch_to_inferior_no_thread.
10722 * exec.c: Include "progspace-and-thread.h".
10723 (add_target_sections, remove_target_sections):
10724 scoped_restore_current_pspace_and_thread instead of
10725 scoped_restore_current_thread.
10726 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10727 and aspace to the inferior before calling clone_program_space.
10728 Remove stale comment.
10729
10730 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10731
10732 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10733 (arm_netbsd_nat_target::fetch_registers): ...this.
10734 (arm_nbsd_nat_target::store_registers): Rename to...
10735 (arm_netbsd_nat_target::store_registers): ...this.
10736
10737 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10738
10739 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10740 register_t.
10741
10742 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10743
10744 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10745 Update comment.
10746 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10747 Likewise.
10748 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10749 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10750 the correct replacement (iterate_over_regset_sections).
10751 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10752 Update comment.
10753
10754 2020-01-24 Graham Markall <graham.markall@embecosm.com>
10755
10756 PR gdb/23718
10757 * gdb/python/python.c (execute_gdb_command): Call
10758 async_enable_stdin in catch block.
10759
10760 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10761
10762 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10763 SWITCH_THRU_ALL_UIS.
10764
10765 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10766
10767 PR tui/9765
10768 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10769 comment, add extra parameter, and update to store previous symbol
10770 when appropriate.
10771 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10772 add extra parameter.
10773 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10774 remove unneeded parameter, add try/catch around gdb_print_insn,
10775 rewrite to add items to asm_lines vector.
10776 (tui_find_backward_disassembly_start_address): New function.
10777 (tui_find_disassembly_address): Updated throughout.
10778 (tui_disasm_window::set_contents): Update for changes to
10779 tui_disassemble.
10780 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10781 number of lines to scroll.
10782
10783 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10784
10785 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10786 (SECT_OFF_DATA): Likewise.
10787 (SECT_OFF_RODATA): Likewise.
10788 (SECT_OFF_TEXT): Likewise.
10789 (SECT_OFF_BSS): Likewise.
10790 (struct objfile) <text_section_offset, data_section_offset>: New
10791 methods.
10792 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10793 objfile::text_section_offset.
10794 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10795 * coffread.c (coff_symtab_read): Likewise.
10796 (enter_linenos): Likewise.
10797 (process_coff_symbol): Likewise.
10798 * ctfread.c (get_objfile_text_range): Likewise.
10799 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10800 Use objfile::data_section_offset.
10801 * dwarf2-frame.c (execute_cfa_program): Use
10802 objfile::text_section_offset.
10803 (dwarf2_frame_find_fde): Likewise.
10804 * dwarf2read.c (create_addrmap_from_index): Likewise.
10805 (create_addrmap_from_aranges): Likewise.
10806 (dw2_find_pc_sect_compunit_symtab): Likewise.
10807 (process_psymtab_comp_unit_reader): Likewise.
10808 (add_partial_symbol): Likewise.
10809 (add_partial_subprogram): Likewise.
10810 (process_full_comp_unit): Likewise.
10811 (read_file_scope): Likewise.
10812 (read_func_scope): Likewise.
10813 (read_lexical_block_scope): Likewise.
10814 (read_call_site_scope): Likewise.
10815 (dwarf2_rnglists_process): Likewise.
10816 (dwarf2_ranges_process): Likewise.
10817 (dwarf2_ranges_read): Likewise.
10818 (dwarf_decode_lines_1): Likewise.
10819 (new_symbol): Likewise.
10820 (dwarf2_fetch_die_loc_sect_off): Likewise.
10821 (dwarf2_per_cu_text_offset): Likewise.
10822 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10823 * hppa-tdep.c (read_unwind_info): Likewise.
10824 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10825 * psympriv.h (struct partial_symtab): Likewise.
10826 * psymtab.c (find_pc_sect_psymtab): Likewise.
10827 * solib-svr4.c (enable_break): Likewise.
10828 * stap-probe.c (relocate_address): Use
10829 objfile::data_section_offset.
10830 * xcoffread.c (enter_line_range): Use
10831 objfile::text_section_offset.
10832 (read_xcoff_symtab): Likewise.
10833
10834 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10835
10836 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10837 declaration to narrower scopes.
10838
10839 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10840
10841 * darwin-nat.h (struct darwin_exception_msg, enum
10842 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10843 Move up.
10844 (class darwin_nat_target) <wait_1, check_new_threads,
10845 decode_exception_message, decode_message, stop_inferior,
10846 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10847 * darwin-nat.c (darwin_check_new_threads): Rename to...
10848 (darwin_nat_target::check_new_threads): ... this.
10849 (darwin_suspend_inferior_it): Remove.
10850 (darwin_decode_exception_message): Rename to...
10851 (darwin_nat_target::decode_exception_message): ... this.
10852 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10853 (darwin_decode_message): Rename to...
10854 (darwin_nat_target::decode_message): ... this.
10855 (cancel_breakpoint): Rename to...
10856 (darwin_nat_target::cancel_breakpoint): ... this.
10857 (darwin_wait): Rename to...
10858 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10859 instead of iterate_over_inferiors.
10860 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10861 (darwin_stop_inferior): Rename to...
10862 (darwin_nat_target::stop_inferior): ... this.
10863 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10864 (darwin_init_thread_list): Rename to...
10865 (darwin_nat_target::init_thread_list): ... this.
10866 (darwin_ptrace_him): Rename to...
10867 (darwin_nat_target::ptrace_him): ... this.
10868 (darwin_nat_target::create_inferior): Pass lambda function to
10869 fork_inferior.
10870 (darwin_nat_target::detach): Call stop_inferior instead of
10871 darwin_stop_inferior.
10872 * fork-inferior.h (fork_inferior): Change init_trace_fun
10873 parameter to gdb::function_view.
10874 * fork-inferior.c (fork_inferior): Likewise.
10875
10876 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
10877
10878 * i386-cygwin-tdep.c (core_process_module_section): Update.
10879 * windows-nat.c (struct lm_info_windows): Add text_offset.
10880 (windows_xfer_shared_libraries): Update.
10881 * windows-tdep.c (windows_xfer_shared_library):
10882 Add text_offset_cached argument.
10883 * windows-tdep.h (windows_xfer_shared_library): Update.
10884
10885 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10886
10887 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10888
10889 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10890
10891 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10892 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10893 replace with range-based for.
10894 (gdbsim_interrupt_inferior): Remove.
10895 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10896 with a range-based for. Inline code from
10897 gdbsim_interrupt_inferior.
10898
10899 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10900
10901 * infrun.c (proceed): Fix indentation.
10902
10903 2020-01-21 Tom Tromey <tromey@adacore.com>
10904
10905 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10906 * python/python.c (python_extension_ops): Update.
10907 (gdbpy_colorize): New function.
10908 * python/lib/gdb/__init__.py (colorize): New function.
10909 * extension.h (ext_lang_colorize): Declare.
10910 * extension.c (ext_lang_colorize): New function.
10911 * extension-priv.h (struct extension_language_ops) <colorize>: New
10912 member.
10913 * cli/cli-style.c (_initialize_cli_style): Update help text.
10914
10915 2020-01-21 Luis Machado <luis.machado@linaro.org>
10916
10917 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10918 <cond>: Change type to bool.
10919 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10920 (aarch64_displaced_step_cb): Likewise.
10921 (aarch64_displaced_step_tb): Likewise.
10922
10923 2020-01-21 Luis Machado <luis.machado@linaro.org>
10924
10925 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10926 output.
10927
10928 2020-01-21 Luis Machado <luis.machado@linaro.org>
10929
10930 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10931 <pc_adjust>: Adjust the documentation.
10932 (aarch64_displaced_step_fixup): Check if PC really moved before
10933 adjusting it.
10934
10935 2020-01-19 Tom Tromey <tom@tromey.com>
10936
10937 * disasm.c (~gdb_disassembler): New destructor.
10938 (gdb_buffered_insn_length): Call disassemble_free_target.
10939 * disasm.h (class gdb_disassembler): Declare destructor. Use
10940 DISABLE_COPY_AND_ASSIGN.
10941
10942 2020-01-19 Tom Tromey <tom@tromey.com>
10943
10944 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10945 (die_reader_func_ftype): Remove.
10946 (cutu_reader): New class.
10947 (dw2_get_file_names_reader): Remove "data" parameter.
10948 (dw2_get_file_names): Use cutu_reader.
10949 (create_debug_type_hash_table): Update.
10950 (read_cutu_die_from_dwo): Update comment.
10951 (lookup_dwo_unit): Add dwo_name parameter.
10952 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10953 die_reader_func_ftype and data parameters.
10954 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10955 Remove die_reader_func_ftype and data parameters.
10956 (~cutu_reader): New; from init_cutu_and_read_dies.
10957 (cutu_reader::cutu_reader): Rename from
10958 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10959 and data parameters.
10960 (init_cutu_and_read_dies_simple): Remove.
10961 (struct process_psymtab_comp_unit_data): Remove.
10962 (process_psymtab_comp_unit_reader): Remove data parameter; add
10963 want_partial_unit and pretend_language parameters.
10964 (process_psymtab_comp_unit): Use cutu_reader.
10965 (build_type_psymtabs_reader): Remove data parameter.
10966 (build_type_psymtabs_1): Use cutu_reader.
10967 (process_skeletonless_type_unit): Likewise.
10968 (load_partial_comp_unit_reader): Remove.
10969 (load_partial_comp_unit): Use cutu_reader.
10970 (load_full_comp_unit_reader): Remove.
10971 (load_full_comp_unit): Use cutu_reader.
10972 (struct create_dwo_cu_data): Remove.
10973 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10974 dwo_unit parameters.
10975 (create_cus_hash_table): Use cutu_reader.
10976 (struct dwarf2_read_addr_index_data): Remove.
10977 (dwarf2_read_addr_index_reader): Remove.
10978 (dwarf2_read_addr_index): Use cutu_reader.
10979 (read_signatured_type_reader): Remove.
10980 (read_signatured_type): Use cutu_reader.
10981
10982 2020-01-19 Tom Tromey <tom@tromey.com>
10983
10984 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10985 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10986 (tui_wrefresh): Declare.
10987 * tui/tui-wingeneral.c (suppress_output): New global.
10988 (tui_suppress_output, ~tui_suppress_output): New constructor and
10989 destructor.
10990 (tui_wrefresh): New function.
10991 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10992 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10993 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10994 method.
10995 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10996 tui_wrefresh.
10997 (tui_data_window::no_refresh): New method.
10998 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10999 (tui_reg_command): Use tui_suppress_output
11000 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
11001 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
11002 method.
11003 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
11004
11005 2020-01-19 Tom Tromey <tom@tromey.com>
11006
11007 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11008 Handle case where symtab is null.
11009
11010 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
11011
11012 * linux-fork.c (one_fork_p): Simplify.
11013
11014 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11015
11016 * top.c (struct qt_args): Remove.
11017 (kill_or_detach): Change return type to void, replace `void *`
11018 parameter with a proper one.
11019 (print_inferior_quit_action): Likewise.
11020 (quit_confirm): Use range-based for loop to iterate over inferiors.
11021 (quit_force): Likewise.
11022
11023 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11024
11025 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
11026 `void *` parameter with proper parameters.
11027 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
11028 (print_one_inferior): Change return type to void, replace `void *`
11029 parameter with proper parameters.
11030 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
11031 inferiors.
11032 (get_other_inferior): Remove.
11033 (mi_cmd_remove_inferior): Use range-based loop to iterate over
11034 inferiors.
11035
11036 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11037
11038 * mi/mi-interp.c (report_initial_inferior): Remove.
11039 (mi_interp::init): Use range-based for to iterate over inferiors.
11040
11041 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11042
11043 * python/py-inferior.c (build_inferior_list): Remove.
11044 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
11045
11046 2020-01-16 Christian Biesinger <cbiesinger@google.com>
11047
11048 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
11049 (btrace_stitch_trace): Likewise.
11050 * charset.c (intermediate_encoding): Likewise (vaild).
11051 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
11052 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
11053 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
11054
11055 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
11056
11057 * windows-tdep.c (windows_get_tlb_type):
11058 Add rtl_user_process_parameters type.
11059
11060 2020-01-16 Pedro Alves <palves@redhat.com>
11061 Norbert Lange <nolange79@gmail.com>
11062
11063 PR build/24805
11064 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
11065 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
11066 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
11067 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
11068 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
11069 (ps_plog): Redeclare exported functions with default visibility.
11070
11071 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
11072
11073 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
11074 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
11075
11076 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
11077
11078 * infcmd.c (post_create_inferior): Use get_thread_regcache
11079 instead of get_current_regcache.
11080
11081 2020-01-14 Tom Tromey <tom@tromey.com>
11082
11083 PR symtab/12535:
11084 * python/python.c (gdbpy_decode_line): Treat empty string the same
11085 as no argument.
11086
11087 2020-01-14 Tom Tromey <tom@tromey.com>
11088
11089 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
11090
11091 2020-01-14 Tom Tromey <tom@tromey.com>
11092
11093 * nat/linux-btrace.c: Don't include <config.h>.
11094 * nat/linux-ptrace.c: Don't include <config.h>.
11095 * nat/x86-linux-dregs.c: Don't include <config.h>.
11096
11097 2020-01-14 Tom Tromey <tom@tromey.com>
11098
11099 * configure: Rebuild.
11100 * configure.ac: Move many checks to ../gdbsupport/common.m4.
11101
11102 2020-01-14 Tom Tromey <tom@tromey.com>
11103
11104 * nat/x86-linux-dregs.c: Include configh.h.
11105 * nat/linux-ptrace.c: Include configh.h.
11106 * nat/linux-btrace.c: Include configh.h.
11107 * defs.h: Include config.h, bfd.h.
11108 * configure.ac: Don't source common.host.
11109 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
11110 * configure: Rebuild.
11111 * acinclude.m4: Update path.
11112 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
11113 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
11114 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
11115 (CLIBS): Add LIBSUPPORT.
11116 (CDEPS): Likewise.
11117 (COMMON_SFILES): Remove gdbsupport files.
11118 (HFILES_NO_SRCDIR): Likewise.
11119 (stamp-version): Update path to create-version.sh.
11120 (ALLDEPFILES): Remove gdbsupport files.
11121
11122 2020-01-14 Tom Tromey <tom@tromey.com>
11123
11124 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
11125 USE_WIN32API when needed.
11126 * configure.ac (USE_WIN32API): Don't define.
11127 (WIN32LIBS): Use WIN32APILIBS.
11128 * configure: Rebuild.
11129
11130 2020-01-14 Tom Tromey <tom@tromey.com>
11131
11132 * configure: Rebuild.
11133 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
11134
11135 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
11136
11137 * skip.c (skip_function_command): Make skip w/o arguments use the
11138 name of the inlined function if pc is inside any inlined function.
11139
11140 2020-01-14 Luis Machado <luis.machado@linaro.org>
11141
11142 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
11143 * infrun.c (resume_1): Likewise.
11144 (handle_inferior_event): Remove stale comment.
11145 * linux-nat.c (linux_nat_target::resume): Update comments.
11146 (save_stop_reason): Likewise.
11147 (linux_nat_filter_event): Likewise.
11148 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
11149
11150 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11151
11152 * elfread.c (record_minimal_symbol): Set section index to 0 for
11153 non-allocatable sections.
11154
11155
11156 2020-01-13 Ali Tamur <tamur@google.com>
11157
11158 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
11159 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
11160 to gdb::optional. Update comments.
11161 (dwo_file): Update comments.
11162 (read_attribute): Update API to take an additional out parameter,
11163 need_reprocess. This is used to mark attributes that need other
11164 attributes (e.g. str_offsets_base) for correct computation which may not
11165 have been read yet.
11166 (read_attribute_reprocess): New function declaration.
11167 (read_addr_index): Likewise.
11168 (read_dwo_str_index): Likewise.
11169 (read_stub_str_index): Likewise.
11170 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
11171 (lookup_addr_base): New function definition.
11172 (lookup_ranges_base): Likewise.
11173 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
11174 lookup_ranges_base.
11175 (init_cutu_and_read_dies): Update comments.
11176 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
11177 unit. This is used to inherit parent's str_offsets_base and addr_base.
11178 Update comments.
11179 (init_cutu_and_read_dies_simple): Reflect API changes.
11180 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
11181 (create_cus_hash_table): Change API to take parent compile unit.
11182 Reflect API changes.
11183 (open_and_init_dwo_file): Reflect API changes.
11184 (dwarf2_get_pc_bounds): Update comments.
11185 (dwarf2_record_block_ranges): Likewise.
11186 (read_full_die_1): Change implementation to reprocess attributes that
11187 need str_offsets_base and addr_base.
11188 (partial_die_info::read): Likewise.
11189 (read_attribute_reprocess): New function definition.
11190 (read_attribute_value): Change API to take an additional out parameter,
11191 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
11192 when a non-dwo compile unit has index based attributes.
11193 (read_attribute): Reflect API changes.
11194 (read_addr_index_1): Reflect API changes. Update comments.
11195 (dwarf2_read_addr_index_data): Reflect API changes.
11196 (dwarf2_read_addr_index): Likewise.
11197 (read_str_index): Change API and implementation. This becomes a helper
11198 to be used by the new string index related methods. Update error
11199 message and comments.
11200 (read_dwo_str_index): New function definition.
11201 (read_stub_str_index): Likewise.
11202 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
11203 * symfile.h (dwarf2_debug_sections): Likewise.
11204 * xcoffread.c (dwarf2_debug_sections): Likewise.
11205
11206 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11207
11208 * gdbcore.h (struct core_fns) <core_read_registers>: Change
11209 core_reg_sect type to gdb_byte *.
11210 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
11211 * cris-tdep.c (fetch_core_registers): Likewise.
11212 * corelow.c (core_target::get_core_register_section): Change
11213 type of `contents` to gdb::byte_vector.
11214
11215 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11216
11217 * tui/tui-wingeneral.c (box_win): Position the title in the center
11218 of the border.
11219
11220 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11221
11222 * corelow.c (core_target::get_core_register_section): Use
11223 std::vector instead of alloca.
11224
11225 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11226
11227 * warning.m4: Add -Wmissing-declarations to build_warnings.
11228 * configure: Re-generate.
11229
11230 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11231
11232 * python/python.c (init__gdb_module): Add declaration.
11233
11234 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11235
11236 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
11237 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
11238 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
11239 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
11240 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
11241 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
11242 * ada-exp.y (_initialize_ada_exp): Add declaration.
11243 * ada-lang.c (_initialize_ada_language): Add declaration.
11244 * ada-tasks.c (_initialize_tasks): Add declaration.
11245 * agent.c (_initialize_agent): Add declaration.
11246 * aix-thread.c (_initialize_aix_thread): Add declaration.
11247 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
11248 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
11249 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
11250 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
11251 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
11252 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
11253 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
11254 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
11255 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
11256 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
11257 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
11258 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
11259 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
11260 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
11261 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
11262 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
11263 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
11264 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
11265 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
11266 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
11267 * annotate.c (_initialize_annotate): Add declaration.
11268 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
11269 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
11270 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
11271 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
11272 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
11273 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
11274 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
11275 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
11276 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
11277 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
11278 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
11279 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
11280 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
11281 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
11282 * auto-load.c (_initialize_auto_load): Add declaration.
11283 * auxv.c (_initialize_auxv): Add declaration.
11284 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
11285 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
11286 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
11287 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
11288 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
11289 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
11290 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
11291 * breakpoint.c (_initialize_breakpoint): Add declaration.
11292 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
11293 * btrace.c (_initialize_btrace): Add declaration.
11294 * charset.c (_initialize_charset): Add declaration.
11295 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
11296 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11297 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11298 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11299 * cli/cli-script.c (_initialize_cli_script): Add declaration.
11300 * cli/cli-style.c (_initialize_cli_style): Add declaration.
11301 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11302 * coffread.c (_initialize_coffread): Add declaration.
11303 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11304 * compile/compile.c (_initialize_compile): Add declaration.
11305 * complaints.c (_initialize_complaints): Add declaration.
11306 * completer.c (_initialize_completer): Add declaration.
11307 * copying.c (_initialize_copying): Add declaration.
11308 * corefile.c (_initialize_core): Add declaration.
11309 * corelow.c (_initialize_corelow): Add declaration.
11310 * cp-abi.c (_initialize_cp_abi): Add declaration.
11311 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11312 * cp-support.c (_initialize_cp_support): Add declaration.
11313 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11314 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11315 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11316 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11317 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11318 * ctfread.c (_initialize_ctfread): Add declaration.
11319 * d-lang.c (_initialize_d_language): Add declaration.
11320 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11321 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11322 * dbxread.c (_initialize_dbxread): Add declaration.
11323 * dcache.c (_initialize_dcache): Add declaration.
11324 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11325 * disasm.c (_initialize_disasm): Add declaration.
11326 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11327 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11328 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11329 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11330 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11331 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11332 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11333 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11334 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11335 * elfread.c (_initialize_elfread): Add declaration.
11336 * exec.c (_initialize_exec): Add declaration.
11337 * extension.c (_initialize_extension): Add declaration.
11338 * f-lang.c (_initialize_f_language): Add declaration.
11339 * f-valprint.c (_initialize_f_valprint): Add declaration.
11340 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11341 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11342 * filesystem.c (_initialize_filesystem): Add declaration.
11343 * findcmd.c (_initialize_mem_search): Add declaration.
11344 * findvar.c (_initialize_findvar): Add declaration.
11345 * fork-child.c (_initialize_fork_child): Add declaration.
11346 * frame-base.c (_initialize_frame_base): Add declaration.
11347 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11348 * frame.c (_initialize_frame): Add declaration.
11349 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11350 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11351 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11352 * gcore.c (_initialize_gcore): Add declaration.
11353 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11354 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11355 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11356 * gdbarch.c (_initialize_gdbarch): Add declaration.
11357 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11358 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11359 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11360 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11361 * go-lang.c (_initialize_go_language): Add declaration.
11362 * go32-nat.c (_initialize_go32_nat): Add declaration.
11363 * guile/guile.c (_initialize_guile): Add declaration.
11364 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11365 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11366 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11367 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11368 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11369 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11370 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11371 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11372 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11373 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11374 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11375 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11376 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11377 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11378 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11379 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11380 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11381 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11382 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11383 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11384 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11385 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11386 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11387 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11388 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11389 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11390 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11391 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11392 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11393 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11394 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11395 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11396 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11397 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11398 * infcall.c (_initialize_infcall): Add declaration.
11399 * infcmd.c (_initialize_infcmd): Add declaration.
11400 * inflow.c (_initialize_inflow): Add declaration.
11401 * infrun.c (_initialize_infrun): Add declaration.
11402 * interps.c (_initialize_interpreter): Add declaration.
11403 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11404 * jit.c (_initialize_jit): Add declaration.
11405 * language.c (_initialize_language): Add declaration.
11406 * linux-fork.c (_initialize_linux_fork): Add declaration.
11407 * linux-nat.c (_initialize_linux_nat): Add declaration.
11408 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11409 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11410 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11411 * m2-lang.c (_initialize_m2_language): Add declaration.
11412 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11413 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11414 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11415 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11416 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11417 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11418 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11419 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11420 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11421 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11422 * machoread.c (_initialize_machoread): Add declaration.
11423 * macrocmd.c (_initialize_macrocmd): Add declaration.
11424 * macroscope.c (_initialize_macroscope): Add declaration.
11425 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11426 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11427 * maint.c (_initialize_maint_cmds): Add declaration.
11428 * mdebugread.c (_initialize_mdebugread): Add declaration.
11429 * memattr.c (_initialize_mem): Add declaration.
11430 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11431 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11432 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11433 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11434 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11435 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11436 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11437 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11438 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11439 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11440 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11441 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11442 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11443 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11444 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11445 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11446 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11447 * mipsread.c (_initialize_mipsread): Add declaration.
11448 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11449 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11450 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11451 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11452 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11453 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11454 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11455 * nto-procfs.c (_initialize_procfs): Add declaration.
11456 * objc-lang.c (_initialize_objc_language): Add declaration.
11457 * observable.c (_initialize_observer): Add declaration.
11458 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11459 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11460 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11461 * osabi.c (_initialize_gdb_osabi): Add declaration.
11462 * osdata.c (_initialize_osdata): Add declaration.
11463 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11464 * parse.c (_initialize_parse): Add declaration.
11465 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11466 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11467 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11468 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11469 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11470 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11471 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11472 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11473 * printcmd.c (_initialize_printcmd): Add declaration.
11474 * probe.c (_initialize_probe): Add declaration.
11475 * proc-api.c (_initialize_proc_api): Add declaration.
11476 * proc-events.c (_initialize_proc_events): Add declaration.
11477 * proc-service.c (_initialize_proc_service): Add declaration.
11478 * procfs.c (_initialize_procfs): Add declaration.
11479 * producer.c (_initialize_producer): Add declaration.
11480 * psymtab.c (_initialize_psymtab): Add declaration.
11481 * python/python.c (_initialize_python): Add declaration.
11482 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11483 * record-btrace.c (_initialize_record_btrace): Add declaration.
11484 * record-full.c (_initialize_record_full): Add declaration.
11485 * record.c (_initialize_record): Add declaration.
11486 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11487 * regcache.c (_initialize_regcache): Add declaration.
11488 * reggroups.c (_initialize_reggroup): Add declaration.
11489 * remote-notif.c (_initialize_notif): Add declaration.
11490 * remote-sim.c (_initialize_remote_sim): Add declaration.
11491 * remote.c (_initialize_remote): Add declaration.
11492 * reverse.c (_initialize_reverse): Add declaration.
11493 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11494 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11495 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11496 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11497 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11498 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11499 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11500 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11501 Add declaration.
11502 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11503 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11504 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11505 * rust-exp.y (_initialize_rust_exp): Add declaration.
11506 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11507 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11508 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11509 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11510 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11511 * score-tdep.c (_initialize_score_tdep): Add declaration.
11512 * ser-go32.c (_initialize_ser_dos): Add declaration.
11513 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11514 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11515 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11516 * ser-uds.c (_initialize_ser_socket): Add declaration.
11517 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11518 * serial.c (_initialize_serial): Add declaration.
11519 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11520 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11521 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11522 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11523 * skip.c (_initialize_step_skip): Add declaration.
11524 * sol-thread.c (_initialize_sol_thread): Add declaration.
11525 * solib-aix.c (_initialize_solib_aix): Add declaration.
11526 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11527 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11528 * solib-frv.c (_initialize_frv_solib): Add declaration.
11529 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11530 * solib-target.c (_initialize_solib_target): Add declaration.
11531 * solib.c (_initialize_solib): Add declaration.
11532 * source-cache.c (_initialize_source_cache): Add declaration.
11533 * source.c (_initialize_source): Add declaration.
11534 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11535 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11536 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11537 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11538 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11539 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11540 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11541 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11542 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11543 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11544 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11545 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11546 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11547 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11548 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11549 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11550 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11551 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11552 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11553 * stabsread.c (_initialize_stabsread): Add declaration.
11554 * stack.c (_initialize_stack): Add declaration.
11555 * stap-probe.c (_initialize_stap_probe): Add declaration.
11556 * std-regs.c (_initialize_frame_reg): Add declaration.
11557 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11558 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11559 * symfile.c (_initialize_symfile): Add declaration.
11560 * symmisc.c (_initialize_symmisc): Add declaration.
11561 * symtab.c (_initialize_symtab): Add declaration.
11562 * target.c (_initialize_target): Add declaration.
11563 * target-connection.c (_initialize_target_connection): Add
11564 declaration.
11565 * target-dcache.c (_initialize_target_dcache): Add declaration.
11566 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11567 * thread.c (_initialize_thread): Add declaration.
11568 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11569 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11570 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11571 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11572 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11573 * tracectf.c (_initialize_ctf): Add declaration.
11574 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11575 * tracefile.c (_initialize_tracefile): Add declaration.
11576 * tracepoint.c (_initialize_tracepoint): Add declaration.
11577 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11578 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11579 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11580 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11581 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11582 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11583 * tui/tui.c (_initialize_tui): Add declaration.
11584 * typeprint.c (_initialize_typeprint): Add declaration.
11585 * ui-style.c (_initialize_ui_style): Add declaration.
11586 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11587 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11588 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11589 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11590 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11591 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11592 * unittests/filtered_iterator-selftests.c
11593 (_initialize_filtered_iterator_selftests): Add declaration.
11594 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11595 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11596 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11597 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11598 * unittests/main-thread-selftests.c
11599 (_initialize_main_thread_selftests): Add declaration.
11600 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11601 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11602 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11603 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11604 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11605 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11606 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11607 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11608 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11609 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11610 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11611 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11612 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11613 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11614 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11615 declaration.
11616 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11617 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11618 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11619 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11620 * user-regs.c (_initialize_user_regs): Add declaration.
11621 * utils.c (_initialize_utils): Add declaration.
11622 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11623 * valops.c (_initialize_valops): Add declaration.
11624 * valprint.c (_initialize_valprint): Add declaration.
11625 * value.c (_initialize_values): Add declaration.
11626 * varobj.c (_initialize_varobj): Add declaration.
11627 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11628 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11629 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11630 * windows-nat.c (_initialize_windows_nat): Add declaration.
11631 (_initialize_check_for_gdb_ini): Add declaration.
11632 (_initialize_loadable): Add declaration.
11633 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11634 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11635 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11636 * xcoffread.c (_initialize_xcoffread): Add declaration.
11637 * xml-support.c (_initialize_xml_support): Add declaration.
11638 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11639 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11640 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11641 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11642
11643 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11644
11645 * regformats/regdat.sh: Generate declaration for init function.
11646
11647 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11648
11649 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11650 up.
11651 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11652 close_one_inferior>: New methods.
11653 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11654 pass down target to find_inferior_pid.
11655 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11656 Pass down target to find_inferior_ptid.
11657 (gdbsim_target::create_inferior): Pass down target to
11658 add_thread_silent.
11659 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11660 target down to find_inferior_ptid and switch_to_thread.
11661 (gdbsim_target::close): Update to call close_one_inferior.
11662 (struct resume_data): Remove.
11663 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11664 directly, rather than through a void pointer.
11665 (gdbsim_target::resume): Update to call resume_one_inferior.
11666
11667 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11668
11669 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11670
11671 2020-01-12 Pedro Alves <palves@redhat.com>
11672
11673 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11674 directly for the current inferior instead of
11675 discard_all_inferiors.
11676 (discard_all_inferiors): Delete.
11677
11678 2020-01-11 Tom Tromey <tom@tromey.com>
11679
11680 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11681 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11682 deprecated_safe_get_selected_frame.
11683
11684 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11685
11686 * inferior.c (print_inferior): Switch inferior before printing it.
11687
11688 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11689 Pedro Alves <palves@redhat.com>
11690
11691 * progspace-and-thread.c (switch_to_program_space_and_thread):
11692 Assert there's an inferior for PSPACE. Use
11693 switch_to_inferior_no_thread to switch the inferior too.
11694 * progspace.c (program_space::~program_space): Call
11695 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11696 (program_space::free_all_objfiles): Don't call clear_symtab_users
11697 here.
11698 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11699
11700 2020-01-10 Pedro Alves <palves@redhat.com>
11701
11702 * NEWS: Mention multi-target debugging, "info connections", and
11703 "add-inferior -no-connection".
11704
11705 2020-01-10 Pedro Alves <palves@redhat.com>
11706
11707 * infrun.c: Include "target-connection.h".
11708 (check_multi_target_resumption): New.
11709 (proceed): Call it.
11710 * target-connection.c (make_target_connection_string): Make
11711 extern.
11712 * target-connection.h (make_target_connection_string): Declare.
11713
11714 2020-01-10 Pedro Alves <palves@redhat.com>
11715
11716 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11717 * inferior.c (uiout_field_connection): New function.
11718 (print_inferior): Add new "connection-id" column.
11719 (add_inferior_command): Show connection number/string of added
11720 inferior.
11721 * process-stratum-target.h
11722 (process_stratum_target::connection_string): New virtual method.
11723 (process_stratum_target::connection_number): New field.
11724 * remote.c (remote_target::connection_string): New override.
11725 * target-connection.c: New file.
11726 * target-connection.h: New file.
11727 * target.c (decref_target): Remove process_stratum targets from
11728 the connection list.
11729 (target_stack::push): Add process_stratum targets to the
11730 connection list.
11731
11732 2020-01-10 Pedro Alves <palves@redhat.com>
11733
11734 Revert:
11735 2016-04-12 Pedro Alves <palves@redhat.com>
11736 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11737 Remove references to name.
11738 * serial.h (struct serial) <name>: Delete.
11739
11740 2020-01-10 Pedro Alves <palves@redhat.com>
11741
11742 * gdbarch-selftests.c (register_to_value_test): Remove "target
11743 already pushed" check.
11744
11745 2020-01-10 Pedro Alves <palves@redhat.com>
11746 John Baldwin <jhb@FreeBSD.org>
11747
11748 * aarch64-linux-nat.c
11749 (aarch64_linux_nat_target::thread_architecture): Adjust.
11750 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11751 (task_command_1): Likewise.
11752 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11753 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11754 (aix_thread_target::store_registers)
11755 (aix_thread_target::thread_alive): Adjust.
11756 * amd64-fbsd-tdep.c: Include "inferior.h".
11757 (amd64fbsd_get_thread_local_address): Pass down target.
11758 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11759 thread's gdbarch instead of target_gdbarch.
11760 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11761 get_last_target_status.
11762 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11763 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11764 inferiors.
11765 (update_inserted_breakpoint_locations): Skip if inferiors with no
11766 execution.
11767 (update_global_location_list): When handling moribund locations,
11768 find representative inferior for location's pspace, and use thread
11769 count of its process_stratum target.
11770 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11771 * bsd-uthread.c (bsd_uthread_target::wait): Use
11772 as_process_stratum_target and adjust thread_change_ptid and
11773 add_thread calls.
11774 (bsd_uthread_target::update_thread_list): Use
11775 as_process_stratum_target and adjust find_thread_ptid,
11776 thread_change_ptid and add_thread calls.
11777 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11778 find_thread_ptid call.
11779 * corelow.c (add_to_thread_list): Adjust add_thread call.
11780 (core_target_open): Adjust add_thread_silent and thread_count
11781 calls.
11782 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11783 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11784 * event-top.c (async_disconnect): Pop targets from all inferiors.
11785 * exec.c (add_target_sections): Push exec target on all inferiors
11786 sharing the program space.
11787 (remove_target_sections): Remove the exec target from all
11788 inferiors sharing the program space.
11789 (exec_on_vfork): New.
11790 * exec.h (exec_on_vfork): Declare.
11791 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11792 Pass it down.
11793 (fbsd_nat_target::update_thread_list): Adjust.
11794 (fbsd_nat_target::resume): Adjust.
11795 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11796 down.
11797 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11798 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11799 get_thread_arch_regcache call.
11800 * fork-child.c (gdb_startup_inferior): Pass target down to
11801 startup_inferior and set_executing.
11802 * gdbthread.h (struct process_stratum_target): Forward declare.
11803 (add_thread, add_thread_silent, add_thread_with_info)
11804 (in_thread_list): Add process_stratum_target parameter.
11805 (find_thread_ptid(inferior*, ptid_t)): New overload.
11806 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11807 parameter.
11808 (all_threads()): Delete overload.
11809 (all_threads, all_non_exited_threads): Add process_stratum_target
11810 parameter.
11811 (all_threads_safe): Use brace initialization.
11812 (thread_count): Add process_stratum_target parameter.
11813 (set_resumed, set_running, set_stop_requested, set_executing)
11814 (threads_are_executing, finish_thread_state): Add
11815 process_stratum_target parameter.
11816 (switch_to_thread): Use is_current_thread.
11817 * i386-fbsd-tdep.c: Include "inferior.h".
11818 (i386fbsd_get_thread_local_address): Pass down target.
11819 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11820 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11821 have_inferiors check.
11822 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11823 (inf_ptrace_target::attach): Adjust.
11824 * infcall.c (run_inferior_call): Adjust.
11825 * infcmd.c (run_command_1): Pass target to
11826 scoped_finish_thread_state.
11827 (proceed_thread_callback): Skip inferiors with no execution.
11828 (continue_command): Rename 'all_threads' local to avoid hiding
11829 'all_threads' function. Adjust get_last_target_status call.
11830 (prepare_one_step): Adjust set_running call.
11831 (signal_command): Use user_visible_resume_target. Compare thread
11832 pointers instead of inferior_ptid.
11833 (info_program_command): Adjust to pass down target.
11834 (attach_command): Mark target's 'thread_executing' flag.
11835 (stop_current_target_threads_ns): New, factored out from ...
11836 (interrupt_target_1): ... this. Switch inferior before making
11837 target calls.
11838 * inferior-iter.h
11839 (struct all_inferiors_iterator, struct all_inferiors_range)
11840 (struct all_inferiors_safe_range)
11841 (struct all_non_exited_inferiors_range): Filter on
11842 process_stratum_target too. Remove explicit.
11843 * inferior.c (inferior::inferior): Push dummy target on target
11844 stack.
11845 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11846 Add process_stratum_target parameter, and pass it down.
11847 (have_live_inferiors): Adjust.
11848 (switch_to_inferior_and_push_target): New.
11849 (add_inferior_command, clone_inferior_command): Handle
11850 "-no-connection" parameter. Use
11851 switch_to_inferior_and_push_target.
11852 (_initialize_inferior): Mention "-no-connection" option in
11853 the help of "add-inferior" and "clone-inferior" commands.
11854 * inferior.h: Include "process-stratum-target.h".
11855 (interrupt_target_1): Use bool.
11856 (struct inferior) <push_target, unpush_target, target_is_pushed,
11857 find_target_beneath, top_target, process_target, target_at,
11858 m_stack>: New.
11859 (discard_all_inferiors): Delete.
11860 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11861 (all_inferiors, all_non_exited_inferiors): Add
11862 process_stratum_target parameter.
11863 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11864 (target_last_proc_target): New global.
11865 (follow_fork_inferior): Push target on new inferior. Pass target
11866 to add_thread_silent. Call exec_on_vfork. Handle target's
11867 reference count.
11868 (follow_fork): Adjust get_last_target_status call. Also consider
11869 target.
11870 (follow_exec): Push target on new inferior.
11871 (struct execution_control_state) <target>: New field.
11872 (user_visible_resume_target): New.
11873 (do_target_resume): Call target_async.
11874 (resume_1): Set target's threads_executing flag. Consider resume
11875 target.
11876 (commit_resume_all_targets): New.
11877 (proceed): Also consider resume target. Skip threads of inferiors
11878 with no execution. Commit resumtion in all targets.
11879 (start_remote): Pass current inferior to wait_for_inferior.
11880 (infrun_thread_stop_requested): Consider target as well. Pass
11881 thread_info pointer to clear_inline_frame_state instead of ptid.
11882 (infrun_thread_thread_exit): Consider target as well.
11883 (random_pending_event_thread): New inferior parameter. Use it.
11884 (do_target_wait): Rename to ...
11885 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11886 down.
11887 (threads_are_resumed_pending_p, do_target_wait): New.
11888 (prepare_for_detach): Adjust calls.
11889 (wait_for_inferior): New inferior parameter. Handle it. Use
11890 do_target_wait_1 instead of do_target_wait.
11891 (fetch_inferior_event): Adjust. Switch to representative
11892 inferior. Pass target down.
11893 (set_last_target_status): Add process_stratum_target parameter.
11894 Save target in global.
11895 (get_last_target_status): Add process_stratum_target parameter and
11896 handle it.
11897 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11898 (context_switch): Check inferior_ptid == null_ptid before calling
11899 inferior_thread().
11900 (get_inferior_stop_soon): Pass down target.
11901 (wait_one): Rename to ...
11902 (poll_one_curr_target): ... this.
11903 (struct wait_one_event): New.
11904 (wait_one): New.
11905 (stop_all_threads): Adjust.
11906 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11907 event's target.
11908 (switch_back_to_stepped_thread): Also consider target.
11909 (print_stop_event): Update.
11910 (normal_stop): Update. Also consider the resume target.
11911 * infrun.h (wait_for_inferior): Remove declaration.
11912 (user_visible_resume_target): New declaration.
11913 (get_last_target_status, set_last_target_status): New
11914 process_stratum_target parameter.
11915 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11916 process_stratum_target parameter, and use it.
11917 (clear_inline_frame_state (thread_info*)): New.
11918 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11919 process_stratum_target parameter.
11920 (clear_inline_frame_state (thread_info*)): Declare.
11921 * linux-fork.c (delete_checkpoint_command): Pass target down to
11922 find_thread_ptid.
11923 (checkpoint_command): Adjust.
11924 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11925 instead of just tweaking inferior_ptid.
11926 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11927 (exit_lwp): Pass target down to find_thread_ptid.
11928 (attach_proc_task_lwp_callback): Pass target down to
11929 add_thread/set_running/set_executing.
11930 (linux_nat_target::attach): Pass target down to
11931 thread_change_ptid.
11932 (get_detach_signal): Pass target down to find_thread_ptid.
11933 Consider last target status's target.
11934 (linux_resume_one_lwp_throw, resume_lwp)
11935 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11936 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11937 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11938 (linux_nat_target::async_wait_fd): New.
11939 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11940 target down.
11941 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11942 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11943 * linux-thread-db.c (struct thread_db_info::process_target): New
11944 field.
11945 (add_thread_db_info): Save target.
11946 (get_thread_db_info): New process_stratum_target parameter. Also
11947 match target.
11948 (delete_thread_db_info): New process_stratum_target parameter.
11949 Also match target.
11950 (thread_from_lwp): Adjust to pass down target.
11951 (thread_db_notice_clone): Pass down target.
11952 (check_thread_db_callback): Pass down target.
11953 (try_thread_db_load_1): Always push the thread_db target.
11954 (try_thread_db_load, record_thread): Pass target down.
11955 (thread_db_target::detach): Pass target down. Always unpush the
11956 thread_db target.
11957 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11958 target down. Always unpush the thread_db target.
11959 (find_new_threads_callback, thread_db_find_new_threads_2)
11960 (thread_db_target::update_thread_list): Pass target down.
11961 (thread_db_target::pid_to_str): Pass current inferior down.
11962 (thread_db_target::get_thread_local_address): Pass target down.
11963 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11964 target down.
11965 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11966 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11967 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11968 (procfs_init_inferior): Rename to ...
11969 (procfs_target::procfs_init_inferior): ... this and adjust.
11970 (procfs_target::create_inferior, procfs_notice_thread)
11971 (procfs_do_thread_registers): Adjust.
11972 * ppc-fbsd-tdep.c: Include "inferior.h".
11973 (ppcfbsd_get_thread_local_address): Pass down target.
11974 * proc-service.c (ps_xfer_memory): Switch current inferior and
11975 program space as well.
11976 (get_ps_regcache): Pass target down.
11977 * process-stratum-target.c
11978 (process_stratum_target::thread_address_space)
11979 (process_stratum_target::thread_architecture): Pass target down.
11980 * process-stratum-target.h
11981 (process_stratum_target::threads_executing): New field.
11982 (as_process_stratum_target): New.
11983 * ravenscar-thread.c
11984 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11985 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11986 down.
11987 * record-btrace.c (record_btrace_target::info_record): Adjust.
11988 (record_btrace_target::record_method)
11989 (record_btrace_target::record_is_replaying)
11990 (record_btrace_target::fetch_registers)
11991 (get_thread_current_frame_id, record_btrace_target::resume)
11992 (record_btrace_target::wait, record_btrace_target::stop): Pass
11993 target down.
11994 * record-full.c (record_full_wait_1): Switch to event thread.
11995 Pass target down.
11996 * regcache.c (regcache::regcache)
11997 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11998 process_stratum_target parameter and handle it.
11999 (current_thread_target): New global.
12000 (get_thread_regcache): Add process_stratum_target parameter and
12001 handle it. Switch inferior before calling target method.
12002 (get_thread_regcache): Pass target down.
12003 (get_thread_regcache_for_ptid): Pass target down.
12004 (registers_changed_ptid): Add process_stratum_target parameter and
12005 handle it.
12006 (registers_changed_thread, registers_changed): Pass target down.
12007 (test_get_thread_arch_aspace_regcache): New.
12008 (current_regcache_test): Define a couple local test_target_ops
12009 instances and use them for testing.
12010 (readwrite_regcache): Pass process_stratum_target parameter.
12011 (cooked_read_test, cooked_write_test): Pass mock_target down.
12012 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
12013 (get_thread_arch_aspace_regcache): Add process_stratum_target
12014 parameter.
12015 (regcache::target): New method.
12016 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
12017 (regcache::registers_changed_ptid): Add process_stratum_target
12018 parameter.
12019 (regcache::m_target): New field.
12020 (registers_changed_ptid): Add process_stratum_target parameter.
12021 * remote.c (remote_state::supports_vCont_probed): New field.
12022 (remote_target::async_wait_fd): New method.
12023 (remote_unpush_and_throw): Add remote_target parameter.
12024 (get_current_remote_target): Adjust.
12025 (remote_target::remote_add_inferior): Push target.
12026 (remote_target::remote_add_thread)
12027 (remote_target::remote_notice_new_inferior)
12028 (get_remote_thread_info): Pass target down.
12029 (remote_target::update_thread_list): Skip threads of inferiors
12030 bound to other targets. (remote_target::close): Don't discard
12031 inferiors. (remote_target::add_current_inferior_and_thread)
12032 (remote_target::process_initial_stop_replies)
12033 (remote_target::start_remote)
12034 (remote_target::remote_serial_quit_handler): Pass down target.
12035 (remote_target::remote_unpush_target): New remote_target
12036 parameter. Unpush the target from all inferiors.
12037 (remote_target::remote_unpush_and_throw): New remote_target
12038 parameter. Pass it down.
12039 (remote_target::open_1): Check whether the current inferior has
12040 execution instead of checking whether any inferior is live. Pass
12041 target down.
12042 (remote_target::remote_detach_1): Pass down target. Use
12043 remote_unpush_target.
12044 (extended_remote_target::attach): Pass down target.
12045 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
12046 (remote_target::append_resumption): Pass down target.
12047 (remote_target::append_pending_thread_resumptions)
12048 (remote_target::remote_resume_with_hc, remote_target::resume)
12049 (remote_target::commit_resume): Pass down target.
12050 (remote_target::remote_stop_ns): Check supports_vCont_probed.
12051 (remote_target::interrupt_query)
12052 (remote_target::remove_new_fork_children)
12053 (remote_target::check_pending_events_prevent_wildcard_vcont)
12054 (remote_target::remote_parse_stop_reply)
12055 (remote_target::process_stop_reply): Pass down target.
12056 (first_remote_resumed_thread): New remote_target parameter. Pass
12057 it down.
12058 (remote_target::wait_as): Pass down target.
12059 (unpush_and_perror): New remote_target parameter. Pass it down.
12060 (remote_target::readchar, remote_target::remote_serial_write)
12061 (remote_target::getpkt_or_notif_sane_1)
12062 (remote_target::kill_new_fork_children, remote_target::kill): Pass
12063 down target.
12064 (remote_target::mourn_inferior): Pass down target. Use
12065 remote_unpush_target.
12066 (remote_target::core_of_thread)
12067 (remote_target::remote_btrace_maybe_reopen): Pass down target.
12068 (remote_target::pid_to_exec_file)
12069 (remote_target::thread_handle_to_thread_info): Pass down target.
12070 (remote_target::async_wait_fd): New.
12071 * riscv-fbsd-tdep.c: Include "inferior.h".
12072 (riscv_fbsd_get_thread_local_address): Pass down target.
12073 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
12074 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
12075 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
12076 Adjust.
12077 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
12078 * solib-svr4.c (enable_break): Pass down target.
12079 * spu-multiarch.c (parse_spufs_run): Pass down target.
12080 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
12081 * target-delegates.c: Regenerate.
12082 * target.c (g_target_stack): Delete.
12083 (current_top_target): Return the current inferior's top target.
12084 (target_has_execution_1): Refer to the passed-in inferior's top
12085 target.
12086 (target_supports_terminal_ours): Check whether the initial
12087 inferior was already created.
12088 (decref_target): New.
12089 (target_stack::push): Incref/decref the target.
12090 (push_target, push_target, unpush_target): Adjust.
12091 (target_stack::unpush): Defref target.
12092 (target_is_pushed): Return bool. Adjust to refer to the current
12093 inferior's target stack.
12094 (dispose_inferior): Delete, and inline parts ...
12095 (target_preopen): ... here. Only dispose of the current inferior.
12096 (target_detach): Hold strong target reference while detaching.
12097 Pass target down.
12098 (target_thread_name): Add assertion.
12099 (target_resume): Pass down target.
12100 (target_ops::beneath, find_target_at): Adjust to refer to the
12101 current inferior's target stack.
12102 (get_dummy_target): New.
12103 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
12104 has a thread running.
12105 (initialize_targets): Rename to ...
12106 (_initialize_target): ... this.
12107 * target.h: Include "gdbsupport/refcounted-object.h".
12108 (struct target_ops): Inherit refcounted_object.
12109 (target_ops::shortname, target_ops::longname): Make const.
12110 (target_ops::async_wait_fd): New method.
12111 (decref_target): Declare.
12112 (struct target_ops_ref_policy): New.
12113 (target_ops_ref): New typedef.
12114 (get_dummy_target): Declare function.
12115 (target_is_pushed): Return bool.
12116 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
12117 (all_matching_threads_iterator::all_matching_threads_iterator):
12118 Handle filter target.
12119 * thread-iter.h (struct all_matching_threads_iterator, struct
12120 all_matching_threads_range, class all_non_exited_threads_range):
12121 Filter by target too. Remove explicit.
12122 * thread.c (threads_executing): Delete.
12123 (inferior_thread): Pass down current inferior.
12124 (clear_thread_inferior_resources): Pass down thread pointer
12125 instead of ptid_t.
12126 (add_thread_silent, add_thread_with_info, add_thread): Add
12127 process_stratum_target parameter. Use it for thread and inferior
12128 searches.
12129 (is_current_thread): New.
12130 (thread_info::deletable): Use it.
12131 (find_thread_ptid, thread_count, in_thread_list)
12132 (thread_change_ptid, set_resumed, set_running): New
12133 process_stratum_target parameter. Pass it down.
12134 (set_executing): New process_stratum_target parameter. Pass it
12135 down. Adjust reference to 'threads_executing'.
12136 (threads_are_executing): New process_stratum_target parameter.
12137 Adjust reference to 'threads_executing'.
12138 (set_stop_requested, finish_thread_state): New
12139 process_stratum_target parameter. Pass it down.
12140 (switch_to_thread): Also match inferior.
12141 (switch_to_thread): New process_stratum_target parameter. Pass it
12142 down.
12143 (update_threads_executing): Reimplement.
12144 * top.c (quit_force): Pop targets from all inferior.
12145 (gdb_init): Don't call initialize_targets.
12146 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
12147 Declare.
12148 (windows_add_thread, windows_delete_thread): Adjust.
12149 (get_windows_debug_event): Rename to ...
12150 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
12151 * tracefile-tfile.c (tfile_target_open): Pass down target.
12152 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
12153 Forward declare.
12154 (switch_to_thread): Add process_stratum_target parameter.
12155 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
12156 parameter. Use it.
12157 (mi_on_resume): Pass target down.
12158 * nat/fork-inferior.c (startup_inferior): Add
12159 process_stratum_target parameter. Pass it down.
12160 * nat/fork-inferior.h (startup_inferior): Add
12161 process_stratum_target parameter.
12162 * python/py-threadevent.c (py_get_event_thread): Pass target down.
12163
12164 2020-01-10 Pedro Alves <palves@redhat.com>
12165
12166 * remote.c (remote_target::start_remote): Don't set inferior_ptid
12167 directly. Instead find the first thread in the thread list and
12168 use switch_to_thread.
12169
12170 2020-01-10 Pedro Alves <palves@redhat.com>
12171
12172 * remote.c (remote_target::remote_add_inferior): Don't bind a
12173 process to the current inferior if the current inferior is already
12174 bound to a process.
12175
12176 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12177 Pedro Alves <palves@redhat.com>
12178
12179 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
12180 If no process is specified, return null_ptid instead of
12181 inferior_ptid.
12182 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
12183 TARGET_WAITKIND_SIGNALLED with no pid.
12184
12185 2020-01-10 Pedro Alves <palves@redhat.com>
12186
12187 * remote.c (first_remote_resumed_thread): New.
12188 (remote_target::wait_as): Use it as default event_ptid instead of
12189 inferior_ptid.
12190
12191 2020-01-10 Pedro Alves <palves@redhat.com>
12192
12193 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
12194
12195 2020-01-10 Pedro Alves <palves@redhat.com>
12196
12197 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
12198 not -1.
12199
12200 2020-01-10 Pedro Alves <palves@redhat.com>
12201
12202 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
12203 ptid to get_last_target_status.
12204 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
12205 ptid to get_last_target_status.
12206 * infcmd.c (continue_command): Don't pass a target_waitstatus to
12207 get_last_target_status.
12208 (info_program_command): Don't pass a target_waitstatus to
12209 get_last_target_status.
12210 * infrun.c (init_wait_for_inferior): Use
12211 nullify_last_target_wait_ptid.
12212 (get_last_target_status): Handle nullptr arguments.
12213 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
12214 (print_stop_event): Don't pass a ptid to get_last_target_status.
12215 (normal_stop): Don't pass a ptid to get_last_target_status.
12216 * infrun.h (get_last_target_status, set_last_target_status): Move
12217 comments here and update.
12218 (nullify_last_target_wait_ptid): Declare.
12219 * linux-fork.c (fork_load_infrun_state): Remove local extern
12220 declaration of nullify_last_target_wait_ptid.
12221 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
12222 to get_last_target_status.
12223
12224 2020-01-10 Pedro Alves <palves@redhat.com>
12225
12226 * gdbthread.h (scoped_restore_current_thread)
12227 <dont_restore, restore, m_dont_restore>: Declare.
12228 * thread.c (thread_alive): Add assertion. Return bool.
12229 (switch_to_thread_if_alive): New.
12230 (prune_threads): Switch inferior/thread.
12231 (print_thread_info_1): Switch thread before calling target methods.
12232 (scoped_restore_current_thread::restore): New, factored out from
12233 ...
12234 (scoped_restore_current_thread::~scoped_restore_current_thread):
12235 ... this.
12236 (scoped_restore_current_thread::scoped_restore_current_thread):
12237 Add assertion.
12238 (thread_apply_all_command, thread_select): Use
12239 switch_to_thread_if_alive.
12240 * infrun.c (proceed, restart_threads, handle_signal_stop)
12241 (switch_back_to_stepped_thread): Switch current thread before
12242 calling target methods.
12243
12244 2020-01-10 Pedro Alves <palves@redhat.com>
12245
12246 * inferior.c (switch_to_inferior_no_thread): New function,
12247 factored out from ...
12248 (inferior_command): ... here.
12249 * inferior.h (switch_to_inferior_no_thread): Declare.
12250 * mi/mi-main.c (run_one_inferior): Use
12251 switch_to_inferior_no_thread.
12252
12253 2020-01-10 Pedro Alves <palves@redhat.com>
12254
12255 * infcmd.c (kill_command): Remove dead code.
12256
12257 2020-01-10 Pedro Alves <palves@redhat.com>
12258
12259 * remote.c (remote_target::mourn_inferior): No longer check
12260 whether the target is running.
12261
12262 2020-01-10 Pedro Alves <palves@redhat.com>
12263
12264 * corelow.c (core_target::has_execution): Change parameter type to
12265 inferior pointer.
12266 * inferior.c (number_of_live_inferiors): Use
12267 inferior::has_execution instead of target_has_execution_1.
12268 * inferior.h (inferior::has_execution): New.
12269 * linux-thread-db.c (thread_db_target::update_thread_list): Use
12270 inferior::has_execution instead of target_has_execution_1.
12271 * process-stratum-target.c
12272 (process_stratum_target::has_execution): Change parameter type to
12273 inferior pointer. Check the inferior's PID instead of
12274 inferior_ptid.
12275 * process-stratum-target.h
12276 (process_stratum_target::has_execution): Change parameter type to
12277 inferior pointer.
12278 * record-full.c (record_full_core_target::has_execution): Change
12279 parameter type to inferior pointer.
12280 * target.c (target_has_execution_1): Change parameter type to
12281 inferior pointer.
12282 (target_has_execution_current): Adjust.
12283 * target.h (target_ops::has_execution): Change parameter type to
12284 inferior pointer.
12285 (target_has_execution_1): Change parameter type to inferior
12286 pointer. Change return type to bool.
12287 * tracefile.h (tracefile_target::has_execution): Change parameter
12288 type to inferior pointer.
12289
12290 2020-01-10 Pedro Alves <palves@redhat.com>
12291
12292 * exceptions.c (print_flush): Remove current_top_target() check.
12293
12294 2020-01-10 Pedro Alves <palves@redhat.com>
12295
12296 * remote.c (show_remote_exec_file): Show the current inferior's
12297 exec-file instead of the command variable's value.
12298
12299 2020-01-10 Pedro Alves <palves@redhat.com>
12300
12301 * record-full.c (record_full_resume_ptid): New global.
12302 (record_full_target::resume): Set it.
12303 (record_full_wait_1): Use record_full_resume_ptid instead of
12304 inferior_ptid.
12305
12306 2020-01-10 Pedro Alves <palves@redhat.com>
12307
12308 * gdbthread.h (scoped_restore_current_thread)
12309 <dont_restore, restore, m_dont_restore>: Declare.
12310 * thread.c (thread_alive): Add assertion. Return bool.
12311 (switch_to_thread_if_alive): New.
12312 (prune_threads): Switch inferior/thread.
12313 (print_thread_info_1): Switch thread before calling target methods.
12314 (scoped_restore_current_thread::restore): New, factored out from
12315 ...
12316 (scoped_restore_current_thread::~scoped_restore_current_thread):
12317 ... this.
12318 (scoped_restore_current_thread::scoped_restore_current_thread):
12319 Add assertion.
12320 (thread_apply_all_command, thread_select): Use
12321 switch_to_thread_if_alive.
12322
12323 2020-01-10 George Barrett <bob@bob131.so>
12324
12325 * stap-probe.c (stap_modify_semaphore): Don't check for null
12326 semaphores.
12327 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12328 for null semaphores.
12329
12330 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12331
12332 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12333 all source windows, and maintain horizontal scroll status while
12334 doing so.
12335
12336 2020-01-09 Tom Tromey <tom@tromey.com>
12337
12338 PR tui/18932:
12339 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12340 update_source_window, not print_source_lines.
12341
12342 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12343
12344 * tui/tui.c (tui_enable): Register tui hooks after calling
12345 tui_display_main.
12346
12347 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12348
12349 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12350
12351 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
12352
12353 * thread.c (print_thread_info_1): Fix indentation.
12354
12355 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12356
12357 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12358 unique_xmalloc_ptr outside the if to always free the demangled name.
12359
12360 2020-01-08 Tom Tromey <tromey@adacore.com>
12361
12362 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12363 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12364 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12365 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12366 Remove.
12367 (section_offsets): New typedef.
12368 * symtab.c (fixup_section, get_msymbol_address): Update.
12369 * symmisc.c (dump_msymbols): Update.
12370 * symfile.h (relative_addr_info_to_section_offsets)
12371 (symfile_map_offsets_to_segments): Update.
12372 * symfile.c (build_section_addr_info_from_objfile)
12373 (init_objfile_sect_indices): Update.
12374 (struct place_section_arg): Change type of "offsets".
12375 (place_section): Update.
12376 (relative_addr_info_to_section_offsets): Change type of
12377 "section_offsets". Remove "num_sections" parameter.
12378 (default_symfile_offsets, syms_from_objfile_1)
12379 (set_objfile_default_section_offset): Update.
12380 (reread_symbols): No need to preserve section offsets by hand.
12381 (symfile_map_offsets_to_segments): Change type of "offsets".
12382 * stap-probe.c (relocate_address): Update.
12383 * stabsread.h (process_one_symbol): Update.
12384 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12385 (solib_target_relocate_section_addresses): Update.
12386 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12387 Update.
12388 * solib-frv.c (frv_relocate_main_executable): Update.
12389 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12390 * solib-aix.c (solib_aix_get_section_offsets): Change return
12391 type.
12392 (solib_aix_solib_create_inferior_hook): Update.
12393 * remote.c (remote_target::get_offsets): Update.
12394 * psymtab.c (find_pc_sect_psymtab): Update.
12395 * psympriv.h (struct partial_symbol) <address, text_low,
12396 text_high>: Update.
12397 * objfiles.h (obj_section_offset): Update.
12398 (struct objfile) <section_offsets>: Change type.
12399 <num_sections>: Remove.
12400 (objfile_relocate): Update.
12401 * objfiles.c (entry_point_address_query): Update
12402 (relocate_one_symbol): Change type of "section_offsets".
12403 (objfile_relocate1, objfile_relocate1): Change type of
12404 "new_offsets".
12405 (objfile_rebase1): Update.
12406 * mipsread.c (mipscoff_symfile_read): Update.
12407 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12408 parameter.
12409 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12410 (parse_external, psymtab_to_symtab_1): Update.
12411 * machoread.c (macho_symfile_offsets): Update.
12412 * ia64-tdep.c (ia64_find_unwind_table): Update.
12413 * hppa-tdep.c (read_unwind_info): Update.
12414 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12415 * dwarf2read.c (create_addrmap_from_index)
12416 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12417 (process_psymtab_comp_unit_reader, add_partial_symbol)
12418 (add_partial_subprogram, process_full_comp_unit)
12419 (read_file_scope, read_func_scope, read_lexical_block_scope)
12420 (read_call_site_scope, dwarf2_rnglists_process)
12421 (dwarf2_ranges_process, dwarf2_ranges_read)
12422 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12423 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12424 Update.
12425 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12426 Update.
12427 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12428 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12429 (process_one_symbol): Change type of "section_offsets".
12430 * ctfread.c (get_objfile_text_range): Update.
12431 * coffread.c (coff_symtab_read, enter_linenos)
12432 (process_coff_symbol): Update.
12433 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12434 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12435
12436 2020-01-08 Tom Tromey <tromey@adacore.com>
12437
12438 * dwarf2read.c (parse_macro_definition): Use std::string.
12439 (parse_macro_definition): Likewise.
12440
12441 2020-01-08 Tom Tromey <tromey@adacore.com>
12442
12443 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12444 (ATTR_ALLOC_CHUNK): Remove.
12445
12446 2020-01-08 Tom Tromey <tromey@adacore.com>
12447
12448 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12449
12450 2020-01-08 Tom Tromey <tromey@adacore.com>
12451
12452 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12453 (dwarf2_compute_name, open_dwo_file): Likewise.
12454 (process_enumeration_scope): Use std::vector.
12455 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12456 (partial_die_info::fixup, dwarf2_start_subfile)
12457 (guess_full_die_structure_name, dwarf2_name): Likewise.
12458 (determine_prefix): Update.
12459 (guess_full_die_structure_name): Make return type const.
12460 (partial_die_full_name): Return unique_xmalloc_ptr.
12461 (DW_FIELD_ALLOC_CHUNK): Remove.
12462
12463 2020-01-07 Tom Tromey <tromey@adacore.com>
12464
12465 PR build/24937:
12466 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12467
12468 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12469
12470 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12471
12472 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12473
12474 * stack.c (print_frame_info): Move disassemble_next_line code
12475 inside source_print block.
12476
12477 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12478
12479 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12480 gdb/signals.h, as we are now using native signal symbols.
12481
12482 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12483
12484 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12485 overflow by an early check of content vs threshold.
12486 * tui/tui-source.c (tui_source_window::line_is_displayed):
12487 Likewise.
12488
12489 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12490
12491 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12492
12493 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12494
12495 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12496 export table if no section contains it's RVA.
12497
12498 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12499
12500 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12501
12502 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
12503
12504 * source.c (print_source_lines_base): Set last_line_listed.
12505
12506 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12507
12508 * tui/tui-disasm.c: Remove trailing spaces.
12509
12510 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12511 Pedro Alves <palves@redhat.com>
12512
12513 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12514 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12515 (windows_gdb_signal_to_target): New function, uses the above
12516 enumeration to convert GDB internal signal codes to equivalent
12517 Windows codes.
12518 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12519 * windows-nat.c: Include "gdb_wait.h".
12520 (get_windows_debug_event): Extract the fatal exception from the
12521 exit status and convert to the equivalent Posix signal number.
12522 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12523 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12524 * gdbsupport/gdb_wait.c: New file, implements
12525 windows_status_to_termsig.
12526 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12527 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12528
12529 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12530
12531 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12532 show_layout.
12533
12534 2020-01-05 Luis Machado <luis.machado@linaro.org>
12535
12536 * aarch64-linux-nat.c
12537 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12538 and bfd_mach_aarch64.
12539
12540 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12541
12542 * ui-file.c (stdio_file::can_emit_style_escape)
12543 (tee_file::can_emit_style_escape): Ensure style is used also on
12544 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12545 to gdb_stdout.
12546 * main.c (set_gdb_data_directory): Use file style to output the
12547 warning that the given pathname is not a directory.
12548 * top.c (show_history_filename, gdb_safe_append_history)
12549 (show_gdb_datadir): Use file style.
12550
12551 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12552
12553 * solib-target.c (struct lm_info_target):
12554 Change offsets to be a unique_xmalloc_ptr.
12555 (solib_target_relocate_section_addresses): Update.
12556
12557 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12558
12559 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12560
12561 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12562
12563 * MAINTAINERS (Write After Approval): Add myself.
12564
12565 2020-01-02 Luis Machado <luis.machado@linaro.org>
12566
12567 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12568 Cell BE architecture.
12569 * target.h (struct target_ops) <thread_architecture>: Likewise.
12570
12571 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12572
12573 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12574
12575 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12576
12577 * MAINTAINERS (Write After Approval): Add myself.
12578
12579 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12580
12581 * gdbarch.sh: Update copyright year range of generated files.
12582
12583 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12584
12585 Update copyright year range in all GDB files.
12586
12587 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12588
12589 * copyright.py: Convert to Python 3.
12590
12591 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12592
12593 * copyright.py: Adapt after move of gnulib directory from gdb
12594 directory to toplevel directory.
12595
12596 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12597
12598 * copyright.py (main): Exit if run from the wrong directory.
12599
12600 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12601
12602 * top.c (print_gdb_version): Change copyright year to 2020.
12603
12604 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12605
12606 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
12607
12608 For older changes see ChangeLog-2019.
12609 \f
12610 Local Variables:
12611 mode: change-log
12612 left-margin: 8
12613 fill-column: 74
12614 version-control: never
12615 coding: utf-8
12616 End: