gdb: remove TYPE_STUB
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2
3 * gdbtypes.h (TYPE_STUB): Remove, replace all
4 uses with type::is_stub.
5
6 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
7
8 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
9 (TYPE_STUB): Use type::is_stub, change all write call sites to
10 use type::set_is_stub.
11
12 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
13
14 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
15 type::has_no_signedness.
16
17 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
18
19 * gdbtypes.h (struct type) <has_no_signedness,
20 set_has_no_signedness>: New methods.
21 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
22 call sites to use type::set_has_no_signedness.
23
24 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
25
26 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
27 type::is_unsigned.
28
29 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
30
31 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
32 methods.
33 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
34 sites to use type::set_is_unsigned.
35
36 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
37 Adam Renquinha <arenquinha@cimeq.qc.ca>
38
39 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
40 pointer and stack frame offset when unwinding.
41
42 2020-09-13 Pedro Alves <pedro@palves.net>
43
44 * NEWS: Document "-break-insert --qualified".
45 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
46
47 2020-09-13 Pedro Alves <pedro@palves.net>
48
49 * linespec.c (classify_mtype, compare_msyms): Delete.
50 (search_minsyms_for_name): Remove classification logic. Instead
51 filter out trampoline symbols if we also found an external
52 function of the same name.
53
54 2020-09-13 Joel Brobecker <brobecker@adacore.com>
55
56 * NEWS: Create a new section for the next release branch.
57 Rename the section of the current branch, now that it has
58 been cut.
59
60 2020-09-13 Joel Brobecker <brobecker@adacore.com>
61
62 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
63 * version.in: Bump version to 11.0.50.DATE-git.
64
65 2020-09-12 Joel Brobecker <brobecker@adacore.com>
66
67 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
68
69 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
70 Felix Willgerodt <Felix.Willgerodt@intel.com>
71
72 * gdbarch.sh: Added bfloat16 type.
73 * gdbarch.c: Regenerated.
74 * gdbarch.h: Regenerated.
75 * gdbtypes.c (floatformats_bfloat16): New struct.
76 (gdbtypes_post_init): Add builtin_bfloat16.
77 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
78 (floatformats_bfloat16): New struct.
79 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
80 (i386_ymm_type): Add field "v16_bfloat16"
81 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
82 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
83 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
84 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
85 * features/i386/64bit-avx512.xml: Add bfloat16 type.
86 * features/i386/64bit-avx512.c: Regenerated.
87 * features/i386/64bit-sse.xml: Add bfloat16 type.
88 * features/i386/64bit-sse.c: Regenerated.
89
90 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
91
92 * i386-tdep.c (i386_zmm_type): Fix field names.
93 (i386_ymm_type): Fix field names.
94
95 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
96
97 * breakpoint.c: Fix typo in the help message of the
98 "set breakpoint condition-evaluation" command.
99
100 2020-09-10 Kamil Rytarowski <n54@gmx.com>
101
102 * nbsd-nat.c: Include "nat/netbsd-nat.h".
103 * (nbsd_nat_target::pid_to_exec_file)
104 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
105 (nbsd_nat_target::post_startup_inferior)
106 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
107 (nbsd_add_threads): Switch local code to common gdb/nat functions.
108 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
109 * (nbsd_thread_lister): Remove.
110
111 2020-09-10 Kamil Rytarowski <n54@gmx.com>
112
113 * fork-inferior.c (startup_inferior): Avoid double free.
114
115 2020-09-10 Kamil Rytarowski <n54@gmx.com>
116
117 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
118 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
119
120 2020-09-10 Kamil Rytarowski <n54@gmx.com>
121
122 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
123 * netbsd-nat.c: Include <sys/ptrace.h>.
124 * (netbsd_nat::enable_proc_events): Add.
125
126 2020-09-10 Kamil Rytarowski <n54@gmx.com>
127
128 * netbsd-nat.h: Include "gdbsupport/function-view.h".
129 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
130 (netbsd_nat::for_each_thread): Add.
131 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
132 "gdbsupport/common-debug.h".
133 * (netbsd_nat::netbsd_thread_lister)
134 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
135 (netbsd_nat::for_each_thread): Add.
136
137 2020-09-10 Kamil Rytarowski <n54@gmx.com>
138
139 * netbsd-nat.h: Include <unistd.h>.
140 * (netbsd_nat::pid_to_exec_file): Add.
141 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
142 * (netbsd_nat::pid_to_exec_file) Add.
143
144 2020-09-10 Kamil Rytarowski <n54@gmx.com>
145
146 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
147
148 2020-09-10 Kamil Rytarowski <n54@gmx.com>
149
150 * netbsd-nat.h: New file.
151 * netbsd-nat.c: Likewise.
152
153 2020-09-09 Tom Tromey <tromey@adacore.com>
154
155 * ada-lang.c (remove_extra_symbols): Do not increment when
156 removing an element
157
158 2020-09-08 Tom Tromey <tromey@adacore.com>
159
160 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
161
162 2020-09-08 Tom Tromey <tromey@adacore.com>
163
164 PR win32/25302:
165 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
166 (gdb_bfd_init_data): New function.
167 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
168
169 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
170
171 * infrun.c (fetch_inferior_event): Use
172 `switch_to_target_no_thread` to switch the target.
173
174 2020-09-06 Tom Tromey <tom@tromey.com>
175
176 * symfile.h (dwarf2_free_objfile): Don't declare.
177
178 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
179
180 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
181 to match 16 byte real/complex type generated by Flang compiler.
182
183 2020-09-03 Tom de Vries <tdevries@suse.de>
184
185 PR breakpoint/26546
186 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
187 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
188
189 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
190
191 * maint.c (index_digits): New function.
192 (struct maint_print_section_data): Remove.
193 (print_bfd_section_info): Remove print_data parameter, add arg
194 and index_digits.
195 (print_objfile_section_info): Likewise.
196 (print_bfd_section_info_maybe_relocated): Likewise (plus
197 objfile).
198 (maintenance_info_sections): Adjust calls.
199
200 2020-09-02 Tom Tromey <tromey@adacore.com>
201
202 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
203 for null pointers.
204 (ada_varobj_adjust_for_child_access): Special-case null pointers.
205
206 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
207
208 * bcache.h (struct bcache) <insert>: Change type of `added` to
209 pointer to bool.
210 * bcache.c (bcache::insert): Likewise.
211 * gdbtypes.c (check_types_worklist): Adjust.
212 * psymtab.c (add_psymbol_to_bcache): Adjust.
213
214 2020-08-31 Kevin Buettner <kevinb@redhat.com>
215
216 * corelow.c (unordered_set): Include.
217 (class core_target): Add field 'm_core_unavailable_mappings'.
218 (core_target::build_file_mappings): Print only one warning
219 per inaccessible file. Add unavailable/broken mappings
220 to m_core_unavailable_mappings.
221 (core_target::xfer_partial): Call...
222 (core_target::xfer_memory_via_mappings): New method.
223
224 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
225
226 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
227 type to bool.
228
229 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
230
231 * dwarf2/read.c (struct field_info): Fix indentation.
232
233 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
234
235 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
236 ordering in comment.
237 * frame.c (frame_id_eq): Fix indentation.
238
239 2020-08-31 Scott Linder <scott@scottlinder.com>
240 Simon Marchi <simon.marchi@efficios.com>
241
242 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
243 inline frame ids in outer frame.
244
245 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
246
247 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
248 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
249 (outer_frame_id): Use FID_STACK_OUTER instead of
250 FID_STACK_INVALID.
251 (frame_id_p): Don't check for outer_frame_id.
252
253 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
254
255 * frame-unwind.c (frame_unwind_got_optimized): Don't set
256 regnum/frame in value. Call allocate_value_lazy.
257 * frame.c (frame_unwind_register_value): Use
258 val_print_not_saved.
259
260 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
261
262 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
263
264 2020-08-29 Pedro Alves <pedro@palves.net>
265
266 * progspace.c (print_program_space): Use all_inferiors. Switch to
267 the inferior before calling target_pid_to_str.
268
269 2020-08-28 Tom Tromey <tom@tromey.com>
270
271 * xcoffread.c (xcoff_end_psymtab): Update comment.
272 * dbxread.c (dbx_end_psymtab): Update comment.
273
274 2020-08-28 Tom de Vries <tdevries@suse.de>
275
276 PR breakpoint/26544
277 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
278 event_location.
279 (create_breakpoint): Same.
280 (base_breakpoint_decode_location): Same.
281 (bkpt_create_sals_from_location): Same.
282 (bkpt_decode_location): Same.
283 (bkpt_probe_create_sals_from_location): Same.
284 (bkpt_probe_decode_location): Same.
285 (tracepoint_create_sals_from_location): Same.
286 (tracepoint_decode_location): Same.
287 (tracepoint_probe_decode_location): Same.
288 (strace_marker_create_sals_from_location): Same.
289 (strace_marker_decode_location): Same.
290 (create_sals_from_location_default): Same.
291 (decode_location_default): Same.
292 * breakpoint.h (struct breakpoint_ops): Same.
293 (create_breakpoint): Same.
294 * linespec.h (decode_line_full): Same.
295 * linespec.c (decode_line_full): Same. Throw error if
296 result.size () == 0.
297
298 2020-08-27 Pedro Alves <pedro@palves.net>
299
300 PR gdb/26524
301 * breakpoint.c (until_break_fsm) <location_breakpoint,
302 caller_breakpoint>: Delete fields.
303 <breakpoints>: New field.
304 <until_break_fsm>: Adjust to save a breakpoint vector instead of
305 two individual breakpoints.
306 (until_break_fsm::should_stop): Loop over breakpoints in the
307 breakpoint vector.
308 (until_break_fsm::clean_up): Adjust to clear the breakpoints
309 vector.
310 (until_break_command): Handle location expanding into multiple
311 sals.
312
313 2020-08-27 Pedro Alves <pedro@palves.net>
314
315 PR gdb/26523
316 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
317 bp_until breakpoints user-specified locations. Update intro
318 comment.
319
320 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
321
322 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
323 gdb_bfd_sections): New.
324 * maint.c (print_bfd_section_info): Change param type to
325 maint_print_section_data.
326 (print_objfile_section_info): Likewise.
327 (print_bfd_section_info_maybe_relocated): Likewise.
328 (maintenance_info_sections): Use gdb_bfd_sections.
329
330 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
331
332 * MAINTAINERS: Add ARC target and maintainer.
333
334 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
335
336 * configure.tgt: ARC support for GNU/Linux.
337 * Makefile.in (ALL_TARGET_OBJS): Likewise.
338 * arc-linux-tdep.c: New file.
339 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
340 * arc-tdep.c (arc_write_pc): Use it.
341
342 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
343
344 * arc-tdep.c (arc_check_for_hardware_loop): New.
345 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
346
347 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
348
349 * arc-tdep.h: Include "gdbarch.h".
350
351 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
352
353 * arch/arc.h
354 (arc_gdbarch_features): New class to stir the selection of target XML.
355 (arc_create_target_description): Use FEATURES to choose XML target.
356 (arc_lookup_target_description): Use arc_create_target_description
357 to create _new_ target descriptions or return the already created
358 ones if the FEATURES is the same.
359 * arch/arc.c: Implementation of prototypes described above.
360 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
361 (arc_gdbarch_features_init): Initialize the FEATURES struct.
362 * arc-tdep.c (*_feature_name): Make feature names consistent.
363 (arc_register_feature): A new struct to hold information about
364 registers of a particular target/feature.
365 (arc_check_tdesc_feature): Check if XML provides registers in
366 compliance with ARC_REGISTER_FEATURE structs.
367 (arc_update_acc_reg_names): Add aliases for r58 and r59.
368 (determine_*_reg_feature_set): Which feature name to look for.
369 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
370 (mach_type_to_arc_isa): Convert from a set of binutils machine types
371 to expected ISA enums to be used in arc_gdbarch_features structs.
372 * features/Makefile (FEATURE_XMLFILES): Add new files.
373 * gdb/features/arc/v1-aux.c: New file.
374 * gdb/features/arc/v1-aux.xml: Likewise.
375 * gdb/features/arc/v1-core.c: Likewise.
376 * gdb/features/arc/v1-core.xml: Likewise.
377 * gdb/features/arc/v2-aux.c: Likewise.
378 * gdb/features/arc/v2-aux.xml: Likewise.
379 * gdb/features/arc/v2-core.c: Likewise.
380 * gdb/features/arc/v2-core.xml: Likewise.
381 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
382
383 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
384 Andrew Burgess <andrew.burgess@embecosm.com>
385
386 PR m2/26372
387 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
388 an assert. Remove single element array indexing pattern as the
389 MULTI_SUBSCRIPT support will handle this case too.
390
391 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
392
393 * value.h (valprint_check_validity): Move declaration from
394 here...
395 * valprint.h (valprint_check_validity): ... to here.
396
397 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
398
399 * debug.h: New file.
400 * debug.c (debug_prefixed_vprintf): New function.
401 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
402 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
403
404 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
405
406 * infrun.h (infrun_debug_printf_1): New function declaration.
407 (infrun_debug_printf): New macro.
408 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
409 throughout.
410 (infrun_debug_printf): New function.
411 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
412 (handle_jit_event): Likewise.
413
414 2020-08-21 Mark Wielaard <mark@klomp.org>
415
416 * ada-lex.l: Extend register warnings diagnostics comment for g++.
417
418 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
419
420 * frame.c (enum class frame_id_status): New.
421 (struct frame_info) <this_id::p>: Change type to frame_id_status.
422 (fprintf_frame): Update.
423 (compute_frame_id): Set frame id status to "computing" on entry.
424 Set it back to "not_computed" on failure and to "computed" on
425 success.
426 (get_frame_id): Assert the frame id is not being computed.
427 (create_sentinel_frame): Use frame_id_status::COMPUTED.
428 (create_new_frame): Likewise.
429 (frame_cleanup_after_sniffer): Update assert.
430
431 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
432
433 * regcache.c (pid_ptid_regcache_map): New type.
434 (target_ptid_regcache_map): Remove.
435 (target_pid_ptid_regcache_map): New type.
436 (regcaches): Change type to target_pid_ptid_regcache_map.
437 (get_thread_arch_aspace_regcache): Update.
438 (regcache_thread_ptid_changed): Update, handle pid-like ptid
439 case.
440 (regcaches_size): Update.
441 (regcache_count): Update.
442 (registers_changed_ptid_target_pid_test): New.
443 (_initialize_regcache): Register new test.
444
445 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
446
447 * regcache.c (regcache_count): New.
448 (struct regcache_test_data): New.
449 (regcache_test_data_up): New.
450 (populate_regcaches_for_test): New.
451 (regcaches_test): Remove.
452 (get_thread_arch_aspace_regcache_test): New.
453 (registers_changed_ptid_all_test): New.
454 (registers_changed_ptid_target_test): New.
455 (registers_changed_ptid_target_ptid_test): New.
456 (regcache_thread_ptid_changed): Remove regcache_count lambda.
457 (_initialize_regcache): Register new tests.
458
459 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
460
461 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
462 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
463 gdbarch and aspace parameter. Use current inferior's aspace.
464 Validate regcache's arch value.
465 (regcaches_test): Update.
466
467 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
468
469 * regcache.c (regcaches_test): Call registers_changed.
470
471 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
472
473 * infrun.c (process_event_stop_test): Fix typo "breapoint".
474
475 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
476
477 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
478 to find the end of prologue for flang compiled binaries.
479 * arm-tdep.c (arm_skip_prologue): Likewise.
480 * i386-tdep.c (i386_skip_prologue): Likewise.
481 * producer.c (producer_is_llvm): New function.
482 (producer_parsing_tests): Added new tests for clang/flang.
483 * producer.h (producer_is_llvm): New declaration.
484
485 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
486
487 * linux-nat.c (linux_nat_debug_printf): New function.
488 (linux_nat_debug_printf_1): New macro. Use throughout the file.
489
490 2020-08-18 Aaron Merey <amerey@redhat.com>
491
492 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
493 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
494 (CLIBS): Add DEBUGINFOD_LIBS.
495
496 2020-08-17 Sergei Trofimovich <siarheit@google.com>
497
498 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
499 'gdbarch_num_regs'.
500
501 2020-08-17 Tom Tromey <tromey@adacore.com>
502
503 * ada-varobj.c (ada_varobj_decode_var): Handle case where
504 ada_get_decoded_value returns NULL.
505
506 2020-08-17 Tom Tromey <tromey@adacore.com>
507
508 * python/py-inferior.c (infpy_search_memory): Use
509 gdb_py_object_from_ulongest.
510 * python/py-infevents.c (create_inferior_call_event_object)
511 (create_memory_changed_event_object): Use
512 gdb_py_object_from_ulongest.
513 * python/py-linetable.c (ltpy_entry_get_pc): Use
514 gdb_py_object_from_ulongest.
515
516 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
517
518 * loc.c (class symbol_needs_eval_context): Fix indentation.
519
520 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
521
522 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
523 bool.
524
525 2020-08-17 Tom de Vries <tdevries@suse.de>
526
527 PR gdb/26393
528 * gdbtypes.c (dump_dynamic_prop): New function.
529 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
530
531 2020-08-15 Tom de Vries <tdevries@suse.de>
532
533 PR backtrace/26390
534 * stack.c (print_frame_args): Temporarily set the selected
535 frame to FRAME while printing the frame's arguments.
536
537 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
538
539 PR breakpoints/26385
540 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
541 Always clear watchpoint with PTRACE_SET_DEBUGREG.
542
543 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
544
545 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
546 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
547 and >= to check return value instead of == -1 and != -1.
548
549 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
550
551 * utils.h (class gdb_argv) <as_array_view>: New method.
552 * utils.c (gdb_argv_as_array_view_test): New.
553 (_initialize_utils): Register selftest.
554 * maint.c (maintenance_selftest): Use the new method.
555
556 2020-08-13 Kamil Rytarowski <n54@gmx.com>
557
558 * target.h (supports_dumpcore, dumpcore): New
559 function declarations.
560 * target.c (supports_dumpcore, dumpcore): New
561 functions.
562 * target-delegates.c: Rebuild.
563 * gcore.c (gcore_command): Use target_supports_dumpcore ()
564 and target_dumpcore ().
565
566 2020-08-13 Aaron Merey <amerey@redhat.com>
567
568 * debuginfod-support.c: Replace global variables with user_data.
569
570 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
571
572 * maint.c (maintenance_selftest): Split args and pass array_view
573 to run_tests.
574
575 2020-08-12 Luis Machado <luis.machado@linaro.org>
576
577 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
578 type's length.
579 Use %s and pulongest to print the length.
580
581 2020-08-12 Pedro Alves <palves@redhat.com>
582
583 * NEWS: Move "Multi-target debugging support" item to the
584 "Changes since GDB 9" section.
585
586 2020-08-12 Pedro Alves <palves@redhat.com>
587
588 PR gdb/26336
589 * progspace.c (program_space::remove_objfile): Invalidate the
590 frame cache.
591
592 2020-08-11 Tom de Vries <tdevries@suse.de>
593
594 * MAINTAINERS: Mark ms1 as deleted.
595
596 2020-08-10 Luis Machado <luis.machado@linaro.org>
597
598 PR gdb/26310
599
600 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
601 act accordingly.
602 (aarch64_analyze_prologue_test): Add more unit tests to exercise
603 movz/str/stur/stp skipping behavior.
604
605 2020-08-10 Luis Machado <luis.machado@linaro.org>
606
607 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
608 struct user_sve_header instead of struct sve_context.
609
610 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
611
612 * read.h (dwarf2_fetch_die_loc_sect_off,
613 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
614 `void *` parameter with function_view.
615 * read.c (dwarf2_fetch_die_loc_sect_off,
616 dwarf2_fetch_die_loc_cu_off): Likewise.
617 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
618 (per_cu_dwarf_call): Adjust.
619 (get_frame_address_in_block_wrapper): Remove.
620 (indirect_synthetic_pointer): Adjust.
621 (get_ax_pc): Remove.
622 (dwarf2_compile_expr_to_ax): Adjust.
623
624 2020-08-08 Tom de Vries <tdevries@suse.de>
625
626 PR build/26344
627 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
628 constructor.
629 * regcache.c (get_thread_arch_aspace_regcache): Same.
630
631 2020-08-07 Tom Tromey <tromey@adacore.com>
632
633 * ravenscar-thread.c
634 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
635 New method.
636 (ravenscar_thread_target::wait): Check
637 runtime_initialized.
638 (ravenscar_thread_target::prepare_to_store)
639 (ravenscar_thread_target::stopped_by_sw_breakpoint)
640 (ravenscar_thread_target::stopped_by_hw_breakpoint)
641 (ravenscar_thread_target::stopped_by_watchpoint)
642 (ravenscar_thread_target::stopped_data_address)
643 (ravenscar_thread_target::core_of_thread): Use
644 scoped_restore_current_thread and
645 set_base_thread_from_ravenscar_task.
646
647 2020-08-07 Tom Tromey <tromey@adacore.com>
648
649 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
650
651 2020-08-07 Tom Tromey <tromey@adacore.com>
652
653 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
654 update_inferior_ptid before update_thread_list.
655 (temporarily_change_regcache_ptid): New class.
656 (ravenscar_thread_target::fetch_registers)
657 (ravenscar_thread_target::store_registers)
658 (ravenscar_thread_target::prepare_to_store): Use base thread when
659 forwarding operation.
660
661 2020-08-07 Tom Tromey <tromey@adacore.com>
662
663 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
664 "is_pid" case.
665
666 2020-08-07 Tom Tromey <tromey@adacore.com>
667
668 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
669 New methods.
670 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
671 first.
672 (ravenscar_thread_target::add_thread): Rename from
673 ravenscar_add_thread.
674 (ravenscar_thread_target::update_thread_list): Use a lambda.
675 (ravenscar_thread_target::xfer_partial): New method.
676
677 2020-08-07 Tom Tromey <tromey@adacore.com>
678
679 * ada-lang.h (ada_task_list_iterator_ftype): Now a
680 gdb::function_view.
681 (iterate_over_live_ada_tasks): Change type of argument.
682 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
683 of argument.
684
685 2020-08-07 Tom Tromey <tromey@adacore.com>
686
687 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
688 Remove.
689 (ravenscar_thread_target::extra_thread_info): Remove.
690 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
691 defer to target beneath for non-Ravenscar threads.
692
693 2020-08-07 Tom Tromey <tromey@adacore.com>
694
695 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
696 get_base_thread_from_ravenscar_task>: Now methods.
697 <m_cpu_map>: New member.
698 (ravenscar_thread_target::get_thread_base_cpu): Rename from
699 ravenscar_get_thread_base_cpu. Check m_cpu_map.
700 (ravenscar_thread_target::task_is_currently_active): Update.
701 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
702 Now a method.
703 (ravenscar_thread_target::add_active_thread): Put initial thread
704 into the m_cpu_map.
705
706 2020-08-07 Tom Tromey <tromey@adacore.com>
707
708 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
709 event_ptid.
710
711 2020-08-07 Tom Tromey <tromey@adacore.com>
712
713 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
714 runtime_initialized.
715
716 2020-08-07 Tom Tromey <tromey@adacore.com>
717
718 * ravenscar-thread.c (ravenscar_thread_target): Don't call
719 add_active_thread.
720 (ravenscar_thread_target::add_active_thread): Now public.
721 (ravenscar_inferior_created): Call add_active_thread after pushing
722 the target.
723
724 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
725
726 * regcache.c (ptid_regcache_map): New type.
727 (target_ptid_regcache_map): New type.
728 (regcaches): Change type to target_ptid_regcache_map.
729 (get_thread_arch_aspace_regcache): Update to regcaches' new
730 type.
731 (regcache_thread_ptid_changed): Likewise.
732 (registers_changed_ptid): Likewise.
733 (regcaches_size): Likewise.
734 (regcaches_test): Update.
735 (regcache_thread_ptid_changed): Update.
736 * regcache.h (regcache_up): New type.
737 * gdbsupport/ptid.h (hash_ptid): New struct.
738
739 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
740
741 * observable.h (thread_ptid_changed): Add parameter
742 `process_stratum_target *`.
743 * infrun.c (infrun_thread_ptid_changed): Add parameter
744 `process_stratum_target *` and use it.
745 (selftests): New namespace.
746 (infrun_thread_ptid_changed): New function.
747 (_initialize_infrun): Register selftest.
748 * regcache.c (regcache_thread_ptid_changed): Add parameter
749 `process_stratum_target *` and use it.
750 (regcache_thread_ptid_changed): New function.
751 (_initialize_regcache): Register selftest.
752 * thread.c (thread_change_ptid): Pass target to
753 thread_ptid_changed observable.
754
755 2020-08-06 Caroline Tice <cmtice@google.com>
756
757 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
758 (struct dwp_sections): Update field comments. Add loclists and
759 rnglists fields.
760 (struct virtual_v2_dwo_sections): Rename struct to
761 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
762 size & offset fields for loclists and rnglists.
763 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
764 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
765 skipping dummy type units.
766 (create_dwp_hash_table): Update the large comment above the function to
767 discuss Version 5 DWP files as well, with references. Update all the
768 version checks in the function to check for version 5 as well. Add new
769 section at the end to create dwp hash table for version 5.
770 (create_dwp_v2_section): Rename function to
771 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
772 Add V5 to error message text.
773 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
774 into calls to create_dwp_v2_or_v5_section.
775 (create_dwo_unit_in_dwp_v5): New function.
776 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
777 check for version2; add else clause to handle version 5.
778 (open_and_init_dwo_file): Add code to check dwarf version & only call
779 create_debug_types_hash_table (with sections.types) if version is not 5;
780 else call create_debug_type_hash_table, with sections.info.
781 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
782 version 5.
783 (dwarf2_locate_v5_dwp_sections): New function.
784 (open_and_init_dwp_file): Add else-if clause for version 5 to call
785 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
786
787 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
788
789 * regcache.h (class regcache): Remove friend
790 registers_changed_ptid.
791 <regcache_thread_ptid_changed>: Remove.
792 <regcaches>: Remove.
793 * regcache.c (regcache::regcaches): Rename to...
794 (regcaches): ... this. Make static.
795 (get_thread_arch_aspace_regcache): Update.
796 (regcache::regcache_thread_ptid_changed): Rename to...
797 (regcache_thread_ptid_changed): ... this. Update.
798 (class regcache_access): Remove.
799 (regcaches_test): Update.
800 (_initialize_regcache): Update.
801 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
802 <forward_list>.
803
804 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
805
806 * regcache.h (class regcache) <current_regcache>: Rename to...
807 <regcaches>: ... this. Move doc here.
808 * regcache.c (regcache::current_regcache) Rename to...
809 (regcache::regcaches): ... this. Move doc to header.
810 (get_thread_arch_aspace_regcache): Update.
811 (regcache::regcache_thread_ptid_changed): Update.
812 (registers_changed_ptid): Update.
813 (class regcache_access) <current_regcache_size>: Rename to...
814 <regcaches_size>: ... this.
815 (current_regcache_test): Rename to...
816 (regcaches_test): ... this.
817 (_initialize_regcache): Update.
818
819 2020-08-06 Victor Collod <vcollod@nvidia.com>
820
821 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
822
823 2020-08-05 Kevin Buettner <kevinb@redhat.com>
824
825 * corelow.c (core_target::build_file_mappings): Don't output
826 null pathname in warning.
827
828 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
829
830 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
831 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
832 gdb.dwarf2/dw2-single-line-discriminators.exp,
833 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
834
835 2020-08-05 Tom Tromey <tromey@adacore.com>
836
837 PR rust/26197:
838 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
839 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
840 Fix off-by-one and type size errors in ordinary case.
841
842 2020-08-05 Tom de Vries <tdevries@suse.de>
843
844 * gdbtypes.c (type_not_allocated, type_not_associated): Use
845 "prop->const_val () == 0" instead of "prop->const_val () != 0".
846
847 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
848
849 * frame.h (frame_id_p): Return bool.
850 (frame_id_artificial_p): Return bool.
851 (frame_id_eq): Return bool.
852 (has_stack_frames): Return bool.
853 (get_selected_frame): Fix typo in comment.
854 (get_frame_pc_if_available): Return bool.
855 (get_frame_address_in_block_if_available): Return bool.
856 (get_frame_func_if_available): Return bool.
857 (read_frame_register_unsigned): Return bool.
858 (get_frame_register_bytes): Return bool.
859 (safe_frame_unwind_memory): Return bool.
860 (deprecated_frame_register_read): Return bool.
861 (frame_unwinder_is): Return bool.
862 * frame.c (struct frame_info) <prev_arch::p>: Change type to
863 bool.
864 <this_id::p>: Likewise.
865 <prev_p>: Likewise.
866 (frame_stash_add): Return bool.
867 (get_frame_id): Use bool.
868 (frame_id_build_special) Use bool.
869 (frame_id_build_unavailable_stack): Use bool.
870 (frame_id_build): Use bool.
871 (frame_id_p): Return bool, use true/false instead of 1/0.
872 (frame_id_artificial_p): Likewise.
873 (frame_id_eq): Likewise.
874 (frame_id_inner): Likewise.
875 (get_frame_func_if_available): Likewise.
876 (read_frame_register_unsigned): Likewise.
877 (deprecated_frame_register_read): Likewise.
878 (get_frame_register_bytes): Likewise.
879 (has_stack_frames): Likewise.
880 (inside_main_func): Likewise.
881 (inside_entry_func): Likewise.
882 (get_frame_pc_if_available): Likewise.
883 (get_frame_address_in_block_if_available): Likewise.
884 (frame_unwinder_is): Likewise.
885 (safe_frame_unwind_memory): Likewise.
886 (frame_unwind_arch): Likewise.
887
888 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
889
890 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
891 type to cached_copy_status.
892 (fprintf_frame): Adjust.
893 (get_frame_func_if_available): Adjust.
894 (frame_cleanup_after_sniffer): Adjust.
895
896 2020-08-04 Mark Wielaard <mark@klomp.org>
897
898 * MAINTAINERS (Write After Approval): Update email address.
899
900 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
901
902 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
903 dynamic_prop::const_val.
904
905 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
906
907 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
908 dynamic_prop::kind.
909
910 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
911
912 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
913
914 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
915
916 * configure.tgt: Set gdb_sim for bpf-*-* targets.
917
918 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
919 Jose E. Marchesi <jose.marchesi@oracle.com>
920
921 * configure.tgt: Add entry for bpf-*-*.
922 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
923 (ALLDEPFILES): Add bpf-tdep.c.
924 * bpf-tdep.c: New file.
925 * MAINTAINERS: Add bpf target and maintainer.
926 * NEWS: Mention the support for the new target.
927
928 2020-08-04 Tom de Vries <tdevries@suse.de>
929
930 PR symtab/23270
931 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
932 Error.
933
934 2020-08-03 John Baldwin <jhb@FreeBSD.org>
935
936 * syscalls/freebsd.xml: Regenerate.
937
938 2020-08-03 John Baldwin <jhb@FreeBSD.org>
939
940 * syscalls/update-freebsd.sh: Fix usage and year range.
941
942 2020-08-03 Tom de Vries <tdevries@suse.de>
943
944 PR symtab/26333
945 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
946 DW_LNE_lo_user/DW_LNE_hi_user range.
947
948 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
949
950 PR ada/26318
951 * ada-lang.c (ada_modulus): Return 0 if property is not of const
952 kind.
953
954 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
955
956 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
957
958 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
959
960 * breakpoint.c (set_breakpoint_condition): Update the condition
961 expressions after checking that the input condition string parses
962 successfully and does not contain junk at the end.
963
964 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
965
966 * breakpoint.c (set_breakpoint_condition): Update the
967 condition string after parsing the new condition successfully.
968
969 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
970
971 * proc-api.c (_STRUCTURED_PROC): Don't define.
972 * proc-events.c: Likewise.
973 * proc-flags.c: Likewise.
974 * proc-why.c: Likewise.
975 * procfs.c: Likewise.
976
977 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
978 * configure, config.in: Regenerate.
979
980 2020-07-30 Tom de Vries <tdevries@suse.de>
981
982 PR build/26320
983 * ui-style.h (struct ui_file_style::color): Wrap m_value and
984 m_red/m_green/m_blue in a union.
985
986 2020-07-29 Tom de Vries <tdevries@suse.de>
987
988 PR tdep/26280
989 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
990
991 2020-07-28 Tom Tromey <tromey@adacore.com>
992
993 PR symtab/26270:
994 * symtab.h (find_pc_partial_function_sym): Declare.
995 * cli/cli-cmds.c (disassemble_command): Use
996 find_pc_partial_function_sym. Check asm_demangle.
997 * blockframe.c (cache_pc_function_sym): New global.
998 (cache_pc_function_name): Remove.
999 (clear_pc_function_cache): Update.
1000 (find_pc_partial_function_sym): New function, from
1001 find_pc_partial_function.
1002 (find_pc_partial_function): Rewrite using
1003 find_pc_partial_function_sym.
1004
1005 2020-07-28 Tom Tromey <tromey@adacore.com>
1006
1007 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
1008 help. Add usage.
1009
1010 2020-07-28 Tom Tromey <tromey@adacore.com>
1011
1012 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
1013 <DW_OP_GNU_variable_value>: Cast to address type.
1014
1015 2020-07-28 Kamil Rytarowski <n54@gmx.com>
1016
1017 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
1018 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
1019 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
1020 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
1021 (nbsd_get_siginfo_type): New.
1022 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
1023 (_initialize_nbsd_tdep): New.
1024
1025 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1026
1027 PR binutils/26301
1028 * configure: Regenerated.
1029
1030 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1031
1032 PR binutils/26301
1033 * configure: Regenerated.
1034
1035 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1036
1037 * python/py-frame.c: Remove 'user-regs.h' include.
1038 (frapy_read_register): Rewrite to make use of
1039 gdbpy_parse_register_id.
1040 * python/py-registers.c (gdbpy_parse_register_id): New function,
1041 moved here from python/py-unwind.c. Updated the return type, and
1042 also accepts register descriptor objects.
1043 * python/py-unwind.c: Remove 'user-regs.h' include.
1044 (pyuw_parse_register_id): Moved to python/py-registers.c.
1045 (unwind_infopy_add_saved_register): Update to use
1046 gdbpy_parse_register_id.
1047 (pending_framepy_read_register): Likewise.
1048 * python/python-internal.h (gdbpy_parse_register_id): Declare.
1049
1050 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1051
1052 * python/py-registers.c: Add 'user-regs.h' include.
1053 (register_descriptor_iter_find): New function.
1054 (register_descriptor_iterator_object_methods): New static global
1055 methods array.
1056 (register_descriptor_iterator_object_type): Add pointer to methods
1057 array.
1058
1059 2020-07-27 John Baldwin <jhb@FreeBSD.org>
1060
1061 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
1062 for all architectures on FreeBSD 11.3 and later.
1063
1064 2020-07-27 Tom Tromey <tromey@adacore.com>
1065
1066 * gcore.h (load_corefile): Don't declare.
1067
1068 2020-07-27 Tom de Vries <tdevries@suse.de>
1069
1070 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
1071 * config.in: Regenerate.
1072 * configure: Regenerate.
1073
1074 2020-07-26 Eli Zaretskii <eliz@gnu.org>
1075
1076 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
1077 ws2tcpip.h. When checking whether socklen_t type is defined, use
1078 ws2tcpip.h if it is available and sys/socket.h isn't.
1079 * configure: Regenerate.
1080 * config.in: Regenerate.
1081
1082 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
1083
1084 PR fortran/23051
1085 PR fortran/26139
1086 * valops.c (value_ind): Pass address to
1087 readjust_indirect_value_type.
1088 * value.c (readjust_indirect_value_type): Make parameter
1089 non-const, and add extra address parameter. Resolve original type
1090 before using it.
1091 * value.h (readjust_indirect_value_type): Update function
1092 signature and comment.
1093
1094 2020-07-25 Tom de Vries <tdevries@suse.de>
1095
1096 PR symtab/26243
1097 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
1098 entries.
1099
1100 2020-07-24 Aaron Merey <amerey@redhat.com>
1101
1102 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
1103 * configure: Rebuild.
1104
1105 2020-07-23 Kevin Buettner <kevinb@redhat.com>
1106
1107 PR corefiles/26294
1108 * corelow.c (_initialize_corelow): Add period to help text
1109 for "maintenance print core-file-backed-mappings".
1110
1111 2020-07-23 Pedro Alves <pedro@palves.net>
1112
1113 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
1114 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
1115 meanwhile.
1116 * frame.c (frame_cache_generation, get_frame_cache_generation):
1117 New.
1118 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
1119 (get_prev_frame_if_no_cycle): On exception, don't touch
1120 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
1121 * frame.h (get_frame_cache_generation): Declare.
1122
1123 2020-07-23 Tom de Vries <tdevries@suse.de>
1124
1125 PR tui/26282
1126 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
1127 New default constructor.
1128
1129 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
1130
1131 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
1132 exclude non-statement entries.
1133
1134 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1135
1136 * NEWS (New commands): Mention new command
1137 "maintenance print core-file-backed-mappings".
1138
1139 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1140
1141 * corelow.c (gdbcmd.h): Include.
1142 (core_target::info_proc_mappings): New method.
1143 (get_current_core_target): New function.
1144 (maintenance_print_core_file_backed_mappings): New function.
1145 (_initialize_corelow): Add core-file-backed-mappings to
1146 "maint print" commands.
1147
1148 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1149
1150 * linux-tdep.c (dump_note_entry_p): New function.
1151 (linux_dump_mapping_p_ftype): New typedef.
1152 (linux_find_memory_regions_full): Add new parameter,
1153 should_dump_mapping_p.
1154 (linux_find_memory_regions): Adjust call to
1155 linux_find_memory_regions_full.
1156 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
1157 call to linux_find_memory_regions_full.
1158
1159 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1160
1161 * corelow.c (solist.h, unordered_map): Include.
1162 (class core_target): Add field m_core_file_mappings and
1163 method build_file_mappings.
1164 (core_target::core_target): Call build_file_mappings.
1165 (core_target::~core_target): Free memory associated with
1166 m_core_file_mappings.
1167 (core_target::build_file_mappings): New method.
1168 (core_target::xfer_partial): Use m_core_file_mappings
1169 for memory transfers.
1170 * linux-tdep.c (linux_read_core_file_mappings): New
1171 function.
1172 (linux_core_info_proc_mappings): Rewrite to use
1173 linux_read_core_file_mappings.
1174 (linux_init_abi): Register linux_read_core_file_mappings.
1175
1176 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1177
1178 * arch-utils.c (default_read_core_file_mappings): New function.
1179 * arch-utils.c (default_read_core_file_mappings): Declare.
1180 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
1181 * gdbarch.h, gdbarch.c: Regenerate.
1182
1183 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1184
1185 PR corefiles/25631
1186 * corelow.c (core_target:xfer_partial): Revise
1187 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
1188 case after first checking the stratum beneath the core
1189 target.
1190 (has_all_memory): Return true.
1191 * target.c (raw_memory_xfer_partial): Revise comment
1192 regarding use of has_all_memory.
1193
1194 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1195
1196 * exec.h (section_table_xfer_memory): Revise declaration,
1197 replacing section name parameter with an optional callback
1198 predicate.
1199 * exec.c (section_table_xfer_memory): Likewise.
1200 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
1201 of section_table_xfer_memory.
1202
1203 2020-07-22 Tom Tromey <tromey@adacore.com>
1204
1205 * mi/mi-cmd-stack.c (list_args_or_locals): Use
1206 lookup_symbol_search_name.
1207
1208 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1209
1210 * python/py-registers.c (gdbpy_register_object_data_init): Remove
1211 redundant local variable.
1212 (gdbpy_get_register_descriptor): Extract descriptor vector as a
1213 reference, not pointer, update code accordingly.
1214
1215 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1216 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1217
1218 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
1219 * jit.c (jit_breakpoint_re_set_internal): Use the
1220 `skip_jit_symbol_lookup` field.
1221
1222 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1223 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1224
1225 * jit.c (jit_read_descriptor): Define the descriptor address once,
1226 use twice.
1227 (jit_breakpoint_deleted): Move the declaration of the loop variable
1228 `iter` into the loop header.
1229 (jit_breakpoint_re_set_internal): Move the declaration of the local
1230 variable `objf_data` to the first point of definition.
1231 (jit_event_handler): Move the declaration of local variables
1232 `code_entry`, `entry_addr`, and `objf` to their first point of use.
1233 Rename `objf` to `jited`.
1234
1235 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1236
1237 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
1238 Remove.
1239 * jit.c (get_jiter_objfile_data): Update.
1240
1241 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1242 Simon Marchi <simon.marchi@polymtl.ca>
1243
1244 * jit.c (struct jit_program_space_data): Remove.
1245 (jit_program_space_key): Remove.
1246 (jiter_objfile_data::~jiter_objfile_data): Remove program space
1247 stuff.
1248 (get_jit_program_space_data): Remove.
1249 (jit_breakpoint_deleted): Iterate on all of the program space's
1250 objfiles.
1251 (jit_inferior_init): Likewise.
1252 (jit_breakpoint_re_set_internal): Likewise. Also change return
1253 type to void.
1254 (jit_breakpoint_re_set): Pass current_program_space to
1255 jit_breakpoint_re_set_internal.
1256
1257 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1258
1259 * jit.h (struct jiter_objfile_data) <cached_code_address,
1260 jit_breakpoint>: Move to here from ...
1261 * jit.c (jit_program_space_data): ... here.
1262 (jiter_objfile_data::~jiter_objfile_data): Update.
1263 (jit_breakpoint_deleted): Update.
1264 (jit_breakpoint_re_set_internal): Update.
1265
1266 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1267
1268 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
1269 checks.
1270 (jit_read_descriptor): Remove NULL check.
1271 (jit_event_handler): Add an assertion.
1272
1273 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1274
1275 * jit.h (struct jit_objfile_data): Split into...
1276 (struct jiter_objfile_data): ... this ...
1277 (struct jited_objfile_data): ... and this.
1278 * objfiles.h (struct objfile) <jit_data>: Remove.
1279 <jiter_data, jited_data>: New fields.
1280 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
1281 (jiter_objfile_data::~jiter_objfile_data): ... this.
1282 (get_jit_objfile_data): Rename to ...
1283 (get_jiter_objfile_data): ... this.
1284 (add_objfile_entry): Update.
1285 (jit_read_descriptor): Use get_jiter_objfile_data.
1286 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
1287 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
1288 (jit_inferior_exit_hook): Use objfile's jited_data field.
1289
1290 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1291
1292 * jit.h: Forward-declare `struct minimal_symbol`.
1293 (struct jit_objfile_data): Migrate to here from jit.c; also add a
1294 constructor, destructor, and an objfile* field.
1295 * jit.c (jit_objfile_data): Remove.
1296 (struct jit_objfile_data): Migrate from here to jit.h.
1297 (jit_objfile_data::~jit_objfile_data): New destructor
1298 implementation with code moved from free_objfile_data.
1299 (free_objfile_data): Delete.
1300 (get_jit_objfile_data): Update to use the jit_data field of objfile.
1301 (jit_find_objf_with_entry_addr): Ditto.
1302 (jit_inferior_exit_hook): Ditto.
1303 (_initialize_jit): Remove the call to
1304 register_objfile_data_with_cleanup.
1305 * objfiles.h (struct objfile) <jit_data>: New field.
1306
1307 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1308
1309 * jit.h: Forward-declare `struct objfile`.
1310 (jit_event_handler): Add a second parameter, the JITer objfile.
1311 * jit.c (jit_read_descriptor): Change the signature to take the
1312 JITer objfile as an argument instead of the jit_program_space_data.
1313 (jit_inferior_init): Update the call to jit_read_descriptor.
1314 (jit_event_handler): Use the new JITer objfile argument when calling
1315 jit_read_descriptor.
1316 * breakpoint.c (handle_jit_event): Update the call to
1317 jit_event_handler to pass the JITer objfile.
1318
1319 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1320
1321 * gdbarch.c: Regenerate.
1322 * gdbarch.h: Regenerate.
1323 * gdbarch.sh (handle_segmentation_fault): Remove method.
1324 * infrun.c (handle_segmentation_fault): Remove.
1325 (print_signal_received_reason): Remove call to
1326 handle_segmentation_fault.
1327
1328 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1329
1330 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1331 Rename to sparc64_linux_report_signal_info and add siggnal
1332 argument.
1333 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
1334 instead of sparc64_linux_handle_segmentation_fault.
1335
1336 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1337
1338 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
1339 i386_linux_report_signal_info instead of
1340 i386_linux_handle_segmentation_fault.
1341 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
1342 to i386_linux_report_signal_info and add siggnal argument.
1343 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
1344 of i386_linux_handle_segmentation_fault.
1345 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
1346 to i386_linux_report_signal_info and add siggnal argument.
1347
1348 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1349
1350 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1351 hook if present.
1352
1353 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1354
1355 * gdbarch.c: Regenerate.
1356 * gdbarch.h: Regenerate.
1357 * gdbarch.sh (report_signal_info): New method.
1358 * infrun.c (print_signal_received_reason): Invoke gdbarch
1359 report_signal_info hook if present.
1360
1361 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1362
1363 * python/py-registers.c : Add 'unordered_map' include.
1364 (gdbpy_new_reggroup): Renamed to...
1365 (gdbpy_get_reggroup): ...this. Update to only create register
1366 group descriptors when needed.
1367 (gdbpy_reggroup_iter_next): Update.
1368
1369 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1370
1371 * python/py-registers.c (gdbpy_register_object_data): New static
1372 global.
1373 (gdbpy_register_object_data_init): New function.
1374 (gdbpy_new_register_descriptor): Renamed to...
1375 (gdbpy_get_register_descriptor): ...this, and update to reuse
1376 existing register descriptors where possible.
1377 (gdbpy_register_descriptor_iter_next): Update.
1378 (gdbpy_initialize_registers): Register new gdbarch data.
1379
1380 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
1381
1382 * linux-nat.c (stopped_pids): Make static.
1383
1384 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1385
1386 PR ada/26235
1387 * gdbtypes.c (ada_discrete_type_low_bound,
1388 ada_discrete_type_high_bound): Handle undefined bounds.
1389
1390 2020-07-21 Kamil Rytarowski <n54@gmx.com>
1391
1392 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1393 declaration.
1394 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1395 function.
1396
1397 2020-07-20 John Baldwin <jhb@FreeBSD.org>
1398
1399 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1400 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1401 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1402 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1403 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1404 method.
1405
1406 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1407
1408 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1409 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1410 which are deprecated in Guile 3.0.
1411 * configure.ac (try_guile_versions): Add "guile-3.0".
1412 * configure (try_guile_versions): Regenerate.
1413 * NEWS: Update entry.
1414
1415 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1416 Doug Evans <dje@google.com>
1417
1418 PR gdb/21104
1419 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1420 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1421 USING_GUILE_BEFORE_2_2.
1422 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1423 Change type to 'scm_t_port_type *'.
1424 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1425 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1426 parameter and honor it. Update callers.
1427 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1428 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1429 functions.
1430 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1431 USING_GUILE_BEFORE_2_2.
1432 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1433 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1434 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1435 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1436 and 'SCM_PORT_TYPE'.
1437 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1438 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1439 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1440 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1441 [!USING_GUILE_BEFORE_2_2]: New functions.
1442 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1443 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1444 'gdbscm_memory_port_read'.
1445 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1446 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1447 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1448 function.
1449 (ioscm_init_memory_port): Remove.
1450 (ioscm_init_memory_port_stream): New function
1451 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1452 function.
1453 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1454 Return scm_from_uint (0).
1455 (gdbscm_set_memory_port_read_buffer_size_x)
1456 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1457 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1458 Return scm_from_uint (0).
1459 (gdbscm_set_memory_port_write_buffer_size_x)
1460 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1461 * configure.ac (try_guile_versions): Add "guile-2.2".
1462 * configure: Regenerate.
1463 * NEWS: Add entry.
1464
1465 2020-07-18 Tom Tromey <tom@tromey.com>
1466
1467 * linux-nat.c (linux_multi_process): Remove.
1468 (linux_nat_target::supports_multi_process): Return true.
1469
1470 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1471
1472 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1473 (riscv_lookup_target_description): Return pointer out of
1474 unique_ptr.
1475 * target-descriptions.c (allocate_target_description): Add
1476 comment.
1477 (target_desc_deleter::operator()): Likewise.
1478 * target-descriptions.h (struct target_desc_deleter): Moved to
1479 gdbsupport/tdesc.h.
1480 (target_desc_up): Likewise.
1481
1482 2020-07-17 Tom Tromey <tromey@adacore.com>
1483
1484 * linux-nat.c (linux_nat_target::supports_non_stop)
1485 (linux_nat_target::always_non_stop_p): Use "true".
1486 (linux_nat_target::supports_disable_randomization): Use "true" and
1487 "false".
1488
1489 2020-07-16 Caroline Tice <cmtice@google.com>
1490
1491 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1492 (RNGLIST_HEADER_SIZE64): New constant definition.
1493 (struct dwop_section_names): Add rnglists_dwo.
1494 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1495 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1496 (struct dwo_sections): Add rnglists field.
1497 (read_attribut_reprocess): Add tag parameter.
1498 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1499 (cu_debug_rnglists_section): New function (decl & definition).
1500 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1501 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1502 die whose range is being checked; get rnglist section from
1503 cu_debug_rnglists_section, to get from either objfile or dwo file as
1504 appropriate. Add cases for DW_RLE_base_addressx,
1505 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1506 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1507 test inside if-condition and updating complaint message.
1508 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1509 dwarf2_rnglists_process.
1510 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1511 dwarf2_ranges_process.
1512 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1513 need_ranges_base and update comment appropriately. Also pass die tag
1514 to dwarf2_ranges_read.
1515 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1516 need_ranges_base and update comment appropriately. Also pass die tag
1517 to dwarf2_ranges_process.
1518 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1519 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1520 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1521 need_ranges_base and update comment appropriately. Also pass die tag
1522 to read_attribute_reprocess and dwarf2_ranges_read.
1523 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1524 and update function comment appropriately.
1525 (read_loclist_index): Call read_loclists_rnglists_header instead of
1526 read_loclist_header.
1527 (read_rnglist_index): New function.
1528 (read_attribute_reprocess): Add tag parameter. Add code for
1529 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1530 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1531
1532 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1533
1534 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1535 being resolved.
1536
1537 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1538
1539 * arch-utils.c (show_architecture): Update formatting of messages.
1540
1541 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1542
1543 * gdbtypes.h (struct type) <bounds>: Handle array and string
1544 types.
1545 * ada-lang.c (assign_aggregate): Use type::bounds on
1546 array/string type.
1547 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1548 * c-varobj.c (c_number_of_children): Likewise.
1549 (c_describe_child): Likewise.
1550 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1551 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1552 (f_type_print_base): Likewise.
1553 * f-valprint.c (f77_array_offset_tbl): Likewise.
1554 (f77_get_upperbound): Likewise.
1555 (f77_print_array_1): Likewise.
1556 * guile/scm-type.c (gdbscm_type_range): Likewise.
1557 * m2-typeprint.c (m2_array): Likewise.
1558 (m2_is_long_set_of_type): Likewise.
1559 * m2-valprint.c (get_long_set_bounds): Likewise.
1560 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1561 * python/py-type.c (typy_range): Likewise.
1562 * rust-lang.c (rust_internal_print_type): Likewise.
1563 * type-stack.c (type_stack::follow_types): Likewise.
1564 * valarith.c (value_subscripted_rvalue): Likewise.
1565 * valops.c (value_cast): Likewise.
1566
1567 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1568
1569 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1570 callers to use the equivalent accessor methods.
1571
1572 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1573
1574 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1575 (struct type) <bit_stride>: New method.
1576 (TYPE_BIT_STRIDE): Remove.
1577 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1578
1579 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1580
1581 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1582 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1583 callers to use the equivalent accessor methods instead.
1584
1585 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1586
1587 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1588 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1589 callers to use the equivalent accessor methods instead.
1590
1591 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1592
1593 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1594 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1595 to use dynamic_prop::kind.
1596
1597 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1598
1599 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1600 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1601 to get the bound property's kind and check against
1602 PROP_UNDEFINED.
1603
1604 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1605
1606 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1607 all callers to use type::range_bounds followed by
1608 dynamic_prop::{low,high}.
1609
1610 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1611
1612 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1613 const_val, set_const_val, baton, set_locexpr, set_loclist,
1614 set_addr_offset, variant_parts, set_variant_parts,
1615 original_type, set_original_type>: New methods.
1616 <kind>: Rename to...
1617 <m_kind>: ... this. Update all users to use the new methods
1618 instead.
1619 <data>: Rename to...
1620 <m_data>: ... this. Update all users to use the new methods
1621 instead.
1622
1623 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1624
1625 * gdbtypes.c (get_discrete_bounds): Return failure if
1626 the range type's bounds are not both defined and constant
1627 values.
1628 (get_array_bounds): Update comment. Remove undefined bound check.
1629
1630 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1631
1632 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1633 the type::bounds method directly.
1634
1635 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1636
1637 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1638 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1639 are used to set the range type's bounds to use set_bounds.
1640
1641 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1642
1643 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1644
1645 2020-07-10 Pedro Alves <pedro@palves.net>
1646
1647 * gdbthread.h (inferior_ref): Define.
1648 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1649 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1650 * thread.c
1651 (scoped_restore_current_thread::restore):
1652 Adjust to gdb::ref_ptr.
1653 (scoped_restore_current_thread::~scoped_restore_current_thread):
1654 Remove manual decref handling.
1655 (scoped_restore_current_thread::scoped_restore_current_thread):
1656 Adjust to use
1657 inferior_ref::new_reference/thread_info_ref::new_reference.
1658 Incref the thread before calling get_frame_id instead of after.
1659 Let TARGET_CLOSE_ERROR propagate.
1660
1661 2020-07-10 Pedro Alves <pedro@palves.net>
1662
1663 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1664 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1665 NOT_AVAILABLE_ERROR.
1666 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1667 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1668
1669 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1670 Pedro Alves <pedro@palves.net>
1671
1672 PR gdb/26199
1673 * infrun.c (threads_are_resumed_pending_p): Delete.
1674 (do_target_wait): Remove threads_are_executing and
1675 threads_are_resumed_pending_p checks from the inferior_matches
1676 lambda. Update comments.
1677
1678 2020-07-10 Pedro Alves <pedro@palves.net>
1679
1680 PR gdb/26199
1681 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1682 executing threads.
1683
1684 2020-07-10 Pedro Alves <pedro@palves.net>
1685
1686 PR gdb/26199
1687 * infrun.c (handle_no_resumed): Handle multiple targets.
1688
1689 2020-07-10 Pedro Alves <pedro@palves.net>
1690
1691 PR gdb/26199
1692 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1693 target_is_async_p.
1694
1695 2020-07-10 Pedro Alves <pedro@palves.net>
1696
1697 PR gdb/26199
1698 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1699 threads, not all threads.
1700
1701 2020-07-10 Pedro Alves <pedro@palves.net>
1702
1703 PR gdb/26199
1704 * remote.c (remote_target::open_1): Pass remote target pointer as
1705 data to create_async_event_handler.
1706 (remote_async_inferior_event_handler): Mark async event handler
1707 before returning if the remote target still has either pending
1708 events or unacknowledged notifications.
1709
1710 2020-07-10 John Baldwin <jhb@FreeBSD.org>
1711
1712 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1713 declaration.
1714 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1715 function.
1716
1717 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1718
1719 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1720 inferior_ptid.
1721
1722 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1723
1724 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1725 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1726 AT_FREEBSD_PS_STRINGS.
1727
1728 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
1729
1730 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1731 of debugfile path on Windows.
1732
1733 2020-07-08 John Baldwin <jhb@FreeBSD.org>
1734
1735 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1736 argument to 'data'.
1737
1738 2020-07-08 Tom Tromey <tromey@adacore.com>
1739
1740 * ada-lang.c (ada_exception_message_1): Use read_memory.
1741
1742 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1743
1744 PR python/22748
1745 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1746 special handling for inline frames.
1747 * findvar.c (value_of_register_lazy): Skip inline frames when
1748 creating lazy register values.
1749 * frame.c (frame_id_computed_p): Delete definition.
1750 * frame.h (frame_id_computed_p): Delete declaration.
1751
1752 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1753
1754 * NEWS: Mention additions to Python API.
1755 * python/py-arch.c (archpy_register_groups): New function.
1756 (arch_object_methods): Add 'register_groups' method.
1757 * python/py-registers.c (reggroup_iterator_object): New struct.
1758 (reggroup_object): New struct.
1759 (gdbpy_new_reggroup): New function.
1760 (gdbpy_reggroup_to_string): New function.
1761 (gdbpy_reggroup_name): New function.
1762 (gdbpy_reggroup_iter): New function.
1763 (gdbpy_reggroup_iter_next): New function.
1764 (gdbpy_new_reggroup_iterator): New function
1765 (gdbpy_initialize_registers): Register new types.
1766 (reggroup_iterator_object_type): Define new Python type.
1767 (gdbpy_reggroup_getset): New static global.
1768 (reggroup_object_type): Define new Python type.
1769 * python/python-internal.h
1770
1771 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1772
1773 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1774 * python/py-arch.c (archpy_registers): New function.
1775 (arch_object_methods): Add 'registers' method.
1776 * python/py-registers.c: New file.
1777 * python/python-internal.h
1778 (gdbpy_new_register_descriptor_iterator): Declare.
1779 (gdbpy_initialize_registers): Declare.
1780 * python/python.c (do_start_initialization): Call
1781 gdbpy_initialize_registers.
1782 * NEWS: Mention additions to the Python API.
1783
1784 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1785
1786 * NEWS: Mention new Python API method.
1787 * python/py-unwind.c (pending_framepy_architecture): New function.
1788 (pending_frame_object_methods): Add architecture method.
1789
1790 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1791
1792 * gdbarch.c: Regenerate.
1793 * gdbarch.h: Regenerate.
1794 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1795 (gdbarch_data): Use internal_error for the case where
1796 deprecated_set_gdbarch_data was originally needed.
1797 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1798 and use passed in obstack.
1799 (libunwind_frame_set_descr): Should no longer get back NULL from
1800 gdbarch_data.
1801 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1802 type.
1803 * user-regs.c (user_regs_init): Update parameters, and use passed
1804 in obstack.
1805 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1806 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1807
1808 2020-07-06 Tom de Vries <tdevries@suse.de>
1809
1810 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1811 End-Of-Sequence in lte_is_less_than.
1812 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1813 "gdb: Don't reorder line table entries too much when sorting".
1814
1815 2020-07-06 Tom de Vries <tdevries@suse.de>
1816
1817 PR tui/26205
1818 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1819
1820 2020-07-05 Tom de Vries <tdevries@suse.de>
1821
1822 PR build/26187
1823 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1824 std::uncaught_exceptions instead of deprecated
1825 std::uncaught_exception.
1826
1827 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1828
1829 * macroexp.h (macro_stringify): Return
1830 gdb::unique_xmalloc_ptr<char>.
1831 * macroexp.c (macro_stringify): Likewise.
1832 * macrotab.c (fixup_definition): Update.
1833
1834 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1835
1836 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1837 (lex_one_token): Update.
1838 * macroexp.c (struct macro_buffer) <release>: Return
1839 gdb::unique_xmalloc_ptr<char>.
1840 (macro_stringify): Update.
1841 (macro_expand): Update.
1842 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1843 * macroexp.h (macro_expand_next): Likewise.
1844
1845 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
1846
1847 * macroexp.h (macro_lookup_ftype): Remove.
1848 (macro_expand, macro_expand_once, macro_expand_next): Remove
1849 lookup function parameters, add scope parameter.
1850 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1851 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1852 * macroscope.h (standard_macro_lookup): Change parameter type
1853 to macro_scope.
1854 * macroscope.c (standard_macro_lookup): Likewise.
1855 * c-exp.y (lex_one_token): Update.
1856 * macrocmd.c (macro_expand_command): Likewise.
1857 (macro_expand_once_command): Likewise.
1858
1859 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1860
1861 * inf-loop.c (inferior_event_handler): Remove client_data param.
1862 * inf-loop.h (inferior_event_handler): Likewise.
1863 * infcmd.c (step_1): Adjust.
1864 * infrun.c (proceed): Adjust.
1865 (fetch_inferior_event): Remove client_data param.
1866 (infrun_async_inferior_event_handler): Adjust.
1867 * infrun.h (fetch_inferior_event): Remove `void *` param.
1868 * linux-nat.c (handle_target_event): Adjust.
1869 * record-btrace.c (record_btrace_handle_async_inferior_event):
1870 Adjust.
1871 * record-full.c (record_full_async_inferior_event_handler):
1872 Adjust.
1873 * remote.c (remote_async_inferior_event_handler): Adjust.
1874
1875 2020-07-01 Tom Tromey <tom@tromey.com>
1876
1877 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1878 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1879
1880 2020-07-01 Tom Tromey <tom@tromey.com>
1881
1882 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1883 tui_gen_win_info.
1884 (tui_win_info::make_window): Merge with
1885 tui_gen_win_info::make_window.
1886 (tui_win_info::make_visible): Move from tui_gen_win_info.
1887 * tui/tui-win.c (tui_win_info::max_width): Move from
1888 tui_gen_win_info.
1889 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1890 type.
1891 <window_factory>: Likewise.
1892 * tui/tui-layout.c (tui_win_info::resize): Move from
1893 tui_gen_win_info.
1894 (make_standard_window): Change return type.
1895 (get_locator_window, tui_get_window_by_name): Likewise.
1896 (tui_layout_window::apply): Remove a cast.
1897 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1898 (struct tui_win_info): Merge with tui_gen_win_info.
1899 (struct tui_gen_win_info): Remove.
1900
1901 2020-07-01 Tom Tromey <tom@tromey.com>
1902
1903 * tui/tui-stack.h (struct tui_locator_window): Derive from
1904 tui_win_info.
1905 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1906 <can_box>: New method.
1907
1908 2020-07-01 Tom Tromey <tom@tromey.com>
1909
1910 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1911
1912 2020-07-01 Tom Tromey <tom@tromey.com>
1913
1914 * tui/tui-regs.c (tui_data_window::display_registers_from)
1915 (tui_data_window::display_registers_from)
1916 (tui_data_window::first_data_item_displayed)
1917 (tui_data_window::delete_data_content_windows): Update.
1918 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1919 Remove.
1920 (tui_data_window::check_register_values): Update.
1921 (tui_data_item_window::rerender): Add parameters. Update.
1922 (tui_data_item_window::refresh_window): Remove.
1923 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1924 virtual.
1925 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1926 tui_gen_win_info.
1927 <refresh_window, max_height, min_height>: Remove.
1928 <rerender>: Add parameters.
1929 <x, y, visible>: New members.
1930 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1931 <m_item_width>: New member.
1932
1933 2020-07-01 Tom Tromey <tom@tromey.com>
1934
1935 * tui/tui-regs.c (tui_data_window::show_register_group)
1936 (tui_data_window::check_register_values): Update.
1937 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1938 from item_no.
1939
1940 2020-07-01 Tom Tromey <tom@tromey.com>
1941
1942 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1943 useless "if".
1944
1945 2020-07-01 Tom Tromey <tom@tromey.com>
1946
1947 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1948 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1949
1950 2020-07-01 Tom Tromey <tom@tromey.com>
1951
1952 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1953 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1954 (struct tui_line_or_address): Move from tui-data.h.
1955 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1956 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1957 (tui_cmd_window, tui_source_window_base, tui_source_window)
1958 (tui_disasm_window): Don't declare.
1959 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1960 to tui-winsource.h.
1961 (SINGLE_KEY): Move to tui-stack.c.
1962
1963 2020-07-01 Tom Tromey <tom@tromey.com>
1964
1965 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1966 std::string.
1967 * tui/tui-regs.c (class tab_expansion_file): New.
1968 (tab_expansion_file::write): New method.
1969 (tui_register_format): Change return type. Use
1970 tab_expansion_file.
1971 (tui_get_register, tui_data_window::display_registers_from)
1972 (tui_data_item_window::rerender): Update.
1973 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1974 * tui/tui-io.c (tui_expand_tabs): Remove.
1975
1976 2020-07-01 Tom Tromey <tom@tromey.com>
1977
1978 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1979
1980 2020-07-01 Fangrui Song <maskray@google.com>
1981
1982 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1983
1984 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1985
1986 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1987 forms for DW_AT_associated and DW_AT_allocated attributes,
1988 which is already checked in function attr_to_dynamic_prop.
1989
1990 2020-06-30 Tom Tromey <tromey@adacore.com>
1991
1992 * dwarf2/read.c (quirk_rust_enum): Correctly call
1993 alloc_rust_variant for default-less enum.
1994
1995 2020-06-30 Tom Tromey <tromey@adacore.com>
1996
1997 PR build/26183:
1998 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1999 gdb::to_string.
2000
2001 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
2002
2003 * gdbarch.sh (displaced_step_copy_insn): Update doc.
2004 * gdbarch.h: Re-generate.
2005
2006 2020-06-28 Tom Tromey <tom@tromey.com>
2007
2008 * command.h (cmd_types): Remove.
2009 (cmd_type): Don't declare.
2010 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
2011 typedef.
2012 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
2013 * cli/cli-decode.c (cmd_type): Remove.
2014
2015 2020-06-27 Pedro Alves <palves@redhat.com>
2016
2017 * fork-child.c (prefork_hook): Adjust.
2018 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
2019 Delete.
2020 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
2021 * inferior.c (inferior::set_tty, inferior::tty): New methods.
2022 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
2023 Remove declarations.
2024 (struct inferior) <set_tty, tty>: New methods.
2025 (struct inferior) <terminal>: Rename to ...
2026 (struct inferior) <m_terminal>: ... this and make private.
2027 * main.c (captured_main_1): Adjust.
2028 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
2029 (mi_cmd_inferior_tty_show): Adjust.
2030 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
2031 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
2032
2033 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
2034
2035 * configure.ac: Add --enable-libctf: handle --disable-static
2036 properly.
2037 * acinclude.m4: sinclude ../config/enable.m4.
2038 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
2039 (LIBCTF): Substitute in.
2040 (CTF_DEPS): New, likewise.
2041 (CLIBS): libctf needs symbols from libbfd: move earlier.
2042 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
2043 flags.
2044 * ctfread.c: Surround in ENABLE_LIBCTF.
2045 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
2046 * configure: Regenerate.
2047 * config.in: Likewise.
2048
2049 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
2050
2051 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
2052
2053 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
2054
2055 * inferior.h (struct inferior) <terminal>: Change type to
2056 gdb::unique_xmalloc_ptr<char>.
2057 * inferior.c (inferior::~inferior): Don't free inf->terminal.
2058 * infcmd.c (set_inferior_io_terminal): Don't free terminal
2059 field, adjust to unique pointer.
2060 (get_inferior_io_terminal): Adjust to unique pointer.
2061
2062 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2063
2064 * riscv-tdep.c (riscv_print_registers_info): Loop over all
2065 registers, not just the known core set of registers.
2066
2067 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2068
2069 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
2070 fflags, frm, and fcsr registers.
2071 (riscv_register_reggroup_p): Remove unknown CSRs from save and
2072 restore groups.
2073 (riscv_tdesc_unknown_reg): New function.
2074 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
2075 tdesc_use_registers.
2076 * riscv-tdep.h (struct gdbarch_tdep): Add
2077 unknown_csrs_first_regnum, unknown_csrs_count,
2078 duplicate_fflags_regnum, duplicate_frm_regnum, and
2079 duplicate_fcsr_regnum fields.
2080
2081 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2082
2083 * target-descriptions.c (tdesc_use_registers): Add new parameter a
2084 callback, use the callback (when not null) to help number unknown
2085 registers.
2086 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
2087 (tdesc_use_registers): Add extra parameter to declaration.
2088
2089 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2090
2091 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
2092 in the file.
2093 (class riscv_pending_register_alias): Likewise.
2094 (riscv_register_feature::register_info): Change 'required_p' field
2095 to 'required', and change its type. Add 'check' member function.
2096 (riscv_register_feature::register_info::check): Define new member
2097 function.
2098 (riscv_xreg_feature): Change initialisation of 'required' field.
2099 (riscv_freg_feature): Likewise.
2100 (riscv_virtual_feature): Likewise.
2101 (riscv_csr_feature): Likewise.
2102 (riscv_check_tdesc_feature): Take extra parameter, the csr
2103 tdesc_feature, rewrite the function to use the new
2104 riscv_register_feature::register_info::check function.
2105 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
2106
2107 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2108
2109 * features/Makefile: Remove all references to the deleted files
2110 below.
2111 * features/riscv/32bit-csr.c: Deleted.
2112 * features/riscv/32bit-csr.xml: Deleted.
2113 * features/riscv/64bit-csr.c: Deleted.
2114 * features/riscv/64bit-csr.xml: Deleted.
2115 * features/riscv/rebuild-csr-xml.sh: Deleted.
2116
2117 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2118
2119 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
2120 whitespace error for declaration of names member variable.
2121 (struct riscv_register_feature): Add new prefer_first_name member
2122 variable, and fix whitespace error in declaration of registers.
2123 (riscv_xreg_feature): Initialize prefer_first_name field.
2124 (riscv_freg_feature): Likewise.
2125 (riscv_virtual_feature): Likewise.
2126 (riscv_csr_feature): Likewise.
2127 (riscv_register_name): Expand on comments. Remove register name
2128 modifications for CSR and virtual registers.
2129
2130 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2131
2132 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
2133 errors.
2134
2135 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2136
2137 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
2138 riscv-opc.h.
2139 (class riscv_pending_register_alias): New class.
2140 (riscv_check_tdesc_feature): Take vector of pending aliases and
2141 populate it as appropriate.
2142 (riscv_setup_register_aliases): Delete.
2143 (riscv_gdbarch_init): Create vector of pending aliases and pass it
2144 to riscv_check_tdesc_feature in all cases. Use the vector to
2145 create the register aliases.
2146
2147 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2148
2149 * sol2-tdep.c (sol2_static_transform_name): Remove.
2150 (sol2_init_abi): Don't register it.
2151 * gdbarch.sh (static_transform_name): Remove.
2152 * gdbarch.c, gdbarch.h: Regenerate.
2153
2154 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
2155 gdbarch_static_transform_name.
2156 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
2157 * stabsread.c (define_symbol) <'X'>: Remove.
2158 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
2159 handling.
2160 <'V'>: Likewise.
2161 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
2162 <'S'>: Remove call to gdbarch_static_transform_name.
2163
2164 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2165
2166 * procfs.c (procfs_pre_trace): New function.
2167 (procfs_target::create_inferior): Pass it to fork_inferior.
2168
2169 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2170
2171 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
2172 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
2173 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
2174 sol2-tdep.o, sparc-sol2-tdep.o.
2175 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
2176 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
2177 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
2178 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
2179
2180 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2181
2182 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
2183 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
2184 Call sol2_init_abi.
2185 Remove calls to set_gdbarch_skip_solib_resolver,
2186 set_gdbarch_core_pid_to_str.
2187 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
2188 (i386_sol2_static_transform_name): Remove.
2189 (i386_sol2_init_abi): Call sol2_init_abi.
2190 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2191 set_gdbarch_static_transform_name,
2192 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2193 Use sol2_sigtramp_p.
2194 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
2195 (sol2_sigtramp_p): New function.
2196 (sol2_static_transform_name): New function.
2197 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
2198 (sol2_init_abi): New function.
2199 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
2200 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
2201 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
2202 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
2203 (sparc_sol2_static_transform_name): Remove.
2204 (sparc32_sol2_init_abi): Call sol2_init_abi.
2205 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2206 set_gdbarch_static_transform_name,
2207 set_gdbarch_skip_solib_resolver,
2208 set_gdbarch_core_pid_to_str.
2209 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
2210 (sparc_sol2_static_transform_name): Remove
2211 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
2212 call sol2_sigtramp_p.
2213 (sparc64_sol2_init_abi): Call sol2_init_abi.
2214 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2215 set_gdbarch_static_transform_name,
2216 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2217
2218 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2219
2220 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
2221 * exec.c (validate_exec_file): If from_tty, set both
2222 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
2223 * symfile.c (symbol_file_add_with_addrs): if always_confirm
2224 and from_tty, unconditionally ask a confirmation.
2225
2226 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2227
2228 * target-descriptions.c (tdesc_architecture_name): Protect against
2229 NULL pointer dereference.
2230 (maint_print_xml_tdesc_cmd): New function.
2231 (_initialize_target_descriptions): Register new 'maint print
2232 xml-tdesc' command and give it the filename completer.
2233 * NEWS: Mention new 'maint print xml-tdesc' command.
2234
2235 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2236
2237 * target-descriptions.c (class tdesc_compatible_info): New class.
2238 (struct target_desc): Change type of compatible vector.
2239 (tdesc_compatible_p): Update for change in type of
2240 target_desc::compatible.
2241 (tdesc_compatible_info_list): New function.
2242 (tdesc_compatible_info_arch_name): New function.
2243 (tdesc_add_compatible): Update for change in type of
2244 target_desc::compatible.
2245 (print_c_tdesc::visit_pre): Likewise.
2246
2247 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2248
2249 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
2250 whitespace to underscore.
2251 (maint_print_c_tdesc_cmd): Use fake filename for target
2252 descriptions that came from the target.
2253 (_initialize_target_descriptions): Add filename command completion
2254 for 'maint print c-tdesc'.
2255
2256 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2257
2258 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
2259 lines.
2260
2261 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2262
2263 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
2264 lines.
2265 (dwarf2_find_location_expression): Likewise.
2266 (call_site_parameter_matches): Likewise.
2267 (dwarf2_compile_expr_to_ax): Likewise.
2268 (disassemble_dwarf_expression): Likewise.
2269 (loclist_describe_location): Likewise.
2270
2271 2020-06-23 Pedro Alves <palves@redhat.com>
2272
2273 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
2274 progspace-and-thread.h. Include scoped-mock-context.h instead.
2275 (register_to_value_test): Use scoped_mock_context.
2276 * regcache.c: Include "scoped-mock-context.h".
2277 (cooked_read_test): Don't error out if a target is already pushed.
2278 Use scoped_mock_context. Adjust.
2279 * scoped-mock-context.h: New file.
2280
2281 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2282
2283 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
2284 initializer.
2285 (ada_language::is_string_type_p): New member function.
2286 * c-lang.c (c_language_data): Delete la_is_string_type_p
2287 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_is_string_type_p): Delete function, implementation
2293 moved to f_language::is_string_type_p.
2294 (f_language_data): Delete la_is_string_type_p initializer.
2295 (f_language::is_string_type_p): New member function,
2296 implementation from f_is_string_type_p.
2297 * go-lang.c (go_is_string_type_p): Delete function, implementation
2298 moved to go_language::is_string_type_p.
2299 (go_language_data): Delete la_is_string_type_p initializer.
2300 (go_language::is_string_type_p): New member function,
2301 implementation from go_is_string_type_p.
2302 * language.c (language_defn::is_string_type_p): Define new member
2303 function.
2304 (default_is_string_type_p): Make static, add comment copied from
2305 header file.
2306 (unknown_language_data): Delete la_is_string_type_p initializer.
2307 (unknown_language::is_string_type_p): New member function.
2308 (auto_language_data): Delete la_is_string_type_p initializer.
2309 (auto_language::is_string_type_p): New member function.
2310 * language.h (language_data): Delete la_is_string_type_p field.
2311 (language_defn::is_string_type_p): Declare new function.
2312 (default_is_string_type_p): Delete desclaration, move comment to
2313 definition.
2314 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
2315 moved to m2_language::is_string_type_p.
2316 (m2_language_data): Delete la_is_string_type_p initializer.
2317 (m2_language::is_string_type_p): New member function,
2318 implementation from m2_is_string_type_p.
2319 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
2320 initializer.
2321 * opencl-lang.c (opencl_language_data): Likewise.
2322 * p-lang.c (pascal_is_string_type_p): Delete function,
2323 implementation moved to pascal_language::is_string_type_p.
2324 (pascal_language_data): Delete la_is_string_type_p initializer.
2325 (pascal_language::is_string_type_p): New member function,
2326 implementation from pascal_is_string_type_p.
2327 * rust-lang.c (rust_is_string_type_p): Delete function,
2328 implementation moved to rust_language::is_string_type_p.
2329 (rust_language_data): Delete la_is_string_type_p initializer.
2330 (rust_language::is_string_type_p): New member function,
2331 implementation from rust_is_string_type_p.
2332 * valprint.c (val_print_scalar_or_string_type_p): Update call to
2333 is_string_type_p.
2334
2335 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2336
2337 * ada-lang.c (ada_language_data): Delete la_print_typedef
2338 initializer.
2339 (ada_language::print_typedef): New member function.
2340 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
2341 (cplus_language_data): Likewise.
2342 (asm_language_data): Likewise.
2343 (minimal_language_data): Likewise.
2344 * d-lang.c (d_language_data): Likewise.
2345 * f-lang.c (f_language_data): Likewise.
2346 (f_language::print_typedef): New member function.
2347 * go-lang.c (go_language_data): Delete la_print_typedef
2348 initializer.
2349 * language.c (language_defn::print_typedef): Define member
2350 function.
2351 (unknown_language_data): Delete la_print_typedef initializer.
2352 (unknown_language::print_typedef): New member function.
2353 (auto_language_data): Delete la_print_typedef initializer.
2354 (auto_language::print_typedef): New member function.
2355 * language.h (language_data): Delete la_print_typedef field.
2356 (language_defn::print_typedef): Declare new member function.
2357 (LA_PRINT_TYPEDEF): Update call to print_typedef.
2358 (default_print_typedef): Delete declaration.
2359 * m2-lang.c (m2_language_data): Delete la_print_typedef
2360 initializer.
2361 (m2_language::print_typedef): New member function.
2362 * objc-lang.c (objc_language_data): Delete la_print_typedef
2363 initializer.
2364 * opencl-lang.c (opencl_language_data): Likewise.
2365 * p-lang.c (pascal_language_data): Likewise.
2366 (pascal_language::print_typedef): New member function.
2367 * rust-lang.c (rust_print_typedef): Delete function,
2368 implementation moved to rust_language::print_typedef.
2369 (rust_language): Delete la_print_typedef initializer.
2370 (rust_language::print_typedef): New member function,
2371 implementation from rust_print_typedef.
2372 * typeprint.c (default_print_typedef): Delete.
2373
2374 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2375
2376 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2377 (ada_language::printstr): New member function.
2378 * c-lang.c (c_language_data): Delete la_printstr initializer.
2379 (cplus_language_data): Likewise.
2380 (asm_language_data): Likewise.
2381 (minimal_language_data): Likewise.
2382 * d-lang.c (d_language_data): Likewise.
2383 * f-lang.c (f_printstr): Rename to f_language::printstr.
2384 (f_language_data): Delete la_printstr initializer.
2385 (f_language::printstr): New member function, implementation from
2386 f_printstr.
2387 * go-lang.c (go_language_data): Delete la_printstr initializer.
2388 * language.c (language_defn::printstr): Define new member
2389 function.
2390 (unk_lang_printstr): Delete.
2391 (unknown_language_data): Delete la_printstr initializer.
2392 (unknown_language::printstr): New member function.
2393 (auto_language_data): Delete la_printstr initializer.
2394 (auto_language::printstr): New member function.
2395 * language.h (language_data): Delete la_printstr field.
2396 (language_defn::printstr): Declare new member function.
2397 (LA_PRINT_STRING): Update call to printstr.
2398 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2399 (m2_language_data): Delete la_printstr initializer.
2400 (m2_language::printstr): New member function, implementation from
2401 m2_printstr.
2402 * objc-lang.c (objc_language_data): Delete la_printstr
2403 initializer.
2404 * opencl-lang.c (opencl_language_data): Likewise.
2405 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2406 (pascal_language_data): Delete la_printstr initializer.
2407 (pascal_language::printstr): New member function, implementation
2408 from pascal_printstr.
2409 * p-lang.h (pascal_printstr): Delete declaration.
2410 * rust-lang.c (rust_printstr): Update header comment.
2411 (rust_language_data): Delete la_printstr initializer.
2412 (rust_language::printstr): New member function.
2413
2414 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2415
2416 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2417 (ada_language::printchar): New member function.
2418 * c-lang.c (c_language_data): Delete la_printchar initializer.
2419 (cplus_language_data): Likewise.
2420 (asm_language_data): Likewise.
2421 (minimal_language_data): Likewise.
2422 * d-lang.c (d_language_data): Likewise.
2423 * f-lang.c (f_printchar): Rename to f_language::printchar.
2424 (f_language_data): Delete la_printchar initializer.
2425 (f_language::printchar): New member function, implementation from
2426 f_printchar.
2427 * go-lang.c (go_language_data): Delete la_printchar initializer.
2428 * language.c (unk_lang_printchar): Delete.
2429 (language_defn::printchar): Define new member function.
2430 (unknown_language_data): Delete la_printchar initializer.
2431 (unknown_language::printchar): New member function.
2432 (auto_language_data): Delete la_printchar initializer.
2433 (auto_language::printchar): New member function.
2434 * language.h (language_data): Delete la_printchar field.
2435 (language_defn::printchar): Declare new member function.
2436 (LA_PRINT_CHAR): Update call to printchar.
2437 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2438 (m2_language::printchar): New member function.
2439 * objc-lang.c (objc_language_data): Delete la_printchar
2440 initializer.
2441 * opencl-lang.c (opencl_language_data): Likewise.
2442 * p-lang.c (pascal_language_data): Delete la_printchar
2443 initializer.
2444 (pascal_language::printchar): New member function.
2445 * rust-lang.c (rust_printchar): Rename to
2446 rust_language::printchar.
2447 (rust_language_data): Delete la_printchar initializer.
2448 (rust_language::printchar): New member function, implementation
2449 from rust_printchar.
2450
2451 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2452
2453 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2454 (ada_language_data): Delete la_emitchar initializer.
2455 (ada_language::emitchar): New member function, implementation from
2456 emit_char.
2457 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2458 (cplus_language_data): Likewise.
2459 (asm_language_data): Likewise.
2460 (minimal_language_data): Likewise.
2461 * d-lang.c (d_language_data): Likewise.
2462 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2463 (f_language_data): Delete la_emitchar initializer.
2464 (f_language::emitchar): New member function, implementation from
2465 f_emit_char.
2466 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2467 * language.c (unk_lang_emit_char): Delete.
2468 (language_defn::emitchar): New member function definition.
2469 (unknown_language_data): Delete la_emitchar initializer.
2470 (unknown_language::emitchar): New member function.
2471 (auto_language_data): Delete la_emitchar initializer.
2472 (auto_language::emitchar): New member function.
2473 * language.h (language_data): Delete la_emitchar field.
2474 (language_defn::emitchar): New member field declaration.
2475 (LA_EMIT_CHAR): Update call to emitchar.
2476 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2477 (m2_language_data): Delete la_emitchar initializer.
2478 (m2_language::emitchar): New member function, implementation from
2479 m2_emit_char.
2480 * objc-lang.c (objc_language_data): Delete la_emitchar
2481 initializer.
2482 * opencl-lang.c (opencl_language_data): Likewise.
2483 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2484 (pascal_language_data): Delete la_emitchar initializer.
2485 (pascal_language::emitchar): New member function, implementation
2486 from pascal_emit_char.
2487 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2488 (rust_language_data): Delete la_emitchar initializer.
2489 (rust_language::emitchar): New member function, implementation
2490 from rust_emitchar.
2491
2492 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2493
2494 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2495 (ada_language_data): Delete la_post_parser initializer.
2496 (ada_language::post_parser): New member function.
2497 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2498 (cplus_language_data): Likewise.
2499 (asm_language_data): Likewise.
2500 (minimal_language_data): Likewise.
2501 * d-lang.c (d_language_data): Likewise.
2502 * f-lang.c (f_language_data): Likewise.
2503 * go-lang.c (go_language_data): Likewise.
2504 * language.c (unknown_language_data): Likewise.
2505 (auto_language_data): Likewise.
2506 * language.h (language_data): Delete la_post_parser field.
2507 (language_defn::post_parser): New member function.
2508 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2509 * objc-lang.c (objc_language_data): Likewise.
2510 * opencl-lang.c (opencl_language_data): Likewise.
2511 * p-lang.c (pascal_language_data): Likewise.
2512 * parse.c (parse_exp_in_context): Update call to post_parser.
2513 (null_post_parser): Delete definition.
2514 * parser-defs.h (null_post_parser): Delete declaration.
2515 * rust-lang.c (rust_language_data): Delete la_post_parser
2516 initializer.
2517
2518 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2519
2520 * ada-lang.c (parse): Rename to ada_language::parser.
2521 (ada_language_data): Delete la_parser initializer.
2522 (ada_language::parser): New member function, implementation from
2523 parse.
2524 * c-lang.c (c_language_data): Delete la_parser initializer.
2525 (cplus_language_data): Likewise.
2526 (asm_language_data): Likewise.
2527 (minimal_language_data): Likewise.
2528 * d-lang.c (d_language_data): Likewise.
2529 (d_language::parser): New member function.
2530 * f-lang.c (f_language_data): Delete la_parser initializer.
2531 (f_language::parser): New member function.
2532 * go-lang.c (go_language_data): Delete la_parser initializer.
2533 (go_language::parser): New member function.
2534 * language.c (unk_lang_parser): Delete.
2535 (language_defn::parser): Define new member function.
2536 (unknown_language_data): Delete la_parser initializer.
2537 (unknown_language::parser): New member function.
2538 (auto_language_data): Delete la_parser initializer.
2539 (auto_language::parser): New member function.
2540 * language.h (language_data): Delete la_parser field.
2541 (language_defn::parser): Declare new member function.
2542 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2543 (m2_language::parser): New member function.
2544 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2545 * opencl-lang.c (opencl_language_data): Likewise.
2546 * p-lang.c (pascal_language_data): Likewise.
2547 (pascal_language::parser): New member function.
2548 * parse.c (parse_exp_in_context): Update call to parser.
2549 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2550 (rust_language::parser): New member function.
2551
2552 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2553
2554 * top.c (print_gdb_configuration): Print --with-python-libdir
2555 configuration value.
2556
2557 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2558
2559 * NEWS: Mention change to the alias command.
2560
2561 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2562
2563 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2564 (alias_command_completer)
2565 (make_alias_options_def_group): New functions.
2566 (alias_opts, alias_option_defs): New struct and array.
2567 (alias_usage_error): Update usage.
2568 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2569 Use option framework.
2570 (_initialize_cli_cmds): Update alias command help.
2571 Update aliases command help.
2572 (show_user):
2573 Add NULL for new default_args lookup_cmd argument.
2574 (valid_command_p): Rename to validate_aliased_command.
2575 Add NULL for new default_args lookup_cmd argument. Verify that the
2576 aliased_command has no default args.
2577 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2578 (lookup_cmd_1, lookup_cmd): New argument default_args.
2579 (add_alias_cmd):
2580 Add NULL for new default_args lookup_cmd argument.
2581 (print_help_for_command): Show default args under the layout
2582 alias some_alias = some_aliased_cmd some_alias_default_arg.
2583 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2584 xfree default_args in destructor.
2585 * cli/cli-script.c (process_next_line, do_define_command):
2586 Add NULL for new default_args lookup_cmd argument.
2587 * command.h: Declare new default_args argument in lookup_cmd
2588 and lookup_cmd_1.
2589 * completer.c (complete_line_internal_1):
2590 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2591 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2592 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2593 Likewise.
2594 * infcmd.c (_initialize_infcmd): Likewise.
2595 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2596 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2597 * python/py-param.c (add_setshow_generic): Likewise.
2598 * remote.c (_initialize_remote): Likewise.
2599 * top.c (execute_command): Prepend default_args if command has some.
2600 (set_verbose):
2601 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2602 * tracepoint.c (validate_actionline, encode_actions_1):
2603 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2604
2605 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2606
2607 * jit.c (jit_read_descriptor): Use bool as the return type.
2608 (jit_breakpoint_re_set_internal): Use bool as the return type.
2609 Invert the return value logic; return true if the jit breakpoint
2610 has been successfully initialized.
2611 (jit_inferior_init): Update the call to
2612 jit_breakpoint_re_set_internal.
2613
2614 2020-06-22 Pedro Alves <palves@redhat.com>
2615
2616 PR gdb/25939
2617 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2618 Use the current inferior instead. Don't return
2619 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2620 wait again.
2621 * sol-thread.c (sol_thread_target::wait): Don't reference
2622 inferior_ptid.
2623 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2624 (sol_update_thread_list_callback): Use the current inferior's pid
2625 instead of inferior_ptid.
2626
2627 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2628
2629 * procfs.c: Cleanup many comments.
2630
2631 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2632 (AFTER_WATCHFLAG): Replace by value.
2633
2634 (MAIN_PROC_NAME_FORMAT): Inline ...
2635 (create_procinfo): ... here.
2636
2637 (procfs_debug_inferior): Remove SYS_exec handling.
2638 (syscall_is_exec): Likewise.
2639 (procfs_set_exec_trap): Likewise.
2640
2641 (syscall_is_lwp_exit): Inline in callers.
2642 (syscall_is_exit): Likewise.
2643 (syscall_is_exec): Likewise.
2644 (syscall_is_lwp_create): Likewise.
2645
2646 (invalidate_cache): Remove #if 0 code.
2647
2648 (make_signal_thread_runnable): Remove.
2649 (procfs_target::resume): Remove #if 0 code.
2650
2651 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2652
2653 PR gdb/25939
2654 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2655 call ...
2656 (procfs_target::create_inferior): ... here.
2657
2658 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2659
2660 * exec.c (validate_exec_file): Ensure the build-id is up to
2661 date by calling reopen_exec_file (that checks file timestamp
2662 to decide to re-read the file).
2663
2664 2020-06-18 Pedro Alves <palves@redhat.com>
2665
2666 PR gdb/25412
2667 * gdbthread.h (delete_thread, delete_thread_silent)
2668 (find_thread_ptid): Update comments.
2669 * thread.c (current_thread_): New global.
2670 (is_current_thread): Move higher, and reimplement.
2671 (inferior_thread): Reimplement.
2672 (set_thread_exited): Use bool. Add assertions.
2673 (add_thread_silent): Simplify thread-reuse handling by always
2674 calling delete_thread.
2675 (delete_thread): Remove intro comment.
2676 (find_thread_ptid): Skip exited threads.
2677 (switch_to_thread_no_regs): Write to current_thread_.
2678 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2679 INFERIOR_PTID. Clear current_thread_.
2680
2681 2020-06-18 Pedro Alves <palves@redhat.com>
2682
2683 * aix-thread.c (pd_update): Use switch_to_thread.
2684
2685 2020-06-18 Pedro Alves <palves@redhat.com>
2686
2687 * ravenscar-thread.c (ravenscar_thread_target): Update.
2688 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2689 (ravenscar_thread_target::add_active_thread): ... this. Don't
2690 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2691 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2692
2693 2020-06-18 Pedro Alves <palves@redhat.com>
2694
2695 * nat/windows-nat.c (current_windows_thread): Remove.
2696 * nat/windows-nat.h (current_windows_thread): Remove.
2697 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2698 Adjust.
2699 (display_selectors): Adjust to fetch the current
2700 windows_thread_info based on inferior_ptid.
2701 (fake_create_process): No longer write to current_windows_thread.
2702 (windows_nat_target::get_windows_debug_event):
2703 Don't set inferior_ptid or current_windows_thread.
2704 (windows_nat_target::wait): Adjust to not rely on
2705 current_windows_thread.
2706 (do_initial_windows_stuff): Now a method of windows_nat_target.
2707 Switch to the last_ptid thread.
2708 (windows_nat_target::attach): Adjust.
2709 (windows_nat_target::detach): Use switch_to_no_thread instead of
2710 writing to inferior_ptid directly.
2711 (windows_nat_target::create_inferior): Adjust.
2712
2713 2020-06-18 Pedro Alves <palves@redhat.com>
2714
2715 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2716
2717 2020-06-18 Pedro Alves <palves@redhat.com>
2718
2719 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2720 after creating it, instead of writing to inferior_ptid. Don't
2721 write to inferior_ptid.
2722
2723 2020-06-18 Pedro Alves <palves@redhat.com>
2724
2725 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2726
2727 2020-06-18 Pedro Alves <palves@redhat.com>
2728
2729 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2730 it, instead of writing to inferior_ptid.
2731
2732 2020-06-18 Pedro Alves <palves@redhat.com>
2733
2734 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2735 to inferior_ptid.
2736
2737 2020-06-18 Pedro Alves <palves@redhat.com>
2738
2739 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2740 instead of writing to inferior_ptid directly.
2741
2742 2020-06-18 Pedro Alves <palves@redhat.com>
2743
2744 * corelow.c (core_target::close): Use switch_to_no_thread instead
2745 of writing to inferior_ptid directly.
2746 (add_to_thread_list, core_target_open): Use switch_to_thread
2747 instead of writing to inferior_ptid directly.
2748
2749 2020-06-18 Pedro Alves <palves@redhat.com>
2750
2751 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2752 inferior_ptid.
2753 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2754 inferior_ptid.
2755 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2756 inferior_ptid directly.
2757 (darwin_nat_target::init_thread_list): Switch to thread, instead
2758 of writing to inferior_ptid.
2759 (darwin_nat_target::attach): Don't write to inferior_ptid.
2760 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2761
2762 2020-06-18 Pedro Alves <palves@redhat.com>
2763
2764 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2765 thread.
2766 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2767 Instead use switch_to_thread.
2768 (gnu_nat_target::detach): Use switch_to_no_thread
2769 instead of writing to inferior_ptid directly. Used passed-in
2770 inferior instead of looking up the inferior by pid.
2771
2772 2020-06-18 Pedro Alves <palves@redhat.com>
2773
2774 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2775 inferior_ptid.
2776
2777 2020-06-18 Pedro Alves <palves@redhat.com>
2778
2779 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2780 inferior_ptid.
2781 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2782 thread.
2783 (nto_procfs_target::detach): Avoid referencing
2784 inferior_ptid. Use switch_to_no_thread instead of writing to
2785 inferior_ptid directly.
2786 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2787 instead of writing to inferior_ptid directly.
2788 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2789 to thread.
2790
2791 2020-06-18 Pedro Alves <palves@redhat.com>
2792
2793 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2794 after creating it, instead of writing to inferior_ptid.
2795 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2796 to inferior_ptid directly.
2797 (gdbsim_target::wait): Don't write to inferior_ptid.
2798
2799 2020-06-18 Pedro Alves <palves@redhat.com>
2800
2801 * remote.c (remote_target::remote_notice_new_inferior): Use
2802 switch_to_thread instead of writing to inferior_ptid directly.
2803 (remote_target::add_current_inferior_and_thread): Use
2804 switch_to_no_thread instead of writing to inferior_ptid directly.
2805 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2806 and switch_to_thread instead of using set_current_inferior or
2807 writing to inferior_ptid directly.
2808
2809 2020-06-18 Pedro Alves <palves@redhat.com>
2810
2811 * tracectf.c (ctf_target_open): Switch to added thread instead of
2812 writing to inferior_ptid directly.
2813 (ctf_target::close): Use switch_to_no_thread instead of writing to
2814 inferior_ptid directly.
2815
2816 2020-06-18 Pedro Alves <palves@redhat.com>
2817
2818 * tracefile-tfile.c (tfile_target_open): Don't write to
2819 inferior_ptid directly, instead switch to added thread.
2820 (tfile_target::close): Use switch_to_no_thread instead of writing
2821 to inferior_ptid directly.
2822
2823 2020-06-18 Pedro Alves <palves@redhat.com>
2824
2825 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2826 (procfs_target::detach): Use switch_to_no_thread
2827 instead of writing to inferior_ptid directly.
2828 (do_attach): Change return type to void. Switch to the added
2829 thread.
2830 (procfs_target::create_inferior): Switch to the added thread.
2831 (procfs_do_thread_registers): Don't write to inferior_ptid.
2832
2833 2020-06-18 Pedro Alves <palves@redhat.com>
2834
2835 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2836 of writing to inferior_ptid.
2837 (scoped_restore_exited_inferior): Delete.
2838 (handle_vfork_child_exec_or_exit): Simplify using
2839 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2840 instead of writing to inferior_ptid.
2841 (THREAD_STOPPED_BY): Delete.
2842 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2843 (thread_stopped_by_hw_breakpoint): Delete.
2844 (save_waitstatus): Use
2845 scoped_restore_current_thread+switch_to_thread, and call
2846 target_stopped_by_watchpoint instead of
2847 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2848 instead of thread_stopped_by_sw_breakpoint, and
2849 target_stopped_by_hw_breakpoint instead of
2850 thread_stopped_by_hw_breakpoint.
2851 (handle_inferior_event)
2852 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2853 inferior_ptid directly, nor
2854 set_current_inferior/set_current_program_space. Use
2855 switch_to_thread / switch_to_inferior_no_thread instead.
2856
2857 2020-06-18 Pedro Alves <palves@redhat.com>
2858
2859 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2860 instead of writing to inferior_ptid.
2861
2862 2020-06-18 Pedro Alves <palves@redhat.com>
2863
2864 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2865 added thread.
2866 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2867 to the added thread.
2868 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2869 instead of writing to inferior_ptid.
2870
2871 2020-06-18 Pedro Alves <palves@redhat.com>
2872
2873 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2874 (register_to_value_test): Mock a program_space too. Heap-allocate
2875 the address space. Don't write to inferior_ptid. Use
2876 switch_to_thread instead.
2877
2878 2020-06-18 Pedro Alves <palves@redhat.com>
2879
2880 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2881 Delete.
2882 (find_signalled_thread()): New, factored out from
2883 linux_make_corefile_notes and adjusted to handle exited threads.
2884 (linux_make_corefile_notes): Adjust to use the new
2885 find_signalled_thread.
2886
2887 2020-06-18 Pedro Alves <palves@redhat.com>
2888
2889 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2890 of saving/restoring inferior_ptid.
2891
2892 2020-06-17 Tom Tromey <tom@tromey.com>
2893
2894 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2895 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2896 declare.
2897 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2898
2899 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
2900
2901 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2902 of partial symtabs.
2903
2904 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2905
2906 * regformats/reg-arm.dat: Remove.
2907 * regformats/reg-bfin.dat: Remove.
2908 * regformats/reg-cris.dat: Remove.
2909 * regformats/reg-crisv32.dat: Remove.
2910 * regformats/reg-m32r.dat: Remove.
2911 * regformats/reg-tilegx.dat: Remove.
2912 * regformats/reg-tilegx32.dat: Remove.
2913
2914 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2915
2916 * features/Makefile (WHICH): Remove arm files.
2917 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2918 * regformats/arm/arm-with-neon.dat: Remove.
2919 * regformats/arm/arm-with-vfpv2.dat: Remove.
2920 * regformats/arm/arm-with-vfpv3.dat: Remove.
2921
2922 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2923
2924 * features/Makefile (XMLTOC): Remove rx.xml.
2925
2926 2020-06-17 Pedro Alves <palves@redhat.com>
2927
2928 * gdbthread.h (thread_control_state) <trap_expected> Update
2929 comments.
2930
2931 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2932
2933 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2934 ada_language::lookup_symbol_nonlocal.
2935 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2936 (ada_language::lookup_symbol_nonlocal): New member function,
2937 implementation from ada_lookup_symbol_nonlocal.
2938 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2939 initializer.
2940 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2941 initializer.
2942 (cplus_language::lookup_symbol_nonlocal): New member function.
2943 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2944 (minimal_language_data) Likewise.
2945 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2946 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2947 initializer.
2948 (d_language::lookup_symbol_nonlocal): New member function.
2949 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2950 initializer.
2951 (f_language::lookup_symbol_nonlocal): New member function.
2952 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2953 initializer.
2954 * language.c (unknown_language_data): Likewise.
2955 (auto_language_data): Likewise.
2956 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2957 field.
2958 (language_defn::lookup_symbol_nonlocal): New member function.
2959 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2960 initializer.
2961 * objc-lang.c (objc_language_data): Likewise.
2962 * opencl-lang.c (opencl_language_data): Likewise.
2963 * p-lang.c (pascal_language_data): Likewise.
2964 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2965 rust_language::lookup_symbol_nonlocal.
2966 (rust_language_data): Delete la_lookup_symbol_nonlocal
2967 initializer.
2968 (rust_language::lookup_symbol_nonlocal): New member function,
2969 implementation from rust_lookup_symbol_nonlocal.
2970 * symtab.c (lookup_symbol_aux): Update call to
2971 lookup_symbol_nonlocal.
2972 (basic_lookup_symbol_nonlocal): Rename to...
2973 (language_defn::lookup_symbol_nonlocal): ...this, and update
2974 header comment. Remove language_defn parameter, and replace with
2975 uses of `this'.
2976 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2977
2978 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2979
2980 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2981 initializer.
2982 (ada_language::value_print_inner): New member function.
2983 * c-lang.c (c_language_data): Delete la_value_print_inner
2984 initializer.
2985 (cplus_language_data): Likewise.
2986 (asm_language_data): Likewise.
2987 (minimal_language_data): Likewise.
2988 * d-lang.c (d_language_data): Likewise.
2989 (d_language::value_print_inner): New member function.
2990 * f-lang.c (f_language_data): Delete la_value_print_inner
2991 initializer.
2992 (f_language::value_print_inner): New member function.
2993 * f-lang.h (f_value_print_innner): Rename to...
2994 (f_value_print_inner): ...this (note spelling of 'inner').
2995 * f-valprint.c (f_value_print_innner): Rename to...
2996 (f_value_print_inner): ...this (note spelling of 'inner').
2997 * go-lang.c (go_language_data): Delete la_value_print_inner
2998 initializer.
2999 (go_language::value_print_inner): New member function.
3000 * language.c (language_defn::value_print_inner): Define new member
3001 function.
3002 (unk_lang_value_print_inner): Delete.
3003 (unknown_language_data): Delete la_value_print_inner initializer.
3004 (unknown_language::value_print_inner): New member function.
3005 (auto_language_data): Delete la_value_print_inner initializer.
3006 (auto_language::value_print_inner): New member function.
3007 * language.h (language_data): Delete la_value_print_inner field.
3008 (language_defn::value_print_inner): Delcare new member function.
3009 * m2-lang.c (m2_language_data): Delete la_value_print_inner
3010 initializer.
3011 (m2_language::value_print_inner): New member function.
3012 * objc-lang.c (objc_language_data): Delete la_value_print_inner
3013 initializer.
3014 * opencl-lang.c (opencl_language_data): Likewise.
3015 * p-lang.c (pascal_language_data): Likewise.
3016 (pascal_language::value_print_inner): New member function.
3017 * rust-lang.c (rust_language_data): Delete la_value_print_inner
3018 initializer.
3019 (rust_language::value_print_inner): New member function.
3020 * valprint.c (do_val_print): Update call to value_print_inner.
3021
3022 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3023
3024 * ada-lang.c (ada_language_data): Delete la_value_print
3025 initializer.
3026 (ada_language::value_print): New member function.
3027 * c-lang.c (c_language_data): Delete la_value_print initializer.
3028 (cplus_language_data): Likewise.
3029 (asm_language_data): Likewise.
3030 (minimal_language_data): Likewise.
3031 * d-lang.c (d_language_data): Likewise.
3032 * f-lang.c (f_language_data): Likewise.
3033 * go-lang.c (go_language_data): Likewise.
3034 * language.c (unk_lang_value_print): Delete.
3035 (language_defn::value_print): Define new member function.
3036 (unknown_language_data): Delete la_value_print initializer.
3037 (unknown_language::value_print): New member function.
3038 (auto_language_data): Delete la_value_print initializer.
3039 (auto_language::value_print): New member function.
3040 * language.h (language_data): Delete la_value_print field.
3041 (language_defn::value_print): Declare new member function.
3042 (LA_VALUE_PRINT): Update call to value_print.
3043 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
3044 * objc-lang.c (objc_language_data): Likewise.
3045 * opencl-lang.c (opencl_language_data): Likewise.
3046 * p-lang.c (pascal_language_data): Likewise.
3047 (pascal_language::value_print): New member function.
3048 * rust-lang.c (rust_language_data): Delete la_value_print
3049 initializer.
3050
3051 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3052
3053 * ada-lang.c (ada_watch_location_expression): Rename to
3054 ada_language::watch_location_expression.
3055 (ada_language_data): Delete la_watch_location_expression
3056 initializer.
3057 (ada_language::watch_location_expression): New member function,
3058 implementation from ada_watch_location_expression.
3059 * breakpoint.c (watch_command_1): Update call to
3060 watch_location_expression.
3061 * c-lang.c (c_watch_location_expression): Rename to
3062 language_defn::watch_location_expression.
3063 (c_language_data): Delete la_watch_location_expression
3064 initializer.
3065 (cplus_language_data): Likewise.
3066 (asm_language_data): Likewise.
3067 (minimal_language_data): Likewise.
3068 * c-lang.h (c_watch_location_expression): Delete declaration.
3069 * d-lang.c (d_language_data): Delete la_watch_location_expression
3070 initializer.
3071 * f-lang.c (f_language_data): Likewise.
3072 * go-lang.c (go_language_data): Likewise.
3073 * language.c (language_defn::watch_location_expression): Member
3074 function implementation from c_watch_location_expression.
3075 (unknown_language_data): Delete la_watch_location_expression
3076 initializer.
3077 (auto_language_data): Likewise.
3078 * language.h (language_data): Delete la_watch_location_expression
3079 field.
3080 (language_defn::watch_location_expression): Declare new member
3081 function.
3082 * m2-lang.c (m2_language_data): Delete
3083 la_watch_location_expression initializer.
3084 * objc-lang.c (objc_language_data): Likewise.
3085 * opencl-lang.c (opencl_language_data): Likewise.
3086 * p-lang.c (pascal_language_data): Likewise.
3087 * rust-lang.c (rust_watch_location_expression): Rename to
3088 rust_language::watch_location_expression.
3089 (rust_language_data): Delete la_watch_location_expression
3090 initializer.
3091 (rust_language::watch_location_expression): New member function,
3092 implementation from rust_watch_location_expression.
3093
3094 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3095
3096 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
3097 ada_language::collect_symbol_completion_matches.
3098 (ada_language_data): Delete la_collect_symbol_completion_matches
3099 initializer.
3100 (ada_language::collect_symbol_completion_matches): New member
3101 function, implementation from
3102 ada_collect_symbol_completion_matches.
3103 * c-lang.c (c_language_data): Delete
3104 la_collect_symbol_completion_matches initializer.
3105 (cplus_language_data): Likewise.
3106 (asm_language_data): Likewise.
3107 (minimal_language_data): Likewise.
3108 * d-lang.c (d_language_data): Likewise.
3109 * f-lang.c (f_collect_symbol_completion_matches): Rename to
3110 f_language::collect_symbol_completion_matches.
3111 (f_language_data): Delete la_collect_symbol_completion_matches
3112 initializer.
3113 (f_language::collect_symbol_completion_matches) New member
3114 function, implementation from f_collect_symbol_completion_matches.
3115 * go-lang.c (go_language_data): Delete
3116 la_collect_symbol_completion_matches initializer.
3117 * language.c (unknown_language_data): Likewise.
3118 (auto_language_data): Likewise.
3119 * language.h (language_data): Delete
3120 la_collect_symbol_completion_matches field.
3121 (language_defn::collect_symbol_completion_matches): New member
3122 function.
3123 * m2-lang.c (m2_language_data): Delete
3124 la_collect_symbol_completion_matches initializer.
3125 * objc-lang.c (objc_language_data): Likewise.
3126 * opencl-lang.c (opencl_language_data): Likewise.
3127 * p-lang.c (pascal_language_data): Likewise.
3128 * rust-lang.c (rust_language_data): Likewise.
3129 * symtab.c (default_collect_symbol_completion_matches): Delete.
3130 (collect_symbol_completion_matches): Update call to
3131 collect_symbol_completion_matches.
3132 (collect_symbol_completion_matches_type): Likewise.
3133 * symtab.h (default_collect_symbol_completion_matches): Delete
3134 declaration.
3135
3136 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3137
3138 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
3139 (ada_language_data): Delete la_word_break_characters initializer.
3140 (ada_language::word_break_characters): New member function.
3141 * c-lang.c (c_language_data): Delete la_word_break_characters
3142 initializer.
3143 (cplus_language_data): Likewise.
3144 (asm_language_data): Likewise.
3145 (minimal_language_data): Likewise.
3146 * completer.c: Update global comment.
3147 (advance_to_expression_complete_word_point): Update call to
3148 word_break_characters.
3149 (complete_files_symbols): Likewise.
3150 (complete_line_internal_1): Likewise.
3151 (default_completer_handle_brkchars): Likewise.
3152 (skip_quoted_chars): Likewise.
3153 * d-lang.c (d_language_data): Delete la_word_break_characters
3154 initializer.
3155 * f-lang.c (f_word_break_characters): Delete.
3156 (f_language_data): Delete la_word_break_characters initializer.
3157 (f_language::word_break_characters): New member function.
3158 * go-lang.c (go_language_data): Delete la_word_break_characters
3159 initializer.
3160 * language.c (unknown_language_data): Likewise.
3161 (auto_language_data): Likewise.
3162 * language.h (default_word_break_characters): Move declaration to
3163 earlier in the file.
3164 (language_data): Delete la_word_break_characters field.
3165 (language_defn::word_break_characters): New member function.
3166 * m2-lang.c (m2_language_data): Delete la_word_break_characters
3167 initializer.
3168 * objc-lang.c (objc_language_data): Likewise.
3169 * opencl-lang.c (opencl_language_data): Likewise.
3170 * p-lang.c (pascal_language_data): Likewise.
3171 * rust-lang.c (rust_language_data): Likewise.
3172
3173 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3174
3175 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
3176 (ada_language_data): Delete la_get_symbol_name_matcher
3177 initializer.
3178 (language_defn::get_symbol_name_matcher_inner): New member
3179 function.
3180 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
3181 initializer.
3182 (cplus_language_data): Likewise.
3183 (cplus_language::get_symbol_name_matcher_inner): New member
3184 function.
3185 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
3186 (minimal_language_data): Likewise.
3187 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
3188 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
3189 initializer.
3190 * dictionary.c (iter_match_first_hashed): Update call to
3191 get_symbol_name_matcher.
3192 (iter_match_next_hashed): Likewise.
3193 (iter_match_next_linear): Likewise.
3194 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
3195 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
3196 initializer.
3197 (f_language::get_symbol_name_matcher_inner): New member function.
3198 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
3199 initializer.
3200 * language.c (default_symbol_name_matcher): Update header comment,
3201 make static.
3202 (language_defn::get_symbol_name_matcher): New definition.
3203 (language_defn::get_symbol_name_matcher_inner): Likewise.
3204 (get_symbol_name_matcher): Delete.
3205 (unknown_language_data): Delete la_get_symbol_name_matcher
3206 initializer.
3207 (auto_language_data): Likewise.
3208 * language.h (language_data): Delete la_get_symbol_name_matcher
3209 field.
3210 (language_defn::get_symbol_name_matcher): New member function.
3211 (language_defn::get_symbol_name_matcher_inner): Likewise.
3212 (default_symbol_name_matcher): Delete declaration.
3213 * linespec.c (find_methods): Update call to
3214 get_symbol_name_matcher.
3215 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
3216 initializer.
3217 * minsyms.c (lookup_minimal_symbol): Update call to
3218 get_symbol_name_matcher.
3219 (iterate_over_minimal_symbols): Likewise.
3220 * objc-lang.c (objc_language_data): Delete
3221 la_get_symbol_name_matcher initializer.
3222 * opencl-lang.c (opencl_language_data): Likewise.
3223 * p-lang.c (pascal_language_data): Likewise.
3224 * psymtab.c (psymbol_name_matches): Update call to
3225 get_symbol_name_matcher.
3226 * rust-lang.c (rust_language_data): Delete
3227 la_get_symbol_name_matcher initializer.
3228 * symtab.c (symbol_matches_search_name): Update call to
3229 get_symbol_name_matcher.
3230 (compare_symbol_name): Likewise.
3231
3232 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3233
3234 * ada-lang.c (ada_language_data): Delete la_compute_program
3235 initializer.
3236 * c-lang.c (c_language_data): Likewise.
3237 (c_language::compute_program): New member function.
3238 (cplus_language_data): Delete la_compute_program initializer.
3239 (cplus_language::compute_program): New member function.
3240 (asm_language_data): Delete la_compute_program initializer.
3241 (minimal_language_data): Likewise.
3242 * c-lang.h (c_compute_program): Update comment.
3243 (cplus_compute_program): Likewise.
3244 * compile/compile-c-support.c (c_compute_program): Likewise.
3245 (cplus_compute_program): Likewise.
3246 * compile/compile.c (compile_to_object): Update call to
3247 la_compute_program.
3248 * d-lang.c (d_language_data): Delete la_compute_program
3249 initializer.
3250 * f-lang.c (f_language_data): Likewise.
3251 * go-lang.c (go_language_data): Likewise.
3252 * language.c (unknown_language_data): Likewise.
3253 (auto_language_data): Likewise.
3254 * language.h (language_data): Delete la_compute_program field.
3255 (language_defn::compute_program): New member function.
3256 * m2-lang.c (m2_language_data): Delete la_compute_program
3257 initializer.
3258 * objc-lang.c (objc_language_data): Likewise.
3259 * opencl-lang.c (opencl_language_data): Likewise.
3260 * p-lang.c (pascal_language_data): Likewise.
3261 * rust-lang.c (rust_language_data): Likewise.
3262
3263 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3264
3265 * ada-lang.c (ada_language_data) Delete
3266 la_class_name_from_physname initializer.
3267 * c-lang.c (c_language_data): Likewise.
3268 (cplus_language_data): Likewise.
3269 (cplus_language::class_name_from_physname): New member function.
3270 (asm_language_data): Delete la_class_name_from_physname
3271 initializer.
3272 (minimal_language_data): Likewise.
3273 * d-lang.c (d_language_data): Likewise.
3274 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
3275 method on language_defn class.
3276 (guess_full_die_structure_name): Likewise.
3277 * f-lang.c (f_language_data): Delete la_class_name_from_physname
3278 initializer.
3279 * go-lang.c (go_language_data): Likewise.
3280 * language.c (language_class_name_from_physname): Delete.
3281 (unk_lang_class_name): Delete.
3282 (unknown_language_data): Delete la_class_name_from_physname
3283 initializer.
3284 (auto_language_data): Likewise.
3285 * language.h (language_data): Delete la_class_name_from_physname
3286 field.
3287 (language_defn::class_name_from_physname): New function.
3288 (language_class_name_from_physname): Delete declaration.
3289 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
3290 initializer.
3291 * objc-lang.c (objc_language_data): Likewise.
3292 * opencl-lang.c (opencl_language_data): Likewise.
3293 * p-lang.c (pascal_language_data): Likewise.
3294 * rust-lang.c (rust_language_data): Likewise.
3295
3296 2020-06-16 Tom Tromey <tom@tromey.com>
3297
3298 * tui/tui-data.h (STATUS_NAME): New macro.
3299 * tui/tui-layout.c (tui_remove_some_windows)
3300 (initialize_known_windows, tui_register_window)
3301 (tui_layout_split::remove_windows, initialize_layouts)
3302 (tui_new_layout_command): Don't use hard-coded window names.
3303
3304 2020-06-16 Tom Tromey <tom@tromey.com>
3305
3306 PR tui/25348:
3307 * tui/tui.c (tui_ensure_readline_initialized): Rename from
3308 tui_initialize_readline. Only run once. Call rl_initialize.
3309 * tui/tui.h (tui_ensure_readline_initialized): Rename from
3310 tui_initialize_readline.
3311 * tui/tui-io.c (tui_setup_io): Call
3312 tui_ensure_readline_initialized.
3313 * tui/tui-interp.c (tui_interp::init): Update.
3314
3315 2020-06-16 Tom Tromey <tom@tromey.com>
3316
3317 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
3318 Also preserve the status window.
3319
3320 2020-06-16 Tom Tromey <tom@tromey.com>
3321
3322 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
3323 where m_window==nullptr.
3324
3325 2020-06-15 Tom Tromey <tromey@adacore.com>
3326
3327 * windows-nat.c (windows_nat::handle_output_debug_string):
3328 Update.
3329 (windows_nat::handle_ms_vc_exception): Update.
3330 * target.h (target_read_string): Change API.
3331 * target.c (target_read_string): Change API.
3332 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
3333 Update.
3334 * solib-frv.c (frv_current_sos): Update.
3335 * solib-dsbt.c (dsbt_current_sos): Update.
3336 * solib-darwin.c (darwin_current_sos): Update.
3337 * linux-thread-db.c (inferior_has_bug): Update.
3338 * expprint.c (print_subexp_standard): Update.
3339 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
3340 (ada_exception_message_1): Update.
3341
3342 2020-06-15 Tom Tromey <tromey@adacore.com>
3343
3344 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
3345
3346 2020-06-15 Tom Tromey <tromey@adacore.com>
3347
3348 * valprint.c (read_string): Update comment.
3349 * target.c (MIN): Remove.
3350 (target_read_string): Rewrite.
3351
3352 2020-06-15 Tom Tromey <tromey@adacore.com>
3353
3354 * corefile.c (read_memory_string): Remove.
3355 * ada-valprint.c (ada_value_print_ptr): Update.
3356 * ada-lang.h (ada_tag_name): Change return type.
3357 * ada-lang.c (type_from_tag): Update.
3358 (ada_tag_name_from_tsd): Change return type. Use
3359 target_read_string.
3360 (ada_tag_name): Likewise.
3361 * gdbcore.h (read_memory_string): Don't declare.
3362
3363 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
3364
3365 * symtab.c (rbreak_command): Ignore Windows drive colon.
3366
3367 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
3368
3369 * NEWS: Mention removed GDBserver host support.
3370
3371 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
3372
3373 * features/riscv/rebuild-csr-xml.sh: Updated.
3374
3375 2020-06-11 Tom Tromey <tom@tromey.com>
3376
3377 PR gdb/18318:
3378 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3379
3380 2020-06-09 Jonny Grant <jg@jguk.org>
3381 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3382
3383 * main.c (captured_main_1): Don't print new line after help.
3384 (print_gdb_help): add mailing list and IRC channel information
3385 to --help. Add new lines between items in the footer. Remove
3386 quotes around bug url.
3387
3388 2020-06-11 Keith Seitz <keiths@redhat.com>
3389
3390 PR gdb/21356
3391 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3392 Resolve typedefs for type length calculations.
3393
3394 2020-06-10 Tom de Vries <tdevries@suse.de>
3395
3396 PR ada/24713
3397 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3398 (write_psymbols): Enable .gdb_index for ada.
3399 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3400 ada.
3401
3402 2020-06-10 Tom de Vries <tdevries@suse.de>
3403
3404 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3405 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3406 namei" instead of "const char *name" argument.
3407 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3408 dw2_symtab_iter_init.
3409
3410 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3411
3412 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3413 to use type::field and field::type instead.
3414
3415 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3416
3417 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3418 to use field::type instead.
3419
3420 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3421
3422 * gdbtypes.h (struct field) <type, set_type>: New methods.
3423 Rename `type` field to...
3424 <m_type>: ... this. Change references throughout to use type or
3425 set_type methods.
3426 (FIELD_TYPE): Use field::type. Change call sites that modify
3427 the field's type to use field::set_type instead.
3428
3429 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3430
3431 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3432 to use type::index_type instead.
3433
3434 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3435
3436 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3437 methods.
3438 (TYPE_INDEX_TYPE): Use type::index_type.
3439 * gdbtypes.c (create_array_type_with_stride): Likewise.
3440
3441 2020-06-07 Tom Tromey <tom@tromey.com>
3442
3443 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3444 parameter.
3445 (generic_value_print): Update.
3446
3447 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3448
3449 Revert commit 982a38f60b0.
3450 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3451
3452 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3453
3454 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3455 avoid use after free.
3456
3457 2020-06-05 Tom de Vries <tdevries@suse.de>
3458
3459 * NEWS: Fix typos.
3460
3461 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
3462
3463 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3464 the per_bfd object.
3465 (dwarf2_read_debug_names): Likewise.
3466 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3467 object when re-using a per_bfd object with an index.
3468
3469 2020-06-03 Tom de Vries <tdevries@suse.de>
3470
3471 PR symtab/26046
3472 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3473 children for C++.
3474 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3475 DW_TAG_subprogram.
3476
3477 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3478
3479 * ada-lang.c (ada_language_data): Delete skip_trampoline
3480 initializer.
3481 * c-lang.c (c_language_data): Likewise.
3482 (cplus_language_data): Likewise.
3483 (cplus_language::skip_trampoline): New member function.
3484 (asm_language_data): Delete skip_trampoline initializer.
3485 (minimal_language_data): Likewise.
3486 * d-lang.c (d_language_data): Likewise.
3487 * f-lang.c (f_language_data): Likewise.
3488 * go-lang.c (go_language_data): Likewise.
3489 * language.c (unk_lang_trampoline): Delete function.
3490 (skip_language_trampoline): Update.
3491 (unknown_language_data): Delete skip_trampoline initializer.
3492 (auto_language_data): Likewise.
3493 * language.h (language_data): Delete skip_trampoline field.
3494 (language_defn::skip_trampoline): New function.
3495 * m2-lang.c (m2_language_data): Delete skip_trampoline
3496 initializer.
3497 * objc-lang.c (objc_skip_trampoline): Delete function, move
3498 implementation to objc_language::skip_trampoline.
3499 (objc_language_data): Delete skip_trampoline initializer.
3500 (objc_language::skip_trampoline): New member function with
3501 implementation from objc_skip_trampoline.
3502 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3503 initializer.
3504 * p-lang.c (pascal_language_data): Likewise.
3505 * rust-lang.c (rust_language_data): Likewise.
3506
3507 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3508
3509 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3510 (ada_language::demangle): New member function.
3511 * c-lang.c (c_language_data): Delete la_demangle initializer.
3512 (cplus_language_data): Delete la_demangle initializer.
3513 (cplus_language::demangle): New member function.
3514 (asm_language_data): Delete la_demangle initializer.
3515 (minimal_language_data): Delete la_demangle initializer.
3516 * d-lang.c (d_language_data): Delete la_demangle initializer.
3517 (d_language::demangle): New member function.
3518 * f-lang.c (f_language_data): Delete la_demangle initializer.
3519 (f_language::demangle): New member function.
3520 * go-lang.c (go_language_data): Delete la_demangle initializer.
3521 (go_language::demangle): New member function.
3522 * language.c (language_demangle): Update.
3523 (unk_lang_demangle): Delete.
3524 (unknown_language_data): Delete la_demangle initializer.
3525 (unknown_language::demangle): New member function.
3526 (auto_language_data): Delete la_demangle initializer.
3527 (auto_language::demangle): New member function.
3528 * language.h (language_data): Delete la_demangle field.
3529 (language_defn::demangle): New function.
3530 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3531 * objc-lang.c (objc_language_data): Delete la_demangle
3532 initializer.
3533 (objc_language::demangle): New member function.
3534 * opencl-lang.c (opencl_language_data): Delete la_demangle
3535 initializer.
3536 * p-lang.c (pascal_language_data): Likewise.
3537 * rust-lang.c (rust_language_data): Likewise.
3538 (rust_language::demangle): New member function.
3539
3540 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3541
3542 * ada-lang.c (ada_language_data): Delete la_print_type
3543 initializer.
3544 (ada_language::print_type): New member function.
3545 * c-lang.c (c_language_data): Delete la_print_type initializer.
3546 (c_language::print_type): New member function.
3547 (cplus_language_data): Delete la_print_type initializer.
3548 (cplus_language::print_type): New member function.
3549 (asm_language_data): Delete la_print_type initializer.
3550 (asm_language::print_type): New member function.
3551 (minimal_language_data): Delete la_print_type initializer.
3552 (minimal_language::print_type): New member function.
3553 * d-lang.c (d_language_data): Delete la_print_type initializer.
3554 (d_language::print_type): New member function.
3555 * f-lang.c (f_language_data): Delete la_print_type initializer.
3556 (f_language::print_type): New member function.
3557 * go-lang.c (go_language_data): Delete la_print_type initializer.
3558 (go_language::print_type): New member function.
3559 * language.c (unk_lang_print_type): Delete.
3560 (unknown_language_data): Delete la_print_type initializer.
3561 (unknown_language::print_type): New member function.
3562 (auto_language_data): Delete la_print_type initializer.
3563 (auto_language::print_type): New member function.
3564 * language.h (language_data): Delete la_print_type field.
3565 (language_defn::print_type): New function.
3566 (LA_PRINT_TYPE): Update.
3567 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3568 (m2_language::print_type): New member function.
3569 * objc-lang.c (objc_language_data): Delete la_print_type
3570 initializer.
3571 (objc_language::print_type): New member function.
3572 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3573 to opencl_language::print_type.
3574 (opencl_language_data): Delete la_print_type initializer.
3575 (opencl_language::print_type): New member function, implementation
3576 from opencl_print_type.
3577 * p-lang.c (pascal_language_data): Delete la_print_type
3578 initializer.
3579 (pascal_language::print_type): New member function.
3580 * rust-lang.c (rust_print_type): Delete, implementation moved to
3581 rust_language::print_type.
3582 (rust_language_data): Delete la_print_type initializer.
3583 (rust_language::print_type): New member function, implementation
3584 from rust_print_type.
3585
3586 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3587
3588 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3589 implementation moves to...
3590 (ada_language::sniff_from_mangled_name): ...here. Update return
3591 type.
3592 (ada_language_data): Delete la_sniff_from_mangled_name
3593 initializer.
3594 * c-lang.c (c_language_data): Likewise.
3595 (cplus_language_data): Likewise.
3596 (cplus_language::sniff_from_mangled_name): New member function,
3597 implementation taken from gdb_sniff_from_mangled_name.
3598 (asm_language_data): Delete la_sniff_from_mangled_name
3599 initializer.
3600 (minimal_language_data): Likewise.
3601 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3602 implementation moves to cplus_language::sniff_from_mangled_name.
3603 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3604 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3605 moves to...
3606 (d_language::sniff_from_mangled_name): ...here.
3607 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3608 * f-lang.c (f_language_data): Likewise.
3609 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3610 moves to...
3611 (go_language::sniff_from_mangled_name): ...here.
3612 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3613 * language.c (language_sniff_from_mangled_name): Delete.
3614 (unknown_language_data): Delete la_sniff_from_mangled_name
3615 initializer.
3616 (auto_language_data): Likewise.
3617 * language.h (language_data): Delete la_sniff_from_mangled_name
3618 field.
3619 (language_defn::sniff_from_mangled_name): New function.
3620 (language_sniff_from_mangled_name): Delete declaration.
3621 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3622 field.
3623 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3624 implementation moves to...
3625 (objc_language::sniff_from_mangled_name): ...here.
3626 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3627 * opencl-lang.c (opencl_language_data): Likewise.
3628 * p-lang.c (pascal_language_data): Likewise.
3629 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3630 implementation moves to...
3631 (rust_language::sniff_from_mangled_name): ...here.
3632 (rust_language_data): Delete la_sniff_from_mangled_name
3633 initializer.
3634 * symtab.c (symbol_find_demangled_name): Call
3635 sniff_from_mangled_name member function.
3636
3637 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3638
3639 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3640 initializer.
3641 * c-lang.c (c_language_data): Likewise.
3642 (cplus_language_data): Likewise.
3643 (cplus_language::search_name_hash): New member function.
3644 (asm_language_data): Delete la_search_name_hash initializer.
3645 (minimal_language_data): Likewise.
3646 * d-lang.c (d_language_data): Likewise.
3647 * dictionary.c (default_search_name_hash): Rename to...
3648 (language_defn::search_name_hash): ...this.
3649 * f-lang.c (f_language_data): Likewise.
3650 (f_language::search_name_hash): New member function.
3651 * go-lang.c (go_language_data): Delete la_search_name_hash
3652 initializer.
3653 * language.c (unknown_language_data): Likewise.
3654 (auto_language_data): Likewise.
3655 * language.h (struct language_data): Delete la_search_name_hash
3656 field.
3657 (language_defn::search_name_hash): Declare new member function.
3658 (default_search_name_hash): Delete declaration.
3659 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3660 initializer.
3661 * objc-lang.c (objc_language_data): Likewise.
3662 * opencl-lang.c (opencl_language_data): Likewise.
3663 * p-lang.c (pascal_language_data): Likewise.
3664 * rust-lang.c (rust_language_data): Likewise.
3665 * symtab.c (search_name_hash): Update call.
3666
3667 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3668
3669 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3670 initializer.
3671 * c-lang.c (class compile_instance): Declare.
3672 (c_language_data): Delete la_get_compile_instance initializer.
3673 (c_language::get_compile_instance): New member function.
3674 (cplus_language_data): Delete la_get_compile_instance initializer.
3675 (cplus_language::get_compile_instance): New member function.
3676 (asm_language_data): Delete la_get_compile_instance initializer.
3677 (minimal_language_data): Likewise.
3678 * c-lang.h (c_get_compile_context): Update comment.
3679 (cplus_get_compile_context): Update comment.
3680 * compile/compile.c (compile_to_object): Update calls, don't rely
3681 on function pointer being NULL.
3682 * d-lang.c (d_language_data): Delete la_get_compile_instance
3683 initializer.
3684 * f-lang.c (f_language_data): Likewise.
3685 * go-lang.c (go_language_data): Likewise.
3686 * language.c (unknown_language_data): Likewise.
3687 (auto_language_data): Likewise.
3688 * language.h (language_data): Delete la_get_compile_instance field.
3689 (language_defn::get_compile_instance): New member function.
3690 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3691 initializer.
3692 * objc-lang.c (objc_language_data): Likewise.
3693 * opencl-lang.c (opencl_language_data): Likewise.
3694 * p-lang.c (pascal_language_data): Likewise.
3695 * rust-lang.c (rust_language_data): Likewise.
3696
3697 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3698
3699 * ada-lang.c (ada_add_all_symbols): Update comment.
3700 (ada_iterate_over_symbols): Delete, move implementation to...
3701 (ada_language::iterate_over_symbols): ...here, a new member
3702 function, rewrite to use range based for loop.
3703 (ada_language_data): Delete la_iterate_over_symbols initializer.
3704 * c-lang.c (c_language_data): Likewise.
3705 (cplus_language_data): Likewise.
3706 (asm_language_data): Likewise.
3707 (minimal_language_data): Likewise.
3708 * d-lang.c (d_language_data): Likewise.
3709 * f-lang.c (f_language_data): Likewise.
3710 * go-lang.c (go_language_data): Likewise.
3711 * language.c (unknown_language_data): Likewise.
3712 (auto_language_data): Likewise.
3713 * language.h (language_data): Delete la_iterate_over_symbols field.
3714 (language_defn::iterate_over_symbols): New member function.
3715 (LA_ITERATE_OVER_SYMBOLS): Update.
3716 * linespec.c (iterate_over_all_matching_symtabs): Update.
3717 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3718 initializer.
3719 * objc-lang.c (objc_language_data): Likewise.
3720 * opencl-lang.c (opencl_language_data): Likewise.
3721 * p-lang.c (pascal_language_data): Likewise.
3722 * rust-lang.c (rust_language_data): Likewise.
3723
3724 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3725
3726 * ada-lang.c (ada_language_data): Delete
3727 la_lookup_transparent_type initializer.
3728 * c-lang.c (c_language_data): Likewise.
3729 (cplus_language_data): Likewise.
3730 (cplus_language::lookup_transparent_type): New member function.
3731 (asm_language_data): Delete la_lookup_transparent_type
3732 initializer.
3733 (minimal_language_data): Likewise.
3734 * d-lang.c (d_language_data): Likewise.
3735 * f-lang.c (f_language_data): Likewise.
3736 * go-lang.c (go_language_data): Likewise.
3737 * language.c (unknown_language_data): Likewise.
3738 (auto_language_data): Likewise.
3739 * language.h (struct language_data): Delete
3740 la_lookup_transparent_type field.
3741 (language_defn::lookup_transparent_type): New member function.
3742 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3743 initializer.
3744 * objc-lang.c (objc_language_data): Likewise.
3745 * opencl-lang.c (opencl_language_data): Likewise.
3746 * p-lang.c (pascal_language_data): Likewise.
3747 * rust-lang.c (rust_language_data): Likewise.
3748 * symtab.c (symbol_matches_domain): Update call.
3749
3750 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3751
3752 * ada-lang.c (ada_language_arch_info): Delete function, move
3753 implementation to...
3754 (ada_language::language_arch_info): ...here, a new member
3755 function.
3756 (ada_language_data): Delete la_language_arch_info.
3757 * c-lang.c (c_language_data): Likewise.
3758 (c_language::language_arch_info): New member function.
3759 (cplus_language_arch_info): Delete function, move
3760 implementation to...
3761 (cplus_language::language_arch_info): ...here, a new member
3762 function.
3763 (cplus_language_data): Delete la_language_arch_info.
3764 (asm_language_data): Likewise.
3765 (asm_language::language_arch_info): New member function.
3766 (minimal_language_data): Delete la_language_arch_info.
3767 (minimal_language::language_arch_info): New member function.
3768 * d-lang.c (d_language_arch_info): Delete function, move
3769 implementation to...
3770 (d_language::language_arch_info): ...here, a new member
3771 function.
3772 (d_language_data): Delete la_language_arch_info.
3773 * f-lang.c (f_language_arch_info): Delete function, move
3774 implementation to...
3775 (f_language::language_arch_info): ...here, a new member
3776 function.
3777 (f_language_data): Delete la_language_arch_info.
3778 * go-lang.c (go_language_arch_info): Delete function, move
3779 implementation to...
3780 (go_language::language_arch_info): ...here, a new member
3781 function.
3782 (go_language_data): Delete la_language_arch_info.
3783 * language.c (unknown_language_data): Likewise.
3784 (unknown_language::language_arch_info): New member function.
3785 (auto_language_data): Delete la_language_arch_info.
3786 (auto_language::language_arch_info): New member function.
3787 (language_gdbarch_post_init): Update call to
3788 la_language_arch_info.
3789 * language.h (language_data): Delete la_language_arch_info
3790 function pointer.
3791 (language_defn::language_arch_info): New function.
3792 * m2-lang.c (m2_language_arch_info): Delete function, move
3793 implementation to...
3794 (m2_language::language_arch_info): ...here, a new member
3795 function.
3796 (m2_language_data): Delete la_language_arch_info.
3797 * objc-lang.c (objc_language_arch_info): Delete function, move
3798 implementation to...
3799 (objc_language::language_arch_info): ...here, a new member
3800 function.
3801 (objc_language_data): Delete la_language_arch_info.
3802 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3803 implementation to...
3804 (opencl_language::language_arch_info): ...here, a new member
3805 function.
3806 (opencl_language_data): Delete la_language_arch_info.
3807 * p-lang.c (pascal_language_arch_info): Delete function, move
3808 implementation to...
3809 (pascal_language::language_arch_info): ...here, a new member
3810 function.
3811 (pascal_language_data): Delete la_language_arch_info.
3812 * rust-lang.c (rust_language_arch_info): Delete function, move
3813 implementation to...
3814 (rust_language::language_arch_info): ...here, a new member
3815 function.
3816 (rust_language_data): Delete la_language_arch_info.
3817
3818 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3819
3820 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3821 initializer.
3822 * c-lang.c (c_language_data): Likewise.
3823 (cplus_language_data): Likewise.
3824 (cplus_language::pass_by_reference_info): New method.
3825 (asm_language_data): Delete la_pass_by_reference initializer.
3826 (minimal_language_data): Likewise.
3827 * cp-abi.c (cp_pass_by_reference): Remove use of
3828 default_pass_by_reference.
3829 * d-lang.c (d_language_data): Likewise.
3830 * f-lang.c (f_language_data): Likewise.
3831 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3832 default_pass_by_reference.
3833 * go-lang.c (go_language_data): Likewise.
3834 * language.c (language_pass_by_reference): Update.
3835 (default_pass_by_reference): Delete.
3836 (unknown_language_data): Delete la_pass_by_reference
3837 initializer.
3838 (auto_language_data): Likewise.
3839 * language.h (struct language_data): Delete la_pass_by_reference
3840 field.
3841 (language_defn::pass_by_reference_info): New member function.
3842 (default_pass_by_reference): Delete declaration.
3843 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3844 initializer.
3845 * objc-lang.c (objc_language_data): Likewise.
3846 * opencl-lang.c (opencl_language_data): Likewise.
3847 * p-lang.c (pascal_language_data): Likewise.
3848 * rust-lang.c (rust_language_data): Likewise.
3849
3850 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3851
3852 * ada-lang.c (ada_read_var_value): Delete function, move
3853 implementation to...
3854 (ada_language::read_var_value): ...here.
3855 (ada_language_data): Delete la_read_var_value initializer.
3856 * c-lang.c (c_language_data): Likewise.
3857 (cplus_language_data): Likewise.
3858 (minimal_language_data): Likewise.
3859 * d-lang.c (d_language_data): Likewise.
3860 * f-lang.c (f_language_data): Likewise.
3861 * findvar.c (default_read_var_value): Rename to...
3862 (language_defn::read_var_value): ...this.
3863 * findvar.c (read_var_value): Update header comment, and change to
3864 call member function instead of function pointer.
3865 * go-lang.c (go_language_data): Likewise.
3866 * language.c (unknown_language_data): Delete la_read_var_value
3867 initializer.
3868 (auto_language_data): Likewise.
3869 * language.h (struct language_data): Delete la_read_var_value
3870 field.
3871 (language_defn::read_var_value): New member function.
3872 (default_read_var_value): Delete declaration.
3873 * m2-lang.c (m2_language_data): Delete la_read_var_value
3874 initializer.
3875 * objc-lang.c (objc_language_data): Likewise.
3876 * opencl-lang.c (opencl_language_data): Likewise.
3877 * p-lang.c (pascal_language_data): Likewise.
3878 * rust-lang.c (rust_language_data): Likewise.
3879 * value.h (default_read_var_value): Delete declaration.
3880
3881 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3882
3883 * ada-lang.c (ada_print_array_index): Delete function, move
3884 implementation to...
3885 (ada_language::print_array_index): ...here.
3886 (ada_language_data): Delete la_print_array_index initializer.
3887 * c-lang.c (c_language_data): Likewise.
3888 (cplus_language_data): Likewise.
3889 (minimal_language_data): Likewise.
3890 * d-lang.c (d_language_data): Likewise.
3891 * f-lang.c (f_language_data): Likewise.
3892 * go-lang.c (go_language_data): Likewise.
3893 * language.c (default_print_array_index): Delete function, move
3894 implementation to...
3895 (language_defn::print_array_index): ...here.
3896 (unknown_language_data): Delete la_print_array_index initializer.
3897 (auto_language_data): Likewise.
3898 * language.h (struct language_data): Delete la_print_array_index
3899 field.
3900 (language_defn::print_array_index): New member function.
3901 (LA_PRINT_ARRAY_INDEX): Update.
3902 (default_print_array_index): Delete declaration.
3903 * m2-lang.c (m2_language_data): Delete la_print_array_index
3904 initializer.
3905 * objc-lang.c (objc_language_data): Likewise.
3906 * opencl-lang.c (opencl_language_data): Likewise.
3907 * p-lang.c (pascal_language_data): Likewise.
3908 * rust-lang.c (rust_language_data): Likewise.
3909
3910 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3911
3912 * gdb/ada-lang.c (ada_language_defn): Convert to...
3913 (ada_language_data): ...this.
3914 (class ada_language): New class.
3915 (ada_language_defn): New static global.
3916 * gdb/c-lang.c (c_language_defn): Convert to...
3917 (c_language_data): ...this.
3918 (class c_language): New class.
3919 (c_language_defn): New static global.
3920 (cplus_language_defn): Convert to...
3921 (cplus_language_data): ...this.
3922 (class cplus_language): New class.
3923 (cplus_language_defn): New static global.
3924 (asm_language_defn): Convert to...
3925 (asm_language_data): ...this.
3926 (class asm_language): New class.
3927 (asm_language_defn): New static global.
3928 (minimal_language_defn): Convert to...
3929 (minimal_language_data): ...this.
3930 (class minimal_language): New class.
3931 (minimal_language_defn): New static global.
3932 * gdb/d-lang.c (d_language_defn): Convert to...
3933 (d_language_data): ...this.
3934 (class d_language): New class.
3935 (d_language_defn): New static global.
3936 * gdb/f-lang.c (f_language_defn): Convert to...
3937 (f_language_data): ...this.
3938 (class f_language): New class.
3939 (f_language_defn): New static global.
3940 * gdb/go-lang.c (go_language_defn): Convert to...
3941 (go_language_data): ...this.
3942 (class go_language): New class.
3943 (go_language_defn): New static global.
3944 * gdb/language.c (unknown_language_defn): Remove declaration.
3945 (current_language): Initialize to nullptr, real initialization is
3946 moved to _initialize_language.
3947 (languages): Delete global.
3948 (language_defn::languages): Define.
3949 (set_language_command): Use language_defn::languages.
3950 (set_language): Likewise.
3951 (range_error): Likewise.
3952 (language_enum): Likewise.
3953 (language_def): Likewise.
3954 (add_set_language_command): Use language_def::languages for the
3955 language list, and language_def to lookup language pointers.
3956 (skip_language_trampoline): Use language_defn::languages.
3957 (unknown_language_defn): Convert to...
3958 (unknown_language_data): ...this.
3959 (class unknown_language): New class.
3960 (unknown_language_defn): New static global.
3961 (auto_language_defn): Convert to...
3962 (auto_language_data): ...this.
3963 (class auto_language): New class.
3964 (auto_language_defn): New static global.
3965 (language_gdbarch_post_init): Use language_defn::languages.
3966 (_initialize_language): Initialize current_language.
3967 * gdb/language.h (struct language_defn): Rename to...
3968 (struct language_data): ...this.
3969 (struct language_defn): New.
3970 (auto_language_defn): Delete.
3971 (unknown_language_defn): Delete.
3972 (minimal_language_defn): Delete.
3973 (ada_language_defn): Delete.
3974 (asm_language_defn): Delete.
3975 (c_language_defn): Delete.
3976 (cplus_language_defn): Delete.
3977 (d_language_defn): Delete.
3978 (f_language_defn): Delete.
3979 (go_language_defn): Delete.
3980 (m2_language_defn): Delete.
3981 (objc_language_defn): Delete.
3982 (opencl_language_defn): Delete.
3983 (pascal_language_defn): Delete.
3984 (rust_language_defn): Delete.
3985 * gdb/m2-lang.c (m2_language_defn): Convert to...
3986 (m2_language_data): ...this.
3987 (class m2_language): New class.
3988 (m2_language_defn): New static global.
3989 * gdb/objc-lang.c (objc_language_defn): Convert to...
3990 (objc_language_data): ...this.
3991 (class objc_language): New class.
3992 (objc_language_defn): New static global.
3993 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3994 (opencl_language_data): ...this.
3995 (class opencl_language): New class.
3996 (opencl_language_defn): New static global.
3997 * gdb/p-lang.c (pascal_language_defn): Convert to...
3998 (pascal_language_data): ...this.
3999 (class pascal_language): New class.
4000 (pascal_language_defn): New static global.
4001 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
4002 language pointer, update comment format.
4003 * gdb/rust-lang.c (rust_language_defn): Convert to...
4004 (rust_language_data): ...this.
4005 (class rust_language): New class.
4006 (rust_language_defn): New static global.
4007
4008 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
4009
4010 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
4011 member variable.
4012 <m_stmt_at_address>: New member variable.
4013 (lnp_state_machine::record_line): Don't record some lines, update
4014 tracking of is_stmt at the same address.
4015 (lnp_state_machine::lnp_state_machine): Initialise new member
4016 variables.
4017
4018 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4019
4020 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
4021 "-include gnu-nat-mig.h".
4022 * gnu-nat-mig.h: New file.
4023 * gnu-nat.c: Include "gnu-nat-mig.h".
4024 (exc_server, msg_reply_server, notify_server,
4025 process_reply_server): Remove declarations.
4026
4027 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4028
4029 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
4030 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
4031 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
4032 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
4033 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
4034 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
4035 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
4036 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
4037 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
4038 to gnu_nat_target class.
4039 * gnu-nat.c: Likewise.
4040 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
4041 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
4042 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
4043 object.
4044 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
4045 instead of `gnu_target'.
4046
4047 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4048
4049 * i386-gnu-tdep.c: Include "gdbcore.h"
4050 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
4051 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
4052 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
4053 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
4054 i386_gnu_sigcontext_addr): New functions
4055 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
4056 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
4057 tdep.
4058
4059 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4060
4061 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
4062 before fork_inferior call. Avoid calling it if target_is_pushed returns
4063 true.
4064
4065 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4066
4067 * gnu-nat.h (gnu_target): New variable declaration.
4068 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
4069 gnu_target.
4070 * gnu-nat.c (gnu_target): New variable.
4071 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
4072 add_thread_silent, and add_thread calls.
4073 (gnu_nat_target::create_inferior): Pass gnu_target to
4074 add_thread_silent, thread_change_ptid call.
4075 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
4076 call.
4077
4078 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4079
4080 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
4081 (gnu_nat_target::find_memory_regions): Remove unused
4082 `old_address' variable.
4083
4084 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4085
4086 * gnu-nat.c: Include "gdbarch.h".
4087
4088 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4089
4090 * reply_mig_hack.awk (Error return): Cast function through
4091 void *, to bypass compiler function call check.
4092
4093 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4094
4095 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
4096 $(srcdir)/reply_mig_hack.awk.
4097
4098 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4099
4100 * gnu-nat.h (gnu_debug_flag): Set type to bool.
4101
4102 2020-05-30 Jonny Grant <jg@jguk.org>
4103
4104 * configure.ac (ACX_BUGURL): change bug URL to https.
4105
4106 2020-05-30 Pedro Alves <palves@redhat.com>
4107
4108 * cp-support.c (replace_typedefs_template): New.
4109 (replace_typedefs_qualified_name): Handle
4110 DEMANGLE_COMPONENT_TEMPLATE.
4111
4112 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
4113
4114 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
4115 dwarf2/index-cache.h, dwarf2/index-write.c,
4116 dwarf2/index-write.h, dwarf2/line-header.c,
4117 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
4118 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
4119 variables and fields from `dwarf2_per_objfile` to just
4120 `per_objfile` throughout.
4121
4122 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
4123
4124 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4125 <push_dwarf_reg_entry_value>: Add comment.
4126
4127 2020-05-28 Kevin Buettner <kevinb@redhat.com>
4128 Keith Seitz <keiths@redhat.com>
4129
4130 * python/python.c (do_start_initialization): Call PyEval_SaveThread
4131 instead of PyEval_ReleaseLock.
4132 (class gdbpy_gil): Move to earlier in file.
4133 (finalize_python): Set gdb_python_initialized.
4134 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
4135 when not initialized.
4136
4137 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
4138
4139 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4140 <push_dwarf_reg_entry_value>: Remove assert. Override
4141 per_objfile with caller_per_objfile.
4142
4143 2020-05-28 Tom de Vries <tdevries@suse.de>
4144
4145 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
4146 PR gold/15646 workaround to symbol kind "type".
4147
4148 2020-05-27 Tom Tromey <tromey@adacore.com>
4149
4150 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
4151
4152 2020-05-27 Tom Tromey <tromey@adacore.com>
4153
4154 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
4155 Use htab_find_with_hash.
4156 <add_abbrev>: Remove "abbrev_number" parameter.
4157 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
4158 "abbrev_number" parameter. Use htab_find_slot_with_hash.
4159 (hash_abbrev): Add comment.
4160 (abbrev_table::lookup_abbrev): Move to header file.
4161 (abbrev_table::read): Update.
4162
4163 2020-05-27 Tom Tromey <tromey@adacore.com>
4164
4165 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
4166 method.
4167 <canonical_name>: New member.
4168 <raw_name>: Rename from "name".
4169 (partial_die_info): Initialize canonical_name.
4170 (scan_partial_symbols): Check raw_name.
4171 (partial_die_parent_scope, partial_die_full_name)
4172 (add_partial_symbol, add_partial_subprogram)
4173 (add_partial_enumeration, load_partial_dies): Use "name" method.
4174 (partial_die_info::name): New method.
4175 (partial_die_info::read, guess_partial_die_structure_name)
4176 (partial_die_info::fixup): Update.
4177
4178 2020-05-27 Tom Tromey <tromey@adacore.com>
4179
4180 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
4181 <get_ref_die_offset>: Inline.
4182 <get_ref_die_offset_complaint>: New method.
4183 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
4184 (attribute::get_ref_die_offset_complaint): Rename from
4185 get_ref_die_offset. Just issue complaint.
4186
4187 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4188
4189 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
4190
4191 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4192
4193 * exec.c (exec_file_attach): Use errno value of first openp failure.
4194
4195 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4196
4197 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
4198 Don't close thread handle.
4199
4200 2020-05-27 Tom Tromey <tom@tromey.com>
4201 Simon Marchi <simon.marchi@efficios.com>
4202
4203 * objfiles.h (struct objfile) <partial_symtabs>: Now a
4204 shared_ptr.
4205 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
4206 member.
4207 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
4208 dwarf2_per_bfd_objfile_data_key>: New globals.
4209 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
4210 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
4211 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
4212 shared.
4213 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
4214 short-circuit when sharing.
4215 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
4216 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
4217
4218 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4219
4220 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
4221 to...
4222 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
4223 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
4224
4225 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4226
4227 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
4228 build_name_components, find_name_components_bounds>:
4229 Add per_objfile parameter.
4230 (struct mapped_index) <symbol_name_at>: Likewise.
4231 (struct mapped_debug_names): Remove constructor.
4232 <dwarf2_per_objfile>: Remove field.
4233 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
4234 (mapped_index_base::find_name_components_bounds,
4235 mapped_index_base::build_name_components,
4236 dw2_expand_symtabs_matching_symbol): Likewise.
4237 (class mock_mapped_index) <symbol_name_at>: Likewise.
4238 (check_match): Likewise.
4239 (check_find_bounds_finds): Likewise.
4240 (test_mapped_index_find_name_component_bounds): Update.
4241 (CHECK_MATCH): Update.
4242 (dw2_expand_symtabs_matching): Update.
4243 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
4244 per_objfile parameter.
4245 <find_vec_in_debug_names>: Likewise.
4246 <m_per_objfile>: New field.
4247 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
4248 parameter.
4249 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
4250 (dw2_debug_names_iterator::next): Update.
4251 (dw2_debug_names_lookup_symbol): Update.
4252 (dw2_debug_names_expand_symtabs_for_function): Update.
4253 (dw2_debug_names_map_matching_symbols): Update.
4254 (dw2_debug_names_expand_symtabs_matching): Update.
4255 (dwarf2_read_debug_names): Update.
4256
4257 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4258
4259 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
4260 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
4261 move to dwarf2_per_objfile.
4262 <read_in_chain>: Remove.
4263 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
4264 remove_all_cus, age_comp_units>: New methods.
4265 <m_dwarf2_cus>: New member.
4266 (struct dwarf2_per_cu_data) <cu>: Remove.
4267 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
4268 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
4269 moved to methods of dwarf2_per_objfile.
4270 (dwarf2_clear_marks): Remove.
4271 (dwarf2_queue_item::~dwarf2_queue_item): Update.
4272 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
4273 (dwarf2_per_bfd::free_cached_comp_units): Remove.
4274 (dwarf2_per_objfile::remove_all_cus): New.
4275 (class free_cached_comp_units) <~free_cached_comp_units>:
4276 Update.
4277 (load_cu): Update.
4278 (dw2_do_instantiate_symtab): Adjust.
4279 (fill_in_sig_entry_from_dwo_entry): Adjust.
4280 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4281 (cutu_reader::cutu_reader): Likewise.
4282 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
4283 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
4284 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
4285 and dwarf2_per_objfile::age_comp_units.
4286 (load_partial_comp_unit): Update.
4287 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
4288 (process_queue): Likewise.
4289 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
4290 backlink.
4291 (dwarf2_read_addr_index): Likewise.
4292 (follow_die_offset): Likewise.
4293 (dwarf2_fetch_die_loc_sect_off): Likewise.
4294 (dwarf2_fetch_constant_bytes): Likewise.
4295 (dwarf2_fetch_die_type_sect_off): Likewise.
4296 (follow_die_sig_1): Likewise.
4297 (load_full_type_unit): Likewise.
4298 (read_signatured_type): Likewise.
4299 (dwarf2_cu::dwarf2_cu): Don't set cu field.
4300 (dwarf2_cu::~dwarf2_cu): Remove.
4301 (dwarf2_per_objfile::get_cu): New.
4302 (dwarf2_per_objfile::set_cu): New.
4303 (age_cached_comp_units): Rename to...
4304 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
4305 to std::unordered_map.
4306 (free_one_cached_comp_unit): Rename to...
4307 (dwarf2_per_objfile::remove_cu): ... this. Adjust
4308 to std::unordered_map.
4309 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
4310 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
4311 a dwarf2_per_objfile in data.
4312 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
4313 (dwarf2_clear_marks): Remove.
4314
4315 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4316
4317 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
4318 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
4319 (init_tu_and_read_dwo_dies): Likewise.
4320 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
4321 (cutu_reader::cutu_reader): Likewise.
4322 (load_partial_comp_unit): Likewise.
4323 (process_psymtab_comp_unit): Update.
4324 (build_type_psymtabs_1): Update.
4325 (process_skeletonless_type_unit): Update.
4326 (load_full_comp_unit): Update.
4327 (find_partial_die): Update.
4328 (dwarf2_read_addr_index): Update.
4329 (read_signatured_type): Update.
4330
4331 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4332
4333 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
4334 m_header_read_in>: New fields.
4335 <get_header>: New method.
4336 * dwarf2/read.c (per_cu_header_read_in): Remove.
4337 (dwarf2_per_cu_data::get_header): New.
4338 (dwarf2_per_cu_data::addr_size): Update.
4339 (dwarf2_per_cu_data::offset_size): Update.
4340 (dwarf2_per_cu_data::ref_addr_size): Update.
4341
4342 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4343
4344 * dwarf2/read.c (load_cu): Return dwarf2_cu.
4345 (dw2_do_instantiate_symtab): Update.
4346 (queue_and_load_all_dwo_tus): Change parameter from
4347 dwarf2_per_cu_data to dwarf2_cu.
4348 (dwarf2_fetch_die_loc_sect_off): Update.
4349 (dwarf2_fetch_constant_bytes): Update.
4350 (dwarf2_fetch_die_type_sect_off): Update.
4351
4352 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4353
4354 * dwarf2/read.c (process_full_comp_unit,
4355 process_full_type_unit): Remove per_cu, per_objfile paramters.
4356 Add dwarf2_cu parameter.
4357 (process_queue): Update.
4358
4359 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4360
4361 * dwarf2/read.c (create_cu_from_index_list): Replace
4362 dwarf2_per_objfile parameter with dwarf2_per_bfd.
4363 (create_cus_from_index_list): Likewise.
4364 (create_cus_from_index): Likewise.
4365 (create_signatured_type_table_from_index): Likewise.
4366 (create_cus_from_debug_names_list): Likewise.
4367 (create_cus_from_debug_names): Likewise.
4368 (dwarf2_read_gdb_index): Update.
4369 (dwarf2_read_debug_names): Update.
4370
4371 2020-05-27 Tom Tromey <tom@tromey.com>
4372 Simon Marchi <simon.marchi@efficios.com>
4373
4374 * dwarf2/read.h (struct dwarf2_per_objfile)
4375 <get_type_for_signatured_type, set_type_for_signatured_type>:
4376 New methods.
4377 <m_type_map>: New member.
4378 (struct signatured_type) <type>: Remove.
4379 * dwarf2/read.c
4380 (dwarf2_per_objfile::get_type_for_signatured_type,
4381 dwarf2_per_objfile::set_type_for_signatured_type): New.
4382 (get_signatured_type): Use new methods.
4383
4384 2020-05-27 Tom Tromey <tom@tromey.com>
4385 Simon Marchi <simon.marchi@efficios.com>
4386
4387 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4388 (struct dwarf2_per_objfile) <type_units>: New member.
4389 <get_type_unit_group_unshareable>: New method.
4390 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4391 num_symtabs, symtabs>: Remove; move to
4392 type_unit_group_unshareable.
4393 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4394 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4395 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4396
4397 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4398
4399 * dwarf2/read.h (struct dwarf2_per_cu_data):
4400 <dwarf2_per_objfile>: Remove.
4401 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4402 dwarf2_per_objfile.
4403 (create_signatured_type_table_from_index): Likewise.
4404 (create_signatured_type_table_from_debug_names): Likewise.
4405 (create_debug_type_hash_table): Likewise.
4406 (fill_in_sig_entry_from_dwo_entry): Likewise.
4407 (create_type_unit_group): Likewise.
4408 (read_comp_units_from_section): Likewise.
4409 (create_cus_hash_table): Likewise.
4410
4411 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4412
4413 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4414 dwarf2_per_cu_data::dwarf2_per_objfile.
4415 (compute_compunit_symtab_includes): Likewise.
4416 (dwarf2_cu::start_symtab): Likewise.
4417
4418 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4419
4420 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4421 parameter.
4422 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4423 (read_namespace_alias): Update.
4424 (lookup_die_type): Update.
4425 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4426 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4427 Update.
4428 (disassemble_dwarf_expression): Update.
4429
4430 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4431
4432 * dwarf2/read.h (struct dwarf2_queue_item): Add
4433 dwarf2_per_objfile parameter, assign new parameter.
4434 <per_objfile>: New field.
4435 * dwarf2/read.c (free_one_cached_comp_unit): Add
4436 dwarf2_per_objfile parameter.
4437 (queue_comp_unit): Likewise.
4438 (dw2_do_instantiate_symtab): Update.
4439 (process_psymtab_comp_unit): Update.
4440 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4441 (process_imported_unit_die): Update.
4442 (queue_and_load_dwo_tu): Update.
4443 (follow_die_offset): Update.
4444 (follow_die_sig_1): Update.
4445
4446 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4447
4448 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4449 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4450 (read_call_site_scope): Assign per_objfile.
4451 (dwarf2_per_cu_data::objfile): Remove.
4452 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4453 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4454 dwarf2_per_objfile parameter.
4455 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4456 dwarf2_per_objfile parameter.
4457 (dwarf_expr_reg_to_entry_parameter): Add output
4458 dwarf2_per_objfile parameter.
4459 (locexpr_get_frame_base): Update.
4460 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4461 <push_dwarf_reg_entry_value>: Update.
4462 <call_site_to_target_addr>: Update.
4463 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4464 parameter.
4465 (value_of_dwarf_reg_entry): Update.
4466 (rw_pieced_value): Update.
4467 (indirect_synthetic_pointer): Update.
4468 (dwarf2_evaluate_property): Update.
4469 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4470 parameter.
4471 (locexpr_read_variable): Update.
4472 (locexpr_get_symbol_read_needs): Update.
4473 (loclist_read_variable): Update.
4474
4475 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4476
4477 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4478 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4479 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4480 parameter.
4481 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4482 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4483 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4484 parameter.
4485 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4486 sect_variable_value): Add dwarf2_per_objfile parameter.
4487 (class dwarf_evaluate_loc_desc) <dwarf_call,
4488 dwarf_variable_value>: Update.
4489 (fetch_const_value_from_synthetic_pointer): Add
4490 dwarf2_per_objfile parameter.
4491 (fetch_const_value_from_synthetic_pointer): Update.
4492 (coerced_pieced_ref): Update.
4493 (class symbol_needs_eval_context) <dwarf_call,
4494 dwarf_variable_value>: Update.
4495 (dwarf2_compile_expr_to_ax): Update.
4496
4497 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4498
4499 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4500 parameter.
4501 (dwarf2_evaluate_loc_desc_full): Update.
4502
4503 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4504
4505 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4506 parameter.
4507 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4508 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4509 dwarf2_per_objfile parameter.
4510 (decode_debug_loc_dwo_addresses): Likewise.
4511 (dwarf2_find_location_expression): Update.
4512 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4513 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4514 parameter.
4515 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4516 parameter.
4517 (locexpr_describe_location_1): Likewise.
4518 (locexpr_describe_location): Update.
4519
4520 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4521
4522 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4523 Remove.
4524 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4525 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4526 (dwarf2_compile_property_to_c): Update.
4527 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4528 use text offset from objfile.
4529 (locexpr_tracepoint_var_ref): Update.
4530 (locexpr_generate_c_location): Update.
4531 (loclist_describe_location): Update.
4532 (loclist_tracepoint_var_ref): Update.
4533 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4534 dwarf2_per_objfile parameter.
4535 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4536 use text offset from objfile.
4537 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4538
4539 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4540
4541 * dwarf2/expr.h (struct dwarf_expr_context)
4542 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4543 <offset>: Remove.
4544 <per_objfile>: New member.
4545 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4546 dwarf2_per_objfile parameter. Don't set offset, set
4547 per_objfile.
4548 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4549 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4550 a dwarf2_per_objfile object instead of an offset.
4551 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4552 constructor.
4553 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4554 to dwarf2_expr_executor constructor. Don't set offset.
4555 (dwarf2_fetch_cfa_info): Update.
4556 (struct dwarf2_frame_cache) <text_offset>: Remove.
4557 <per_objfile>: New field.
4558 (dwarf2_frame_cache): Update.
4559 (dwarf2_frame_prev_register): Update.
4560 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4561 <dwarf_evaluate_loc_desc>: Add constructor.
4562 (dwarf2_evaluate_loc_desc_full): Update.
4563 (dwarf2_locexpr_baton_eval): Update.
4564 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4565 Add constructor.
4566 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4567
4568 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4569
4570 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4571 addr_sized_int_type>: Move to dwarf2_cu.
4572 <int_type>: Move to dwarf2_per_objfile.
4573 (struct dwarf2_per_objfile) <int_type>: Move here.
4574 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4575 addr_sized_int_type>: Move here.
4576 (read_func_scope): Update.
4577 (read_array_type): Update.
4578 (read_tag_string_type): Update.
4579 (attr_to_dynamic_prop): Update.
4580 (dwarf2_per_cu_data::int_type): Rename to...
4581 (dwarf2_per_objfile::int_type): ... this.
4582 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4583 (dwarf2_cu::addr_sized_int_type): ... this.
4584 (read_subrange_type): Update.
4585 (dwarf2_per_cu_data::addr_type): Rename to...
4586 (dwarf2_cu::addr_type): ... this.
4587 (set_die_type): Update.
4588
4589 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4590
4591 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4592 data through per_cu->cu.
4593
4594 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4595
4596 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4597 dwarf2_per_cu_data parameter fo dwarf2_cu.
4598 (lookup_dwo_type_unit): Likewise.
4599 (read_cutu_die_from_dwo): Likewise.
4600 (lookup_dwo_unit): Likewise.
4601 (open_and_init_dwo_file): Likewise.
4602 (lookup_dwo_cutu): Likewise.
4603 (lookup_dwo_comp_unit): Likewise.
4604 (lookup_dwo_type_unit): Likewise.
4605 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4606 (cutu_reader::cutu_reader): Update.
4607
4608 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4609
4610 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4611 parameter.
4612 (process_full_type_unit): Likewise.
4613 (process_queue): Update.
4614
4615 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4616
4617 * dwarf2/read.c (recursively_compute_inclusions): Add
4618 dwarf2_per_objfile parameter.
4619 (compute_compunit_symtab_includes): Likewise.
4620 (process_cu_includes): Update.
4621
4622 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4623
4624 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4625 parameter.
4626 (create_type_unit_group): Update.
4627 (process_psymtab_comp_unit_reader): Update.
4628 (build_type_psymtabs_reader): Update.
4629
4630 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4631
4632 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4633 object through m_this_cu->cu.
4634
4635 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4636
4637 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4638 the info parameter.
4639 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4640
4641 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4642
4643 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4644 per_objfile parameter.
4645 (load_full_type_unit): Add per_objfile parameter.
4646 (read_signatured_type): Likewise.
4647 (load_full_comp_unit): Likewise.
4648 (load_cu): Likewise.
4649 (dw2_do_instantiate_symtab): Likewise.
4650 (dw2_get_file_names): Likewise.
4651 (dw2_map_symtabs_matching_filename): Update.
4652 (dw_expand_symtabs_matching_file_matcher): Update.
4653 (dw2_map_symbol_filenames): Update.
4654 (process_psymtab_comp_unit): Add per_objfile parameter.
4655 (build_type_psymtabs_1): Update.
4656 (process_skeletonless_type_unit): Update.
4657 (dwarf2_build_psymtabs_hard): Update.
4658 (load_partial_comp_unit): Add per_objfile parameter.
4659 (scan_partial_symbols): Update.
4660 (load_full_comp_unit): Add per_objfile parameter.
4661 (process_imported_unit_die): Update.
4662 (create_cus_hash_table): Update.
4663 (find_partial_die): Update.
4664 (dwarf2_read_addr_index): Update.
4665 (follow_die_offset): Update.
4666 (dwarf2_fetch_die_loc_sect_off): Update.
4667 (dwarf2_fetch_constant_bytes): Update.
4668 (dwarf2_fetch_die_type_sect_off): Update.
4669 (follow_die_sig_1): Update.
4670 (load_full_type_unit): Add per_objfile parameter.
4671 (read_signatured_type): Likewise.
4672
4673 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4674
4675 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4676 of objfile_name.
4677
4678 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4679
4680 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4681 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4682 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4683 field.
4684 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4685 (create_cus_from_index): Update.
4686 (dwarf2_read_gdb_index): Update.
4687 (create_cus_from_debug_names): Update.
4688 (dwarf2_read_debug_names): Update.
4689 (get_abbrev_section_for_cu): Update.
4690 (create_all_comp_units): Update.
4691 (read_attribute_value): Update.
4692 (get_debug_line_section): Update.
4693 * dwarf2/index-cache.c (index_cache::store): Update.
4694 * dwarf2/index-write.c (save_gdb_index_command): Update.
4695 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4696
4697 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4698
4699 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4700 member.
4701 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4702 dwarf2_per_cu_data::per_bfd.
4703 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4704 (create_type_unit_group): Likewise.
4705 (queue_comp_unit): Remove reference to
4706 per_cu->dwarf2_per_objfile.
4707 (maybe_queue_comp_unit): Likewise.
4708 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4709 (create_cus_hash_table): Assign new field.
4710
4711 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4712
4713 * dwarf2/read.c: Replace
4714 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4715 dwarf2_cu->per_objfile throughout.
4716
4717 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4718
4719 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4720 parameter, don't use per_cu->dwarf2_per_objfile.
4721 (dw2_instantiate_symtab): Likewise.
4722 (dw2_find_last_source_symtab): Update.
4723 (dw2_map_expand_apply): Update.
4724 (dw2_lookup_symbol): Update.
4725 (dw2_expand_symtabs_for_function): Update.
4726 (dw2_expand_all_symtabs): Update.
4727 (dw2_expand_symtabs_with_fullname): Update.
4728 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4729 don't use per_cu->dwarf2_per_objfile.
4730 (dw2_expand_marked_cus): Update.
4731 (dw2_find_pc_sect_compunit_symtab): Update.
4732 (dw2_debug_names_lookup_symbol): Update.
4733 (dw2_debug_names_expand_symtabs_for_function): Update.
4734 (dw2_debug_names_map_matching_symbols): Update.
4735 (dwarf2_psymtab::expand_psymtab): Update.
4736
4737 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4738
4739 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4740 <per_objfile>: New member.
4741 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4742 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4743 call to dwarf2_cu.
4744 (cutu_reader::cutu_reader): Update.
4745 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4746
4747 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4748
4749 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4750 struct dwarf2_per_objfile.
4751 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4752 dwarf2_per_bfd.
4753 * dwarf2/read.c (set_die_type): Update.
4754 (get_die_type_at_offset): Update.
4755
4756 2020-05-27 Tom Tromey <tom@tromey.com>
4757 Simon Marchi <simon.marchi@efficios.com>
4758
4759 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4760 method.
4761 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4762 get_symtab, set_symtab>: New methods.
4763 <m_symtabs>: New field.
4764 (struct dwarf2_psymtab): Derive from partial_symtab.
4765 <readin_p, get_compunit_symtab>: Declare methods.
4766 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4767 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4768 New methods.
4769 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4770 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4771 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4772 (dw2_symtab_iter_next, dw2_print_stats)
4773 (dw2_expand_symtabs_with_fullname)
4774 (dw2_expand_symtabs_matching_one)
4775 (dw_expand_symtabs_matching_file_matcher)
4776 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4777 (dw2_debug_names_iterator::next)
4778 (dw2_debug_names_map_matching_symbols)
4779 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4780 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4781 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4782 New methods.
4783 (get_compunit_symtab, process_full_comp_unit)
4784 (process_full_type_unit): Update.
4785 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4786
4787 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4788
4789 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4790 then introduce a new dwarf2_per_objfile type.
4791 <read_line_string>: Move to the new dwarf2_per_objfile type.
4792 <objfile>: Likewise.
4793 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4794 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4795 dwarf2_per_objfile->per_bfd.
4796 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4797 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4798 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4799 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4800 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4801 (dwarf2_per_objfile::locate_sections): Rename to...
4802 (dwarf2_per_bfd::locate_sections): ... this.
4803 (dwarf2_per_objfile::get_cutu): Rename to...
4804 (dwarf2_per_bfd::get_cutu): ... this.
4805 (dwarf2_per_objfile::get_cu): Rename to...
4806 (dwarf2_per_bfd::get_cu): ... this.
4807 (dwarf2_per_objfile::get_tu): Rename to...
4808 (dwarf2_per_bfd::get_tu): ... this.
4809 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4810 (dwarf2_per_bfd::allocate_per_cu): ... this.
4811 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4812 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4813 (get_gdb_index_contents_ftype): Change parameter from
4814 dwarf2_per_objfile to dwarf2_per_bfd.
4815 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4816 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4817
4818 2020-05-27 Tom Tromey <tom@tromey.com>
4819 Simon Marchi <simon.marchi@efficios.com>
4820
4821 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4822 (allocate_piece_closure): Set "per_objfile" member.
4823 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4824 (locexpr_describe_location, loclist_describe_location): Use new
4825 member.
4826 * dwarf2/read.c (read_call_site_scope)
4827 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4828 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4829 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4830 handle_data_member_location): Set per_objfile member.
4831 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4832 member.
4833 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4834
4835 2020-05-27 Tom Tromey <tom@tromey.com>
4836
4837 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4838 allocate_signatured_type>: Declare new methods.
4839 <m_num_psymtabs>: New member.
4840 (struct dwarf2_per_cu_data) <index>: New member.
4841 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4842 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4843 (create_cu_from_index_list): Use allocate_per_cu.
4844 (create_signatured_type_table_from_index)
4845 (create_signatured_type_table_from_debug_names)
4846 (create_debug_type_hash_table, add_type_unit)
4847 (read_comp_units_from_section): Use allocate_signatured_type.
4848
4849 2020-05-27 Tom Tromey <tom@tromey.com>
4850
4851 * psymtab.c (partial_map_expand_apply)
4852 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4853 (psym_lookup_global_symbol_language)
4854 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4855 (psym_print_stats, psym_expand_symtabs_for_function)
4856 (psym_map_symbol_filenames, psym_map_matching_symbols)
4857 (psym_expand_symtabs_matching)
4858 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4859 (maintenance_check_psymtabs): Update.
4860 * psympriv.h (struct partial_symtab) <readin_p,
4861 get_compunit_symtab>: Add objfile parameter.
4862 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4863 Likewise.
4864 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4865 get_compunit_symtab>: Likewise.
4866 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4867
4868 2020-05-27 Tom Tromey <tom@tromey.com>
4869
4870 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4871 member.
4872 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4873 (create_cu_from_index_list)
4874 (create_signatured_type_table_from_index)
4875 (create_signatured_type_table_from_debug_names)
4876 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4877 (dwarf2_create_include_psymtab)
4878 (create_debug_type_hash_table, add_type_unit)
4879 (create_type_unit_group, read_comp_units_from_section)
4880 (dwarf2_compute_name, create_cus_hash_table)
4881 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4882 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4883 obstack.
4884 (dw2_get_real_path): Likewise. Change argument to
4885 dwarf2_per_objfile.
4886
4887 2020-05-27 Luis Machado <luis.machado@linaro.org>
4888
4889 PR tdep/26000
4890 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4891 for ldrd (immediate).
4892
4893 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4894
4895 * command.h: Add comment giving the name of class_tui.
4896 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4897 create the fake command for the help for class_tui.
4898
4899 2020-05-26 Tom Tromey <tromey@adacore.com>
4900
4901 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4902 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4903 (val_atr): New function.
4904 (value_val_atr): Use it.
4905 * ada-valprint.c (print_optional_low_bound): Change low bound
4906 handling for enums.
4907 (val_print_packed_array_elements): Don't call discrete_position.
4908 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4909 discrete_position for enum types.
4910 * language.c (default_print_array_index): Change type.
4911 * language.h (struct language_defn) <la_print_array_index>: Add
4912 index_type parameter, change type of index_value.
4913 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4914 (default_print_array_index): Update.
4915 * valprint.c (maybe_print_array_index): Don't call
4916 value_from_longest. Update.
4917 (value_print_array_elements): Don't call discrete_position.
4918
4919 2020-05-26 Tom Tromey <tromey@adacore.com>
4920
4921 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4922 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4923
4924 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4925
4926 PR gdb/13519
4927 * avr-tdep.c (avr_integer_to_address): Return data or code
4928 address accordingly to the second 'type' argument of the
4929 function.
4930
4931 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4932
4933 * infcmd.c, inferior.h: (construct_inferior_arguments):
4934 Moved function from here to gdbsupport/common-inferior.{h,cc}
4935
4936 2020-05-23 Tom Tromey <tom@tromey.com>
4937
4938 Revert commit eca1f90c:
4939 * NEWS: Remove entry for completion styling.
4940 * completer.c (_rl_completion_prefix_display_length): Move
4941 declaration later.
4942 (gdb_fnprint): Revert.
4943 (gdb_display_match_list_1): Likewise.
4944 * cli/cli-style.c (completion_prefix_style)
4945 (completion_difference_style, completion_suffix_style): Remove.
4946 (_initialize_cli_style): Revert.
4947 * cli/cli-style.h (completion_prefix_style)
4948 (completion_difference_style, completion_suffix_style): Don't
4949 declare.
4950
4951 2020-05-24 Pedro Alves <palves@redhat.com>
4952
4953 * symtab.c (completion_list_add_name): Return boolean indication
4954 of whether the symbol matched.
4955 (completion_list_add_symbol): Don't try to remove C++ aliases if
4956 the symbol didn't match in the first place.
4957 * symtab.h (completion_list_add_name): Return bool.
4958
4959 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4960
4961 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4962 type::field.
4963
4964 2020-05-23 Joel Brobecker <brobecker@adacore.com>
4965
4966 GDB 9.2 released.
4967
4968 2020-05-23 Tom Tromey <tom@tromey.com>
4969
4970 * NEWS: Add entry for completion styling.
4971 * completer.c (_rl_completion_prefix_display_length): Move
4972 declaration earlier.
4973 (gdb_fnprint): Use completion_style.
4974 (gdb_display_match_list_1): Likewise.
4975 * cli/cli-style.c (completion_prefix_style)
4976 (completion_difference_style, completion_suffix_style): New
4977 globals.
4978 (_initialize_cli_style): Register new globals.
4979 * cli/cli-style.h (completion_prefix_style)
4980 (completion_difference_style, completion_suffix_style): Declare.
4981
4982 2020-05-23 Pedro Alves <palves@redhat.com>
4983
4984 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4985 (parse_escape): Use ISDIGIT instead of isdigit.
4986 (puts_debug): Use gdb_isprint instead of isprint.
4987 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4988 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4989 ISSPACE instead of isspace.
4990 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4991 instead of isspace.
4992 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4993 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4994 instead of isxdigit and ISDIGIT instead of isdigit.
4995
4996 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4997
4998 * gdbtypes.h (struct type) <field>: New method.
4999 (TYPE_FIELDS): Remove, replace all uses with either type::fields
5000 or type::field.
5001
5002 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5003
5004 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
5005 (TYPE_FIELDS): Use type::fields. Change all call sites that
5006 modify the propery to use type::set_fields instead.
5007
5008 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5009
5010 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
5011 type::num_fields instead.
5012
5013 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5014
5015 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
5016 methods.
5017 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
5018 that modify the number of fields to use type::set_num_fields
5019 instead.
5020
5021 2020-05-22 Tom Tromey <tromey@adacore.com>
5022
5023 * compile/compile-object-load.h (munmap_list_free): Don't
5024 declare.
5025
5026 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
5027
5028 * annotate.c (annotate_source_line): Update return type, add call
5029 to update current symtab and line.
5030 * annotate.h (annotate_source_line): Update return type, and
5031 extend header comment.
5032 * source.c (info_line_command): Check annotation_level before
5033 calling annotate_source_line.
5034 * stack.c (print_frame_info): If calling annotate_source_line
5035 returns true, then don't print any other source line information.
5036
5037 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
5038
5039 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
5040
5041 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
5042
5043 * coffread.c (patch_type): Remove NULL check before xfree.
5044 * corefile.c (set_gnutarget): Likewise.
5045 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
5046 * exec.c (build_section_table): Likewise.
5047 * remote.c (remote_target::pass_signals): Likewise.
5048 * utils.c (n_spaces): Likewise.
5049 * cli/cli-script.c (document_command): Likewise.
5050 * i386-windows-tdep.c (core_process_module_section): Likewise.
5051 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
5052
5053 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
5054
5055 * symfile.c (reread_symbols): Clear objfile's section_offsets
5056 vector and section indices, re-compute them by calling
5057 sym_offsets.
5058
5059 2020-05-20 Tom Tromey <tromey@adacore.com>
5060
5061 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
5062 (desc_one_bound, desc_index_type): Compute field name.
5063
5064 2020-05-20 Tom de Vries <tdevries@suse.de>
5065
5066 PR symtab/25833
5067 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
5068
5069 2020-05-20 Alan Modra <amodra@gmail.com>
5070
5071 PR 25993
5072 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
5073 bfd_set_filename.
5074 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
5075 passed to bfd_set_filename.
5076 * symfile-mem.c (add_vsyscall_page): Likewise for string
5077 passed to symbol_file_add_from_memory.
5078 (symbol_file_add_from_memory): Make name param a const char* and
5079 don't strdup.
5080
5081 2020-05-20 Alan Modra <amodra@gmail.com>
5082
5083 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
5084 rather than accessing bfd->filename directly.
5085 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
5086 and use bfd_section_name.
5087 * dwarf2/frame.c (decode_frame_entry): Likewise.
5088 * exec.c (exec_set_section_address): Likewise.
5089 * solib-aix.c (solib_aix_bfd_open): Likewise.
5090 * stap-probe.c (get_stap_base_address): Likewise.
5091 * symfile.c (reread_symbols): Likewise.
5092
5093 2020-05-19 Tom Tromey <tromey@adacore.com>
5094
5095 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
5096
5097 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5098
5099 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
5100
5101 2020-05-19 Pedro Alves <palves@redhat.com>
5102
5103 * NEWS (set exec-file-mismatch): Adjust entry.
5104 * exec.c: Include "build-id.h".
5105 (validate_exec_file): Try to match build IDs instead of filenames.
5106 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
5107 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
5108 and pass down 'warn_if_slow'.
5109 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
5110 gdb_bfd_open_closure to pass it down.
5111 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
5112
5113 2020-05-19 Pedro Alves <palves@redhat.com>
5114
5115 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
5116 * target.c (target_fileio_open_1): Rename to target_fileio_open
5117 and make extern. Use bool.
5118 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
5119 (target_fileio_read_alloc_1): Adjust.
5120 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
5121 (target_fileio_open_warn_if_slow): Delete declaration.
5122
5123 2020-05-19 Pedro Alves <palves@redhat.com>
5124
5125 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
5126 Adjust all callers.
5127
5128 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
5129
5130 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
5131 whether disp is negative.
5132
5133 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5134
5135 * symfile.h (struct symfile_segment_data)
5136 <~symfile_segment_data>: Remove.
5137 <segment_info>: Change to std::vector.
5138 * symfile.c (default_symfile_segments): Update.
5139 * elfread.c (elf_symfile_segments): Update.
5140
5141 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5142
5143 * symfile.h (struct symfile_segment_data) <struct segment>: New.
5144 <segments>: New.
5145 <segment_bases, segment_sizes>: Remove.
5146 * symfile.c (default_symfile_segments): Update.
5147 * elfread.c (elf_symfile_segments): Update.
5148 * remote.c (remote_target::get_offsets): Update.
5149 * solib-target.c (solib_target_relocate_section_addresses):
5150 Update.
5151
5152 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5153
5154 * symfile.h (struct symfile_segment_data): Initialize fields.
5155 <~symfile_segment_data>: Add.
5156 (symfile_segment_data_up): New.
5157 (struct sym_fns) <sym_segments>: Return a
5158 symfile_segment_data_up.
5159 (default_symfile_segments): Return a symfile_segment_data_up.
5160 (free_symfile_segment_data): Remove.
5161 (get_symfile_segment_data): Return a symfile_segment_data_up.
5162 * symfile.c (default_symfile_segments): Likewise.
5163 (get_symfile_segment_data): Likewise.
5164 (free_symfile_segment_data): Remove.
5165 (symfile_find_segment_sections): Update.
5166 * elfread.c (elf_symfile_segments): Return a
5167 symfile_segment_data_up.
5168 * remote.c (remote_target::get_offsets): Update.
5169 * solib-target.c (solib_target_relocate_section_addresses):
5170 Update.
5171 * symfile-debug.c (debug_sym_segments): Return a
5172 symfile_segment_data_up.
5173
5174 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5175
5176 PR build/25981
5177 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
5178 Hardcode register numbers.
5179
5180 PR build/25981
5181 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
5182 procfs_find_LDT_entry): Remove.
5183 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
5184 procfs_find_LDT_entry): Remove.
5185 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
5186 Remove.
5187
5188 2020-05-17 Pedro Alves <palves@redhat.com>
5189 Andrew Burgess <andrew.burgess@embecosm.com>
5190 Keno Fischer <keno@juliacomputing.com>
5191
5192 PR gdb/25741
5193 * breakpoint.c (build_target_condition_list): Update comments.
5194 (build_target_command_list): Update comments and skip matching
5195 locations.
5196 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
5197 a separate function. Simplify "set breakpoint auto-hw off"
5198 handling.
5199 (insert_breakpoints): Update comment.
5200 (tracepoint_locations_match): New parameter. For breakpoints,
5201 compare location types too, if the caller wants to.
5202 (handle_automatic_hardware_breakpoints): New functions.
5203 (bp_location_is_less_than): Also sort by location type and
5204 hardware breakpoint length.
5205 (update_global_location_list): Handle "set breakpoint auto-hw on"
5206 here.
5207 (update_breakpoint_locations): Ask breakpoint_locations_match to
5208 ignore location types.
5209
5210 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5211
5212 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
5213 type::name instead.
5214
5215 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5216
5217 * gdbtypes.h (struct type) <name, set_name>: New methods.
5218 (TYPE_CODE): Use type::name. Change all call sites used to set
5219 the name to use type::set_name instead.
5220
5221 2020-05-16 Tom Tromey <tom@tromey.com>
5222
5223 * top.c (quit_force): Update.
5224 * infrun.c (handle_no_resumed): Update.
5225 * top.h (all_uis): New function.
5226 (ALL_UIS): Remove.
5227
5228 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5229
5230 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
5231
5232 2020-05-16 Pedro Alves <palves@redhat.com>
5233
5234 * ia64-linux-nat.c
5235 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
5236 Declare method.
5237 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
5238
5239 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
5240
5241 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
5242 (sparc64_adi_info): Likewise.
5243
5244 2020-05-15 Tom Tromey <tom@tromey.com>
5245
5246 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
5247 block_objfile.
5248 (lookup_objfile_from_block): Remove.
5249 (lookup_symbol_in_block, lookup_symbol_in_static_block)
5250 (lookup_global_symbol): Use block_objfile.
5251 * symtab.h (lookup_objfile_from_block): Don't declare.
5252 * printcmd.c (clear_dangling_display_expressions): Use
5253 block_objfile.
5254 * parse.c (operator_check_standard): Use block_objfile.
5255
5256 2020-05-15 Tom Tromey <tom@tromey.com>
5257
5258 * language.c (language_alloc_type_symbol): Set
5259 SYMBOL_SECTION.
5260 * symtab.c (initialize_objfile_symbol): Remove.
5261 (allocate_symbol): Remove.
5262 (allocate_template_symbol): Remove.
5263 * dwarf2/read.c (fixup_go_packaging): Use "new".
5264 (new_symbol): Use "new".
5265 (read_variable): Don't call initialize_objfile_symbol. Use
5266 "new".
5267 (read_func_scope): Use "new".
5268 * xcoffread.c (process_xcoff_symbol): Don't call
5269 initialize_objfile_symbol.
5270 (SYMBOL_DUP): Remove.
5271 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
5272 "new".
5273 * symtab.h (allocate_symbol, initialize_objfile_symbol)
5274 (allocate_template_symbol): Don't declare.
5275 (struct symbol): Add copy constructor. Change defaults.
5276 * jit.c (finalize_symtab): Use "new".
5277 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
5278 Use "new".
5279 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5280 (common_block_end): Use "new".
5281 * mdebugread.c (parse_symbol): Use "new".
5282 (new_symbol): Likewise.
5283
5284 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5285
5286 * NEWS: Mention changes to help and apropos.
5287
5288 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5289
5290 * command.h (enum command_class): Improve comments, document
5291 that class_alias is for user-defined aliases, give the class
5292 name for each class, remove unused class_xdb.
5293 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
5294 * breakpoint.c (_initialize_breakpoint): Replace class_alias
5295 by a precise class.
5296 * infcmd.c (_initialize_infcmd): Likewise.
5297 * reverse.c (_initialize_reverse): Likewise.
5298 * stack.c (_initialize_stack): Likewise.
5299 * symfile.c (_initialize_symfile): Likewise.
5300 * tracepoint.c (_initialize_tracepoint): Likewise.
5301
5302 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5303
5304 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
5305 when their aliased command is traversed.
5306 (help_cmd): Add fput_command_names_styled call to
5307 output command name and aliases when command has an alias.
5308
5309 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5310
5311 * cli/cli-decode.h (help_cmd_list): Remove declaration.
5312 * cli/cli-decode.c (help_cmd_list): Declare as static,
5313 remove prefix argument, use bool for recurse arg, rework to show the aliases of
5314 a command together with the command.
5315 (fput_command_name_styled, fput_command_names_styled): New functions.
5316 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
5317 fput_command_name_styled.
5318 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
5319 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
5320
5321 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5322
5323 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
5324 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
5325 * command.h (cmd_show_list): Likewise.
5326 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
5327 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
5328
5329 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5330
5331 * unittests/command-def-selftests.c (traverse_command_structure):
5332 Verify all commands of a list have the same prefix command and
5333 that only the top cmdlist commands have a null prefix.
5334
5335 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5336
5337 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
5338 as prefix, not one of its aliases.
5339 (set_cmd_prefix): Remove.
5340 (do_add_cmd): Centralize the setting of the prefix of a command, when
5341 command is defined after its full chain of prefix commands.
5342 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
5343 (add_setshow_cmd_full): Likewise.
5344 (update_prefix_field_of_prefixed_commands): New function.
5345 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
5346 update_prefix_field_of_prefixed_commands.
5347 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
5348 addresses of remote_set_cmdlist and remote_show_cmdlist given
5349 as argument, not the address of an argument.
5350 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5351 * gdb/remote.c (_initialize_remote): Likewise.
5352
5353 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5354
5355 * cli/cli-cmds.c (alias_command): Check for an existing alias
5356 using lookup_cmd_composition, as valid_command_p is too strict
5357 and forbids aliases that are the prefix of an existing alias
5358 or command.
5359 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5360 command is properly recognised as a valid command.
5361
5362 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5363
5364 * unittests/help-doc-selftests.c: Rename to
5365 unittests/command-def-selftests.c
5366 * unittests/command-def-selftests.c (help_doc_tests): Update some
5367 comments.
5368 (command_structure_tests, traverse_command_structure): New namespace
5369 and function.
5370 (command_structure_invariants_tests): New function.
5371 (_initialize_command_def_selftests) Renamed from
5372 _initialize_help_doc_selftests, register command_structure_invariants
5373 selftest.
5374
5375 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5376
5377 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5378 an alias of 'show'.
5379
5380 2020-05-15 Joel Brobecker <brobecker@adacore.com>
5381
5382 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5383 ada_is_fixed_point_type. Update all callers.
5384 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5385 all callers.
5386 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5387 Update all callers.
5388 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5389 print_fixed_point_type. Update all callers.
5390 * ada-valprint.c (ada_value_print_num): Replace call to
5391 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5392
5393 2020-05-14 Kevin Buettner <kevinb@redhat.com>
5394
5395 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5396 processors.
5397 (cpu_supports_bts): Add CV_AMD case.
5398
5399 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5400 Simon Marchi <simon.marchi@efficios.com>
5401
5402 * infrun.c (stop_all_threads): Collect multiple wait events at
5403 each pass.
5404
5405 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5406
5407 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5408 type::code instead.
5409
5410 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5411
5412 * gdbtypes.h (struct type) <code, set_code>: New methods.
5413 (TYPE_CODE): Use type::code. Change all call sites used to set
5414 the code to use type::set_code instead.
5415
5416 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5417 Tom de Vries <tdevries@suse.de>
5418 Pedro Alves <palves@redhat.com>
5419
5420 PR threads/25478
5421 * infrun.c (stop_all_threads): Do NOT ignore
5422 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5423 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5424 received.
5425 (handle_no_resumed): Remove code handling a live inferior with no
5426 threads.
5427 * remote.c (has_single_non_exited_thread): New.
5428 (remote_target::update_thread_list): Do not delete a thread if is
5429 the last thread of the process.
5430 * thread.c (thread_select): Call delete_exited_threads instead of
5431 prune_threads.
5432
5433 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5434
5435 * infrun.c (stop_all_threads): Enable/disable thread events of all
5436 targets. Move a debug message denoting the end of the function
5437 into the SCOPED_EXIT block.
5438
5439 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5440
5441 * process-stratum-target.h: Include <set>.
5442 (all_non_exited_process_targets, switch_to_target_no_thread): New
5443 function declarations.
5444 * process-stratum-target.c (all_non_exited_process_targets)
5445 (switch_to_target_no_thread): New function implementations.
5446
5447 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5448
5449 * infrun.c (handle_inferior_event): Extract out a piece of code
5450 into...
5451 (mark_non_executing_threads): ...this new function.
5452
5453 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5454
5455 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5456 use.
5457
5458 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5459
5460 * regcache.c (regcache_read_pc_protected): New function
5461 implementation that returns 0 if the PC cannot read via
5462 'regcache_read_pc'.
5463 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5464 instead of 'regcache_read_pc'.
5465 (keep_going_pass_signal): Ditto.
5466
5467 2020-05-13 Tom Tromey <tromey@adacore.com>
5468
5469 * ada-lang.c (align_value): Remove.
5470 (ada_template_to_fixed_record_type_1): Use align_up.
5471
5472 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5473
5474 * async-event.c: Update the copyright year.
5475 * async-event.h: Update the copyright year.
5476
5477 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
5478
5479 * objfiles.h (is_addr_in_objfile,
5480 shared_objfile_contains_address_p): Return bool.
5481 * objfile.c (is_addr_in_objfile,
5482 shared_objfile_contains_address_p): Return bool.
5483
5484 2020-05-11 Tom Tromey <tromey@adacore.com>
5485
5486 * cli/cli-cmds.c (info_command): Restore.
5487 (_initialize_cli_cmds): Use add_prefix_command for "info".
5488 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5489
5490 2020-05-11 Tom Tromey <tromey@adacore.com>
5491
5492 * ada-lang.c (ada_value_primitive_field): Now public.
5493 * ada-lang.h (ada_value_primitive_field): Declare.
5494 * ada-valprint.c (print_field_values): Use
5495 ada_value_primitive_field for wrapper fields.
5496
5497 2020-05-11 Tom de Vries <tdevries@suse.de>
5498
5499 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5500 MODULE_DOMAIN.
5501
5502 2020-05-11 Tom de Vries <tdevries@suse.de>
5503
5504 PR symtab/25941
5505 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5506 with length 0, if not gdb-produced.
5507 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5508
5509 2020-05-09 Tom de Vries <tdevries@suse.de>
5510
5511 PR gdb/25955
5512 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5513 calculation.
5514
5515 2020-05-09 Tom Tromey <tom@tromey.com>
5516
5517 * top.c (server_command): Now bool.
5518 * top.h (server_command): Now bool.
5519
5520 2020-05-08 Tom Tromey <tromey@adacore.com>
5521
5522 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5523 already being processed.
5524
5525 2020-05-08 Tom Tromey <tom@tromey.com>
5526
5527 * printcmd.c (struct display) <next>: Remove.
5528 <display>: New constructor.
5529 <exp_string>: Now a std::string.
5530 <enabled_p>: Now a bool.
5531 (display_number): Move definition earlier.
5532 (displays): Rename from display_chain. Now a std::vector.
5533 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5534 (display_command): Update.
5535 (do_one_display, disable_display)
5536 (enable_disable_display_command, do_enable_disable_display):
5537 Update.
5538 (free_display): Remove.
5539 (clear_displays): Rewrite.
5540 (delete_display): Update.
5541 (map_display_numbers): Use function_view. Remove "data"
5542 parameter. Update.
5543 (do_delete_display): Remove.
5544 (undisplay_command): Update.
5545 (do_one_display, do_displays, disable_display)
5546 (info_display_command): Update.
5547 (do_enable_disable_display): Remove.
5548 (enable_disable_display_command)
5549 (clear_dangling_display_expressions): Update.
5550
5551 2020-05-08 Tom Tromey <tom@tromey.com>
5552
5553 * symtab.c (set_symbol_cache_size)
5554 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5555 (maintenance_print_symbol_cache_statistics): Update.
5556 * symmisc.c (print_symbol_bcache_statistics)
5557 (print_objfile_statistics, maintenance_print_objfiles)
5558 (maintenance_info_symtabs, maintenance_check_symtabs)
5559 (maintenance_expand_symtabs, maintenance_info_line_tables):
5560 Update.
5561 * symfile-debug.c (set_debug_symfile): Update.
5562 * source.c (forget_cached_source_info): Update.
5563 * python/python.c (gdbpy_progspaces): Update.
5564 * psymtab.c (maintenance_info_psymtabs): Update.
5565 * probe.c (parse_probes): Update.
5566 * linespec.c (iterate_over_all_matching_symtabs)
5567 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5568 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5569 * exec.c (exec_target::close): Update.
5570 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5571 * breakpoint.c (print_one_breakpoint_location)
5572 (create_longjmp_master_breakpoint)
5573 (create_std_terminate_master_breakpoint): Update.
5574 * progspace.c (program_spaces): Now a std::vector.
5575 (maybe_new_address_space): Update.
5576 (add_program_space): Remove.
5577 (program_space::program_space): Update.
5578 (remove_program_space): Update.
5579 (number_of_program_spaces): Remove.
5580 (print_program_space, update_address_spaces): Update.
5581 * progspace.h (program_spaces): Change type.
5582 (ALL_PSPACES): Remove.
5583 (number_of_program_spaces): Don't declare.
5584 (struct program_space) <next>: Remove.
5585
5586 2020-05-08 Tom Tromey <tom@tromey.com>
5587
5588 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5589 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5590 (enable_break): Update.
5591 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5592 (frv_fdpic_find_canonical_descriptor): Update.
5593 (frv_fetch_objfile_link_map): Update.
5594 * progspace.c (program_space::free_all_objfiles): Update.
5595 (program_space::solibs): New method.
5596 * progspace.h (struct program_space) <solibs>: New method.
5597 * solist.h (master_so_list): Don't declare.
5598 (ALL_SO_LIBS): Remove.
5599 * solib.h (so_list_head): Remove.
5600 (update_solib_list): Update comment.
5601 * solib.c (master_so_list): Remove.
5602 (solib_used, update_solib_list, solib_add)
5603 (info_sharedlibrary_command, clear_solib)
5604 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5605
5606 2020-05-08 Tom Tromey <tom@tromey.com>
5607
5608 * extension.c (extension_languages): Now a std::array.
5609 (ALL_EXTENSION_LANGUAGES): Remove.
5610 (get_ext_lang_defn, get_ext_lang_of_file)
5611 (eval_ext_lang_from_control_command): Update.
5612 (finish_ext_lang_initialization)
5613 (auto_load_ext_lang_scripts_for_objfile)
5614 (ext_lang_type_printers::ext_lang_type_printers)
5615 (apply_ext_lang_type_printers)
5616 (ext_lang_type_printers::~ext_lang_type_printers)
5617 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5618 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5619 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5620 (get_matching_xmethod_workers, ext_lang_colorize)
5621 (ext_lang_before_prompt): Update.
5622 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5623
5624 2020-05-08 Tom Tromey <tom@tromey.com>
5625
5626 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5627 overload.
5628 <swap_string, m_string>: Remove.
5629 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5630 Update.
5631 * stabsread.c (define_symbol, read_type): Update.
5632 * linespec.c (find_linespec_symbols): Update.
5633 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5634 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5635 * dbxread.c (read_dbx_symtab): Update.
5636 * cp-support.h (cp_canonicalize_string_full)
5637 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5638 Return unique_xmalloc_ptr.
5639 * cp-support.c (inspect_type): Update.
5640 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5641 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5642 Likewise.
5643 * c-typeprint.c (print_name_maybe_canonical): Update.
5644 * break-catch-throw.c (check_status_exception_catchpoint):
5645 Update.
5646
5647 2020-05-08 Tom de Vries <tdevries@suse.de>
5648
5649 * infrun.c (follow_fork): Copy current_line and current_symtab to
5650 child thread.
5651
5652 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5653
5654 * async-event.c (struct async_signal_handler, struct
5655 async_event_handler): Reformat, remove typedef.
5656
5657 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5658
5659 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5660 access thistype->main_type->dyn_prop_list directly.
5661
5662 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5663
5664 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5665 (remove_dyn_prop): Remove. Update all users to use
5666 type::remove_dyn_prop.
5667 * gdbtypes.c (remove_dyn_prop): Rename to...
5668 (type::remove_dyn_prop): ... this.
5669
5670 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5671
5672 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5673 (add_dyn_prop): Remove. Update all users to use
5674 type::add_dyn_prop.
5675 * gdbtypes.c (add_dyn_prop): Rename to...
5676 (type::add_dyn_prop): ... this.
5677
5678 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5679
5680 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5681 (get_dyn_prop): Remove. Update all users to use
5682 type::dyn_prop.
5683 * gdbtypes.c (get_dyn_prop): Rename to...
5684 (type::dyn_prop): ... this.
5685
5686 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5687
5688 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5689
5690 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5691
5692 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5693 instruction, skip it if it's there.
5694
5695 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
5696
5697 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5698
5699 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
5700
5701 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5702 * gdbtypes.c (recursive_dump_type): Remove use of
5703 TYPE_INCOMPLETE.
5704
5705 2020-05-03 Tom Tromey <tom@tromey.com>
5706
5707 * breakpoint.c (catch_command, tcatch_command): Remove.
5708 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5709 add_show_prefix_cmd.
5710 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5711 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5712 Remove.
5713 (add_internal_problem_command): Use add_basic_prefix_cmd,
5714 add_show_prefix_cmd.
5715 * mips-tdep.c (set_mipsfpu_command): Remove.
5716 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5717 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5718 (_initialize_index_cache): Use add_basic_prefix_cmd.
5719 * memattr.c (dummy_cmd): Remove.
5720 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5721 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5722 (_initialize_tui_win): Use add_basic_prefix_cmd,
5723 add_show_prefix_cmd.
5724 * cli/cli-logging.c (set_logging_command): Remove.
5725 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5726 add_show_prefix_cmd.
5727 (show_logging_command): Remove.
5728 * target.c (target_command): Remove.
5729 (add_target): Use add_basic_prefix_cmd.
5730
5731 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
5732
5733 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5734
5735 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5736
5737 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5738 info_command.
5739
5740 2020-04-30 Kamil Rytarowski <n54@gmx.com>
5741
5742 * nbsd-nat.c (nbsd_enable_proc_events)
5743 (nbsd_nat_target::post_startup_inferior): Add.
5744 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5745 (nbsd_nat_target::update_thread_list): Rewrite.
5746 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5747 "PTRACE_LWP_CREATE".
5748 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5749
5750 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5751
5752 * stack.c (_initialize_stack): Remove duplicated creation
5753 of "frame" command and "f" alias.
5754
5755 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5756
5757 PR gdb/18706
5758 * gdbtypes.c (check_typedef): Calculate size of array of
5759 stubbed type.
5760
5761 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5762
5763 PR gdb/15559
5764 * i386-tdep.c (i386_push_dummy_call): Call
5765 i386_thiscall_push_dummy_call.
5766 (i386_thiscall_push_dummy_call): New function.
5767 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5768 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5769 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5770
5771 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5772
5773 * gdbarch.sh (do_read): Add shellcheck disable directive for
5774 warning SC2162.
5775
5776 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5777
5778 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5779 "referenced but not assigned" warning.
5780
5781 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5782
5783 * gdbarch.sh: Remove code that sets fallbackdefault.
5784
5785 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5786
5787 * gdbarch.sh: Use shell operators && and || instead of
5788 -a and -o.
5789
5790 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5791
5792 * gdbarch.sh: Use $(...) instead of `...`.
5793
5794 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5795
5796 * gdbarch.sh: Use double quotes around variables.
5797
5798 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5799
5800 * gdbarch.sh: Use %s with printf, instead of variables in the
5801 format string.
5802
5803 2020-04-29 Tom Tromey <tromey@adacore.com>
5804
5805 PR ada/25875:
5806 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5807 type fields here.
5808 (read_enumeration_type): Call
5809 update_enumeration_type_from_children later. Update comments.
5810 (process_enumeration_scope): Don't create type fields.
5811
5812 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5813
5814 * nbsd-tdep.c: Include "xml-syscall.h".
5815 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5816
5817 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5818
5819 * nbsd-nat.c: Include "sys/wait.h".
5820 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5821 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5822 (nbsd_nat_target::remove_exec_catchpoint)
5823 (nbsd_nat_target::set_syscall_catchpoint): Add.
5824 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5825 (nbsd_nat_target::insert_exec_catchpoint)
5826 (nbsd_nat_target::remove_exec_catchpoint)
5827 (nbsd_nat_target::set_syscall_catchpoint): Add.
5828 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5829 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5830 `nbsd_get_syscall_number'.
5831
5832 2020-04-29 Tom Tromey <tom@tromey.com>
5833
5834 * stack.c (print_block_frame_labels): Remove.
5835
5836 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
5837
5838 PR gdb/17320
5839 * ada-valprint.c (val_print_packed_array_elements): Move array
5840 end bracket to new line.
5841 (ada_val_print_string): Remove extra spaces before first array
5842 element.
5843 * c-valprint.c (c_value_print_array): Likewise.
5844 * m2-valprint.c (m2_print_array_contents): Likewise.
5845 (m2_value_print_inner): Likewise.
5846 * p-valprint.c (pascal_value_print_inner): Likewise.
5847 * valprint.c (generic_val_print_array): Likewise.
5848 (value_print_array_elements): Move first array element and array
5849 end bracket to new line.
5850
5851 2020-04-29 Tom de Vries <tdevries@suse.de>
5852
5853 PR symtab/25889
5854 * linespec.c (find_method): Fix ix calculation.
5855
5856 2020-04-28 Kamil Rytarowski <n54@gmx.com>
5857
5858 * syscalls/update-netbsd.sh: New file.
5859 * syscalls/netbsd.xml: Regenerate.
5860 * data-directory/Makefile.in: Register `netbsd.xml' in
5861 `SYSCALLS_FILES'.
5862
5863 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5864
5865 * syscalls/update-freebsd.sh: Add double quotes.
5866
5867 2020-04-28 Tom Tromey <tom@tromey.com>
5868
5869 * NEWS: Update.
5870 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5871 (cmdpy_init): Allow class_tui.
5872
5873 2020-04-28 Mark Williams <mark@myosotissp.com>
5874
5875 PR gdb/24480
5876 * dwarf2read.c: Add missing assingments to list_in_scope when
5877 start_symtab was already called.
5878
5879 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5880
5881 PR gdb/25881
5882 * dwarf2/read.c (offset_map_type): Use
5883 gdb:hash_enum<sect_offset> as hash function.
5884
5885 2020-04-28 Tom de Vries <tdevries@suse.de>
5886
5887 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5888 with DW_AT_signature.
5889
5890 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
5891
5892 * configure.ac: Remove check for fs_base/gs_base in
5893 user_regs_struct.
5894 * configure: Re-generate.
5895 * config.in: Re-generate.
5896 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5897 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5898 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5899
5900 2020-04-27 Luis Machado <luis.machado@linaro.org>
5901
5902 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5903 problematic inline frame unwinding situation.
5904 * frame.c (frame_id_computed_p): New function.
5905 * frame.h (frame_id_computed_p): New prototype.
5906
5907 2020-04-26 Tom Tromey <tom@tromey.com>
5908
5909 * command.h (enum command_class) <class_pseudo>: Remove.
5910
5911 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5912
5913 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5914 and whitespace.
5915
5916 2020-04-25 Kamil Rytarowski <n54@gmx.com>
5917
5918 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5919 `PT_GET_PROCESS_STATE' block.
5920
5921 2020-04-24 Tom Tromey <tom@tromey.com>
5922
5923 * symtab.h (symbol_get_demangled_name): Don't declare.
5924 * symtab.c (symbol_get_demangled_name): Remove.
5925 (general_symbol_info::natural_name)
5926 (general_symbol_info::demangled_name): Update.
5927
5928 2020-04-24 Tom Tromey <tom@tromey.com>
5929
5930 PR rust/25025:
5931 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5932
5933 2020-04-24 Tom Tromey <tom@tromey.com>
5934
5935 PR symtab/12707:
5936 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5937 exists.
5938 (new_symbol): Likewise.
5939 * compile/compile-object-load.c (get_out_value_type): Use
5940 symbol_matches_search_name.
5941
5942 2020-04-24 Tom Tromey <tom@tromey.com>
5943
5944 * dwarf2/read.c (add_partial_symbol): Do not call
5945 compute_and_set_names.
5946
5947 2020-04-24 Tom Tromey <tom@tromey.com>
5948
5949 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5950 overload.
5951
5952 2020-04-24 Tom Tromey <tom@tromey.com>
5953
5954 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5955 (add_psymbol_to_list): New overload. Make old overload call new
5956 one.
5957 * psympriv.h (add_psymbol_to_list): New overload.
5958
5959 2020-04-24 Tom Tromey <tom@tromey.com>
5960
5961 * dwarf2/read.c (partial_die_info::read) <case
5962 DW_AT_linkage_name>: Use value_as_string.
5963 (dwarf2_string_attr): Use value_as_string.
5964 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5965 method.
5966 * dwarf2/attribute.c (attribute::value_as_string): New method.
5967
5968 2020-04-24 Tom Tromey <tom@tromey.com>
5969
5970 * symtab.c (general_symbol_info::natural_name)
5971 (general_symbol_info::demangled_name): Check for language_rust.
5972
5973 2020-04-24 Tom Tromey <tom@tromey.com>
5974
5975 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5976 (dwarf2_physname): ... from here.
5977 (partial_die_info::read): Add Rust "{" hack.
5978
5979 2020-04-24 Tom Tromey <tom@tromey.com>
5980
5981 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5982 method.
5983 (symbol_set_demangled_name): Don't declare.
5984 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5985 symbol_set_demangled_name.
5986 (general_symbol_info::set_language)
5987 (general_symbol_info::compute_and_set_names): Update.
5988 * minsyms.c (minimal_symbol_reader::install): Update.
5989 * dwarf2/read.c (new_symbol): Update.
5990
5991 2020-04-24 Tom Tromey <tromey@adacore.com>
5992
5993 PR python/23662:
5994 * python/py-type.c (convert_field): Handle
5995 FIELD_LOC_KIND_DWARF_BLOCK.
5996 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5997 (typy_get_dynamic): Nw function.
5998 (type_object_getset): Add "dynamic".
5999 * NEWS: Add entry.
6000
6001 2020-04-24 Tom Tromey <tromey@adacore.com>
6002
6003 * ada-typeprint.c (print_choices, print_variant_part)
6004 (print_record_field_types_dynamic): New functions.
6005 (print_record_field_types): Use print_record_field_types_dynamic.
6006
6007 2020-04-24 Tom Tromey <tromey@adacore.com>
6008
6009 * dwarf2/read.c (handle_data_member_location): New overload.
6010 (dwarf2_add_field): Use it.
6011 (decode_locdesc): Add "computed" parameter. Update comment.
6012 * gdbtypes.c (is_dynamic_type_internal): Also look for
6013 FIELD_LOC_KIND_DWARF_BLOCK.
6014 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
6015 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
6016 virtual base classes.
6017 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
6018 FIELD_LOC_KIND_DWARF_BLOCK.
6019
6020 2020-04-24 Tom Tromey <tromey@adacore.com>
6021
6022 * dwarf2/read.c (read_structure_type): Handle dynamic length.
6023 * gdbtypes.c (is_dynamic_type_internal): Check
6024 TYPE_HAS_DYNAMIC_LENGTH.
6025 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
6026 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
6027 New macros.
6028 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
6029 constant.
6030
6031 2020-04-24 Tom Tromey <tromey@adacore.com>
6032
6033 * dwarf2/read.c (struct variant_field): Rewrite.
6034 (struct variant_part_builder): New.
6035 (struct nextfield): Remove "variant" field. Add "offset".
6036 (struct field_info): Add "current_variant_part" and
6037 "variant_parts".
6038 (alloc_discriminant_info): Remove.
6039 (alloc_rust_variant): New function.
6040 (quirk_rust_enum): Update.
6041 (dwarf2_add_field): Set "offset" member. Don't handle
6042 DW_TAG_variant_part.
6043 (offset_map_type): New typedef.
6044 (convert_variant_range, create_one_variant)
6045 (create_one_variant_part, create_variant_parts)
6046 (add_variant_property): New functions.
6047 (dwarf2_attach_fields_to_type): Call add_variant_property.
6048 (read_structure_type): Don't handle DW_TAG_variant_part.
6049 (handle_variant_part, handle_variant): New functions.
6050 (handle_struct_member_die): Use them.
6051 (process_structure_scope): Don't handle variant parts.
6052 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
6053 (struct discriminant_info): Remove.
6054 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
6055 (struct main_type) <flag_discriminated_union>: Remove.
6056 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
6057 (rust_enum_variant): Return int. Remove "contents". Rewrite.
6058 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
6059 Update.
6060 * valops.c (value_union_variant): Remove.
6061 * value.h (value_union_variant): Don't declare.
6062
6063 2020-04-24 Tom Tromey <tromey@adacore.com>
6064
6065 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
6066 (ada_value_primitive_packed_val): Update.
6067 * ada-valprint.c (ada_value_print_1): Update.
6068 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
6069 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
6070 just an address. Use evaluate_for_locexpr_baton.
6071 (dwarf2_evaluate_property): Update.
6072 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
6073 array_view.
6074 * findvar.c (default_read_var_value): Update.
6075 * gdbtypes.c (compute_variant_fields_inner)
6076 (resolve_dynamic_type_internal): Update.
6077 (resolve_dynamic_type): Change type of valaddr parameter.
6078 * gdbtypes.h (resolve_dynamic_type): Update.
6079 * valarith.c (value_subscripted_rvalue): Update.
6080 * value.c (value_from_contents_and_address): Update.
6081
6082 2020-04-24 Tom Tromey <tromey@adacore.com>
6083
6084 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
6085 "push_initial_value" parameter.
6086 (dwarf2_evaluate_property): Likewise.
6087 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
6088
6089 2020-04-24 Tom Tromey <tromey@adacore.com>
6090
6091 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
6092 (variant::matches, compute_variant_fields_recurse)
6093 (compute_variant_fields_inner, compute_variant_fields): New
6094 functions.
6095 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
6096 Use resolved_type after type is made.
6097 (operator==): Add new cases.
6098 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
6099 (struct discriminant_range, struct variant, struct variant_part):
6100 New.
6101 (union dynamic_prop_data) <variant_parts, original_type>: New
6102 members.
6103 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
6104 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
6105 constants.
6106 * value.c (unpack_bits_as_long): Now public.
6107 * value.h (unpack_bits_as_long): Declare.
6108
6109 2020-04-24 Tom Tromey <tromey@adacore.com>
6110
6111 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
6112 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
6113
6114 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
6115
6116 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
6117
6118 2020-04-24 Kamil Rytarowski <n54@gmx.com>
6119
6120 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
6121 (remove_fork_catchpoint, post_startup_inferior)
6122 (post_attach): Move...
6123 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
6124 (remove_fork_catchpoint, post_startup_inferior)
6125 (post_attach): ...here.
6126 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
6127 (remove_fork_catchpoint, post_startup_inferior)
6128 (post_attach): Move...
6129 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
6130 (remove_fork_catchpoint, post_startup_inferior)
6131 (post_attach): ...here.
6132
6133 2020-04-24 Tom Tromey <tromey@adacore.com>
6134
6135 * nat/windows-nat.h (struct windows_thread_info)
6136 <pc_adjusted>: New member.
6137 * windows-nat.c (windows_fetch_one_register): Check
6138 pc_adjusted.
6139 (windows_nat_target::get_windows_debug_event)
6140 (windows_nat_target::wait): Set pc_adjusted.
6141
6142 2020-04-24 Tom de Vries <tdevries@suse.de>
6143
6144 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
6145 Run gdb-add-index inside temp dir.
6146
6147 2020-04-23 Tom Tromey <tromey@adacore.com>
6148
6149 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
6150 in loop.
6151
6152 2020-04-23 Luis Machado <luis.machado@linaro.org>
6153
6154 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
6155 get_frame_register instead of gdbarch_unwind_pc.
6156
6157 2020-04-23 Tom de Vries <tdevries@suse.de>
6158
6159 * symtab.c (lookup_global_symbol): Prefer def over decl.
6160
6161 2020-04-23 Tom de Vries <tdevries@suse.de>
6162
6163 PR symtab/25807
6164 * block.c (best_symbol, better_symbol): Promote to external.
6165 * block.h (best_symbol, better_symbol): Declare.
6166 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
6167 decl.
6168
6169 2020-04-23 Tom Tromey <tromey@adacore.com>
6170
6171 PR ada/25837:
6172 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
6173 "const char *", not a "const std::string &".
6174 <name_and_matcher::operator==>: Update.
6175 * unittests/lookup_name_info-selftests.c: Change type of
6176 "result".
6177
6178 2020-04-23 Tom Tromey <tom@tromey.com>
6179
6180 * inferior.h (iterate_over_inferiors): Don't declare.
6181 * inferior.c (iterate_over_inferiors): Remove.
6182 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
6183 Remove.
6184 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
6185 use iterate_over_inferiors.
6186 (darwin_resume_inferior_it)
6187 (struct resume_inferior_threads_param)
6188 (darwin_resume_inferior_threads_it): Remove.
6189 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
6190
6191 2020-04-23 Tom de Vries <tdevries@suse.de>
6192
6193 * blockframe.c (find_pc_partial_function): Use
6194 find_pc_sect_compunit_symtab rather than
6195 objfile->sf->qf->find_pc_sect_compunit_symtab.
6196
6197 2020-04-22 Tom de Vries <tdevries@suse.de>
6198
6199 PR symtab/25764
6200 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
6201 in psymtabs.
6202
6203 2020-04-22 Tom de Vries <tdevries@suse.de>
6204
6205 PR symtab/25801
6206 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
6207 symtabs.
6208
6209 2020-04-22 Tom de Vries <tdevries@suse.de>
6210
6211 PR symtab/25700
6212 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
6213 CU if already created.
6214
6215 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6216
6217 * infrun.c (displaced_step_fixup): Switch to the event_thread
6218 before calling displaced_step_restore, not after.
6219
6220 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6221
6222 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
6223 its inferior is not recorded by us.
6224 (record_btrace_target_open): Replace call to
6225 all_non_exited_threads () with call to current_inferior
6226 ()->non_exited_threads ().
6227 (record_btrace_target::stop_recording): Likewise.
6228 (record_btrace_target::close): Likewise.
6229 (record_btrace_target::wait): Likewise.
6230 (record_btrace_target::record_stop_replaying): Likewise.
6231
6232 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6233
6234 * btrace.c (btrace_enable): Throw an error on double enables and
6235 when enabling recording fails.
6236 (btrace_disable): Throw an error if the thread is not recorded.
6237
6238 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6239
6240 * record-btrace.c (record_btrace_target::fetch_registers): Forward
6241 request if we do not have a thread_info.
6242
6243 2020-04-21 Tom de Vries <tdevries@suse.de>
6244
6245 PR gdb/25471
6246 * thread.c
6247 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
6248 exception in get_frame_id.
6249
6250 2020-04-20 Tom Tromey <tromey@adacore.com>
6251
6252 * python/python.c (struct gdbpy_event): Mark move constructor as
6253 noexcept.
6254 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
6255 constructor as noexcept.
6256 * completer.h (struct completion_result): Mark move constructor as
6257 noexcept.
6258 * completer.c (completion_result::completion_result): Use
6259 initialization style. Don't call reset_match_list.
6260
6261 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
6262
6263 * MAINTAINERS (Write After Approval): Add myself.
6264
6265 2020-04-18 Tom Tromey <tom@tromey.com>
6266
6267 * windows-tdep.c (init_w32_command_list)
6268 (w32_prefix_command_valid): Restore.
6269 (_initialize_windows_tdep): Call init_w32_command_list.
6270
6271 2020-04-18 Tom Tromey <tom@tromey.com>
6272
6273 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
6274 * value.c (value_fn_field): Update.
6275 * valops.c (find_function_in_inferior)
6276 (value_allocate_space_in_inferior): Update.
6277 * tui/tui-winsource.c (tui_update_source_windows_with_line):
6278 Update.
6279 * tui/tui-source.c (tui_source_window::set_contents): Update.
6280 * symtab.c (lookup_global_or_static_symbol)
6281 (find_function_start_sal_1, skip_prologue_sal)
6282 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
6283 * symmisc.c (dump_msymbols, dump_symtab_1)
6284 (maintenance_print_one_line_table): Update.
6285 * symfile.c (init_entry_point_info, section_is_mapped)
6286 (list_overlays_command, simple_read_overlay_table)
6287 (simple_overlay_update_1): Update.
6288 * stap-probe.c (handle_stap_probe): Update.
6289 * stabsread.c (dbx_init_float_type, define_symbol)
6290 (read_one_struct_field, read_enum_type, read_range_type): Update.
6291 * source.c (info_line_command): Update.
6292 * python/python.c (gdbpy_source_objfile_script)
6293 (gdbpy_execute_objfile_script): Update.
6294 * python/py-type.c (save_objfile_types): Update.
6295 * python/py-objfile.c (py_free_objfile): Update.
6296 * python/py-inferior.c (python_new_objfile): Update.
6297 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
6298 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
6299 (maintenance_check_psymtabs): Update.
6300 * printcmd.c (info_address_command): Update.
6301 * objfiles.h (struct objfile) <arch>: New method, from
6302 get_objfile_arch.
6303 (get_objfile_arch): Don't declare.
6304 * objfiles.c (get_objfile_arch): Remove.
6305 (filter_overlapping_sections): Update.
6306 * minsyms.c (msymbol_is_function): Update.
6307 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
6308 (output_nondebug_symbol): Update.
6309 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
6310 (mdebug_expand_psymtab): Update.
6311 * machoread.c (macho_add_oso_symfile): Update.
6312 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
6313 Update.
6314 * linux-fork.c (checkpoint_command): Update.
6315 * linespec.c (convert_linespec_to_sals): Update.
6316 * jit.c (finalize_symtab): Update.
6317 * infrun.c (insert_exception_resume_from_probe): Update.
6318 * ia64-tdep.c (ia64_find_unwind_table): Update.
6319 * hppa-tdep.c (internalize_unwinds): Update.
6320 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
6321 Update.
6322 * gcore.c (call_target_sbrk): Update.
6323 * elfread.c (record_minimal_symbol, elf_symtab_read)
6324 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
6325 (elf_gnu_ifunc_resolve_by_got): Update.
6326 * dwarf2/read.c (create_addrmap_from_index)
6327 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6328 (read_debug_names_from_section)
6329 (process_psymtab_comp_unit_reader, add_partial_symbol)
6330 (add_partial_subprogram, process_full_comp_unit)
6331 (read_file_scope, read_func_scope, read_lexical_block_scope)
6332 (read_call_site_scope, dwarf2_ranges_read)
6333 (dwarf2_record_block_ranges, dwarf2_add_field)
6334 (mark_common_block_symbol_computed, read_tag_pointer_type)
6335 (read_tag_string_type, dwarf2_init_float_type)
6336 (dwarf2_init_complex_target_type, read_base_type)
6337 (partial_die_info::read, partial_die_info::read)
6338 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
6339 (dwarf2_fetch_die_loc_sect_off): Update.
6340 * dwarf2/loc.c (dwarf2_find_location_expression)
6341 (class dwarf_evaluate_loc_desc, rw_pieced_value)
6342 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
6343 (dwarf2_loc_desc_get_symbol_read_needs)
6344 (locexpr_describe_location_piece, locexpr_describe_location_1)
6345 (loclist_describe_location): Update.
6346 * dwarf2/index-write.c (write_debug_names): Update.
6347 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
6348 * dtrace-probe.c (dtrace_process_dof): Update.
6349 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6350 (process_one_symbol): Update.
6351 * ctfread.c (ctf_init_float_type, read_base_type): Update.
6352 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6353 (coff_read_enum_type): Update.
6354 * cli/cli-cmds.c (edit_command, list_command): Update.
6355 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6356 * breakpoint.c (create_overlay_event_breakpoint)
6357 (create_longjmp_master_breakpoint)
6358 (create_std_terminate_master_breakpoint)
6359 (create_exception_master_breakpoint, get_sal_arch): Update.
6360 * block.c (block_gdbarch): Update.
6361 * annotate.c (annotate_source_line): Update.
6362
6363 2020-04-17 Tom Tromey <tromey@adacore.com>
6364
6365 * auto-load.c (show_auto_load_cmd): Remove.
6366 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6367 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6368 (maintenance_print_arc_command): Remove.
6369 * tui/tui-win.c (tui_command): Remove.
6370 (tui_get_cmd_list): Use add_basic_prefix_cmd.
6371 * tui/tui-layout.c (tui_layout_command): Remove.
6372 (_initialize_tui_layout): Use add_basic_prefix_cmd.
6373 * python/python.c (user_set_python, user_show_python): Remove.
6374 (_initialize_python): Use add_basic_prefix_cmd,
6375 add_show_prefix_cmd.
6376 * guile/guile.c (set_guile_command, show_guile_command): Remove.
6377 (install_gdb_commands): Use add_basic_prefix_cmd,
6378 add_show_prefix_cmd.
6379 (info_guile_command): Remove.
6380 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6381 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6382 add_show_prefix_cmd.
6383 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6384 Remove do_set and do_show parameters.
6385 * cli/cli-style.c (set_style, show_style): Remove.
6386 (_initialize_cli_style): Use add_basic_prefix_cmd,
6387 add_show_prefix_cmd.
6388 (cli_style_option::add_setshow_commands): Remove do_set and
6389 do_show parameters.
6390 (cli_style_option::add_setshow_commands): Use
6391 add_basic_prefix_cmd, add_show_prefix_cmd.
6392 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6393 (set_style_name): Remove.
6394 * cli/cli-dump.c (dump_command, append_command): Remove.
6395 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6396 (tekhex_dump_command, binary_dump_command)
6397 (binary_append_command): Remove.
6398 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6399 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6400 (init_w32_command_list): Remove; move into ...
6401 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6402 * valprint.c (set_print, show_print, set_print_raw)
6403 (show_print_raw): Remove.
6404 (_initialize_valprint): Use add_basic_prefix_cmd,
6405 add_show_prefix_cmd.
6406 * typeprint.c (set_print_type, show_print_type): Remove.
6407 (_initialize_typeprint): Use add_basic_prefix_cmd,
6408 add_show_prefix_cmd.
6409 * record.c (set_record_command, show_record_command): Remove.
6410 (_initialize_record): Use add_basic_prefix_cmd,
6411 add_show_prefix_cmd.
6412 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6413 add_show_prefix_cmd.
6414 (info_command, show_command, set_debug, show_debug): Remove.
6415 * top.h (set_history, show_history): Don't declare.
6416 * top.c (set_history, show_history): Remove.
6417 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6418 (unset_tdesc_cmd): Remove.
6419 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6420 add_show_prefix_cmd.
6421 * symtab.c (info_module_command): Remove.
6422 (_initialize_symtab): Use add_basic_prefix_cmd.
6423 * symfile.c (overlay_command): Remove.
6424 (_initialize_symfile): Use add_basic_prefix_cmd.
6425 * sparc64-tdep.c (info_adi_command): Remove.
6426 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6427 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6428 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6429 add_show_prefix_cmd.
6430 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6431 (_initialize_serial): Use add_basic_prefix_cmd,
6432 add_show_prefix_cmd.
6433 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6434 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6435 add_show_prefix_cmd.
6436 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6437 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6438 add_show_prefix_cmd.
6439 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6440 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6441 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6442 add_show_prefix_cmd.
6443 * remote.c (remote_command, set_remote_cmd): Remove.
6444 (_initialize_remote): Use add_basic_prefix_cmd.
6445 * record-full.c (set_record_full_command)
6446 (show_record_full_command): Remove.
6447 (_initialize_record_full): Use add_basic_prefix_cmd,
6448 add_show_prefix_cmd.
6449 * record-btrace.c (cmd_set_record_btrace)
6450 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6451 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6452 (cmd_show_record_btrace_pt): Remove.
6453 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6454 add_show_prefix_cmd.
6455 * ravenscar-thread.c (set_ravenscar_command)
6456 (show_ravenscar_command): Remove.
6457 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6458 add_show_prefix_cmd.
6459 * mips-tdep.c (show_mips_command, set_mips_command)
6460 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6461 add_show_prefix_cmd.
6462 * maint.c (maintenance_command, maintenance_info_command)
6463 (maintenance_check_command, maintenance_print_command)
6464 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6465 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6466 add_show_prefix_cmd.
6467 (show_per_command_cmd): Remove.
6468 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6469 Remove.
6470 (maintenance_show_test_settings_cmd): Remove.
6471 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6472 add_show_prefix_cmd.
6473 * maint-test-options.c (maintenance_test_options_command):
6474 Remove.
6475 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6476 * macrocmd.c (macro_command): Remove
6477 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6478 * language.c (set_check, show_check): Remove.
6479 (_initialize_language): Use add_basic_prefix_cmd,
6480 add_show_prefix_cmd.
6481 * infcmd.c (unset_command): Remove.
6482 (_initialize_infcmd): Use add_basic_prefix_cmd.
6483 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6484 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6485 add_show_prefix_cmd.
6486 * go32-nat.c (go32_info_dos_command): Remove.
6487 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6488 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6489 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6490 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6491 (_initialize_frame): Use add_basic_prefix_cmd,
6492 add_show_prefix_cmd.
6493 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6494 (_initialize_dcache): Use add_basic_prefix_cmd,
6495 add_show_prefix_cmd.
6496 * cp-support.c (maint_cplus_command): Remove.
6497 (_initialize_cp_support): Use add_basic_prefix_cmd.
6498 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6499 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6500 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6501 add_basic_prefix_cmd, add_show_prefix_cmd.
6502 * breakpoint.c (save_command): Remove.
6503 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6504 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6505 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6506 add_show_prefix_cmd.
6507 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6508 (set_ada_command, show_ada_command): Remove.
6509 (_initialize_ada_language): Use add_basic_prefix_cmd,
6510 add_show_prefix_cmd.
6511 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6512
6513 2020-04-16 Kamil Rytarowski <n54@gmx.com>
6514
6515 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6516 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6517
6518 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6519
6520 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6521 warning messages.
6522
6523 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6524
6525 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6526 import table is not at beginning of .idata section.
6527
6528 2020-04-16 Pedro Alves <palves@redhat.com>
6529
6530 * inferior.c (delete_inferior): Use delete operator directly
6531 instead of delete_program_space.
6532 * progspace.c (add_program_space): New, factored out from
6533 program_space::program_space.
6534 (remove_program_space): New, factored out from
6535 delete_program_space.
6536 (program_space::program_space): Remove intro comment. Rewrite.
6537 (program_space::~program_space): Remove intro comment. Call
6538 remove_program_space.
6539 (delete_program_space): Delete.
6540 * progspace.h (program_space::program_space): Make explicit. Move
6541 intro comment here, adjusted.
6542 (program_space::~program_space): Move intro comment here,
6543 adjusted.
6544 (delete_program_space): Remove.
6545
6546 2020-04-16 Tom Tromey <tromey@adacore.com>
6547
6548 * windows-nat.c (windows_nat::handle_access_violation): New
6549 function.
6550 * nat/windows-nat.h (handle_access_violation): Declare.
6551 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6552 windows-nat.c. Call handle_access_violation.
6553
6554 2020-04-16 Tom de Vries <tdevries@suse.de>
6555
6556 PR symtab/25791
6557 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6558 CUs without psymtab.
6559
6560 2020-04-16 Kevin Buettner <kevinb@redhat.com>
6561
6562 * python/python.c (do_start_initialization): Don't call
6563 PyEval_InitThreads for Python 3.9 and beyond.
6564
6565 2020-04-15 Kamil Rytarowski <n54@gmx.com>
6566
6567 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6568 thread functions.
6569 (obsd_nat_target::wait): Likewise.
6570
6571 2020-04-15 Tom Tromey <tromey@adacore.com>
6572
6573 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6574 (DEBUG_EXCEPT): Use debug_printf.
6575
6576 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6577
6578 * completer.c (class completion_tracker::completion_hash_entry)
6579 <hash_name>: New member function.
6580 (completion_tracker::discard_completions): New callback to hash a
6581 completion_hash_entry, pass this to htab_create_alloc.
6582
6583 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6584
6585 * windows-nat.c (windows_make_so): Warn rather than stopping with
6586 an error if realpath() fails.
6587
6588 2020-04-14 Kamil Rytarowski <n54@gmx.com>
6589
6590 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6591 (nbsd_nat_target::info_proc): Add do_status.
6592
6593 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6594 Tom de Vries <tdevries@suse.de>
6595
6596 PR symtab/25718
6597 * psympriv.h (struct partial_symtab::read_symtab)
6598 (struct partial_symtab::expand_psymtab)
6599 (struct partial_symtab::read_dependencies): Update comments.
6600 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6601 read_symtab for includer.
6602 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6603 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6604 (struct dwarf2_include_psymtab::m_readin): Remove.
6605 (struct dwarf2_include_psymtab::includer): New member function.
6606 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6607
6608 2020-04-14 Tom de Vries <tdevries@suse.de>
6609
6610 PR symtab/25720
6611 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6612 with NULL symbol_matcher and lookup_name.
6613 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6614 and lookup_name.
6615 * dwarf2/read.c (dw2_expand_symtabs_matching)
6616 (dw2_debug_names_expand_symtabs_matching): Same.
6617 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6618 Make lookup_name a pointer. Update comment.
6619 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6620 lookup_name being a pointer.
6621 * symfile.c (expand_symtabs_matching): Same.
6622 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6623 * linespec.c (iterate_over_all_matching_symtabs): Same.
6624
6625 2020-04-13 Tom Tromey <tom@tromey.com>
6626
6627 * run-on-main-thread.c: Update include.
6628 * unittests/main-thread-selftests.c: Update include.
6629 * tui/tui-win.c: Update include.
6630 * tui/tui-io.c: Update include.
6631 * tui/tui-interp.c: Update include.
6632 * tui/tui-hooks.c: Update include.
6633 * top.h: Update include.
6634 * top.c: Update include.
6635 * ser-base.c: Update include.
6636 * remote.c: Update include.
6637 * remote-notif.c: Update include.
6638 * remote-fileio.c: Update include.
6639 * record-full.c: Update include.
6640 * record-btrace.c: Update include.
6641 * python/python.c: Update include.
6642 * posix-hdep.c: Update include.
6643 * mingw-hdep.c: Update include.
6644 * mi/mi-main.c: Update include.
6645 * mi/mi-interp.c: Update include.
6646 * main.c: Update include.
6647 * linux-nat.c: Update include.
6648 * interps.c: Update include.
6649 * infrun.c: Update include.
6650 * inf-loop.c: Update include.
6651 * event-top.c: Update include.
6652 * event-loop.c: Move to ../gdbsupport/.
6653 * event-loop.h: Move to ../gdbsupport/.
6654 * async-event.h: Update include.
6655 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6656
6657 2020-04-13 Tom Tromey <tom@tromey.com>
6658
6659 * tui/tui-win.c: Include async-event.h.
6660 * remote.c: Include async-event.h.
6661 * remote-notif.c: Include async-event.h.
6662 * record-full.c: Include async-event.h.
6663 * record-btrace.c: Include async-event.h.
6664 * infrun.c: Include async-event.h.
6665 * event-top.c: Include async-event.h.
6666 * event-loop.h: Move some declarations to async-event.h.
6667 * event-loop.c: Don't include ser-event.h or top.h. Move some
6668 code to async-event.c.
6669 * async-event.h: New file.
6670 * async-event.c: New file.
6671 * Makefile.in (COMMON_SFILES): Add async-event.c.
6672 (HFILES_NO_SRCDIR): Add async-event.h.
6673
6674 2020-04-13 Tom Tromey <tom@tromey.com>
6675
6676 * utils.c (flush_streams): New function.
6677 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6678
6679 2020-04-13 Tom Tromey <tom@tromey.com>
6680
6681 * event-loop.c (handle_file_event): Use warning, not
6682 printf_unfiltered.
6683
6684 2020-04-13 Tom Tromey <tom@tromey.com>
6685
6686 * event-loop.c: Include <chrono>.
6687
6688 2020-04-13 Tom Tromey <tom@tromey.com>
6689
6690 * gdb_select.h: Move to ../gdbsupport/.
6691 * event-loop.c: Update include path.
6692 * top.c: Update include path.
6693 * ser-base.c: Update include path.
6694 * ui-file.c: Update include path.
6695 * ser-tcp.c: Update include path.
6696 * guile/scm-ports.c: Update include path.
6697 * posix-hdep.c: Update include path.
6698 * ser-unix.c: Update include path.
6699 * gdb_usleep.c: Update include path.
6700 * mingw-hdep.c: Update include path.
6701 * inflow.c: Update include path.
6702 * infrun.c: Update include path.
6703 * event-top.c: Update include path.
6704
6705 2020-04-13 Tom Tromey <tom@tromey.com>
6706
6707 * configure: Rebuild.
6708 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6709
6710 2020-04-13 Tom Tromey <tom@tromey.com>
6711
6712 * event-loop.h (start_event_loop): Don't declare.
6713 * event-loop.c (start_event_loop): Move...
6714 * main.c (start_event_loop): ...here. Now static.
6715
6716 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6717
6718 * MAINTAINERS: Update my email address.
6719
6720 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6721
6722 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6723 IP_ALL.
6724
6725 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6726
6727 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
6728 (nbsd_nat_target::info_proc): Add do_cmdline.
6729
6730 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6731
6732 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
6733 (nbsd_nat_target::info_proc): Add do_cwd.
6734
6735 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6736
6737 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6738
6739 2020-04-11 Kamil Rytarowski <n54@gmx.com>
6740
6741 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6742 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6743 (nbsd_nat_target::info_proc): New functions.
6744 * nbsd-nat.c (kinfo_get_vmmap): New function.
6745 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6746 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6747 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6748 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6749 functions.
6750 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6751 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6752 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6753 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6754 (KINFO_VME_FLAG_GROWS_DOWN): New.
6755
6756 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6757
6758 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6759 bit shift.
6760
6761 2020-04-10 Tom Tromey <tromey@adacore.com>
6762
6763 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6764
6765 2020-04-10 Tom Tromey <tromey@adacore.com>
6766
6767 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6768 separate debug files.
6769
6770 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
6771
6772 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6773 Move to...
6774 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6775 ... here.
6776 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6777 Check for STATUS_WX86_BREAKPOINT.
6778 (windows_nat_target::wait): Same.
6779
6780 2020-04-10 Tom de Vries <tdevries@suse.de>
6781
6782 PR cli/25808
6783 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6784
6785 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6786
6787 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6788 (Write After Approval): Remove Tom de Vries.
6789
6790 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6791
6792 revert partially:
6793 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6794
6795 * buildsym.c (record_line): Fix undefined behavior and preserve
6796 lines at eof.
6797
6798 2020-04-09 Kamil Rytarowski <n54@gmx.com>
6799
6800 * auxv.h (svr4_auxv_parse): New.
6801 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6802 and generic_auxv_parse.
6803 (svr4_auxv_parse): Add.
6804 * obsd-tdep.c: Include "auxv.h".
6805 (obsd_auxv_parse): Remove.
6806 (obsd_init_abi): Remove comment.
6807 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6808 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6809 * nbsd-tdep.c: Include "auxv.h".
6810 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6811
6812 2020-04-08 Tom Tromey <tromey@adacore.com>
6813
6814 * nat/windows-nat.h (last_wait_event): Don't declare.
6815 (wait_for_debug_event): Update comment.
6816 * nat/windows-nat.c (last_wait_event): Now static.
6817
6818 2020-04-08 Tom Tromey <tromey@adacore.com>
6819
6820 * windows-nat.c (wait_for_debug_event): Move to
6821 nat/windows-nat.c.
6822 * nat/windows-nat.h (wait_for_debug_event): Declare.
6823 * nat/windows-nat.c (wait_for_debug_event): Move from
6824 windows-nat.c. No longer static.
6825
6826 2020-04-08 Tom Tromey <tromey@adacore.com>
6827
6828 * windows-nat.c (get_windows_debug_event): Use
6829 fetch_pending_stop.
6830 * nat/windows-nat.h (fetch_pending_stop): Declare.
6831 * nat/windows-nat.c (fetch_pending_stop): New function.
6832
6833 2020-04-08 Tom Tromey <tromey@adacore.com>
6834
6835 * windows-nat.c (windows_continue): Use matching_pending_stop and
6836 continue_last_debug_event.
6837 * nat/windows-nat.h (matching_pending_stop)
6838 (continue_last_debug_event): Declare.
6839 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6840 (matching_pending_stop, continue_last_debug_event): New
6841 functions.
6842
6843 2020-04-08 Tom Tromey <tromey@adacore.com>
6844
6845 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6846 (handle_exception_result): Move to nat/windows-nat.h.
6847 (DEBUG_EXCEPTION_SIMPLE): Remove.
6848 (windows_nat::handle_ms_vc_exception): New function.
6849 (handle_exception): Move to nat/windows-nat.c.
6850 (get_windows_debug_event): Update.
6851 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6852 nat/windows-nat.c.
6853 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6854 (handle_exception_result): Move from windows-nat.c.
6855 (handle_exception): Declare.
6856 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6857 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6858 windows-nat.c.
6859
6860 2020-04-08 Tom Tromey <tromey@adacore.com>
6861
6862 * windows-nat.c (exception_count, event_count): Remove.
6863 (handle_exception, get_windows_debug_event)
6864 (do_initial_windows_stuff): Update.
6865
6866 2020-04-08 Tom Tromey <tromey@adacore.com>
6867
6868 * windows-nat.c (windows_nat::handle_load_dll)
6869 (windows_nat::handle_unload_dll): Rename. No longer static.
6870 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6871 Declare.
6872
6873 2020-04-08 Tom Tromey <tromey@adacore.com>
6874
6875 * complaints.h (stop_whining): Declare at top-level.
6876 (complaint): Don't declare stop_whining.
6877
6878 2020-04-08 Tom Tromey <tromey@adacore.com>
6879
6880 * windows-nat.c (windows_nat::handle_output_debug_string):
6881 Rename. No longer static.
6882 * nat/windows-nat.h (handle_output_debug_string): Declare.
6883
6884 2020-04-08 Tom Tromey <tromey@adacore.com>
6885
6886 * windows-nat.c (current_process_handle, current_process_id)
6887 (main_thread_id, last_sig, current_event, last_wait_event)
6888 (current_windows_thread, desired_stop_thread_id, pending_stops)
6889 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6890 (display_selectors, fake_create_process)
6891 (get_windows_debug_event): Update.
6892 * nat/windows-nat.h (current_process_handle, current_process_id)
6893 (main_thread_id, last_sig, current_event, last_wait_event)
6894 (current_windows_thread, desired_stop_thread_id, pending_stops)
6895 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6896 * nat/windows-nat.c (current_process_handle, current_process_id)
6897 (main_thread_id, last_sig, current_event, last_wait_event)
6898 (current_windows_thread, desired_stop_thread_id, pending_stops)
6899 (siginfo_er): New globals. Move from windows-nat.c.
6900
6901 2020-04-08 Tom Tromey <tromey@adacore.com>
6902
6903 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6904 (handle_load_dll): Update.
6905 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6906
6907 2020-04-08 Tom Tromey <tromey@adacore.com>
6908
6909 * windows-nat.c (enum thread_disposition_type): Move to
6910 nat/windows-nat.h.
6911 (windows_nat::thread_rec): Rename from thread_rec. No longer
6912 static.
6913 (windows_add_thread, windows_nat_target::fetch_registers)
6914 (windows_nat_target::store_registers, handle_exception)
6915 (windows_nat_target::resume, get_windows_debug_event)
6916 (windows_nat_target::get_tib_address)
6917 (windows_nat_target::thread_name)
6918 (windows_nat_target::thread_alive): Update.
6919 * nat/windows-nat.h (enum thread_disposition_type): Move from
6920 windows-nat.c.
6921 (thread_rec): Declare.
6922
6923 2020-04-08 Tom Tromey <tromey@adacore.com>
6924
6925 * windows-nat.c: Add "using namespace".
6926 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6927 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6928
6929 2020-04-08 Tom Tromey <tromey@adacore.com>
6930
6931 * nat/windows-nat.h (struct windows_thread_info): Declare
6932 destructor.
6933 * nat/windows-nat.c (~windows_thread_info): New.
6934
6935 2020-04-08 Tom Tromey <tromey@adacore.com>
6936
6937 PR gdb/22992
6938 * windows-nat.c (current_event): Update comment.
6939 (last_wait_event, desired_stop_thread_id): New globals.
6940 (struct pending_stop): New.
6941 (pending_stops): New global.
6942 (windows_nat_target) <stopped_by_sw_breakpoint>
6943 <supports_stopped_by_sw_breakpoint>: New methods.
6944 (windows_fetch_one_register): Add assertions. Adjust PC.
6945 (windows_continue): Handle pending stops. Suspend other threads
6946 when stepping. Use last_wait_event
6947 (wait_for_debug_event): New function.
6948 (get_windows_debug_event): Use wait_for_debug_event. Handle
6949 pending stops. Queue spurious stops.
6950 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6951 (windows_nat_target::kill): Use wait_for_debug_event.
6952 * nat/windows-nat.h (struct windows_thread_info)
6953 <stopped_at_software_breakpoint>: New field.
6954 * nat/windows-nat.c (windows_thread_info::resume): Clear
6955 stopped_at_software_breakpoint.
6956
6957 2020-04-08 Tom Tromey <tromey@adacore.com>
6958
6959 * windows-nat.c (enum thread_disposition_type): New.
6960 (thread_rec): Replace "get_context" parameter with "disposition";
6961 change type.
6962 (windows_add_thread, windows_nat_target::fetch_registers)
6963 (windows_nat_target::store_registers, handle_exception)
6964 (windows_nat_target::resume, get_windows_debug_event)
6965 (windows_nat_target::get_tib_address)
6966 (windows_nat_target::thread_name)
6967 (windows_nat_target::thread_alive): Update.
6968
6969 2020-04-08 Tom Tromey <tromey@adacore.com>
6970
6971 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6972 (windows_continue): Use windows_continue::resume.
6973 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6974 resume>: Declare new methods.
6975 * nat/windows-nat.c: New file.
6976 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6977
6978 2020-04-08 Tom Tromey <tromey@adacore.com>
6979
6980 * windows-nat.c (windows_add_thread, windows_delete_thread)
6981 (windows_nat_target::fetch_registers)
6982 (windows_nat_target::store_registers, fake_create_process)
6983 (windows_nat_target::resume, windows_nat_target::resume)
6984 (get_windows_debug_event, windows_nat_target::wait)
6985 (windows_nat_target::pid_to_str)
6986 (windows_nat_target::get_tib_address)
6987 (windows_nat_target::get_ada_task_ptid)
6988 (windows_nat_target::thread_name)
6989 (windows_nat_target::thread_alive): Use lwp, not tid.
6990
6991 2020-04-08 Tom Tromey <tromey@adacore.com>
6992
6993 * windows-nat.c (handle_exception)
6994 (windows_nat_target::thread_name): Update.
6995 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6996 <name>: Now unique_xmalloc_ptr.
6997
6998 2020-04-08 Tom Tromey <tromey@adacore.com>
6999
7000 * windows-nat.c (thread_rec)
7001 (windows_nat_target::fetch_registers): Update.
7002 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
7003 Update comment.
7004 <debug_registers_changed, reload_context>: Now bool.
7005
7006 2020-04-08 Tom Tromey <tromey@adacore.com>
7007
7008 * windows-nat.c (windows_add_thread): Use new.
7009 (windows_init_thread_list, windows_delete_thread): Use delete.
7010 (get_windows_debug_event): Update.
7011 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
7012 destructor, and initializers.
7013
7014 2020-04-08 Tom Tromey <tromey@adacore.com>
7015
7016 * windows-nat.c (struct windows_thread_info): Remove.
7017 * nat/windows-nat.h: New file.
7018
7019 2020-04-08 Tom Tromey <tromey@adacore.com>
7020
7021 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
7022 (thread_rec, windows_add_thread, windows_delete_thread)
7023 (windows_continue): Update.
7024
7025 2020-04-08 Tom Tromey <tromey@adacore.com>
7026
7027 * windows-nat.c (struct windows_thread_info): Remove typedef.
7028 (thread_head): Remove.
7029 (thread_list): New global.
7030 (thread_rec, windows_add_thread, windows_init_thread_list)
7031 (windows_delete_thread, windows_continue): Update.
7032
7033 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7034
7035 * windows-tdep.h (windows_init_abi): Add comment.
7036 (cygwin_init_abi): New declaration.
7037 * windows-tdep.c: Split signal enumeration in two, one for
7038 Windows and one for Cygwin.
7039 (windows_gdb_signal_to_target): Only deal with signal of the
7040 Windows OS ABI.
7041 (cygwin_gdb_signal_to_target): New function.
7042 (windows_init_abi): Rename to windows_init_abi_common, don't set
7043 gdb_signal_to_target gdbarch method. Add new new function with
7044 this name.
7045 (cygwin_init_abi): New function.
7046 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
7047 comment. Don't call windows_init_abi.
7048 (amd64_windows_init_abi): Add comment, call windows_init_abi.
7049 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
7050 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
7051 i386_windows_init_abi_common, don't call windows_init_abi. Add
7052 a new function of this name.
7053 (i386_cygwin_init_abi): New function.
7054 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
7055 OS ABI Cygwin.
7056
7057 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7058
7059 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
7060 parameter.c.
7061 (dwarf2_read_gdb_index): Update.
7062
7063 2020-04-07 Kamil Rytarowski <n54@gmx.com>
7064
7065 * nbsd-tdep.c: Include "objfiles.h".
7066 (nbsd_skip_solib_resolver): New.
7067 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
7068
7069 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7070
7071 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
7072 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
7073 with DW_LLE_base_addressx are being emitted in DWARFv5.
7074 Add the newly added kind DW_LOC_OFFSET_PAIR also.
7075 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
7076 unsigned integer.
7077
7078 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7079
7080 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
7081 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
7082 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
7083 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
7084 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
7085 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
7086 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
7087
7088
7089 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7090
7091 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
7092 (read_loclist_index): New function definition.
7093 (lookup_loclist_base): New function definition.
7094 (read_loclist_header): New function definition.
7095 (dwarf2_cu): Add loclist_base and loclist_header field.
7096 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
7097 (read_full_die_1): Read the value of DW_AT_loclists_base.
7098 (read_attribute_reprocess): Handle DW_FORM_loclistx.
7099 (read_attribute_value): Handle DW_FORM_loclistx.
7100 (skip_one_die): Handle DW_FORM_loclistx.
7101 (loclist_header): New structure declaration.
7102 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
7103
7104 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7105
7106 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
7107 constructor. Remove `addr` parameter from other constructor and
7108 add `per_cu` parameter.
7109 * dwarf2/read.c (create_partial_symtab): Update.
7110
7111 2020-04-07 Tom de Vries <tdevries@suse.de>
7112
7113 PR symtab/25796
7114 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
7115 (partial_die_info::fixup): Inherit has_const_value.
7116
7117 2020-04-07 Tom de Vries <tdevries@suse.de>
7118
7119 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
7120 symbols without address.
7121
7122 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7123
7124 * nbsd-nat.h (struct thread_info): Add forward declaration.
7125 (nbsd_nat_target::thread_alive): Add.
7126 (nbsd_nat_target::thread_name): Likewise.
7127 (nbsd_nat_target::update_thread_list): Likewise.
7128 (update_thread_list::post_attach): Likewise.
7129 (post_attach::pid_to_str): Likewise.
7130 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
7131 (nbsd_thread_lister): Add.
7132 (nbsd_nat_target::thread_alive): Likewise.
7133 (nbsd_nat_target::thread_name): Likewise.
7134 (nbsd_add_threads): Likewise.
7135 (update_thread_list::post_attach): Likewise.
7136 (nbsd_nat_target::update_thread_list): Likewise.
7137 (post_attach::pid_to_str): Likewise.
7138
7139 2020-04-06 Tom Tromey <tromey@adacore.com>
7140
7141 * ada-valprint.c (print_variant_part): Extract the variant field.
7142 (print_field_values): Use the field as the outer value when
7143 recursing.
7144
7145 2020-04-06 Tom Tromey <tromey@adacore.com>
7146
7147 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
7148 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
7149 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
7150 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
7151 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
7152
7153 2020-04-06 Tom Tromey <tromey@adacore.com>
7154
7155 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
7156 TYPE_CODE_ERROR.
7157
7158 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7159
7160 * nbsd-tdep.c: Include "gdbarch.h".
7161 Define enum with NetBSD signal numbers.
7162 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
7163 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
7164 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
7165 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
7166 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
7167 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
7168 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
7169 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
7170 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
7171 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7172 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7173 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
7174
7175 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
7176
7177 PR gdb/25325
7178 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
7179
7180 2020-04-03 Tom Tromey <tromey@adacore.com>
7181
7182 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
7183 Read constant block.
7184
7185 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7186
7187 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
7188 (gdb_bfd_get_full_section_contents): New declaration.
7189 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
7190 * windows-tdep.c (is_linked_with_cygwin_dll): Use
7191 gdb_bfd_get_full_section_contents.
7192
7193 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7194
7195 * exec.c (build_section_table): Replace internal_error with
7196 gdb_assert.
7197 (section_table_xfer_memory_partial): Likewise.
7198 * mdebugread.c (parse_partial_symbols): Likewise.
7199 * psymtab.c (lookup_partial_symbol): Likewise.
7200 * utils.c (wrap_here): Likewise.
7201
7202 2020-04-02 Tom Tromey <tromey@adacore.com>
7203
7204 * f-lang.c (build_fortran_types): Use arch_type to initialize
7205 builtin_complex_s32 in the TYPE_CODE_ERROR case.
7206
7207 2020-04-02 Tom Tromey <tromey@adacore.com>
7208
7209 * dwarf2/read.c (partial_die_info::read): Do not create a vector
7210 of attributes.
7211
7212 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
7213 Bernd Edlinger <bernd.edlinger@hotmail.de>
7214 Tom Tromey <tromey@adacore.com>
7215
7216 * buildsym.c (buildsym_compunit::record_line): Remove
7217 deduplication code.
7218
7219 2020-04-02 Tom de Vries <tdevries@suse.de>
7220
7221 PR ada/24671
7222 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
7223
7224 2020-04-02 Tom de Vries <tdevries@suse.de>
7225
7226 * dwarf2/read.c (dwarf2_gdb_index_functions,
7227 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
7228 NULL.
7229 * psymtab.c (psym_lookup_global_symbol_language): New function.
7230 (psym_functions): Init psym_lookup_global_symbol_language with
7231 psym_lookup_global_symbol_language.
7232 * symfile-debug.c (debug_sym_quick_functions): Init
7233 lookup_global_symbol_language with NULL.
7234 * symfile.c (set_initial_language): Remove fixme comment.
7235 * symfile.h (struct quick_symbol_functions): Add
7236 lookup_global_symbol_language.
7237 * symtab.c (find_quick_global_symbol_language): New function.
7238 (find_main_name): Use find_quick_global_symbol_language.
7239
7240 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
7241
7242 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
7243
7244 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7245
7246 * buildsym.c (record_line): Fix undefined behavior and preserve
7247 lines at eof.
7248
7249 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7250
7251 * buildsym.c (record_line): Fix the resizing condition.
7252
7253 2020-04-01 Tom Tromey <tom@tromey.com>
7254
7255 * value.h (value_literal_complex): Add comment.
7256 * valops.c (value_literal_complex): Refer to value.h.
7257
7258 2020-04-01 Tom Tromey <tom@tromey.com>
7259
7260 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
7261 (scalar_type): New rule, from typebase.
7262 (typebase): Use scalar_type. Recognize complex types.
7263 (field_name): Handle FLOAT_KEYWORD.
7264 (ident_tokens): Add _Complex and __complex__.
7265
7266 2020-04-01 Tom Tromey <tom@tromey.com>
7267
7268 PR exp/25299:
7269 * valarith.c (promotion_type, complex_binop): New functions.
7270 (scalar_binop): Handle complex numbers. Use promotion_type.
7271 (value_pos, value_neg, value_complement): Handle complex numbers.
7272
7273 2020-04-01 Tom Tromey <tom@tromey.com>
7274
7275 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
7276 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
7277 (parse_number): Handle complex numbers.
7278
7279 2020-04-01 Tom Tromey <tom@tromey.com>
7280
7281 * c-valprint.c (c_decorations): Change complex suffix to "i".
7282
7283 2020-04-01 Tom Tromey <tom@tromey.com>
7284
7285 * valprint.c (generic_value_print_complex): Use accessors.
7286 * value.h (value_real_part, value_imaginary_part): Declare.
7287 * valops.c (value_real_part, value_imaginary_part): New
7288 functions.
7289 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
7290
7291 2020-04-01 Tom Tromey <tom@tromey.com>
7292
7293 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
7294 (read_range_type): Update.
7295 * mdebugread.c (basic_type): Update.
7296 * go-lang.c (build_go_types): Use init_complex_type.
7297 * gdbtypes.h (struct main_type) <complex_type>: New member.
7298 (init_complex_type): Update.
7299 (arch_complex_type): Don't declare.
7300 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
7301 Make name if none given. Use alloc_type_copy. Look for cached
7302 complex type.
7303 (arch_complex_type): Remove.
7304 (gdbtypes_post_init): Use init_complex_type.
7305 * f-lang.c (build_fortran_types): Use init_complex_type.
7306 * dwarf2/read.c (read_base_type): Update.
7307 * d-lang.c (build_d_types): Use init_complex_type.
7308 * ctfread.c (read_base_type): Update.
7309
7310 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7311
7312 * infrun.c (stop_all_threads): Update assertion, plus when
7313 stopping threads, take into account that we might be trying
7314 to stop an all-stop target.
7315 (stop_waiting): Call 'stop_all_threads' if there exists a
7316 non-stop target.
7317
7318 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7319
7320 * target.h (exists_non_stop_target): New function declaration.
7321 * target.c (exists_non_stop_target): New function.
7322
7323 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
7324
7325 PR gdb/24789
7326 * eval.c (is_integral_or_integral_reference): New function.
7327 (evaluate_subexp_standard): Allow integer references in
7328 pointer arithmetic.
7329
7330 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7331
7332 * remote.c (remote_target::remote_parse_stop_reply): Remove the
7333 check for no ptid in the stop reply when the target is non-stop.
7334
7335 2020-04-01 Tom Tromey <tromey@adacore.com>
7336
7337 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
7338 "name" parameter to rvalue reference. Initialize m_name_holder.
7339 <lookup_name_info>: New overloads.
7340 <name>: Return gdb::string_view.
7341 <c_str>: New method.
7342 <make_ignore_params>: Update.
7343 <search_name_hash>: Update.
7344 <language_lookup_name>: Return const char *.
7345 <m_name>: Change type.
7346 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
7347 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
7348 (lookup_name_info::match_any): Update.
7349 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7350 Update.
7351 * minsyms.c (linkage_name_str): Update.
7352 * language.c (default_symbol_name_matcher): Update.
7353 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7354 Update.
7355 * ada-lang.c (ada_fold_name): Change parameter to string_view.
7356 (ada_lookup_name_info::ada_lookup_name_info): Update.
7357 (literal_symbol_name_matcher): Update.
7358
7359 2020-04-01 Tom Tromey <tromey@adacore.com>
7360
7361 * psymtab.c (psymtab_search_name): Remove function.
7362 (psym_lookup_symbol): Create search name and lookup name here.
7363 (lookup_partial_symbol): Remove "name" parameter; add
7364 lookup_name.
7365 (psym_expand_symtabs_for_function): Update.
7366
7367 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
7368
7369 PR tui/25597:
7370 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7371
7372 2020-03-31 Tom Tromey <tromey@adacore.com>
7373
7374 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7375 memcpy.
7376
7377 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
7378
7379 * features/riscv/32bit-csr.xml: Regenerated.
7380 * features/riscv/64bit-csr.xml: Regenerated.
7381
7382 2020-03-30 Tom Tromey <tromey@adacore.com>
7383
7384 * ada-valprint.c (print_variant_part): Update.
7385 * ada-lang.h (ada_which_variant_applies): Update.
7386 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7387 outer_valaddr parameters; replace with "outer" value parameter.
7388 (to_fixed_variant_branch_type): Update.
7389
7390 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7391
7392 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7393 <list>. Remove inclusion of observable.h.
7394 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7395 (struct arch_lwp_info): New struct.
7396 (class ppc_linux_dreg_interface): New class.
7397 (struct ppc_linux_process_info): New struct.
7398 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7399 <low_new_clone, low_forget_process, low_prepare_to_resume>
7400 <copy_thread_dreg_state, mark_thread_stale>
7401 <mark_debug_registers_changed, register_hw_breakpoint>
7402 <clear_hw_breakpoint, register_wp, clear_wp>
7403 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7404 <num_memory_accesses, get_trigger_type>
7405 <create_watchpoint_request, hwdebug_point_cmp>
7406 <init_arch_lwp_info, get_arch_lwp_info>
7407 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7408 methods.
7409 <struct ptid_hash>: New inner struct.
7410 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7411 members.
7412 (saved_dabr_value, hwdebug_info, max_slots_number)
7413 (struct hw_break_tuple, struct thread_points, ppc_threads)
7414 (have_ptrace_hwdebug_interface)
7415 (hwdebug_find_thread_points_by_tid)
7416 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7417 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7418 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7419 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7420 use m_dreg_interface.
7421 (hwdebug_point_cmp): Change to...
7422 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7423 reference arguments instead of pointers.
7424 (ppc_linux_nat_target::ranged_break_num_registers): Use
7425 m_dreg_interface.
7426 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7427 m_dreg_interface. Call register_hw_breakpoint.
7428 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7429 m_dreg_interface. Call clear_hw_breakpoint.
7430 (get_trigger_type): Change to...
7431 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7432 comment.
7433 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7434 use m_dreg_interface. Call register_hw_breakpoint.
7435 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7436 use m_dreg_interface. Call clear_hw_breakpoint.
7437 (can_use_watchpoint_cond_accel): Change to...
7438 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7439 method. Update comment, use m_dreg_interface and
7440 m_process_info.
7441 (calculate_dvc): Change to...
7442 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7443 m_dreg_interface.
7444 (num_memory_accesses): Change to...
7445 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7446 (check_condition): Change to...
7447 (ppc_linux_nat_target::check_condition): ...this method.
7448 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7449 comment, use m_dreg_interface.
7450 (create_watchpoint_request): Change to...
7451 (ppc_linux_nat_target::create_watchpoint_request): ...this
7452 method. Use m_dreg_interface.
7453 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7454 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7455 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7456 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7457 (ppc_linux_nat_target::low_forget_process)
7458 (ppc_linux_nat_target::low_new_fork)
7459 (ppc_linux_nat_target::low_new_clone)
7460 (ppc_linux_nat_target::low_delete_thread)
7461 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7462 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7463 only call mark_thread_stale.
7464 (ppc_linux_thread_exit): Remove.
7465 (ppc_linux_nat_target::stopped_data_address): Change to...
7466 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7467 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7468 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7469 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7470 comment. Call low_stopped_data_address.
7471 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7472 m_dreg_interface.
7473 (ppc_linux_nat_target::masked_watch_num_registers): Use
7474 m_dreg_interface.
7475 (ppc_linux_nat_target::copy_thread_dreg_state)
7476 (ppc_linux_nat_target::mark_thread_stale)
7477 (ppc_linux_nat_target::mark_debug_registers_changed)
7478 (ppc_linux_nat_target::register_hw_breakpoint)
7479 (ppc_linux_nat_target::clear_hw_breakpoint)
7480 (ppc_linux_nat_target::register_wp)
7481 (ppc_linux_nat_target::clear_wp)
7482 (ppc_linux_nat_target::init_arch_lwp_info)
7483 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7484 (_initialize_ppc_linux_nat): Remove observer callback.
7485
7486 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7487
7488 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7489 (ppc_linux_nat_target::auxv_parse)
7490 (ppc_linux_nat_target::read_description)
7491 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7492 Move up.
7493
7494 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7495
7496 * linux-nat.h (low_new_clone): New method.
7497 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7498
7499 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7500
7501 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7502 (dbx_expand_psymtab): ... this.
7503 (start_psymtab): Update.
7504 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7505 (mdebug_expand_psymtab): ... this.
7506 (parse_partial_symbols): Update.
7507 (new_psymtab): Update.
7508 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7509 (xcoff_expand_psymtab): ... this.
7510 (xcoff_start_psymtab): Update.
7511
7512 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7513
7514 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7515 <expand_dependencies>: ... this.
7516 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7517 (partial_symtab::expand_dependencies): ... this.
7518 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7519 Update.
7520 (dwarf2_psymtab::expand_psymtab): Update.
7521 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7522 * mdebugread.c (psymtab_to_symtab_1): Update.
7523 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7524
7525 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7526
7527 * psympriv.h (discard_psymtab): Remove.
7528 * dbxread.c (dbx_end_psymtab): Update.
7529 * xcoffread.c (xcoff_end_psymtab): Update.
7530
7531 2020-03-28 Tom Tromey <tom@tromey.com>
7532
7533 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7534 comment.
7535
7536 2020-03-28 Tom Tromey <tom@tromey.com>
7537
7538 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7539
7540 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
7541
7542 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7543
7544 2020-03-26 John Baldwin <jhb@FreeBSD.org>
7545
7546 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7547
7548 2020-03-26 Tom Tromey <tom@tromey.com>
7549
7550 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7551 (mark_common_block_symbol_computed, read_tag_string_type)
7552 (attr_to_dynamic_prop, read_subrange_type): Update.
7553 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7554 to be methods on struct attribute.
7555 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7556 (read_call_site_scope, partial_die_info::read)
7557 (partial_die_info::read, lookup_die_type, follow_die_ref):
7558 Update.
7559 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7560 from dwarf2_get_ref_die_offset.
7561 (attribute::constant_value): New method, from
7562 dwarf2_get_attr_constant_value.
7563 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7564 Declare method.
7565 <constant_value>: New method.
7566
7567 2020-03-26 Tom Tromey <tom@tromey.com>
7568
7569 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7570 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7571 (dwarf_type_encoding_name): Move to stringify.c.
7572 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7573 * dwarf2/stringify.c: New file.
7574 * dwarf2/stringify.h: New file.
7575
7576 2020-03-26 Tom Tromey <tom@tromey.com>
7577
7578 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7579 Rewrite.
7580
7581 2020-03-26 Tom Tromey <tom@tromey.com>
7582
7583 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7584 methods.
7585 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7586 (lookup_ranges_base): Likewise.
7587 (read_cutu_die_from_dwo, read_full_die_1): Update.
7588
7589 2020-03-26 Tom Tromey <tom@tromey.com>
7590
7591 * dwarf2/read.c (read_import_statement, read_file_scope)
7592 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7593 (read_lexical_block_scope, read_call_site_scope)
7594 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7595 (handle_struct_member_die, process_structure_scope)
7596 (update_enumeration_type_from_children)
7597 (process_enumeration_scope, read_array_type, read_common_block)
7598 (read_namespace, read_module, read_subroutine_type): Update.
7599 (sibling_die): Remove.
7600
7601 2020-03-26 Tom Tromey <tom@tromey.com>
7602
7603 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7604 (build_type_psymtabs_reader, read_structure_type)
7605 (read_enumeration_type, read_full_die_1): Update.
7606 (dwarf2_attr_no_follow): Move to die.h.
7607 * dwarf2/die.h (struct die_info) <attr>: New method.
7608
7609 2020-03-26 Tom Tromey <tom@tromey.com>
7610
7611 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7612 <base_address>: Now an optional.
7613 (dwarf2_find_base_address, dwarf2_rnglists_process)
7614 (dwarf2_ranges_process, fill_in_loclist_baton)
7615 (dwarf2_symbol_mark_computed): Update.
7616
7617 2020-03-26 Tom Tromey <tom@tromey.com>
7618
7619 * dwarf2/read.c (struct die_info): Move to die.h.
7620 * dwarf2/die.h: New file.
7621
7622 2020-03-26 Tom Tromey <tom@tromey.com>
7623
7624 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7625 * dwarf2/read.c
7626 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7627 Move to line-header.c.
7628 (read_checked_initial_length_and_offset, read_formatted_entries):
7629 Likewise.
7630 (dwarf_decode_line_header): Split into two.
7631 * dwarf2/line-header.c
7632 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7633 Move from read.c.
7634 (read_checked_initial_length_and_offset, read_formatted_entries):
7635 Likewise.
7636 (dwarf_decode_line_header): New function, split from read.c.
7637
7638 2020-03-26 Tom Tromey <tom@tromey.com>
7639
7640 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7641 Declare method.
7642 * dwarf2/read.c (read_attribute_value): Update.
7643 (dwarf2_per_objfile::read_line_string): Rename from
7644 read_indirect_line_string.
7645 (read_formatted_entries): Update.
7646
7647 2020-03-26 Tom Tromey <tom@tromey.com>
7648
7649 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7650 variable.
7651
7652 2020-03-26 Tom Tromey <tom@tromey.com>
7653
7654 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7655 const.
7656 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7657 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7658 parameter const.
7659
7660 2020-03-26 Tom Tromey <tom@tromey.com>
7661
7662 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7663 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7664 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7665 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7666
7667 2020-03-26 Tom Tromey <tom@tromey.com>
7668
7669 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7670 file_names_size, file_full_name, file_file_name>: Use const.
7671 <file_name_at, file_names>: Add const overload.
7672 * dwarf2/line-header.c (line_header::file_file_name)
7673 (line_header::file_full_name): Update.
7674
7675 2020-03-26 Tom Tromey <tom@tromey.com>
7676
7677 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7678 (macro_start_file, consume_improper_spaces)
7679 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7680 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7681 (dwarf_decode_macros): Move to macro.c.
7682 * dwarf2/macro.c: New file.
7683 * dwarf2/macro.h: New file.
7684 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7685
7686 2020-03-26 Tom Tromey <tom@tromey.com>
7687
7688 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7689 method.
7690 * dwarf2/section.c: New method. From
7691 read_indirect_string_at_offset_from.
7692 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7693 (read_indirect_string_at_offset_from): Move to section.c.
7694 (read_indirect_string_at_offset): Rewrite.
7695 (read_indirect_line_string_at_offset): Remove.
7696 (read_indirect_string, read_indirect_line_string)
7697 (dwarf_decode_macro_bytes): Update.
7698
7699 2020-03-26 Tom Tromey <tom@tromey.com>
7700
7701 * dwarf2/section.h (struct dwarf2_section_info)
7702 <overload_complaint>: Declare.
7703 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7704 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7705 Rename from dwarf2_section_buffer_overflow_complaint.
7706 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7707 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7708
7709 2020-03-26 Tom Tromey <tom@tromey.com>
7710
7711 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7712 Declare.
7713 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7714 Move from read.c.
7715 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7716 to section.c.
7717
7718 2020-03-26 Tom Tromey <tom@tromey.com>
7719
7720 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7721
7722 2020-03-26 Tom Tromey <tom@tromey.com>
7723
7724 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7725 "builder".
7726 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7727 parameter.
7728 (dwarf_decode_macros): Update.
7729
7730 2020-03-26 Tom Tromey <tom@tromey.com>
7731
7732 * dwarf2/read.c (read_attribute_value): Update.
7733 (read_indirect_string_from_dwz): Move to dwz.c; change into
7734 method.
7735 (dwarf_decode_macro_bytes): Update.
7736 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7737 * dwarf2/dwz.c: New file.
7738 * Makefile.in (COMMON_SFILES): Add dwz.c.
7739
7740 2020-03-26 Tom Tromey <tom@tromey.com>
7741
7742 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7743 * dwarf2/read.c: Add include.
7744 * dwarf2/index-write.c: Add include.
7745 * dwarf2/index-cache.c: Add include.
7746 * dwarf2/dwz.h: New file.
7747
7748 2020-03-25 Tom Tromey <tom@tromey.com>
7749
7750 * compile/compile-object-load.c (get_out_value_type): Mention
7751 correct symbol name in error message.
7752
7753 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
7754
7755 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7756
7757 2020-03-25 Tom de Vries <tdevries@suse.de>
7758
7759 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7760 * symmisc.c (dump_symtab_1): Print user and includes fields.
7761 (maintenance_info_symtabs): Same.
7762
7763 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7764
7765 PR gdb/25534
7766 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7767 (riscv_regcache_cooked_write): New function.
7768 (riscv_push_dummy_call): Use new function.
7769 (riscv_return_value): Likewise.
7770
7771 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7772
7773 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7774 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7775 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7776 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7777 * infrun.c (follow_fork): Likewise.
7778 (follow_fork_inferior): Likewise.
7779 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7780 * linux-nat.h (class linux_nat_target): Likewise.
7781 * remote.c (class remote_target) <follow_fork>: Likewise.
7782 (remote_target::follow_fork): Likewise.
7783 * target-delegates.c: Re-generate.
7784 * target.c (default_follow_fork): Likewise.
7785 (target_follow_fork): Likewise.
7786 * target.h (struct target_ops) <follow_fork>: Likewise.
7787 (target_follow_fork): Likewise.
7788
7789 2020-03-24 Tom de Vries <tdevries@suse.de>
7790
7791 * psymtab.c (maintenance_info_psymtabs): Print user field.
7792
7793 2020-03-20 Tom Tromey <tromey@adacore.com>
7794
7795 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7796 const.
7797 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7798 const.
7799
7800 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
7801
7802 * ptrace.m4: Don't check for ptrace declaration.
7803 * config.in: Re-generate.
7804 * configure: Re-generate.
7805 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7806 not defined.
7807
7808 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7809
7810 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7811 `PTRACE_TYPE_RET'.
7812 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7813 * sparc-nat.c (gdb_ptrace): Likewise.
7814 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7815
7816 2020-03-20 Tom Tromey <tromey@adacore.com>
7817
7818 * c-exp.y (lex_one_token): Fix assert.
7819
7820 2020-03-20 Tom Tromey <tromey@adacore.com>
7821
7822 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7823 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7824 strncpy call.
7825
7826 2020-03-20 Tom Tromey <tromey@adacore.com>
7827
7828 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7829
7830 2020-03-20 Tom Tromey <tromey@adacore.com>
7831
7832 * ada-valprint.c (print_variant_part): Remove parameters; switch
7833 to value-based API.
7834 (print_field_values): Likewise.
7835 (ada_val_print_struct_union): Likewise.
7836 (ada_value_print_1): Update.
7837
7838 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7839
7840 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7841 nbsd_nat_target instead of inf_ptrace_target.
7842 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7843 nbsd_nat_target.
7844
7845 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7846
7847 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7848 it to the ptrace call.
7849 * (store_registers): Likewise.
7850
7851 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7852
7853 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7854 it to the ptrace call.
7855 * (store_registers): Likewise.
7856
7857 2020-03-19 Luis Machado <luis.machado@linaro.org>
7858
7859 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7860 valid, fetch vg value from ptrace.
7861
7862 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7863 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7864 * inf-ptrace.c: Likewise.
7865 * (gdb_ptrace): Add.
7866 * (inf_ptrace_target::resume): Update.
7867 * (inf_ptrace_target::xfer_partial): Likewise.
7868 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7869 * (inf_ptrace_peek_poke): Update.
7870
7871 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7872
7873 * x86-bsd-nat.c (gdb_ptrace): New.
7874 * (x86bsd_dr_set): Add new argument `ptid'.
7875 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7876 x86bsd_dr_set_addr): Update.
7877
7878 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7879
7880 * remote.c (remote_target::process_stop_reply): Handle events for
7881 all threads differently.
7882
7883 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7884
7885 * completer.c (completion_tracker::remove_completion): Define new
7886 function.
7887 * completer.h (completion_tracker::remove_completion): Declare new
7888 function.
7889 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7890 when adding a C++ function symbol.
7891
7892 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7893
7894 * completer.c (completion_tracker::completion_hash_entry): Define
7895 new class.
7896 (advance_to_filename_complete_word_point): Call
7897 recompute_lowest_common_denominator.
7898 (completion_tracker::completion_tracker): Call discard_completions
7899 to setup the hash table.
7900 (completion_tracker::discard_completions): Allow for being called
7901 from the constructor, pass new equal function, and element deleter
7902 when constructing the hash table. Initialise new class member
7903 variables.
7904 (completion_tracker::maybe_add_completion): Remove use of
7905 m_entries_vec, and store more information into m_entries_hash.
7906 (completion_tracker::recompute_lcd_visitor): New function, most
7907 content taken from...
7908 (completion_tracker::recompute_lowest_common_denominator):
7909 ...here, this now just visits each item in the hash calling the
7910 above visitor.
7911 (completion_tracker::build_completion_result): Remove use of
7912 m_entries_vec, call recompute_lowest_common_denominator.
7913 * completer.h (completion_tracker::have_completions): Remove use
7914 of m_entries_vec.
7915 (completion_tracker::completion_hash_entry): Declare new class.
7916 (completion_tracker::recompute_lowest_common_denominator): Change
7917 function signature.
7918 (completion_tracker::recompute_lcd_visitor): Declare new function.
7919 (completion_tracker::m_entries_vec): Delete.
7920 (completion_tracker::m_entries_hash): Initialize to NULL.
7921 (completion_tracker::m_lowest_common_denominator_valid): New
7922 member variable.
7923 (completion_tracker::m_lowest_common_denominator_max_length): New
7924 member variable.
7925
7926 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7927
7928 * regformats/regdef.h: Put reg in gdb namespace.
7929
7930 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7931
7932 * i386-bsd-nat.c (gdb_ptrace): New.
7933 * (i386bsd_fetch_inferior_registers,
7934 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7935 * (i386bsd_fetch_inferior_registers,
7936 i386bsd_store_inferior_registers) Use gdb_ptrace.
7937
7938 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7939
7940 * amd64-bsd-nat.c (gdb_ptrace): New.
7941 * (amd64bsd_fetch_inferior_registers,
7942 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7943 * (amd64bsd_fetch_inferior_registers,
7944 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7945
7946 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7947
7948 * user-regs.c (user_reg::read): Rename to...
7949 (user_reg::xread): ...this.
7950 * (append_user_reg): Rename argument `read' to `xread'.
7951 * (user_reg_add_builtin): Likewise.
7952 * (user_reg_add): Likewise.
7953 * (value_of_user_reg): Likewise.
7954
7955 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7956
7957 * sparc-nat.c (gdb_ptrace): New.
7958 * sparc-nat.c (sparc_fetch_inferior_registers)
7959 (sparc_store_inferior_registers) Remove obsolete comment.
7960 * sparc-nat.c (sparc_fetch_inferior_registers)
7961 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7962 * sparc-nat.c (sparc_fetch_inferior_registers)
7963 (sparc_store_inferior_registers) Use gdb_ptrace.
7964
7965 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7966
7967 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7968 it to the ptrace call.
7969 * sh-nbsd-nat.c (store_registers): Likewise.
7970
7971 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7972
7973 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7974 nbsd_nat_target instead of inf_ptrace_target.
7975 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7976 nbsd_nat_target.
7977
7978 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7979
7980 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7981
7982 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7983
7984 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7985 <sys/sysctl.h>.
7986 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7987
7988 2020-03-17 Tom de Vries <tdevries@suse.de>
7989
7990 PR gdb/23710
7991 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7992 fields.
7993 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7994 fields.
7995 (process_imported_unit_die): Skip import of c++ CUs.
7996
7997 2020-03-16 Tom Tromey <tom@tromey.com>
7998
7999 * p-valprint.c (pascal_object_print_value): Initialize
8000 base_value.
8001
8002 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
8003 Shahab Vahedi <shahab@synopsys.com>
8004
8005 * Makefile.in: Add arch/arc.o
8006 * configure.tgt: Likewise.
8007 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
8008 (_initialize_arc_tdep): Don't initialize old target descriptions.
8009 (arc_read_description): New function to cache target descriptions.
8010 * arc-tdep.h (arc_read_description): Add proto type.
8011 * arch/arc.c: New file.
8012 * arch/arc.h: Likewise.
8013 * features/Makefile: Replace old target descriptions with new.
8014 * features/arc-arcompact.c: Remove.
8015 * features/arc-arcompact.xml: Likewise.
8016 * features/arc-v2.c: Likewise
8017 * features/arc-v2.xml: Likewise
8018 * features/arc/aux-arcompact.xml: New file.
8019 * features/arc/aux-v2.xml: Likewise.
8020 * features/arc/core-arcompact.xml: Likewise.
8021 * features/arc/core-v2.xml: Likewise.
8022 * features/arc/aux-arcompact.c: Generate.
8023 * features/arc/aux-v2.c: Likewise.
8024 * features/arc/core-arcompact.c: Likewise.
8025 * features/arc/core-v2.c: Likewise.
8026 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
8027
8028 2020-03-16 Tom Tromey <tromey@adacore.com>
8029
8030 PR gdb/25663:
8031 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
8032 putting value into bcache.
8033
8034 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8035
8036 PR gdb/21500
8037 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
8038 to...
8039 (amd64_windows_init_abi_common): ... this. Don't set size of
8040 long type.
8041 (amd64_windows_init_abi): New function.
8042 (amd64_cygwin_init_abi): New function.
8043 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
8044 the Cygwin OS ABI.
8045 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
8046 comment.
8047
8048 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8049
8050 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
8051 * windows-tdep.c (CYGWIN_DLL_NAME): New.
8052 (pe_import_directory_entry): New struct type.
8053 (is_linked_with_cygwin_dll): New function.
8054 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
8055 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
8056 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
8057
8058 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8059
8060 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
8061 i386_cygwin_core_osabi_sniffer.
8062
8063 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8064
8065 * i386-cygwin-tdep.c: Rename to...
8066 * i386-windows-tdep.c: ... this.
8067 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
8068 i386-windows-tdep.c.
8069 * configure.tgt: Likewise.
8070
8071 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8072
8073 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
8074 * osabi.c (gdb_osabi_names): Add "Windows".
8075 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
8076 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
8077 (i386_cygwin_core_osabi_sniffer): New function, extracted from
8078 i386_cygwin_osabi_sniffer.
8079 (_initialize_i386_cygwin_tdep): Register OS ABI
8080 GDB_OSABI_WINDOWS for i386.
8081 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
8082 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
8083 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
8084 for x86-64.
8085 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
8086 when the target matches '*-*-mingw*'.
8087
8088 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8089
8090 * defs.h (enum gdb_osabi): Move to...
8091 * osabi.h (enum gdb_osabi): ... here.
8092 * gdbarch.sh: Include osabi.h in gdbarch.h.
8093 * gdbarch.h: Re-generate.
8094
8095 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8096
8097 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
8098 function.
8099 (_initialize_amd64_windows_tdep): Register osabi sniffer.
8100
8101 2020-03-14 Tom Tromey <tom@tromey.com>
8102
8103 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
8104 for C++.
8105 (c_type_print_modifier): Likewise. Add "language" parameter.
8106 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
8107 (c_type_print_base_1): Update.
8108 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
8109 constants.
8110 * type-stack.c (type_stack::insert): Handle tp_atomic and
8111 tp_restrict.
8112 (type_stack::follow_type_instance_flags): Likewise.
8113 (type_stack::follow_types): Likewise. Merge type-following code.
8114 * c-exp.y (RESTRICT, ATOMIC): New tokens.
8115 (space_identifier, cv_with_space_id)
8116 (const_or_volatile_or_space_identifier_noopt)
8117 (const_or_volatile_or_space_identifier): Remove.
8118 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
8119 rules.
8120 (ptr_operator, typebase): Update.
8121 (enum token_flag) <FLAG_C>: New constant.
8122 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
8123 "_Atomic".
8124 (lex_one_token): Handle FLAG_C.
8125
8126 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8127
8128 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
8129 it to the ptrace call.
8130 * m68k-bsd-nat.c (store_registers): Likewise.
8131
8132 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8133
8134 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
8135 gdb_byte *.
8136 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
8137 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
8138 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
8139
8140 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8141
8142 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
8143 nbsd_nat_target instead of inf_ptrace_target.
8144 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8145 nbsd_nat_target.
8146
8147 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8148
8149 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
8150 register_t.
8151
8152 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8153
8154 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
8155 it to the ptrace call.
8156 * alpha-bsd-nat.c (store_registers): Likewise.
8157
8158 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8159
8160 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
8161 includes.
8162 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
8163 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
8164 fill_fpregset): Likewise.
8165
8166 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8167
8168 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
8169 nbsd_nat_target instead of inf_ptrace_target.
8170 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8171 nbsd_nat_target.
8172
8173 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8174
8175 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
8176 register_t.
8177
8178 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8179
8180 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
8181 it to the ptrace call.
8182 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
8183 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
8184 * arm-nbsd-nat.c (store_register): Likewise.
8185 * arm-nbsd-nat.c (store_regs): Likewise.
8186 * arm-nbsd-nat.c (store_fp_register): Likewise.
8187 * arm-nbsd-nat.c (store_fp_regs): Likewise.
8188
8189 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8190
8191 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
8192 nbsd_nat_target instead of inf_ptrace_target.
8193 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8194 nbsd_nat_target.
8195
8196 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8197
8198 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
8199 it to the ptrace call.
8200 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
8201
8202 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8203
8204 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
8205 it to the ptrace call.
8206 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
8207
8208 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8209
8210 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
8211 gdb_byte *.
8212 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
8213
8214 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8215
8216 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
8217 instead of inf_ptrace_target.
8218 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8219 nbsd_nat_target.
8220
8221 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8222
8223 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8224 register_t.
8225
8226 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8227
8228 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8229 register_t.
8230
8231 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8232
8233 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
8234 register_t.
8235
8236 2020-03-13 Tom Tromey <tom@tromey.com>
8237
8238 * value.h (val_print): Don't declare.
8239 * valprint.h (val_print_array_elements)
8240 (val_print_scalar_formatted, generic_val_print): Don't declare.
8241 * valprint.c (generic_val_print_array): Take a struct value.
8242 (generic_val_print_ptr, generic_val_print_memberptr)
8243 (generic_val_print_bool, generic_val_print_int)
8244 (generic_val_print_char, generic_val_print_complex)
8245 (generic_val_print): Remove.
8246 (generic_value_print): Update.
8247 (do_val_print): Remove unused parameters. Don't call
8248 la_val_print.
8249 (val_print): Remove.
8250 (common_val_print): Update. Don't call value_check_printable.
8251 (val_print_scalar_formatted, val_print_array_elements): Remove.
8252 * rust-lang.c (rust_val_print): Remove.
8253 (rust_language_defn): Update.
8254 * p-valprint.c (pascal_val_print): Remove.
8255 (pascal_value_print_inner): Update.
8256 (pascal_object_print_val_fields, pascal_object_print_val):
8257 Remove.
8258 (pascal_object_print_static_field): Update.
8259 * p-lang.h (pascal_val_print): Don't declare.
8260 * p-lang.c (pascal_language_defn): Update.
8261 * opencl-lang.c (opencl_language_defn): Update.
8262 * objc-lang.c (objc_language_defn): Update.
8263 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
8264 * m2-lang.h (m2_val_print): Don't declare.
8265 * m2-lang.c (m2_language_defn): Update.
8266 * language.h (struct language_defn) <la_val_print>: Remove.
8267 * language.c (unk_lang_value_print_inner): Rename. Change
8268 argument types.
8269 (unknown_language_defn, auto_language_defn): Update.
8270 * go-valprint.c (go_val_print): Remove.
8271 * go-lang.h (go_val_print): Don't declare.
8272 * go-lang.c (go_language_defn): Update.
8273 * f-valprint.c (f_val_print): Remove.
8274 * f-lang.h (f_value_print): Don't declare.
8275 * f-lang.c (f_language_defn): Update.
8276 * d-valprint.c (d_val_print): Remove.
8277 * d-lang.h (d_value_print): Don't declare.
8278 * d-lang.c (d_language_defn): Update.
8279 * cp-valprint.c (cp_print_value_fields)
8280 (cp_print_value_fields_rtti, cp_print_value): Remove.
8281 (cp_print_static_field): Update.
8282 * c-valprint.c (c_val_print_array, c_val_print_ptr)
8283 (c_val_print_struct, c_val_print_union, c_val_print_int)
8284 (c_val_print_memberptr, c_val_print): Remove.
8285 * c-lang.h (c_val_print_array, cp_print_value_fields)
8286 (cp_print_value_fields_rtti): Don't declare.
8287 * c-lang.c (c_language_defn, cplus_language_defn)
8288 (asm_language_defn, minimal_language_defn): Update.
8289 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
8290 (ada_val_print_enum): Take a struct value.
8291 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
8292 (ada_val_print): Remove.
8293 (ada_value_print_1): Update.
8294 (printable_val_type): Remove.
8295 * ada-lang.h (ada_val_print): Don't declare.
8296 * ada-lang.c (ada_language_defn): Update.
8297
8298 2020-03-13 Tom Tromey <tom@tromey.com>
8299
8300 * valprint.c (do_val_print): Update.
8301 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
8302 a struct value.
8303 (value_to_value_object_no_release): Declare.
8304 * python/py-value.c (value_to_value_object_no_release): New
8305 function.
8306 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
8307 struct value.
8308 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
8309 function.
8310 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
8311 a struct value.
8312 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
8313 Declare.
8314 (gdbscm_apply_val_pretty_printer): Take a struct value.
8315 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
8316 value.
8317 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
8318 value.
8319 * extension-priv.h (struct extension_language_ops)
8320 <apply_val_pretty_printer>: Take a struct value.
8321 * cp-valprint.c (cp_print_value): Create a struct value.
8322 (cp_print_value): Update.
8323
8324 2020-03-13 Tom Tromey <tom@tromey.com>
8325
8326 * ada-valprint.c (print_field_values): Call common_val_print.
8327
8328 2020-03-13 Tom Tromey <tom@tromey.com>
8329
8330 * ada-valprint.c (val_print_packed_array_elements): Remove
8331 bitoffset and val parameters. Call common_val_print.
8332 (ada_val_print_string): Remove offset, address, and original_value
8333 parameters.
8334 (ada_val_print_array): Update.
8335 (ada_value_print_array): New function.
8336 (ada_value_print_1): Call it.
8337
8338 2020-03-13 Tom Tromey <tom@tromey.com>
8339
8340 * ada-valprint.c (ada_value_print): Use common_val_print.
8341
8342 2020-03-13 Tom Tromey <tom@tromey.com>
8343
8344 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
8345
8346 2020-03-13 Tom Tromey <tom@tromey.com>
8347
8348 * ada-valprint.c (ada_value_print_num): New function.
8349 (ada_value_print_1): Use it.
8350
8351 2020-03-13 Tom Tromey <tom@tromey.com>
8352
8353 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8354
8355 2020-03-13 Tom Tromey <tom@tromey.com>
8356
8357 * ada-valprint.c (ada_value_print_ptr): New function.
8358 (ada_value_print_1): Use it.
8359
8360 2020-03-13 Tom Tromey <tom@tromey.com>
8361
8362 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8363 call common_val_print.
8364 (ada_val_print_1): Update.
8365 (ada_value_print_1): New function.
8366 (ada_value_print_inner): Rewrite.
8367
8368 2020-03-13 Tom Tromey <tom@tromey.com>
8369
8370 * cp-valprint.c (cp_print_value_fields): Update.
8371 (cp_print_value): New function.
8372
8373 2020-03-13 Tom Tromey <tom@tromey.com>
8374
8375 * m2-valprint.c (m2_value_print_inner): Use
8376 cp_print_value_fields.
8377 * cp-valprint.c (cp_print_value_fields): New function.
8378 * c-valprint.c (c_value_print_struct): New function.
8379 (c_value_print_inner): Use c_value_print_struct.
8380 * c-lang.h (cp_print_value_fields): Declare.
8381
8382 2020-03-13 Tom Tromey <tom@tromey.com>
8383
8384 * c-valprint.c (c_value_print_array): New function.
8385 (c_value_print_inner): Use it.
8386
8387 2020-03-13 Tom Tromey <tom@tromey.com>
8388
8389 * c-valprint.c (c_value_print_memberptr): New function.
8390 (c_value_print_inner): Use it.
8391
8392 2020-03-13 Tom Tromey <tom@tromey.com>
8393
8394 * c-valprint.c (c_value_print_int): New function.
8395 (c_value_print_inner): Use it.
8396
8397 2020-03-13 Tom Tromey <tom@tromey.com>
8398
8399 * c-valprint.c (c_value_print_ptr): New function.
8400 (c_value_print_inner): Use it.
8401
8402 2020-03-13 Tom Tromey <tom@tromey.com>
8403
8404 * c-valprint.c (c_value_print_inner): Rewrite.
8405
8406 2020-03-13 Tom Tromey <tom@tromey.com>
8407
8408 * valprint.c (generic_value_print_complex): New function.
8409 (generic_value_print): Use it.
8410
8411 2020-03-13 Tom Tromey <tom@tromey.com>
8412
8413 * valprint.c (generic_val_print_float): Don't call
8414 val_print_scalar_formatted.
8415 (generic_val_print, generic_value_print): Update.
8416
8417 2020-03-13 Tom Tromey <tom@tromey.com>
8418
8419 * valprint.c (generic_value_print_char): New function
8420 (generic_value_print): Use it.
8421
8422 2020-03-13 Tom Tromey <tom@tromey.com>
8423
8424 * valprint.c (generic_value_print_int): New function.
8425 (generic_value_print): Use it.
8426
8427 2020-03-13 Tom Tromey <tom@tromey.com>
8428
8429 * valprint.c (generic_value_print_bool): New function.
8430 (generic_value_print): Use it.
8431
8432 2020-03-13 Tom Tromey <tom@tromey.com>
8433
8434 * valprint.c (generic_val_print_func): Simplify.
8435 (generic_val_print, generic_value_print): Update.
8436
8437 2020-03-13 Tom Tromey <tom@tromey.com>
8438
8439 * valprint.c (generic_val_print_flags): Remove.
8440 (generic_val_print, generic_value_print): Update.
8441 (val_print_type_code_flags): Add original_value parameter.
8442
8443 2020-03-13 Tom Tromey <tom@tromey.com>
8444
8445 * valprint.c (generic_val_print): Update.
8446 (generic_value_print): Update.
8447 * valprint.c (generic_val_print_enum): Don't call
8448 val_print_scalar_formatted.
8449
8450 2020-03-13 Tom Tromey <tom@tromey.com>
8451
8452 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8453 * valprint.c (generic_value_print_ptr): New function.
8454
8455 2020-03-13 Tom Tromey <tom@tromey.com>
8456
8457 * valprint.c (generic_value_print): Rewrite.
8458
8459 2020-03-13 Tom Tromey <tom@tromey.com>
8460
8461 * p-valprint.c (pascal_object_print_value_fields)
8462 (pascal_object_print_value): New functions.
8463
8464 2020-03-13 Tom Tromey <tom@tromey.com>
8465
8466 * p-valprint.c (pascal_value_print_inner): Rewrite.
8467
8468 2020-03-13 Tom Tromey <tom@tromey.com>
8469
8470 * f-valprint.c (f_value_print_innner): Rewrite.
8471
8472 2020-03-13 Tom Tromey <tom@tromey.com>
8473
8474 * m2-valprint.c (m2_print_unbounded_array): New overload.
8475 (m2_print_unbounded_array): Update.
8476 (m2_print_array_contents): Take a struct value.
8477 (m2_value_print_inner): Rewrite.
8478
8479 2020-03-13 Tom Tromey <tom@tromey.com>
8480
8481 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8482 (d_value_print_inner): New function.
8483 * d-lang.h (d_value_print_inner): Declare.
8484 * d-lang.c (d_language_defn): Use d_value_print_inner.
8485
8486 2020-03-13 Tom Tromey <tom@tromey.com>
8487
8488 * go-valprint.c (go_value_print_inner): New function.
8489 * go-lang.h (go_value_print_inner): Declare.
8490 * go-lang.c (go_language_defn): Use go_value_print_inner.
8491
8492 2020-03-13 Tom Tromey <tom@tromey.com>
8493
8494 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8495 API.
8496 (rust_val_print): Rewrite.
8497 (rust_value_print_inner): New function, from rust_val_print.
8498 (rust_language_defn): Use rust_value_print_inner.
8499
8500 2020-03-13 Tom Tromey <tom@tromey.com>
8501
8502 * ada-valprint.c (ada_value_print_inner): New function.
8503 * ada-lang.h (ada_value_print_inner): Declare.
8504 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8505
8506 2020-03-13 Tom Tromey <tom@tromey.com>
8507
8508 * f-valprint.c (f_value_print_innner): New function.
8509 * f-lang.h (f_value_print_innner): Declare.
8510 * f-lang.c (f_language_defn): Use f_value_print_innner.
8511
8512 2020-03-13 Tom Tromey <tom@tromey.com>
8513
8514 * p-valprint.c (pascal_value_print_inner): New function.
8515 * p-lang.h (pascal_value_print_inner): Declare.
8516 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8517
8518 2020-03-13 Tom Tromey <tom@tromey.com>
8519
8520 * m2-valprint.c (m2_value_print_inner): New function.
8521 * m2-lang.h (m2_value_print_inner): Declare.
8522 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8523
8524 2020-03-13 Tom Tromey <tom@tromey.com>
8525
8526 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8527 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8528 * c-valprint.c (c_value_print_inner): New function.
8529 * c-lang.h (c_value_print_inner): Declare.
8530 * c-lang.c (c_language_defn, cplus_language_defn)
8531 (asm_language_defn, minimal_language_defn): Use
8532 c_value_print_inner.
8533
8534 2020-03-13 Tom Tromey <tom@tromey.com>
8535
8536 * p-valprint.c (pascal_object_print_value_fields): Now static.
8537 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8538
8539 2020-03-13 Tom Tromey <tom@tromey.com>
8540
8541 * c-valprint.c (c_val_print_array): Simplify.
8542
8543 2020-03-13 Tom Tromey <tom@tromey.com>
8544
8545 * valprint.c (value_print_array_elements): New function.
8546 * valprint.h (value_print_array_elements): Declare.
8547
8548 2020-03-13 Tom Tromey <tom@tromey.com>
8549
8550 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8551 * mips-tdep.c (mips_print_register): Use
8552 value_print_scalar_formatted.
8553
8554 2020-03-13 Tom Tromey <tom@tromey.com>
8555
8556 * valprint.h (value_print_scalar_formatted): Declare.
8557 * valprint.c (value_print_scalar_formatted): New function.
8558
8559 2020-03-13 Tom Tromey <tom@tromey.com>
8560
8561 * valprint.h (generic_value_print): Declare.
8562 * valprint.c (generic_value_print): New function.
8563
8564 2020-03-13 Tom Tromey <tom@tromey.com>
8565
8566 * valprint.c (do_val_print): Call la_value_print_inner, if
8567 available.
8568 * rust-lang.c (rust_language_defn): Update.
8569 * p-lang.c (pascal_language_defn): Update.
8570 * opencl-lang.c (opencl_language_defn): Update.
8571 * objc-lang.c (objc_language_defn): Update.
8572 * m2-lang.c (m2_language_defn): Update.
8573 * language.h (struct language_defn) <la_value_print_inner>: New
8574 member.
8575 * language.c (unknown_language_defn, auto_language_defn): Update.
8576 * go-lang.c (go_language_defn): Update.
8577 * f-lang.c (f_language_defn): Update.
8578 * d-lang.c (d_language_defn): Update.
8579 * c-lang.c (c_language_defn, cplus_language_defn)
8580 (asm_language_defn, minimal_language_defn): Update.
8581 * ada-lang.c (ada_language_defn): Update.
8582
8583 2020-03-13 Tom Tromey <tom@tromey.com>
8584
8585 * c-valprint.c (c_value_print): Use common_val_print.
8586
8587 2020-03-13 Tom Tromey <tom@tromey.com>
8588
8589 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8590
8591 2020-03-13 Tom Tromey <tom@tromey.com>
8592
8593 * f-valprint.c (f77_print_array_1, f_val_print): Use
8594 common_val_print.
8595
8596 2020-03-13 Tom Tromey <tom@tromey.com>
8597
8598 * riscv-tdep.c (riscv_print_one_register_info): Use
8599 common_val_print.
8600
8601 2020-03-13 Tom Tromey <tom@tromey.com>
8602
8603 * mi/mi-main.c (output_register): Use common_val_print.
8604
8605 2020-03-13 Tom Tromey <tom@tromey.com>
8606
8607 * infcmd.c (default_print_one_register_info): Use
8608 common_val_print.
8609
8610 2020-03-13 Tom Tromey <tom@tromey.com>
8611
8612 * valprint.h (common_val_print_checked): Declare.
8613 * valprint.c (common_val_print_checked): New function.
8614 * stack.c (print_frame_arg): Use common_val_print_checked.
8615
8616 2020-03-13 Tom Tromey <tom@tromey.com>
8617
8618 * valprint.c (do_val_print): New function, from val_print.
8619 (val_print): Use do_val_print.
8620 (common_val_print): Use do_val_print.
8621
8622 2020-03-13 Tom Tromey <tom@tromey.com>
8623
8624 * valprint.c (value_print): Use scoped_value_mark.
8625
8626 2020-03-13 Tom de Vries <tdevries@suse.de>
8627
8628 PR symtab/25646
8629 * psymtab.c (partial_symtab::partial_symtab): Don't set
8630 globals_offset and statics_offset. Push element onto
8631 current_global_psymbols and current_static_psymbols stacks.
8632 (concat): New function.
8633 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8634 element from current_global_psymbols and current_static_psymbols
8635 stacks. Concat popped elements to global_psymbols and
8636 static_symbols.
8637 (add_psymbol_to_list): Use current_global_psymbols and
8638 current_static_psymbols stacks.
8639 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8640 current_static_psymbols fields.
8641
8642 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8643
8644 * corelow.c (sniff_core_bfd): Remove.
8645 (class core_target) <m_core_vec>: Remove.
8646 (core_target::core_target): Update.
8647 (core_file_fns): Remove.
8648 (deprecated_add_core_fns): Remove.
8649 (default_core_sniffer): Remove.
8650 (sniff_core_bfd): Remove.
8651 (default_check_format): Remove.
8652 (gdb_check_format): Remove.
8653 (core_target_open): Update.
8654 (core_target::get_core_register_section): Update.
8655 (get_core_registers_cb): Update.
8656 (core_target::fetch_registers): Update.
8657 * gdbcore.h (struct core_fns): Remove.
8658 (deprecated_add_core_fns): Remove.
8659 (default_core_sniffer): Remove.
8660 (default_check_format): Remove.
8661
8662 2020-03-12 Tom Tromey <tom@tromey.com>
8663
8664 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8665 CORE_ADDR.
8666 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8667
8668 2020-03-12 Tom Tromey <tom@tromey.com>
8669
8670 * remote.c (remote_target::download_tracepoint)
8671 (remote_target::enable_tracepoint)
8672 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8673 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8674 sprintf_vma.
8675
8676 2020-03-12 Tom Tromey <tom@tromey.com>
8677
8678 * symfile-mem.c: Update CORE_ADDR size assert.
8679
8680 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8681
8682 * selftest.m4: Move to gdbsupport/.
8683 * acinclude.m4: Update path to selftest.m4.
8684
8685 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8686
8687 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8688 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8689 gdbarch-selfselftests.c and selftest-arch.c.
8690 (SUBDIR_UNITTESTS_OBS): Rename to...
8691 (SELFTESTS_OBS): ... this.
8692 (COMMON_SFILES): Remove disasm-selftests.c and
8693 gdbarch-selftests.c.
8694 * configure.ac: Don't add selftest-arch.{c,o} to
8695 CONFIG_{SRCS,OBS}.
8696 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8697 preprocessor conditions.
8698
8699 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8700
8701 * configure.ac: Don't source bfd/development.sh.
8702 * selftest.m4: Modify comment.
8703 * configure: Re-generate.
8704
8705 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8706
8707 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8708 not "true" or "false".
8709 * configure: Re-generate.
8710
8711 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8712
8713 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8714 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8715 renamed to arm_nbsd_supply_gregset.
8716 (fetch_register): Update to call arm_nbsd_supply_gregset.
8717 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8718 (arm_netbsd_nat_target::fetch_registers): Update.
8719 (fetch_elfcore_registers): Removed.
8720 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8721 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8722 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8723 not require NetBSD system headers.
8724 (arm_nbsd_regset): New struct.
8725 (arm_nbsd_iterate_over_regset_sections): New function.
8726 (arm_netbsd_init_abi_common): Updated to call
8727 set_gdbarch_iterate_over_regset_sections.
8728 * arm-nbsd-tdep.h: New file.
8729
8730 2020-03-11 Kevin Buettner <kevinb@redhat.com>
8731
8732 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8733 recursion.
8734
8735 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
8736
8737 * configure: Re-generate.
8738
8739 2020-03-11 Tom Tromey <tromey@adacore.com>
8740
8741 * ada-typeprint.c (print_choices): Fix comment.
8742
8743 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8744
8745 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8746 previous item in the list, when the list has no items.
8747
8748 2020-03-11 Tom de Vries <tdevries@suse.de>
8749
8750 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8751 PROP_LOCLIST handling code.
8752
8753 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8754
8755 * buildsym-legacy.c (record_line): Pass extra parameter to
8756 record_line.
8757 * buildsym.c (buildsym_compunit::record_line): Take an extra
8758 parameter, reduce duplication in the line table, and record the
8759 is_stmt flag in the line table.
8760 * buildsym.h (buildsym_compunit::record_line): Add extra
8761 parameter.
8762 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8763 non-statement lines.
8764 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8765 this to the symtab builder.
8766 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8767 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8768 through to dwarf_record_line_1.
8769 * infrun.c (process_event_stop_test): When stepping, don't stop at
8770 a non-statement instruction, and only refresh the step info when
8771 we land in the middle of a line's range. Also add an extra
8772 comment.
8773 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8774 field.
8775 * record-btrace.c (btrace_find_line_range): Only record lines
8776 marked as is-statement.
8777 * stack.c (frame_show_address): Show the frame address if we are
8778 in a non-statement sal.
8779 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8780 (maintenance_print_one_line_table): Print a header for the is_stmt
8781 column, and include is_stmt information in the output.
8782 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8783 preference to non-statements.
8784 (find_pcs_for_symtab_line): Prefer is-statement entries.
8785 (find_line_common): Likewise.
8786 * symtab.h (struct linetable_entry): Add is_stmt field.
8787 (struct symtab_and_line): Likewise.
8788 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8789 arranging the line table.
8790
8791 2020-03-07 Tom de Vries <tdevries@suse.de>
8792
8793 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8794 DIE.
8795
8796 2020-03-07 Tom Tromey <tom@tromey.com>
8797
8798 * valops.c (value_literal_complex): Remove obsolete comment.
8799 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8800 comment.
8801
8802 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8803
8804 * infrun.h: Forward-declare thread_info.
8805 (set_step_info): Add thread_info parameter, add doc.
8806 * infrun.c (set_step_info): Add thread_info parameter, move doc
8807 to header.
8808 * infrun.c (process_event_stop_test): Pass thread to
8809 set_step_info call.
8810 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8811 set_step_info.
8812 (prepare_one_step): Add thread_info parameter, pass it to
8813 set_step_frame and prepare_one_step (recursive) call.
8814 (step_1): Pass thread to prepare_one_step call.
8815 (step_command_fsm::should_stop): Pass thread to
8816 prepare_one_step.
8817 (until_next_fsm): Pass thread to set_step_frame call.
8818 (finish_command): Pass thread to set_step_info call.
8819
8820 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
8821
8822 * windows-tdep.c (windows_solib_create_inferior_hook):
8823 Check if inferior is running.
8824
8825 2020-03-06 Tom de Vries <tdevries@suse.de>
8826
8827 * NEWS: Fix "the the".
8828 * ctfread.c: Same.
8829
8830 2020-03-06 Tom de Vries <tdevries@suse.de>
8831
8832 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8833
8834 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8835
8836 * .dir-locals.el: Add a comment referencing the other copies of
8837 this file.
8838
8839 2020-03-05 John Baldwin <jhb@FreeBSD.org>
8840
8841 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8842 psargs.
8843
8844 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8845
8846 * .gitattributes: New file.
8847
8848 2020-03-04 Tom Tromey <tom@tromey.com>
8849
8850 * symmisc.c (print_symbol_bcache_statistics)
8851 (print_objfile_statistics): Update.
8852 * symfile.c (allocate_symtab): Use intern.
8853 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8854 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8855 macro_cache>: Remove.
8856 <string_cache>: New member.
8857 (struct objfile) <intern>: New methods.
8858 * elfread.c (elf_symtab_read): Use intern.
8859 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8860 (dwarf2_compute_name, dwarf2_physname)
8861 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8862 names.
8863 (guess_partial_die_structure_name): Update.
8864 (partial_die_info::fixup): Intern name.
8865 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8866 name.
8867 (dwarf2_name): Intern name. Update.
8868 * buildsym.c (buildsym_compunit::get_macro_table): Use
8869 string_cache.
8870
8871 2020-03-04 Tom Tromey <tom@tromey.com>
8872
8873 * jit.c (bfd_open_from_target_memory): Make "target" const.
8874 * corefile.c (gnutarget): Now const.
8875 * gdbcore.h (gnutarget): Now const.
8876
8877 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
8878
8879 * NEWS: Mention support for WOW64 processes.
8880 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8881 (amd64_windows_segment_register_p): Remove static.
8882 (_initialize_amd64_windows_nat): Update.
8883 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8884 * i386-windows-nat.c (context_offset): Update.
8885 (i386_mappings): Rename and remove static.
8886 (i386_windows_segment_register_p): Remove static.
8887 (_initialize_i386_windows_nat): Update.
8888 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8889 (STATUS_WX86_SINGLE_STEP): New macro.
8890 (EnumProcessModulesEx): New macro.
8891 (Wow64SuspendThread): New macro.
8892 (Wow64GetThreadContext): New macro.
8893 (Wow64SetThreadContext): New macro.
8894 (Wow64GetThreadSelectorEntry): New macro.
8895 (windows_set_context_register_offsets): Add static.
8896 (windows_set_segment_register_p): Likewise.
8897 (windows_add_thread): Adapt for WOW64 processes.
8898 (windows_fetch_one_register): Likewise.
8899 (windows_nat_target::fetch_registers): Likewise.
8900 (windows_store_one_register): Likewise.
8901 (display_selector): Likewise.
8902 (display_selectors): Likewise.
8903 (handle_exception): Likewise.
8904 (windows_continue): Likewise.
8905 (windows_nat_target::resume): Likewise.
8906 (windows_add_all_dlls): Likewise.
8907 (do_initial_windows_stuff): Likewise.
8908 (windows_nat_target::attach): Likewise.
8909 (windows_get_exec_module_filename): Likewise.
8910 (windows_nat_target::create_inferior): Likewise.
8911 (windows_xfer_siginfo): Likewise.
8912 (_initialize_loadable): Initialize Wow64SuspendThread,
8913 Wow64GetThreadContext, Wow64SetThreadContext,
8914 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8915 * windows-nat.h (windows_set_context_register_offsets):
8916 Remove declaration.
8917 (windows_set_segment_register_p): Likewise.
8918 (i386_windows_segment_register_p): Add declaration.
8919 (amd64_windows_segment_register_p): Likewise.
8920
8921 2020-03-04 Luis Machado <luis.machado@linaro.org>
8922
8923 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8924 in "info registers" for AArch64/ARM.
8925
8926 The change caused "info registers" to not print GPR's.
8927
8928 gdb/ChangeLog:
8929
8930 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8931
8932 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8933 when reg->group is empty and reggroup is not.
8934
8935 2020-03-03 Tom Tromey <tromey@adacore.com>
8936
8937 * dwarf2/frame.c (struct dwarf2_frame_cache)
8938 <checked_tailcall_bottom, entry_cfa_sp_offset,
8939 entry_cfa_sp_offset_p>: Remove members.
8940 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8941 (dwarf2_frame_prev_register): Don't call
8942 dwarf2_tailcall_sniffer_first.
8943 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8944 * frame-unwind.c (add_unwinder): New fuction.
8945 (frame_unwind_init): Use it. Add tailcall unwinder.
8946
8947 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8948 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8949
8950 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8951 value should be printed as true.
8952
8953 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
8954
8955 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8956 (windows_init_abi): Set and use windows_so_ops.
8957
8958 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8959
8960 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8961 when verifying if dealing with a convenience variable.
8962
8963 2020-03-03 Luis Machado <luis.machado@linaro.org>
8964
8965 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8966
8967 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8968
8969 * infrun.c (gdbarch_supports_displaced_stepping): New.
8970 (use_displaced_stepping): Break up conditions in smaller pieces.
8971 Use gdbarch_supports_displaced_stepping.
8972 (displaced_step_prepare_throw): Use
8973 gdbarch_supports_displaced_stepping.
8974
8975 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8976
8977 * NEWS: Mention new behaviour of the history filename.
8978 * top.c (write_history_p): Add comment.
8979 (show_write_history_p): Add header comment, give a different
8980 message when history writing is on, but the history filename is
8981 empty.
8982 (history_filename): Add comment.
8983 (history_filename_empty): New function.
8984 (show_history_filename): Add header comment, give a different
8985 message when the filename is empty.
8986 (init_history): Compare history_filename against nullptr, and only
8987 read history if the filename is not empty.
8988 (set_history_filename): Add header comment, and only make
8989 non-empty filenames absolute.
8990 (init_main): Make the filename argument to 'set history filename'
8991 optional.
8992
8993 2020-03-02 Christian Biesinger <cbiesinger@google.com>
8994
8995 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8996 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8997 (fetch_fp_register): Update.
8998 (fetch_fp_regs): Update.
8999 (store_fp_register): Update.
9000 (store_fp_regs): Update.
9001 (arm_netbsd_nat_target::read_description): New function.
9002 (fetch_elfcore_registers): Update.
9003
9004 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9005
9006 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
9007 general_thread if the stop reply is missing a thread-id.
9008 (remote_target::process_stop_reply): Use the first non-exited
9009 thread if the target didn't pass a thread-id.
9010 * infrun.c (do_target_wait): Move call to
9011 switch_to_inferior_no_thread to ....
9012 (do_target_wait_1): ... here.
9013
9014 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
9015
9016 * debuginfod-support.c: Include defs.h first.
9017
9018 2020-02-28 Tom de Vries <tdevries@suse.de>
9019
9020 * symfile.c (set_initial_language): Use default language for lookup.
9021
9022 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
9023
9024 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
9025 reader variable, pass `this` to read_cutu_die_from_dwo.
9026
9027 2020-02-27 Aaron Merey <amerey@redhat.com>
9028
9029 * source.c (open_source_file): Check for nullptr when computing
9030 srcpath.
9031
9032 2020-02-27 Tom Tromey <tromey@adacore.com>
9033
9034 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
9035 member.
9036 (dwarf2_add_field): Don't update nfields.
9037 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
9038
9039 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9040
9041 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
9042 abs.
9043
9044 2020-02-26 Tom Tromey <tom@tromey.com>
9045
9046 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
9047 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
9048 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
9049 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
9050 per_cu_data.
9051
9052 2020-02-26 Tom Tromey <tom@tromey.com>
9053
9054 * dwarf2/index-write.c (psym_index_map): Change type.
9055 (add_address_entry_worker, write_one_signatured_type)
9056 (recursively_count_psymbols, recursively_write_psymbols)
9057 (class debug_names, psyms_seen_size, write_gdbindex)
9058 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
9059
9060 2020-02-26 Aaron Merey <amerey@redhat.com>
9061
9062 * Makefile.in: Handle optional debuginfod support.
9063 * NEWS: Update.
9064 * README: Add --with-debuginfod summary.
9065 * config.in: Regenerate.
9066 * configure: Regenerate.
9067 * configure.ac: Handle optional debuginfod support.
9068 * debuginfod-support.c: debuginfod helper functions.
9069 * debuginfod-support.h: Ditto.
9070 * doc/gdb.texinfo: Add --with-debuginfod to configure options
9071 summary.
9072 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
9073 when a dwz file cannot be found.
9074 * elfread.c (elf_symfile_read): Query debuginfod servers when a
9075 debuginfo file cannot be found.
9076 * source.c (open_source_file): Query debuginfod servers when a
9077 source file cannot be found.
9078 * top.c (print_gdb_configuration): Include
9079 --{with,without}-debuginfod in the output.
9080
9081 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
9082
9083 * thread.c (thr_try_catch_cmd): Print thread name.
9084
9085 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
9086
9087 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
9088 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9089 dwarf2_fetch_die_type_sect_off): Move to...
9090 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9091 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9092 dwarf2_fetch_die_type_sect_off): ... here.
9093 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9094 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9095 dwarf2_fetch_die_type_sect_off): Move doc to header file.
9096
9097 2020-02-26 Tom de Vries <tdevries@suse.de>
9098
9099 PR gdb/25603
9100 * symfile.c (set_initial_language): Exit-early if
9101 language_mode == language_mode_manual.
9102
9103 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9104
9105 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
9106 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
9107 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
9108
9109 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
9110
9111 * gdbtypes.c (create_array_type_with_stride): Handle negative
9112 array strides.
9113 * valarith.c (value_subscripted_rvalue): Likewise.
9114
9115 2020-02-25 Luis Machado <luis.machado@linaro.org>
9116
9117 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
9118
9119 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9120
9121 * loc.h (dwarf2_get_die_type): Move to...
9122 * read.h (dwarf2_get_die_type): ... here.
9123 * read.c (dwarf2_get_die_type): Move doc to header.
9124
9125 2020-02-25 Joel Brobecker <brobecker@adacore.com>
9126
9127 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
9128 'gnulib/Makefile.in' to the list.
9129
9130 2020-02-24 Tom Tromey <tom@tromey.com>
9131
9132 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
9133 Remove.
9134 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
9135 XOBNEWVEC.
9136
9137 2020-02-24 Tom Tromey <tom@tromey.com>
9138
9139 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
9140 New method.
9141 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
9142 (dw2_do_instantiate_symtab, dw2_get_file_names)
9143 (build_type_psymtab_dependencies, load_full_type_unit): Update.
9144
9145 2020-02-24 Tom Tromey <tom@tromey.com>
9146
9147 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
9148 make_scoped_restore.
9149 (dwarf2_psymtab::read_symtab): Don't clear
9150 reading_partial_symbols.
9151
9152 2020-02-24 Tom de Vries <tdevries@suse.de>
9153
9154 PR gdb/25592
9155 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
9156
9157 2020-02-24 Tom de Vries <tdevries@suse.de>
9158
9159 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
9160 commands layout next/prev/regs.
9161
9162 2020-02-22 Tom Tromey <tom@tromey.com>
9163
9164 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
9165 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
9166
9167 2020-02-22 Tom Tromey <tom@tromey.com>
9168
9169 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
9170
9171 2020-02-22 Tom Tromey <tom@tromey.com>
9172
9173 * tui/tui-win.c (_initialize_tui_win): Add usage text.
9174 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
9175 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
9176 * tui/tui.c (_initialize_tui): Add usage text.
9177
9178 2020-02-22 Tom Tromey <tom@tromey.com>
9179
9180 * tui/tui-win.c (tui_set_focus_command)
9181 (tui_set_win_height_command): Use error_no_arg.
9182 (_initialize_tui_win): Update help text.
9183 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
9184
9185 2020-02-22 Tom Tromey <tom@tromey.com>
9186
9187 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
9188 * tui/tui-disasm.h (struct tui_disasm_window)
9189 <display_start_addr>: Declare.
9190 * tui/tui-source.h (struct tui_source_window)
9191 <display_start_addr>: Declare.
9192 * tui/tui-winsource.h (struct tui_source_window_base)
9193 <show_source_line, display_start_addr>: New methods.
9194 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
9195 Rename and move to protected section.
9196 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
9197 (tui_source_window_base::do_erase_source_content): Update.
9198 (tui_source_window_base::show_source_line): Now a method.
9199 (tui_source_window_base::show_source_content)
9200 (tui_source_window_base::tui_source_window_base)
9201 (tui_source_window_base::rerender)
9202 (tui_source_window_base::refill)
9203 (tui_source_window_base::do_scroll_horizontal)
9204 (tui_source_window_base::set_is_exec_point_at)
9205 (tui_source_window_base::update_breakpoint_info)
9206 (tui_source_window_base::update_exec_info): Update.
9207 * tui/tui-source.c (tui_source_window::set_contents)
9208 (tui_source_window::showing_source_p)
9209 (tui_source_window::do_scroll_vertical)
9210 (tui_source_window::location_matches_p)
9211 (tui_source_window::line_is_displayed): Update.
9212 (tui_source_window::display_start_addr): New method.
9213 * tui/tui-disasm.c (tui_disasm_window::set_contents)
9214 (tui_disasm_window::do_scroll_vertical)
9215 (tui_disasm_window::location_matches_p): Update.
9216 (tui_disasm_window::display_start_addr): New method.
9217
9218 2020-02-22 Tom Tromey <tom@tromey.com>
9219
9220 * NEWS: Add entry for gdb.register_window_type.
9221 * tui/tui-layout.h (window_factory): New typedef.
9222 (tui_register_window): Declare.
9223 * tui/tui-layout.c (saved_tui_windows): New global.
9224 (tui_apply_current_layout): Use it.
9225 (tui_register_window): New function.
9226 * python/python.c (do_start_initialization): Call
9227 gdbpy_initialize_tui.
9228 (python_GdbMethods): Add "register_window_type" function.
9229 * python/python-internal.h (gdbpy_register_tui_window)
9230 (gdbpy_initialize_tui): Declare.
9231 * python/py-tui.c: New file.
9232 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
9233
9234 2020-02-22 Tom Tromey <tom@tromey.com>
9235
9236 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
9237
9238 2020-02-22 Tom Tromey <tom@tromey.com>
9239
9240 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
9241 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
9242 * tui/tui-data.c (tui_set_win_with_focus): Remove.
9243 (tui_set_win_focus_to): Move from tui-win.c.
9244
9245 2020-02-22 Tom Tromey <tom@tromey.com>
9246
9247 * tui/tui-layout.c (make_standard_window, get_locator_window): New
9248 functions.
9249 (known_window_types): New global.
9250 (tui_get_window_by_name): Reimplement.
9251 (initialize_known_windows): New function.
9252 (validate_window_name): Rewrite.
9253 (_initialize_tui_layout): Call initialize_known_windows.
9254
9255 2020-02-22 Tom Tromey <tom@tromey.com>
9256
9257 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
9258 Remove constants.
9259 * tui/tui-winsource.h (struct tui_source_window_base)
9260 <tui_source_window_base>: Remove parameter.
9261 * tui/tui-winsource.c
9262 (tui_source_window_base::tui_source_window_base): Remove
9263 parameter.
9264 (tui_source_window_base::refill): Update.
9265 * tui/tui-stack.h (struct tui_locator_window)
9266 <tui_locator_window>: Update.
9267 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
9268 Default the constructor.
9269 * tui/tui-regs.h (struct tui_data_item_window)
9270 <tui_data_item_window>: Default the constructor.
9271 (struct tui_data_window) <tui_data_window>: Likewise.
9272 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
9273 Default the constructor.
9274 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
9275 Default the constructor.
9276 <type>: Remove.
9277 (struct tui_win_info) <tui_win_info>: Default the constructor.
9278 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
9279 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
9280 Default the constructor.
9281
9282 2020-02-22 Tom Tromey <tom@tromey.com>
9283
9284 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
9285 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
9286 * tui/tui-win.c (tui_resize_all): Don't call
9287 tui_delete_invisible_windows.
9288 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
9289 done.
9290 (tui_set_layout): Update.
9291 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
9292 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
9293 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
9294
9295 2020-02-22 Tom Tromey <tom@tromey.com>
9296
9297 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
9298 correctly.
9299
9300 2020-02-22 Tom Tromey <tom@tromey.com>
9301
9302 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
9303
9304 2020-02-22 Tom Tromey <tom@tromey.com>
9305
9306 * tui/tui-winsource.h (struct tui_source_window_iterator)
9307 <inner_iterator>: New etytypedef.
9308 <tui_source_window_iterator>: Take "end" parameter.
9309 <tui_source_window_iterator>: Take iterator.
9310 <operator*, advance>: Update.
9311 <m_iter>: Change type.
9312 <m_end>: New field.
9313 (struct tui_source_windows) <begin, end>: Update.
9314 * tui/tui-layout.c (tui_windows): New global.
9315 (tui_apply_current_layout): Clear tui_windows.
9316 (tui_layout_window::apply): Update tui_windows.
9317 * tui/tui-data.h (tui_windows): Declare.
9318 (all_tui_windows): Now inline function.
9319 (class tui_window_iterator, struct all_tui_windows): Remove.
9320
9321 2020-02-22 Tom Tromey <tom@tromey.com>
9322
9323 PR tui/17850:
9324 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
9325 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
9326 "height" argument.
9327 (class tui_layout_window) <get_sizes>: Likewise.
9328 (class tui_layout_split) <tui_layout_split>: Add "vertical"
9329 argument.
9330 <get_sizes>: Add "height" argument.
9331 <m_vertical>: New field.
9332 * tui/tui-layout.c (tui_layout_split::clone): Update.
9333 (tui_layout_split::get_sizes): Add "height" argument.
9334 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
9335 (tui_new_layout_command): Parse "-horizontal".
9336 (_initialize_tui_layout): Update help string.
9337 (tui_layout_split::specification): Add "-horizontal" when needed.
9338 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
9339 argument.
9340 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
9341 New methods.
9342
9343 2020-02-22 Tom Tromey <tom@tromey.com>
9344
9345 * tui/tui-layout.h (enum tui_adjust_result): New.
9346 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
9347 (class tui_layout_window) <adjust_size>: Return
9348 tui_adjust_result. Rewrite.
9349 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9350 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9351
9352 2020-02-22 Tom Tromey <tom@tromey.com>
9353
9354 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9355 parameter and return types.
9356 (class tui_layout_base) <specification>: Add "depth".
9357 (class tui_layout_window) <specification>: Add "depth".
9358 (class tui_layout_split) <specification>: Add "depth".
9359 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9360 and return types.
9361 (tui_new_layout_command): Parse sub-layouts.
9362 (_initialize_tui_layout): Update help string.
9363 (tui_layout_window::specification): Add "depth".
9364 (add_layout_command): Update.
9365
9366 2020-02-22 Tom Tromey <tom@tromey.com>
9367
9368 * NEWS: Add "tui new-layout" item.
9369 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9370 Add new-layout command to help text.
9371 (validate_window_name): New function.
9372 (tui_new_layout_command): New function.
9373 (_initialize_tui_layout): Register "new-layout".
9374 (tui_layout_window::specification): New method.
9375 (tui_layout_window::specification): New method.
9376 * tui/tui-layout.h (class tui_layout_base) <specification>: New
9377 method.
9378 (class tui_layout_window) <specification>: New method.
9379 (class tui_layout_split) <specification>: New method.
9380
9381 2020-02-22 Tom Tromey <tom@tromey.com>
9382
9383 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9384 * tui/tui-win.c (window_name_completer): Update comment.
9385 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9386 Declare method.
9387 (class tui_layout_window) <replace_window>: Likewise.
9388 (class tui_layout_split) <replace_window>: Likewise.
9389 (tui_set_layout): Don't declare.
9390 (tui_set_initial_layout): Declare function.
9391 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9392 (asm_regs_layout): New globals.
9393 (tui_current_layout, show_layout): Remove.
9394 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9395 (find_layout, tui_apply_layout): New function.
9396 (layout_completer): Remove.
9397 (tui_next_layout): Reimplement.
9398 (tui_next_layout_command): New function.
9399 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9400 (tui_regs_layout): Reimplement.
9401 (tui_regs_layout_command): New function.
9402 (extract_display_start_addr): Rewrite.
9403 (next_layout, prev_layout): Remove.
9404 (tui_layout_window::replace_window): New method.
9405 (tui_layout_split::replace_window): New method.
9406 (destroy_layout): New function.
9407 (layout_list): New global.
9408 (add_layout_command): New function.
9409 (initialize_layouts): Update.
9410 (tui_layout_command): New function.
9411 (_initialize_tui_layout): Install "layout" commands.
9412 * tui/tui-data.h (enum tui_layout_type): Remove.
9413 (tui_current_layout): Don't declare.
9414
9415 2020-02-22 Tom Tromey <tom@tromey.com>
9416
9417 * tui/tui-regs.c (tui_reg_layout): Remove.
9418 (tui_reg_command): Use tui_regs_layout.
9419 * tui/tui-layout.h (tui_reg_command): Declare.
9420 * tui/tui-layout.c (tui_reg_command): New function.
9421
9422 2020-02-22 Tom Tromey <tom@tromey.com>
9423
9424 * tui/tui.c (tui_rl_delete_other_windows): Call
9425 tui_remove_some_windows.
9426 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9427 Declare method.
9428 (class tui_layout_window) <remove_windows>: New method.
9429 (class tui_layout_split) <remove_windows>: Declare.
9430 (tui_remove_some_windows): Declare.
9431 * tui/tui-layout.c (tui_remove_some_windows): New function.
9432 (tui_layout_split::remove_windows): New method.
9433
9434 2020-02-22 Tom Tromey <tom@tromey.com>
9435
9436 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9437 * tui/tui-layout.h (tui_next_layout): Declare.
9438 * tui/tui-layout.c (tui_next_layout): New function.
9439
9440 2020-02-22 Tom Tromey <tom@tromey.com>
9441
9442 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9443 correct coordinates.
9444
9445 2020-02-22 Tom Tromey <tom@tromey.com>
9446
9447 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9448 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9449 DATA_WIN case.
9450
9451 2020-02-22 Tom Tromey <tom@tromey.com>
9452
9453 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9454 TUI_DISASM_WIN, not tui_win_list.
9455
9456 2020-02-22 Tom Tromey <tom@tromey.com>
9457
9458 * valprint.c (generic_val_print_enum_1)
9459 (val_print_type_code_flags): Style member names.
9460 * rust-lang.c (val_print_struct, rust_print_enum)
9461 (rust_print_struct_def, rust_internal_print_type): Style member
9462 names.
9463 * p-valprint.c (pascal_object_print_value_fields): Style member
9464 names. Only call fprintf_symbol_filtered for static members.
9465 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9466 * f-valprint.c (f_val_print): Style member names.
9467 * f-typeprint.c (f_type_print_base): Style member names.
9468 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9469 call fprintf_symbol_filtered for static members.
9470 (cp_print_class_member): Style member names.
9471 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9472 member names.
9473 * ada-valprint.c (ada_print_scalar): Style enum names.
9474 (ada_val_print_enum): Likewise.
9475 * ada-typeprint.c (print_enum_type): Style enum names.
9476
9477 2020-02-21 Tom Tromey <tom@tromey.com>
9478
9479 * psympriv.h (struct partial_symtab): Update comment.
9480
9481 2020-02-21 Tom Tromey <tromey@adacore.com>
9482
9483 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9484 type is CORE_ADDR.
9485
9486 2020-02-21 Tom de Vries <tdevries@suse.de>
9487
9488 PR gdb/25534
9489 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9490 if dependencies[i]->user != NULL.
9491
9492 2020-02-21 Ali Tamur <tamur@google.com>
9493
9494 * dwarf2/read.c (dwarf2_name): Add null check.
9495
9496 2020-02-20 Tom Tromey <tom@tromey.com>
9497
9498 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9499 ">=", in binary search.
9500 (dwarf2_find_containing_comp_unit): New overload.
9501 (run_test): New self-test.
9502 (_initialize_dwarf2_read): Register new test.
9503
9504 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
9505
9506 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9507 * riscv-tdep.h: Likewise.
9508 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9509 rv32-only CSR.
9510 * features/riscv/64bit-csr.xml: Regenerated.
9511
9512 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9513 Tom Tromey <tom@tromey.com>
9514
9515 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9516 of 'fputc_unfiltered'.
9517 (putchar_unfiltered): Call 'fputc_unfiltered'.
9518 (fputc_unfiltered): Call 'fputs_unfiltered'.
9519
9520 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9521
9522 * config.in: Regenerate.
9523 * configure: Regenerate.
9524 * configure.ac: Add --with-python-libdir option.
9525 * main.c: Use WITH_PYTHON_LIBDIR.
9526
9527 2020-02-19 Tom Tromey <tom@tromey.com>
9528
9529 * symtab.c (general_symbol_info::compute_and_set_names): Use
9530 obstack_strndup. Simplify call to symbol_set_demangled_name.
9531
9532 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
9533
9534 * dwarf2/read.c (allocate_signatured_type_table,
9535 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9536 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9537 Remove objfile parameter, update all callers.
9538
9539 2020-02-19 Doug Evans <dje@google.com>
9540
9541 PR rust/25535
9542 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9543 rust_enum_variant calculation.
9544
9545 2020-02-19 Tom Tromey <tromey@adacore.com>
9546
9547 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9548
9549 2020-02-19 Tom Tromey <tromey@adacore.com>
9550
9551 * ada-lang.c (cache_symbol): Use obstack_strdup.
9552
9553 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9554
9555 * configure: Regenerate.
9556
9557 2020-02-19 Tom Tromey <tromey@adacore.com>
9558
9559 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9560 NULL check.
9561
9562 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
9563
9564 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9565
9566 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9567
9568 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9569 if GDBSERVER is not defined.
9570 (riscv_tdesc_cache): Likewise, also store const target_desc.
9571 (STATIC_IN_GDB): Define.
9572 (riscv_create_target_description): Update declaration with
9573 STATIC_IN_GDB.
9574 (riscv_lookup_target_description): New function, only define if
9575 GDBSERVER is not defined.
9576 * arch/riscv.h (riscv_create_target_description): Declare only
9577 when GDBSERVER is defined.
9578 (riscv_lookup_target_description): New declaration when GDBSERVER
9579 is not defined.
9580 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9581 (riscv_linux_read_features): ...this, and return
9582 riscv_gdbarch_features instead of target_desc.
9583 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9584 (riscv_linux_read_description): Rename to...
9585 (riscv_linux_read_features): ...this.
9586 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9587 Update to use riscv_gdbarch_features and
9588 riscv_lookup_target_description.
9589 * riscv-tdep.c (riscv_find_default_target_description): Use
9590 riscv_lookup_target_description instead of
9591 riscv_create_target_description.
9592
9593 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9594
9595 * valprint.c (generic_val_print_enum_1): When printing a flag
9596 enum with value 0 and there is no enumerator with value 0, print
9597 just "0" instead of "(unknown: 0x0)".
9598
9599 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9600
9601 * valprint.c (generic_val_print_enum_1): Print unknown part of
9602 flag enum in hex.
9603
9604 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9605
9606 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9607 flag enums to contain duplicate enumerators.
9608 * valprint.c (generic_val_print_enum_1): Update comment.
9609
9610 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9611
9612 * dwarf2/read.c: Include "count-one-bits.h".
9613 (update_enumeration_type_from_children): If an enumerator has
9614 multiple bits set, don't treat the enumeration as a "flag enum".
9615 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9616 of flag enums have 0 or 1 bit set.
9617
9618 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9619
9620 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9621 conversion.
9622 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9623 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9624 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9625 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9626 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9627
9628 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9629
9630 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9631
9632 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9633
9634 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9635 displaced_step_closure_up.
9636 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9637 (struct displaced_step_closure_up):
9638 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9639 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9640 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9641 Likewise.
9642 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9643 * gdbarch.c, gdbarch.h: Re-generate.
9644 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9645 displaced_step_closure_up.
9646 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9647 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9648 * infrun.h (displaced_step_closure_up): New type alias.
9649 (struct displaced_step_inferior_state) <step_closure>: Change
9650 type to displaced_step_closure_up.
9651 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9652 displaced_step_closure_up.
9653 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9654
9655 2020-02-14 Tom Tromey <tom@tromey.com>
9656
9657 * minidebug.c (gnu_debug_key): New global.
9658 (find_separate_debug_file_in_section): Use it.
9659
9660 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9661
9662 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9663 std::unique_ptr.
9664 * gdbarch.c: Re-generate.
9665 * gdbarch.h: Re-generate.
9666 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9667 change.
9668 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9669 type to std::unique_ptr.
9670 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9671 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9672 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9673 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9674 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9675 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9676 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9677 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9678 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9679
9680 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9681
9682 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9683 std::unique_ptr.
9684 (displaced_step_clear): Rename to...
9685 (displaced_step_reset): ... this. Just call displaced->reset ().
9686 (displaced_step_clear_cleanup): Rename to...
9687 (displaced_step_reset_cleanup): ... this.
9688 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9689 (displaced_step_fixup): Likewise.
9690 (resume_1): Likewise.
9691 (handle_inferior_event): Restore child's memory before calling
9692 displaced_step_fixup on the parent.
9693 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9694 to std::unique_ptr.
9695 <step_closure>: Change type to std::unique_ptr.
9696
9697 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9698
9699 * arm-tdep.c: Include count-one-bits.h.
9700 (cleanup_block_store_pc): Use count_one_bits.
9701 (cleanup_block_load_pc): Use count_one_bits.
9702 (arm_copy_block_xfer): Use count_one_bits.
9703 (thumb2_copy_block_xfer): Use count_one_bits.
9704 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9705 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9706 (thumb_get_next_pcs_raw): Use count_one_bits.
9707 (arm_get_next_pcs_raw): Use count_one_bits_l.
9708 * arch/arm.c (bitcount): Remove.
9709 * arch/arm.h (bitcount): Remove.
9710
9711 2020-02-14 Tom Tromey <tromey@adacore.com>
9712
9713 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9714 Update.
9715 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9716 * dwarf2/loc.c (call_site_find_chain_1): Return
9717 unique_xmalloc_ptr.
9718 (call_site_find_chain): Likewise.
9719
9720 2020-02-14 Richard Biener <rguenther@suse.de>
9721
9722 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9723 on expression with division operators.
9724
9725 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9726
9727 * MAINTAINERS (Write After Approval): Adding myself.
9728
9729 2020-02-12 Tom Tromey <tom@tromey.com>
9730
9731 * event-loop.c (event_data, gdb_event, event_handler_func):
9732 Remove.
9733
9734 2020-02-12 Tom Tromey <tom@tromey.com>
9735
9736 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9737 (dwarf2_frame_objfile_data): Add comment.
9738 (find_comp_unit, set_comp_unit): New functions.
9739 (dwarf2_frame_find_fde): Use find_comp_unit.
9740 (dwarf2_build_frame_info): Use set_comp_unit.
9741
9742 2020-02-12 Tom Tromey <tom@tromey.com>
9743
9744 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9745 (comp_unit): Don't initialize objfile.
9746 (execute_cfa_program): Add text_offset parameter.
9747 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9748 (dwarf2_frame_cache): Update.
9749 (dwarf2_build_frame_info): Don't set "objfile" member.
9750
9751 2020-02-12 Tom Tromey <tom@tromey.com>
9752
9753 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9754 (decode_frame_entry): Likewise.
9755 (dwarf2_build_frame_info): Update.
9756
9757 2020-02-12 Tom Tromey <tom@tromey.com>
9758
9759 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9760 (decode_frame_entry_1): Use the comp_unit obstack.
9761
9762 2020-02-12 Tom Tromey <tom@tromey.com>
9763
9764 * dwarf2/frame.c (struct comp_unit): Add initializers and
9765 constructor.
9766 (dwarf2_frame_objfile_data): Store a comp_unit.
9767 (dwarf2_frame_find_fde): Update.
9768 (dwarf2_build_frame_info): Use "new".
9769
9770 2020-02-12 Tom Tromey <tom@tromey.com>
9771
9772 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9773 (dwarf2_fde_table): Typedef for std::vector.
9774 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9775 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9776 (decode_frame_entry): Update.
9777 (dwarf2_build_frame_info): Use "new".
9778
9779 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9780
9781 * arm-tdep.c (arm_gdbarch_init): Update.
9782 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9783 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9784 have_neon, is_m>: Change to bool.
9785
9786 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9787
9788 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9789
9790 2020-02-12 Tom Tromey <tom@tromey.com>
9791
9792 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9793
9794 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
9795
9796 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9797 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9798
9799 2020-02-11 Tom Tromey <tom@tromey.com>
9800
9801 * psymtab.h: Update comment.
9802
9803 2020-02-11 Tom Tromey <tom@tromey.com>
9804
9805 * gdb_obstack.h (struct auto_obstack): Use
9806 DISABLE_COPY_AND_ASSIGN.
9807
9808 2020-02-11 Tom Tromey <tom@tromey.com>
9809
9810 * dwarf2/frame.h (struct objfile): Don't forward declare.
9811
9812 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9813
9814 * cris-tdep.c (cris_supply_gregset): Change signature to match
9815 what struct regset expects.
9816 (cris_regset): New struct.
9817 (fetch_core_registers): Remove.
9818 (cris_iterate_over_regset_sections): New function.
9819 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9820 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9821
9822 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9823
9824 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9825 registers.
9826
9827 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9828
9829 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9830
9831 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9832
9833 * configure: Re-generate.
9834
9835 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9836
9837 * configure: Re-generate.
9838
9839 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9840
9841 * acinclude: Update warning.m4 path.
9842 * warning.m4: Move to gdbsupport.
9843
9844 2020-02-11 Tom Tromey <tromey@adacore.com>
9845
9846 * remote.c (remote_console_output): Update.
9847 * printcmd.c (printf_command): Update.
9848 * event-loop.c (gdb_wait_for_event): Update.
9849 * linux-nat.c (sigchld_handler): Update.
9850 * remote-sim.c (gdb_os_write_stdout): Update.
9851 (gdb_os_flush_stdout): Update.
9852 (gdb_os_flush_stderr): Update.
9853 (gdb_os_write_stderr): Update.
9854 * exceptions.c (print_exception): Update.
9855 * remote-fileio.c (remote_fileio_func_read): Update.
9856 (remote_fileio_func_write): Update.
9857 * tui/tui.c (tui_enable): Update.
9858 * tui/tui-interp.c (tui_interp::init): Update.
9859 * utils.c (init_page_info): Update.
9860 (putchar_unfiltered, fputc_unfiltered): Update.
9861 (gdb_flush): Update.
9862 (emit_style_escape): Update.
9863 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9864 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9865 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9866 (stderr_file::write): Update.
9867 (stderr_file::puts): Update.
9868 * ui-file.h (ui_file_isatty, ui_file_write)
9869 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9870 (ui_file_puts): Don't declare.
9871
9872 2020-02-10 Tom de Vries <tdevries@suse.de>
9873
9874 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9875 sentinel to char *.
9876
9877 2020-02-09 Tom de Vries <tdevries@suse.de>
9878
9879 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9880 filename if it matches "<artificial>".
9881
9882 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9883
9884 * windows-tdep.c (struct enum_value_name): New struct.
9885 (create_enum): New function.
9886 (windows_get_siginfo_type): Create and use enum types.
9887
9888 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9889
9890 * NEWS: Mention $_siginfo support for Windows.
9891 * windows-nat.c (handle_exception): Set siginfo_er.
9892 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9893 (windows_xfer_siginfo): New function.
9894 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9895 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9896 (init_windows_gdbarch_data): New function.
9897 (get_windows_gdbarch_data): New function.
9898 (windows_get_siginfo_type): New function.
9899 (windows_init_abi): Register windows_get_siginfo_type.
9900 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9901
9902 2020-02-08 Tom Tromey <tom@tromey.com>
9903
9904 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9905 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9906 <keep>: Declare method.
9907 <m_keep>: Remove member.
9908 <~cutu_reader>: Remove.
9909 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9910 (cutu_reader::cutu_reader): Update.
9911 (cutu_reader::keep): Rename from ~cutu_reader.
9912 (process_psymtab_comp_unit, build_type_psymtabs_1)
9913 (process_skeletonless_type_unit, load_partial_comp_unit)
9914 (load_full_comp_unit, dwarf2_read_addr_index)
9915 (read_signatured_type): Update.
9916
9917 2020-02-08 Tom Tromey <tom@tromey.com>
9918
9919 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9920 "want_partial_unit" parameter.
9921 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9922 Inline check for DW_TAG_partial_unit.
9923 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9924
9925 2020-02-08 Tom Tromey <tom@tromey.com>
9926
9927 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9928 read.c.
9929 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9930 read.c.
9931
9932 2020-02-08 Tom Tromey <tom@tromey.com>
9933
9934 * dwarf2/read.c (read_address): Move to comp-unit.c.
9935 (dwarf2_rnglists_process, dwarf2_ranges_process)
9936 (read_attribute_value, dwarf_decode_lines_1)
9937 (var_decode_location, decode_locdesc): Update.
9938 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9939 read.c. Remove "cu" parameter.
9940 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9941 method.
9942
9943 2020-02-08 Tom Tromey <tom@tromey.com>
9944
9945 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9946 (read_indirect_line_string): Update.
9947 * dwarf2/comp-unit.c (read_offset): Remove.
9948 (read_comp_unit_head): Update.
9949 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9950 method.
9951 (read_offset): Don't declare.
9952
9953 2020-02-08 Tom Tromey <tom@tromey.com>
9954
9955 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9956 * dwarf2/read.c (struct comp_unit_head): Move to
9957 dwarf2/comp-unit.h.
9958 (enum class rcuh_kind): Move to comp-unit.h.
9959 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9960 (read_comp_unit_head, error_check_comp_unit_head)
9961 (read_and_check_comp_unit_head): Move to comp-unit.c.
9962 (read_offset, dwarf_unit_type_name): Likewise.
9963 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9964 (cutu_reader::cutu_reader, read_call_site_scope)
9965 (find_partial_die, follow_die_offset): Update.
9966 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9967
9968 2020-02-08 Tom Tromey <tom@tromey.com>
9969
9970 * dwarf2/read.c (read_offset_1): Move to leb.c.
9971 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9972 (dwarf_decode_macro_bytes): Update.
9973 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9974 * dwarf2/leb.h (read_offset): Declare.
9975
9976 2020-02-08 Tom Tromey <tom@tromey.com>
9977
9978 * dwarf2/read.c (dwarf2_section_size): Remove.
9979 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9980 Update.
9981 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9982
9983 2020-02-08 Tom Tromey <tom@tromey.com>
9984
9985 * dwarf2/read.c (read_initial_length): Move to leb.c.
9986 * dwarf2/leb.h (read_initial_length): Declare.
9987 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9988 handle_nonstd parameter.
9989 * dwarf2/frame.c (read_initial_length): Remove.
9990 (decode_frame_entry_1): Update.
9991
9992 2020-02-08 Tom Tromey <tom@tromey.com>
9993
9994 * dwarf2/loc.c (dwarf2_find_location_expression)
9995 (dwarf_evaluate_loc_desc::get_tls_address)
9996 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9997 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9998 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9999 (dwarf2_compile_property_to_c)
10000 (dwarf2_loc_desc_get_symbol_read_needs)
10001 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
10002 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
10003 (loclist_describe_location, loclist_tracepoint_var_ref)
10004 (loclist_generate_c_location): Update.
10005 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
10006 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
10007 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
10008 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
10009 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
10010 (dwarf2_per_cu_data::addr_size)
10011 (dwarf2_per_cu_data::ref_addr_size)
10012 (dwarf2_per_cu_data::text_offset)
10013 (dwarf2_per_cu_data::addr_type): Now methods.
10014 (per_cu_header_read_in): Make per_cu "const".
10015 (dwarf2_version): Remove.
10016 (dwarf2_per_cu_data::int_type): Now a method.
10017 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
10018 (set_die_type, read_array_type, read_subrange_index_type)
10019 (read_tag_string_type, read_subrange_type): Update.
10020 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
10021 offset_size, ref_addr_size, text_offset, addr_type, version,
10022 objfile, int_type, addr_sized_int_type>: Declare methods.
10023
10024 2020-02-08 Tom Tromey <tom@tromey.com>
10025
10026 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
10027 Move earlier.
10028
10029 2020-02-08 Tom Tromey <tom@tromey.com>
10030
10031 * dwarf2/read.h (dwarf_line_debug): Declare.
10032 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
10033 * dwarf2/read.c: Move line_header code to new files.
10034 (dwarf_line_debug): No longer static.
10035 * dwarf2/line-header.c: New file.
10036 * dwarf2/line-header.h: New file.
10037
10038 2020-02-08 Tom Tromey <tom@tromey.com>
10039
10040 * dwarf2/read.c (struct line_header) <file_full_name,
10041 file_file_name>: Return unique_xmalloc_ptr.
10042 (line_header::file_file_name): Update.
10043 (line_header::file_full_name): Update.
10044 (dw2_get_file_names_reader): Update.
10045 (macro_start_file): Update.
10046
10047 2020-02-08 Tom Tromey <tom@tromey.com>
10048
10049 * dwarf2/read.c (struct line_header) <file_full_name,
10050 file_file_name>: Declare methods.
10051 (dw2_get_file_names_reader): Update.
10052 (file_file_name): Now a method.
10053 (file_full_name): Likewise.
10054 (macro_start_file): Update.
10055
10056 2020-02-08 Tom Tromey <tom@tromey.com>
10057
10058 * dwarf2/read.c (dwarf_always_disassemble)
10059 (show_dwarf_always_disassemble): Move to loc.c.
10060 (_initialize_dwarf2_read): Move "always-disassemble" registration
10061 to loc.c.
10062 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
10063 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
10064 static.
10065 (show_dwarf_always_disassemble): Move from read.c.
10066 (_initialize_dwarf2loc): Move always-disassemble from read.c.
10067
10068 2020-02-08 Tom Tromey <tom@tromey.com>
10069
10070 * dwarf2/read.c (~dwarf2_per_objfile): Update.
10071 (create_quick_file_names_table): Return htab_up.
10072 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
10073 Update.
10074 * dwarf2/read.h (struct dwarf2_per_objfile)
10075 <quick_file_names_table>: Now htab_up.
10076
10077 2020-02-08 Tom Tromey <tom@tromey.com>
10078
10079 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
10080
10081 2020-02-08 Tom Tromey <tom@tromey.com>
10082
10083 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
10084 Rewrite.
10085 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
10086 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
10087 (abbrev_table::abbrev_table): No longer inline.
10088 (ABBREV_HASH_SIZE): Remove.
10089 (abbrev_table::m_abbrevs): Now an htab_up.
10090
10091 2020-02-08 Tom Tromey <tom@tromey.com>
10092
10093 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
10094 (cutu_reader): Update.
10095 (build_type_psymtabs_1): Update.
10096 * dwarf2/abbrev.c (abbrev_table::read): Rename.
10097 (abbrev_table::alloc_abbrev): Update.
10098 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
10099 (abbrev_table::read): New static method, renamed from
10100 abbrev_table_read_table.
10101 (abbrev_table::alloc_abbrev)
10102 (abbrev_table::add_abbrev): Now private.
10103 (abbrev_table::abbrev_table): Now private.
10104 (abbrev_table::m_abbrev_obstack): Now private. Rename.
10105
10106 2020-02-08 Tom Tromey <tom@tromey.com>
10107
10108 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
10109 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
10110 htab_up.
10111
10112 2020-02-08 Tom Tromey <tom@tromey.com>
10113
10114 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
10115 htab_up.
10116 (lookup_dwo_unit_in_dwp): Update.
10117 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
10118 on obstack.
10119
10120 2020-02-08 Tom Tromey <tom@tromey.com>
10121
10122 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
10123 obstack.
10124
10125 2020-02-08 Tom Tromey <tom@tromey.com>
10126
10127 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
10128 line_header_hash.
10129 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
10130 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
10131 Change type to htab_up.
10132
10133 2020-02-08 Tom Tromey <tom@tromey.com>
10134
10135 * dwarf2/read.c (allocate_type_unit_groups_table): Return
10136 htab_up. Don't allocate on obstack.
10137 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
10138 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
10139 Change type to htab_up.
10140
10141 2020-02-08 Tom Tromey <tom@tromey.com>
10142
10143 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
10144 Change type to htab_up.
10145 * dwarf2/read.c (create_signatured_type_table_from_index)
10146 (create_signatured_type_table_from_debug_names)
10147 (create_all_type_units, add_type_unit)
10148 (lookup_dwo_signatured_type, lookup_signatured_type)
10149 (process_skeletonless_type_unit): Update.
10150 (create_debug_type_hash_table, create_debug_types_hash_table):
10151 Change type of types_htab.
10152 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
10153 htab_up. Don't allocate on obstack.
10154 (create_cus_hash_table): Change type of cus_htab parameter.
10155 (struct dwo_file) <cus, tus>: Now htab_up.
10156 (lookup_dwo_signatured_type, lookup_dwo_cutu)
10157 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
10158 (queue_and_load_all_dwo_tus): Update.
10159 * dwarf2/index-write.c (write_gdbindex): Update.
10160 (write_debug_names): Update.
10161
10162 2020-02-08 Tom Tromey <tom@tromey.com>
10163
10164 * dwarf2/read.h (struct dwarf2_queue_item): Move from
10165 dwarf2/read.c. Remove "next" member. Add constructor ntad
10166 destructor.
10167 (struct dwarf2_per_objfile) <queue>: New member.
10168 * dwarf2/read.c (struct dwarf2_queue_item): Move to
10169 dwarf2/read.h.
10170 (dwarf2_queue, dwarf2_queue_tail): Remove.
10171 (class dwarf2_queue_guard): Add parameter to constructor. Use
10172 DISABLE_COPY_AND_ASSIGN.
10173 <m_per_objfile>: New member.
10174 <~dwarf2_queue_guard>: Rewrite.
10175 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
10176 Update.
10177 (~dwarf2_queue_item): New.
10178
10179 2020-02-08 Tom Tromey <tom@tromey.com>
10180
10181 * dwarf2/read.c (struct die_info) <has_children>: New member.
10182 (dw2_get_file_names_reader): Remove has_children.
10183 (dw2_get_file_names): Update.
10184 (read_cutu_die_from_dwo): Remove has_children.
10185 (cutu_reader::init_tu_and_read_dwo_dies)
10186 (cutu_reader::cutu_reader): Update.
10187 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
10188 Remove has_children.
10189 (build_type_psymtabs_1, process_skeletonless_type_unit)
10190 (load_partial_comp_unit, load_full_comp_unit): Update.
10191 (create_dwo_cu_reader): Remove has_children.
10192 (create_cus_hash_table, read_die_and_children): Update.
10193 (read_full_die_1,read_full_die): Remove has_children.
10194 (read_signatured_type): Update.
10195 (class cutu_reader) <has_children>: Remove.
10196
10197 2020-02-08 Tom Tromey <tom@tromey.com>
10198
10199 * dwarf2/expr.c: Rename from dwarf2expr.c.
10200 * dwarf2/expr.h: Rename from dwarf2expr.h.
10201 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
10202 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
10203 * dwarf2/frame.c: Rename from dwarf2-frame.c.
10204 * dwarf2/frame.h: Rename from dwarf2-frame.h.
10205 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
10206 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
10207 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
10208 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
10209 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
10210 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
10211 * dwarf2/loc.c: Rename from dwarf2loc.c.
10212 * dwarf2/loc.h: Rename from dwarf2loc.h.
10213 * dwarf2/read.c: Rename from dwarf2read.c.
10214 * dwarf2/read.h: Rename from dwarf2read.h.
10215 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
10216 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
10217 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
10218 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
10219 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
10220 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
10221 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
10222 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
10223 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
10224 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
10225 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
10226 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
10227 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
10228 Update.
10229 * Makefile.in (COMMON_SFILES): Update.
10230 (HFILES_NO_SRCDIR): Update.
10231
10232 2020-02-08 Tom Tromey <tom@tromey.com>
10233
10234 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
10235 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
10236
10237 2020-02-08 Tom Tromey <tom@tromey.com>
10238
10239 * dwarf2read.h (struct die_info): Don't declare.
10240
10241 2020-02-08 Tom Tromey <tom@tromey.com>
10242
10243 * dwarf2read.h (die_info_ptr): Remove typedef.
10244
10245 2020-02-08 Tom Tromey <tom@tromey.com>
10246
10247 * dwarf2read.c (read_call_site_scope)
10248 (handle_data_member_location, dwarf2_add_member_fn)
10249 (mark_common_block_symbol_computed, read_common_block)
10250 (attr_to_dynamic_prop, partial_die_info::read)
10251 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
10252 (dwarf2_symbol_mark_computed, set_die_type): Update.
10253 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
10254 method.
10255 (attr_form_is_block): Don't declare.
10256 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
10257
10258 2020-02-08 Tom Tromey <tom@tromey.com>
10259
10260 * dwarf2read.c (dwarf2_find_base_address, )
10261 (read_call_site_scope, rust_containing_type)
10262 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
10263 (handle_data_member_location, dwarf2_add_member_fn)
10264 (get_alignment, read_structure_type, process_structure_scope)
10265 (mark_common_block_symbol_computed, read_common_block)
10266 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
10267 (partial_die_info::read, read_attribute_value, new_symbol)
10268 (lookup_die_type, dwarf2_get_ref_die_offset)
10269 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
10270 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
10271 (dwarf2_symbol_mark_computed): Update.
10272 * dwarf2/attribute.h (struct attribute) <value_as_address,
10273 form_is_section_offset, form_is_constant, form_is_ref>: Declare
10274 methods.
10275 (value_as_address, attr_form_is_section_offset)
10276 (attr_form_is_constant, attr_form_is_ref): Don't declare.
10277 * dwarf2/attribute.c (attribute::value_as_address)
10278 (attribute::form_is_section_offset, attribute::form_is_constant)
10279 (attribute::form_is_ref): Now methods.
10280
10281 2020-02-08 Tom Tromey <tom@tromey.com>
10282
10283 * dwarf2read.c (struct attribute, DW_STRING)
10284 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
10285 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
10286 (attr_form_is_block, attr_form_is_section_offset)
10287 (attr_form_is_constant, attr_form_is_ref): Move.
10288 * dwarf2/attribute.h: New file.
10289 * dwarf2/attribute.c: New file, from dwarf2read.c.
10290 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
10291
10292 2020-02-08 Tom Tromey <tom@tromey.com>
10293
10294 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
10295 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
10296 Move.
10297 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
10298 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
10299 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
10300 abbrev.c.
10301 * dwarf2/abbrev.h: New file.
10302 * dwarf2/abbrev.c: New file, from dwarf2read.c.
10303 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
10304
10305 2020-02-08 Tom Tromey <tom@tromey.com>
10306
10307 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
10308 (dwarf2_section_size, dwarf2_get_section_info)
10309 (create_signatured_type_table_from_debug_names)
10310 (create_addrmap_from_aranges, read_debug_names_from_section)
10311 (get_gdb_index_contents_from_section, read_comp_unit_head)
10312 (error_check_comp_unit_head, read_abbrev_offset)
10313 (create_debug_type_hash_table, init_cu_die_reader)
10314 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
10315 (read_comp_units_from_section, create_cus_hash_table)
10316 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10317 (create_dwp_v2_section, dwarf2_rnglists_process)
10318 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
10319 (abbrev_table_read_table, read_indirect_string_at_offset_from)
10320 (read_indirect_string_from_dwz, read_addr_index_1)
10321 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
10322 (dwarf_decode_macro_bytes, dwarf_decode_macros)
10323 (fill_in_loclist_baton): Update.
10324 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
10325 get_containing_section, get_bfd_owner, get_bfd_section,
10326 get_file_name, get_id, get_flags, empty, read>: Declare methods.
10327 (dwarf2_read_section, get_section_name, get_section_file_name)
10328 (get_containing_section, get_section_bfd_owner)
10329 (get_section_bfd_section, get_section_name, get_section_file_name)
10330 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
10331 declare.
10332 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
10333 (dwarf2_section_info::get_bfd_owner)
10334 (dwarf2_section_info::get_bfd_section)
10335 (dwarf2_section_info::get_name)
10336 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
10337 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
10338 (dwarf2_section_info::read): Now methods.
10339 * dwarf-index-write.c (class debug_names): Update.
10340
10341 2020-02-08 Tom Tromey <tom@tromey.com>
10342
10343 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
10344 Move to dwarf2/section.h.
10345 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
10346 (get_section_bfd_section, get_section_name)
10347 (get_section_file_name, get_section_id, get_section_flags)
10348 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
10349 dwarf2/section.c.
10350 * dwarf2/section.h: New file.
10351 * dwarf2/section.c: New file, from dwarf2read.c.
10352 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10353
10354 2020-02-08 Tom Tromey <tom@tromey.com>
10355
10356 * dwarf2read.h (read_unsigned_leb128): Don't declare.
10357 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10358 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10359 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10360 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10361 * dwarf2/leb.h: New file, from dwarf2read.c.
10362 * dwarf2/leb.c: New file, from dwarf2read.c.
10363 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10364 Remove.
10365 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10366 (COMMON_SFILES): Add dwarf2/leb.c.
10367
10368 2020-02-08 Joel Brobecker <brobecker@adacore.com>
10369
10370 GDB 9.1 released.
10371
10372 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10373
10374 PR gdb/25190:
10375 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10376 * gdb/remote.c (remote_console_output): Update.
10377 * gdb/ui-file.c (fputs_unfiltered): Rename to...
10378 (ui_file_puts): ...this.
10379 * gdb/ui-file.h (ui_file_puts): Add declaration.
10380 * gdb/utils.c (emit_style_escape): Update.
10381 (flush_wrap_buffer): Update.
10382 (fputs_maybe_filtered): Update.
10383 (fputs_unfiltered): Add function.
10384
10385 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10386
10387 * gdb/event-loop.c (gdb_wait_for_event): Update.
10388 * gdb/printcmd.c (printf_command): Update.
10389 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10390 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10391 (gdb_os_flush_stderr): Update.
10392 * gdb/remote.c (remote_console_output): Update.
10393 * gdb/ui-file.c (gdb_flush): Rename to...
10394 (ui_file_flush): ...this.
10395 (stderr_file::write): Update.
10396 (stderr_file::puts): Update.
10397 * gdb/ui-file.h (gdb_flush): Rename to...
10398 (ui_file_flush): ...this.
10399 * gdb/utils.c (gdb_flush): Add function.
10400 * gdb/utils.h (gdb_flush): Add declaration.
10401
10402 2020-02-07 Tom Tromey <tromey@adacore.com>
10403
10404 PR breakpoints/24915:
10405 * source.c (find_and_open_source): Do not check basenames_may_differ.
10406
10407 2020-02-07 Tom Tromey <tom@tromey.com>
10408
10409 * README: Update gdbserver documentation.
10410 * gdbserver: Move to top level.
10411 * configure.tgt (build_gdbserver): Remove.
10412 * configure.ac: Remove --enable-gdbserver.
10413 * configure: Rebuild.
10414 * Makefile.in (distclean): Don't mention gdbserver.
10415
10416 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10417
10418 * source-cache.c (source_cache::ensure): Surround
10419 get_plain_source_lines with a try/catch.
10420 (source_cache::get_line_charpos): Get rid of try/catch
10421 and only check for the return value of "ensure".
10422 * tui/tui-source.c (tui_source_window::set_contents):
10423 Simplify "nlines" calculation.
10424
10425 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10426
10427 * MAINTAINERS (Write After Approval): Add myself.
10428
10429 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10430
10431 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10432 function call.
10433
10434 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10435
10436 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10437
10438 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
10439
10440 * nat/riscv-linux-tdesc.h: New file.
10441 * nat/riscv-linux-tdesc.c: New file, taking code from...
10442 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10443 ... here.
10444 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10445 NATDEPFILES.
10446
10447 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10448
10449 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10450 we don't set the fake simulator ptid to the null_ptid.
10451
10452 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
10453
10454 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10455 * gdbthread.h (class thread_info) <resumed>: Likewise.
10456 * infrun.c (resume_1): Likewise.
10457 (proceed): Likewise.
10458 (infrun_thread_stop_requested): Likewise.
10459 (stop_all_threads): Likewise.
10460 (handle_inferior_event): Likewise.
10461 (restart_threads): Likewise.
10462 (finish_step_over): Likewise.
10463 (keep_going_stepped_thread): Likewise.
10464 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10465 (linux_handle_extended_wait): Likewise.
10466 * record-btrace.c (get_thread_current_frame_id): Likewise.
10467 * record-full.c (record_full_wait_1): Likewise.
10468 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10469 * target.c (target_resume): Likewise.
10470 * thread.c (set_running_thread): Likewise.
10471
10472 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10473
10474 * f-valprint.c (f77_print_array_1): Changed datatype of index
10475 variable to LONGEST from int to enable it to contain bound
10476 values correctly.
10477
10478 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
10479
10480 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10481 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10482 offsets according to FLEN determined.
10483 (riscv_linux_nat_target::read_description): Determine FLEN
10484 dynamically.
10485 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10486 according to FLEN determined.
10487 (riscv_linux_nat_target::store_registers): Likewise.
10488
10489 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10490
10491 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10492 when reg->group is empty and reggroup is not.
10493
10494 2020-01-31 Tom Tromey <tromey@adacore.com>
10495
10496 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10497 Call beneath target's mourn_inferior after unpushing.
10498
10499 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10500
10501 PR tui/9765
10502 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10503 have enough lines to fill the screen, still return the lowest
10504 address we found.
10505
10506 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10507
10508 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10509 '-', '<', and '>' commands.
10510
10511 2020-01-29 Pedro Alves <palves@redhat.com>
10512 Sergio Durigan Junior <sergiodj@redhat.com>
10513
10514 * infcmd.c (construct_inferior_arguments): Assert that
10515 'argc' is greater than 0.
10516
10517 2020-01-29 Luis Machado <luis.machado@linaro.org>
10518
10519 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10520 (BRK_INSN_MASK): Define to 0xd4200000.
10521 (aarch64_program_breakpoint_here_p): New function.
10522 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10523 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10524 breakpoint.c.
10525 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10526 breakpoint.h
10527 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10528 call gdbarch_program_breakpoint_here_p.
10529 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10530 default_program_breakpoint_here_p, changed return type to bool and
10531 simplified.
10532 * breakpoint.h (program_breakpoint_here): Moved prototype to
10533 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10534 return type to bool.
10535 * gdbarch.c: Regenerate.
10536 * gdbarch.h: Regenerate.
10537 * gdbarch.sh (program_breakpoint_here_p): New method.
10538 * infrun.c (handle_signal_stop): Call
10539 gdbarch_program_breakpoint_here_p.
10540
10541 2020-01-26 Tom Tromey <tom@tromey.com>
10542
10543 * ctfread.c (struct ctf_fp_info): Reindent.
10544 (_initialize_ctfread): Remove.
10545
10546 2020-01-26 Tom Tromey <tom@tromey.com>
10547
10548 * psymtab.c (partial_map_expand_apply)
10549 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10550 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10551 (psym_print_stats, psym_expand_symtabs_for_function)
10552 (psym_map_symbol_filenames, psym_map_matching_symbols)
10553 (psym_expand_symtabs_matching)
10554 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10555 (maintenance_check_psymtabs): Use new methods.
10556 * psympriv.h (struct partial_symtab) <readin_p,
10557 get_compunit_symtab>: New methods.
10558 <readin, compunit_symtab>: Remove members.
10559 (struct standard_psymtab): New.
10560 (struct legacy_psymtab): Derive from standard_psymtab.
10561 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10562 standard_psymtab.
10563 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10564
10565 2020-01-26 Tom Tromey <tom@tromey.com>
10566
10567 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10568 read_dependencies. Add assert.
10569 * psymtab.c (partial_symtab::read_dependencies): New method.
10570 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10571 method.
10572 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10573 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10574 read_dependencies.
10575 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10576 Add assert.
10577
10578 2020-01-26 Tom Tromey <tom@tromey.com>
10579
10580 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10581 Call expand_psymtab.
10582 (xcoff_read_symtab): Call expand_psymtab.
10583 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10584 legacy_expand_psymtab.
10585 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10586 method.
10587 (struct legacy_psymtab) <expand_psymtab>: Implement.
10588 <legacy_expand_psymtab>: New member.
10589 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10590 (parse_partial_symbols): Set legacy_expand_psymtab.
10591 (psymtab_to_symtab_1): Change argument order. Call
10592 expand_psymtab.
10593 (new_psymtab): Set legacy_expand_psymtab.
10594 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10595 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10596 expand_psymtab.
10597 (dwarf2_psymtab::expand_psymtab): Rename from
10598 psymtab_to_symtab_1. Call expand_psymtab.
10599 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10600 (dbx_end_psymtab): Likewise.
10601 (dbx_psymtab_to_symtab_1): Change argument order. Call
10602 expand_psymtab.
10603 (dbx_read_symtab): Call expand_psymtab.
10604 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10605 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10606 (ctf_psymtab::read_symtab): Call expand_psymtab.
10607
10608 2020-01-26 Tom Tromey <tom@tromey.com>
10609
10610 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10611 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10612 messages.
10613 * mdebugread.c (mdebug_read_symtab): Remove prints.
10614 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10615 assert.
10616 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10617
10618 2020-01-26 Tom Tromey <tom@tromey.com>
10619
10620 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10621 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10622 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10623 legacy_symtab.
10624 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10625 * psymtab.c (psymtab_to_symtab): Call method.
10626 (dump_psymtab): Update.
10627 * psympriv.h (struct partial_symtab): Add virtual destructor.
10628 <read_symtab>: New method.
10629 (struct legacy_symtab): New.
10630 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10631 (struct pst_map) <pst>: Now a legacy_psymtab.
10632 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10633 (new_psymtab): Use legacy_psymtab.
10634 * dwarf2read.h (struct dwarf2_psymtab): New.
10635 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10636 * dwarf2read.c (dwarf2_create_include_psymtab)
10637 (dwarf2_build_include_psymtabs, create_type_unit_group)
10638 (create_partial_symtab, process_psymtab_comp_unit_reader)
10639 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10640 (set_partial_user): Use dwarf2_psymtab.
10641 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10642 (psymtab_to_symtab_1, process_full_comp_unit)
10643 (process_full_type_unit, dwarf2_ranges_read)
10644 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10645 (dwarf_decode_lines): Use dwarf2_psymtab.
10646 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10647 (add_address_entry_worker, write_one_signatured_type)
10648 (recursively_count_psymbols, recursively_write_psymbols)
10649 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10650 (write_debug_names): Likewise.
10651 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10652 <pst>: Now a legacy_psymtab.
10653 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10654 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10655 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10656 * ctfread.c (struct ctf_psymtab): New.
10657 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10658 ctf_psymtab.
10659 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10660 (create_partial_symtab): Return a ctf_psymtab.
10661 (scan_partial_symbols): Update.
10662
10663 2020-01-26 Tom Tromey <tom@tromey.com>
10664
10665 * xcoffread.c (xcoff_start_psymtab): Use new.
10666 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10667 renamed from start_psymtab_common.
10668 * psympriv.h (struct partial_symtab): Add new constructor.
10669 (start_psymtab_common): Don't declare.
10670 * mdebugread.c (parse_partial_symbols): Use new.
10671 * dwarf2read.c (create_partial_symtab): Use new.
10672 * dbxread.c (start_psymtab): Use new.
10673 * ctfread.c (create_partial_symtab): Use new.
10674
10675 2020-01-26 Tom Tromey <tom@tromey.com>
10676
10677 * xcoffread.c (xcoff_end_psymtab): Use new.
10678 * psymtab.c (start_psymtab_common): Use new.
10679 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10680 Update.
10681 * psympriv.h (struct partial_symtab): Add parameters to
10682 constructor. Don't inline.
10683 (allocate_psymtab): Don't declare.
10684 * mdebugread.c (new_psymtab): Use new.
10685 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10686 * dbxread.c (dbx_end_psymtab): Use new.
10687
10688 2020-01-26 Tom Tromey <tom@tromey.com>
10689
10690 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10691 allocate_psymtab. Update documentation.
10692 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10693 allocate_psymtab. Do not use new.
10694 (allocate_psymtab): Use new. Update.
10695
10696 2020-01-26 Tom Tromey <tom@tromey.com>
10697
10698 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10699 * psymtab.c (psym_print_stats): Update.
10700 * psympriv.h (struct partial_symtab) <readin,
10701 psymtabs_addrmap_supported, anonymous>: Now bool.
10702 * mdebugread.c (psymtab_to_symtab_1): Update.
10703 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10704 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10705 (process_full_comp_unit, process_full_type_unit): Update.
10706 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10707 * ctfread.c (psymtab_to_symtab): Update.
10708
10709 2020-01-26 Tom Tromey <tom@tromey.com>
10710
10711 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10712 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10713 * psymtab.c (psymtab_storage): Delete psymtabs.
10714 (psymtab_storage::allocate_psymtab): Use new.
10715 (psymtab_storage::discard_psymtab): Use delete.
10716 * psympriv.h (struct partial_symtab): Add constructor and
10717 initializers.
10718
10719 2020-01-26 Tom Tromey <tom@tromey.com>
10720
10721 * machoread.c: Do not include psympriv.h.
10722
10723 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10724
10725 * NEWS: Mention the new option and the set/show commands.
10726
10727 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10728
10729 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10730 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10731 (validate_exec_file): New variables, enums, functions.
10732 (exec_file_locate_attach, print_section_info): Style the filenames.
10733 (_initialize_exec): Install show_exec_file_mismatch_command and
10734 set_exec_file_mismatch_command.
10735 * gdbcore.h (validate_exec_file): Declare.
10736 * infcmd.c (attach_command): Call validate_exec_file.
10737 * remote.c ( remote_target::remote_add_inferior): Likewise.
10738
10739 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10740
10741 * frame.c (find_frame_sal): Move call to get_next_frame into more
10742 inner scope.
10743 * inline-frame.c (inilne_state) <inline_state>: Update argument
10744 types.
10745 (inilne_state) <skipped_symbol>: Rename to...
10746 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10747 (skip_inline_frames): Build vector of skipped symbols and use this
10748 to reate the inline_state.
10749 (inline_skipped_symbol): Add a comment and some assertions, fetch
10750 skipped symbol from the list.
10751
10752 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10753
10754 * buildsym.c (lte_is_less_than): Delete.
10755 (buildsym_compunit::end_symtab_with_blockvector): Create local
10756 lambda function to sort line table entries, and use
10757 std::stable_sort instead of std::sort.
10758 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10759 markers when looking for a previous line.
10760
10761 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10762
10763 * dwarf2read.c (lnp_state_machine::record_line): Include
10764 end_sequence parameter in debug print out. Record the line if we
10765 are at an end_sequence marker even if it's not the start of a
10766 statement.
10767 * symmisc.c (maintenance_print_one_line_table): Print end of
10768 sequence markers with 'END' not '0'.
10769
10770 2020-01-24 Pedro Alves <palves@redhat.com>
10771
10772 PR gdb/25410
10773 * thread.c (scoped_restore_current_thread::restore): Use
10774 switch_to_inferior_no_thread.
10775 * exec.c: Include "progspace-and-thread.h".
10776 (add_target_sections, remove_target_sections):
10777 scoped_restore_current_pspace_and_thread instead of
10778 scoped_restore_current_thread.
10779 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10780 and aspace to the inferior before calling clone_program_space.
10781 Remove stale comment.
10782
10783 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10784
10785 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10786 (arm_netbsd_nat_target::fetch_registers): ...this.
10787 (arm_nbsd_nat_target::store_registers): Rename to...
10788 (arm_netbsd_nat_target::store_registers): ...this.
10789
10790 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10791
10792 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10793 register_t.
10794
10795 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10796
10797 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10798 Update comment.
10799 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10800 Likewise.
10801 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10802 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10803 the correct replacement (iterate_over_regset_sections).
10804 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10805 Update comment.
10806
10807 2020-01-24 Graham Markall <graham.markall@embecosm.com>
10808
10809 PR gdb/23718
10810 * gdb/python/python.c (execute_gdb_command): Call
10811 async_enable_stdin in catch block.
10812
10813 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10814
10815 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10816 SWITCH_THRU_ALL_UIS.
10817
10818 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10819
10820 PR tui/9765
10821 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10822 comment, add extra parameter, and update to store previous symbol
10823 when appropriate.
10824 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10825 add extra parameter.
10826 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10827 remove unneeded parameter, add try/catch around gdb_print_insn,
10828 rewrite to add items to asm_lines vector.
10829 (tui_find_backward_disassembly_start_address): New function.
10830 (tui_find_disassembly_address): Updated throughout.
10831 (tui_disasm_window::set_contents): Update for changes to
10832 tui_disassemble.
10833 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10834 number of lines to scroll.
10835
10836 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10837
10838 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10839 (SECT_OFF_DATA): Likewise.
10840 (SECT_OFF_RODATA): Likewise.
10841 (SECT_OFF_TEXT): Likewise.
10842 (SECT_OFF_BSS): Likewise.
10843 (struct objfile) <text_section_offset, data_section_offset>: New
10844 methods.
10845 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10846 objfile::text_section_offset.
10847 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10848 * coffread.c (coff_symtab_read): Likewise.
10849 (enter_linenos): Likewise.
10850 (process_coff_symbol): Likewise.
10851 * ctfread.c (get_objfile_text_range): Likewise.
10852 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10853 Use objfile::data_section_offset.
10854 * dwarf2-frame.c (execute_cfa_program): Use
10855 objfile::text_section_offset.
10856 (dwarf2_frame_find_fde): Likewise.
10857 * dwarf2read.c (create_addrmap_from_index): Likewise.
10858 (create_addrmap_from_aranges): Likewise.
10859 (dw2_find_pc_sect_compunit_symtab): Likewise.
10860 (process_psymtab_comp_unit_reader): Likewise.
10861 (add_partial_symbol): Likewise.
10862 (add_partial_subprogram): Likewise.
10863 (process_full_comp_unit): Likewise.
10864 (read_file_scope): Likewise.
10865 (read_func_scope): Likewise.
10866 (read_lexical_block_scope): Likewise.
10867 (read_call_site_scope): Likewise.
10868 (dwarf2_rnglists_process): Likewise.
10869 (dwarf2_ranges_process): Likewise.
10870 (dwarf2_ranges_read): Likewise.
10871 (dwarf_decode_lines_1): Likewise.
10872 (new_symbol): Likewise.
10873 (dwarf2_fetch_die_loc_sect_off): Likewise.
10874 (dwarf2_per_cu_text_offset): Likewise.
10875 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10876 * hppa-tdep.c (read_unwind_info): Likewise.
10877 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10878 * psympriv.h (struct partial_symtab): Likewise.
10879 * psymtab.c (find_pc_sect_psymtab): Likewise.
10880 * solib-svr4.c (enable_break): Likewise.
10881 * stap-probe.c (relocate_address): Use
10882 objfile::data_section_offset.
10883 * xcoffread.c (enter_line_range): Use
10884 objfile::text_section_offset.
10885 (read_xcoff_symtab): Likewise.
10886
10887 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10888
10889 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10890 declaration to narrower scopes.
10891
10892 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10893
10894 * darwin-nat.h (struct darwin_exception_msg, enum
10895 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10896 Move up.
10897 (class darwin_nat_target) <wait_1, check_new_threads,
10898 decode_exception_message, decode_message, stop_inferior,
10899 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10900 * darwin-nat.c (darwin_check_new_threads): Rename to...
10901 (darwin_nat_target::check_new_threads): ... this.
10902 (darwin_suspend_inferior_it): Remove.
10903 (darwin_decode_exception_message): Rename to...
10904 (darwin_nat_target::decode_exception_message): ... this.
10905 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10906 (darwin_decode_message): Rename to...
10907 (darwin_nat_target::decode_message): ... this.
10908 (cancel_breakpoint): Rename to...
10909 (darwin_nat_target::cancel_breakpoint): ... this.
10910 (darwin_wait): Rename to...
10911 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10912 instead of iterate_over_inferiors.
10913 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10914 (darwin_stop_inferior): Rename to...
10915 (darwin_nat_target::stop_inferior): ... this.
10916 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10917 (darwin_init_thread_list): Rename to...
10918 (darwin_nat_target::init_thread_list): ... this.
10919 (darwin_ptrace_him): Rename to...
10920 (darwin_nat_target::ptrace_him): ... this.
10921 (darwin_nat_target::create_inferior): Pass lambda function to
10922 fork_inferior.
10923 (darwin_nat_target::detach): Call stop_inferior instead of
10924 darwin_stop_inferior.
10925 * fork-inferior.h (fork_inferior): Change init_trace_fun
10926 parameter to gdb::function_view.
10927 * fork-inferior.c (fork_inferior): Likewise.
10928
10929 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
10930
10931 * i386-cygwin-tdep.c (core_process_module_section): Update.
10932 * windows-nat.c (struct lm_info_windows): Add text_offset.
10933 (windows_xfer_shared_libraries): Update.
10934 * windows-tdep.c (windows_xfer_shared_library):
10935 Add text_offset_cached argument.
10936 * windows-tdep.h (windows_xfer_shared_library): Update.
10937
10938 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10939
10940 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10941
10942 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10943
10944 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10945 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10946 replace with range-based for.
10947 (gdbsim_interrupt_inferior): Remove.
10948 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10949 with a range-based for. Inline code from
10950 gdbsim_interrupt_inferior.
10951
10952 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10953
10954 * infrun.c (proceed): Fix indentation.
10955
10956 2020-01-21 Tom Tromey <tromey@adacore.com>
10957
10958 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10959 * python/python.c (python_extension_ops): Update.
10960 (gdbpy_colorize): New function.
10961 * python/lib/gdb/__init__.py (colorize): New function.
10962 * extension.h (ext_lang_colorize): Declare.
10963 * extension.c (ext_lang_colorize): New function.
10964 * extension-priv.h (struct extension_language_ops) <colorize>: New
10965 member.
10966 * cli/cli-style.c (_initialize_cli_style): Update help text.
10967
10968 2020-01-21 Luis Machado <luis.machado@linaro.org>
10969
10970 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10971 <cond>: Change type to bool.
10972 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10973 (aarch64_displaced_step_cb): Likewise.
10974 (aarch64_displaced_step_tb): Likewise.
10975
10976 2020-01-21 Luis Machado <luis.machado@linaro.org>
10977
10978 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10979 output.
10980
10981 2020-01-21 Luis Machado <luis.machado@linaro.org>
10982
10983 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10984 <pc_adjust>: Adjust the documentation.
10985 (aarch64_displaced_step_fixup): Check if PC really moved before
10986 adjusting it.
10987
10988 2020-01-19 Tom Tromey <tom@tromey.com>
10989
10990 * disasm.c (~gdb_disassembler): New destructor.
10991 (gdb_buffered_insn_length): Call disassemble_free_target.
10992 * disasm.h (class gdb_disassembler): Declare destructor. Use
10993 DISABLE_COPY_AND_ASSIGN.
10994
10995 2020-01-19 Tom Tromey <tom@tromey.com>
10996
10997 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10998 (die_reader_func_ftype): Remove.
10999 (cutu_reader): New class.
11000 (dw2_get_file_names_reader): Remove "data" parameter.
11001 (dw2_get_file_names): Use cutu_reader.
11002 (create_debug_type_hash_table): Update.
11003 (read_cutu_die_from_dwo): Update comment.
11004 (lookup_dwo_unit): Add dwo_name parameter.
11005 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
11006 die_reader_func_ftype and data parameters.
11007 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
11008 Remove die_reader_func_ftype and data parameters.
11009 (~cutu_reader): New; from init_cutu_and_read_dies.
11010 (cutu_reader::cutu_reader): Rename from
11011 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
11012 and data parameters.
11013 (init_cutu_and_read_dies_simple): Remove.
11014 (struct process_psymtab_comp_unit_data): Remove.
11015 (process_psymtab_comp_unit_reader): Remove data parameter; add
11016 want_partial_unit and pretend_language parameters.
11017 (process_psymtab_comp_unit): Use cutu_reader.
11018 (build_type_psymtabs_reader): Remove data parameter.
11019 (build_type_psymtabs_1): Use cutu_reader.
11020 (process_skeletonless_type_unit): Likewise.
11021 (load_partial_comp_unit_reader): Remove.
11022 (load_partial_comp_unit): Use cutu_reader.
11023 (load_full_comp_unit_reader): Remove.
11024 (load_full_comp_unit): Use cutu_reader.
11025 (struct create_dwo_cu_data): Remove.
11026 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
11027 dwo_unit parameters.
11028 (create_cus_hash_table): Use cutu_reader.
11029 (struct dwarf2_read_addr_index_data): Remove.
11030 (dwarf2_read_addr_index_reader): Remove.
11031 (dwarf2_read_addr_index): Use cutu_reader.
11032 (read_signatured_type_reader): Remove.
11033 (read_signatured_type): Use cutu_reader.
11034
11035 2020-01-19 Tom Tromey <tom@tromey.com>
11036
11037 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
11038 * tui/tui-wingeneral.h (class tui_suppress_output): New.
11039 (tui_wrefresh): Declare.
11040 * tui/tui-wingeneral.c (suppress_output): New global.
11041 (tui_suppress_output, ~tui_suppress_output): New constructor and
11042 destructor.
11043 (tui_wrefresh): New function.
11044 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
11045 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
11046 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
11047 method.
11048 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
11049 tui_wrefresh.
11050 (tui_data_window::no_refresh): New method.
11051 (tui_data_item_window::refresh_window): Call tui_wrefresh.
11052 (tui_reg_command): Use tui_suppress_output
11053 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
11054 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
11055 method.
11056 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
11057
11058 2020-01-19 Tom Tromey <tom@tromey.com>
11059
11060 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11061 Handle case where symtab is null.
11062
11063 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
11064
11065 * linux-fork.c (one_fork_p): Simplify.
11066
11067 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11068
11069 * top.c (struct qt_args): Remove.
11070 (kill_or_detach): Change return type to void, replace `void *`
11071 parameter with a proper one.
11072 (print_inferior_quit_action): Likewise.
11073 (quit_confirm): Use range-based for loop to iterate over inferiors.
11074 (quit_force): Likewise.
11075
11076 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11077
11078 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
11079 `void *` parameter with proper parameters.
11080 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
11081 (print_one_inferior): Change return type to void, replace `void *`
11082 parameter with proper parameters.
11083 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
11084 inferiors.
11085 (get_other_inferior): Remove.
11086 (mi_cmd_remove_inferior): Use range-based loop to iterate over
11087 inferiors.
11088
11089 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11090
11091 * mi/mi-interp.c (report_initial_inferior): Remove.
11092 (mi_interp::init): Use range-based for to iterate over inferiors.
11093
11094 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11095
11096 * python/py-inferior.c (build_inferior_list): Remove.
11097 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
11098
11099 2020-01-16 Christian Biesinger <cbiesinger@google.com>
11100
11101 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
11102 (btrace_stitch_trace): Likewise.
11103 * charset.c (intermediate_encoding): Likewise (vaild).
11104 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
11105 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
11106 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
11107
11108 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
11109
11110 * windows-tdep.c (windows_get_tlb_type):
11111 Add rtl_user_process_parameters type.
11112
11113 2020-01-16 Pedro Alves <palves@redhat.com>
11114 Norbert Lange <nolange79@gmail.com>
11115
11116 PR build/24805
11117 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
11118 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
11119 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
11120 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
11121 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
11122 (ps_plog): Redeclare exported functions with default visibility.
11123
11124 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
11125
11126 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
11127 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
11128
11129 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
11130
11131 * infcmd.c (post_create_inferior): Use get_thread_regcache
11132 instead of get_current_regcache.
11133
11134 2020-01-14 Tom Tromey <tom@tromey.com>
11135
11136 PR symtab/12535:
11137 * python/python.c (gdbpy_decode_line): Treat empty string the same
11138 as no argument.
11139
11140 2020-01-14 Tom Tromey <tom@tromey.com>
11141
11142 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
11143
11144 2020-01-14 Tom Tromey <tom@tromey.com>
11145
11146 * nat/linux-btrace.c: Don't include <config.h>.
11147 * nat/linux-ptrace.c: Don't include <config.h>.
11148 * nat/x86-linux-dregs.c: Don't include <config.h>.
11149
11150 2020-01-14 Tom Tromey <tom@tromey.com>
11151
11152 * configure: Rebuild.
11153 * configure.ac: Move many checks to ../gdbsupport/common.m4.
11154
11155 2020-01-14 Tom Tromey <tom@tromey.com>
11156
11157 * nat/x86-linux-dregs.c: Include configh.h.
11158 * nat/linux-ptrace.c: Include configh.h.
11159 * nat/linux-btrace.c: Include configh.h.
11160 * defs.h: Include config.h, bfd.h.
11161 * configure.ac: Don't source common.host.
11162 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
11163 * configure: Rebuild.
11164 * acinclude.m4: Update path.
11165 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
11166 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
11167 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
11168 (CLIBS): Add LIBSUPPORT.
11169 (CDEPS): Likewise.
11170 (COMMON_SFILES): Remove gdbsupport files.
11171 (HFILES_NO_SRCDIR): Likewise.
11172 (stamp-version): Update path to create-version.sh.
11173 (ALLDEPFILES): Remove gdbsupport files.
11174
11175 2020-01-14 Tom Tromey <tom@tromey.com>
11176
11177 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
11178 USE_WIN32API when needed.
11179 * configure.ac (USE_WIN32API): Don't define.
11180 (WIN32LIBS): Use WIN32APILIBS.
11181 * configure: Rebuild.
11182
11183 2020-01-14 Tom Tromey <tom@tromey.com>
11184
11185 * configure: Rebuild.
11186 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
11187
11188 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
11189
11190 * skip.c (skip_function_command): Make skip w/o arguments use the
11191 name of the inlined function if pc is inside any inlined function.
11192
11193 2020-01-14 Luis Machado <luis.machado@linaro.org>
11194
11195 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
11196 * infrun.c (resume_1): Likewise.
11197 (handle_inferior_event): Remove stale comment.
11198 * linux-nat.c (linux_nat_target::resume): Update comments.
11199 (save_stop_reason): Likewise.
11200 (linux_nat_filter_event): Likewise.
11201 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
11202
11203 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11204
11205 * elfread.c (record_minimal_symbol): Set section index to 0 for
11206 non-allocatable sections.
11207
11208
11209 2020-01-13 Ali Tamur <tamur@google.com>
11210
11211 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
11212 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
11213 to gdb::optional. Update comments.
11214 (dwo_file): Update comments.
11215 (read_attribute): Update API to take an additional out parameter,
11216 need_reprocess. This is used to mark attributes that need other
11217 attributes (e.g. str_offsets_base) for correct computation which may not
11218 have been read yet.
11219 (read_attribute_reprocess): New function declaration.
11220 (read_addr_index): Likewise.
11221 (read_dwo_str_index): Likewise.
11222 (read_stub_str_index): Likewise.
11223 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
11224 (lookup_addr_base): New function definition.
11225 (lookup_ranges_base): Likewise.
11226 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
11227 lookup_ranges_base.
11228 (init_cutu_and_read_dies): Update comments.
11229 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
11230 unit. This is used to inherit parent's str_offsets_base and addr_base.
11231 Update comments.
11232 (init_cutu_and_read_dies_simple): Reflect API changes.
11233 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
11234 (create_cus_hash_table): Change API to take parent compile unit.
11235 Reflect API changes.
11236 (open_and_init_dwo_file): Reflect API changes.
11237 (dwarf2_get_pc_bounds): Update comments.
11238 (dwarf2_record_block_ranges): Likewise.
11239 (read_full_die_1): Change implementation to reprocess attributes that
11240 need str_offsets_base and addr_base.
11241 (partial_die_info::read): Likewise.
11242 (read_attribute_reprocess): New function definition.
11243 (read_attribute_value): Change API to take an additional out parameter,
11244 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
11245 when a non-dwo compile unit has index based attributes.
11246 (read_attribute): Reflect API changes.
11247 (read_addr_index_1): Reflect API changes. Update comments.
11248 (dwarf2_read_addr_index_data): Reflect API changes.
11249 (dwarf2_read_addr_index): Likewise.
11250 (read_str_index): Change API and implementation. This becomes a helper
11251 to be used by the new string index related methods. Update error
11252 message and comments.
11253 (read_dwo_str_index): New function definition.
11254 (read_stub_str_index): Likewise.
11255 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
11256 * symfile.h (dwarf2_debug_sections): Likewise.
11257 * xcoffread.c (dwarf2_debug_sections): Likewise.
11258
11259 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11260
11261 * gdbcore.h (struct core_fns) <core_read_registers>: Change
11262 core_reg_sect type to gdb_byte *.
11263 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
11264 * cris-tdep.c (fetch_core_registers): Likewise.
11265 * corelow.c (core_target::get_core_register_section): Change
11266 type of `contents` to gdb::byte_vector.
11267
11268 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11269
11270 * tui/tui-wingeneral.c (box_win): Position the title in the center
11271 of the border.
11272
11273 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11274
11275 * corelow.c (core_target::get_core_register_section): Use
11276 std::vector instead of alloca.
11277
11278 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11279
11280 * warning.m4: Add -Wmissing-declarations to build_warnings.
11281 * configure: Re-generate.
11282
11283 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11284
11285 * python/python.c (init__gdb_module): Add declaration.
11286
11287 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11288
11289 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
11290 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
11291 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
11292 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
11293 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
11294 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
11295 * ada-exp.y (_initialize_ada_exp): Add declaration.
11296 * ada-lang.c (_initialize_ada_language): Add declaration.
11297 * ada-tasks.c (_initialize_tasks): Add declaration.
11298 * agent.c (_initialize_agent): Add declaration.
11299 * aix-thread.c (_initialize_aix_thread): Add declaration.
11300 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
11301 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
11302 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
11303 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
11304 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
11305 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
11306 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
11307 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
11308 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
11309 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
11310 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
11311 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
11312 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
11313 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
11314 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
11315 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
11316 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
11317 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
11318 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
11319 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
11320 * annotate.c (_initialize_annotate): Add declaration.
11321 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
11322 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
11323 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
11324 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
11325 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
11326 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
11327 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
11328 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
11329 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
11330 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
11331 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
11332 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
11333 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
11334 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
11335 * auto-load.c (_initialize_auto_load): Add declaration.
11336 * auxv.c (_initialize_auxv): Add declaration.
11337 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
11338 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
11339 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
11340 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
11341 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
11342 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
11343 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
11344 * breakpoint.c (_initialize_breakpoint): Add declaration.
11345 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
11346 * btrace.c (_initialize_btrace): Add declaration.
11347 * charset.c (_initialize_charset): Add declaration.
11348 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
11349 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11350 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11351 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11352 * cli/cli-script.c (_initialize_cli_script): Add declaration.
11353 * cli/cli-style.c (_initialize_cli_style): Add declaration.
11354 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11355 * coffread.c (_initialize_coffread): Add declaration.
11356 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11357 * compile/compile.c (_initialize_compile): Add declaration.
11358 * complaints.c (_initialize_complaints): Add declaration.
11359 * completer.c (_initialize_completer): Add declaration.
11360 * copying.c (_initialize_copying): Add declaration.
11361 * corefile.c (_initialize_core): Add declaration.
11362 * corelow.c (_initialize_corelow): Add declaration.
11363 * cp-abi.c (_initialize_cp_abi): Add declaration.
11364 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11365 * cp-support.c (_initialize_cp_support): Add declaration.
11366 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11367 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11368 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11369 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11370 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11371 * ctfread.c (_initialize_ctfread): Add declaration.
11372 * d-lang.c (_initialize_d_language): Add declaration.
11373 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11374 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11375 * dbxread.c (_initialize_dbxread): Add declaration.
11376 * dcache.c (_initialize_dcache): Add declaration.
11377 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11378 * disasm.c (_initialize_disasm): Add declaration.
11379 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11380 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11381 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11382 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11383 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11384 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11385 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11386 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11387 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11388 * elfread.c (_initialize_elfread): Add declaration.
11389 * exec.c (_initialize_exec): Add declaration.
11390 * extension.c (_initialize_extension): Add declaration.
11391 * f-lang.c (_initialize_f_language): Add declaration.
11392 * f-valprint.c (_initialize_f_valprint): Add declaration.
11393 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11394 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11395 * filesystem.c (_initialize_filesystem): Add declaration.
11396 * findcmd.c (_initialize_mem_search): Add declaration.
11397 * findvar.c (_initialize_findvar): Add declaration.
11398 * fork-child.c (_initialize_fork_child): Add declaration.
11399 * frame-base.c (_initialize_frame_base): Add declaration.
11400 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11401 * frame.c (_initialize_frame): Add declaration.
11402 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11403 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11404 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11405 * gcore.c (_initialize_gcore): Add declaration.
11406 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11407 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11408 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11409 * gdbarch.c (_initialize_gdbarch): Add declaration.
11410 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11411 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11412 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11413 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11414 * go-lang.c (_initialize_go_language): Add declaration.
11415 * go32-nat.c (_initialize_go32_nat): Add declaration.
11416 * guile/guile.c (_initialize_guile): Add declaration.
11417 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11418 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11419 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11420 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11421 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11422 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11423 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11424 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11425 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11426 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11427 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11428 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11429 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11430 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11431 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11432 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11433 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11434 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11435 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11436 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11437 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11438 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11439 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11440 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11441 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11442 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11443 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11444 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11445 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11446 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11447 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11448 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11449 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11450 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11451 * infcall.c (_initialize_infcall): Add declaration.
11452 * infcmd.c (_initialize_infcmd): Add declaration.
11453 * inflow.c (_initialize_inflow): Add declaration.
11454 * infrun.c (_initialize_infrun): Add declaration.
11455 * interps.c (_initialize_interpreter): Add declaration.
11456 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11457 * jit.c (_initialize_jit): Add declaration.
11458 * language.c (_initialize_language): Add declaration.
11459 * linux-fork.c (_initialize_linux_fork): Add declaration.
11460 * linux-nat.c (_initialize_linux_nat): Add declaration.
11461 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11462 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11463 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11464 * m2-lang.c (_initialize_m2_language): Add declaration.
11465 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11466 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11467 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11468 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11469 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11470 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11471 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11472 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11473 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11474 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11475 * machoread.c (_initialize_machoread): Add declaration.
11476 * macrocmd.c (_initialize_macrocmd): Add declaration.
11477 * macroscope.c (_initialize_macroscope): Add declaration.
11478 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11479 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11480 * maint.c (_initialize_maint_cmds): Add declaration.
11481 * mdebugread.c (_initialize_mdebugread): Add declaration.
11482 * memattr.c (_initialize_mem): Add declaration.
11483 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11484 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11485 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11486 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11487 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11488 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11489 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11490 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11491 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11492 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11493 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11494 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11495 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11496 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11497 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11498 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11499 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11500 * mipsread.c (_initialize_mipsread): Add declaration.
11501 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11502 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11503 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11504 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11505 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11506 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11507 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11508 * nto-procfs.c (_initialize_procfs): Add declaration.
11509 * objc-lang.c (_initialize_objc_language): Add declaration.
11510 * observable.c (_initialize_observer): Add declaration.
11511 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11512 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11513 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11514 * osabi.c (_initialize_gdb_osabi): Add declaration.
11515 * osdata.c (_initialize_osdata): Add declaration.
11516 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11517 * parse.c (_initialize_parse): Add declaration.
11518 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11519 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11520 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11521 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11522 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11523 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11524 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11525 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11526 * printcmd.c (_initialize_printcmd): Add declaration.
11527 * probe.c (_initialize_probe): Add declaration.
11528 * proc-api.c (_initialize_proc_api): Add declaration.
11529 * proc-events.c (_initialize_proc_events): Add declaration.
11530 * proc-service.c (_initialize_proc_service): Add declaration.
11531 * procfs.c (_initialize_procfs): Add declaration.
11532 * producer.c (_initialize_producer): Add declaration.
11533 * psymtab.c (_initialize_psymtab): Add declaration.
11534 * python/python.c (_initialize_python): Add declaration.
11535 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11536 * record-btrace.c (_initialize_record_btrace): Add declaration.
11537 * record-full.c (_initialize_record_full): Add declaration.
11538 * record.c (_initialize_record): Add declaration.
11539 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11540 * regcache.c (_initialize_regcache): Add declaration.
11541 * reggroups.c (_initialize_reggroup): Add declaration.
11542 * remote-notif.c (_initialize_notif): Add declaration.
11543 * remote-sim.c (_initialize_remote_sim): Add declaration.
11544 * remote.c (_initialize_remote): Add declaration.
11545 * reverse.c (_initialize_reverse): Add declaration.
11546 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11547 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11548 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11549 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11550 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11551 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11552 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11553 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11554 Add declaration.
11555 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11556 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11557 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11558 * rust-exp.y (_initialize_rust_exp): Add declaration.
11559 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11560 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11561 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11562 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11563 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11564 * score-tdep.c (_initialize_score_tdep): Add declaration.
11565 * ser-go32.c (_initialize_ser_dos): Add declaration.
11566 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11567 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11568 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11569 * ser-uds.c (_initialize_ser_socket): Add declaration.
11570 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11571 * serial.c (_initialize_serial): Add declaration.
11572 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11573 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11574 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11575 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11576 * skip.c (_initialize_step_skip): Add declaration.
11577 * sol-thread.c (_initialize_sol_thread): Add declaration.
11578 * solib-aix.c (_initialize_solib_aix): Add declaration.
11579 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11580 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11581 * solib-frv.c (_initialize_frv_solib): Add declaration.
11582 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11583 * solib-target.c (_initialize_solib_target): Add declaration.
11584 * solib.c (_initialize_solib): Add declaration.
11585 * source-cache.c (_initialize_source_cache): Add declaration.
11586 * source.c (_initialize_source): Add declaration.
11587 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11588 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11589 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11590 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11591 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11592 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11593 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11594 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11595 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11596 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11597 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11598 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11599 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11600 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11601 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11602 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11603 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11604 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11605 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11606 * stabsread.c (_initialize_stabsread): Add declaration.
11607 * stack.c (_initialize_stack): Add declaration.
11608 * stap-probe.c (_initialize_stap_probe): Add declaration.
11609 * std-regs.c (_initialize_frame_reg): Add declaration.
11610 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11611 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11612 * symfile.c (_initialize_symfile): Add declaration.
11613 * symmisc.c (_initialize_symmisc): Add declaration.
11614 * symtab.c (_initialize_symtab): Add declaration.
11615 * target.c (_initialize_target): Add declaration.
11616 * target-connection.c (_initialize_target_connection): Add
11617 declaration.
11618 * target-dcache.c (_initialize_target_dcache): Add declaration.
11619 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11620 * thread.c (_initialize_thread): Add declaration.
11621 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11622 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11623 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11624 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11625 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11626 * tracectf.c (_initialize_ctf): Add declaration.
11627 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11628 * tracefile.c (_initialize_tracefile): Add declaration.
11629 * tracepoint.c (_initialize_tracepoint): Add declaration.
11630 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11631 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11632 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11633 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11634 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11635 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11636 * tui/tui.c (_initialize_tui): Add declaration.
11637 * typeprint.c (_initialize_typeprint): Add declaration.
11638 * ui-style.c (_initialize_ui_style): Add declaration.
11639 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11640 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11641 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11642 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11643 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11644 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11645 * unittests/filtered_iterator-selftests.c
11646 (_initialize_filtered_iterator_selftests): Add declaration.
11647 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11648 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11649 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11650 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11651 * unittests/main-thread-selftests.c
11652 (_initialize_main_thread_selftests): Add declaration.
11653 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11654 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11655 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11656 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11657 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11658 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11659 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11660 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11661 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11662 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11663 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11664 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11665 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11666 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11667 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11668 declaration.
11669 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11670 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11671 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11672 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11673 * user-regs.c (_initialize_user_regs): Add declaration.
11674 * utils.c (_initialize_utils): Add declaration.
11675 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11676 * valops.c (_initialize_valops): Add declaration.
11677 * valprint.c (_initialize_valprint): Add declaration.
11678 * value.c (_initialize_values): Add declaration.
11679 * varobj.c (_initialize_varobj): Add declaration.
11680 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11681 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11682 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11683 * windows-nat.c (_initialize_windows_nat): Add declaration.
11684 (_initialize_check_for_gdb_ini): Add declaration.
11685 (_initialize_loadable): Add declaration.
11686 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11687 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11688 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11689 * xcoffread.c (_initialize_xcoffread): Add declaration.
11690 * xml-support.c (_initialize_xml_support): Add declaration.
11691 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11692 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11693 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11694 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11695
11696 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11697
11698 * regformats/regdat.sh: Generate declaration for init function.
11699
11700 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11701
11702 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11703 up.
11704 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11705 close_one_inferior>: New methods.
11706 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11707 pass down target to find_inferior_pid.
11708 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11709 Pass down target to find_inferior_ptid.
11710 (gdbsim_target::create_inferior): Pass down target to
11711 add_thread_silent.
11712 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11713 target down to find_inferior_ptid and switch_to_thread.
11714 (gdbsim_target::close): Update to call close_one_inferior.
11715 (struct resume_data): Remove.
11716 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11717 directly, rather than through a void pointer.
11718 (gdbsim_target::resume): Update to call resume_one_inferior.
11719
11720 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11721
11722 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11723
11724 2020-01-12 Pedro Alves <palves@redhat.com>
11725
11726 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11727 directly for the current inferior instead of
11728 discard_all_inferiors.
11729 (discard_all_inferiors): Delete.
11730
11731 2020-01-11 Tom Tromey <tom@tromey.com>
11732
11733 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11734 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11735 deprecated_safe_get_selected_frame.
11736
11737 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11738
11739 * inferior.c (print_inferior): Switch inferior before printing it.
11740
11741 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11742 Pedro Alves <palves@redhat.com>
11743
11744 * progspace-and-thread.c (switch_to_program_space_and_thread):
11745 Assert there's an inferior for PSPACE. Use
11746 switch_to_inferior_no_thread to switch the inferior too.
11747 * progspace.c (program_space::~program_space): Call
11748 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11749 (program_space::free_all_objfiles): Don't call clear_symtab_users
11750 here.
11751 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11752
11753 2020-01-10 Pedro Alves <palves@redhat.com>
11754
11755 * NEWS: Mention multi-target debugging, "info connections", and
11756 "add-inferior -no-connection".
11757
11758 2020-01-10 Pedro Alves <palves@redhat.com>
11759
11760 * infrun.c: Include "target-connection.h".
11761 (check_multi_target_resumption): New.
11762 (proceed): Call it.
11763 * target-connection.c (make_target_connection_string): Make
11764 extern.
11765 * target-connection.h (make_target_connection_string): Declare.
11766
11767 2020-01-10 Pedro Alves <palves@redhat.com>
11768
11769 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11770 * inferior.c (uiout_field_connection): New function.
11771 (print_inferior): Add new "connection-id" column.
11772 (add_inferior_command): Show connection number/string of added
11773 inferior.
11774 * process-stratum-target.h
11775 (process_stratum_target::connection_string): New virtual method.
11776 (process_stratum_target::connection_number): New field.
11777 * remote.c (remote_target::connection_string): New override.
11778 * target-connection.c: New file.
11779 * target-connection.h: New file.
11780 * target.c (decref_target): Remove process_stratum targets from
11781 the connection list.
11782 (target_stack::push): Add process_stratum targets to the
11783 connection list.
11784
11785 2020-01-10 Pedro Alves <palves@redhat.com>
11786
11787 Revert:
11788 2016-04-12 Pedro Alves <palves@redhat.com>
11789 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11790 Remove references to name.
11791 * serial.h (struct serial) <name>: Delete.
11792
11793 2020-01-10 Pedro Alves <palves@redhat.com>
11794
11795 * gdbarch-selftests.c (register_to_value_test): Remove "target
11796 already pushed" check.
11797
11798 2020-01-10 Pedro Alves <palves@redhat.com>
11799 John Baldwin <jhb@FreeBSD.org>
11800
11801 * aarch64-linux-nat.c
11802 (aarch64_linux_nat_target::thread_architecture): Adjust.
11803 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11804 (task_command_1): Likewise.
11805 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11806 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11807 (aix_thread_target::store_registers)
11808 (aix_thread_target::thread_alive): Adjust.
11809 * amd64-fbsd-tdep.c: Include "inferior.h".
11810 (amd64fbsd_get_thread_local_address): Pass down target.
11811 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11812 thread's gdbarch instead of target_gdbarch.
11813 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11814 get_last_target_status.
11815 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11816 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11817 inferiors.
11818 (update_inserted_breakpoint_locations): Skip if inferiors with no
11819 execution.
11820 (update_global_location_list): When handling moribund locations,
11821 find representative inferior for location's pspace, and use thread
11822 count of its process_stratum target.
11823 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11824 * bsd-uthread.c (bsd_uthread_target::wait): Use
11825 as_process_stratum_target and adjust thread_change_ptid and
11826 add_thread calls.
11827 (bsd_uthread_target::update_thread_list): Use
11828 as_process_stratum_target and adjust find_thread_ptid,
11829 thread_change_ptid and add_thread calls.
11830 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11831 find_thread_ptid call.
11832 * corelow.c (add_to_thread_list): Adjust add_thread call.
11833 (core_target_open): Adjust add_thread_silent and thread_count
11834 calls.
11835 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11836 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11837 * event-top.c (async_disconnect): Pop targets from all inferiors.
11838 * exec.c (add_target_sections): Push exec target on all inferiors
11839 sharing the program space.
11840 (remove_target_sections): Remove the exec target from all
11841 inferiors sharing the program space.
11842 (exec_on_vfork): New.
11843 * exec.h (exec_on_vfork): Declare.
11844 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11845 Pass it down.
11846 (fbsd_nat_target::update_thread_list): Adjust.
11847 (fbsd_nat_target::resume): Adjust.
11848 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11849 down.
11850 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11851 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11852 get_thread_arch_regcache call.
11853 * fork-child.c (gdb_startup_inferior): Pass target down to
11854 startup_inferior and set_executing.
11855 * gdbthread.h (struct process_stratum_target): Forward declare.
11856 (add_thread, add_thread_silent, add_thread_with_info)
11857 (in_thread_list): Add process_stratum_target parameter.
11858 (find_thread_ptid(inferior*, ptid_t)): New overload.
11859 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11860 parameter.
11861 (all_threads()): Delete overload.
11862 (all_threads, all_non_exited_threads): Add process_stratum_target
11863 parameter.
11864 (all_threads_safe): Use brace initialization.
11865 (thread_count): Add process_stratum_target parameter.
11866 (set_resumed, set_running, set_stop_requested, set_executing)
11867 (threads_are_executing, finish_thread_state): Add
11868 process_stratum_target parameter.
11869 (switch_to_thread): Use is_current_thread.
11870 * i386-fbsd-tdep.c: Include "inferior.h".
11871 (i386fbsd_get_thread_local_address): Pass down target.
11872 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11873 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11874 have_inferiors check.
11875 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11876 (inf_ptrace_target::attach): Adjust.
11877 * infcall.c (run_inferior_call): Adjust.
11878 * infcmd.c (run_command_1): Pass target to
11879 scoped_finish_thread_state.
11880 (proceed_thread_callback): Skip inferiors with no execution.
11881 (continue_command): Rename 'all_threads' local to avoid hiding
11882 'all_threads' function. Adjust get_last_target_status call.
11883 (prepare_one_step): Adjust set_running call.
11884 (signal_command): Use user_visible_resume_target. Compare thread
11885 pointers instead of inferior_ptid.
11886 (info_program_command): Adjust to pass down target.
11887 (attach_command): Mark target's 'thread_executing' flag.
11888 (stop_current_target_threads_ns): New, factored out from ...
11889 (interrupt_target_1): ... this. Switch inferior before making
11890 target calls.
11891 * inferior-iter.h
11892 (struct all_inferiors_iterator, struct all_inferiors_range)
11893 (struct all_inferiors_safe_range)
11894 (struct all_non_exited_inferiors_range): Filter on
11895 process_stratum_target too. Remove explicit.
11896 * inferior.c (inferior::inferior): Push dummy target on target
11897 stack.
11898 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11899 Add process_stratum_target parameter, and pass it down.
11900 (have_live_inferiors): Adjust.
11901 (switch_to_inferior_and_push_target): New.
11902 (add_inferior_command, clone_inferior_command): Handle
11903 "-no-connection" parameter. Use
11904 switch_to_inferior_and_push_target.
11905 (_initialize_inferior): Mention "-no-connection" option in
11906 the help of "add-inferior" and "clone-inferior" commands.
11907 * inferior.h: Include "process-stratum-target.h".
11908 (interrupt_target_1): Use bool.
11909 (struct inferior) <push_target, unpush_target, target_is_pushed,
11910 find_target_beneath, top_target, process_target, target_at,
11911 m_stack>: New.
11912 (discard_all_inferiors): Delete.
11913 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11914 (all_inferiors, all_non_exited_inferiors): Add
11915 process_stratum_target parameter.
11916 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11917 (target_last_proc_target): New global.
11918 (follow_fork_inferior): Push target on new inferior. Pass target
11919 to add_thread_silent. Call exec_on_vfork. Handle target's
11920 reference count.
11921 (follow_fork): Adjust get_last_target_status call. Also consider
11922 target.
11923 (follow_exec): Push target on new inferior.
11924 (struct execution_control_state) <target>: New field.
11925 (user_visible_resume_target): New.
11926 (do_target_resume): Call target_async.
11927 (resume_1): Set target's threads_executing flag. Consider resume
11928 target.
11929 (commit_resume_all_targets): New.
11930 (proceed): Also consider resume target. Skip threads of inferiors
11931 with no execution. Commit resumtion in all targets.
11932 (start_remote): Pass current inferior to wait_for_inferior.
11933 (infrun_thread_stop_requested): Consider target as well. Pass
11934 thread_info pointer to clear_inline_frame_state instead of ptid.
11935 (infrun_thread_thread_exit): Consider target as well.
11936 (random_pending_event_thread): New inferior parameter. Use it.
11937 (do_target_wait): Rename to ...
11938 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11939 down.
11940 (threads_are_resumed_pending_p, do_target_wait): New.
11941 (prepare_for_detach): Adjust calls.
11942 (wait_for_inferior): New inferior parameter. Handle it. Use
11943 do_target_wait_1 instead of do_target_wait.
11944 (fetch_inferior_event): Adjust. Switch to representative
11945 inferior. Pass target down.
11946 (set_last_target_status): Add process_stratum_target parameter.
11947 Save target in global.
11948 (get_last_target_status): Add process_stratum_target parameter and
11949 handle it.
11950 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11951 (context_switch): Check inferior_ptid == null_ptid before calling
11952 inferior_thread().
11953 (get_inferior_stop_soon): Pass down target.
11954 (wait_one): Rename to ...
11955 (poll_one_curr_target): ... this.
11956 (struct wait_one_event): New.
11957 (wait_one): New.
11958 (stop_all_threads): Adjust.
11959 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11960 event's target.
11961 (switch_back_to_stepped_thread): Also consider target.
11962 (print_stop_event): Update.
11963 (normal_stop): Update. Also consider the resume target.
11964 * infrun.h (wait_for_inferior): Remove declaration.
11965 (user_visible_resume_target): New declaration.
11966 (get_last_target_status, set_last_target_status): New
11967 process_stratum_target parameter.
11968 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11969 process_stratum_target parameter, and use it.
11970 (clear_inline_frame_state (thread_info*)): New.
11971 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11972 process_stratum_target parameter.
11973 (clear_inline_frame_state (thread_info*)): Declare.
11974 * linux-fork.c (delete_checkpoint_command): Pass target down to
11975 find_thread_ptid.
11976 (checkpoint_command): Adjust.
11977 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11978 instead of just tweaking inferior_ptid.
11979 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11980 (exit_lwp): Pass target down to find_thread_ptid.
11981 (attach_proc_task_lwp_callback): Pass target down to
11982 add_thread/set_running/set_executing.
11983 (linux_nat_target::attach): Pass target down to
11984 thread_change_ptid.
11985 (get_detach_signal): Pass target down to find_thread_ptid.
11986 Consider last target status's target.
11987 (linux_resume_one_lwp_throw, resume_lwp)
11988 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11989 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11990 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11991 (linux_nat_target::async_wait_fd): New.
11992 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11993 target down.
11994 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11995 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11996 * linux-thread-db.c (struct thread_db_info::process_target): New
11997 field.
11998 (add_thread_db_info): Save target.
11999 (get_thread_db_info): New process_stratum_target parameter. Also
12000 match target.
12001 (delete_thread_db_info): New process_stratum_target parameter.
12002 Also match target.
12003 (thread_from_lwp): Adjust to pass down target.
12004 (thread_db_notice_clone): Pass down target.
12005 (check_thread_db_callback): Pass down target.
12006 (try_thread_db_load_1): Always push the thread_db target.
12007 (try_thread_db_load, record_thread): Pass target down.
12008 (thread_db_target::detach): Pass target down. Always unpush the
12009 thread_db target.
12010 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
12011 target down. Always unpush the thread_db target.
12012 (find_new_threads_callback, thread_db_find_new_threads_2)
12013 (thread_db_target::update_thread_list): Pass target down.
12014 (thread_db_target::pid_to_str): Pass current inferior down.
12015 (thread_db_target::get_thread_local_address): Pass target down.
12016 (thread_db_target::resume, maintenance_check_libthread_db): Pass
12017 target down.
12018 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
12019 * procfs.c (procfs_target::procfs_init_inferior): Declare.
12020 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
12021 (procfs_init_inferior): Rename to ...
12022 (procfs_target::procfs_init_inferior): ... this and adjust.
12023 (procfs_target::create_inferior, procfs_notice_thread)
12024 (procfs_do_thread_registers): Adjust.
12025 * ppc-fbsd-tdep.c: Include "inferior.h".
12026 (ppcfbsd_get_thread_local_address): Pass down target.
12027 * proc-service.c (ps_xfer_memory): Switch current inferior and
12028 program space as well.
12029 (get_ps_regcache): Pass target down.
12030 * process-stratum-target.c
12031 (process_stratum_target::thread_address_space)
12032 (process_stratum_target::thread_architecture): Pass target down.
12033 * process-stratum-target.h
12034 (process_stratum_target::threads_executing): New field.
12035 (as_process_stratum_target): New.
12036 * ravenscar-thread.c
12037 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
12038 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
12039 down.
12040 * record-btrace.c (record_btrace_target::info_record): Adjust.
12041 (record_btrace_target::record_method)
12042 (record_btrace_target::record_is_replaying)
12043 (record_btrace_target::fetch_registers)
12044 (get_thread_current_frame_id, record_btrace_target::resume)
12045 (record_btrace_target::wait, record_btrace_target::stop): Pass
12046 target down.
12047 * record-full.c (record_full_wait_1): Switch to event thread.
12048 Pass target down.
12049 * regcache.c (regcache::regcache)
12050 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
12051 process_stratum_target parameter and handle it.
12052 (current_thread_target): New global.
12053 (get_thread_regcache): Add process_stratum_target parameter and
12054 handle it. Switch inferior before calling target method.
12055 (get_thread_regcache): Pass target down.
12056 (get_thread_regcache_for_ptid): Pass target down.
12057 (registers_changed_ptid): Add process_stratum_target parameter and
12058 handle it.
12059 (registers_changed_thread, registers_changed): Pass target down.
12060 (test_get_thread_arch_aspace_regcache): New.
12061 (current_regcache_test): Define a couple local test_target_ops
12062 instances and use them for testing.
12063 (readwrite_regcache): Pass process_stratum_target parameter.
12064 (cooked_read_test, cooked_write_test): Pass mock_target down.
12065 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
12066 (get_thread_arch_aspace_regcache): Add process_stratum_target
12067 parameter.
12068 (regcache::target): New method.
12069 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
12070 (regcache::registers_changed_ptid): Add process_stratum_target
12071 parameter.
12072 (regcache::m_target): New field.
12073 (registers_changed_ptid): Add process_stratum_target parameter.
12074 * remote.c (remote_state::supports_vCont_probed): New field.
12075 (remote_target::async_wait_fd): New method.
12076 (remote_unpush_and_throw): Add remote_target parameter.
12077 (get_current_remote_target): Adjust.
12078 (remote_target::remote_add_inferior): Push target.
12079 (remote_target::remote_add_thread)
12080 (remote_target::remote_notice_new_inferior)
12081 (get_remote_thread_info): Pass target down.
12082 (remote_target::update_thread_list): Skip threads of inferiors
12083 bound to other targets. (remote_target::close): Don't discard
12084 inferiors. (remote_target::add_current_inferior_and_thread)
12085 (remote_target::process_initial_stop_replies)
12086 (remote_target::start_remote)
12087 (remote_target::remote_serial_quit_handler): Pass down target.
12088 (remote_target::remote_unpush_target): New remote_target
12089 parameter. Unpush the target from all inferiors.
12090 (remote_target::remote_unpush_and_throw): New remote_target
12091 parameter. Pass it down.
12092 (remote_target::open_1): Check whether the current inferior has
12093 execution instead of checking whether any inferior is live. Pass
12094 target down.
12095 (remote_target::remote_detach_1): Pass down target. Use
12096 remote_unpush_target.
12097 (extended_remote_target::attach): Pass down target.
12098 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
12099 (remote_target::append_resumption): Pass down target.
12100 (remote_target::append_pending_thread_resumptions)
12101 (remote_target::remote_resume_with_hc, remote_target::resume)
12102 (remote_target::commit_resume): Pass down target.
12103 (remote_target::remote_stop_ns): Check supports_vCont_probed.
12104 (remote_target::interrupt_query)
12105 (remote_target::remove_new_fork_children)
12106 (remote_target::check_pending_events_prevent_wildcard_vcont)
12107 (remote_target::remote_parse_stop_reply)
12108 (remote_target::process_stop_reply): Pass down target.
12109 (first_remote_resumed_thread): New remote_target parameter. Pass
12110 it down.
12111 (remote_target::wait_as): Pass down target.
12112 (unpush_and_perror): New remote_target parameter. Pass it down.
12113 (remote_target::readchar, remote_target::remote_serial_write)
12114 (remote_target::getpkt_or_notif_sane_1)
12115 (remote_target::kill_new_fork_children, remote_target::kill): Pass
12116 down target.
12117 (remote_target::mourn_inferior): Pass down target. Use
12118 remote_unpush_target.
12119 (remote_target::core_of_thread)
12120 (remote_target::remote_btrace_maybe_reopen): Pass down target.
12121 (remote_target::pid_to_exec_file)
12122 (remote_target::thread_handle_to_thread_info): Pass down target.
12123 (remote_target::async_wait_fd): New.
12124 * riscv-fbsd-tdep.c: Include "inferior.h".
12125 (riscv_fbsd_get_thread_local_address): Pass down target.
12126 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
12127 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
12128 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
12129 Adjust.
12130 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
12131 * solib-svr4.c (enable_break): Pass down target.
12132 * spu-multiarch.c (parse_spufs_run): Pass down target.
12133 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
12134 * target-delegates.c: Regenerate.
12135 * target.c (g_target_stack): Delete.
12136 (current_top_target): Return the current inferior's top target.
12137 (target_has_execution_1): Refer to the passed-in inferior's top
12138 target.
12139 (target_supports_terminal_ours): Check whether the initial
12140 inferior was already created.
12141 (decref_target): New.
12142 (target_stack::push): Incref/decref the target.
12143 (push_target, push_target, unpush_target): Adjust.
12144 (target_stack::unpush): Defref target.
12145 (target_is_pushed): Return bool. Adjust to refer to the current
12146 inferior's target stack.
12147 (dispose_inferior): Delete, and inline parts ...
12148 (target_preopen): ... here. Only dispose of the current inferior.
12149 (target_detach): Hold strong target reference while detaching.
12150 Pass target down.
12151 (target_thread_name): Add assertion.
12152 (target_resume): Pass down target.
12153 (target_ops::beneath, find_target_at): Adjust to refer to the
12154 current inferior's target stack.
12155 (get_dummy_target): New.
12156 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
12157 has a thread running.
12158 (initialize_targets): Rename to ...
12159 (_initialize_target): ... this.
12160 * target.h: Include "gdbsupport/refcounted-object.h".
12161 (struct target_ops): Inherit refcounted_object.
12162 (target_ops::shortname, target_ops::longname): Make const.
12163 (target_ops::async_wait_fd): New method.
12164 (decref_target): Declare.
12165 (struct target_ops_ref_policy): New.
12166 (target_ops_ref): New typedef.
12167 (get_dummy_target): Declare function.
12168 (target_is_pushed): Return bool.
12169 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
12170 (all_matching_threads_iterator::all_matching_threads_iterator):
12171 Handle filter target.
12172 * thread-iter.h (struct all_matching_threads_iterator, struct
12173 all_matching_threads_range, class all_non_exited_threads_range):
12174 Filter by target too. Remove explicit.
12175 * thread.c (threads_executing): Delete.
12176 (inferior_thread): Pass down current inferior.
12177 (clear_thread_inferior_resources): Pass down thread pointer
12178 instead of ptid_t.
12179 (add_thread_silent, add_thread_with_info, add_thread): Add
12180 process_stratum_target parameter. Use it for thread and inferior
12181 searches.
12182 (is_current_thread): New.
12183 (thread_info::deletable): Use it.
12184 (find_thread_ptid, thread_count, in_thread_list)
12185 (thread_change_ptid, set_resumed, set_running): New
12186 process_stratum_target parameter. Pass it down.
12187 (set_executing): New process_stratum_target parameter. Pass it
12188 down. Adjust reference to 'threads_executing'.
12189 (threads_are_executing): New process_stratum_target parameter.
12190 Adjust reference to 'threads_executing'.
12191 (set_stop_requested, finish_thread_state): New
12192 process_stratum_target parameter. Pass it down.
12193 (switch_to_thread): Also match inferior.
12194 (switch_to_thread): New process_stratum_target parameter. Pass it
12195 down.
12196 (update_threads_executing): Reimplement.
12197 * top.c (quit_force): Pop targets from all inferior.
12198 (gdb_init): Don't call initialize_targets.
12199 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
12200 Declare.
12201 (windows_add_thread, windows_delete_thread): Adjust.
12202 (get_windows_debug_event): Rename to ...
12203 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
12204 * tracefile-tfile.c (tfile_target_open): Pass down target.
12205 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
12206 Forward declare.
12207 (switch_to_thread): Add process_stratum_target parameter.
12208 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
12209 parameter. Use it.
12210 (mi_on_resume): Pass target down.
12211 * nat/fork-inferior.c (startup_inferior): Add
12212 process_stratum_target parameter. Pass it down.
12213 * nat/fork-inferior.h (startup_inferior): Add
12214 process_stratum_target parameter.
12215 * python/py-threadevent.c (py_get_event_thread): Pass target down.
12216
12217 2020-01-10 Pedro Alves <palves@redhat.com>
12218
12219 * remote.c (remote_target::start_remote): Don't set inferior_ptid
12220 directly. Instead find the first thread in the thread list and
12221 use switch_to_thread.
12222
12223 2020-01-10 Pedro Alves <palves@redhat.com>
12224
12225 * remote.c (remote_target::remote_add_inferior): Don't bind a
12226 process to the current inferior if the current inferior is already
12227 bound to a process.
12228
12229 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12230 Pedro Alves <palves@redhat.com>
12231
12232 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
12233 If no process is specified, return null_ptid instead of
12234 inferior_ptid.
12235 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
12236 TARGET_WAITKIND_SIGNALLED with no pid.
12237
12238 2020-01-10 Pedro Alves <palves@redhat.com>
12239
12240 * remote.c (first_remote_resumed_thread): New.
12241 (remote_target::wait_as): Use it as default event_ptid instead of
12242 inferior_ptid.
12243
12244 2020-01-10 Pedro Alves <palves@redhat.com>
12245
12246 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
12247
12248 2020-01-10 Pedro Alves <palves@redhat.com>
12249
12250 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
12251 not -1.
12252
12253 2020-01-10 Pedro Alves <palves@redhat.com>
12254
12255 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
12256 ptid to get_last_target_status.
12257 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
12258 ptid to get_last_target_status.
12259 * infcmd.c (continue_command): Don't pass a target_waitstatus to
12260 get_last_target_status.
12261 (info_program_command): Don't pass a target_waitstatus to
12262 get_last_target_status.
12263 * infrun.c (init_wait_for_inferior): Use
12264 nullify_last_target_wait_ptid.
12265 (get_last_target_status): Handle nullptr arguments.
12266 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
12267 (print_stop_event): Don't pass a ptid to get_last_target_status.
12268 (normal_stop): Don't pass a ptid to get_last_target_status.
12269 * infrun.h (get_last_target_status, set_last_target_status): Move
12270 comments here and update.
12271 (nullify_last_target_wait_ptid): Declare.
12272 * linux-fork.c (fork_load_infrun_state): Remove local extern
12273 declaration of nullify_last_target_wait_ptid.
12274 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
12275 to get_last_target_status.
12276
12277 2020-01-10 Pedro Alves <palves@redhat.com>
12278
12279 * gdbthread.h (scoped_restore_current_thread)
12280 <dont_restore, restore, m_dont_restore>: Declare.
12281 * thread.c (thread_alive): Add assertion. Return bool.
12282 (switch_to_thread_if_alive): New.
12283 (prune_threads): Switch inferior/thread.
12284 (print_thread_info_1): Switch thread before calling target methods.
12285 (scoped_restore_current_thread::restore): New, factored out from
12286 ...
12287 (scoped_restore_current_thread::~scoped_restore_current_thread):
12288 ... this.
12289 (scoped_restore_current_thread::scoped_restore_current_thread):
12290 Add assertion.
12291 (thread_apply_all_command, thread_select): Use
12292 switch_to_thread_if_alive.
12293 * infrun.c (proceed, restart_threads, handle_signal_stop)
12294 (switch_back_to_stepped_thread): Switch current thread before
12295 calling target methods.
12296
12297 2020-01-10 Pedro Alves <palves@redhat.com>
12298
12299 * inferior.c (switch_to_inferior_no_thread): New function,
12300 factored out from ...
12301 (inferior_command): ... here.
12302 * inferior.h (switch_to_inferior_no_thread): Declare.
12303 * mi/mi-main.c (run_one_inferior): Use
12304 switch_to_inferior_no_thread.
12305
12306 2020-01-10 Pedro Alves <palves@redhat.com>
12307
12308 * infcmd.c (kill_command): Remove dead code.
12309
12310 2020-01-10 Pedro Alves <palves@redhat.com>
12311
12312 * remote.c (remote_target::mourn_inferior): No longer check
12313 whether the target is running.
12314
12315 2020-01-10 Pedro Alves <palves@redhat.com>
12316
12317 * corelow.c (core_target::has_execution): Change parameter type to
12318 inferior pointer.
12319 * inferior.c (number_of_live_inferiors): Use
12320 inferior::has_execution instead of target_has_execution_1.
12321 * inferior.h (inferior::has_execution): New.
12322 * linux-thread-db.c (thread_db_target::update_thread_list): Use
12323 inferior::has_execution instead of target_has_execution_1.
12324 * process-stratum-target.c
12325 (process_stratum_target::has_execution): Change parameter type to
12326 inferior pointer. Check the inferior's PID instead of
12327 inferior_ptid.
12328 * process-stratum-target.h
12329 (process_stratum_target::has_execution): Change parameter type to
12330 inferior pointer.
12331 * record-full.c (record_full_core_target::has_execution): Change
12332 parameter type to inferior pointer.
12333 * target.c (target_has_execution_1): Change parameter type to
12334 inferior pointer.
12335 (target_has_execution_current): Adjust.
12336 * target.h (target_ops::has_execution): Change parameter type to
12337 inferior pointer.
12338 (target_has_execution_1): Change parameter type to inferior
12339 pointer. Change return type to bool.
12340 * tracefile.h (tracefile_target::has_execution): Change parameter
12341 type to inferior pointer.
12342
12343 2020-01-10 Pedro Alves <palves@redhat.com>
12344
12345 * exceptions.c (print_flush): Remove current_top_target() check.
12346
12347 2020-01-10 Pedro Alves <palves@redhat.com>
12348
12349 * remote.c (show_remote_exec_file): Show the current inferior's
12350 exec-file instead of the command variable's value.
12351
12352 2020-01-10 Pedro Alves <palves@redhat.com>
12353
12354 * record-full.c (record_full_resume_ptid): New global.
12355 (record_full_target::resume): Set it.
12356 (record_full_wait_1): Use record_full_resume_ptid instead of
12357 inferior_ptid.
12358
12359 2020-01-10 Pedro Alves <palves@redhat.com>
12360
12361 * gdbthread.h (scoped_restore_current_thread)
12362 <dont_restore, restore, m_dont_restore>: Declare.
12363 * thread.c (thread_alive): Add assertion. Return bool.
12364 (switch_to_thread_if_alive): New.
12365 (prune_threads): Switch inferior/thread.
12366 (print_thread_info_1): Switch thread before calling target methods.
12367 (scoped_restore_current_thread::restore): New, factored out from
12368 ...
12369 (scoped_restore_current_thread::~scoped_restore_current_thread):
12370 ... this.
12371 (scoped_restore_current_thread::scoped_restore_current_thread):
12372 Add assertion.
12373 (thread_apply_all_command, thread_select): Use
12374 switch_to_thread_if_alive.
12375
12376 2020-01-10 George Barrett <bob@bob131.so>
12377
12378 * stap-probe.c (stap_modify_semaphore): Don't check for null
12379 semaphores.
12380 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12381 for null semaphores.
12382
12383 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12384
12385 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12386 all source windows, and maintain horizontal scroll status while
12387 doing so.
12388
12389 2020-01-09 Tom Tromey <tom@tromey.com>
12390
12391 PR tui/18932:
12392 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12393 update_source_window, not print_source_lines.
12394
12395 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12396
12397 * tui/tui.c (tui_enable): Register tui hooks after calling
12398 tui_display_main.
12399
12400 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12401
12402 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12403
12404 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
12405
12406 * thread.c (print_thread_info_1): Fix indentation.
12407
12408 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12409
12410 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12411 unique_xmalloc_ptr outside the if to always free the demangled name.
12412
12413 2020-01-08 Tom Tromey <tromey@adacore.com>
12414
12415 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12416 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12417 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12418 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12419 Remove.
12420 (section_offsets): New typedef.
12421 * symtab.c (fixup_section, get_msymbol_address): Update.
12422 * symmisc.c (dump_msymbols): Update.
12423 * symfile.h (relative_addr_info_to_section_offsets)
12424 (symfile_map_offsets_to_segments): Update.
12425 * symfile.c (build_section_addr_info_from_objfile)
12426 (init_objfile_sect_indices): Update.
12427 (struct place_section_arg): Change type of "offsets".
12428 (place_section): Update.
12429 (relative_addr_info_to_section_offsets): Change type of
12430 "section_offsets". Remove "num_sections" parameter.
12431 (default_symfile_offsets, syms_from_objfile_1)
12432 (set_objfile_default_section_offset): Update.
12433 (reread_symbols): No need to preserve section offsets by hand.
12434 (symfile_map_offsets_to_segments): Change type of "offsets".
12435 * stap-probe.c (relocate_address): Update.
12436 * stabsread.h (process_one_symbol): Update.
12437 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12438 (solib_target_relocate_section_addresses): Update.
12439 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12440 Update.
12441 * solib-frv.c (frv_relocate_main_executable): Update.
12442 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12443 * solib-aix.c (solib_aix_get_section_offsets): Change return
12444 type.
12445 (solib_aix_solib_create_inferior_hook): Update.
12446 * remote.c (remote_target::get_offsets): Update.
12447 * psymtab.c (find_pc_sect_psymtab): Update.
12448 * psympriv.h (struct partial_symbol) <address, text_low,
12449 text_high>: Update.
12450 * objfiles.h (obj_section_offset): Update.
12451 (struct objfile) <section_offsets>: Change type.
12452 <num_sections>: Remove.
12453 (objfile_relocate): Update.
12454 * objfiles.c (entry_point_address_query): Update
12455 (relocate_one_symbol): Change type of "section_offsets".
12456 (objfile_relocate1, objfile_relocate1): Change type of
12457 "new_offsets".
12458 (objfile_rebase1): Update.
12459 * mipsread.c (mipscoff_symfile_read): Update.
12460 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12461 parameter.
12462 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12463 (parse_external, psymtab_to_symtab_1): Update.
12464 * machoread.c (macho_symfile_offsets): Update.
12465 * ia64-tdep.c (ia64_find_unwind_table): Update.
12466 * hppa-tdep.c (read_unwind_info): Update.
12467 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12468 * dwarf2read.c (create_addrmap_from_index)
12469 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12470 (process_psymtab_comp_unit_reader, add_partial_symbol)
12471 (add_partial_subprogram, process_full_comp_unit)
12472 (read_file_scope, read_func_scope, read_lexical_block_scope)
12473 (read_call_site_scope, dwarf2_rnglists_process)
12474 (dwarf2_ranges_process, dwarf2_ranges_read)
12475 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12476 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12477 Update.
12478 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12479 Update.
12480 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12481 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12482 (process_one_symbol): Change type of "section_offsets".
12483 * ctfread.c (get_objfile_text_range): Update.
12484 * coffread.c (coff_symtab_read, enter_linenos)
12485 (process_coff_symbol): Update.
12486 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12487 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12488
12489 2020-01-08 Tom Tromey <tromey@adacore.com>
12490
12491 * dwarf2read.c (parse_macro_definition): Use std::string.
12492 (parse_macro_definition): Likewise.
12493
12494 2020-01-08 Tom Tromey <tromey@adacore.com>
12495
12496 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12497 (ATTR_ALLOC_CHUNK): Remove.
12498
12499 2020-01-08 Tom Tromey <tromey@adacore.com>
12500
12501 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12502
12503 2020-01-08 Tom Tromey <tromey@adacore.com>
12504
12505 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12506 (dwarf2_compute_name, open_dwo_file): Likewise.
12507 (process_enumeration_scope): Use std::vector.
12508 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12509 (partial_die_info::fixup, dwarf2_start_subfile)
12510 (guess_full_die_structure_name, dwarf2_name): Likewise.
12511 (determine_prefix): Update.
12512 (guess_full_die_structure_name): Make return type const.
12513 (partial_die_full_name): Return unique_xmalloc_ptr.
12514 (DW_FIELD_ALLOC_CHUNK): Remove.
12515
12516 2020-01-07 Tom Tromey <tromey@adacore.com>
12517
12518 PR build/24937:
12519 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12520
12521 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12522
12523 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12524
12525 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12526
12527 * stack.c (print_frame_info): Move disassemble_next_line code
12528 inside source_print block.
12529
12530 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12531
12532 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12533 gdb/signals.h, as we are now using native signal symbols.
12534
12535 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12536
12537 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12538 overflow by an early check of content vs threshold.
12539 * tui/tui-source.c (tui_source_window::line_is_displayed):
12540 Likewise.
12541
12542 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12543
12544 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12545
12546 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12547
12548 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12549 export table if no section contains it's RVA.
12550
12551 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12552
12553 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12554
12555 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
12556
12557 * source.c (print_source_lines_base): Set last_line_listed.
12558
12559 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12560
12561 * tui/tui-disasm.c: Remove trailing spaces.
12562
12563 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12564 Pedro Alves <palves@redhat.com>
12565
12566 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12567 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12568 (windows_gdb_signal_to_target): New function, uses the above
12569 enumeration to convert GDB internal signal codes to equivalent
12570 Windows codes.
12571 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12572 * windows-nat.c: Include "gdb_wait.h".
12573 (get_windows_debug_event): Extract the fatal exception from the
12574 exit status and convert to the equivalent Posix signal number.
12575 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12576 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12577 * gdbsupport/gdb_wait.c: New file, implements
12578 windows_status_to_termsig.
12579 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12580 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12581
12582 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12583
12584 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12585 show_layout.
12586
12587 2020-01-05 Luis Machado <luis.machado@linaro.org>
12588
12589 * aarch64-linux-nat.c
12590 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12591 and bfd_mach_aarch64.
12592
12593 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12594
12595 * ui-file.c (stdio_file::can_emit_style_escape)
12596 (tee_file::can_emit_style_escape): Ensure style is used also on
12597 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12598 to gdb_stdout.
12599 * main.c (set_gdb_data_directory): Use file style to output the
12600 warning that the given pathname is not a directory.
12601 * top.c (show_history_filename, gdb_safe_append_history)
12602 (show_gdb_datadir): Use file style.
12603
12604 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12605
12606 * solib-target.c (struct lm_info_target):
12607 Change offsets to be a unique_xmalloc_ptr.
12608 (solib_target_relocate_section_addresses): Update.
12609
12610 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12611
12612 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12613
12614 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12615
12616 * MAINTAINERS (Write After Approval): Add myself.
12617
12618 2020-01-02 Luis Machado <luis.machado@linaro.org>
12619
12620 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12621 Cell BE architecture.
12622 * target.h (struct target_ops) <thread_architecture>: Likewise.
12623
12624 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12625
12626 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12627
12628 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12629
12630 * MAINTAINERS (Write After Approval): Add myself.
12631
12632 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12633
12634 * gdbarch.sh: Update copyright year range of generated files.
12635
12636 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12637
12638 Update copyright year range in all GDB files.
12639
12640 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12641
12642 * copyright.py: Convert to Python 3.
12643
12644 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12645
12646 * copyright.py: Adapt after move of gnulib directory from gdb
12647 directory to toplevel directory.
12648
12649 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12650
12651 * copyright.py (main): Exit if run from the wrong directory.
12652
12653 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12654
12655 * top.c (print_gdb_version): Change copyright year to 2020.
12656
12657 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12658
12659 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
12660
12661 For older changes see ChangeLog-2019.
12662 \f
12663 Local Variables:
12664 mode: change-log
12665 left-margin: 8
12666 fill-column: 74
12667 version-control: never
12668 coding: utf-8
12669 End:
This page took 0.268849 seconds and 5 git commands to generate.