Fix exception stack unwinding for ARM Cortex-M
[binutils-gdb.git] / gdb / ChangeLog
1 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
2 Adam Renquinha <arenquinha@cimeq.qc.ca>
3
4 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
5 pointer and stack frame offset when unwinding.
6
7 2020-09-13 Pedro Alves <pedro@palves.net>
8
9 * NEWS: Document "-break-insert --qualified".
10 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
11
12 2020-09-13 Pedro Alves <pedro@palves.net>
13
14 * linespec.c (classify_mtype, compare_msyms): Delete.
15 (search_minsyms_for_name): Remove classification logic. Instead
16 filter out trampoline symbols if we also found an external
17 function of the same name.
18
19 2020-09-13 Joel Brobecker <brobecker@adacore.com>
20
21 * NEWS: Create a new section for the next release branch.
22 Rename the section of the current branch, now that it has
23 been cut.
24
25 2020-09-13 Joel Brobecker <brobecker@adacore.com>
26
27 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
28 * version.in: Bump version to 11.0.50.DATE-git.
29
30 2020-09-12 Joel Brobecker <brobecker@adacore.com>
31
32 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
33
34 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
35 Felix Willgerodt <Felix.Willgerodt@intel.com>
36
37 * gdbarch.sh: Added bfloat16 type.
38 * gdbarch.c: Regenerated.
39 * gdbarch.h: Regenerated.
40 * gdbtypes.c (floatformats_bfloat16): New struct.
41 (gdbtypes_post_init): Add builtin_bfloat16.
42 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
43 (floatformats_bfloat16): New struct.
44 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
45 (i386_ymm_type): Add field "v16_bfloat16"
46 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
47 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
48 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
49 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
50 * features/i386/64bit-avx512.xml: Add bfloat16 type.
51 * features/i386/64bit-avx512.c: Regenerated.
52 * features/i386/64bit-sse.xml: Add bfloat16 type.
53 * features/i386/64bit-sse.c: Regenerated.
54
55 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
56
57 * i386-tdep.c (i386_zmm_type): Fix field names.
58 (i386_ymm_type): Fix field names.
59
60 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
61
62 * breakpoint.c: Fix typo in the help message of the
63 "set breakpoint condition-evaluation" command.
64
65 2020-09-10 Kamil Rytarowski <n54@gmx.com>
66
67 * nbsd-nat.c: Include "nat/netbsd-nat.h".
68 * (nbsd_nat_target::pid_to_exec_file)
69 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
70 (nbsd_nat_target::post_startup_inferior)
71 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
72 (nbsd_add_threads): Switch local code to common gdb/nat functions.
73 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
74 * (nbsd_thread_lister): Remove.
75
76 2020-09-10 Kamil Rytarowski <n54@gmx.com>
77
78 * fork-inferior.c (startup_inferior): Avoid double free.
79
80 2020-09-10 Kamil Rytarowski <n54@gmx.com>
81
82 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
83 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
84
85 2020-09-10 Kamil Rytarowski <n54@gmx.com>
86
87 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
88 * netbsd-nat.c: Include <sys/ptrace.h>.
89 * (netbsd_nat::enable_proc_events): Add.
90
91 2020-09-10 Kamil Rytarowski <n54@gmx.com>
92
93 * netbsd-nat.h: Include "gdbsupport/function-view.h".
94 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
95 (netbsd_nat::for_each_thread): Add.
96 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
97 "gdbsupport/common-debug.h".
98 * (netbsd_nat::netbsd_thread_lister)
99 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
100 (netbsd_nat::for_each_thread): Add.
101
102 2020-09-10 Kamil Rytarowski <n54@gmx.com>
103
104 * netbsd-nat.h: Include <unistd.h>.
105 * (netbsd_nat::pid_to_exec_file): Add.
106 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
107 * (netbsd_nat::pid_to_exec_file) Add.
108
109 2020-09-10 Kamil Rytarowski <n54@gmx.com>
110
111 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
112
113 2020-09-10 Kamil Rytarowski <n54@gmx.com>
114
115 * netbsd-nat.h: New file.
116 * netbsd-nat.c: Likewise.
117
118 2020-09-09 Tom Tromey <tromey@adacore.com>
119
120 * ada-lang.c (remove_extra_symbols): Do not increment when
121 removing an element
122
123 2020-09-08 Tom Tromey <tromey@adacore.com>
124
125 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
126
127 2020-09-08 Tom Tromey <tromey@adacore.com>
128
129 PR win32/25302:
130 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
131 (gdb_bfd_init_data): New function.
132 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
133
134 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
135
136 * infrun.c (fetch_inferior_event): Use
137 `switch_to_target_no_thread` to switch the target.
138
139 2020-09-06 Tom Tromey <tom@tromey.com>
140
141 * symfile.h (dwarf2_free_objfile): Don't declare.
142
143 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
144
145 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
146 to match 16 byte real/complex type generated by Flang compiler.
147
148 2020-09-03 Tom de Vries <tdevries@suse.de>
149
150 PR breakpoint/26546
151 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
152 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
153
154 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
155
156 * maint.c (index_digits): New function.
157 (struct maint_print_section_data): Remove.
158 (print_bfd_section_info): Remove print_data parameter, add arg
159 and index_digits.
160 (print_objfile_section_info): Likewise.
161 (print_bfd_section_info_maybe_relocated): Likewise (plus
162 objfile).
163 (maintenance_info_sections): Adjust calls.
164
165 2020-09-02 Tom Tromey <tromey@adacore.com>
166
167 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
168 for null pointers.
169 (ada_varobj_adjust_for_child_access): Special-case null pointers.
170
171 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
172
173 * bcache.h (struct bcache) <insert>: Change type of `added` to
174 pointer to bool.
175 * bcache.c (bcache::insert): Likewise.
176 * gdbtypes.c (check_types_worklist): Adjust.
177 * psymtab.c (add_psymbol_to_bcache): Adjust.
178
179 2020-08-31 Kevin Buettner <kevinb@redhat.com>
180
181 * corelow.c (unordered_set): Include.
182 (class core_target): Add field 'm_core_unavailable_mappings'.
183 (core_target::build_file_mappings): Print only one warning
184 per inaccessible file. Add unavailable/broken mappings
185 to m_core_unavailable_mappings.
186 (core_target::xfer_partial): Call...
187 (core_target::xfer_memory_via_mappings): New method.
188
189 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
190
191 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
192 type to bool.
193
194 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
195
196 * dwarf2/read.c (struct field_info): Fix indentation.
197
198 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
199
200 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
201 ordering in comment.
202 * frame.c (frame_id_eq): Fix indentation.
203
204 2020-08-31 Scott Linder <scott@scottlinder.com>
205 Simon Marchi <simon.marchi@efficios.com>
206
207 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
208 inline frame ids in outer frame.
209
210 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
211
212 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
213 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
214 (outer_frame_id): Use FID_STACK_OUTER instead of
215 FID_STACK_INVALID.
216 (frame_id_p): Don't check for outer_frame_id.
217
218 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
219
220 * frame-unwind.c (frame_unwind_got_optimized): Don't set
221 regnum/frame in value. Call allocate_value_lazy.
222 * frame.c (frame_unwind_register_value): Use
223 val_print_not_saved.
224
225 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
226
227 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
228
229 2020-08-29 Pedro Alves <pedro@palves.net>
230
231 * progspace.c (print_program_space): Use all_inferiors. Switch to
232 the inferior before calling target_pid_to_str.
233
234 2020-08-28 Tom Tromey <tom@tromey.com>
235
236 * xcoffread.c (xcoff_end_psymtab): Update comment.
237 * dbxread.c (dbx_end_psymtab): Update comment.
238
239 2020-08-28 Tom de Vries <tdevries@suse.de>
240
241 PR breakpoint/26544
242 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
243 event_location.
244 (create_breakpoint): Same.
245 (base_breakpoint_decode_location): Same.
246 (bkpt_create_sals_from_location): Same.
247 (bkpt_decode_location): Same.
248 (bkpt_probe_create_sals_from_location): Same.
249 (bkpt_probe_decode_location): Same.
250 (tracepoint_create_sals_from_location): Same.
251 (tracepoint_decode_location): Same.
252 (tracepoint_probe_decode_location): Same.
253 (strace_marker_create_sals_from_location): Same.
254 (strace_marker_decode_location): Same.
255 (create_sals_from_location_default): Same.
256 (decode_location_default): Same.
257 * breakpoint.h (struct breakpoint_ops): Same.
258 (create_breakpoint): Same.
259 * linespec.h (decode_line_full): Same.
260 * linespec.c (decode_line_full): Same. Throw error if
261 result.size () == 0.
262
263 2020-08-27 Pedro Alves <pedro@palves.net>
264
265 PR gdb/26524
266 * breakpoint.c (until_break_fsm) <location_breakpoint,
267 caller_breakpoint>: Delete fields.
268 <breakpoints>: New field.
269 <until_break_fsm>: Adjust to save a breakpoint vector instead of
270 two individual breakpoints.
271 (until_break_fsm::should_stop): Loop over breakpoints in the
272 breakpoint vector.
273 (until_break_fsm::clean_up): Adjust to clear the breakpoints
274 vector.
275 (until_break_command): Handle location expanding into multiple
276 sals.
277
278 2020-08-27 Pedro Alves <pedro@palves.net>
279
280 PR gdb/26523
281 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
282 bp_until breakpoints user-specified locations. Update intro
283 comment.
284
285 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
286
287 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
288 gdb_bfd_sections): New.
289 * maint.c (print_bfd_section_info): Change param type to
290 maint_print_section_data.
291 (print_objfile_section_info): Likewise.
292 (print_bfd_section_info_maybe_relocated): Likewise.
293 (maintenance_info_sections): Use gdb_bfd_sections.
294
295 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
296
297 * MAINTAINERS: Add ARC target and maintainer.
298
299 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
300
301 * configure.tgt: ARC support for GNU/Linux.
302 * Makefile.in (ALL_TARGET_OBJS): Likewise.
303 * arc-linux-tdep.c: New file.
304 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
305 * arc-tdep.c (arc_write_pc): Use it.
306
307 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
308
309 * arc-tdep.c (arc_check_for_hardware_loop): New.
310 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
311
312 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
313
314 * arc-tdep.h: Include "gdbarch.h".
315
316 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
317
318 * arch/arc.h
319 (arc_gdbarch_features): New class to stir the selection of target XML.
320 (arc_create_target_description): Use FEATURES to choose XML target.
321 (arc_lookup_target_description): Use arc_create_target_description
322 to create _new_ target descriptions or return the already created
323 ones if the FEATURES is the same.
324 * arch/arc.c: Implementation of prototypes described above.
325 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
326 (arc_gdbarch_features_init): Initialize the FEATURES struct.
327 * arc-tdep.c (*_feature_name): Make feature names consistent.
328 (arc_register_feature): A new struct to hold information about
329 registers of a particular target/feature.
330 (arc_check_tdesc_feature): Check if XML provides registers in
331 compliance with ARC_REGISTER_FEATURE structs.
332 (arc_update_acc_reg_names): Add aliases for r58 and r59.
333 (determine_*_reg_feature_set): Which feature name to look for.
334 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
335 (mach_type_to_arc_isa): Convert from a set of binutils machine types
336 to expected ISA enums to be used in arc_gdbarch_features structs.
337 * features/Makefile (FEATURE_XMLFILES): Add new files.
338 * gdb/features/arc/v1-aux.c: New file.
339 * gdb/features/arc/v1-aux.xml: Likewise.
340 * gdb/features/arc/v1-core.c: Likewise.
341 * gdb/features/arc/v1-core.xml: Likewise.
342 * gdb/features/arc/v2-aux.c: Likewise.
343 * gdb/features/arc/v2-aux.xml: Likewise.
344 * gdb/features/arc/v2-core.c: Likewise.
345 * gdb/features/arc/v2-core.xml: Likewise.
346 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
347
348 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
349 Andrew Burgess <andrew.burgess@embecosm.com>
350
351 PR m2/26372
352 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
353 an assert. Remove single element array indexing pattern as the
354 MULTI_SUBSCRIPT support will handle this case too.
355
356 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
357
358 * value.h (valprint_check_validity): Move declaration from
359 here...
360 * valprint.h (valprint_check_validity): ... to here.
361
362 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
363
364 * debug.h: New file.
365 * debug.c (debug_prefixed_vprintf): New function.
366 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
367 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
368
369 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
370
371 * infrun.h (infrun_debug_printf_1): New function declaration.
372 (infrun_debug_printf): New macro.
373 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
374 throughout.
375 (infrun_debug_printf): New function.
376 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
377 (handle_jit_event): Likewise.
378
379 2020-08-21 Mark Wielaard <mark@klomp.org>
380
381 * ada-lex.l: Extend register warnings diagnostics comment for g++.
382
383 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
384
385 * frame.c (enum class frame_id_status): New.
386 (struct frame_info) <this_id::p>: Change type to frame_id_status.
387 (fprintf_frame): Update.
388 (compute_frame_id): Set frame id status to "computing" on entry.
389 Set it back to "not_computed" on failure and to "computed" on
390 success.
391 (get_frame_id): Assert the frame id is not being computed.
392 (create_sentinel_frame): Use frame_id_status::COMPUTED.
393 (create_new_frame): Likewise.
394 (frame_cleanup_after_sniffer): Update assert.
395
396 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
397
398 * regcache.c (pid_ptid_regcache_map): New type.
399 (target_ptid_regcache_map): Remove.
400 (target_pid_ptid_regcache_map): New type.
401 (regcaches): Change type to target_pid_ptid_regcache_map.
402 (get_thread_arch_aspace_regcache): Update.
403 (regcache_thread_ptid_changed): Update, handle pid-like ptid
404 case.
405 (regcaches_size): Update.
406 (regcache_count): Update.
407 (registers_changed_ptid_target_pid_test): New.
408 (_initialize_regcache): Register new test.
409
410 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
411
412 * regcache.c (regcache_count): New.
413 (struct regcache_test_data): New.
414 (regcache_test_data_up): New.
415 (populate_regcaches_for_test): New.
416 (regcaches_test): Remove.
417 (get_thread_arch_aspace_regcache_test): New.
418 (registers_changed_ptid_all_test): New.
419 (registers_changed_ptid_target_test): New.
420 (registers_changed_ptid_target_ptid_test): New.
421 (regcache_thread_ptid_changed): Remove regcache_count lambda.
422 (_initialize_regcache): Register new tests.
423
424 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
425
426 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
427 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
428 gdbarch and aspace parameter. Use current inferior's aspace.
429 Validate regcache's arch value.
430 (regcaches_test): Update.
431
432 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
433
434 * regcache.c (regcaches_test): Call registers_changed.
435
436 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
437
438 * infrun.c (process_event_stop_test): Fix typo "breapoint".
439
440 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
441
442 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
443 to find the end of prologue for flang compiled binaries.
444 * arm-tdep.c (arm_skip_prologue): Likewise.
445 * i386-tdep.c (i386_skip_prologue): Likewise.
446 * producer.c (producer_is_llvm): New function.
447 (producer_parsing_tests): Added new tests for clang/flang.
448 * producer.h (producer_is_llvm): New declaration.
449
450 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
451
452 * linux-nat.c (linux_nat_debug_printf): New function.
453 (linux_nat_debug_printf_1): New macro. Use throughout the file.
454
455 2020-08-18 Aaron Merey <amerey@redhat.com>
456
457 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
458 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
459 (CLIBS): Add DEBUGINFOD_LIBS.
460
461 2020-08-17 Sergei Trofimovich <siarheit@google.com>
462
463 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
464 'gdbarch_num_regs'.
465
466 2020-08-17 Tom Tromey <tromey@adacore.com>
467
468 * ada-varobj.c (ada_varobj_decode_var): Handle case where
469 ada_get_decoded_value returns NULL.
470
471 2020-08-17 Tom Tromey <tromey@adacore.com>
472
473 * python/py-inferior.c (infpy_search_memory): Use
474 gdb_py_object_from_ulongest.
475 * python/py-infevents.c (create_inferior_call_event_object)
476 (create_memory_changed_event_object): Use
477 gdb_py_object_from_ulongest.
478 * python/py-linetable.c (ltpy_entry_get_pc): Use
479 gdb_py_object_from_ulongest.
480
481 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
482
483 * loc.c (class symbol_needs_eval_context): Fix indentation.
484
485 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
486
487 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
488 bool.
489
490 2020-08-17 Tom de Vries <tdevries@suse.de>
491
492 PR gdb/26393
493 * gdbtypes.c (dump_dynamic_prop): New function.
494 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
495
496 2020-08-15 Tom de Vries <tdevries@suse.de>
497
498 PR backtrace/26390
499 * stack.c (print_frame_args): Temporarily set the selected
500 frame to FRAME while printing the frame's arguments.
501
502 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
503
504 PR breakpoints/26385
505 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
506 Always clear watchpoint with PTRACE_SET_DEBUGREG.
507
508 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
509
510 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
511 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
512 and >= to check return value instead of == -1 and != -1.
513
514 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
515
516 * utils.h (class gdb_argv) <as_array_view>: New method.
517 * utils.c (gdb_argv_as_array_view_test): New.
518 (_initialize_utils): Register selftest.
519 * maint.c (maintenance_selftest): Use the new method.
520
521 2020-08-13 Kamil Rytarowski <n54@gmx.com>
522
523 * target.h (supports_dumpcore, dumpcore): New
524 function declarations.
525 * target.c (supports_dumpcore, dumpcore): New
526 functions.
527 * target-delegates.c: Rebuild.
528 * gcore.c (gcore_command): Use target_supports_dumpcore ()
529 and target_dumpcore ().
530
531 2020-08-13 Aaron Merey <amerey@redhat.com>
532
533 * debuginfod-support.c: Replace global variables with user_data.
534
535 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
536
537 * maint.c (maintenance_selftest): Split args and pass array_view
538 to run_tests.
539
540 2020-08-12 Luis Machado <luis.machado@linaro.org>
541
542 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
543 type's length.
544 Use %s and pulongest to print the length.
545
546 2020-08-12 Pedro Alves <palves@redhat.com>
547
548 * NEWS: Move "Multi-target debugging support" item to the
549 "Changes since GDB 9" section.
550
551 2020-08-12 Pedro Alves <palves@redhat.com>
552
553 PR gdb/26336
554 * progspace.c (program_space::remove_objfile): Invalidate the
555 frame cache.
556
557 2020-08-11 Tom de Vries <tdevries@suse.de>
558
559 * MAINTAINERS: Mark ms1 as deleted.
560
561 2020-08-10 Luis Machado <luis.machado@linaro.org>
562
563 PR gdb/26310
564
565 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
566 act accordingly.
567 (aarch64_analyze_prologue_test): Add more unit tests to exercise
568 movz/str/stur/stp skipping behavior.
569
570 2020-08-10 Luis Machado <luis.machado@linaro.org>
571
572 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
573 struct user_sve_header instead of struct sve_context.
574
575 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
576
577 * read.h (dwarf2_fetch_die_loc_sect_off,
578 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
579 `void *` parameter with function_view.
580 * read.c (dwarf2_fetch_die_loc_sect_off,
581 dwarf2_fetch_die_loc_cu_off): Likewise.
582 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
583 (per_cu_dwarf_call): Adjust.
584 (get_frame_address_in_block_wrapper): Remove.
585 (indirect_synthetic_pointer): Adjust.
586 (get_ax_pc): Remove.
587 (dwarf2_compile_expr_to_ax): Adjust.
588
589 2020-08-08 Tom de Vries <tdevries@suse.de>
590
591 PR build/26344
592 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
593 constructor.
594 * regcache.c (get_thread_arch_aspace_regcache): Same.
595
596 2020-08-07 Tom Tromey <tromey@adacore.com>
597
598 * ravenscar-thread.c
599 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
600 New method.
601 (ravenscar_thread_target::wait): Check
602 runtime_initialized.
603 (ravenscar_thread_target::prepare_to_store)
604 (ravenscar_thread_target::stopped_by_sw_breakpoint)
605 (ravenscar_thread_target::stopped_by_hw_breakpoint)
606 (ravenscar_thread_target::stopped_by_watchpoint)
607 (ravenscar_thread_target::stopped_data_address)
608 (ravenscar_thread_target::core_of_thread): Use
609 scoped_restore_current_thread and
610 set_base_thread_from_ravenscar_task.
611
612 2020-08-07 Tom Tromey <tromey@adacore.com>
613
614 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
615
616 2020-08-07 Tom Tromey <tromey@adacore.com>
617
618 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
619 update_inferior_ptid before update_thread_list.
620 (temporarily_change_regcache_ptid): New class.
621 (ravenscar_thread_target::fetch_registers)
622 (ravenscar_thread_target::store_registers)
623 (ravenscar_thread_target::prepare_to_store): Use base thread when
624 forwarding operation.
625
626 2020-08-07 Tom Tromey <tromey@adacore.com>
627
628 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
629 "is_pid" case.
630
631 2020-08-07 Tom Tromey <tromey@adacore.com>
632
633 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
634 New methods.
635 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
636 first.
637 (ravenscar_thread_target::add_thread): Rename from
638 ravenscar_add_thread.
639 (ravenscar_thread_target::update_thread_list): Use a lambda.
640 (ravenscar_thread_target::xfer_partial): New method.
641
642 2020-08-07 Tom Tromey <tromey@adacore.com>
643
644 * ada-lang.h (ada_task_list_iterator_ftype): Now a
645 gdb::function_view.
646 (iterate_over_live_ada_tasks): Change type of argument.
647 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
648 of argument.
649
650 2020-08-07 Tom Tromey <tromey@adacore.com>
651
652 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
653 Remove.
654 (ravenscar_thread_target::extra_thread_info): Remove.
655 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
656 defer to target beneath for non-Ravenscar threads.
657
658 2020-08-07 Tom Tromey <tromey@adacore.com>
659
660 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
661 get_base_thread_from_ravenscar_task>: Now methods.
662 <m_cpu_map>: New member.
663 (ravenscar_thread_target::get_thread_base_cpu): Rename from
664 ravenscar_get_thread_base_cpu. Check m_cpu_map.
665 (ravenscar_thread_target::task_is_currently_active): Update.
666 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
667 Now a method.
668 (ravenscar_thread_target::add_active_thread): Put initial thread
669 into the m_cpu_map.
670
671 2020-08-07 Tom Tromey <tromey@adacore.com>
672
673 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
674 event_ptid.
675
676 2020-08-07 Tom Tromey <tromey@adacore.com>
677
678 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
679 runtime_initialized.
680
681 2020-08-07 Tom Tromey <tromey@adacore.com>
682
683 * ravenscar-thread.c (ravenscar_thread_target): Don't call
684 add_active_thread.
685 (ravenscar_thread_target::add_active_thread): Now public.
686 (ravenscar_inferior_created): Call add_active_thread after pushing
687 the target.
688
689 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
690
691 * regcache.c (ptid_regcache_map): New type.
692 (target_ptid_regcache_map): New type.
693 (regcaches): Change type to target_ptid_regcache_map.
694 (get_thread_arch_aspace_regcache): Update to regcaches' new
695 type.
696 (regcache_thread_ptid_changed): Likewise.
697 (registers_changed_ptid): Likewise.
698 (regcaches_size): Likewise.
699 (regcaches_test): Update.
700 (regcache_thread_ptid_changed): Update.
701 * regcache.h (regcache_up): New type.
702 * gdbsupport/ptid.h (hash_ptid): New struct.
703
704 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
705
706 * observable.h (thread_ptid_changed): Add parameter
707 `process_stratum_target *`.
708 * infrun.c (infrun_thread_ptid_changed): Add parameter
709 `process_stratum_target *` and use it.
710 (selftests): New namespace.
711 (infrun_thread_ptid_changed): New function.
712 (_initialize_infrun): Register selftest.
713 * regcache.c (regcache_thread_ptid_changed): Add parameter
714 `process_stratum_target *` and use it.
715 (regcache_thread_ptid_changed): New function.
716 (_initialize_regcache): Register selftest.
717 * thread.c (thread_change_ptid): Pass target to
718 thread_ptid_changed observable.
719
720 2020-08-06 Caroline Tice <cmtice@google.com>
721
722 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
723 (struct dwp_sections): Update field comments. Add loclists and
724 rnglists fields.
725 (struct virtual_v2_dwo_sections): Rename struct to
726 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
727 size & offset fields for loclists and rnglists.
728 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
729 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
730 skipping dummy type units.
731 (create_dwp_hash_table): Update the large comment above the function to
732 discuss Version 5 DWP files as well, with references. Update all the
733 version checks in the function to check for version 5 as well. Add new
734 section at the end to create dwp hash table for version 5.
735 (create_dwp_v2_section): Rename function to
736 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
737 Add V5 to error message text.
738 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
739 into calls to create_dwp_v2_or_v5_section.
740 (create_dwo_unit_in_dwp_v5): New function.
741 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
742 check for version2; add else clause to handle version 5.
743 (open_and_init_dwo_file): Add code to check dwarf version & only call
744 create_debug_types_hash_table (with sections.types) if version is not 5;
745 else call create_debug_type_hash_table, with sections.info.
746 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
747 version 5.
748 (dwarf2_locate_v5_dwp_sections): New function.
749 (open_and_init_dwp_file): Add else-if clause for version 5 to call
750 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
751
752 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
753
754 * regcache.h (class regcache): Remove friend
755 registers_changed_ptid.
756 <regcache_thread_ptid_changed>: Remove.
757 <regcaches>: Remove.
758 * regcache.c (regcache::regcaches): Rename to...
759 (regcaches): ... this. Make static.
760 (get_thread_arch_aspace_regcache): Update.
761 (regcache::regcache_thread_ptid_changed): Rename to...
762 (regcache_thread_ptid_changed): ... this. Update.
763 (class regcache_access): Remove.
764 (regcaches_test): Update.
765 (_initialize_regcache): Update.
766 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
767 <forward_list>.
768
769 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
770
771 * regcache.h (class regcache) <current_regcache>: Rename to...
772 <regcaches>: ... this. Move doc here.
773 * regcache.c (regcache::current_regcache) Rename to...
774 (regcache::regcaches): ... this. Move doc to header.
775 (get_thread_arch_aspace_regcache): Update.
776 (regcache::regcache_thread_ptid_changed): Update.
777 (registers_changed_ptid): Update.
778 (class regcache_access) <current_regcache_size>: Rename to...
779 <regcaches_size>: ... this.
780 (current_regcache_test): Rename to...
781 (regcaches_test): ... this.
782 (_initialize_regcache): Update.
783
784 2020-08-06 Victor Collod <vcollod@nvidia.com>
785
786 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
787
788 2020-08-05 Kevin Buettner <kevinb@redhat.com>
789
790 * corelow.c (core_target::build_file_mappings): Don't output
791 null pathname in warning.
792
793 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
794
795 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
796 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
797 gdb.dwarf2/dw2-single-line-discriminators.exp,
798 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
799
800 2020-08-05 Tom Tromey <tromey@adacore.com>
801
802 PR rust/26197:
803 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
804 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
805 Fix off-by-one and type size errors in ordinary case.
806
807 2020-08-05 Tom de Vries <tdevries@suse.de>
808
809 * gdbtypes.c (type_not_allocated, type_not_associated): Use
810 "prop->const_val () == 0" instead of "prop->const_val () != 0".
811
812 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
813
814 * frame.h (frame_id_p): Return bool.
815 (frame_id_artificial_p): Return bool.
816 (frame_id_eq): Return bool.
817 (has_stack_frames): Return bool.
818 (get_selected_frame): Fix typo in comment.
819 (get_frame_pc_if_available): Return bool.
820 (get_frame_address_in_block_if_available): Return bool.
821 (get_frame_func_if_available): Return bool.
822 (read_frame_register_unsigned): Return bool.
823 (get_frame_register_bytes): Return bool.
824 (safe_frame_unwind_memory): Return bool.
825 (deprecated_frame_register_read): Return bool.
826 (frame_unwinder_is): Return bool.
827 * frame.c (struct frame_info) <prev_arch::p>: Change type to
828 bool.
829 <this_id::p>: Likewise.
830 <prev_p>: Likewise.
831 (frame_stash_add): Return bool.
832 (get_frame_id): Use bool.
833 (frame_id_build_special) Use bool.
834 (frame_id_build_unavailable_stack): Use bool.
835 (frame_id_build): Use bool.
836 (frame_id_p): Return bool, use true/false instead of 1/0.
837 (frame_id_artificial_p): Likewise.
838 (frame_id_eq): Likewise.
839 (frame_id_inner): Likewise.
840 (get_frame_func_if_available): Likewise.
841 (read_frame_register_unsigned): Likewise.
842 (deprecated_frame_register_read): Likewise.
843 (get_frame_register_bytes): Likewise.
844 (has_stack_frames): Likewise.
845 (inside_main_func): Likewise.
846 (inside_entry_func): Likewise.
847 (get_frame_pc_if_available): Likewise.
848 (get_frame_address_in_block_if_available): Likewise.
849 (frame_unwinder_is): Likewise.
850 (safe_frame_unwind_memory): Likewise.
851 (frame_unwind_arch): Likewise.
852
853 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
854
855 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
856 type to cached_copy_status.
857 (fprintf_frame): Adjust.
858 (get_frame_func_if_available): Adjust.
859 (frame_cleanup_after_sniffer): Adjust.
860
861 2020-08-04 Mark Wielaard <mark@klomp.org>
862
863 * MAINTAINERS (Write After Approval): Update email address.
864
865 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
866
867 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
868 dynamic_prop::const_val.
869
870 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
871
872 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
873 dynamic_prop::kind.
874
875 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
876
877 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
878
879 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
880
881 * configure.tgt: Set gdb_sim for bpf-*-* targets.
882
883 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
884 Jose E. Marchesi <jose.marchesi@oracle.com>
885
886 * configure.tgt: Add entry for bpf-*-*.
887 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
888 (ALLDEPFILES): Add bpf-tdep.c.
889 * bpf-tdep.c: New file.
890 * MAINTAINERS: Add bpf target and maintainer.
891 * NEWS: Mention the support for the new target.
892
893 2020-08-04 Tom de Vries <tdevries@suse.de>
894
895 PR symtab/23270
896 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
897 Error.
898
899 2020-08-03 John Baldwin <jhb@FreeBSD.org>
900
901 * syscalls/freebsd.xml: Regenerate.
902
903 2020-08-03 John Baldwin <jhb@FreeBSD.org>
904
905 * syscalls/update-freebsd.sh: Fix usage and year range.
906
907 2020-08-03 Tom de Vries <tdevries@suse.de>
908
909 PR symtab/26333
910 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
911 DW_LNE_lo_user/DW_LNE_hi_user range.
912
913 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
914
915 PR ada/26318
916 * ada-lang.c (ada_modulus): Return 0 if property is not of const
917 kind.
918
919 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
920
921 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
922
923 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
924
925 * breakpoint.c (set_breakpoint_condition): Update the condition
926 expressions after checking that the input condition string parses
927 successfully and does not contain junk at the end.
928
929 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
930
931 * breakpoint.c (set_breakpoint_condition): Update the
932 condition string after parsing the new condition successfully.
933
934 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
935
936 * proc-api.c (_STRUCTURED_PROC): Don't define.
937 * proc-events.c: Likewise.
938 * proc-flags.c: Likewise.
939 * proc-why.c: Likewise.
940 * procfs.c: Likewise.
941
942 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
943 * configure, config.in: Regenerate.
944
945 2020-07-30 Tom de Vries <tdevries@suse.de>
946
947 PR build/26320
948 * ui-style.h (struct ui_file_style::color): Wrap m_value and
949 m_red/m_green/m_blue in a union.
950
951 2020-07-29 Tom de Vries <tdevries@suse.de>
952
953 PR tdep/26280
954 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
955
956 2020-07-28 Tom Tromey <tromey@adacore.com>
957
958 PR symtab/26270:
959 * symtab.h (find_pc_partial_function_sym): Declare.
960 * cli/cli-cmds.c (disassemble_command): Use
961 find_pc_partial_function_sym. Check asm_demangle.
962 * blockframe.c (cache_pc_function_sym): New global.
963 (cache_pc_function_name): Remove.
964 (clear_pc_function_cache): Update.
965 (find_pc_partial_function_sym): New function, from
966 find_pc_partial_function.
967 (find_pc_partial_function): Rewrite using
968 find_pc_partial_function_sym.
969
970 2020-07-28 Tom Tromey <tromey@adacore.com>
971
972 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
973 help. Add usage.
974
975 2020-07-28 Tom Tromey <tromey@adacore.com>
976
977 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
978 <DW_OP_GNU_variable_value>: Cast to address type.
979
980 2020-07-28 Kamil Rytarowski <n54@gmx.com>
981
982 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
983 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
984 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
985 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
986 (nbsd_get_siginfo_type): New.
987 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
988 (_initialize_nbsd_tdep): New.
989
990 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
991
992 PR binutils/26301
993 * configure: Regenerated.
994
995 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
996
997 PR binutils/26301
998 * configure: Regenerated.
999
1000 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1001
1002 * python/py-frame.c: Remove 'user-regs.h' include.
1003 (frapy_read_register): Rewrite to make use of
1004 gdbpy_parse_register_id.
1005 * python/py-registers.c (gdbpy_parse_register_id): New function,
1006 moved here from python/py-unwind.c. Updated the return type, and
1007 also accepts register descriptor objects.
1008 * python/py-unwind.c: Remove 'user-regs.h' include.
1009 (pyuw_parse_register_id): Moved to python/py-registers.c.
1010 (unwind_infopy_add_saved_register): Update to use
1011 gdbpy_parse_register_id.
1012 (pending_framepy_read_register): Likewise.
1013 * python/python-internal.h (gdbpy_parse_register_id): Declare.
1014
1015 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1016
1017 * python/py-registers.c: Add 'user-regs.h' include.
1018 (register_descriptor_iter_find): New function.
1019 (register_descriptor_iterator_object_methods): New static global
1020 methods array.
1021 (register_descriptor_iterator_object_type): Add pointer to methods
1022 array.
1023
1024 2020-07-27 John Baldwin <jhb@FreeBSD.org>
1025
1026 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
1027 for all architectures on FreeBSD 11.3 and later.
1028
1029 2020-07-27 Tom Tromey <tromey@adacore.com>
1030
1031 * gcore.h (load_corefile): Don't declare.
1032
1033 2020-07-27 Tom de Vries <tdevries@suse.de>
1034
1035 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
1036 * config.in: Regenerate.
1037 * configure: Regenerate.
1038
1039 2020-07-26 Eli Zaretskii <eliz@gnu.org>
1040
1041 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
1042 ws2tcpip.h. When checking whether socklen_t type is defined, use
1043 ws2tcpip.h if it is available and sys/socket.h isn't.
1044 * configure: Regenerate.
1045 * config.in: Regenerate.
1046
1047 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
1048
1049 PR fortran/23051
1050 PR fortran/26139
1051 * valops.c (value_ind): Pass address to
1052 readjust_indirect_value_type.
1053 * value.c (readjust_indirect_value_type): Make parameter
1054 non-const, and add extra address parameter. Resolve original type
1055 before using it.
1056 * value.h (readjust_indirect_value_type): Update function
1057 signature and comment.
1058
1059 2020-07-25 Tom de Vries <tdevries@suse.de>
1060
1061 PR symtab/26243
1062 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
1063 entries.
1064
1065 2020-07-24 Aaron Merey <amerey@redhat.com>
1066
1067 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
1068 * configure: Rebuild.
1069
1070 2020-07-23 Kevin Buettner <kevinb@redhat.com>
1071
1072 PR corefiles/26294
1073 * corelow.c (_initialize_corelow): Add period to help text
1074 for "maintenance print core-file-backed-mappings".
1075
1076 2020-07-23 Pedro Alves <pedro@palves.net>
1077
1078 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
1079 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
1080 meanwhile.
1081 * frame.c (frame_cache_generation, get_frame_cache_generation):
1082 New.
1083 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
1084 (get_prev_frame_if_no_cycle): On exception, don't touch
1085 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
1086 * frame.h (get_frame_cache_generation): Declare.
1087
1088 2020-07-23 Tom de Vries <tdevries@suse.de>
1089
1090 PR tui/26282
1091 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
1092 New default constructor.
1093
1094 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
1095
1096 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
1097 exclude non-statement entries.
1098
1099 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1100
1101 * NEWS (New commands): Mention new command
1102 "maintenance print core-file-backed-mappings".
1103
1104 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1105
1106 * corelow.c (gdbcmd.h): Include.
1107 (core_target::info_proc_mappings): New method.
1108 (get_current_core_target): New function.
1109 (maintenance_print_core_file_backed_mappings): New function.
1110 (_initialize_corelow): Add core-file-backed-mappings to
1111 "maint print" commands.
1112
1113 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1114
1115 * linux-tdep.c (dump_note_entry_p): New function.
1116 (linux_dump_mapping_p_ftype): New typedef.
1117 (linux_find_memory_regions_full): Add new parameter,
1118 should_dump_mapping_p.
1119 (linux_find_memory_regions): Adjust call to
1120 linux_find_memory_regions_full.
1121 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
1122 call to linux_find_memory_regions_full.
1123
1124 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1125
1126 * corelow.c (solist.h, unordered_map): Include.
1127 (class core_target): Add field m_core_file_mappings and
1128 method build_file_mappings.
1129 (core_target::core_target): Call build_file_mappings.
1130 (core_target::~core_target): Free memory associated with
1131 m_core_file_mappings.
1132 (core_target::build_file_mappings): New method.
1133 (core_target::xfer_partial): Use m_core_file_mappings
1134 for memory transfers.
1135 * linux-tdep.c (linux_read_core_file_mappings): New
1136 function.
1137 (linux_core_info_proc_mappings): Rewrite to use
1138 linux_read_core_file_mappings.
1139 (linux_init_abi): Register linux_read_core_file_mappings.
1140
1141 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1142
1143 * arch-utils.c (default_read_core_file_mappings): New function.
1144 * arch-utils.c (default_read_core_file_mappings): Declare.
1145 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
1146 * gdbarch.h, gdbarch.c: Regenerate.
1147
1148 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1149
1150 PR corefiles/25631
1151 * corelow.c (core_target:xfer_partial): Revise
1152 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
1153 case after first checking the stratum beneath the core
1154 target.
1155 (has_all_memory): Return true.
1156 * target.c (raw_memory_xfer_partial): Revise comment
1157 regarding use of has_all_memory.
1158
1159 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1160
1161 * exec.h (section_table_xfer_memory): Revise declaration,
1162 replacing section name parameter with an optional callback
1163 predicate.
1164 * exec.c (section_table_xfer_memory): Likewise.
1165 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
1166 of section_table_xfer_memory.
1167
1168 2020-07-22 Tom Tromey <tromey@adacore.com>
1169
1170 * mi/mi-cmd-stack.c (list_args_or_locals): Use
1171 lookup_symbol_search_name.
1172
1173 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1174
1175 * python/py-registers.c (gdbpy_register_object_data_init): Remove
1176 redundant local variable.
1177 (gdbpy_get_register_descriptor): Extract descriptor vector as a
1178 reference, not pointer, update code accordingly.
1179
1180 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1181 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1182
1183 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
1184 * jit.c (jit_breakpoint_re_set_internal): Use the
1185 `skip_jit_symbol_lookup` field.
1186
1187 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1188 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1189
1190 * jit.c (jit_read_descriptor): Define the descriptor address once,
1191 use twice.
1192 (jit_breakpoint_deleted): Move the declaration of the loop variable
1193 `iter` into the loop header.
1194 (jit_breakpoint_re_set_internal): Move the declaration of the local
1195 variable `objf_data` to the first point of definition.
1196 (jit_event_handler): Move the declaration of local variables
1197 `code_entry`, `entry_addr`, and `objf` to their first point of use.
1198 Rename `objf` to `jited`.
1199
1200 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1201
1202 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
1203 Remove.
1204 * jit.c (get_jiter_objfile_data): Update.
1205
1206 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1207 Simon Marchi <simon.marchi@polymtl.ca>
1208
1209 * jit.c (struct jit_program_space_data): Remove.
1210 (jit_program_space_key): Remove.
1211 (jiter_objfile_data::~jiter_objfile_data): Remove program space
1212 stuff.
1213 (get_jit_program_space_data): Remove.
1214 (jit_breakpoint_deleted): Iterate on all of the program space's
1215 objfiles.
1216 (jit_inferior_init): Likewise.
1217 (jit_breakpoint_re_set_internal): Likewise. Also change return
1218 type to void.
1219 (jit_breakpoint_re_set): Pass current_program_space to
1220 jit_breakpoint_re_set_internal.
1221
1222 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1223
1224 * jit.h (struct jiter_objfile_data) <cached_code_address,
1225 jit_breakpoint>: Move to here from ...
1226 * jit.c (jit_program_space_data): ... here.
1227 (jiter_objfile_data::~jiter_objfile_data): Update.
1228 (jit_breakpoint_deleted): Update.
1229 (jit_breakpoint_re_set_internal): Update.
1230
1231 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1232
1233 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
1234 checks.
1235 (jit_read_descriptor): Remove NULL check.
1236 (jit_event_handler): Add an assertion.
1237
1238 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1239
1240 * jit.h (struct jit_objfile_data): Split into...
1241 (struct jiter_objfile_data): ... this ...
1242 (struct jited_objfile_data): ... and this.
1243 * objfiles.h (struct objfile) <jit_data>: Remove.
1244 <jiter_data, jited_data>: New fields.
1245 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
1246 (jiter_objfile_data::~jiter_objfile_data): ... this.
1247 (get_jit_objfile_data): Rename to ...
1248 (get_jiter_objfile_data): ... this.
1249 (add_objfile_entry): Update.
1250 (jit_read_descriptor): Use get_jiter_objfile_data.
1251 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
1252 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
1253 (jit_inferior_exit_hook): Use objfile's jited_data field.
1254
1255 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1256
1257 * jit.h: Forward-declare `struct minimal_symbol`.
1258 (struct jit_objfile_data): Migrate to here from jit.c; also add a
1259 constructor, destructor, and an objfile* field.
1260 * jit.c (jit_objfile_data): Remove.
1261 (struct jit_objfile_data): Migrate from here to jit.h.
1262 (jit_objfile_data::~jit_objfile_data): New destructor
1263 implementation with code moved from free_objfile_data.
1264 (free_objfile_data): Delete.
1265 (get_jit_objfile_data): Update to use the jit_data field of objfile.
1266 (jit_find_objf_with_entry_addr): Ditto.
1267 (jit_inferior_exit_hook): Ditto.
1268 (_initialize_jit): Remove the call to
1269 register_objfile_data_with_cleanup.
1270 * objfiles.h (struct objfile) <jit_data>: New field.
1271
1272 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1273
1274 * jit.h: Forward-declare `struct objfile`.
1275 (jit_event_handler): Add a second parameter, the JITer objfile.
1276 * jit.c (jit_read_descriptor): Change the signature to take the
1277 JITer objfile as an argument instead of the jit_program_space_data.
1278 (jit_inferior_init): Update the call to jit_read_descriptor.
1279 (jit_event_handler): Use the new JITer objfile argument when calling
1280 jit_read_descriptor.
1281 * breakpoint.c (handle_jit_event): Update the call to
1282 jit_event_handler to pass the JITer objfile.
1283
1284 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1285
1286 * gdbarch.c: Regenerate.
1287 * gdbarch.h: Regenerate.
1288 * gdbarch.sh (handle_segmentation_fault): Remove method.
1289 * infrun.c (handle_segmentation_fault): Remove.
1290 (print_signal_received_reason): Remove call to
1291 handle_segmentation_fault.
1292
1293 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1294
1295 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1296 Rename to sparc64_linux_report_signal_info and add siggnal
1297 argument.
1298 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
1299 instead of sparc64_linux_handle_segmentation_fault.
1300
1301 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1302
1303 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
1304 i386_linux_report_signal_info instead of
1305 i386_linux_handle_segmentation_fault.
1306 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
1307 to i386_linux_report_signal_info and add siggnal argument.
1308 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
1309 of i386_linux_handle_segmentation_fault.
1310 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
1311 to i386_linux_report_signal_info and add siggnal argument.
1312
1313 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1314
1315 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1316 hook if present.
1317
1318 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1319
1320 * gdbarch.c: Regenerate.
1321 * gdbarch.h: Regenerate.
1322 * gdbarch.sh (report_signal_info): New method.
1323 * infrun.c (print_signal_received_reason): Invoke gdbarch
1324 report_signal_info hook if present.
1325
1326 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1327
1328 * python/py-registers.c : Add 'unordered_map' include.
1329 (gdbpy_new_reggroup): Renamed to...
1330 (gdbpy_get_reggroup): ...this. Update to only create register
1331 group descriptors when needed.
1332 (gdbpy_reggroup_iter_next): Update.
1333
1334 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1335
1336 * python/py-registers.c (gdbpy_register_object_data): New static
1337 global.
1338 (gdbpy_register_object_data_init): New function.
1339 (gdbpy_new_register_descriptor): Renamed to...
1340 (gdbpy_get_register_descriptor): ...this, and update to reuse
1341 existing register descriptors where possible.
1342 (gdbpy_register_descriptor_iter_next): Update.
1343 (gdbpy_initialize_registers): Register new gdbarch data.
1344
1345 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
1346
1347 * linux-nat.c (stopped_pids): Make static.
1348
1349 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1350
1351 PR ada/26235
1352 * gdbtypes.c (ada_discrete_type_low_bound,
1353 ada_discrete_type_high_bound): Handle undefined bounds.
1354
1355 2020-07-21 Kamil Rytarowski <n54@gmx.com>
1356
1357 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1358 declaration.
1359 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1360 function.
1361
1362 2020-07-20 John Baldwin <jhb@FreeBSD.org>
1363
1364 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1365 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1366 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1367 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1368 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1369 method.
1370
1371 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1372
1373 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1374 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1375 which are deprecated in Guile 3.0.
1376 * configure.ac (try_guile_versions): Add "guile-3.0".
1377 * configure (try_guile_versions): Regenerate.
1378 * NEWS: Update entry.
1379
1380 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1381 Doug Evans <dje@google.com>
1382
1383 PR gdb/21104
1384 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1385 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1386 USING_GUILE_BEFORE_2_2.
1387 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1388 Change type to 'scm_t_port_type *'.
1389 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1390 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1391 parameter and honor it. Update callers.
1392 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1393 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1394 functions.
1395 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1396 USING_GUILE_BEFORE_2_2.
1397 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1398 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1399 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1400 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1401 and 'SCM_PORT_TYPE'.
1402 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1403 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1404 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1405 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1406 [!USING_GUILE_BEFORE_2_2]: New functions.
1407 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1408 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1409 'gdbscm_memory_port_read'.
1410 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1411 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1412 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1413 function.
1414 (ioscm_init_memory_port): Remove.
1415 (ioscm_init_memory_port_stream): New function
1416 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1417 function.
1418 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1419 Return scm_from_uint (0).
1420 (gdbscm_set_memory_port_read_buffer_size_x)
1421 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1422 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1423 Return scm_from_uint (0).
1424 (gdbscm_set_memory_port_write_buffer_size_x)
1425 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1426 * configure.ac (try_guile_versions): Add "guile-2.2".
1427 * configure: Regenerate.
1428 * NEWS: Add entry.
1429
1430 2020-07-18 Tom Tromey <tom@tromey.com>
1431
1432 * linux-nat.c (linux_multi_process): Remove.
1433 (linux_nat_target::supports_multi_process): Return true.
1434
1435 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1436
1437 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1438 (riscv_lookup_target_description): Return pointer out of
1439 unique_ptr.
1440 * target-descriptions.c (allocate_target_description): Add
1441 comment.
1442 (target_desc_deleter::operator()): Likewise.
1443 * target-descriptions.h (struct target_desc_deleter): Moved to
1444 gdbsupport/tdesc.h.
1445 (target_desc_up): Likewise.
1446
1447 2020-07-17 Tom Tromey <tromey@adacore.com>
1448
1449 * linux-nat.c (linux_nat_target::supports_non_stop)
1450 (linux_nat_target::always_non_stop_p): Use "true".
1451 (linux_nat_target::supports_disable_randomization): Use "true" and
1452 "false".
1453
1454 2020-07-16 Caroline Tice <cmtice@google.com>
1455
1456 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1457 (RNGLIST_HEADER_SIZE64): New constant definition.
1458 (struct dwop_section_names): Add rnglists_dwo.
1459 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1460 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1461 (struct dwo_sections): Add rnglists field.
1462 (read_attribut_reprocess): Add tag parameter.
1463 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1464 (cu_debug_rnglists_section): New function (decl & definition).
1465 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1466 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1467 die whose range is being checked; get rnglist section from
1468 cu_debug_rnglists_section, to get from either objfile or dwo file as
1469 appropriate. Add cases for DW_RLE_base_addressx,
1470 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1471 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1472 test inside if-condition and updating complaint message.
1473 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1474 dwarf2_rnglists_process.
1475 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1476 dwarf2_ranges_process.
1477 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1478 need_ranges_base and update comment appropriately. Also pass die tag
1479 to dwarf2_ranges_read.
1480 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1481 need_ranges_base and update comment appropriately. Also pass die tag
1482 to dwarf2_ranges_process.
1483 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1484 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1485 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1486 need_ranges_base and update comment appropriately. Also pass die tag
1487 to read_attribute_reprocess and dwarf2_ranges_read.
1488 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1489 and update function comment appropriately.
1490 (read_loclist_index): Call read_loclists_rnglists_header instead of
1491 read_loclist_header.
1492 (read_rnglist_index): New function.
1493 (read_attribute_reprocess): Add tag parameter. Add code for
1494 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1495 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1496
1497 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1498
1499 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1500 being resolved.
1501
1502 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1503
1504 * arch-utils.c (show_architecture): Update formatting of messages.
1505
1506 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1507
1508 * gdbtypes.h (struct type) <bounds>: Handle array and string
1509 types.
1510 * ada-lang.c (assign_aggregate): Use type::bounds on
1511 array/string type.
1512 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1513 * c-varobj.c (c_number_of_children): Likewise.
1514 (c_describe_child): Likewise.
1515 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1516 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1517 (f_type_print_base): Likewise.
1518 * f-valprint.c (f77_array_offset_tbl): Likewise.
1519 (f77_get_upperbound): Likewise.
1520 (f77_print_array_1): Likewise.
1521 * guile/scm-type.c (gdbscm_type_range): Likewise.
1522 * m2-typeprint.c (m2_array): Likewise.
1523 (m2_is_long_set_of_type): Likewise.
1524 * m2-valprint.c (get_long_set_bounds): Likewise.
1525 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1526 * python/py-type.c (typy_range): Likewise.
1527 * rust-lang.c (rust_internal_print_type): Likewise.
1528 * type-stack.c (type_stack::follow_types): Likewise.
1529 * valarith.c (value_subscripted_rvalue): Likewise.
1530 * valops.c (value_cast): Likewise.
1531
1532 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1533
1534 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1535 callers to use the equivalent accessor methods.
1536
1537 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1538
1539 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1540 (struct type) <bit_stride>: New method.
1541 (TYPE_BIT_STRIDE): Remove.
1542 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1543
1544 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1545
1546 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1547 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1548 callers to use the equivalent accessor methods instead.
1549
1550 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1551
1552 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1553 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1554 callers to use the equivalent accessor methods instead.
1555
1556 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1557
1558 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1559 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1560 to use dynamic_prop::kind.
1561
1562 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1563
1564 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1565 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1566 to get the bound property's kind and check against
1567 PROP_UNDEFINED.
1568
1569 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1570
1571 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1572 all callers to use type::range_bounds followed by
1573 dynamic_prop::{low,high}.
1574
1575 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1576
1577 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1578 const_val, set_const_val, baton, set_locexpr, set_loclist,
1579 set_addr_offset, variant_parts, set_variant_parts,
1580 original_type, set_original_type>: New methods.
1581 <kind>: Rename to...
1582 <m_kind>: ... this. Update all users to use the new methods
1583 instead.
1584 <data>: Rename to...
1585 <m_data>: ... this. Update all users to use the new methods
1586 instead.
1587
1588 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1589
1590 * gdbtypes.c (get_discrete_bounds): Return failure if
1591 the range type's bounds are not both defined and constant
1592 values.
1593 (get_array_bounds): Update comment. Remove undefined bound check.
1594
1595 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1596
1597 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1598 the type::bounds method directly.
1599
1600 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1601
1602 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1603 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1604 are used to set the range type's bounds to use set_bounds.
1605
1606 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1607
1608 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1609
1610 2020-07-10 Pedro Alves <pedro@palves.net>
1611
1612 * gdbthread.h (inferior_ref): Define.
1613 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1614 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1615 * thread.c
1616 (scoped_restore_current_thread::restore):
1617 Adjust to gdb::ref_ptr.
1618 (scoped_restore_current_thread::~scoped_restore_current_thread):
1619 Remove manual decref handling.
1620 (scoped_restore_current_thread::scoped_restore_current_thread):
1621 Adjust to use
1622 inferior_ref::new_reference/thread_info_ref::new_reference.
1623 Incref the thread before calling get_frame_id instead of after.
1624 Let TARGET_CLOSE_ERROR propagate.
1625
1626 2020-07-10 Pedro Alves <pedro@palves.net>
1627
1628 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1629 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1630 NOT_AVAILABLE_ERROR.
1631 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1632 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1633
1634 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1635 Pedro Alves <pedro@palves.net>
1636
1637 PR gdb/26199
1638 * infrun.c (threads_are_resumed_pending_p): Delete.
1639 (do_target_wait): Remove threads_are_executing and
1640 threads_are_resumed_pending_p checks from the inferior_matches
1641 lambda. Update comments.
1642
1643 2020-07-10 Pedro Alves <pedro@palves.net>
1644
1645 PR gdb/26199
1646 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1647 executing threads.
1648
1649 2020-07-10 Pedro Alves <pedro@palves.net>
1650
1651 PR gdb/26199
1652 * infrun.c (handle_no_resumed): Handle multiple targets.
1653
1654 2020-07-10 Pedro Alves <pedro@palves.net>
1655
1656 PR gdb/26199
1657 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1658 target_is_async_p.
1659
1660 2020-07-10 Pedro Alves <pedro@palves.net>
1661
1662 PR gdb/26199
1663 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1664 threads, not all threads.
1665
1666 2020-07-10 Pedro Alves <pedro@palves.net>
1667
1668 PR gdb/26199
1669 * remote.c (remote_target::open_1): Pass remote target pointer as
1670 data to create_async_event_handler.
1671 (remote_async_inferior_event_handler): Mark async event handler
1672 before returning if the remote target still has either pending
1673 events or unacknowledged notifications.
1674
1675 2020-07-10 John Baldwin <jhb@FreeBSD.org>
1676
1677 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1678 declaration.
1679 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1680 function.
1681
1682 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1683
1684 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1685 inferior_ptid.
1686
1687 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1688
1689 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1690 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1691 AT_FREEBSD_PS_STRINGS.
1692
1693 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
1694
1695 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1696 of debugfile path on Windows.
1697
1698 2020-07-08 John Baldwin <jhb@FreeBSD.org>
1699
1700 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1701 argument to 'data'.
1702
1703 2020-07-08 Tom Tromey <tromey@adacore.com>
1704
1705 * ada-lang.c (ada_exception_message_1): Use read_memory.
1706
1707 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1708
1709 PR python/22748
1710 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1711 special handling for inline frames.
1712 * findvar.c (value_of_register_lazy): Skip inline frames when
1713 creating lazy register values.
1714 * frame.c (frame_id_computed_p): Delete definition.
1715 * frame.h (frame_id_computed_p): Delete declaration.
1716
1717 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1718
1719 * NEWS: Mention additions to Python API.
1720 * python/py-arch.c (archpy_register_groups): New function.
1721 (arch_object_methods): Add 'register_groups' method.
1722 * python/py-registers.c (reggroup_iterator_object): New struct.
1723 (reggroup_object): New struct.
1724 (gdbpy_new_reggroup): New function.
1725 (gdbpy_reggroup_to_string): New function.
1726 (gdbpy_reggroup_name): New function.
1727 (gdbpy_reggroup_iter): New function.
1728 (gdbpy_reggroup_iter_next): New function.
1729 (gdbpy_new_reggroup_iterator): New function
1730 (gdbpy_initialize_registers): Register new types.
1731 (reggroup_iterator_object_type): Define new Python type.
1732 (gdbpy_reggroup_getset): New static global.
1733 (reggroup_object_type): Define new Python type.
1734 * python/python-internal.h
1735
1736 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1737
1738 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1739 * python/py-arch.c (archpy_registers): New function.
1740 (arch_object_methods): Add 'registers' method.
1741 * python/py-registers.c: New file.
1742 * python/python-internal.h
1743 (gdbpy_new_register_descriptor_iterator): Declare.
1744 (gdbpy_initialize_registers): Declare.
1745 * python/python.c (do_start_initialization): Call
1746 gdbpy_initialize_registers.
1747 * NEWS: Mention additions to the Python API.
1748
1749 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1750
1751 * NEWS: Mention new Python API method.
1752 * python/py-unwind.c (pending_framepy_architecture): New function.
1753 (pending_frame_object_methods): Add architecture method.
1754
1755 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1756
1757 * gdbarch.c: Regenerate.
1758 * gdbarch.h: Regenerate.
1759 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1760 (gdbarch_data): Use internal_error for the case where
1761 deprecated_set_gdbarch_data was originally needed.
1762 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1763 and use passed in obstack.
1764 (libunwind_frame_set_descr): Should no longer get back NULL from
1765 gdbarch_data.
1766 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1767 type.
1768 * user-regs.c (user_regs_init): Update parameters, and use passed
1769 in obstack.
1770 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1771 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1772
1773 2020-07-06 Tom de Vries <tdevries@suse.de>
1774
1775 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1776 End-Of-Sequence in lte_is_less_than.
1777 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1778 "gdb: Don't reorder line table entries too much when sorting".
1779
1780 2020-07-06 Tom de Vries <tdevries@suse.de>
1781
1782 PR tui/26205
1783 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1784
1785 2020-07-05 Tom de Vries <tdevries@suse.de>
1786
1787 PR build/26187
1788 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1789 std::uncaught_exceptions instead of deprecated
1790 std::uncaught_exception.
1791
1792 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1793
1794 * macroexp.h (macro_stringify): Return
1795 gdb::unique_xmalloc_ptr<char>.
1796 * macroexp.c (macro_stringify): Likewise.
1797 * macrotab.c (fixup_definition): Update.
1798
1799 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1800
1801 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1802 (lex_one_token): Update.
1803 * macroexp.c (struct macro_buffer) <release>: Return
1804 gdb::unique_xmalloc_ptr<char>.
1805 (macro_stringify): Update.
1806 (macro_expand): Update.
1807 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1808 * macroexp.h (macro_expand_next): Likewise.
1809
1810 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
1811
1812 * macroexp.h (macro_lookup_ftype): Remove.
1813 (macro_expand, macro_expand_once, macro_expand_next): Remove
1814 lookup function parameters, add scope parameter.
1815 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1816 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1817 * macroscope.h (standard_macro_lookup): Change parameter type
1818 to macro_scope.
1819 * macroscope.c (standard_macro_lookup): Likewise.
1820 * c-exp.y (lex_one_token): Update.
1821 * macrocmd.c (macro_expand_command): Likewise.
1822 (macro_expand_once_command): Likewise.
1823
1824 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1825
1826 * inf-loop.c (inferior_event_handler): Remove client_data param.
1827 * inf-loop.h (inferior_event_handler): Likewise.
1828 * infcmd.c (step_1): Adjust.
1829 * infrun.c (proceed): Adjust.
1830 (fetch_inferior_event): Remove client_data param.
1831 (infrun_async_inferior_event_handler): Adjust.
1832 * infrun.h (fetch_inferior_event): Remove `void *` param.
1833 * linux-nat.c (handle_target_event): Adjust.
1834 * record-btrace.c (record_btrace_handle_async_inferior_event):
1835 Adjust.
1836 * record-full.c (record_full_async_inferior_event_handler):
1837 Adjust.
1838 * remote.c (remote_async_inferior_event_handler): Adjust.
1839
1840 2020-07-01 Tom Tromey <tom@tromey.com>
1841
1842 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1843 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1844
1845 2020-07-01 Tom Tromey <tom@tromey.com>
1846
1847 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1848 tui_gen_win_info.
1849 (tui_win_info::make_window): Merge with
1850 tui_gen_win_info::make_window.
1851 (tui_win_info::make_visible): Move from tui_gen_win_info.
1852 * tui/tui-win.c (tui_win_info::max_width): Move from
1853 tui_gen_win_info.
1854 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1855 type.
1856 <window_factory>: Likewise.
1857 * tui/tui-layout.c (tui_win_info::resize): Move from
1858 tui_gen_win_info.
1859 (make_standard_window): Change return type.
1860 (get_locator_window, tui_get_window_by_name): Likewise.
1861 (tui_layout_window::apply): Remove a cast.
1862 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1863 (struct tui_win_info): Merge with tui_gen_win_info.
1864 (struct tui_gen_win_info): Remove.
1865
1866 2020-07-01 Tom Tromey <tom@tromey.com>
1867
1868 * tui/tui-stack.h (struct tui_locator_window): Derive from
1869 tui_win_info.
1870 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1871 <can_box>: New method.
1872
1873 2020-07-01 Tom Tromey <tom@tromey.com>
1874
1875 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1876
1877 2020-07-01 Tom Tromey <tom@tromey.com>
1878
1879 * tui/tui-regs.c (tui_data_window::display_registers_from)
1880 (tui_data_window::display_registers_from)
1881 (tui_data_window::first_data_item_displayed)
1882 (tui_data_window::delete_data_content_windows): Update.
1883 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1884 Remove.
1885 (tui_data_window::check_register_values): Update.
1886 (tui_data_item_window::rerender): Add parameters. Update.
1887 (tui_data_item_window::refresh_window): Remove.
1888 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1889 virtual.
1890 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1891 tui_gen_win_info.
1892 <refresh_window, max_height, min_height>: Remove.
1893 <rerender>: Add parameters.
1894 <x, y, visible>: New members.
1895 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1896 <m_item_width>: New member.
1897
1898 2020-07-01 Tom Tromey <tom@tromey.com>
1899
1900 * tui/tui-regs.c (tui_data_window::show_register_group)
1901 (tui_data_window::check_register_values): Update.
1902 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1903 from item_no.
1904
1905 2020-07-01 Tom Tromey <tom@tromey.com>
1906
1907 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1908 useless "if".
1909
1910 2020-07-01 Tom Tromey <tom@tromey.com>
1911
1912 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1913 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1914
1915 2020-07-01 Tom Tromey <tom@tromey.com>
1916
1917 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1918 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1919 (struct tui_line_or_address): Move from tui-data.h.
1920 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1921 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1922 (tui_cmd_window, tui_source_window_base, tui_source_window)
1923 (tui_disasm_window): Don't declare.
1924 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1925 to tui-winsource.h.
1926 (SINGLE_KEY): Move to tui-stack.c.
1927
1928 2020-07-01 Tom Tromey <tom@tromey.com>
1929
1930 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1931 std::string.
1932 * tui/tui-regs.c (class tab_expansion_file): New.
1933 (tab_expansion_file::write): New method.
1934 (tui_register_format): Change return type. Use
1935 tab_expansion_file.
1936 (tui_get_register, tui_data_window::display_registers_from)
1937 (tui_data_item_window::rerender): Update.
1938 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1939 * tui/tui-io.c (tui_expand_tabs): Remove.
1940
1941 2020-07-01 Tom Tromey <tom@tromey.com>
1942
1943 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1944
1945 2020-07-01 Fangrui Song <maskray@google.com>
1946
1947 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1948
1949 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1950
1951 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1952 forms for DW_AT_associated and DW_AT_allocated attributes,
1953 which is already checked in function attr_to_dynamic_prop.
1954
1955 2020-06-30 Tom Tromey <tromey@adacore.com>
1956
1957 * dwarf2/read.c (quirk_rust_enum): Correctly call
1958 alloc_rust_variant for default-less enum.
1959
1960 2020-06-30 Tom Tromey <tromey@adacore.com>
1961
1962 PR build/26183:
1963 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1964 gdb::to_string.
1965
1966 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
1967
1968 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1969 * gdbarch.h: Re-generate.
1970
1971 2020-06-28 Tom Tromey <tom@tromey.com>
1972
1973 * command.h (cmd_types): Remove.
1974 (cmd_type): Don't declare.
1975 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1976 typedef.
1977 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1978 * cli/cli-decode.c (cmd_type): Remove.
1979
1980 2020-06-27 Pedro Alves <palves@redhat.com>
1981
1982 * fork-child.c (prefork_hook): Adjust.
1983 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1984 Delete.
1985 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1986 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1987 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1988 Remove declarations.
1989 (struct inferior) <set_tty, tty>: New methods.
1990 (struct inferior) <terminal>: Rename to ...
1991 (struct inferior) <m_terminal>: ... this and make private.
1992 * main.c (captured_main_1): Adjust.
1993 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1994 (mi_cmd_inferior_tty_show): Adjust.
1995 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1996 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1997
1998 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
1999
2000 * configure.ac: Add --enable-libctf: handle --disable-static
2001 properly.
2002 * acinclude.m4: sinclude ../config/enable.m4.
2003 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
2004 (LIBCTF): Substitute in.
2005 (CTF_DEPS): New, likewise.
2006 (CLIBS): libctf needs symbols from libbfd: move earlier.
2007 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
2008 flags.
2009 * ctfread.c: Surround in ENABLE_LIBCTF.
2010 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
2011 * configure: Regenerate.
2012 * config.in: Likewise.
2013
2014 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
2015
2016 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
2017
2018 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
2019
2020 * inferior.h (struct inferior) <terminal>: Change type to
2021 gdb::unique_xmalloc_ptr<char>.
2022 * inferior.c (inferior::~inferior): Don't free inf->terminal.
2023 * infcmd.c (set_inferior_io_terminal): Don't free terminal
2024 field, adjust to unique pointer.
2025 (get_inferior_io_terminal): Adjust to unique pointer.
2026
2027 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2028
2029 * riscv-tdep.c (riscv_print_registers_info): Loop over all
2030 registers, not just the known core set of registers.
2031
2032 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2033
2034 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
2035 fflags, frm, and fcsr registers.
2036 (riscv_register_reggroup_p): Remove unknown CSRs from save and
2037 restore groups.
2038 (riscv_tdesc_unknown_reg): New function.
2039 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
2040 tdesc_use_registers.
2041 * riscv-tdep.h (struct gdbarch_tdep): Add
2042 unknown_csrs_first_regnum, unknown_csrs_count,
2043 duplicate_fflags_regnum, duplicate_frm_regnum, and
2044 duplicate_fcsr_regnum fields.
2045
2046 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2047
2048 * target-descriptions.c (tdesc_use_registers): Add new parameter a
2049 callback, use the callback (when not null) to help number unknown
2050 registers.
2051 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
2052 (tdesc_use_registers): Add extra parameter to declaration.
2053
2054 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2055
2056 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
2057 in the file.
2058 (class riscv_pending_register_alias): Likewise.
2059 (riscv_register_feature::register_info): Change 'required_p' field
2060 to 'required', and change its type. Add 'check' member function.
2061 (riscv_register_feature::register_info::check): Define new member
2062 function.
2063 (riscv_xreg_feature): Change initialisation of 'required' field.
2064 (riscv_freg_feature): Likewise.
2065 (riscv_virtual_feature): Likewise.
2066 (riscv_csr_feature): Likewise.
2067 (riscv_check_tdesc_feature): Take extra parameter, the csr
2068 tdesc_feature, rewrite the function to use the new
2069 riscv_register_feature::register_info::check function.
2070 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
2071
2072 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2073
2074 * features/Makefile: Remove all references to the deleted files
2075 below.
2076 * features/riscv/32bit-csr.c: Deleted.
2077 * features/riscv/32bit-csr.xml: Deleted.
2078 * features/riscv/64bit-csr.c: Deleted.
2079 * features/riscv/64bit-csr.xml: Deleted.
2080 * features/riscv/rebuild-csr-xml.sh: Deleted.
2081
2082 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2083
2084 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
2085 whitespace error for declaration of names member variable.
2086 (struct riscv_register_feature): Add new prefer_first_name member
2087 variable, and fix whitespace error in declaration of registers.
2088 (riscv_xreg_feature): Initialize prefer_first_name field.
2089 (riscv_freg_feature): Likewise.
2090 (riscv_virtual_feature): Likewise.
2091 (riscv_csr_feature): Likewise.
2092 (riscv_register_name): Expand on comments. Remove register name
2093 modifications for CSR and virtual registers.
2094
2095 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2096
2097 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
2098 errors.
2099
2100 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2101
2102 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
2103 riscv-opc.h.
2104 (class riscv_pending_register_alias): New class.
2105 (riscv_check_tdesc_feature): Take vector of pending aliases and
2106 populate it as appropriate.
2107 (riscv_setup_register_aliases): Delete.
2108 (riscv_gdbarch_init): Create vector of pending aliases and pass it
2109 to riscv_check_tdesc_feature in all cases. Use the vector to
2110 create the register aliases.
2111
2112 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2113
2114 * sol2-tdep.c (sol2_static_transform_name): Remove.
2115 (sol2_init_abi): Don't register it.
2116 * gdbarch.sh (static_transform_name): Remove.
2117 * gdbarch.c, gdbarch.h: Regenerate.
2118
2119 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
2120 gdbarch_static_transform_name.
2121 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
2122 * stabsread.c (define_symbol) <'X'>: Remove.
2123 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
2124 handling.
2125 <'V'>: Likewise.
2126 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
2127 <'S'>: Remove call to gdbarch_static_transform_name.
2128
2129 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2130
2131 * procfs.c (procfs_pre_trace): New function.
2132 (procfs_target::create_inferior): Pass it to fork_inferior.
2133
2134 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2135
2136 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
2137 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
2138 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
2139 sol2-tdep.o, sparc-sol2-tdep.o.
2140 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
2141 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
2142 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
2143 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
2144
2145 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2146
2147 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
2148 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
2149 Call sol2_init_abi.
2150 Remove calls to set_gdbarch_skip_solib_resolver,
2151 set_gdbarch_core_pid_to_str.
2152 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
2153 (i386_sol2_static_transform_name): Remove.
2154 (i386_sol2_init_abi): Call sol2_init_abi.
2155 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2156 set_gdbarch_static_transform_name,
2157 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2158 Use sol2_sigtramp_p.
2159 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
2160 (sol2_sigtramp_p): New function.
2161 (sol2_static_transform_name): New function.
2162 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
2163 (sol2_init_abi): New function.
2164 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
2165 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
2166 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
2167 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
2168 (sparc_sol2_static_transform_name): Remove.
2169 (sparc32_sol2_init_abi): Call sol2_init_abi.
2170 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2171 set_gdbarch_static_transform_name,
2172 set_gdbarch_skip_solib_resolver,
2173 set_gdbarch_core_pid_to_str.
2174 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
2175 (sparc_sol2_static_transform_name): Remove
2176 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
2177 call sol2_sigtramp_p.
2178 (sparc64_sol2_init_abi): Call sol2_init_abi.
2179 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2180 set_gdbarch_static_transform_name,
2181 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2182
2183 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2184
2185 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
2186 * exec.c (validate_exec_file): If from_tty, set both
2187 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
2188 * symfile.c (symbol_file_add_with_addrs): if always_confirm
2189 and from_tty, unconditionally ask a confirmation.
2190
2191 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2192
2193 * target-descriptions.c (tdesc_architecture_name): Protect against
2194 NULL pointer dereference.
2195 (maint_print_xml_tdesc_cmd): New function.
2196 (_initialize_target_descriptions): Register new 'maint print
2197 xml-tdesc' command and give it the filename completer.
2198 * NEWS: Mention new 'maint print xml-tdesc' command.
2199
2200 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2201
2202 * target-descriptions.c (class tdesc_compatible_info): New class.
2203 (struct target_desc): Change type of compatible vector.
2204 (tdesc_compatible_p): Update for change in type of
2205 target_desc::compatible.
2206 (tdesc_compatible_info_list): New function.
2207 (tdesc_compatible_info_arch_name): New function.
2208 (tdesc_add_compatible): Update for change in type of
2209 target_desc::compatible.
2210 (print_c_tdesc::visit_pre): Likewise.
2211
2212 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2213
2214 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
2215 whitespace to underscore.
2216 (maint_print_c_tdesc_cmd): Use fake filename for target
2217 descriptions that came from the target.
2218 (_initialize_target_descriptions): Add filename command completion
2219 for 'maint print c-tdesc'.
2220
2221 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2222
2223 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
2224 lines.
2225
2226 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2227
2228 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
2229 lines.
2230 (dwarf2_find_location_expression): Likewise.
2231 (call_site_parameter_matches): Likewise.
2232 (dwarf2_compile_expr_to_ax): Likewise.
2233 (disassemble_dwarf_expression): Likewise.
2234 (loclist_describe_location): Likewise.
2235
2236 2020-06-23 Pedro Alves <palves@redhat.com>
2237
2238 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
2239 progspace-and-thread.h. Include scoped-mock-context.h instead.
2240 (register_to_value_test): Use scoped_mock_context.
2241 * regcache.c: Include "scoped-mock-context.h".
2242 (cooked_read_test): Don't error out if a target is already pushed.
2243 Use scoped_mock_context. Adjust.
2244 * scoped-mock-context.h: New file.
2245
2246 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2247
2248 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
2249 initializer.
2250 (ada_language::is_string_type_p): New member function.
2251 * c-lang.c (c_language_data): Delete la_is_string_type_p
2252 initializer.
2253 (cplus_language_data): Likewise.
2254 (asm_language_data): Likewise.
2255 (minimal_language_data): Likewise.
2256 * d-lang.c (d_language_data): Likewise.
2257 * f-lang.c (f_is_string_type_p): Delete function, implementation
2258 moved to f_language::is_string_type_p.
2259 (f_language_data): Delete la_is_string_type_p initializer.
2260 (f_language::is_string_type_p): New member function,
2261 implementation from f_is_string_type_p.
2262 * go-lang.c (go_is_string_type_p): Delete function, implementation
2263 moved to go_language::is_string_type_p.
2264 (go_language_data): Delete la_is_string_type_p initializer.
2265 (go_language::is_string_type_p): New member function,
2266 implementation from go_is_string_type_p.
2267 * language.c (language_defn::is_string_type_p): Define new member
2268 function.
2269 (default_is_string_type_p): Make static, add comment copied from
2270 header file.
2271 (unknown_language_data): Delete la_is_string_type_p initializer.
2272 (unknown_language::is_string_type_p): New member function.
2273 (auto_language_data): Delete la_is_string_type_p initializer.
2274 (auto_language::is_string_type_p): New member function.
2275 * language.h (language_data): Delete la_is_string_type_p field.
2276 (language_defn::is_string_type_p): Declare new function.
2277 (default_is_string_type_p): Delete desclaration, move comment to
2278 definition.
2279 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
2280 moved to m2_language::is_string_type_p.
2281 (m2_language_data): Delete la_is_string_type_p initializer.
2282 (m2_language::is_string_type_p): New member function,
2283 implementation from m2_is_string_type_p.
2284 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
2285 initializer.
2286 * opencl-lang.c (opencl_language_data): Likewise.
2287 * p-lang.c (pascal_is_string_type_p): Delete function,
2288 implementation moved to pascal_language::is_string_type_p.
2289 (pascal_language_data): Delete la_is_string_type_p initializer.
2290 (pascal_language::is_string_type_p): New member function,
2291 implementation from pascal_is_string_type_p.
2292 * rust-lang.c (rust_is_string_type_p): Delete function,
2293 implementation moved to rust_language::is_string_type_p.
2294 (rust_language_data): Delete la_is_string_type_p initializer.
2295 (rust_language::is_string_type_p): New member function,
2296 implementation from rust_is_string_type_p.
2297 * valprint.c (val_print_scalar_or_string_type_p): Update call to
2298 is_string_type_p.
2299
2300 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2301
2302 * ada-lang.c (ada_language_data): Delete la_print_typedef
2303 initializer.
2304 (ada_language::print_typedef): New member function.
2305 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
2306 (cplus_language_data): Likewise.
2307 (asm_language_data): Likewise.
2308 (minimal_language_data): Likewise.
2309 * d-lang.c (d_language_data): Likewise.
2310 * f-lang.c (f_language_data): Likewise.
2311 (f_language::print_typedef): New member function.
2312 * go-lang.c (go_language_data): Delete la_print_typedef
2313 initializer.
2314 * language.c (language_defn::print_typedef): Define member
2315 function.
2316 (unknown_language_data): Delete la_print_typedef initializer.
2317 (unknown_language::print_typedef): New member function.
2318 (auto_language_data): Delete la_print_typedef initializer.
2319 (auto_language::print_typedef): New member function.
2320 * language.h (language_data): Delete la_print_typedef field.
2321 (language_defn::print_typedef): Declare new member function.
2322 (LA_PRINT_TYPEDEF): Update call to print_typedef.
2323 (default_print_typedef): Delete declaration.
2324 * m2-lang.c (m2_language_data): Delete la_print_typedef
2325 initializer.
2326 (m2_language::print_typedef): New member function.
2327 * objc-lang.c (objc_language_data): Delete la_print_typedef
2328 initializer.
2329 * opencl-lang.c (opencl_language_data): Likewise.
2330 * p-lang.c (pascal_language_data): Likewise.
2331 (pascal_language::print_typedef): New member function.
2332 * rust-lang.c (rust_print_typedef): Delete function,
2333 implementation moved to rust_language::print_typedef.
2334 (rust_language): Delete la_print_typedef initializer.
2335 (rust_language::print_typedef): New member function,
2336 implementation from rust_print_typedef.
2337 * typeprint.c (default_print_typedef): Delete.
2338
2339 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2340
2341 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2342 (ada_language::printstr): New member function.
2343 * c-lang.c (c_language_data): Delete la_printstr initializer.
2344 (cplus_language_data): Likewise.
2345 (asm_language_data): Likewise.
2346 (minimal_language_data): Likewise.
2347 * d-lang.c (d_language_data): Likewise.
2348 * f-lang.c (f_printstr): Rename to f_language::printstr.
2349 (f_language_data): Delete la_printstr initializer.
2350 (f_language::printstr): New member function, implementation from
2351 f_printstr.
2352 * go-lang.c (go_language_data): Delete la_printstr initializer.
2353 * language.c (language_defn::printstr): Define new member
2354 function.
2355 (unk_lang_printstr): Delete.
2356 (unknown_language_data): Delete la_printstr initializer.
2357 (unknown_language::printstr): New member function.
2358 (auto_language_data): Delete la_printstr initializer.
2359 (auto_language::printstr): New member function.
2360 * language.h (language_data): Delete la_printstr field.
2361 (language_defn::printstr): Declare new member function.
2362 (LA_PRINT_STRING): Update call to printstr.
2363 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2364 (m2_language_data): Delete la_printstr initializer.
2365 (m2_language::printstr): New member function, implementation from
2366 m2_printstr.
2367 * objc-lang.c (objc_language_data): Delete la_printstr
2368 initializer.
2369 * opencl-lang.c (opencl_language_data): Likewise.
2370 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2371 (pascal_language_data): Delete la_printstr initializer.
2372 (pascal_language::printstr): New member function, implementation
2373 from pascal_printstr.
2374 * p-lang.h (pascal_printstr): Delete declaration.
2375 * rust-lang.c (rust_printstr): Update header comment.
2376 (rust_language_data): Delete la_printstr initializer.
2377 (rust_language::printstr): New member function.
2378
2379 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2380
2381 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2382 (ada_language::printchar): New member function.
2383 * c-lang.c (c_language_data): Delete la_printchar initializer.
2384 (cplus_language_data): Likewise.
2385 (asm_language_data): Likewise.
2386 (minimal_language_data): Likewise.
2387 * d-lang.c (d_language_data): Likewise.
2388 * f-lang.c (f_printchar): Rename to f_language::printchar.
2389 (f_language_data): Delete la_printchar initializer.
2390 (f_language::printchar): New member function, implementation from
2391 f_printchar.
2392 * go-lang.c (go_language_data): Delete la_printchar initializer.
2393 * language.c (unk_lang_printchar): Delete.
2394 (language_defn::printchar): Define new member function.
2395 (unknown_language_data): Delete la_printchar initializer.
2396 (unknown_language::printchar): New member function.
2397 (auto_language_data): Delete la_printchar initializer.
2398 (auto_language::printchar): New member function.
2399 * language.h (language_data): Delete la_printchar field.
2400 (language_defn::printchar): Declare new member function.
2401 (LA_PRINT_CHAR): Update call to printchar.
2402 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2403 (m2_language::printchar): New member function.
2404 * objc-lang.c (objc_language_data): Delete la_printchar
2405 initializer.
2406 * opencl-lang.c (opencl_language_data): Likewise.
2407 * p-lang.c (pascal_language_data): Delete la_printchar
2408 initializer.
2409 (pascal_language::printchar): New member function.
2410 * rust-lang.c (rust_printchar): Rename to
2411 rust_language::printchar.
2412 (rust_language_data): Delete la_printchar initializer.
2413 (rust_language::printchar): New member function, implementation
2414 from rust_printchar.
2415
2416 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2417
2418 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2419 (ada_language_data): Delete la_emitchar initializer.
2420 (ada_language::emitchar): New member function, implementation from
2421 emit_char.
2422 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2423 (cplus_language_data): Likewise.
2424 (asm_language_data): Likewise.
2425 (minimal_language_data): Likewise.
2426 * d-lang.c (d_language_data): Likewise.
2427 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2428 (f_language_data): Delete la_emitchar initializer.
2429 (f_language::emitchar): New member function, implementation from
2430 f_emit_char.
2431 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2432 * language.c (unk_lang_emit_char): Delete.
2433 (language_defn::emitchar): New member function definition.
2434 (unknown_language_data): Delete la_emitchar initializer.
2435 (unknown_language::emitchar): New member function.
2436 (auto_language_data): Delete la_emitchar initializer.
2437 (auto_language::emitchar): New member function.
2438 * language.h (language_data): Delete la_emitchar field.
2439 (language_defn::emitchar): New member field declaration.
2440 (LA_EMIT_CHAR): Update call to emitchar.
2441 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2442 (m2_language_data): Delete la_emitchar initializer.
2443 (m2_language::emitchar): New member function, implementation from
2444 m2_emit_char.
2445 * objc-lang.c (objc_language_data): Delete la_emitchar
2446 initializer.
2447 * opencl-lang.c (opencl_language_data): Likewise.
2448 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2449 (pascal_language_data): Delete la_emitchar initializer.
2450 (pascal_language::emitchar): New member function, implementation
2451 from pascal_emit_char.
2452 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2453 (rust_language_data): Delete la_emitchar initializer.
2454 (rust_language::emitchar): New member function, implementation
2455 from rust_emitchar.
2456
2457 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2458
2459 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2460 (ada_language_data): Delete la_post_parser initializer.
2461 (ada_language::post_parser): New member function.
2462 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2463 (cplus_language_data): Likewise.
2464 (asm_language_data): Likewise.
2465 (minimal_language_data): Likewise.
2466 * d-lang.c (d_language_data): Likewise.
2467 * f-lang.c (f_language_data): Likewise.
2468 * go-lang.c (go_language_data): Likewise.
2469 * language.c (unknown_language_data): Likewise.
2470 (auto_language_data): Likewise.
2471 * language.h (language_data): Delete la_post_parser field.
2472 (language_defn::post_parser): New member function.
2473 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2474 * objc-lang.c (objc_language_data): Likewise.
2475 * opencl-lang.c (opencl_language_data): Likewise.
2476 * p-lang.c (pascal_language_data): Likewise.
2477 * parse.c (parse_exp_in_context): Update call to post_parser.
2478 (null_post_parser): Delete definition.
2479 * parser-defs.h (null_post_parser): Delete declaration.
2480 * rust-lang.c (rust_language_data): Delete la_post_parser
2481 initializer.
2482
2483 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2484
2485 * ada-lang.c (parse): Rename to ada_language::parser.
2486 (ada_language_data): Delete la_parser initializer.
2487 (ada_language::parser): New member function, implementation from
2488 parse.
2489 * c-lang.c (c_language_data): Delete la_parser initializer.
2490 (cplus_language_data): Likewise.
2491 (asm_language_data): Likewise.
2492 (minimal_language_data): Likewise.
2493 * d-lang.c (d_language_data): Likewise.
2494 (d_language::parser): New member function.
2495 * f-lang.c (f_language_data): Delete la_parser initializer.
2496 (f_language::parser): New member function.
2497 * go-lang.c (go_language_data): Delete la_parser initializer.
2498 (go_language::parser): New member function.
2499 * language.c (unk_lang_parser): Delete.
2500 (language_defn::parser): Define new member function.
2501 (unknown_language_data): Delete la_parser initializer.
2502 (unknown_language::parser): New member function.
2503 (auto_language_data): Delete la_parser initializer.
2504 (auto_language::parser): New member function.
2505 * language.h (language_data): Delete la_parser field.
2506 (language_defn::parser): Declare new member function.
2507 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2508 (m2_language::parser): New member function.
2509 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2510 * opencl-lang.c (opencl_language_data): Likewise.
2511 * p-lang.c (pascal_language_data): Likewise.
2512 (pascal_language::parser): New member function.
2513 * parse.c (parse_exp_in_context): Update call to parser.
2514 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2515 (rust_language::parser): New member function.
2516
2517 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2518
2519 * top.c (print_gdb_configuration): Print --with-python-libdir
2520 configuration value.
2521
2522 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2523
2524 * NEWS: Mention change to the alias command.
2525
2526 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2527
2528 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2529 (alias_command_completer)
2530 (make_alias_options_def_group): New functions.
2531 (alias_opts, alias_option_defs): New struct and array.
2532 (alias_usage_error): Update usage.
2533 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2534 Use option framework.
2535 (_initialize_cli_cmds): Update alias command help.
2536 Update aliases command help.
2537 (show_user):
2538 Add NULL for new default_args lookup_cmd argument.
2539 (valid_command_p): Rename to validate_aliased_command.
2540 Add NULL for new default_args lookup_cmd argument. Verify that the
2541 aliased_command has no default args.
2542 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2543 (lookup_cmd_1, lookup_cmd): New argument default_args.
2544 (add_alias_cmd):
2545 Add NULL for new default_args lookup_cmd argument.
2546 (print_help_for_command): Show default args under the layout
2547 alias some_alias = some_aliased_cmd some_alias_default_arg.
2548 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2549 xfree default_args in destructor.
2550 * cli/cli-script.c (process_next_line, do_define_command):
2551 Add NULL for new default_args lookup_cmd argument.
2552 * command.h: Declare new default_args argument in lookup_cmd
2553 and lookup_cmd_1.
2554 * completer.c (complete_line_internal_1):
2555 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2556 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2557 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2558 Likewise.
2559 * infcmd.c (_initialize_infcmd): Likewise.
2560 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2561 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2562 * python/py-param.c (add_setshow_generic): Likewise.
2563 * remote.c (_initialize_remote): Likewise.
2564 * top.c (execute_command): Prepend default_args if command has some.
2565 (set_verbose):
2566 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2567 * tracepoint.c (validate_actionline, encode_actions_1):
2568 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2569
2570 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2571
2572 * jit.c (jit_read_descriptor): Use bool as the return type.
2573 (jit_breakpoint_re_set_internal): Use bool as the return type.
2574 Invert the return value logic; return true if the jit breakpoint
2575 has been successfully initialized.
2576 (jit_inferior_init): Update the call to
2577 jit_breakpoint_re_set_internal.
2578
2579 2020-06-22 Pedro Alves <palves@redhat.com>
2580
2581 PR gdb/25939
2582 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2583 Use the current inferior instead. Don't return
2584 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2585 wait again.
2586 * sol-thread.c (sol_thread_target::wait): Don't reference
2587 inferior_ptid.
2588 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2589 (sol_update_thread_list_callback): Use the current inferior's pid
2590 instead of inferior_ptid.
2591
2592 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2593
2594 * procfs.c: Cleanup many comments.
2595
2596 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2597 (AFTER_WATCHFLAG): Replace by value.
2598
2599 (MAIN_PROC_NAME_FORMAT): Inline ...
2600 (create_procinfo): ... here.
2601
2602 (procfs_debug_inferior): Remove SYS_exec handling.
2603 (syscall_is_exec): Likewise.
2604 (procfs_set_exec_trap): Likewise.
2605
2606 (syscall_is_lwp_exit): Inline in callers.
2607 (syscall_is_exit): Likewise.
2608 (syscall_is_exec): Likewise.
2609 (syscall_is_lwp_create): Likewise.
2610
2611 (invalidate_cache): Remove #if 0 code.
2612
2613 (make_signal_thread_runnable): Remove.
2614 (procfs_target::resume): Remove #if 0 code.
2615
2616 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2617
2618 PR gdb/25939
2619 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2620 call ...
2621 (procfs_target::create_inferior): ... here.
2622
2623 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2624
2625 * exec.c (validate_exec_file): Ensure the build-id is up to
2626 date by calling reopen_exec_file (that checks file timestamp
2627 to decide to re-read the file).
2628
2629 2020-06-18 Pedro Alves <palves@redhat.com>
2630
2631 PR gdb/25412
2632 * gdbthread.h (delete_thread, delete_thread_silent)
2633 (find_thread_ptid): Update comments.
2634 * thread.c (current_thread_): New global.
2635 (is_current_thread): Move higher, and reimplement.
2636 (inferior_thread): Reimplement.
2637 (set_thread_exited): Use bool. Add assertions.
2638 (add_thread_silent): Simplify thread-reuse handling by always
2639 calling delete_thread.
2640 (delete_thread): Remove intro comment.
2641 (find_thread_ptid): Skip exited threads.
2642 (switch_to_thread_no_regs): Write to current_thread_.
2643 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2644 INFERIOR_PTID. Clear current_thread_.
2645
2646 2020-06-18 Pedro Alves <palves@redhat.com>
2647
2648 * aix-thread.c (pd_update): Use switch_to_thread.
2649
2650 2020-06-18 Pedro Alves <palves@redhat.com>
2651
2652 * ravenscar-thread.c (ravenscar_thread_target): Update.
2653 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2654 (ravenscar_thread_target::add_active_thread): ... this. Don't
2655 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2656 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2657
2658 2020-06-18 Pedro Alves <palves@redhat.com>
2659
2660 * nat/windows-nat.c (current_windows_thread): Remove.
2661 * nat/windows-nat.h (current_windows_thread): Remove.
2662 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2663 Adjust.
2664 (display_selectors): Adjust to fetch the current
2665 windows_thread_info based on inferior_ptid.
2666 (fake_create_process): No longer write to current_windows_thread.
2667 (windows_nat_target::get_windows_debug_event):
2668 Don't set inferior_ptid or current_windows_thread.
2669 (windows_nat_target::wait): Adjust to not rely on
2670 current_windows_thread.
2671 (do_initial_windows_stuff): Now a method of windows_nat_target.
2672 Switch to the last_ptid thread.
2673 (windows_nat_target::attach): Adjust.
2674 (windows_nat_target::detach): Use switch_to_no_thread instead of
2675 writing to inferior_ptid directly.
2676 (windows_nat_target::create_inferior): Adjust.
2677
2678 2020-06-18 Pedro Alves <palves@redhat.com>
2679
2680 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2681
2682 2020-06-18 Pedro Alves <palves@redhat.com>
2683
2684 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2685 after creating it, instead of writing to inferior_ptid. Don't
2686 write to inferior_ptid.
2687
2688 2020-06-18 Pedro Alves <palves@redhat.com>
2689
2690 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2691
2692 2020-06-18 Pedro Alves <palves@redhat.com>
2693
2694 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2695 it, instead of writing to inferior_ptid.
2696
2697 2020-06-18 Pedro Alves <palves@redhat.com>
2698
2699 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2700 to inferior_ptid.
2701
2702 2020-06-18 Pedro Alves <palves@redhat.com>
2703
2704 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2705 instead of writing to inferior_ptid directly.
2706
2707 2020-06-18 Pedro Alves <palves@redhat.com>
2708
2709 * corelow.c (core_target::close): Use switch_to_no_thread instead
2710 of writing to inferior_ptid directly.
2711 (add_to_thread_list, core_target_open): Use switch_to_thread
2712 instead of writing to inferior_ptid directly.
2713
2714 2020-06-18 Pedro Alves <palves@redhat.com>
2715
2716 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2717 inferior_ptid.
2718 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2719 inferior_ptid.
2720 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2721 inferior_ptid directly.
2722 (darwin_nat_target::init_thread_list): Switch to thread, instead
2723 of writing to inferior_ptid.
2724 (darwin_nat_target::attach): Don't write to inferior_ptid.
2725 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2726
2727 2020-06-18 Pedro Alves <palves@redhat.com>
2728
2729 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2730 thread.
2731 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2732 Instead use switch_to_thread.
2733 (gnu_nat_target::detach): Use switch_to_no_thread
2734 instead of writing to inferior_ptid directly. Used passed-in
2735 inferior instead of looking up the inferior by pid.
2736
2737 2020-06-18 Pedro Alves <palves@redhat.com>
2738
2739 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2740 inferior_ptid.
2741
2742 2020-06-18 Pedro Alves <palves@redhat.com>
2743
2744 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2745 inferior_ptid.
2746 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2747 thread.
2748 (nto_procfs_target::detach): Avoid referencing
2749 inferior_ptid. Use switch_to_no_thread instead of writing to
2750 inferior_ptid directly.
2751 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2752 instead of writing to inferior_ptid directly.
2753 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2754 to thread.
2755
2756 2020-06-18 Pedro Alves <palves@redhat.com>
2757
2758 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2759 after creating it, instead of writing to inferior_ptid.
2760 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2761 to inferior_ptid directly.
2762 (gdbsim_target::wait): Don't write to inferior_ptid.
2763
2764 2020-06-18 Pedro Alves <palves@redhat.com>
2765
2766 * remote.c (remote_target::remote_notice_new_inferior): Use
2767 switch_to_thread instead of writing to inferior_ptid directly.
2768 (remote_target::add_current_inferior_and_thread): Use
2769 switch_to_no_thread instead of writing to inferior_ptid directly.
2770 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2771 and switch_to_thread instead of using set_current_inferior or
2772 writing to inferior_ptid directly.
2773
2774 2020-06-18 Pedro Alves <palves@redhat.com>
2775
2776 * tracectf.c (ctf_target_open): Switch to added thread instead of
2777 writing to inferior_ptid directly.
2778 (ctf_target::close): Use switch_to_no_thread instead of writing to
2779 inferior_ptid directly.
2780
2781 2020-06-18 Pedro Alves <palves@redhat.com>
2782
2783 * tracefile-tfile.c (tfile_target_open): Don't write to
2784 inferior_ptid directly, instead switch to added thread.
2785 (tfile_target::close): Use switch_to_no_thread instead of writing
2786 to inferior_ptid directly.
2787
2788 2020-06-18 Pedro Alves <palves@redhat.com>
2789
2790 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2791 (procfs_target::detach): Use switch_to_no_thread
2792 instead of writing to inferior_ptid directly.
2793 (do_attach): Change return type to void. Switch to the added
2794 thread.
2795 (procfs_target::create_inferior): Switch to the added thread.
2796 (procfs_do_thread_registers): Don't write to inferior_ptid.
2797
2798 2020-06-18 Pedro Alves <palves@redhat.com>
2799
2800 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2801 of writing to inferior_ptid.
2802 (scoped_restore_exited_inferior): Delete.
2803 (handle_vfork_child_exec_or_exit): Simplify using
2804 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2805 instead of writing to inferior_ptid.
2806 (THREAD_STOPPED_BY): Delete.
2807 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2808 (thread_stopped_by_hw_breakpoint): Delete.
2809 (save_waitstatus): Use
2810 scoped_restore_current_thread+switch_to_thread, and call
2811 target_stopped_by_watchpoint instead of
2812 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2813 instead of thread_stopped_by_sw_breakpoint, and
2814 target_stopped_by_hw_breakpoint instead of
2815 thread_stopped_by_hw_breakpoint.
2816 (handle_inferior_event)
2817 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2818 inferior_ptid directly, nor
2819 set_current_inferior/set_current_program_space. Use
2820 switch_to_thread / switch_to_inferior_no_thread instead.
2821
2822 2020-06-18 Pedro Alves <palves@redhat.com>
2823
2824 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2825 instead of writing to inferior_ptid.
2826
2827 2020-06-18 Pedro Alves <palves@redhat.com>
2828
2829 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2830 added thread.
2831 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2832 to the added thread.
2833 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2834 instead of writing to inferior_ptid.
2835
2836 2020-06-18 Pedro Alves <palves@redhat.com>
2837
2838 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2839 (register_to_value_test): Mock a program_space too. Heap-allocate
2840 the address space. Don't write to inferior_ptid. Use
2841 switch_to_thread instead.
2842
2843 2020-06-18 Pedro Alves <palves@redhat.com>
2844
2845 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2846 Delete.
2847 (find_signalled_thread()): New, factored out from
2848 linux_make_corefile_notes and adjusted to handle exited threads.
2849 (linux_make_corefile_notes): Adjust to use the new
2850 find_signalled_thread.
2851
2852 2020-06-18 Pedro Alves <palves@redhat.com>
2853
2854 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2855 of saving/restoring inferior_ptid.
2856
2857 2020-06-17 Tom Tromey <tom@tromey.com>
2858
2859 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2860 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2861 declare.
2862 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2863
2864 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
2865
2866 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2867 of partial symtabs.
2868
2869 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2870
2871 * regformats/reg-arm.dat: Remove.
2872 * regformats/reg-bfin.dat: Remove.
2873 * regformats/reg-cris.dat: Remove.
2874 * regformats/reg-crisv32.dat: Remove.
2875 * regformats/reg-m32r.dat: Remove.
2876 * regformats/reg-tilegx.dat: Remove.
2877 * regformats/reg-tilegx32.dat: Remove.
2878
2879 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2880
2881 * features/Makefile (WHICH): Remove arm files.
2882 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2883 * regformats/arm/arm-with-neon.dat: Remove.
2884 * regformats/arm/arm-with-vfpv2.dat: Remove.
2885 * regformats/arm/arm-with-vfpv3.dat: Remove.
2886
2887 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2888
2889 * features/Makefile (XMLTOC): Remove rx.xml.
2890
2891 2020-06-17 Pedro Alves <palves@redhat.com>
2892
2893 * gdbthread.h (thread_control_state) <trap_expected> Update
2894 comments.
2895
2896 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2897
2898 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2899 ada_language::lookup_symbol_nonlocal.
2900 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2901 (ada_language::lookup_symbol_nonlocal): New member function,
2902 implementation from ada_lookup_symbol_nonlocal.
2903 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2904 initializer.
2905 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2906 initializer.
2907 (cplus_language::lookup_symbol_nonlocal): New member function.
2908 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2909 (minimal_language_data) Likewise.
2910 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2911 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2912 initializer.
2913 (d_language::lookup_symbol_nonlocal): New member function.
2914 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2915 initializer.
2916 (f_language::lookup_symbol_nonlocal): New member function.
2917 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2918 initializer.
2919 * language.c (unknown_language_data): Likewise.
2920 (auto_language_data): Likewise.
2921 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2922 field.
2923 (language_defn::lookup_symbol_nonlocal): New member function.
2924 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2925 initializer.
2926 * objc-lang.c (objc_language_data): Likewise.
2927 * opencl-lang.c (opencl_language_data): Likewise.
2928 * p-lang.c (pascal_language_data): Likewise.
2929 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2930 rust_language::lookup_symbol_nonlocal.
2931 (rust_language_data): Delete la_lookup_symbol_nonlocal
2932 initializer.
2933 (rust_language::lookup_symbol_nonlocal): New member function,
2934 implementation from rust_lookup_symbol_nonlocal.
2935 * symtab.c (lookup_symbol_aux): Update call to
2936 lookup_symbol_nonlocal.
2937 (basic_lookup_symbol_nonlocal): Rename to...
2938 (language_defn::lookup_symbol_nonlocal): ...this, and update
2939 header comment. Remove language_defn parameter, and replace with
2940 uses of `this'.
2941 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2942
2943 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2944
2945 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2946 initializer.
2947 (ada_language::value_print_inner): New member function.
2948 * c-lang.c (c_language_data): Delete la_value_print_inner
2949 initializer.
2950 (cplus_language_data): Likewise.
2951 (asm_language_data): Likewise.
2952 (minimal_language_data): Likewise.
2953 * d-lang.c (d_language_data): Likewise.
2954 (d_language::value_print_inner): New member function.
2955 * f-lang.c (f_language_data): Delete la_value_print_inner
2956 initializer.
2957 (f_language::value_print_inner): New member function.
2958 * f-lang.h (f_value_print_innner): Rename to...
2959 (f_value_print_inner): ...this (note spelling of 'inner').
2960 * f-valprint.c (f_value_print_innner): Rename to...
2961 (f_value_print_inner): ...this (note spelling of 'inner').
2962 * go-lang.c (go_language_data): Delete la_value_print_inner
2963 initializer.
2964 (go_language::value_print_inner): New member function.
2965 * language.c (language_defn::value_print_inner): Define new member
2966 function.
2967 (unk_lang_value_print_inner): Delete.
2968 (unknown_language_data): Delete la_value_print_inner initializer.
2969 (unknown_language::value_print_inner): New member function.
2970 (auto_language_data): Delete la_value_print_inner initializer.
2971 (auto_language::value_print_inner): New member function.
2972 * language.h (language_data): Delete la_value_print_inner field.
2973 (language_defn::value_print_inner): Delcare new member function.
2974 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2975 initializer.
2976 (m2_language::value_print_inner): New member function.
2977 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2978 initializer.
2979 * opencl-lang.c (opencl_language_data): Likewise.
2980 * p-lang.c (pascal_language_data): Likewise.
2981 (pascal_language::value_print_inner): New member function.
2982 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2983 initializer.
2984 (rust_language::value_print_inner): New member function.
2985 * valprint.c (do_val_print): Update call to value_print_inner.
2986
2987 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2988
2989 * ada-lang.c (ada_language_data): Delete la_value_print
2990 initializer.
2991 (ada_language::value_print): New member function.
2992 * c-lang.c (c_language_data): Delete la_value_print initializer.
2993 (cplus_language_data): Likewise.
2994 (asm_language_data): Likewise.
2995 (minimal_language_data): Likewise.
2996 * d-lang.c (d_language_data): Likewise.
2997 * f-lang.c (f_language_data): Likewise.
2998 * go-lang.c (go_language_data): Likewise.
2999 * language.c (unk_lang_value_print): Delete.
3000 (language_defn::value_print): Define new member function.
3001 (unknown_language_data): Delete la_value_print initializer.
3002 (unknown_language::value_print): New member function.
3003 (auto_language_data): Delete la_value_print initializer.
3004 (auto_language::value_print): New member function.
3005 * language.h (language_data): Delete la_value_print field.
3006 (language_defn::value_print): Declare new member function.
3007 (LA_VALUE_PRINT): Update call to value_print.
3008 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
3009 * objc-lang.c (objc_language_data): Likewise.
3010 * opencl-lang.c (opencl_language_data): Likewise.
3011 * p-lang.c (pascal_language_data): Likewise.
3012 (pascal_language::value_print): New member function.
3013 * rust-lang.c (rust_language_data): Delete la_value_print
3014 initializer.
3015
3016 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3017
3018 * ada-lang.c (ada_watch_location_expression): Rename to
3019 ada_language::watch_location_expression.
3020 (ada_language_data): Delete la_watch_location_expression
3021 initializer.
3022 (ada_language::watch_location_expression): New member function,
3023 implementation from ada_watch_location_expression.
3024 * breakpoint.c (watch_command_1): Update call to
3025 watch_location_expression.
3026 * c-lang.c (c_watch_location_expression): Rename to
3027 language_defn::watch_location_expression.
3028 (c_language_data): Delete la_watch_location_expression
3029 initializer.
3030 (cplus_language_data): Likewise.
3031 (asm_language_data): Likewise.
3032 (minimal_language_data): Likewise.
3033 * c-lang.h (c_watch_location_expression): Delete declaration.
3034 * d-lang.c (d_language_data): Delete la_watch_location_expression
3035 initializer.
3036 * f-lang.c (f_language_data): Likewise.
3037 * go-lang.c (go_language_data): Likewise.
3038 * language.c (language_defn::watch_location_expression): Member
3039 function implementation from c_watch_location_expression.
3040 (unknown_language_data): Delete la_watch_location_expression
3041 initializer.
3042 (auto_language_data): Likewise.
3043 * language.h (language_data): Delete la_watch_location_expression
3044 field.
3045 (language_defn::watch_location_expression): Declare new member
3046 function.
3047 * m2-lang.c (m2_language_data): Delete
3048 la_watch_location_expression initializer.
3049 * objc-lang.c (objc_language_data): Likewise.
3050 * opencl-lang.c (opencl_language_data): Likewise.
3051 * p-lang.c (pascal_language_data): Likewise.
3052 * rust-lang.c (rust_watch_location_expression): Rename to
3053 rust_language::watch_location_expression.
3054 (rust_language_data): Delete la_watch_location_expression
3055 initializer.
3056 (rust_language::watch_location_expression): New member function,
3057 implementation from rust_watch_location_expression.
3058
3059 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3060
3061 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
3062 ada_language::collect_symbol_completion_matches.
3063 (ada_language_data): Delete la_collect_symbol_completion_matches
3064 initializer.
3065 (ada_language::collect_symbol_completion_matches): New member
3066 function, implementation from
3067 ada_collect_symbol_completion_matches.
3068 * c-lang.c (c_language_data): Delete
3069 la_collect_symbol_completion_matches initializer.
3070 (cplus_language_data): Likewise.
3071 (asm_language_data): Likewise.
3072 (minimal_language_data): Likewise.
3073 * d-lang.c (d_language_data): Likewise.
3074 * f-lang.c (f_collect_symbol_completion_matches): Rename to
3075 f_language::collect_symbol_completion_matches.
3076 (f_language_data): Delete la_collect_symbol_completion_matches
3077 initializer.
3078 (f_language::collect_symbol_completion_matches) New member
3079 function, implementation from f_collect_symbol_completion_matches.
3080 * go-lang.c (go_language_data): Delete
3081 la_collect_symbol_completion_matches initializer.
3082 * language.c (unknown_language_data): Likewise.
3083 (auto_language_data): Likewise.
3084 * language.h (language_data): Delete
3085 la_collect_symbol_completion_matches field.
3086 (language_defn::collect_symbol_completion_matches): New member
3087 function.
3088 * m2-lang.c (m2_language_data): Delete
3089 la_collect_symbol_completion_matches initializer.
3090 * objc-lang.c (objc_language_data): Likewise.
3091 * opencl-lang.c (opencl_language_data): Likewise.
3092 * p-lang.c (pascal_language_data): Likewise.
3093 * rust-lang.c (rust_language_data): Likewise.
3094 * symtab.c (default_collect_symbol_completion_matches): Delete.
3095 (collect_symbol_completion_matches): Update call to
3096 collect_symbol_completion_matches.
3097 (collect_symbol_completion_matches_type): Likewise.
3098 * symtab.h (default_collect_symbol_completion_matches): Delete
3099 declaration.
3100
3101 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3102
3103 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
3104 (ada_language_data): Delete la_word_break_characters initializer.
3105 (ada_language::word_break_characters): New member function.
3106 * c-lang.c (c_language_data): Delete la_word_break_characters
3107 initializer.
3108 (cplus_language_data): Likewise.
3109 (asm_language_data): Likewise.
3110 (minimal_language_data): Likewise.
3111 * completer.c: Update global comment.
3112 (advance_to_expression_complete_word_point): Update call to
3113 word_break_characters.
3114 (complete_files_symbols): Likewise.
3115 (complete_line_internal_1): Likewise.
3116 (default_completer_handle_brkchars): Likewise.
3117 (skip_quoted_chars): Likewise.
3118 * d-lang.c (d_language_data): Delete la_word_break_characters
3119 initializer.
3120 * f-lang.c (f_word_break_characters): Delete.
3121 (f_language_data): Delete la_word_break_characters initializer.
3122 (f_language::word_break_characters): New member function.
3123 * go-lang.c (go_language_data): Delete la_word_break_characters
3124 initializer.
3125 * language.c (unknown_language_data): Likewise.
3126 (auto_language_data): Likewise.
3127 * language.h (default_word_break_characters): Move declaration to
3128 earlier in the file.
3129 (language_data): Delete la_word_break_characters field.
3130 (language_defn::word_break_characters): New member function.
3131 * m2-lang.c (m2_language_data): Delete la_word_break_characters
3132 initializer.
3133 * objc-lang.c (objc_language_data): Likewise.
3134 * opencl-lang.c (opencl_language_data): Likewise.
3135 * p-lang.c (pascal_language_data): Likewise.
3136 * rust-lang.c (rust_language_data): Likewise.
3137
3138 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3139
3140 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
3141 (ada_language_data): Delete la_get_symbol_name_matcher
3142 initializer.
3143 (language_defn::get_symbol_name_matcher_inner): New member
3144 function.
3145 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
3146 initializer.
3147 (cplus_language_data): Likewise.
3148 (cplus_language::get_symbol_name_matcher_inner): New member
3149 function.
3150 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
3151 (minimal_language_data): Likewise.
3152 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
3153 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
3154 initializer.
3155 * dictionary.c (iter_match_first_hashed): Update call to
3156 get_symbol_name_matcher.
3157 (iter_match_next_hashed): Likewise.
3158 (iter_match_next_linear): Likewise.
3159 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
3160 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
3161 initializer.
3162 (f_language::get_symbol_name_matcher_inner): New member function.
3163 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
3164 initializer.
3165 * language.c (default_symbol_name_matcher): Update header comment,
3166 make static.
3167 (language_defn::get_symbol_name_matcher): New definition.
3168 (language_defn::get_symbol_name_matcher_inner): Likewise.
3169 (get_symbol_name_matcher): Delete.
3170 (unknown_language_data): Delete la_get_symbol_name_matcher
3171 initializer.
3172 (auto_language_data): Likewise.
3173 * language.h (language_data): Delete la_get_symbol_name_matcher
3174 field.
3175 (language_defn::get_symbol_name_matcher): New member function.
3176 (language_defn::get_symbol_name_matcher_inner): Likewise.
3177 (default_symbol_name_matcher): Delete declaration.
3178 * linespec.c (find_methods): Update call to
3179 get_symbol_name_matcher.
3180 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
3181 initializer.
3182 * minsyms.c (lookup_minimal_symbol): Update call to
3183 get_symbol_name_matcher.
3184 (iterate_over_minimal_symbols): Likewise.
3185 * objc-lang.c (objc_language_data): Delete
3186 la_get_symbol_name_matcher initializer.
3187 * opencl-lang.c (opencl_language_data): Likewise.
3188 * p-lang.c (pascal_language_data): Likewise.
3189 * psymtab.c (psymbol_name_matches): Update call to
3190 get_symbol_name_matcher.
3191 * rust-lang.c (rust_language_data): Delete
3192 la_get_symbol_name_matcher initializer.
3193 * symtab.c (symbol_matches_search_name): Update call to
3194 get_symbol_name_matcher.
3195 (compare_symbol_name): Likewise.
3196
3197 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3198
3199 * ada-lang.c (ada_language_data): Delete la_compute_program
3200 initializer.
3201 * c-lang.c (c_language_data): Likewise.
3202 (c_language::compute_program): New member function.
3203 (cplus_language_data): Delete la_compute_program initializer.
3204 (cplus_language::compute_program): New member function.
3205 (asm_language_data): Delete la_compute_program initializer.
3206 (minimal_language_data): Likewise.
3207 * c-lang.h (c_compute_program): Update comment.
3208 (cplus_compute_program): Likewise.
3209 * compile/compile-c-support.c (c_compute_program): Likewise.
3210 (cplus_compute_program): Likewise.
3211 * compile/compile.c (compile_to_object): Update call to
3212 la_compute_program.
3213 * d-lang.c (d_language_data): Delete la_compute_program
3214 initializer.
3215 * f-lang.c (f_language_data): Likewise.
3216 * go-lang.c (go_language_data): Likewise.
3217 * language.c (unknown_language_data): Likewise.
3218 (auto_language_data): Likewise.
3219 * language.h (language_data): Delete la_compute_program field.
3220 (language_defn::compute_program): New member function.
3221 * m2-lang.c (m2_language_data): Delete la_compute_program
3222 initializer.
3223 * objc-lang.c (objc_language_data): Likewise.
3224 * opencl-lang.c (opencl_language_data): Likewise.
3225 * p-lang.c (pascal_language_data): Likewise.
3226 * rust-lang.c (rust_language_data): Likewise.
3227
3228 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3229
3230 * ada-lang.c (ada_language_data) Delete
3231 la_class_name_from_physname initializer.
3232 * c-lang.c (c_language_data): Likewise.
3233 (cplus_language_data): Likewise.
3234 (cplus_language::class_name_from_physname): New member function.
3235 (asm_language_data): Delete la_class_name_from_physname
3236 initializer.
3237 (minimal_language_data): Likewise.
3238 * d-lang.c (d_language_data): Likewise.
3239 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
3240 method on language_defn class.
3241 (guess_full_die_structure_name): Likewise.
3242 * f-lang.c (f_language_data): Delete la_class_name_from_physname
3243 initializer.
3244 * go-lang.c (go_language_data): Likewise.
3245 * language.c (language_class_name_from_physname): Delete.
3246 (unk_lang_class_name): Delete.
3247 (unknown_language_data): Delete la_class_name_from_physname
3248 initializer.
3249 (auto_language_data): Likewise.
3250 * language.h (language_data): Delete la_class_name_from_physname
3251 field.
3252 (language_defn::class_name_from_physname): New function.
3253 (language_class_name_from_physname): Delete declaration.
3254 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
3255 initializer.
3256 * objc-lang.c (objc_language_data): Likewise.
3257 * opencl-lang.c (opencl_language_data): Likewise.
3258 * p-lang.c (pascal_language_data): Likewise.
3259 * rust-lang.c (rust_language_data): Likewise.
3260
3261 2020-06-16 Tom Tromey <tom@tromey.com>
3262
3263 * tui/tui-data.h (STATUS_NAME): New macro.
3264 * tui/tui-layout.c (tui_remove_some_windows)
3265 (initialize_known_windows, tui_register_window)
3266 (tui_layout_split::remove_windows, initialize_layouts)
3267 (tui_new_layout_command): Don't use hard-coded window names.
3268
3269 2020-06-16 Tom Tromey <tom@tromey.com>
3270
3271 PR tui/25348:
3272 * tui/tui.c (tui_ensure_readline_initialized): Rename from
3273 tui_initialize_readline. Only run once. Call rl_initialize.
3274 * tui/tui.h (tui_ensure_readline_initialized): Rename from
3275 tui_initialize_readline.
3276 * tui/tui-io.c (tui_setup_io): Call
3277 tui_ensure_readline_initialized.
3278 * tui/tui-interp.c (tui_interp::init): Update.
3279
3280 2020-06-16 Tom Tromey <tom@tromey.com>
3281
3282 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
3283 Also preserve the status window.
3284
3285 2020-06-16 Tom Tromey <tom@tromey.com>
3286
3287 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
3288 where m_window==nullptr.
3289
3290 2020-06-15 Tom Tromey <tromey@adacore.com>
3291
3292 * windows-nat.c (windows_nat::handle_output_debug_string):
3293 Update.
3294 (windows_nat::handle_ms_vc_exception): Update.
3295 * target.h (target_read_string): Change API.
3296 * target.c (target_read_string): Change API.
3297 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
3298 Update.
3299 * solib-frv.c (frv_current_sos): Update.
3300 * solib-dsbt.c (dsbt_current_sos): Update.
3301 * solib-darwin.c (darwin_current_sos): Update.
3302 * linux-thread-db.c (inferior_has_bug): Update.
3303 * expprint.c (print_subexp_standard): Update.
3304 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
3305 (ada_exception_message_1): Update.
3306
3307 2020-06-15 Tom Tromey <tromey@adacore.com>
3308
3309 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
3310
3311 2020-06-15 Tom Tromey <tromey@adacore.com>
3312
3313 * valprint.c (read_string): Update comment.
3314 * target.c (MIN): Remove.
3315 (target_read_string): Rewrite.
3316
3317 2020-06-15 Tom Tromey <tromey@adacore.com>
3318
3319 * corefile.c (read_memory_string): Remove.
3320 * ada-valprint.c (ada_value_print_ptr): Update.
3321 * ada-lang.h (ada_tag_name): Change return type.
3322 * ada-lang.c (type_from_tag): Update.
3323 (ada_tag_name_from_tsd): Change return type. Use
3324 target_read_string.
3325 (ada_tag_name): Likewise.
3326 * gdbcore.h (read_memory_string): Don't declare.
3327
3328 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
3329
3330 * symtab.c (rbreak_command): Ignore Windows drive colon.
3331
3332 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
3333
3334 * NEWS: Mention removed GDBserver host support.
3335
3336 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
3337
3338 * features/riscv/rebuild-csr-xml.sh: Updated.
3339
3340 2020-06-11 Tom Tromey <tom@tromey.com>
3341
3342 PR gdb/18318:
3343 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3344
3345 2020-06-09 Jonny Grant <jg@jguk.org>
3346 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3347
3348 * main.c (captured_main_1): Don't print new line after help.
3349 (print_gdb_help): add mailing list and IRC channel information
3350 to --help. Add new lines between items in the footer. Remove
3351 quotes around bug url.
3352
3353 2020-06-11 Keith Seitz <keiths@redhat.com>
3354
3355 PR gdb/21356
3356 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3357 Resolve typedefs for type length calculations.
3358
3359 2020-06-10 Tom de Vries <tdevries@suse.de>
3360
3361 PR ada/24713
3362 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3363 (write_psymbols): Enable .gdb_index for ada.
3364 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3365 ada.
3366
3367 2020-06-10 Tom de Vries <tdevries@suse.de>
3368
3369 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3370 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3371 namei" instead of "const char *name" argument.
3372 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3373 dw2_symtab_iter_init.
3374
3375 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3376
3377 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3378 to use type::field and field::type instead.
3379
3380 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3381
3382 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3383 to use field::type instead.
3384
3385 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3386
3387 * gdbtypes.h (struct field) <type, set_type>: New methods.
3388 Rename `type` field to...
3389 <m_type>: ... this. Change references throughout to use type or
3390 set_type methods.
3391 (FIELD_TYPE): Use field::type. Change call sites that modify
3392 the field's type to use field::set_type instead.
3393
3394 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3395
3396 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3397 to use type::index_type instead.
3398
3399 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3400
3401 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3402 methods.
3403 (TYPE_INDEX_TYPE): Use type::index_type.
3404 * gdbtypes.c (create_array_type_with_stride): Likewise.
3405
3406 2020-06-07 Tom Tromey <tom@tromey.com>
3407
3408 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3409 parameter.
3410 (generic_value_print): Update.
3411
3412 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3413
3414 Revert commit 982a38f60b0.
3415 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3416
3417 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3418
3419 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3420 avoid use after free.
3421
3422 2020-06-05 Tom de Vries <tdevries@suse.de>
3423
3424 * NEWS: Fix typos.
3425
3426 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
3427
3428 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3429 the per_bfd object.
3430 (dwarf2_read_debug_names): Likewise.
3431 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3432 object when re-using a per_bfd object with an index.
3433
3434 2020-06-03 Tom de Vries <tdevries@suse.de>
3435
3436 PR symtab/26046
3437 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3438 children for C++.
3439 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3440 DW_TAG_subprogram.
3441
3442 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3443
3444 * ada-lang.c (ada_language_data): Delete skip_trampoline
3445 initializer.
3446 * c-lang.c (c_language_data): Likewise.
3447 (cplus_language_data): Likewise.
3448 (cplus_language::skip_trampoline): New member function.
3449 (asm_language_data): Delete skip_trampoline initializer.
3450 (minimal_language_data): Likewise.
3451 * d-lang.c (d_language_data): Likewise.
3452 * f-lang.c (f_language_data): Likewise.
3453 * go-lang.c (go_language_data): Likewise.
3454 * language.c (unk_lang_trampoline): Delete function.
3455 (skip_language_trampoline): Update.
3456 (unknown_language_data): Delete skip_trampoline initializer.
3457 (auto_language_data): Likewise.
3458 * language.h (language_data): Delete skip_trampoline field.
3459 (language_defn::skip_trampoline): New function.
3460 * m2-lang.c (m2_language_data): Delete skip_trampoline
3461 initializer.
3462 * objc-lang.c (objc_skip_trampoline): Delete function, move
3463 implementation to objc_language::skip_trampoline.
3464 (objc_language_data): Delete skip_trampoline initializer.
3465 (objc_language::skip_trampoline): New member function with
3466 implementation from objc_skip_trampoline.
3467 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3468 initializer.
3469 * p-lang.c (pascal_language_data): Likewise.
3470 * rust-lang.c (rust_language_data): Likewise.
3471
3472 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3473
3474 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3475 (ada_language::demangle): New member function.
3476 * c-lang.c (c_language_data): Delete la_demangle initializer.
3477 (cplus_language_data): Delete la_demangle initializer.
3478 (cplus_language::demangle): New member function.
3479 (asm_language_data): Delete la_demangle initializer.
3480 (minimal_language_data): Delete la_demangle initializer.
3481 * d-lang.c (d_language_data): Delete la_demangle initializer.
3482 (d_language::demangle): New member function.
3483 * f-lang.c (f_language_data): Delete la_demangle initializer.
3484 (f_language::demangle): New member function.
3485 * go-lang.c (go_language_data): Delete la_demangle initializer.
3486 (go_language::demangle): New member function.
3487 * language.c (language_demangle): Update.
3488 (unk_lang_demangle): Delete.
3489 (unknown_language_data): Delete la_demangle initializer.
3490 (unknown_language::demangle): New member function.
3491 (auto_language_data): Delete la_demangle initializer.
3492 (auto_language::demangle): New member function.
3493 * language.h (language_data): Delete la_demangle field.
3494 (language_defn::demangle): New function.
3495 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3496 * objc-lang.c (objc_language_data): Delete la_demangle
3497 initializer.
3498 (objc_language::demangle): New member function.
3499 * opencl-lang.c (opencl_language_data): Delete la_demangle
3500 initializer.
3501 * p-lang.c (pascal_language_data): Likewise.
3502 * rust-lang.c (rust_language_data): Likewise.
3503 (rust_language::demangle): New member function.
3504
3505 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3506
3507 * ada-lang.c (ada_language_data): Delete la_print_type
3508 initializer.
3509 (ada_language::print_type): New member function.
3510 * c-lang.c (c_language_data): Delete la_print_type initializer.
3511 (c_language::print_type): New member function.
3512 (cplus_language_data): Delete la_print_type initializer.
3513 (cplus_language::print_type): New member function.
3514 (asm_language_data): Delete la_print_type initializer.
3515 (asm_language::print_type): New member function.
3516 (minimal_language_data): Delete la_print_type initializer.
3517 (minimal_language::print_type): New member function.
3518 * d-lang.c (d_language_data): Delete la_print_type initializer.
3519 (d_language::print_type): New member function.
3520 * f-lang.c (f_language_data): Delete la_print_type initializer.
3521 (f_language::print_type): New member function.
3522 * go-lang.c (go_language_data): Delete la_print_type initializer.
3523 (go_language::print_type): New member function.
3524 * language.c (unk_lang_print_type): Delete.
3525 (unknown_language_data): Delete la_print_type initializer.
3526 (unknown_language::print_type): New member function.
3527 (auto_language_data): Delete la_print_type initializer.
3528 (auto_language::print_type): New member function.
3529 * language.h (language_data): Delete la_print_type field.
3530 (language_defn::print_type): New function.
3531 (LA_PRINT_TYPE): Update.
3532 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3533 (m2_language::print_type): New member function.
3534 * objc-lang.c (objc_language_data): Delete la_print_type
3535 initializer.
3536 (objc_language::print_type): New member function.
3537 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3538 to opencl_language::print_type.
3539 (opencl_language_data): Delete la_print_type initializer.
3540 (opencl_language::print_type): New member function, implementation
3541 from opencl_print_type.
3542 * p-lang.c (pascal_language_data): Delete la_print_type
3543 initializer.
3544 (pascal_language::print_type): New member function.
3545 * rust-lang.c (rust_print_type): Delete, implementation moved to
3546 rust_language::print_type.
3547 (rust_language_data): Delete la_print_type initializer.
3548 (rust_language::print_type): New member function, implementation
3549 from rust_print_type.
3550
3551 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3552
3553 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3554 implementation moves to...
3555 (ada_language::sniff_from_mangled_name): ...here. Update return
3556 type.
3557 (ada_language_data): Delete la_sniff_from_mangled_name
3558 initializer.
3559 * c-lang.c (c_language_data): Likewise.
3560 (cplus_language_data): Likewise.
3561 (cplus_language::sniff_from_mangled_name): New member function,
3562 implementation taken from gdb_sniff_from_mangled_name.
3563 (asm_language_data): Delete la_sniff_from_mangled_name
3564 initializer.
3565 (minimal_language_data): Likewise.
3566 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3567 implementation moves to cplus_language::sniff_from_mangled_name.
3568 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3569 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3570 moves to...
3571 (d_language::sniff_from_mangled_name): ...here.
3572 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3573 * f-lang.c (f_language_data): Likewise.
3574 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3575 moves to...
3576 (go_language::sniff_from_mangled_name): ...here.
3577 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3578 * language.c (language_sniff_from_mangled_name): Delete.
3579 (unknown_language_data): Delete la_sniff_from_mangled_name
3580 initializer.
3581 (auto_language_data): Likewise.
3582 * language.h (language_data): Delete la_sniff_from_mangled_name
3583 field.
3584 (language_defn::sniff_from_mangled_name): New function.
3585 (language_sniff_from_mangled_name): Delete declaration.
3586 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3587 field.
3588 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3589 implementation moves to...
3590 (objc_language::sniff_from_mangled_name): ...here.
3591 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3592 * opencl-lang.c (opencl_language_data): Likewise.
3593 * p-lang.c (pascal_language_data): Likewise.
3594 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3595 implementation moves to...
3596 (rust_language::sniff_from_mangled_name): ...here.
3597 (rust_language_data): Delete la_sniff_from_mangled_name
3598 initializer.
3599 * symtab.c (symbol_find_demangled_name): Call
3600 sniff_from_mangled_name member function.
3601
3602 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3603
3604 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3605 initializer.
3606 * c-lang.c (c_language_data): Likewise.
3607 (cplus_language_data): Likewise.
3608 (cplus_language::search_name_hash): New member function.
3609 (asm_language_data): Delete la_search_name_hash initializer.
3610 (minimal_language_data): Likewise.
3611 * d-lang.c (d_language_data): Likewise.
3612 * dictionary.c (default_search_name_hash): Rename to...
3613 (language_defn::search_name_hash): ...this.
3614 * f-lang.c (f_language_data): Likewise.
3615 (f_language::search_name_hash): New member function.
3616 * go-lang.c (go_language_data): Delete la_search_name_hash
3617 initializer.
3618 * language.c (unknown_language_data): Likewise.
3619 (auto_language_data): Likewise.
3620 * language.h (struct language_data): Delete la_search_name_hash
3621 field.
3622 (language_defn::search_name_hash): Declare new member function.
3623 (default_search_name_hash): Delete declaration.
3624 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3625 initializer.
3626 * objc-lang.c (objc_language_data): Likewise.
3627 * opencl-lang.c (opencl_language_data): Likewise.
3628 * p-lang.c (pascal_language_data): Likewise.
3629 * rust-lang.c (rust_language_data): Likewise.
3630 * symtab.c (search_name_hash): Update call.
3631
3632 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3633
3634 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3635 initializer.
3636 * c-lang.c (class compile_instance): Declare.
3637 (c_language_data): Delete la_get_compile_instance initializer.
3638 (c_language::get_compile_instance): New member function.
3639 (cplus_language_data): Delete la_get_compile_instance initializer.
3640 (cplus_language::get_compile_instance): New member function.
3641 (asm_language_data): Delete la_get_compile_instance initializer.
3642 (minimal_language_data): Likewise.
3643 * c-lang.h (c_get_compile_context): Update comment.
3644 (cplus_get_compile_context): Update comment.
3645 * compile/compile.c (compile_to_object): Update calls, don't rely
3646 on function pointer being NULL.
3647 * d-lang.c (d_language_data): Delete la_get_compile_instance
3648 initializer.
3649 * f-lang.c (f_language_data): Likewise.
3650 * go-lang.c (go_language_data): Likewise.
3651 * language.c (unknown_language_data): Likewise.
3652 (auto_language_data): Likewise.
3653 * language.h (language_data): Delete la_get_compile_instance field.
3654 (language_defn::get_compile_instance): New member function.
3655 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3656 initializer.
3657 * objc-lang.c (objc_language_data): Likewise.
3658 * opencl-lang.c (opencl_language_data): Likewise.
3659 * p-lang.c (pascal_language_data): Likewise.
3660 * rust-lang.c (rust_language_data): Likewise.
3661
3662 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3663
3664 * ada-lang.c (ada_add_all_symbols): Update comment.
3665 (ada_iterate_over_symbols): Delete, move implementation to...
3666 (ada_language::iterate_over_symbols): ...here, a new member
3667 function, rewrite to use range based for loop.
3668 (ada_language_data): Delete la_iterate_over_symbols initializer.
3669 * c-lang.c (c_language_data): Likewise.
3670 (cplus_language_data): Likewise.
3671 (asm_language_data): Likewise.
3672 (minimal_language_data): Likewise.
3673 * d-lang.c (d_language_data): Likewise.
3674 * f-lang.c (f_language_data): Likewise.
3675 * go-lang.c (go_language_data): Likewise.
3676 * language.c (unknown_language_data): Likewise.
3677 (auto_language_data): Likewise.
3678 * language.h (language_data): Delete la_iterate_over_symbols field.
3679 (language_defn::iterate_over_symbols): New member function.
3680 (LA_ITERATE_OVER_SYMBOLS): Update.
3681 * linespec.c (iterate_over_all_matching_symtabs): Update.
3682 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3683 initializer.
3684 * objc-lang.c (objc_language_data): Likewise.
3685 * opencl-lang.c (opencl_language_data): Likewise.
3686 * p-lang.c (pascal_language_data): Likewise.
3687 * rust-lang.c (rust_language_data): Likewise.
3688
3689 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3690
3691 * ada-lang.c (ada_language_data): Delete
3692 la_lookup_transparent_type initializer.
3693 * c-lang.c (c_language_data): Likewise.
3694 (cplus_language_data): Likewise.
3695 (cplus_language::lookup_transparent_type): New member function.
3696 (asm_language_data): Delete la_lookup_transparent_type
3697 initializer.
3698 (minimal_language_data): Likewise.
3699 * d-lang.c (d_language_data): Likewise.
3700 * f-lang.c (f_language_data): Likewise.
3701 * go-lang.c (go_language_data): Likewise.
3702 * language.c (unknown_language_data): Likewise.
3703 (auto_language_data): Likewise.
3704 * language.h (struct language_data): Delete
3705 la_lookup_transparent_type field.
3706 (language_defn::lookup_transparent_type): New member function.
3707 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3708 initializer.
3709 * objc-lang.c (objc_language_data): Likewise.
3710 * opencl-lang.c (opencl_language_data): Likewise.
3711 * p-lang.c (pascal_language_data): Likewise.
3712 * rust-lang.c (rust_language_data): Likewise.
3713 * symtab.c (symbol_matches_domain): Update call.
3714
3715 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3716
3717 * ada-lang.c (ada_language_arch_info): Delete function, move
3718 implementation to...
3719 (ada_language::language_arch_info): ...here, a new member
3720 function.
3721 (ada_language_data): Delete la_language_arch_info.
3722 * c-lang.c (c_language_data): Likewise.
3723 (c_language::language_arch_info): New member function.
3724 (cplus_language_arch_info): Delete function, move
3725 implementation to...
3726 (cplus_language::language_arch_info): ...here, a new member
3727 function.
3728 (cplus_language_data): Delete la_language_arch_info.
3729 (asm_language_data): Likewise.
3730 (asm_language::language_arch_info): New member function.
3731 (minimal_language_data): Delete la_language_arch_info.
3732 (minimal_language::language_arch_info): New member function.
3733 * d-lang.c (d_language_arch_info): Delete function, move
3734 implementation to...
3735 (d_language::language_arch_info): ...here, a new member
3736 function.
3737 (d_language_data): Delete la_language_arch_info.
3738 * f-lang.c (f_language_arch_info): Delete function, move
3739 implementation to...
3740 (f_language::language_arch_info): ...here, a new member
3741 function.
3742 (f_language_data): Delete la_language_arch_info.
3743 * go-lang.c (go_language_arch_info): Delete function, move
3744 implementation to...
3745 (go_language::language_arch_info): ...here, a new member
3746 function.
3747 (go_language_data): Delete la_language_arch_info.
3748 * language.c (unknown_language_data): Likewise.
3749 (unknown_language::language_arch_info): New member function.
3750 (auto_language_data): Delete la_language_arch_info.
3751 (auto_language::language_arch_info): New member function.
3752 (language_gdbarch_post_init): Update call to
3753 la_language_arch_info.
3754 * language.h (language_data): Delete la_language_arch_info
3755 function pointer.
3756 (language_defn::language_arch_info): New function.
3757 * m2-lang.c (m2_language_arch_info): Delete function, move
3758 implementation to...
3759 (m2_language::language_arch_info): ...here, a new member
3760 function.
3761 (m2_language_data): Delete la_language_arch_info.
3762 * objc-lang.c (objc_language_arch_info): Delete function, move
3763 implementation to...
3764 (objc_language::language_arch_info): ...here, a new member
3765 function.
3766 (objc_language_data): Delete la_language_arch_info.
3767 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3768 implementation to...
3769 (opencl_language::language_arch_info): ...here, a new member
3770 function.
3771 (opencl_language_data): Delete la_language_arch_info.
3772 * p-lang.c (pascal_language_arch_info): Delete function, move
3773 implementation to...
3774 (pascal_language::language_arch_info): ...here, a new member
3775 function.
3776 (pascal_language_data): Delete la_language_arch_info.
3777 * rust-lang.c (rust_language_arch_info): Delete function, move
3778 implementation to...
3779 (rust_language::language_arch_info): ...here, a new member
3780 function.
3781 (rust_language_data): Delete la_language_arch_info.
3782
3783 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3784
3785 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3786 initializer.
3787 * c-lang.c (c_language_data): Likewise.
3788 (cplus_language_data): Likewise.
3789 (cplus_language::pass_by_reference_info): New method.
3790 (asm_language_data): Delete la_pass_by_reference initializer.
3791 (minimal_language_data): Likewise.
3792 * cp-abi.c (cp_pass_by_reference): Remove use of
3793 default_pass_by_reference.
3794 * d-lang.c (d_language_data): Likewise.
3795 * f-lang.c (f_language_data): Likewise.
3796 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3797 default_pass_by_reference.
3798 * go-lang.c (go_language_data): Likewise.
3799 * language.c (language_pass_by_reference): Update.
3800 (default_pass_by_reference): Delete.
3801 (unknown_language_data): Delete la_pass_by_reference
3802 initializer.
3803 (auto_language_data): Likewise.
3804 * language.h (struct language_data): Delete la_pass_by_reference
3805 field.
3806 (language_defn::pass_by_reference_info): New member function.
3807 (default_pass_by_reference): Delete declaration.
3808 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3809 initializer.
3810 * objc-lang.c (objc_language_data): Likewise.
3811 * opencl-lang.c (opencl_language_data): Likewise.
3812 * p-lang.c (pascal_language_data): Likewise.
3813 * rust-lang.c (rust_language_data): Likewise.
3814
3815 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3816
3817 * ada-lang.c (ada_read_var_value): Delete function, move
3818 implementation to...
3819 (ada_language::read_var_value): ...here.
3820 (ada_language_data): Delete la_read_var_value initializer.
3821 * c-lang.c (c_language_data): Likewise.
3822 (cplus_language_data): Likewise.
3823 (minimal_language_data): Likewise.
3824 * d-lang.c (d_language_data): Likewise.
3825 * f-lang.c (f_language_data): Likewise.
3826 * findvar.c (default_read_var_value): Rename to...
3827 (language_defn::read_var_value): ...this.
3828 * findvar.c (read_var_value): Update header comment, and change to
3829 call member function instead of function pointer.
3830 * go-lang.c (go_language_data): Likewise.
3831 * language.c (unknown_language_data): Delete la_read_var_value
3832 initializer.
3833 (auto_language_data): Likewise.
3834 * language.h (struct language_data): Delete la_read_var_value
3835 field.
3836 (language_defn::read_var_value): New member function.
3837 (default_read_var_value): Delete declaration.
3838 * m2-lang.c (m2_language_data): Delete la_read_var_value
3839 initializer.
3840 * objc-lang.c (objc_language_data): Likewise.
3841 * opencl-lang.c (opencl_language_data): Likewise.
3842 * p-lang.c (pascal_language_data): Likewise.
3843 * rust-lang.c (rust_language_data): Likewise.
3844 * value.h (default_read_var_value): Delete declaration.
3845
3846 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3847
3848 * ada-lang.c (ada_print_array_index): Delete function, move
3849 implementation to...
3850 (ada_language::print_array_index): ...here.
3851 (ada_language_data): Delete la_print_array_index initializer.
3852 * c-lang.c (c_language_data): Likewise.
3853 (cplus_language_data): Likewise.
3854 (minimal_language_data): Likewise.
3855 * d-lang.c (d_language_data): Likewise.
3856 * f-lang.c (f_language_data): Likewise.
3857 * go-lang.c (go_language_data): Likewise.
3858 * language.c (default_print_array_index): Delete function, move
3859 implementation to...
3860 (language_defn::print_array_index): ...here.
3861 (unknown_language_data): Delete la_print_array_index initializer.
3862 (auto_language_data): Likewise.
3863 * language.h (struct language_data): Delete la_print_array_index
3864 field.
3865 (language_defn::print_array_index): New member function.
3866 (LA_PRINT_ARRAY_INDEX): Update.
3867 (default_print_array_index): Delete declaration.
3868 * m2-lang.c (m2_language_data): Delete la_print_array_index
3869 initializer.
3870 * objc-lang.c (objc_language_data): Likewise.
3871 * opencl-lang.c (opencl_language_data): Likewise.
3872 * p-lang.c (pascal_language_data): Likewise.
3873 * rust-lang.c (rust_language_data): Likewise.
3874
3875 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3876
3877 * gdb/ada-lang.c (ada_language_defn): Convert to...
3878 (ada_language_data): ...this.
3879 (class ada_language): New class.
3880 (ada_language_defn): New static global.
3881 * gdb/c-lang.c (c_language_defn): Convert to...
3882 (c_language_data): ...this.
3883 (class c_language): New class.
3884 (c_language_defn): New static global.
3885 (cplus_language_defn): Convert to...
3886 (cplus_language_data): ...this.
3887 (class cplus_language): New class.
3888 (cplus_language_defn): New static global.
3889 (asm_language_defn): Convert to...
3890 (asm_language_data): ...this.
3891 (class asm_language): New class.
3892 (asm_language_defn): New static global.
3893 (minimal_language_defn): Convert to...
3894 (minimal_language_data): ...this.
3895 (class minimal_language): New class.
3896 (minimal_language_defn): New static global.
3897 * gdb/d-lang.c (d_language_defn): Convert to...
3898 (d_language_data): ...this.
3899 (class d_language): New class.
3900 (d_language_defn): New static global.
3901 * gdb/f-lang.c (f_language_defn): Convert to...
3902 (f_language_data): ...this.
3903 (class f_language): New class.
3904 (f_language_defn): New static global.
3905 * gdb/go-lang.c (go_language_defn): Convert to...
3906 (go_language_data): ...this.
3907 (class go_language): New class.
3908 (go_language_defn): New static global.
3909 * gdb/language.c (unknown_language_defn): Remove declaration.
3910 (current_language): Initialize to nullptr, real initialization is
3911 moved to _initialize_language.
3912 (languages): Delete global.
3913 (language_defn::languages): Define.
3914 (set_language_command): Use language_defn::languages.
3915 (set_language): Likewise.
3916 (range_error): Likewise.
3917 (language_enum): Likewise.
3918 (language_def): Likewise.
3919 (add_set_language_command): Use language_def::languages for the
3920 language list, and language_def to lookup language pointers.
3921 (skip_language_trampoline): Use language_defn::languages.
3922 (unknown_language_defn): Convert to...
3923 (unknown_language_data): ...this.
3924 (class unknown_language): New class.
3925 (unknown_language_defn): New static global.
3926 (auto_language_defn): Convert to...
3927 (auto_language_data): ...this.
3928 (class auto_language): New class.
3929 (auto_language_defn): New static global.
3930 (language_gdbarch_post_init): Use language_defn::languages.
3931 (_initialize_language): Initialize current_language.
3932 * gdb/language.h (struct language_defn): Rename to...
3933 (struct language_data): ...this.
3934 (struct language_defn): New.
3935 (auto_language_defn): Delete.
3936 (unknown_language_defn): Delete.
3937 (minimal_language_defn): Delete.
3938 (ada_language_defn): Delete.
3939 (asm_language_defn): Delete.
3940 (c_language_defn): Delete.
3941 (cplus_language_defn): Delete.
3942 (d_language_defn): Delete.
3943 (f_language_defn): Delete.
3944 (go_language_defn): Delete.
3945 (m2_language_defn): Delete.
3946 (objc_language_defn): Delete.
3947 (opencl_language_defn): Delete.
3948 (pascal_language_defn): Delete.
3949 (rust_language_defn): Delete.
3950 * gdb/m2-lang.c (m2_language_defn): Convert to...
3951 (m2_language_data): ...this.
3952 (class m2_language): New class.
3953 (m2_language_defn): New static global.
3954 * gdb/objc-lang.c (objc_language_defn): Convert to...
3955 (objc_language_data): ...this.
3956 (class objc_language): New class.
3957 (objc_language_defn): New static global.
3958 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3959 (opencl_language_data): ...this.
3960 (class opencl_language): New class.
3961 (opencl_language_defn): New static global.
3962 * gdb/p-lang.c (pascal_language_defn): Convert to...
3963 (pascal_language_data): ...this.
3964 (class pascal_language): New class.
3965 (pascal_language_defn): New static global.
3966 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3967 language pointer, update comment format.
3968 * gdb/rust-lang.c (rust_language_defn): Convert to...
3969 (rust_language_data): ...this.
3970 (class rust_language): New class.
3971 (rust_language_defn): New static global.
3972
3973 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3974
3975 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3976 member variable.
3977 <m_stmt_at_address>: New member variable.
3978 (lnp_state_machine::record_line): Don't record some lines, update
3979 tracking of is_stmt at the same address.
3980 (lnp_state_machine::lnp_state_machine): Initialise new member
3981 variables.
3982
3983 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3984
3985 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3986 "-include gnu-nat-mig.h".
3987 * gnu-nat-mig.h: New file.
3988 * gnu-nat.c: Include "gnu-nat-mig.h".
3989 (exc_server, msg_reply_server, notify_server,
3990 process_reply_server): Remove declarations.
3991
3992 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3993
3994 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3995 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3996 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3997 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3998 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3999 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
4000 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
4001 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
4002 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
4003 to gnu_nat_target class.
4004 * gnu-nat.c: Likewise.
4005 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
4006 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
4007 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
4008 object.
4009 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
4010 instead of `gnu_target'.
4011
4012 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4013
4014 * i386-gnu-tdep.c: Include "gdbcore.h"
4015 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
4016 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
4017 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
4018 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
4019 i386_gnu_sigcontext_addr): New functions
4020 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
4021 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
4022 tdep.
4023
4024 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4025
4026 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
4027 before fork_inferior call. Avoid calling it if target_is_pushed returns
4028 true.
4029
4030 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4031
4032 * gnu-nat.h (gnu_target): New variable declaration.
4033 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
4034 gnu_target.
4035 * gnu-nat.c (gnu_target): New variable.
4036 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
4037 add_thread_silent, and add_thread calls.
4038 (gnu_nat_target::create_inferior): Pass gnu_target to
4039 add_thread_silent, thread_change_ptid call.
4040 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
4041 call.
4042
4043 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4044
4045 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
4046 (gnu_nat_target::find_memory_regions): Remove unused
4047 `old_address' variable.
4048
4049 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4050
4051 * gnu-nat.c: Include "gdbarch.h".
4052
4053 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4054
4055 * reply_mig_hack.awk (Error return): Cast function through
4056 void *, to bypass compiler function call check.
4057
4058 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4059
4060 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
4061 $(srcdir)/reply_mig_hack.awk.
4062
4063 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4064
4065 * gnu-nat.h (gnu_debug_flag): Set type to bool.
4066
4067 2020-05-30 Jonny Grant <jg@jguk.org>
4068
4069 * configure.ac (ACX_BUGURL): change bug URL to https.
4070
4071 2020-05-30 Pedro Alves <palves@redhat.com>
4072
4073 * cp-support.c (replace_typedefs_template): New.
4074 (replace_typedefs_qualified_name): Handle
4075 DEMANGLE_COMPONENT_TEMPLATE.
4076
4077 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
4078
4079 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
4080 dwarf2/index-cache.h, dwarf2/index-write.c,
4081 dwarf2/index-write.h, dwarf2/line-header.c,
4082 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
4083 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
4084 variables and fields from `dwarf2_per_objfile` to just
4085 `per_objfile` throughout.
4086
4087 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
4088
4089 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4090 <push_dwarf_reg_entry_value>: Add comment.
4091
4092 2020-05-28 Kevin Buettner <kevinb@redhat.com>
4093 Keith Seitz <keiths@redhat.com>
4094
4095 * python/python.c (do_start_initialization): Call PyEval_SaveThread
4096 instead of PyEval_ReleaseLock.
4097 (class gdbpy_gil): Move to earlier in file.
4098 (finalize_python): Set gdb_python_initialized.
4099 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
4100 when not initialized.
4101
4102 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
4103
4104 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4105 <push_dwarf_reg_entry_value>: Remove assert. Override
4106 per_objfile with caller_per_objfile.
4107
4108 2020-05-28 Tom de Vries <tdevries@suse.de>
4109
4110 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
4111 PR gold/15646 workaround to symbol kind "type".
4112
4113 2020-05-27 Tom Tromey <tromey@adacore.com>
4114
4115 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
4116
4117 2020-05-27 Tom Tromey <tromey@adacore.com>
4118
4119 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
4120 Use htab_find_with_hash.
4121 <add_abbrev>: Remove "abbrev_number" parameter.
4122 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
4123 "abbrev_number" parameter. Use htab_find_slot_with_hash.
4124 (hash_abbrev): Add comment.
4125 (abbrev_table::lookup_abbrev): Move to header file.
4126 (abbrev_table::read): Update.
4127
4128 2020-05-27 Tom Tromey <tromey@adacore.com>
4129
4130 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
4131 method.
4132 <canonical_name>: New member.
4133 <raw_name>: Rename from "name".
4134 (partial_die_info): Initialize canonical_name.
4135 (scan_partial_symbols): Check raw_name.
4136 (partial_die_parent_scope, partial_die_full_name)
4137 (add_partial_symbol, add_partial_subprogram)
4138 (add_partial_enumeration, load_partial_dies): Use "name" method.
4139 (partial_die_info::name): New method.
4140 (partial_die_info::read, guess_partial_die_structure_name)
4141 (partial_die_info::fixup): Update.
4142
4143 2020-05-27 Tom Tromey <tromey@adacore.com>
4144
4145 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
4146 <get_ref_die_offset>: Inline.
4147 <get_ref_die_offset_complaint>: New method.
4148 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
4149 (attribute::get_ref_die_offset_complaint): Rename from
4150 get_ref_die_offset. Just issue complaint.
4151
4152 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4153
4154 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
4155
4156 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4157
4158 * exec.c (exec_file_attach): Use errno value of first openp failure.
4159
4160 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4161
4162 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
4163 Don't close thread handle.
4164
4165 2020-05-27 Tom Tromey <tom@tromey.com>
4166 Simon Marchi <simon.marchi@efficios.com>
4167
4168 * objfiles.h (struct objfile) <partial_symtabs>: Now a
4169 shared_ptr.
4170 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
4171 member.
4172 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
4173 dwarf2_per_bfd_objfile_data_key>: New globals.
4174 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
4175 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
4176 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
4177 shared.
4178 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
4179 short-circuit when sharing.
4180 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
4181 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
4182
4183 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4184
4185 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
4186 to...
4187 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
4188 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
4189
4190 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4191
4192 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
4193 build_name_components, find_name_components_bounds>:
4194 Add per_objfile parameter.
4195 (struct mapped_index) <symbol_name_at>: Likewise.
4196 (struct mapped_debug_names): Remove constructor.
4197 <dwarf2_per_objfile>: Remove field.
4198 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
4199 (mapped_index_base::find_name_components_bounds,
4200 mapped_index_base::build_name_components,
4201 dw2_expand_symtabs_matching_symbol): Likewise.
4202 (class mock_mapped_index) <symbol_name_at>: Likewise.
4203 (check_match): Likewise.
4204 (check_find_bounds_finds): Likewise.
4205 (test_mapped_index_find_name_component_bounds): Update.
4206 (CHECK_MATCH): Update.
4207 (dw2_expand_symtabs_matching): Update.
4208 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
4209 per_objfile parameter.
4210 <find_vec_in_debug_names>: Likewise.
4211 <m_per_objfile>: New field.
4212 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
4213 parameter.
4214 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
4215 (dw2_debug_names_iterator::next): Update.
4216 (dw2_debug_names_lookup_symbol): Update.
4217 (dw2_debug_names_expand_symtabs_for_function): Update.
4218 (dw2_debug_names_map_matching_symbols): Update.
4219 (dw2_debug_names_expand_symtabs_matching): Update.
4220 (dwarf2_read_debug_names): Update.
4221
4222 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4223
4224 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
4225 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
4226 move to dwarf2_per_objfile.
4227 <read_in_chain>: Remove.
4228 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
4229 remove_all_cus, age_comp_units>: New methods.
4230 <m_dwarf2_cus>: New member.
4231 (struct dwarf2_per_cu_data) <cu>: Remove.
4232 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
4233 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
4234 moved to methods of dwarf2_per_objfile.
4235 (dwarf2_clear_marks): Remove.
4236 (dwarf2_queue_item::~dwarf2_queue_item): Update.
4237 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
4238 (dwarf2_per_bfd::free_cached_comp_units): Remove.
4239 (dwarf2_per_objfile::remove_all_cus): New.
4240 (class free_cached_comp_units) <~free_cached_comp_units>:
4241 Update.
4242 (load_cu): Update.
4243 (dw2_do_instantiate_symtab): Adjust.
4244 (fill_in_sig_entry_from_dwo_entry): Adjust.
4245 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4246 (cutu_reader::cutu_reader): Likewise.
4247 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
4248 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
4249 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
4250 and dwarf2_per_objfile::age_comp_units.
4251 (load_partial_comp_unit): Update.
4252 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
4253 (process_queue): Likewise.
4254 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
4255 backlink.
4256 (dwarf2_read_addr_index): Likewise.
4257 (follow_die_offset): Likewise.
4258 (dwarf2_fetch_die_loc_sect_off): Likewise.
4259 (dwarf2_fetch_constant_bytes): Likewise.
4260 (dwarf2_fetch_die_type_sect_off): Likewise.
4261 (follow_die_sig_1): Likewise.
4262 (load_full_type_unit): Likewise.
4263 (read_signatured_type): Likewise.
4264 (dwarf2_cu::dwarf2_cu): Don't set cu field.
4265 (dwarf2_cu::~dwarf2_cu): Remove.
4266 (dwarf2_per_objfile::get_cu): New.
4267 (dwarf2_per_objfile::set_cu): New.
4268 (age_cached_comp_units): Rename to...
4269 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
4270 to std::unordered_map.
4271 (free_one_cached_comp_unit): Rename to...
4272 (dwarf2_per_objfile::remove_cu): ... this. Adjust
4273 to std::unordered_map.
4274 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
4275 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
4276 a dwarf2_per_objfile in data.
4277 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
4278 (dwarf2_clear_marks): Remove.
4279
4280 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4281
4282 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
4283 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
4284 (init_tu_and_read_dwo_dies): Likewise.
4285 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
4286 (cutu_reader::cutu_reader): Likewise.
4287 (load_partial_comp_unit): Likewise.
4288 (process_psymtab_comp_unit): Update.
4289 (build_type_psymtabs_1): Update.
4290 (process_skeletonless_type_unit): Update.
4291 (load_full_comp_unit): Update.
4292 (find_partial_die): Update.
4293 (dwarf2_read_addr_index): Update.
4294 (read_signatured_type): Update.
4295
4296 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4297
4298 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
4299 m_header_read_in>: New fields.
4300 <get_header>: New method.
4301 * dwarf2/read.c (per_cu_header_read_in): Remove.
4302 (dwarf2_per_cu_data::get_header): New.
4303 (dwarf2_per_cu_data::addr_size): Update.
4304 (dwarf2_per_cu_data::offset_size): Update.
4305 (dwarf2_per_cu_data::ref_addr_size): Update.
4306
4307 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4308
4309 * dwarf2/read.c (load_cu): Return dwarf2_cu.
4310 (dw2_do_instantiate_symtab): Update.
4311 (queue_and_load_all_dwo_tus): Change parameter from
4312 dwarf2_per_cu_data to dwarf2_cu.
4313 (dwarf2_fetch_die_loc_sect_off): Update.
4314 (dwarf2_fetch_constant_bytes): Update.
4315 (dwarf2_fetch_die_type_sect_off): Update.
4316
4317 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4318
4319 * dwarf2/read.c (process_full_comp_unit,
4320 process_full_type_unit): Remove per_cu, per_objfile paramters.
4321 Add dwarf2_cu parameter.
4322 (process_queue): Update.
4323
4324 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4325
4326 * dwarf2/read.c (create_cu_from_index_list): Replace
4327 dwarf2_per_objfile parameter with dwarf2_per_bfd.
4328 (create_cus_from_index_list): Likewise.
4329 (create_cus_from_index): Likewise.
4330 (create_signatured_type_table_from_index): Likewise.
4331 (create_cus_from_debug_names_list): Likewise.
4332 (create_cus_from_debug_names): Likewise.
4333 (dwarf2_read_gdb_index): Update.
4334 (dwarf2_read_debug_names): Update.
4335
4336 2020-05-27 Tom Tromey <tom@tromey.com>
4337 Simon Marchi <simon.marchi@efficios.com>
4338
4339 * dwarf2/read.h (struct dwarf2_per_objfile)
4340 <get_type_for_signatured_type, set_type_for_signatured_type>:
4341 New methods.
4342 <m_type_map>: New member.
4343 (struct signatured_type) <type>: Remove.
4344 * dwarf2/read.c
4345 (dwarf2_per_objfile::get_type_for_signatured_type,
4346 dwarf2_per_objfile::set_type_for_signatured_type): New.
4347 (get_signatured_type): Use new methods.
4348
4349 2020-05-27 Tom Tromey <tom@tromey.com>
4350 Simon Marchi <simon.marchi@efficios.com>
4351
4352 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4353 (struct dwarf2_per_objfile) <type_units>: New member.
4354 <get_type_unit_group_unshareable>: New method.
4355 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4356 num_symtabs, symtabs>: Remove; move to
4357 type_unit_group_unshareable.
4358 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4359 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4360 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4361
4362 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4363
4364 * dwarf2/read.h (struct dwarf2_per_cu_data):
4365 <dwarf2_per_objfile>: Remove.
4366 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4367 dwarf2_per_objfile.
4368 (create_signatured_type_table_from_index): Likewise.
4369 (create_signatured_type_table_from_debug_names): Likewise.
4370 (create_debug_type_hash_table): Likewise.
4371 (fill_in_sig_entry_from_dwo_entry): Likewise.
4372 (create_type_unit_group): Likewise.
4373 (read_comp_units_from_section): Likewise.
4374 (create_cus_hash_table): Likewise.
4375
4376 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4377
4378 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4379 dwarf2_per_cu_data::dwarf2_per_objfile.
4380 (compute_compunit_symtab_includes): Likewise.
4381 (dwarf2_cu::start_symtab): Likewise.
4382
4383 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4384
4385 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4386 parameter.
4387 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4388 (read_namespace_alias): Update.
4389 (lookup_die_type): Update.
4390 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4391 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4392 Update.
4393 (disassemble_dwarf_expression): Update.
4394
4395 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4396
4397 * dwarf2/read.h (struct dwarf2_queue_item): Add
4398 dwarf2_per_objfile parameter, assign new parameter.
4399 <per_objfile>: New field.
4400 * dwarf2/read.c (free_one_cached_comp_unit): Add
4401 dwarf2_per_objfile parameter.
4402 (queue_comp_unit): Likewise.
4403 (dw2_do_instantiate_symtab): Update.
4404 (process_psymtab_comp_unit): Update.
4405 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4406 (process_imported_unit_die): Update.
4407 (queue_and_load_dwo_tu): Update.
4408 (follow_die_offset): Update.
4409 (follow_die_sig_1): Update.
4410
4411 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4412
4413 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4414 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4415 (read_call_site_scope): Assign per_objfile.
4416 (dwarf2_per_cu_data::objfile): Remove.
4417 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4418 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4419 dwarf2_per_objfile parameter.
4420 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4421 dwarf2_per_objfile parameter.
4422 (dwarf_expr_reg_to_entry_parameter): Add output
4423 dwarf2_per_objfile parameter.
4424 (locexpr_get_frame_base): Update.
4425 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4426 <push_dwarf_reg_entry_value>: Update.
4427 <call_site_to_target_addr>: Update.
4428 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4429 parameter.
4430 (value_of_dwarf_reg_entry): Update.
4431 (rw_pieced_value): Update.
4432 (indirect_synthetic_pointer): Update.
4433 (dwarf2_evaluate_property): Update.
4434 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4435 parameter.
4436 (locexpr_read_variable): Update.
4437 (locexpr_get_symbol_read_needs): Update.
4438 (loclist_read_variable): Update.
4439
4440 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4441
4442 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4443 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4444 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4445 parameter.
4446 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4447 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4448 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4449 parameter.
4450 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4451 sect_variable_value): Add dwarf2_per_objfile parameter.
4452 (class dwarf_evaluate_loc_desc) <dwarf_call,
4453 dwarf_variable_value>: Update.
4454 (fetch_const_value_from_synthetic_pointer): Add
4455 dwarf2_per_objfile parameter.
4456 (fetch_const_value_from_synthetic_pointer): Update.
4457 (coerced_pieced_ref): Update.
4458 (class symbol_needs_eval_context) <dwarf_call,
4459 dwarf_variable_value>: Update.
4460 (dwarf2_compile_expr_to_ax): Update.
4461
4462 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4463
4464 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4465 parameter.
4466 (dwarf2_evaluate_loc_desc_full): Update.
4467
4468 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4469
4470 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4471 parameter.
4472 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4473 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4474 dwarf2_per_objfile parameter.
4475 (decode_debug_loc_dwo_addresses): Likewise.
4476 (dwarf2_find_location_expression): Update.
4477 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4478 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4479 parameter.
4480 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4481 parameter.
4482 (locexpr_describe_location_1): Likewise.
4483 (locexpr_describe_location): Update.
4484
4485 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4486
4487 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4488 Remove.
4489 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4490 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4491 (dwarf2_compile_property_to_c): Update.
4492 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4493 use text offset from objfile.
4494 (locexpr_tracepoint_var_ref): Update.
4495 (locexpr_generate_c_location): Update.
4496 (loclist_describe_location): Update.
4497 (loclist_tracepoint_var_ref): Update.
4498 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4499 dwarf2_per_objfile parameter.
4500 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4501 use text offset from objfile.
4502 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4503
4504 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4505
4506 * dwarf2/expr.h (struct dwarf_expr_context)
4507 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4508 <offset>: Remove.
4509 <per_objfile>: New member.
4510 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4511 dwarf2_per_objfile parameter. Don't set offset, set
4512 per_objfile.
4513 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4514 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4515 a dwarf2_per_objfile object instead of an offset.
4516 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4517 constructor.
4518 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4519 to dwarf2_expr_executor constructor. Don't set offset.
4520 (dwarf2_fetch_cfa_info): Update.
4521 (struct dwarf2_frame_cache) <text_offset>: Remove.
4522 <per_objfile>: New field.
4523 (dwarf2_frame_cache): Update.
4524 (dwarf2_frame_prev_register): Update.
4525 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4526 <dwarf_evaluate_loc_desc>: Add constructor.
4527 (dwarf2_evaluate_loc_desc_full): Update.
4528 (dwarf2_locexpr_baton_eval): Update.
4529 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4530 Add constructor.
4531 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4532
4533 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4534
4535 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4536 addr_sized_int_type>: Move to dwarf2_cu.
4537 <int_type>: Move to dwarf2_per_objfile.
4538 (struct dwarf2_per_objfile) <int_type>: Move here.
4539 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4540 addr_sized_int_type>: Move here.
4541 (read_func_scope): Update.
4542 (read_array_type): Update.
4543 (read_tag_string_type): Update.
4544 (attr_to_dynamic_prop): Update.
4545 (dwarf2_per_cu_data::int_type): Rename to...
4546 (dwarf2_per_objfile::int_type): ... this.
4547 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4548 (dwarf2_cu::addr_sized_int_type): ... this.
4549 (read_subrange_type): Update.
4550 (dwarf2_per_cu_data::addr_type): Rename to...
4551 (dwarf2_cu::addr_type): ... this.
4552 (set_die_type): Update.
4553
4554 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4555
4556 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4557 data through per_cu->cu.
4558
4559 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4560
4561 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4562 dwarf2_per_cu_data parameter fo dwarf2_cu.
4563 (lookup_dwo_type_unit): Likewise.
4564 (read_cutu_die_from_dwo): Likewise.
4565 (lookup_dwo_unit): Likewise.
4566 (open_and_init_dwo_file): Likewise.
4567 (lookup_dwo_cutu): Likewise.
4568 (lookup_dwo_comp_unit): Likewise.
4569 (lookup_dwo_type_unit): Likewise.
4570 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4571 (cutu_reader::cutu_reader): Update.
4572
4573 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4574
4575 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4576 parameter.
4577 (process_full_type_unit): Likewise.
4578 (process_queue): Update.
4579
4580 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4581
4582 * dwarf2/read.c (recursively_compute_inclusions): Add
4583 dwarf2_per_objfile parameter.
4584 (compute_compunit_symtab_includes): Likewise.
4585 (process_cu_includes): Update.
4586
4587 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4588
4589 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4590 parameter.
4591 (create_type_unit_group): Update.
4592 (process_psymtab_comp_unit_reader): Update.
4593 (build_type_psymtabs_reader): Update.
4594
4595 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4596
4597 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4598 object through m_this_cu->cu.
4599
4600 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4601
4602 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4603 the info parameter.
4604 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4605
4606 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4607
4608 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4609 per_objfile parameter.
4610 (load_full_type_unit): Add per_objfile parameter.
4611 (read_signatured_type): Likewise.
4612 (load_full_comp_unit): Likewise.
4613 (load_cu): Likewise.
4614 (dw2_do_instantiate_symtab): Likewise.
4615 (dw2_get_file_names): Likewise.
4616 (dw2_map_symtabs_matching_filename): Update.
4617 (dw_expand_symtabs_matching_file_matcher): Update.
4618 (dw2_map_symbol_filenames): Update.
4619 (process_psymtab_comp_unit): Add per_objfile parameter.
4620 (build_type_psymtabs_1): Update.
4621 (process_skeletonless_type_unit): Update.
4622 (dwarf2_build_psymtabs_hard): Update.
4623 (load_partial_comp_unit): Add per_objfile parameter.
4624 (scan_partial_symbols): Update.
4625 (load_full_comp_unit): Add per_objfile parameter.
4626 (process_imported_unit_die): Update.
4627 (create_cus_hash_table): Update.
4628 (find_partial_die): Update.
4629 (dwarf2_read_addr_index): Update.
4630 (follow_die_offset): Update.
4631 (dwarf2_fetch_die_loc_sect_off): Update.
4632 (dwarf2_fetch_constant_bytes): Update.
4633 (dwarf2_fetch_die_type_sect_off): Update.
4634 (follow_die_sig_1): Update.
4635 (load_full_type_unit): Add per_objfile parameter.
4636 (read_signatured_type): Likewise.
4637
4638 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4639
4640 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4641 of objfile_name.
4642
4643 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4644
4645 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4646 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4647 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4648 field.
4649 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4650 (create_cus_from_index): Update.
4651 (dwarf2_read_gdb_index): Update.
4652 (create_cus_from_debug_names): Update.
4653 (dwarf2_read_debug_names): Update.
4654 (get_abbrev_section_for_cu): Update.
4655 (create_all_comp_units): Update.
4656 (read_attribute_value): Update.
4657 (get_debug_line_section): Update.
4658 * dwarf2/index-cache.c (index_cache::store): Update.
4659 * dwarf2/index-write.c (save_gdb_index_command): Update.
4660 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4661
4662 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4663
4664 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4665 member.
4666 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4667 dwarf2_per_cu_data::per_bfd.
4668 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4669 (create_type_unit_group): Likewise.
4670 (queue_comp_unit): Remove reference to
4671 per_cu->dwarf2_per_objfile.
4672 (maybe_queue_comp_unit): Likewise.
4673 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4674 (create_cus_hash_table): Assign new field.
4675
4676 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4677
4678 * dwarf2/read.c: Replace
4679 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4680 dwarf2_cu->per_objfile throughout.
4681
4682 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4683
4684 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4685 parameter, don't use per_cu->dwarf2_per_objfile.
4686 (dw2_instantiate_symtab): Likewise.
4687 (dw2_find_last_source_symtab): Update.
4688 (dw2_map_expand_apply): Update.
4689 (dw2_lookup_symbol): Update.
4690 (dw2_expand_symtabs_for_function): Update.
4691 (dw2_expand_all_symtabs): Update.
4692 (dw2_expand_symtabs_with_fullname): Update.
4693 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4694 don't use per_cu->dwarf2_per_objfile.
4695 (dw2_expand_marked_cus): Update.
4696 (dw2_find_pc_sect_compunit_symtab): Update.
4697 (dw2_debug_names_lookup_symbol): Update.
4698 (dw2_debug_names_expand_symtabs_for_function): Update.
4699 (dw2_debug_names_map_matching_symbols): Update.
4700 (dwarf2_psymtab::expand_psymtab): Update.
4701
4702 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4703
4704 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4705 <per_objfile>: New member.
4706 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4707 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4708 call to dwarf2_cu.
4709 (cutu_reader::cutu_reader): Update.
4710 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4711
4712 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4713
4714 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4715 struct dwarf2_per_objfile.
4716 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4717 dwarf2_per_bfd.
4718 * dwarf2/read.c (set_die_type): Update.
4719 (get_die_type_at_offset): Update.
4720
4721 2020-05-27 Tom Tromey <tom@tromey.com>
4722 Simon Marchi <simon.marchi@efficios.com>
4723
4724 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4725 method.
4726 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4727 get_symtab, set_symtab>: New methods.
4728 <m_symtabs>: New field.
4729 (struct dwarf2_psymtab): Derive from partial_symtab.
4730 <readin_p, get_compunit_symtab>: Declare methods.
4731 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4732 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4733 New methods.
4734 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4735 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4736 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4737 (dw2_symtab_iter_next, dw2_print_stats)
4738 (dw2_expand_symtabs_with_fullname)
4739 (dw2_expand_symtabs_matching_one)
4740 (dw_expand_symtabs_matching_file_matcher)
4741 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4742 (dw2_debug_names_iterator::next)
4743 (dw2_debug_names_map_matching_symbols)
4744 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4745 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4746 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4747 New methods.
4748 (get_compunit_symtab, process_full_comp_unit)
4749 (process_full_type_unit): Update.
4750 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4751
4752 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4753
4754 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4755 then introduce a new dwarf2_per_objfile type.
4756 <read_line_string>: Move to the new dwarf2_per_objfile type.
4757 <objfile>: Likewise.
4758 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4759 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4760 dwarf2_per_objfile->per_bfd.
4761 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4762 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4763 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4764 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4765 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4766 (dwarf2_per_objfile::locate_sections): Rename to...
4767 (dwarf2_per_bfd::locate_sections): ... this.
4768 (dwarf2_per_objfile::get_cutu): Rename to...
4769 (dwarf2_per_bfd::get_cutu): ... this.
4770 (dwarf2_per_objfile::get_cu): Rename to...
4771 (dwarf2_per_bfd::get_cu): ... this.
4772 (dwarf2_per_objfile::get_tu): Rename to...
4773 (dwarf2_per_bfd::get_tu): ... this.
4774 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4775 (dwarf2_per_bfd::allocate_per_cu): ... this.
4776 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4777 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4778 (get_gdb_index_contents_ftype): Change parameter from
4779 dwarf2_per_objfile to dwarf2_per_bfd.
4780 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4781 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4782
4783 2020-05-27 Tom Tromey <tom@tromey.com>
4784 Simon Marchi <simon.marchi@efficios.com>
4785
4786 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4787 (allocate_piece_closure): Set "per_objfile" member.
4788 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4789 (locexpr_describe_location, loclist_describe_location): Use new
4790 member.
4791 * dwarf2/read.c (read_call_site_scope)
4792 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4793 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4794 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4795 handle_data_member_location): Set per_objfile member.
4796 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4797 member.
4798 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4799
4800 2020-05-27 Tom Tromey <tom@tromey.com>
4801
4802 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4803 allocate_signatured_type>: Declare new methods.
4804 <m_num_psymtabs>: New member.
4805 (struct dwarf2_per_cu_data) <index>: New member.
4806 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4807 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4808 (create_cu_from_index_list): Use allocate_per_cu.
4809 (create_signatured_type_table_from_index)
4810 (create_signatured_type_table_from_debug_names)
4811 (create_debug_type_hash_table, add_type_unit)
4812 (read_comp_units_from_section): Use allocate_signatured_type.
4813
4814 2020-05-27 Tom Tromey <tom@tromey.com>
4815
4816 * psymtab.c (partial_map_expand_apply)
4817 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4818 (psym_lookup_global_symbol_language)
4819 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4820 (psym_print_stats, psym_expand_symtabs_for_function)
4821 (psym_map_symbol_filenames, psym_map_matching_symbols)
4822 (psym_expand_symtabs_matching)
4823 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4824 (maintenance_check_psymtabs): Update.
4825 * psympriv.h (struct partial_symtab) <readin_p,
4826 get_compunit_symtab>: Add objfile parameter.
4827 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4828 Likewise.
4829 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4830 get_compunit_symtab>: Likewise.
4831 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4832
4833 2020-05-27 Tom Tromey <tom@tromey.com>
4834
4835 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4836 member.
4837 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4838 (create_cu_from_index_list)
4839 (create_signatured_type_table_from_index)
4840 (create_signatured_type_table_from_debug_names)
4841 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4842 (dwarf2_create_include_psymtab)
4843 (create_debug_type_hash_table, add_type_unit)
4844 (create_type_unit_group, read_comp_units_from_section)
4845 (dwarf2_compute_name, create_cus_hash_table)
4846 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4847 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4848 obstack.
4849 (dw2_get_real_path): Likewise. Change argument to
4850 dwarf2_per_objfile.
4851
4852 2020-05-27 Luis Machado <luis.machado@linaro.org>
4853
4854 PR tdep/26000
4855 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4856 for ldrd (immediate).
4857
4858 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4859
4860 * command.h: Add comment giving the name of class_tui.
4861 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4862 create the fake command for the help for class_tui.
4863
4864 2020-05-26 Tom Tromey <tromey@adacore.com>
4865
4866 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4867 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4868 (val_atr): New function.
4869 (value_val_atr): Use it.
4870 * ada-valprint.c (print_optional_low_bound): Change low bound
4871 handling for enums.
4872 (val_print_packed_array_elements): Don't call discrete_position.
4873 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4874 discrete_position for enum types.
4875 * language.c (default_print_array_index): Change type.
4876 * language.h (struct language_defn) <la_print_array_index>: Add
4877 index_type parameter, change type of index_value.
4878 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4879 (default_print_array_index): Update.
4880 * valprint.c (maybe_print_array_index): Don't call
4881 value_from_longest. Update.
4882 (value_print_array_elements): Don't call discrete_position.
4883
4884 2020-05-26 Tom Tromey <tromey@adacore.com>
4885
4886 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4887 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4888
4889 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4890
4891 PR gdb/13519
4892 * avr-tdep.c (avr_integer_to_address): Return data or code
4893 address accordingly to the second 'type' argument of the
4894 function.
4895
4896 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4897
4898 * infcmd.c, inferior.h: (construct_inferior_arguments):
4899 Moved function from here to gdbsupport/common-inferior.{h,cc}
4900
4901 2020-05-23 Tom Tromey <tom@tromey.com>
4902
4903 Revert commit eca1f90c:
4904 * NEWS: Remove entry for completion styling.
4905 * completer.c (_rl_completion_prefix_display_length): Move
4906 declaration later.
4907 (gdb_fnprint): Revert.
4908 (gdb_display_match_list_1): Likewise.
4909 * cli/cli-style.c (completion_prefix_style)
4910 (completion_difference_style, completion_suffix_style): Remove.
4911 (_initialize_cli_style): Revert.
4912 * cli/cli-style.h (completion_prefix_style)
4913 (completion_difference_style, completion_suffix_style): Don't
4914 declare.
4915
4916 2020-05-24 Pedro Alves <palves@redhat.com>
4917
4918 * symtab.c (completion_list_add_name): Return boolean indication
4919 of whether the symbol matched.
4920 (completion_list_add_symbol): Don't try to remove C++ aliases if
4921 the symbol didn't match in the first place.
4922 * symtab.h (completion_list_add_name): Return bool.
4923
4924 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4925
4926 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4927 type::field.
4928
4929 2020-05-23 Joel Brobecker <brobecker@adacore.com>
4930
4931 GDB 9.2 released.
4932
4933 2020-05-23 Tom Tromey <tom@tromey.com>
4934
4935 * NEWS: Add entry for completion styling.
4936 * completer.c (_rl_completion_prefix_display_length): Move
4937 declaration earlier.
4938 (gdb_fnprint): Use completion_style.
4939 (gdb_display_match_list_1): Likewise.
4940 * cli/cli-style.c (completion_prefix_style)
4941 (completion_difference_style, completion_suffix_style): New
4942 globals.
4943 (_initialize_cli_style): Register new globals.
4944 * cli/cli-style.h (completion_prefix_style)
4945 (completion_difference_style, completion_suffix_style): Declare.
4946
4947 2020-05-23 Pedro Alves <palves@redhat.com>
4948
4949 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4950 (parse_escape): Use ISDIGIT instead of isdigit.
4951 (puts_debug): Use gdb_isprint instead of isprint.
4952 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4953 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4954 ISSPACE instead of isspace.
4955 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4956 instead of isspace.
4957 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4958 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4959 instead of isxdigit and ISDIGIT instead of isdigit.
4960
4961 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4962
4963 * gdbtypes.h (struct type) <field>: New method.
4964 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4965 or type::field.
4966
4967 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4968
4969 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4970 (TYPE_FIELDS): Use type::fields. Change all call sites that
4971 modify the propery to use type::set_fields instead.
4972
4973 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4974
4975 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4976 type::num_fields instead.
4977
4978 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4979
4980 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4981 methods.
4982 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4983 that modify the number of fields to use type::set_num_fields
4984 instead.
4985
4986 2020-05-22 Tom Tromey <tromey@adacore.com>
4987
4988 * compile/compile-object-load.h (munmap_list_free): Don't
4989 declare.
4990
4991 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4992
4993 * annotate.c (annotate_source_line): Update return type, add call
4994 to update current symtab and line.
4995 * annotate.h (annotate_source_line): Update return type, and
4996 extend header comment.
4997 * source.c (info_line_command): Check annotation_level before
4998 calling annotate_source_line.
4999 * stack.c (print_frame_info): If calling annotate_source_line
5000 returns true, then don't print any other source line information.
5001
5002 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
5003
5004 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
5005
5006 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
5007
5008 * coffread.c (patch_type): Remove NULL check before xfree.
5009 * corefile.c (set_gnutarget): Likewise.
5010 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
5011 * exec.c (build_section_table): Likewise.
5012 * remote.c (remote_target::pass_signals): Likewise.
5013 * utils.c (n_spaces): Likewise.
5014 * cli/cli-script.c (document_command): Likewise.
5015 * i386-windows-tdep.c (core_process_module_section): Likewise.
5016 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
5017
5018 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
5019
5020 * symfile.c (reread_symbols): Clear objfile's section_offsets
5021 vector and section indices, re-compute them by calling
5022 sym_offsets.
5023
5024 2020-05-20 Tom Tromey <tromey@adacore.com>
5025
5026 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
5027 (desc_one_bound, desc_index_type): Compute field name.
5028
5029 2020-05-20 Tom de Vries <tdevries@suse.de>
5030
5031 PR symtab/25833
5032 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
5033
5034 2020-05-20 Alan Modra <amodra@gmail.com>
5035
5036 PR 25993
5037 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
5038 bfd_set_filename.
5039 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
5040 passed to bfd_set_filename.
5041 * symfile-mem.c (add_vsyscall_page): Likewise for string
5042 passed to symbol_file_add_from_memory.
5043 (symbol_file_add_from_memory): Make name param a const char* and
5044 don't strdup.
5045
5046 2020-05-20 Alan Modra <amodra@gmail.com>
5047
5048 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
5049 rather than accessing bfd->filename directly.
5050 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
5051 and use bfd_section_name.
5052 * dwarf2/frame.c (decode_frame_entry): Likewise.
5053 * exec.c (exec_set_section_address): Likewise.
5054 * solib-aix.c (solib_aix_bfd_open): Likewise.
5055 * stap-probe.c (get_stap_base_address): Likewise.
5056 * symfile.c (reread_symbols): Likewise.
5057
5058 2020-05-19 Tom Tromey <tromey@adacore.com>
5059
5060 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
5061
5062 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5063
5064 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
5065
5066 2020-05-19 Pedro Alves <palves@redhat.com>
5067
5068 * NEWS (set exec-file-mismatch): Adjust entry.
5069 * exec.c: Include "build-id.h".
5070 (validate_exec_file): Try to match build IDs instead of filenames.
5071 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
5072 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
5073 and pass down 'warn_if_slow'.
5074 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
5075 gdb_bfd_open_closure to pass it down.
5076 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
5077
5078 2020-05-19 Pedro Alves <palves@redhat.com>
5079
5080 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
5081 * target.c (target_fileio_open_1): Rename to target_fileio_open
5082 and make extern. Use bool.
5083 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
5084 (target_fileio_read_alloc_1): Adjust.
5085 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
5086 (target_fileio_open_warn_if_slow): Delete declaration.
5087
5088 2020-05-19 Pedro Alves <palves@redhat.com>
5089
5090 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
5091 Adjust all callers.
5092
5093 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
5094
5095 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
5096 whether disp is negative.
5097
5098 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5099
5100 * symfile.h (struct symfile_segment_data)
5101 <~symfile_segment_data>: Remove.
5102 <segment_info>: Change to std::vector.
5103 * symfile.c (default_symfile_segments): Update.
5104 * elfread.c (elf_symfile_segments): Update.
5105
5106 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5107
5108 * symfile.h (struct symfile_segment_data) <struct segment>: New.
5109 <segments>: New.
5110 <segment_bases, segment_sizes>: Remove.
5111 * symfile.c (default_symfile_segments): Update.
5112 * elfread.c (elf_symfile_segments): Update.
5113 * remote.c (remote_target::get_offsets): Update.
5114 * solib-target.c (solib_target_relocate_section_addresses):
5115 Update.
5116
5117 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5118
5119 * symfile.h (struct symfile_segment_data): Initialize fields.
5120 <~symfile_segment_data>: Add.
5121 (symfile_segment_data_up): New.
5122 (struct sym_fns) <sym_segments>: Return a
5123 symfile_segment_data_up.
5124 (default_symfile_segments): Return a symfile_segment_data_up.
5125 (free_symfile_segment_data): Remove.
5126 (get_symfile_segment_data): Return a symfile_segment_data_up.
5127 * symfile.c (default_symfile_segments): Likewise.
5128 (get_symfile_segment_data): Likewise.
5129 (free_symfile_segment_data): Remove.
5130 (symfile_find_segment_sections): Update.
5131 * elfread.c (elf_symfile_segments): Return a
5132 symfile_segment_data_up.
5133 * remote.c (remote_target::get_offsets): Update.
5134 * solib-target.c (solib_target_relocate_section_addresses):
5135 Update.
5136 * symfile-debug.c (debug_sym_segments): Return a
5137 symfile_segment_data_up.
5138
5139 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5140
5141 PR build/25981
5142 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
5143 Hardcode register numbers.
5144
5145 PR build/25981
5146 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
5147 procfs_find_LDT_entry): Remove.
5148 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
5149 procfs_find_LDT_entry): Remove.
5150 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
5151 Remove.
5152
5153 2020-05-17 Pedro Alves <palves@redhat.com>
5154 Andrew Burgess <andrew.burgess@embecosm.com>
5155 Keno Fischer <keno@juliacomputing.com>
5156
5157 PR gdb/25741
5158 * breakpoint.c (build_target_condition_list): Update comments.
5159 (build_target_command_list): Update comments and skip matching
5160 locations.
5161 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
5162 a separate function. Simplify "set breakpoint auto-hw off"
5163 handling.
5164 (insert_breakpoints): Update comment.
5165 (tracepoint_locations_match): New parameter. For breakpoints,
5166 compare location types too, if the caller wants to.
5167 (handle_automatic_hardware_breakpoints): New functions.
5168 (bp_location_is_less_than): Also sort by location type and
5169 hardware breakpoint length.
5170 (update_global_location_list): Handle "set breakpoint auto-hw on"
5171 here.
5172 (update_breakpoint_locations): Ask breakpoint_locations_match to
5173 ignore location types.
5174
5175 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5176
5177 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
5178 type::name instead.
5179
5180 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5181
5182 * gdbtypes.h (struct type) <name, set_name>: New methods.
5183 (TYPE_CODE): Use type::name. Change all call sites used to set
5184 the name to use type::set_name instead.
5185
5186 2020-05-16 Tom Tromey <tom@tromey.com>
5187
5188 * top.c (quit_force): Update.
5189 * infrun.c (handle_no_resumed): Update.
5190 * top.h (all_uis): New function.
5191 (ALL_UIS): Remove.
5192
5193 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5194
5195 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
5196
5197 2020-05-16 Pedro Alves <palves@redhat.com>
5198
5199 * ia64-linux-nat.c
5200 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
5201 Declare method.
5202 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
5203
5204 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
5205
5206 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
5207 (sparc64_adi_info): Likewise.
5208
5209 2020-05-15 Tom Tromey <tom@tromey.com>
5210
5211 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
5212 block_objfile.
5213 (lookup_objfile_from_block): Remove.
5214 (lookup_symbol_in_block, lookup_symbol_in_static_block)
5215 (lookup_global_symbol): Use block_objfile.
5216 * symtab.h (lookup_objfile_from_block): Don't declare.
5217 * printcmd.c (clear_dangling_display_expressions): Use
5218 block_objfile.
5219 * parse.c (operator_check_standard): Use block_objfile.
5220
5221 2020-05-15 Tom Tromey <tom@tromey.com>
5222
5223 * language.c (language_alloc_type_symbol): Set
5224 SYMBOL_SECTION.
5225 * symtab.c (initialize_objfile_symbol): Remove.
5226 (allocate_symbol): Remove.
5227 (allocate_template_symbol): Remove.
5228 * dwarf2/read.c (fixup_go_packaging): Use "new".
5229 (new_symbol): Use "new".
5230 (read_variable): Don't call initialize_objfile_symbol. Use
5231 "new".
5232 (read_func_scope): Use "new".
5233 * xcoffread.c (process_xcoff_symbol): Don't call
5234 initialize_objfile_symbol.
5235 (SYMBOL_DUP): Remove.
5236 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
5237 "new".
5238 * symtab.h (allocate_symbol, initialize_objfile_symbol)
5239 (allocate_template_symbol): Don't declare.
5240 (struct symbol): Add copy constructor. Change defaults.
5241 * jit.c (finalize_symtab): Use "new".
5242 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
5243 Use "new".
5244 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5245 (common_block_end): Use "new".
5246 * mdebugread.c (parse_symbol): Use "new".
5247 (new_symbol): Likewise.
5248
5249 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5250
5251 * NEWS: Mention changes to help and apropos.
5252
5253 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5254
5255 * command.h (enum command_class): Improve comments, document
5256 that class_alias is for user-defined aliases, give the class
5257 name for each class, remove unused class_xdb.
5258 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
5259 * breakpoint.c (_initialize_breakpoint): Replace class_alias
5260 by a precise class.
5261 * infcmd.c (_initialize_infcmd): Likewise.
5262 * reverse.c (_initialize_reverse): Likewise.
5263 * stack.c (_initialize_stack): Likewise.
5264 * symfile.c (_initialize_symfile): Likewise.
5265 * tracepoint.c (_initialize_tracepoint): Likewise.
5266
5267 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5268
5269 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
5270 when their aliased command is traversed.
5271 (help_cmd): Add fput_command_names_styled call to
5272 output command name and aliases when command has an alias.
5273
5274 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5275
5276 * cli/cli-decode.h (help_cmd_list): Remove declaration.
5277 * cli/cli-decode.c (help_cmd_list): Declare as static,
5278 remove prefix argument, use bool for recurse arg, rework to show the aliases of
5279 a command together with the command.
5280 (fput_command_name_styled, fput_command_names_styled): New functions.
5281 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
5282 fput_command_name_styled.
5283 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
5284 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
5285
5286 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5287
5288 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
5289 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
5290 * command.h (cmd_show_list): Likewise.
5291 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
5292 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
5293
5294 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5295
5296 * unittests/command-def-selftests.c (traverse_command_structure):
5297 Verify all commands of a list have the same prefix command and
5298 that only the top cmdlist commands have a null prefix.
5299
5300 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5301
5302 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
5303 as prefix, not one of its aliases.
5304 (set_cmd_prefix): Remove.
5305 (do_add_cmd): Centralize the setting of the prefix of a command, when
5306 command is defined after its full chain of prefix commands.
5307 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
5308 (add_setshow_cmd_full): Likewise.
5309 (update_prefix_field_of_prefixed_commands): New function.
5310 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
5311 update_prefix_field_of_prefixed_commands.
5312 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
5313 addresses of remote_set_cmdlist and remote_show_cmdlist given
5314 as argument, not the address of an argument.
5315 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5316 * gdb/remote.c (_initialize_remote): Likewise.
5317
5318 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5319
5320 * cli/cli-cmds.c (alias_command): Check for an existing alias
5321 using lookup_cmd_composition, as valid_command_p is too strict
5322 and forbids aliases that are the prefix of an existing alias
5323 or command.
5324 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5325 command is properly recognised as a valid command.
5326
5327 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5328
5329 * unittests/help-doc-selftests.c: Rename to
5330 unittests/command-def-selftests.c
5331 * unittests/command-def-selftests.c (help_doc_tests): Update some
5332 comments.
5333 (command_structure_tests, traverse_command_structure): New namespace
5334 and function.
5335 (command_structure_invariants_tests): New function.
5336 (_initialize_command_def_selftests) Renamed from
5337 _initialize_help_doc_selftests, register command_structure_invariants
5338 selftest.
5339
5340 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5341
5342 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5343 an alias of 'show'.
5344
5345 2020-05-15 Joel Brobecker <brobecker@adacore.com>
5346
5347 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5348 ada_is_fixed_point_type. Update all callers.
5349 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5350 all callers.
5351 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5352 Update all callers.
5353 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5354 print_fixed_point_type. Update all callers.
5355 * ada-valprint.c (ada_value_print_num): Replace call to
5356 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5357
5358 2020-05-14 Kevin Buettner <kevinb@redhat.com>
5359
5360 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5361 processors.
5362 (cpu_supports_bts): Add CV_AMD case.
5363
5364 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5365 Simon Marchi <simon.marchi@efficios.com>
5366
5367 * infrun.c (stop_all_threads): Collect multiple wait events at
5368 each pass.
5369
5370 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5371
5372 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5373 type::code instead.
5374
5375 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5376
5377 * gdbtypes.h (struct type) <code, set_code>: New methods.
5378 (TYPE_CODE): Use type::code. Change all call sites used to set
5379 the code to use type::set_code instead.
5380
5381 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5382 Tom de Vries <tdevries@suse.de>
5383 Pedro Alves <palves@redhat.com>
5384
5385 PR threads/25478
5386 * infrun.c (stop_all_threads): Do NOT ignore
5387 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5388 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5389 received.
5390 (handle_no_resumed): Remove code handling a live inferior with no
5391 threads.
5392 * remote.c (has_single_non_exited_thread): New.
5393 (remote_target::update_thread_list): Do not delete a thread if is
5394 the last thread of the process.
5395 * thread.c (thread_select): Call delete_exited_threads instead of
5396 prune_threads.
5397
5398 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5399
5400 * infrun.c (stop_all_threads): Enable/disable thread events of all
5401 targets. Move a debug message denoting the end of the function
5402 into the SCOPED_EXIT block.
5403
5404 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5405
5406 * process-stratum-target.h: Include <set>.
5407 (all_non_exited_process_targets, switch_to_target_no_thread): New
5408 function declarations.
5409 * process-stratum-target.c (all_non_exited_process_targets)
5410 (switch_to_target_no_thread): New function implementations.
5411
5412 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5413
5414 * infrun.c (handle_inferior_event): Extract out a piece of code
5415 into...
5416 (mark_non_executing_threads): ...this new function.
5417
5418 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5419
5420 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5421 use.
5422
5423 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5424
5425 * regcache.c (regcache_read_pc_protected): New function
5426 implementation that returns 0 if the PC cannot read via
5427 'regcache_read_pc'.
5428 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5429 instead of 'regcache_read_pc'.
5430 (keep_going_pass_signal): Ditto.
5431
5432 2020-05-13 Tom Tromey <tromey@adacore.com>
5433
5434 * ada-lang.c (align_value): Remove.
5435 (ada_template_to_fixed_record_type_1): Use align_up.
5436
5437 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5438
5439 * async-event.c: Update the copyright year.
5440 * async-event.h: Update the copyright year.
5441
5442 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
5443
5444 * objfiles.h (is_addr_in_objfile,
5445 shared_objfile_contains_address_p): Return bool.
5446 * objfile.c (is_addr_in_objfile,
5447 shared_objfile_contains_address_p): Return bool.
5448
5449 2020-05-11 Tom Tromey <tromey@adacore.com>
5450
5451 * cli/cli-cmds.c (info_command): Restore.
5452 (_initialize_cli_cmds): Use add_prefix_command for "info".
5453 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5454
5455 2020-05-11 Tom Tromey <tromey@adacore.com>
5456
5457 * ada-lang.c (ada_value_primitive_field): Now public.
5458 * ada-lang.h (ada_value_primitive_field): Declare.
5459 * ada-valprint.c (print_field_values): Use
5460 ada_value_primitive_field for wrapper fields.
5461
5462 2020-05-11 Tom de Vries <tdevries@suse.de>
5463
5464 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5465 MODULE_DOMAIN.
5466
5467 2020-05-11 Tom de Vries <tdevries@suse.de>
5468
5469 PR symtab/25941
5470 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5471 with length 0, if not gdb-produced.
5472 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5473
5474 2020-05-09 Tom de Vries <tdevries@suse.de>
5475
5476 PR gdb/25955
5477 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5478 calculation.
5479
5480 2020-05-09 Tom Tromey <tom@tromey.com>
5481
5482 * top.c (server_command): Now bool.
5483 * top.h (server_command): Now bool.
5484
5485 2020-05-08 Tom Tromey <tromey@adacore.com>
5486
5487 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5488 already being processed.
5489
5490 2020-05-08 Tom Tromey <tom@tromey.com>
5491
5492 * printcmd.c (struct display) <next>: Remove.
5493 <display>: New constructor.
5494 <exp_string>: Now a std::string.
5495 <enabled_p>: Now a bool.
5496 (display_number): Move definition earlier.
5497 (displays): Rename from display_chain. Now a std::vector.
5498 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5499 (display_command): Update.
5500 (do_one_display, disable_display)
5501 (enable_disable_display_command, do_enable_disable_display):
5502 Update.
5503 (free_display): Remove.
5504 (clear_displays): Rewrite.
5505 (delete_display): Update.
5506 (map_display_numbers): Use function_view. Remove "data"
5507 parameter. Update.
5508 (do_delete_display): Remove.
5509 (undisplay_command): Update.
5510 (do_one_display, do_displays, disable_display)
5511 (info_display_command): Update.
5512 (do_enable_disable_display): Remove.
5513 (enable_disable_display_command)
5514 (clear_dangling_display_expressions): Update.
5515
5516 2020-05-08 Tom Tromey <tom@tromey.com>
5517
5518 * symtab.c (set_symbol_cache_size)
5519 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5520 (maintenance_print_symbol_cache_statistics): Update.
5521 * symmisc.c (print_symbol_bcache_statistics)
5522 (print_objfile_statistics, maintenance_print_objfiles)
5523 (maintenance_info_symtabs, maintenance_check_symtabs)
5524 (maintenance_expand_symtabs, maintenance_info_line_tables):
5525 Update.
5526 * symfile-debug.c (set_debug_symfile): Update.
5527 * source.c (forget_cached_source_info): Update.
5528 * python/python.c (gdbpy_progspaces): Update.
5529 * psymtab.c (maintenance_info_psymtabs): Update.
5530 * probe.c (parse_probes): Update.
5531 * linespec.c (iterate_over_all_matching_symtabs)
5532 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5533 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5534 * exec.c (exec_target::close): Update.
5535 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5536 * breakpoint.c (print_one_breakpoint_location)
5537 (create_longjmp_master_breakpoint)
5538 (create_std_terminate_master_breakpoint): Update.
5539 * progspace.c (program_spaces): Now a std::vector.
5540 (maybe_new_address_space): Update.
5541 (add_program_space): Remove.
5542 (program_space::program_space): Update.
5543 (remove_program_space): Update.
5544 (number_of_program_spaces): Remove.
5545 (print_program_space, update_address_spaces): Update.
5546 * progspace.h (program_spaces): Change type.
5547 (ALL_PSPACES): Remove.
5548 (number_of_program_spaces): Don't declare.
5549 (struct program_space) <next>: Remove.
5550
5551 2020-05-08 Tom Tromey <tom@tromey.com>
5552
5553 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5554 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5555 (enable_break): Update.
5556 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5557 (frv_fdpic_find_canonical_descriptor): Update.
5558 (frv_fetch_objfile_link_map): Update.
5559 * progspace.c (program_space::free_all_objfiles): Update.
5560 (program_space::solibs): New method.
5561 * progspace.h (struct program_space) <solibs>: New method.
5562 * solist.h (master_so_list): Don't declare.
5563 (ALL_SO_LIBS): Remove.
5564 * solib.h (so_list_head): Remove.
5565 (update_solib_list): Update comment.
5566 * solib.c (master_so_list): Remove.
5567 (solib_used, update_solib_list, solib_add)
5568 (info_sharedlibrary_command, clear_solib)
5569 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5570
5571 2020-05-08 Tom Tromey <tom@tromey.com>
5572
5573 * extension.c (extension_languages): Now a std::array.
5574 (ALL_EXTENSION_LANGUAGES): Remove.
5575 (get_ext_lang_defn, get_ext_lang_of_file)
5576 (eval_ext_lang_from_control_command): Update.
5577 (finish_ext_lang_initialization)
5578 (auto_load_ext_lang_scripts_for_objfile)
5579 (ext_lang_type_printers::ext_lang_type_printers)
5580 (apply_ext_lang_type_printers)
5581 (ext_lang_type_printers::~ext_lang_type_printers)
5582 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5583 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5584 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5585 (get_matching_xmethod_workers, ext_lang_colorize)
5586 (ext_lang_before_prompt): Update.
5587 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5588
5589 2020-05-08 Tom Tromey <tom@tromey.com>
5590
5591 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5592 overload.
5593 <swap_string, m_string>: Remove.
5594 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5595 Update.
5596 * stabsread.c (define_symbol, read_type): Update.
5597 * linespec.c (find_linespec_symbols): Update.
5598 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5599 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5600 * dbxread.c (read_dbx_symtab): Update.
5601 * cp-support.h (cp_canonicalize_string_full)
5602 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5603 Return unique_xmalloc_ptr.
5604 * cp-support.c (inspect_type): Update.
5605 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5606 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5607 Likewise.
5608 * c-typeprint.c (print_name_maybe_canonical): Update.
5609 * break-catch-throw.c (check_status_exception_catchpoint):
5610 Update.
5611
5612 2020-05-08 Tom de Vries <tdevries@suse.de>
5613
5614 * infrun.c (follow_fork): Copy current_line and current_symtab to
5615 child thread.
5616
5617 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5618
5619 * async-event.c (struct async_signal_handler, struct
5620 async_event_handler): Reformat, remove typedef.
5621
5622 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5623
5624 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5625 access thistype->main_type->dyn_prop_list directly.
5626
5627 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5628
5629 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5630 (remove_dyn_prop): Remove. Update all users to use
5631 type::remove_dyn_prop.
5632 * gdbtypes.c (remove_dyn_prop): Rename to...
5633 (type::remove_dyn_prop): ... this.
5634
5635 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5636
5637 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5638 (add_dyn_prop): Remove. Update all users to use
5639 type::add_dyn_prop.
5640 * gdbtypes.c (add_dyn_prop): Rename to...
5641 (type::add_dyn_prop): ... this.
5642
5643 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5644
5645 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5646 (get_dyn_prop): Remove. Update all users to use
5647 type::dyn_prop.
5648 * gdbtypes.c (get_dyn_prop): Rename to...
5649 (type::dyn_prop): ... this.
5650
5651 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5652
5653 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5654
5655 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5656
5657 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5658 instruction, skip it if it's there.
5659
5660 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
5661
5662 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5663
5664 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
5665
5666 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5667 * gdbtypes.c (recursive_dump_type): Remove use of
5668 TYPE_INCOMPLETE.
5669
5670 2020-05-03 Tom Tromey <tom@tromey.com>
5671
5672 * breakpoint.c (catch_command, tcatch_command): Remove.
5673 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5674 add_show_prefix_cmd.
5675 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5676 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5677 Remove.
5678 (add_internal_problem_command): Use add_basic_prefix_cmd,
5679 add_show_prefix_cmd.
5680 * mips-tdep.c (set_mipsfpu_command): Remove.
5681 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5682 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5683 (_initialize_index_cache): Use add_basic_prefix_cmd.
5684 * memattr.c (dummy_cmd): Remove.
5685 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5686 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5687 (_initialize_tui_win): Use add_basic_prefix_cmd,
5688 add_show_prefix_cmd.
5689 * cli/cli-logging.c (set_logging_command): Remove.
5690 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5691 add_show_prefix_cmd.
5692 (show_logging_command): Remove.
5693 * target.c (target_command): Remove.
5694 (add_target): Use add_basic_prefix_cmd.
5695
5696 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
5697
5698 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5699
5700 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5701
5702 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5703 info_command.
5704
5705 2020-04-30 Kamil Rytarowski <n54@gmx.com>
5706
5707 * nbsd-nat.c (nbsd_enable_proc_events)
5708 (nbsd_nat_target::post_startup_inferior): Add.
5709 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5710 (nbsd_nat_target::update_thread_list): Rewrite.
5711 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5712 "PTRACE_LWP_CREATE".
5713 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5714
5715 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5716
5717 * stack.c (_initialize_stack): Remove duplicated creation
5718 of "frame" command and "f" alias.
5719
5720 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5721
5722 PR gdb/18706
5723 * gdbtypes.c (check_typedef): Calculate size of array of
5724 stubbed type.
5725
5726 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5727
5728 PR gdb/15559
5729 * i386-tdep.c (i386_push_dummy_call): Call
5730 i386_thiscall_push_dummy_call.
5731 (i386_thiscall_push_dummy_call): New function.
5732 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5733 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5734 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5735
5736 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5737
5738 * gdbarch.sh (do_read): Add shellcheck disable directive for
5739 warning SC2162.
5740
5741 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5742
5743 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5744 "referenced but not assigned" warning.
5745
5746 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5747
5748 * gdbarch.sh: Remove code that sets fallbackdefault.
5749
5750 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5751
5752 * gdbarch.sh: Use shell operators && and || instead of
5753 -a and -o.
5754
5755 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5756
5757 * gdbarch.sh: Use $(...) instead of `...`.
5758
5759 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5760
5761 * gdbarch.sh: Use double quotes around variables.
5762
5763 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5764
5765 * gdbarch.sh: Use %s with printf, instead of variables in the
5766 format string.
5767
5768 2020-04-29 Tom Tromey <tromey@adacore.com>
5769
5770 PR ada/25875:
5771 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5772 type fields here.
5773 (read_enumeration_type): Call
5774 update_enumeration_type_from_children later. Update comments.
5775 (process_enumeration_scope): Don't create type fields.
5776
5777 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5778
5779 * nbsd-tdep.c: Include "xml-syscall.h".
5780 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5781
5782 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5783
5784 * nbsd-nat.c: Include "sys/wait.h".
5785 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5786 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5787 (nbsd_nat_target::remove_exec_catchpoint)
5788 (nbsd_nat_target::set_syscall_catchpoint): Add.
5789 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5790 (nbsd_nat_target::insert_exec_catchpoint)
5791 (nbsd_nat_target::remove_exec_catchpoint)
5792 (nbsd_nat_target::set_syscall_catchpoint): Add.
5793 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5794 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5795 `nbsd_get_syscall_number'.
5796
5797 2020-04-29 Tom Tromey <tom@tromey.com>
5798
5799 * stack.c (print_block_frame_labels): Remove.
5800
5801 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
5802
5803 PR gdb/17320
5804 * ada-valprint.c (val_print_packed_array_elements): Move array
5805 end bracket to new line.
5806 (ada_val_print_string): Remove extra spaces before first array
5807 element.
5808 * c-valprint.c (c_value_print_array): Likewise.
5809 * m2-valprint.c (m2_print_array_contents): Likewise.
5810 (m2_value_print_inner): Likewise.
5811 * p-valprint.c (pascal_value_print_inner): Likewise.
5812 * valprint.c (generic_val_print_array): Likewise.
5813 (value_print_array_elements): Move first array element and array
5814 end bracket to new line.
5815
5816 2020-04-29 Tom de Vries <tdevries@suse.de>
5817
5818 PR symtab/25889
5819 * linespec.c (find_method): Fix ix calculation.
5820
5821 2020-04-28 Kamil Rytarowski <n54@gmx.com>
5822
5823 * syscalls/update-netbsd.sh: New file.
5824 * syscalls/netbsd.xml: Regenerate.
5825 * data-directory/Makefile.in: Register `netbsd.xml' in
5826 `SYSCALLS_FILES'.
5827
5828 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5829
5830 * syscalls/update-freebsd.sh: Add double quotes.
5831
5832 2020-04-28 Tom Tromey <tom@tromey.com>
5833
5834 * NEWS: Update.
5835 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5836 (cmdpy_init): Allow class_tui.
5837
5838 2020-04-28 Mark Williams <mark@myosotissp.com>
5839
5840 PR gdb/24480
5841 * dwarf2read.c: Add missing assingments to list_in_scope when
5842 start_symtab was already called.
5843
5844 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5845
5846 PR gdb/25881
5847 * dwarf2/read.c (offset_map_type): Use
5848 gdb:hash_enum<sect_offset> as hash function.
5849
5850 2020-04-28 Tom de Vries <tdevries@suse.de>
5851
5852 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5853 with DW_AT_signature.
5854
5855 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
5856
5857 * configure.ac: Remove check for fs_base/gs_base in
5858 user_regs_struct.
5859 * configure: Re-generate.
5860 * config.in: Re-generate.
5861 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5862 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5863 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5864
5865 2020-04-27 Luis Machado <luis.machado@linaro.org>
5866
5867 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5868 problematic inline frame unwinding situation.
5869 * frame.c (frame_id_computed_p): New function.
5870 * frame.h (frame_id_computed_p): New prototype.
5871
5872 2020-04-26 Tom Tromey <tom@tromey.com>
5873
5874 * command.h (enum command_class) <class_pseudo>: Remove.
5875
5876 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5877
5878 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5879 and whitespace.
5880
5881 2020-04-25 Kamil Rytarowski <n54@gmx.com>
5882
5883 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5884 `PT_GET_PROCESS_STATE' block.
5885
5886 2020-04-24 Tom Tromey <tom@tromey.com>
5887
5888 * symtab.h (symbol_get_demangled_name): Don't declare.
5889 * symtab.c (symbol_get_demangled_name): Remove.
5890 (general_symbol_info::natural_name)
5891 (general_symbol_info::demangled_name): Update.
5892
5893 2020-04-24 Tom Tromey <tom@tromey.com>
5894
5895 PR rust/25025:
5896 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5897
5898 2020-04-24 Tom Tromey <tom@tromey.com>
5899
5900 PR symtab/12707:
5901 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5902 exists.
5903 (new_symbol): Likewise.
5904 * compile/compile-object-load.c (get_out_value_type): Use
5905 symbol_matches_search_name.
5906
5907 2020-04-24 Tom Tromey <tom@tromey.com>
5908
5909 * dwarf2/read.c (add_partial_symbol): Do not call
5910 compute_and_set_names.
5911
5912 2020-04-24 Tom Tromey <tom@tromey.com>
5913
5914 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5915 overload.
5916
5917 2020-04-24 Tom Tromey <tom@tromey.com>
5918
5919 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5920 (add_psymbol_to_list): New overload. Make old overload call new
5921 one.
5922 * psympriv.h (add_psymbol_to_list): New overload.
5923
5924 2020-04-24 Tom Tromey <tom@tromey.com>
5925
5926 * dwarf2/read.c (partial_die_info::read) <case
5927 DW_AT_linkage_name>: Use value_as_string.
5928 (dwarf2_string_attr): Use value_as_string.
5929 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5930 method.
5931 * dwarf2/attribute.c (attribute::value_as_string): New method.
5932
5933 2020-04-24 Tom Tromey <tom@tromey.com>
5934
5935 * symtab.c (general_symbol_info::natural_name)
5936 (general_symbol_info::demangled_name): Check for language_rust.
5937
5938 2020-04-24 Tom Tromey <tom@tromey.com>
5939
5940 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5941 (dwarf2_physname): ... from here.
5942 (partial_die_info::read): Add Rust "{" hack.
5943
5944 2020-04-24 Tom Tromey <tom@tromey.com>
5945
5946 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5947 method.
5948 (symbol_set_demangled_name): Don't declare.
5949 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5950 symbol_set_demangled_name.
5951 (general_symbol_info::set_language)
5952 (general_symbol_info::compute_and_set_names): Update.
5953 * minsyms.c (minimal_symbol_reader::install): Update.
5954 * dwarf2/read.c (new_symbol): Update.
5955
5956 2020-04-24 Tom Tromey <tromey@adacore.com>
5957
5958 PR python/23662:
5959 * python/py-type.c (convert_field): Handle
5960 FIELD_LOC_KIND_DWARF_BLOCK.
5961 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5962 (typy_get_dynamic): Nw function.
5963 (type_object_getset): Add "dynamic".
5964 * NEWS: Add entry.
5965
5966 2020-04-24 Tom Tromey <tromey@adacore.com>
5967
5968 * ada-typeprint.c (print_choices, print_variant_part)
5969 (print_record_field_types_dynamic): New functions.
5970 (print_record_field_types): Use print_record_field_types_dynamic.
5971
5972 2020-04-24 Tom Tromey <tromey@adacore.com>
5973
5974 * dwarf2/read.c (handle_data_member_location): New overload.
5975 (dwarf2_add_field): Use it.
5976 (decode_locdesc): Add "computed" parameter. Update comment.
5977 * gdbtypes.c (is_dynamic_type_internal): Also look for
5978 FIELD_LOC_KIND_DWARF_BLOCK.
5979 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5980 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5981 virtual base classes.
5982 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5983 FIELD_LOC_KIND_DWARF_BLOCK.
5984
5985 2020-04-24 Tom Tromey <tromey@adacore.com>
5986
5987 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5988 * gdbtypes.c (is_dynamic_type_internal): Check
5989 TYPE_HAS_DYNAMIC_LENGTH.
5990 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5991 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5992 New macros.
5993 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5994 constant.
5995
5996 2020-04-24 Tom Tromey <tromey@adacore.com>
5997
5998 * dwarf2/read.c (struct variant_field): Rewrite.
5999 (struct variant_part_builder): New.
6000 (struct nextfield): Remove "variant" field. Add "offset".
6001 (struct field_info): Add "current_variant_part" and
6002 "variant_parts".
6003 (alloc_discriminant_info): Remove.
6004 (alloc_rust_variant): New function.
6005 (quirk_rust_enum): Update.
6006 (dwarf2_add_field): Set "offset" member. Don't handle
6007 DW_TAG_variant_part.
6008 (offset_map_type): New typedef.
6009 (convert_variant_range, create_one_variant)
6010 (create_one_variant_part, create_variant_parts)
6011 (add_variant_property): New functions.
6012 (dwarf2_attach_fields_to_type): Call add_variant_property.
6013 (read_structure_type): Don't handle DW_TAG_variant_part.
6014 (handle_variant_part, handle_variant): New functions.
6015 (handle_struct_member_die): Use them.
6016 (process_structure_scope): Don't handle variant parts.
6017 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
6018 (struct discriminant_info): Remove.
6019 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
6020 (struct main_type) <flag_discriminated_union>: Remove.
6021 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
6022 (rust_enum_variant): Return int. Remove "contents". Rewrite.
6023 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
6024 Update.
6025 * valops.c (value_union_variant): Remove.
6026 * value.h (value_union_variant): Don't declare.
6027
6028 2020-04-24 Tom Tromey <tromey@adacore.com>
6029
6030 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
6031 (ada_value_primitive_packed_val): Update.
6032 * ada-valprint.c (ada_value_print_1): Update.
6033 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
6034 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
6035 just an address. Use evaluate_for_locexpr_baton.
6036 (dwarf2_evaluate_property): Update.
6037 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
6038 array_view.
6039 * findvar.c (default_read_var_value): Update.
6040 * gdbtypes.c (compute_variant_fields_inner)
6041 (resolve_dynamic_type_internal): Update.
6042 (resolve_dynamic_type): Change type of valaddr parameter.
6043 * gdbtypes.h (resolve_dynamic_type): Update.
6044 * valarith.c (value_subscripted_rvalue): Update.
6045 * value.c (value_from_contents_and_address): Update.
6046
6047 2020-04-24 Tom Tromey <tromey@adacore.com>
6048
6049 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
6050 "push_initial_value" parameter.
6051 (dwarf2_evaluate_property): Likewise.
6052 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
6053
6054 2020-04-24 Tom Tromey <tromey@adacore.com>
6055
6056 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
6057 (variant::matches, compute_variant_fields_recurse)
6058 (compute_variant_fields_inner, compute_variant_fields): New
6059 functions.
6060 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
6061 Use resolved_type after type is made.
6062 (operator==): Add new cases.
6063 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
6064 (struct discriminant_range, struct variant, struct variant_part):
6065 New.
6066 (union dynamic_prop_data) <variant_parts, original_type>: New
6067 members.
6068 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
6069 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
6070 constants.
6071 * value.c (unpack_bits_as_long): Now public.
6072 * value.h (unpack_bits_as_long): Declare.
6073
6074 2020-04-24 Tom Tromey <tromey@adacore.com>
6075
6076 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
6077 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
6078
6079 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
6080
6081 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
6082
6083 2020-04-24 Kamil Rytarowski <n54@gmx.com>
6084
6085 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
6086 (remove_fork_catchpoint, post_startup_inferior)
6087 (post_attach): Move...
6088 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
6089 (remove_fork_catchpoint, post_startup_inferior)
6090 (post_attach): ...here.
6091 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
6092 (remove_fork_catchpoint, post_startup_inferior)
6093 (post_attach): Move...
6094 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
6095 (remove_fork_catchpoint, post_startup_inferior)
6096 (post_attach): ...here.
6097
6098 2020-04-24 Tom Tromey <tromey@adacore.com>
6099
6100 * nat/windows-nat.h (struct windows_thread_info)
6101 <pc_adjusted>: New member.
6102 * windows-nat.c (windows_fetch_one_register): Check
6103 pc_adjusted.
6104 (windows_nat_target::get_windows_debug_event)
6105 (windows_nat_target::wait): Set pc_adjusted.
6106
6107 2020-04-24 Tom de Vries <tdevries@suse.de>
6108
6109 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
6110 Run gdb-add-index inside temp dir.
6111
6112 2020-04-23 Tom Tromey <tromey@adacore.com>
6113
6114 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
6115 in loop.
6116
6117 2020-04-23 Luis Machado <luis.machado@linaro.org>
6118
6119 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
6120 get_frame_register instead of gdbarch_unwind_pc.
6121
6122 2020-04-23 Tom de Vries <tdevries@suse.de>
6123
6124 * symtab.c (lookup_global_symbol): Prefer def over decl.
6125
6126 2020-04-23 Tom de Vries <tdevries@suse.de>
6127
6128 PR symtab/25807
6129 * block.c (best_symbol, better_symbol): Promote to external.
6130 * block.h (best_symbol, better_symbol): Declare.
6131 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
6132 decl.
6133
6134 2020-04-23 Tom Tromey <tromey@adacore.com>
6135
6136 PR ada/25837:
6137 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
6138 "const char *", not a "const std::string &".
6139 <name_and_matcher::operator==>: Update.
6140 * unittests/lookup_name_info-selftests.c: Change type of
6141 "result".
6142
6143 2020-04-23 Tom Tromey <tom@tromey.com>
6144
6145 * inferior.h (iterate_over_inferiors): Don't declare.
6146 * inferior.c (iterate_over_inferiors): Remove.
6147 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
6148 Remove.
6149 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
6150 use iterate_over_inferiors.
6151 (darwin_resume_inferior_it)
6152 (struct resume_inferior_threads_param)
6153 (darwin_resume_inferior_threads_it): Remove.
6154 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
6155
6156 2020-04-23 Tom de Vries <tdevries@suse.de>
6157
6158 * blockframe.c (find_pc_partial_function): Use
6159 find_pc_sect_compunit_symtab rather than
6160 objfile->sf->qf->find_pc_sect_compunit_symtab.
6161
6162 2020-04-22 Tom de Vries <tdevries@suse.de>
6163
6164 PR symtab/25764
6165 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
6166 in psymtabs.
6167
6168 2020-04-22 Tom de Vries <tdevries@suse.de>
6169
6170 PR symtab/25801
6171 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
6172 symtabs.
6173
6174 2020-04-22 Tom de Vries <tdevries@suse.de>
6175
6176 PR symtab/25700
6177 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
6178 CU if already created.
6179
6180 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6181
6182 * infrun.c (displaced_step_fixup): Switch to the event_thread
6183 before calling displaced_step_restore, not after.
6184
6185 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6186
6187 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
6188 its inferior is not recorded by us.
6189 (record_btrace_target_open): Replace call to
6190 all_non_exited_threads () with call to current_inferior
6191 ()->non_exited_threads ().
6192 (record_btrace_target::stop_recording): Likewise.
6193 (record_btrace_target::close): Likewise.
6194 (record_btrace_target::wait): Likewise.
6195 (record_btrace_target::record_stop_replaying): Likewise.
6196
6197 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6198
6199 * btrace.c (btrace_enable): Throw an error on double enables and
6200 when enabling recording fails.
6201 (btrace_disable): Throw an error if the thread is not recorded.
6202
6203 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6204
6205 * record-btrace.c (record_btrace_target::fetch_registers): Forward
6206 request if we do not have a thread_info.
6207
6208 2020-04-21 Tom de Vries <tdevries@suse.de>
6209
6210 PR gdb/25471
6211 * thread.c
6212 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
6213 exception in get_frame_id.
6214
6215 2020-04-20 Tom Tromey <tromey@adacore.com>
6216
6217 * python/python.c (struct gdbpy_event): Mark move constructor as
6218 noexcept.
6219 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
6220 constructor as noexcept.
6221 * completer.h (struct completion_result): Mark move constructor as
6222 noexcept.
6223 * completer.c (completion_result::completion_result): Use
6224 initialization style. Don't call reset_match_list.
6225
6226 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
6227
6228 * MAINTAINERS (Write After Approval): Add myself.
6229
6230 2020-04-18 Tom Tromey <tom@tromey.com>
6231
6232 * windows-tdep.c (init_w32_command_list)
6233 (w32_prefix_command_valid): Restore.
6234 (_initialize_windows_tdep): Call init_w32_command_list.
6235
6236 2020-04-18 Tom Tromey <tom@tromey.com>
6237
6238 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
6239 * value.c (value_fn_field): Update.
6240 * valops.c (find_function_in_inferior)
6241 (value_allocate_space_in_inferior): Update.
6242 * tui/tui-winsource.c (tui_update_source_windows_with_line):
6243 Update.
6244 * tui/tui-source.c (tui_source_window::set_contents): Update.
6245 * symtab.c (lookup_global_or_static_symbol)
6246 (find_function_start_sal_1, skip_prologue_sal)
6247 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
6248 * symmisc.c (dump_msymbols, dump_symtab_1)
6249 (maintenance_print_one_line_table): Update.
6250 * symfile.c (init_entry_point_info, section_is_mapped)
6251 (list_overlays_command, simple_read_overlay_table)
6252 (simple_overlay_update_1): Update.
6253 * stap-probe.c (handle_stap_probe): Update.
6254 * stabsread.c (dbx_init_float_type, define_symbol)
6255 (read_one_struct_field, read_enum_type, read_range_type): Update.
6256 * source.c (info_line_command): Update.
6257 * python/python.c (gdbpy_source_objfile_script)
6258 (gdbpy_execute_objfile_script): Update.
6259 * python/py-type.c (save_objfile_types): Update.
6260 * python/py-objfile.c (py_free_objfile): Update.
6261 * python/py-inferior.c (python_new_objfile): Update.
6262 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
6263 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
6264 (maintenance_check_psymtabs): Update.
6265 * printcmd.c (info_address_command): Update.
6266 * objfiles.h (struct objfile) <arch>: New method, from
6267 get_objfile_arch.
6268 (get_objfile_arch): Don't declare.
6269 * objfiles.c (get_objfile_arch): Remove.
6270 (filter_overlapping_sections): Update.
6271 * minsyms.c (msymbol_is_function): Update.
6272 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
6273 (output_nondebug_symbol): Update.
6274 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
6275 (mdebug_expand_psymtab): Update.
6276 * machoread.c (macho_add_oso_symfile): Update.
6277 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
6278 Update.
6279 * linux-fork.c (checkpoint_command): Update.
6280 * linespec.c (convert_linespec_to_sals): Update.
6281 * jit.c (finalize_symtab): Update.
6282 * infrun.c (insert_exception_resume_from_probe): Update.
6283 * ia64-tdep.c (ia64_find_unwind_table): Update.
6284 * hppa-tdep.c (internalize_unwinds): Update.
6285 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
6286 Update.
6287 * gcore.c (call_target_sbrk): Update.
6288 * elfread.c (record_minimal_symbol, elf_symtab_read)
6289 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
6290 (elf_gnu_ifunc_resolve_by_got): Update.
6291 * dwarf2/read.c (create_addrmap_from_index)
6292 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6293 (read_debug_names_from_section)
6294 (process_psymtab_comp_unit_reader, add_partial_symbol)
6295 (add_partial_subprogram, process_full_comp_unit)
6296 (read_file_scope, read_func_scope, read_lexical_block_scope)
6297 (read_call_site_scope, dwarf2_ranges_read)
6298 (dwarf2_record_block_ranges, dwarf2_add_field)
6299 (mark_common_block_symbol_computed, read_tag_pointer_type)
6300 (read_tag_string_type, dwarf2_init_float_type)
6301 (dwarf2_init_complex_target_type, read_base_type)
6302 (partial_die_info::read, partial_die_info::read)
6303 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
6304 (dwarf2_fetch_die_loc_sect_off): Update.
6305 * dwarf2/loc.c (dwarf2_find_location_expression)
6306 (class dwarf_evaluate_loc_desc, rw_pieced_value)
6307 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
6308 (dwarf2_loc_desc_get_symbol_read_needs)
6309 (locexpr_describe_location_piece, locexpr_describe_location_1)
6310 (loclist_describe_location): Update.
6311 * dwarf2/index-write.c (write_debug_names): Update.
6312 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
6313 * dtrace-probe.c (dtrace_process_dof): Update.
6314 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6315 (process_one_symbol): Update.
6316 * ctfread.c (ctf_init_float_type, read_base_type): Update.
6317 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6318 (coff_read_enum_type): Update.
6319 * cli/cli-cmds.c (edit_command, list_command): Update.
6320 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6321 * breakpoint.c (create_overlay_event_breakpoint)
6322 (create_longjmp_master_breakpoint)
6323 (create_std_terminate_master_breakpoint)
6324 (create_exception_master_breakpoint, get_sal_arch): Update.
6325 * block.c (block_gdbarch): Update.
6326 * annotate.c (annotate_source_line): Update.
6327
6328 2020-04-17 Tom Tromey <tromey@adacore.com>
6329
6330 * auto-load.c (show_auto_load_cmd): Remove.
6331 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6332 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6333 (maintenance_print_arc_command): Remove.
6334 * tui/tui-win.c (tui_command): Remove.
6335 (tui_get_cmd_list): Use add_basic_prefix_cmd.
6336 * tui/tui-layout.c (tui_layout_command): Remove.
6337 (_initialize_tui_layout): Use add_basic_prefix_cmd.
6338 * python/python.c (user_set_python, user_show_python): Remove.
6339 (_initialize_python): Use add_basic_prefix_cmd,
6340 add_show_prefix_cmd.
6341 * guile/guile.c (set_guile_command, show_guile_command): Remove.
6342 (install_gdb_commands): Use add_basic_prefix_cmd,
6343 add_show_prefix_cmd.
6344 (info_guile_command): Remove.
6345 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6346 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6347 add_show_prefix_cmd.
6348 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6349 Remove do_set and do_show parameters.
6350 * cli/cli-style.c (set_style, show_style): Remove.
6351 (_initialize_cli_style): Use add_basic_prefix_cmd,
6352 add_show_prefix_cmd.
6353 (cli_style_option::add_setshow_commands): Remove do_set and
6354 do_show parameters.
6355 (cli_style_option::add_setshow_commands): Use
6356 add_basic_prefix_cmd, add_show_prefix_cmd.
6357 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6358 (set_style_name): Remove.
6359 * cli/cli-dump.c (dump_command, append_command): Remove.
6360 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6361 (tekhex_dump_command, binary_dump_command)
6362 (binary_append_command): Remove.
6363 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6364 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6365 (init_w32_command_list): Remove; move into ...
6366 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6367 * valprint.c (set_print, show_print, set_print_raw)
6368 (show_print_raw): Remove.
6369 (_initialize_valprint): Use add_basic_prefix_cmd,
6370 add_show_prefix_cmd.
6371 * typeprint.c (set_print_type, show_print_type): Remove.
6372 (_initialize_typeprint): Use add_basic_prefix_cmd,
6373 add_show_prefix_cmd.
6374 * record.c (set_record_command, show_record_command): Remove.
6375 (_initialize_record): Use add_basic_prefix_cmd,
6376 add_show_prefix_cmd.
6377 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6378 add_show_prefix_cmd.
6379 (info_command, show_command, set_debug, show_debug): Remove.
6380 * top.h (set_history, show_history): Don't declare.
6381 * top.c (set_history, show_history): Remove.
6382 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6383 (unset_tdesc_cmd): Remove.
6384 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6385 add_show_prefix_cmd.
6386 * symtab.c (info_module_command): Remove.
6387 (_initialize_symtab): Use add_basic_prefix_cmd.
6388 * symfile.c (overlay_command): Remove.
6389 (_initialize_symfile): Use add_basic_prefix_cmd.
6390 * sparc64-tdep.c (info_adi_command): Remove.
6391 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6392 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6393 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6394 add_show_prefix_cmd.
6395 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6396 (_initialize_serial): Use add_basic_prefix_cmd,
6397 add_show_prefix_cmd.
6398 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6399 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6400 add_show_prefix_cmd.
6401 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6402 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6403 add_show_prefix_cmd.
6404 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6405 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6406 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6407 add_show_prefix_cmd.
6408 * remote.c (remote_command, set_remote_cmd): Remove.
6409 (_initialize_remote): Use add_basic_prefix_cmd.
6410 * record-full.c (set_record_full_command)
6411 (show_record_full_command): Remove.
6412 (_initialize_record_full): Use add_basic_prefix_cmd,
6413 add_show_prefix_cmd.
6414 * record-btrace.c (cmd_set_record_btrace)
6415 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6416 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6417 (cmd_show_record_btrace_pt): Remove.
6418 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6419 add_show_prefix_cmd.
6420 * ravenscar-thread.c (set_ravenscar_command)
6421 (show_ravenscar_command): Remove.
6422 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6423 add_show_prefix_cmd.
6424 * mips-tdep.c (show_mips_command, set_mips_command)
6425 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6426 add_show_prefix_cmd.
6427 * maint.c (maintenance_command, maintenance_info_command)
6428 (maintenance_check_command, maintenance_print_command)
6429 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6430 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6431 add_show_prefix_cmd.
6432 (show_per_command_cmd): Remove.
6433 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6434 Remove.
6435 (maintenance_show_test_settings_cmd): Remove.
6436 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6437 add_show_prefix_cmd.
6438 * maint-test-options.c (maintenance_test_options_command):
6439 Remove.
6440 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6441 * macrocmd.c (macro_command): Remove
6442 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6443 * language.c (set_check, show_check): Remove.
6444 (_initialize_language): Use add_basic_prefix_cmd,
6445 add_show_prefix_cmd.
6446 * infcmd.c (unset_command): Remove.
6447 (_initialize_infcmd): Use add_basic_prefix_cmd.
6448 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6449 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6450 add_show_prefix_cmd.
6451 * go32-nat.c (go32_info_dos_command): Remove.
6452 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6453 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6454 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6455 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6456 (_initialize_frame): Use add_basic_prefix_cmd,
6457 add_show_prefix_cmd.
6458 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6459 (_initialize_dcache): Use add_basic_prefix_cmd,
6460 add_show_prefix_cmd.
6461 * cp-support.c (maint_cplus_command): Remove.
6462 (_initialize_cp_support): Use add_basic_prefix_cmd.
6463 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6464 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6465 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6466 add_basic_prefix_cmd, add_show_prefix_cmd.
6467 * breakpoint.c (save_command): Remove.
6468 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6469 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6470 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6471 add_show_prefix_cmd.
6472 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6473 (set_ada_command, show_ada_command): Remove.
6474 (_initialize_ada_language): Use add_basic_prefix_cmd,
6475 add_show_prefix_cmd.
6476 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6477
6478 2020-04-16 Kamil Rytarowski <n54@gmx.com>
6479
6480 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6481 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6482
6483 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6484
6485 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6486 warning messages.
6487
6488 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6489
6490 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6491 import table is not at beginning of .idata section.
6492
6493 2020-04-16 Pedro Alves <palves@redhat.com>
6494
6495 * inferior.c (delete_inferior): Use delete operator directly
6496 instead of delete_program_space.
6497 * progspace.c (add_program_space): New, factored out from
6498 program_space::program_space.
6499 (remove_program_space): New, factored out from
6500 delete_program_space.
6501 (program_space::program_space): Remove intro comment. Rewrite.
6502 (program_space::~program_space): Remove intro comment. Call
6503 remove_program_space.
6504 (delete_program_space): Delete.
6505 * progspace.h (program_space::program_space): Make explicit. Move
6506 intro comment here, adjusted.
6507 (program_space::~program_space): Move intro comment here,
6508 adjusted.
6509 (delete_program_space): Remove.
6510
6511 2020-04-16 Tom Tromey <tromey@adacore.com>
6512
6513 * windows-nat.c (windows_nat::handle_access_violation): New
6514 function.
6515 * nat/windows-nat.h (handle_access_violation): Declare.
6516 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6517 windows-nat.c. Call handle_access_violation.
6518
6519 2020-04-16 Tom de Vries <tdevries@suse.de>
6520
6521 PR symtab/25791
6522 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6523 CUs without psymtab.
6524
6525 2020-04-16 Kevin Buettner <kevinb@redhat.com>
6526
6527 * python/python.c (do_start_initialization): Don't call
6528 PyEval_InitThreads for Python 3.9 and beyond.
6529
6530 2020-04-15 Kamil Rytarowski <n54@gmx.com>
6531
6532 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6533 thread functions.
6534 (obsd_nat_target::wait): Likewise.
6535
6536 2020-04-15 Tom Tromey <tromey@adacore.com>
6537
6538 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6539 (DEBUG_EXCEPT): Use debug_printf.
6540
6541 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6542
6543 * completer.c (class completion_tracker::completion_hash_entry)
6544 <hash_name>: New member function.
6545 (completion_tracker::discard_completions): New callback to hash a
6546 completion_hash_entry, pass this to htab_create_alloc.
6547
6548 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6549
6550 * windows-nat.c (windows_make_so): Warn rather than stopping with
6551 an error if realpath() fails.
6552
6553 2020-04-14 Kamil Rytarowski <n54@gmx.com>
6554
6555 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6556 (nbsd_nat_target::info_proc): Add do_status.
6557
6558 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6559 Tom de Vries <tdevries@suse.de>
6560
6561 PR symtab/25718
6562 * psympriv.h (struct partial_symtab::read_symtab)
6563 (struct partial_symtab::expand_psymtab)
6564 (struct partial_symtab::read_dependencies): Update comments.
6565 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6566 read_symtab for includer.
6567 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6568 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6569 (struct dwarf2_include_psymtab::m_readin): Remove.
6570 (struct dwarf2_include_psymtab::includer): New member function.
6571 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6572
6573 2020-04-14 Tom de Vries <tdevries@suse.de>
6574
6575 PR symtab/25720
6576 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6577 with NULL symbol_matcher and lookup_name.
6578 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6579 and lookup_name.
6580 * dwarf2/read.c (dw2_expand_symtabs_matching)
6581 (dw2_debug_names_expand_symtabs_matching): Same.
6582 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6583 Make lookup_name a pointer. Update comment.
6584 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6585 lookup_name being a pointer.
6586 * symfile.c (expand_symtabs_matching): Same.
6587 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6588 * linespec.c (iterate_over_all_matching_symtabs): Same.
6589
6590 2020-04-13 Tom Tromey <tom@tromey.com>
6591
6592 * run-on-main-thread.c: Update include.
6593 * unittests/main-thread-selftests.c: Update include.
6594 * tui/tui-win.c: Update include.
6595 * tui/tui-io.c: Update include.
6596 * tui/tui-interp.c: Update include.
6597 * tui/tui-hooks.c: Update include.
6598 * top.h: Update include.
6599 * top.c: Update include.
6600 * ser-base.c: Update include.
6601 * remote.c: Update include.
6602 * remote-notif.c: Update include.
6603 * remote-fileio.c: Update include.
6604 * record-full.c: Update include.
6605 * record-btrace.c: Update include.
6606 * python/python.c: Update include.
6607 * posix-hdep.c: Update include.
6608 * mingw-hdep.c: Update include.
6609 * mi/mi-main.c: Update include.
6610 * mi/mi-interp.c: Update include.
6611 * main.c: Update include.
6612 * linux-nat.c: Update include.
6613 * interps.c: Update include.
6614 * infrun.c: Update include.
6615 * inf-loop.c: Update include.
6616 * event-top.c: Update include.
6617 * event-loop.c: Move to ../gdbsupport/.
6618 * event-loop.h: Move to ../gdbsupport/.
6619 * async-event.h: Update include.
6620 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6621
6622 2020-04-13 Tom Tromey <tom@tromey.com>
6623
6624 * tui/tui-win.c: Include async-event.h.
6625 * remote.c: Include async-event.h.
6626 * remote-notif.c: Include async-event.h.
6627 * record-full.c: Include async-event.h.
6628 * record-btrace.c: Include async-event.h.
6629 * infrun.c: Include async-event.h.
6630 * event-top.c: Include async-event.h.
6631 * event-loop.h: Move some declarations to async-event.h.
6632 * event-loop.c: Don't include ser-event.h or top.h. Move some
6633 code to async-event.c.
6634 * async-event.h: New file.
6635 * async-event.c: New file.
6636 * Makefile.in (COMMON_SFILES): Add async-event.c.
6637 (HFILES_NO_SRCDIR): Add async-event.h.
6638
6639 2020-04-13 Tom Tromey <tom@tromey.com>
6640
6641 * utils.c (flush_streams): New function.
6642 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6643
6644 2020-04-13 Tom Tromey <tom@tromey.com>
6645
6646 * event-loop.c (handle_file_event): Use warning, not
6647 printf_unfiltered.
6648
6649 2020-04-13 Tom Tromey <tom@tromey.com>
6650
6651 * event-loop.c: Include <chrono>.
6652
6653 2020-04-13 Tom Tromey <tom@tromey.com>
6654
6655 * gdb_select.h: Move to ../gdbsupport/.
6656 * event-loop.c: Update include path.
6657 * top.c: Update include path.
6658 * ser-base.c: Update include path.
6659 * ui-file.c: Update include path.
6660 * ser-tcp.c: Update include path.
6661 * guile/scm-ports.c: Update include path.
6662 * posix-hdep.c: Update include path.
6663 * ser-unix.c: Update include path.
6664 * gdb_usleep.c: Update include path.
6665 * mingw-hdep.c: Update include path.
6666 * inflow.c: Update include path.
6667 * infrun.c: Update include path.
6668 * event-top.c: Update include path.
6669
6670 2020-04-13 Tom Tromey <tom@tromey.com>
6671
6672 * configure: Rebuild.
6673 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6674
6675 2020-04-13 Tom Tromey <tom@tromey.com>
6676
6677 * event-loop.h (start_event_loop): Don't declare.
6678 * event-loop.c (start_event_loop): Move...
6679 * main.c (start_event_loop): ...here. Now static.
6680
6681 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6682
6683 * MAINTAINERS: Update my email address.
6684
6685 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6686
6687 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6688 IP_ALL.
6689
6690 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6691
6692 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
6693 (nbsd_nat_target::info_proc): Add do_cmdline.
6694
6695 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6696
6697 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
6698 (nbsd_nat_target::info_proc): Add do_cwd.
6699
6700 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6701
6702 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6703
6704 2020-04-11 Kamil Rytarowski <n54@gmx.com>
6705
6706 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6707 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6708 (nbsd_nat_target::info_proc): New functions.
6709 * nbsd-nat.c (kinfo_get_vmmap): New function.
6710 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6711 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6712 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6713 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6714 functions.
6715 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6716 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6717 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6718 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6719 (KINFO_VME_FLAG_GROWS_DOWN): New.
6720
6721 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6722
6723 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6724 bit shift.
6725
6726 2020-04-10 Tom Tromey <tromey@adacore.com>
6727
6728 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6729
6730 2020-04-10 Tom Tromey <tromey@adacore.com>
6731
6732 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6733 separate debug files.
6734
6735 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
6736
6737 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6738 Move to...
6739 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6740 ... here.
6741 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6742 Check for STATUS_WX86_BREAKPOINT.
6743 (windows_nat_target::wait): Same.
6744
6745 2020-04-10 Tom de Vries <tdevries@suse.de>
6746
6747 PR cli/25808
6748 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6749
6750 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6751
6752 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6753 (Write After Approval): Remove Tom de Vries.
6754
6755 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6756
6757 revert partially:
6758 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6759
6760 * buildsym.c (record_line): Fix undefined behavior and preserve
6761 lines at eof.
6762
6763 2020-04-09 Kamil Rytarowski <n54@gmx.com>
6764
6765 * auxv.h (svr4_auxv_parse): New.
6766 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6767 and generic_auxv_parse.
6768 (svr4_auxv_parse): Add.
6769 * obsd-tdep.c: Include "auxv.h".
6770 (obsd_auxv_parse): Remove.
6771 (obsd_init_abi): Remove comment.
6772 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6773 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6774 * nbsd-tdep.c: Include "auxv.h".
6775 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6776
6777 2020-04-08 Tom Tromey <tromey@adacore.com>
6778
6779 * nat/windows-nat.h (last_wait_event): Don't declare.
6780 (wait_for_debug_event): Update comment.
6781 * nat/windows-nat.c (last_wait_event): Now static.
6782
6783 2020-04-08 Tom Tromey <tromey@adacore.com>
6784
6785 * windows-nat.c (wait_for_debug_event): Move to
6786 nat/windows-nat.c.
6787 * nat/windows-nat.h (wait_for_debug_event): Declare.
6788 * nat/windows-nat.c (wait_for_debug_event): Move from
6789 windows-nat.c. No longer static.
6790
6791 2020-04-08 Tom Tromey <tromey@adacore.com>
6792
6793 * windows-nat.c (get_windows_debug_event): Use
6794 fetch_pending_stop.
6795 * nat/windows-nat.h (fetch_pending_stop): Declare.
6796 * nat/windows-nat.c (fetch_pending_stop): New function.
6797
6798 2020-04-08 Tom Tromey <tromey@adacore.com>
6799
6800 * windows-nat.c (windows_continue): Use matching_pending_stop and
6801 continue_last_debug_event.
6802 * nat/windows-nat.h (matching_pending_stop)
6803 (continue_last_debug_event): Declare.
6804 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6805 (matching_pending_stop, continue_last_debug_event): New
6806 functions.
6807
6808 2020-04-08 Tom Tromey <tromey@adacore.com>
6809
6810 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6811 (handle_exception_result): Move to nat/windows-nat.h.
6812 (DEBUG_EXCEPTION_SIMPLE): Remove.
6813 (windows_nat::handle_ms_vc_exception): New function.
6814 (handle_exception): Move to nat/windows-nat.c.
6815 (get_windows_debug_event): Update.
6816 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6817 nat/windows-nat.c.
6818 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6819 (handle_exception_result): Move from windows-nat.c.
6820 (handle_exception): Declare.
6821 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6822 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6823 windows-nat.c.
6824
6825 2020-04-08 Tom Tromey <tromey@adacore.com>
6826
6827 * windows-nat.c (exception_count, event_count): Remove.
6828 (handle_exception, get_windows_debug_event)
6829 (do_initial_windows_stuff): Update.
6830
6831 2020-04-08 Tom Tromey <tromey@adacore.com>
6832
6833 * windows-nat.c (windows_nat::handle_load_dll)
6834 (windows_nat::handle_unload_dll): Rename. No longer static.
6835 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6836 Declare.
6837
6838 2020-04-08 Tom Tromey <tromey@adacore.com>
6839
6840 * complaints.h (stop_whining): Declare at top-level.
6841 (complaint): Don't declare stop_whining.
6842
6843 2020-04-08 Tom Tromey <tromey@adacore.com>
6844
6845 * windows-nat.c (windows_nat::handle_output_debug_string):
6846 Rename. No longer static.
6847 * nat/windows-nat.h (handle_output_debug_string): Declare.
6848
6849 2020-04-08 Tom Tromey <tromey@adacore.com>
6850
6851 * windows-nat.c (current_process_handle, current_process_id)
6852 (main_thread_id, last_sig, current_event, last_wait_event)
6853 (current_windows_thread, desired_stop_thread_id, pending_stops)
6854 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6855 (display_selectors, fake_create_process)
6856 (get_windows_debug_event): Update.
6857 * nat/windows-nat.h (current_process_handle, current_process_id)
6858 (main_thread_id, last_sig, current_event, last_wait_event)
6859 (current_windows_thread, desired_stop_thread_id, pending_stops)
6860 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6861 * nat/windows-nat.c (current_process_handle, current_process_id)
6862 (main_thread_id, last_sig, current_event, last_wait_event)
6863 (current_windows_thread, desired_stop_thread_id, pending_stops)
6864 (siginfo_er): New globals. Move from windows-nat.c.
6865
6866 2020-04-08 Tom Tromey <tromey@adacore.com>
6867
6868 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6869 (handle_load_dll): Update.
6870 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6871
6872 2020-04-08 Tom Tromey <tromey@adacore.com>
6873
6874 * windows-nat.c (enum thread_disposition_type): Move to
6875 nat/windows-nat.h.
6876 (windows_nat::thread_rec): Rename from thread_rec. No longer
6877 static.
6878 (windows_add_thread, windows_nat_target::fetch_registers)
6879 (windows_nat_target::store_registers, handle_exception)
6880 (windows_nat_target::resume, get_windows_debug_event)
6881 (windows_nat_target::get_tib_address)
6882 (windows_nat_target::thread_name)
6883 (windows_nat_target::thread_alive): Update.
6884 * nat/windows-nat.h (enum thread_disposition_type): Move from
6885 windows-nat.c.
6886 (thread_rec): Declare.
6887
6888 2020-04-08 Tom Tromey <tromey@adacore.com>
6889
6890 * windows-nat.c: Add "using namespace".
6891 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6892 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6893
6894 2020-04-08 Tom Tromey <tromey@adacore.com>
6895
6896 * nat/windows-nat.h (struct windows_thread_info): Declare
6897 destructor.
6898 * nat/windows-nat.c (~windows_thread_info): New.
6899
6900 2020-04-08 Tom Tromey <tromey@adacore.com>
6901
6902 PR gdb/22992
6903 * windows-nat.c (current_event): Update comment.
6904 (last_wait_event, desired_stop_thread_id): New globals.
6905 (struct pending_stop): New.
6906 (pending_stops): New global.
6907 (windows_nat_target) <stopped_by_sw_breakpoint>
6908 <supports_stopped_by_sw_breakpoint>: New methods.
6909 (windows_fetch_one_register): Add assertions. Adjust PC.
6910 (windows_continue): Handle pending stops. Suspend other threads
6911 when stepping. Use last_wait_event
6912 (wait_for_debug_event): New function.
6913 (get_windows_debug_event): Use wait_for_debug_event. Handle
6914 pending stops. Queue spurious stops.
6915 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6916 (windows_nat_target::kill): Use wait_for_debug_event.
6917 * nat/windows-nat.h (struct windows_thread_info)
6918 <stopped_at_software_breakpoint>: New field.
6919 * nat/windows-nat.c (windows_thread_info::resume): Clear
6920 stopped_at_software_breakpoint.
6921
6922 2020-04-08 Tom Tromey <tromey@adacore.com>
6923
6924 * windows-nat.c (enum thread_disposition_type): New.
6925 (thread_rec): Replace "get_context" parameter with "disposition";
6926 change type.
6927 (windows_add_thread, windows_nat_target::fetch_registers)
6928 (windows_nat_target::store_registers, handle_exception)
6929 (windows_nat_target::resume, get_windows_debug_event)
6930 (windows_nat_target::get_tib_address)
6931 (windows_nat_target::thread_name)
6932 (windows_nat_target::thread_alive): Update.
6933
6934 2020-04-08 Tom Tromey <tromey@adacore.com>
6935
6936 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6937 (windows_continue): Use windows_continue::resume.
6938 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6939 resume>: Declare new methods.
6940 * nat/windows-nat.c: New file.
6941 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6942
6943 2020-04-08 Tom Tromey <tromey@adacore.com>
6944
6945 * windows-nat.c (windows_add_thread, windows_delete_thread)
6946 (windows_nat_target::fetch_registers)
6947 (windows_nat_target::store_registers, fake_create_process)
6948 (windows_nat_target::resume, windows_nat_target::resume)
6949 (get_windows_debug_event, windows_nat_target::wait)
6950 (windows_nat_target::pid_to_str)
6951 (windows_nat_target::get_tib_address)
6952 (windows_nat_target::get_ada_task_ptid)
6953 (windows_nat_target::thread_name)
6954 (windows_nat_target::thread_alive): Use lwp, not tid.
6955
6956 2020-04-08 Tom Tromey <tromey@adacore.com>
6957
6958 * windows-nat.c (handle_exception)
6959 (windows_nat_target::thread_name): Update.
6960 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6961 <name>: Now unique_xmalloc_ptr.
6962
6963 2020-04-08 Tom Tromey <tromey@adacore.com>
6964
6965 * windows-nat.c (thread_rec)
6966 (windows_nat_target::fetch_registers): Update.
6967 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6968 Update comment.
6969 <debug_registers_changed, reload_context>: Now bool.
6970
6971 2020-04-08 Tom Tromey <tromey@adacore.com>
6972
6973 * windows-nat.c (windows_add_thread): Use new.
6974 (windows_init_thread_list, windows_delete_thread): Use delete.
6975 (get_windows_debug_event): Update.
6976 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6977 destructor, and initializers.
6978
6979 2020-04-08 Tom Tromey <tromey@adacore.com>
6980
6981 * windows-nat.c (struct windows_thread_info): Remove.
6982 * nat/windows-nat.h: New file.
6983
6984 2020-04-08 Tom Tromey <tromey@adacore.com>
6985
6986 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6987 (thread_rec, windows_add_thread, windows_delete_thread)
6988 (windows_continue): Update.
6989
6990 2020-04-08 Tom Tromey <tromey@adacore.com>
6991
6992 * windows-nat.c (struct windows_thread_info): Remove typedef.
6993 (thread_head): Remove.
6994 (thread_list): New global.
6995 (thread_rec, windows_add_thread, windows_init_thread_list)
6996 (windows_delete_thread, windows_continue): Update.
6997
6998 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6999
7000 * windows-tdep.h (windows_init_abi): Add comment.
7001 (cygwin_init_abi): New declaration.
7002 * windows-tdep.c: Split signal enumeration in two, one for
7003 Windows and one for Cygwin.
7004 (windows_gdb_signal_to_target): Only deal with signal of the
7005 Windows OS ABI.
7006 (cygwin_gdb_signal_to_target): New function.
7007 (windows_init_abi): Rename to windows_init_abi_common, don't set
7008 gdb_signal_to_target gdbarch method. Add new new function with
7009 this name.
7010 (cygwin_init_abi): New function.
7011 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
7012 comment. Don't call windows_init_abi.
7013 (amd64_windows_init_abi): Add comment, call windows_init_abi.
7014 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
7015 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
7016 i386_windows_init_abi_common, don't call windows_init_abi. Add
7017 a new function of this name.
7018 (i386_cygwin_init_abi): New function.
7019 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
7020 OS ABI Cygwin.
7021
7022 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7023
7024 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
7025 parameter.c.
7026 (dwarf2_read_gdb_index): Update.
7027
7028 2020-04-07 Kamil Rytarowski <n54@gmx.com>
7029
7030 * nbsd-tdep.c: Include "objfiles.h".
7031 (nbsd_skip_solib_resolver): New.
7032 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
7033
7034 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7035
7036 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
7037 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
7038 with DW_LLE_base_addressx are being emitted in DWARFv5.
7039 Add the newly added kind DW_LOC_OFFSET_PAIR also.
7040 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
7041 unsigned integer.
7042
7043 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7044
7045 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
7046 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
7047 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
7048 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
7049 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
7050 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
7051 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
7052
7053
7054 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7055
7056 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
7057 (read_loclist_index): New function definition.
7058 (lookup_loclist_base): New function definition.
7059 (read_loclist_header): New function definition.
7060 (dwarf2_cu): Add loclist_base and loclist_header field.
7061 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
7062 (read_full_die_1): Read the value of DW_AT_loclists_base.
7063 (read_attribute_reprocess): Handle DW_FORM_loclistx.
7064 (read_attribute_value): Handle DW_FORM_loclistx.
7065 (skip_one_die): Handle DW_FORM_loclistx.
7066 (loclist_header): New structure declaration.
7067 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
7068
7069 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7070
7071 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
7072 constructor. Remove `addr` parameter from other constructor and
7073 add `per_cu` parameter.
7074 * dwarf2/read.c (create_partial_symtab): Update.
7075
7076 2020-04-07 Tom de Vries <tdevries@suse.de>
7077
7078 PR symtab/25796
7079 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
7080 (partial_die_info::fixup): Inherit has_const_value.
7081
7082 2020-04-07 Tom de Vries <tdevries@suse.de>
7083
7084 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
7085 symbols without address.
7086
7087 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7088
7089 * nbsd-nat.h (struct thread_info): Add forward declaration.
7090 (nbsd_nat_target::thread_alive): Add.
7091 (nbsd_nat_target::thread_name): Likewise.
7092 (nbsd_nat_target::update_thread_list): Likewise.
7093 (update_thread_list::post_attach): Likewise.
7094 (post_attach::pid_to_str): Likewise.
7095 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
7096 (nbsd_thread_lister): Add.
7097 (nbsd_nat_target::thread_alive): Likewise.
7098 (nbsd_nat_target::thread_name): Likewise.
7099 (nbsd_add_threads): Likewise.
7100 (update_thread_list::post_attach): Likewise.
7101 (nbsd_nat_target::update_thread_list): Likewise.
7102 (post_attach::pid_to_str): Likewise.
7103
7104 2020-04-06 Tom Tromey <tromey@adacore.com>
7105
7106 * ada-valprint.c (print_variant_part): Extract the variant field.
7107 (print_field_values): Use the field as the outer value when
7108 recursing.
7109
7110 2020-04-06 Tom Tromey <tromey@adacore.com>
7111
7112 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
7113 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
7114 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
7115 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
7116 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
7117
7118 2020-04-06 Tom Tromey <tromey@adacore.com>
7119
7120 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
7121 TYPE_CODE_ERROR.
7122
7123 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7124
7125 * nbsd-tdep.c: Include "gdbarch.h".
7126 Define enum with NetBSD signal numbers.
7127 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
7128 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
7129 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
7130 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
7131 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
7132 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
7133 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
7134 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
7135 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
7136 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7137 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7138 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
7139
7140 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
7141
7142 PR gdb/25325
7143 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
7144
7145 2020-04-03 Tom Tromey <tromey@adacore.com>
7146
7147 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
7148 Read constant block.
7149
7150 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7151
7152 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
7153 (gdb_bfd_get_full_section_contents): New declaration.
7154 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
7155 * windows-tdep.c (is_linked_with_cygwin_dll): Use
7156 gdb_bfd_get_full_section_contents.
7157
7158 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7159
7160 * exec.c (build_section_table): Replace internal_error with
7161 gdb_assert.
7162 (section_table_xfer_memory_partial): Likewise.
7163 * mdebugread.c (parse_partial_symbols): Likewise.
7164 * psymtab.c (lookup_partial_symbol): Likewise.
7165 * utils.c (wrap_here): Likewise.
7166
7167 2020-04-02 Tom Tromey <tromey@adacore.com>
7168
7169 * f-lang.c (build_fortran_types): Use arch_type to initialize
7170 builtin_complex_s32 in the TYPE_CODE_ERROR case.
7171
7172 2020-04-02 Tom Tromey <tromey@adacore.com>
7173
7174 * dwarf2/read.c (partial_die_info::read): Do not create a vector
7175 of attributes.
7176
7177 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
7178 Bernd Edlinger <bernd.edlinger@hotmail.de>
7179 Tom Tromey <tromey@adacore.com>
7180
7181 * buildsym.c (buildsym_compunit::record_line): Remove
7182 deduplication code.
7183
7184 2020-04-02 Tom de Vries <tdevries@suse.de>
7185
7186 PR ada/24671
7187 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
7188
7189 2020-04-02 Tom de Vries <tdevries@suse.de>
7190
7191 * dwarf2/read.c (dwarf2_gdb_index_functions,
7192 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
7193 NULL.
7194 * psymtab.c (psym_lookup_global_symbol_language): New function.
7195 (psym_functions): Init psym_lookup_global_symbol_language with
7196 psym_lookup_global_symbol_language.
7197 * symfile-debug.c (debug_sym_quick_functions): Init
7198 lookup_global_symbol_language with NULL.
7199 * symfile.c (set_initial_language): Remove fixme comment.
7200 * symfile.h (struct quick_symbol_functions): Add
7201 lookup_global_symbol_language.
7202 * symtab.c (find_quick_global_symbol_language): New function.
7203 (find_main_name): Use find_quick_global_symbol_language.
7204
7205 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
7206
7207 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
7208
7209 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7210
7211 * buildsym.c (record_line): Fix undefined behavior and preserve
7212 lines at eof.
7213
7214 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7215
7216 * buildsym.c (record_line): Fix the resizing condition.
7217
7218 2020-04-01 Tom Tromey <tom@tromey.com>
7219
7220 * value.h (value_literal_complex): Add comment.
7221 * valops.c (value_literal_complex): Refer to value.h.
7222
7223 2020-04-01 Tom Tromey <tom@tromey.com>
7224
7225 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
7226 (scalar_type): New rule, from typebase.
7227 (typebase): Use scalar_type. Recognize complex types.
7228 (field_name): Handle FLOAT_KEYWORD.
7229 (ident_tokens): Add _Complex and __complex__.
7230
7231 2020-04-01 Tom Tromey <tom@tromey.com>
7232
7233 PR exp/25299:
7234 * valarith.c (promotion_type, complex_binop): New functions.
7235 (scalar_binop): Handle complex numbers. Use promotion_type.
7236 (value_pos, value_neg, value_complement): Handle complex numbers.
7237
7238 2020-04-01 Tom Tromey <tom@tromey.com>
7239
7240 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
7241 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
7242 (parse_number): Handle complex numbers.
7243
7244 2020-04-01 Tom Tromey <tom@tromey.com>
7245
7246 * c-valprint.c (c_decorations): Change complex suffix to "i".
7247
7248 2020-04-01 Tom Tromey <tom@tromey.com>
7249
7250 * valprint.c (generic_value_print_complex): Use accessors.
7251 * value.h (value_real_part, value_imaginary_part): Declare.
7252 * valops.c (value_real_part, value_imaginary_part): New
7253 functions.
7254 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
7255
7256 2020-04-01 Tom Tromey <tom@tromey.com>
7257
7258 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
7259 (read_range_type): Update.
7260 * mdebugread.c (basic_type): Update.
7261 * go-lang.c (build_go_types): Use init_complex_type.
7262 * gdbtypes.h (struct main_type) <complex_type>: New member.
7263 (init_complex_type): Update.
7264 (arch_complex_type): Don't declare.
7265 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
7266 Make name if none given. Use alloc_type_copy. Look for cached
7267 complex type.
7268 (arch_complex_type): Remove.
7269 (gdbtypes_post_init): Use init_complex_type.
7270 * f-lang.c (build_fortran_types): Use init_complex_type.
7271 * dwarf2/read.c (read_base_type): Update.
7272 * d-lang.c (build_d_types): Use init_complex_type.
7273 * ctfread.c (read_base_type): Update.
7274
7275 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7276
7277 * infrun.c (stop_all_threads): Update assertion, plus when
7278 stopping threads, take into account that we might be trying
7279 to stop an all-stop target.
7280 (stop_waiting): Call 'stop_all_threads' if there exists a
7281 non-stop target.
7282
7283 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7284
7285 * target.h (exists_non_stop_target): New function declaration.
7286 * target.c (exists_non_stop_target): New function.
7287
7288 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
7289
7290 PR gdb/24789
7291 * eval.c (is_integral_or_integral_reference): New function.
7292 (evaluate_subexp_standard): Allow integer references in
7293 pointer arithmetic.
7294
7295 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7296
7297 * remote.c (remote_target::remote_parse_stop_reply): Remove the
7298 check for no ptid in the stop reply when the target is non-stop.
7299
7300 2020-04-01 Tom Tromey <tromey@adacore.com>
7301
7302 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
7303 "name" parameter to rvalue reference. Initialize m_name_holder.
7304 <lookup_name_info>: New overloads.
7305 <name>: Return gdb::string_view.
7306 <c_str>: New method.
7307 <make_ignore_params>: Update.
7308 <search_name_hash>: Update.
7309 <language_lookup_name>: Return const char *.
7310 <m_name>: Change type.
7311 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
7312 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
7313 (lookup_name_info::match_any): Update.
7314 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7315 Update.
7316 * minsyms.c (linkage_name_str): Update.
7317 * language.c (default_symbol_name_matcher): Update.
7318 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7319 Update.
7320 * ada-lang.c (ada_fold_name): Change parameter to string_view.
7321 (ada_lookup_name_info::ada_lookup_name_info): Update.
7322 (literal_symbol_name_matcher): Update.
7323
7324 2020-04-01 Tom Tromey <tromey@adacore.com>
7325
7326 * psymtab.c (psymtab_search_name): Remove function.
7327 (psym_lookup_symbol): Create search name and lookup name here.
7328 (lookup_partial_symbol): Remove "name" parameter; add
7329 lookup_name.
7330 (psym_expand_symtabs_for_function): Update.
7331
7332 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
7333
7334 PR tui/25597:
7335 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7336
7337 2020-03-31 Tom Tromey <tromey@adacore.com>
7338
7339 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7340 memcpy.
7341
7342 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
7343
7344 * features/riscv/32bit-csr.xml: Regenerated.
7345 * features/riscv/64bit-csr.xml: Regenerated.
7346
7347 2020-03-30 Tom Tromey <tromey@adacore.com>
7348
7349 * ada-valprint.c (print_variant_part): Update.
7350 * ada-lang.h (ada_which_variant_applies): Update.
7351 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7352 outer_valaddr parameters; replace with "outer" value parameter.
7353 (to_fixed_variant_branch_type): Update.
7354
7355 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7356
7357 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7358 <list>. Remove inclusion of observable.h.
7359 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7360 (struct arch_lwp_info): New struct.
7361 (class ppc_linux_dreg_interface): New class.
7362 (struct ppc_linux_process_info): New struct.
7363 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7364 <low_new_clone, low_forget_process, low_prepare_to_resume>
7365 <copy_thread_dreg_state, mark_thread_stale>
7366 <mark_debug_registers_changed, register_hw_breakpoint>
7367 <clear_hw_breakpoint, register_wp, clear_wp>
7368 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7369 <num_memory_accesses, get_trigger_type>
7370 <create_watchpoint_request, hwdebug_point_cmp>
7371 <init_arch_lwp_info, get_arch_lwp_info>
7372 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7373 methods.
7374 <struct ptid_hash>: New inner struct.
7375 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7376 members.
7377 (saved_dabr_value, hwdebug_info, max_slots_number)
7378 (struct hw_break_tuple, struct thread_points, ppc_threads)
7379 (have_ptrace_hwdebug_interface)
7380 (hwdebug_find_thread_points_by_tid)
7381 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7382 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7383 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7384 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7385 use m_dreg_interface.
7386 (hwdebug_point_cmp): Change to...
7387 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7388 reference arguments instead of pointers.
7389 (ppc_linux_nat_target::ranged_break_num_registers): Use
7390 m_dreg_interface.
7391 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7392 m_dreg_interface. Call register_hw_breakpoint.
7393 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7394 m_dreg_interface. Call clear_hw_breakpoint.
7395 (get_trigger_type): Change to...
7396 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7397 comment.
7398 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7399 use m_dreg_interface. Call register_hw_breakpoint.
7400 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7401 use m_dreg_interface. Call clear_hw_breakpoint.
7402 (can_use_watchpoint_cond_accel): Change to...
7403 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7404 method. Update comment, use m_dreg_interface and
7405 m_process_info.
7406 (calculate_dvc): Change to...
7407 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7408 m_dreg_interface.
7409 (num_memory_accesses): Change to...
7410 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7411 (check_condition): Change to...
7412 (ppc_linux_nat_target::check_condition): ...this method.
7413 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7414 comment, use m_dreg_interface.
7415 (create_watchpoint_request): Change to...
7416 (ppc_linux_nat_target::create_watchpoint_request): ...this
7417 method. Use m_dreg_interface.
7418 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7419 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7420 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7421 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7422 (ppc_linux_nat_target::low_forget_process)
7423 (ppc_linux_nat_target::low_new_fork)
7424 (ppc_linux_nat_target::low_new_clone)
7425 (ppc_linux_nat_target::low_delete_thread)
7426 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7427 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7428 only call mark_thread_stale.
7429 (ppc_linux_thread_exit): Remove.
7430 (ppc_linux_nat_target::stopped_data_address): Change to...
7431 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7432 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7433 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7434 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7435 comment. Call low_stopped_data_address.
7436 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7437 m_dreg_interface.
7438 (ppc_linux_nat_target::masked_watch_num_registers): Use
7439 m_dreg_interface.
7440 (ppc_linux_nat_target::copy_thread_dreg_state)
7441 (ppc_linux_nat_target::mark_thread_stale)
7442 (ppc_linux_nat_target::mark_debug_registers_changed)
7443 (ppc_linux_nat_target::register_hw_breakpoint)
7444 (ppc_linux_nat_target::clear_hw_breakpoint)
7445 (ppc_linux_nat_target::register_wp)
7446 (ppc_linux_nat_target::clear_wp)
7447 (ppc_linux_nat_target::init_arch_lwp_info)
7448 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7449 (_initialize_ppc_linux_nat): Remove observer callback.
7450
7451 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7452
7453 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7454 (ppc_linux_nat_target::auxv_parse)
7455 (ppc_linux_nat_target::read_description)
7456 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7457 Move up.
7458
7459 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7460
7461 * linux-nat.h (low_new_clone): New method.
7462 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7463
7464 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7465
7466 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7467 (dbx_expand_psymtab): ... this.
7468 (start_psymtab): Update.
7469 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7470 (mdebug_expand_psymtab): ... this.
7471 (parse_partial_symbols): Update.
7472 (new_psymtab): Update.
7473 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7474 (xcoff_expand_psymtab): ... this.
7475 (xcoff_start_psymtab): Update.
7476
7477 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7478
7479 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7480 <expand_dependencies>: ... this.
7481 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7482 (partial_symtab::expand_dependencies): ... this.
7483 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7484 Update.
7485 (dwarf2_psymtab::expand_psymtab): Update.
7486 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7487 * mdebugread.c (psymtab_to_symtab_1): Update.
7488 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7489
7490 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7491
7492 * psympriv.h (discard_psymtab): Remove.
7493 * dbxread.c (dbx_end_psymtab): Update.
7494 * xcoffread.c (xcoff_end_psymtab): Update.
7495
7496 2020-03-28 Tom Tromey <tom@tromey.com>
7497
7498 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7499 comment.
7500
7501 2020-03-28 Tom Tromey <tom@tromey.com>
7502
7503 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7504
7505 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
7506
7507 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7508
7509 2020-03-26 John Baldwin <jhb@FreeBSD.org>
7510
7511 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7512
7513 2020-03-26 Tom Tromey <tom@tromey.com>
7514
7515 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7516 (mark_common_block_symbol_computed, read_tag_string_type)
7517 (attr_to_dynamic_prop, read_subrange_type): Update.
7518 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7519 to be methods on struct attribute.
7520 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7521 (read_call_site_scope, partial_die_info::read)
7522 (partial_die_info::read, lookup_die_type, follow_die_ref):
7523 Update.
7524 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7525 from dwarf2_get_ref_die_offset.
7526 (attribute::constant_value): New method, from
7527 dwarf2_get_attr_constant_value.
7528 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7529 Declare method.
7530 <constant_value>: New method.
7531
7532 2020-03-26 Tom Tromey <tom@tromey.com>
7533
7534 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7535 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7536 (dwarf_type_encoding_name): Move to stringify.c.
7537 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7538 * dwarf2/stringify.c: New file.
7539 * dwarf2/stringify.h: New file.
7540
7541 2020-03-26 Tom Tromey <tom@tromey.com>
7542
7543 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7544 Rewrite.
7545
7546 2020-03-26 Tom Tromey <tom@tromey.com>
7547
7548 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7549 methods.
7550 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7551 (lookup_ranges_base): Likewise.
7552 (read_cutu_die_from_dwo, read_full_die_1): Update.
7553
7554 2020-03-26 Tom Tromey <tom@tromey.com>
7555
7556 * dwarf2/read.c (read_import_statement, read_file_scope)
7557 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7558 (read_lexical_block_scope, read_call_site_scope)
7559 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7560 (handle_struct_member_die, process_structure_scope)
7561 (update_enumeration_type_from_children)
7562 (process_enumeration_scope, read_array_type, read_common_block)
7563 (read_namespace, read_module, read_subroutine_type): Update.
7564 (sibling_die): Remove.
7565
7566 2020-03-26 Tom Tromey <tom@tromey.com>
7567
7568 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7569 (build_type_psymtabs_reader, read_structure_type)
7570 (read_enumeration_type, read_full_die_1): Update.
7571 (dwarf2_attr_no_follow): Move to die.h.
7572 * dwarf2/die.h (struct die_info) <attr>: New method.
7573
7574 2020-03-26 Tom Tromey <tom@tromey.com>
7575
7576 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7577 <base_address>: Now an optional.
7578 (dwarf2_find_base_address, dwarf2_rnglists_process)
7579 (dwarf2_ranges_process, fill_in_loclist_baton)
7580 (dwarf2_symbol_mark_computed): Update.
7581
7582 2020-03-26 Tom Tromey <tom@tromey.com>
7583
7584 * dwarf2/read.c (struct die_info): Move to die.h.
7585 * dwarf2/die.h: New file.
7586
7587 2020-03-26 Tom Tromey <tom@tromey.com>
7588
7589 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7590 * dwarf2/read.c
7591 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7592 Move to line-header.c.
7593 (read_checked_initial_length_and_offset, read_formatted_entries):
7594 Likewise.
7595 (dwarf_decode_line_header): Split into two.
7596 * dwarf2/line-header.c
7597 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7598 Move from read.c.
7599 (read_checked_initial_length_and_offset, read_formatted_entries):
7600 Likewise.
7601 (dwarf_decode_line_header): New function, split from read.c.
7602
7603 2020-03-26 Tom Tromey <tom@tromey.com>
7604
7605 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7606 Declare method.
7607 * dwarf2/read.c (read_attribute_value): Update.
7608 (dwarf2_per_objfile::read_line_string): Rename from
7609 read_indirect_line_string.
7610 (read_formatted_entries): Update.
7611
7612 2020-03-26 Tom Tromey <tom@tromey.com>
7613
7614 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7615 variable.
7616
7617 2020-03-26 Tom Tromey <tom@tromey.com>
7618
7619 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7620 const.
7621 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7622 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7623 parameter const.
7624
7625 2020-03-26 Tom Tromey <tom@tromey.com>
7626
7627 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7628 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7629 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7630 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7631
7632 2020-03-26 Tom Tromey <tom@tromey.com>
7633
7634 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7635 file_names_size, file_full_name, file_file_name>: Use const.
7636 <file_name_at, file_names>: Add const overload.
7637 * dwarf2/line-header.c (line_header::file_file_name)
7638 (line_header::file_full_name): Update.
7639
7640 2020-03-26 Tom Tromey <tom@tromey.com>
7641
7642 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7643 (macro_start_file, consume_improper_spaces)
7644 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7645 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7646 (dwarf_decode_macros): Move to macro.c.
7647 * dwarf2/macro.c: New file.
7648 * dwarf2/macro.h: New file.
7649 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7650
7651 2020-03-26 Tom Tromey <tom@tromey.com>
7652
7653 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7654 method.
7655 * dwarf2/section.c: New method. From
7656 read_indirect_string_at_offset_from.
7657 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7658 (read_indirect_string_at_offset_from): Move to section.c.
7659 (read_indirect_string_at_offset): Rewrite.
7660 (read_indirect_line_string_at_offset): Remove.
7661 (read_indirect_string, read_indirect_line_string)
7662 (dwarf_decode_macro_bytes): Update.
7663
7664 2020-03-26 Tom Tromey <tom@tromey.com>
7665
7666 * dwarf2/section.h (struct dwarf2_section_info)
7667 <overload_complaint>: Declare.
7668 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7669 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7670 Rename from dwarf2_section_buffer_overflow_complaint.
7671 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7672 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7673
7674 2020-03-26 Tom Tromey <tom@tromey.com>
7675
7676 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7677 Declare.
7678 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7679 Move from read.c.
7680 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7681 to section.c.
7682
7683 2020-03-26 Tom Tromey <tom@tromey.com>
7684
7685 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7686
7687 2020-03-26 Tom Tromey <tom@tromey.com>
7688
7689 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7690 "builder".
7691 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7692 parameter.
7693 (dwarf_decode_macros): Update.
7694
7695 2020-03-26 Tom Tromey <tom@tromey.com>
7696
7697 * dwarf2/read.c (read_attribute_value): Update.
7698 (read_indirect_string_from_dwz): Move to dwz.c; change into
7699 method.
7700 (dwarf_decode_macro_bytes): Update.
7701 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7702 * dwarf2/dwz.c: New file.
7703 * Makefile.in (COMMON_SFILES): Add dwz.c.
7704
7705 2020-03-26 Tom Tromey <tom@tromey.com>
7706
7707 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7708 * dwarf2/read.c: Add include.
7709 * dwarf2/index-write.c: Add include.
7710 * dwarf2/index-cache.c: Add include.
7711 * dwarf2/dwz.h: New file.
7712
7713 2020-03-25 Tom Tromey <tom@tromey.com>
7714
7715 * compile/compile-object-load.c (get_out_value_type): Mention
7716 correct symbol name in error message.
7717
7718 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
7719
7720 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7721
7722 2020-03-25 Tom de Vries <tdevries@suse.de>
7723
7724 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7725 * symmisc.c (dump_symtab_1): Print user and includes fields.
7726 (maintenance_info_symtabs): Same.
7727
7728 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7729
7730 PR gdb/25534
7731 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7732 (riscv_regcache_cooked_write): New function.
7733 (riscv_push_dummy_call): Use new function.
7734 (riscv_return_value): Likewise.
7735
7736 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7737
7738 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7739 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7740 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7741 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7742 * infrun.c (follow_fork): Likewise.
7743 (follow_fork_inferior): Likewise.
7744 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7745 * linux-nat.h (class linux_nat_target): Likewise.
7746 * remote.c (class remote_target) <follow_fork>: Likewise.
7747 (remote_target::follow_fork): Likewise.
7748 * target-delegates.c: Re-generate.
7749 * target.c (default_follow_fork): Likewise.
7750 (target_follow_fork): Likewise.
7751 * target.h (struct target_ops) <follow_fork>: Likewise.
7752 (target_follow_fork): Likewise.
7753
7754 2020-03-24 Tom de Vries <tdevries@suse.de>
7755
7756 * psymtab.c (maintenance_info_psymtabs): Print user field.
7757
7758 2020-03-20 Tom Tromey <tromey@adacore.com>
7759
7760 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7761 const.
7762 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7763 const.
7764
7765 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
7766
7767 * ptrace.m4: Don't check for ptrace declaration.
7768 * config.in: Re-generate.
7769 * configure: Re-generate.
7770 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7771 not defined.
7772
7773 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7774
7775 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7776 `PTRACE_TYPE_RET'.
7777 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7778 * sparc-nat.c (gdb_ptrace): Likewise.
7779 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7780
7781 2020-03-20 Tom Tromey <tromey@adacore.com>
7782
7783 * c-exp.y (lex_one_token): Fix assert.
7784
7785 2020-03-20 Tom Tromey <tromey@adacore.com>
7786
7787 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7788 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7789 strncpy call.
7790
7791 2020-03-20 Tom Tromey <tromey@adacore.com>
7792
7793 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7794
7795 2020-03-20 Tom Tromey <tromey@adacore.com>
7796
7797 * ada-valprint.c (print_variant_part): Remove parameters; switch
7798 to value-based API.
7799 (print_field_values): Likewise.
7800 (ada_val_print_struct_union): Likewise.
7801 (ada_value_print_1): Update.
7802
7803 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7804
7805 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7806 nbsd_nat_target instead of inf_ptrace_target.
7807 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7808 nbsd_nat_target.
7809
7810 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7811
7812 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7813 it to the ptrace call.
7814 * (store_registers): Likewise.
7815
7816 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7817
7818 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7819 it to the ptrace call.
7820 * (store_registers): Likewise.
7821
7822 2020-03-19 Luis Machado <luis.machado@linaro.org>
7823
7824 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7825 valid, fetch vg value from ptrace.
7826
7827 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7828 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7829 * inf-ptrace.c: Likewise.
7830 * (gdb_ptrace): Add.
7831 * (inf_ptrace_target::resume): Update.
7832 * (inf_ptrace_target::xfer_partial): Likewise.
7833 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7834 * (inf_ptrace_peek_poke): Update.
7835
7836 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7837
7838 * x86-bsd-nat.c (gdb_ptrace): New.
7839 * (x86bsd_dr_set): Add new argument `ptid'.
7840 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7841 x86bsd_dr_set_addr): Update.
7842
7843 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7844
7845 * remote.c (remote_target::process_stop_reply): Handle events for
7846 all threads differently.
7847
7848 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7849
7850 * completer.c (completion_tracker::remove_completion): Define new
7851 function.
7852 * completer.h (completion_tracker::remove_completion): Declare new
7853 function.
7854 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7855 when adding a C++ function symbol.
7856
7857 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7858
7859 * completer.c (completion_tracker::completion_hash_entry): Define
7860 new class.
7861 (advance_to_filename_complete_word_point): Call
7862 recompute_lowest_common_denominator.
7863 (completion_tracker::completion_tracker): Call discard_completions
7864 to setup the hash table.
7865 (completion_tracker::discard_completions): Allow for being called
7866 from the constructor, pass new equal function, and element deleter
7867 when constructing the hash table. Initialise new class member
7868 variables.
7869 (completion_tracker::maybe_add_completion): Remove use of
7870 m_entries_vec, and store more information into m_entries_hash.
7871 (completion_tracker::recompute_lcd_visitor): New function, most
7872 content taken from...
7873 (completion_tracker::recompute_lowest_common_denominator):
7874 ...here, this now just visits each item in the hash calling the
7875 above visitor.
7876 (completion_tracker::build_completion_result): Remove use of
7877 m_entries_vec, call recompute_lowest_common_denominator.
7878 * completer.h (completion_tracker::have_completions): Remove use
7879 of m_entries_vec.
7880 (completion_tracker::completion_hash_entry): Declare new class.
7881 (completion_tracker::recompute_lowest_common_denominator): Change
7882 function signature.
7883 (completion_tracker::recompute_lcd_visitor): Declare new function.
7884 (completion_tracker::m_entries_vec): Delete.
7885 (completion_tracker::m_entries_hash): Initialize to NULL.
7886 (completion_tracker::m_lowest_common_denominator_valid): New
7887 member variable.
7888 (completion_tracker::m_lowest_common_denominator_max_length): New
7889 member variable.
7890
7891 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7892
7893 * regformats/regdef.h: Put reg in gdb namespace.
7894
7895 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7896
7897 * i386-bsd-nat.c (gdb_ptrace): New.
7898 * (i386bsd_fetch_inferior_registers,
7899 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7900 * (i386bsd_fetch_inferior_registers,
7901 i386bsd_store_inferior_registers) Use gdb_ptrace.
7902
7903 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7904
7905 * amd64-bsd-nat.c (gdb_ptrace): New.
7906 * (amd64bsd_fetch_inferior_registers,
7907 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7908 * (amd64bsd_fetch_inferior_registers,
7909 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7910
7911 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7912
7913 * user-regs.c (user_reg::read): Rename to...
7914 (user_reg::xread): ...this.
7915 * (append_user_reg): Rename argument `read' to `xread'.
7916 * (user_reg_add_builtin): Likewise.
7917 * (user_reg_add): Likewise.
7918 * (value_of_user_reg): Likewise.
7919
7920 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7921
7922 * sparc-nat.c (gdb_ptrace): New.
7923 * sparc-nat.c (sparc_fetch_inferior_registers)
7924 (sparc_store_inferior_registers) Remove obsolete comment.
7925 * sparc-nat.c (sparc_fetch_inferior_registers)
7926 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7927 * sparc-nat.c (sparc_fetch_inferior_registers)
7928 (sparc_store_inferior_registers) Use gdb_ptrace.
7929
7930 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7931
7932 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7933 it to the ptrace call.
7934 * sh-nbsd-nat.c (store_registers): Likewise.
7935
7936 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7937
7938 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7939 nbsd_nat_target instead of inf_ptrace_target.
7940 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7941 nbsd_nat_target.
7942
7943 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7944
7945 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7946
7947 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7948
7949 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7950 <sys/sysctl.h>.
7951 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7952
7953 2020-03-17 Tom de Vries <tdevries@suse.de>
7954
7955 PR gdb/23710
7956 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7957 fields.
7958 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7959 fields.
7960 (process_imported_unit_die): Skip import of c++ CUs.
7961
7962 2020-03-16 Tom Tromey <tom@tromey.com>
7963
7964 * p-valprint.c (pascal_object_print_value): Initialize
7965 base_value.
7966
7967 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7968 Shahab Vahedi <shahab@synopsys.com>
7969
7970 * Makefile.in: Add arch/arc.o
7971 * configure.tgt: Likewise.
7972 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7973 (_initialize_arc_tdep): Don't initialize old target descriptions.
7974 (arc_read_description): New function to cache target descriptions.
7975 * arc-tdep.h (arc_read_description): Add proto type.
7976 * arch/arc.c: New file.
7977 * arch/arc.h: Likewise.
7978 * features/Makefile: Replace old target descriptions with new.
7979 * features/arc-arcompact.c: Remove.
7980 * features/arc-arcompact.xml: Likewise.
7981 * features/arc-v2.c: Likewise
7982 * features/arc-v2.xml: Likewise
7983 * features/arc/aux-arcompact.xml: New file.
7984 * features/arc/aux-v2.xml: Likewise.
7985 * features/arc/core-arcompact.xml: Likewise.
7986 * features/arc/core-v2.xml: Likewise.
7987 * features/arc/aux-arcompact.c: Generate.
7988 * features/arc/aux-v2.c: Likewise.
7989 * features/arc/core-arcompact.c: Likewise.
7990 * features/arc/core-v2.c: Likewise.
7991 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7992
7993 2020-03-16 Tom Tromey <tromey@adacore.com>
7994
7995 PR gdb/25663:
7996 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7997 putting value into bcache.
7998
7999 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8000
8001 PR gdb/21500
8002 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
8003 to...
8004 (amd64_windows_init_abi_common): ... this. Don't set size of
8005 long type.
8006 (amd64_windows_init_abi): New function.
8007 (amd64_cygwin_init_abi): New function.
8008 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
8009 the Cygwin OS ABI.
8010 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
8011 comment.
8012
8013 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8014
8015 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
8016 * windows-tdep.c (CYGWIN_DLL_NAME): New.
8017 (pe_import_directory_entry): New struct type.
8018 (is_linked_with_cygwin_dll): New function.
8019 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
8020 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
8021 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
8022
8023 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8024
8025 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
8026 i386_cygwin_core_osabi_sniffer.
8027
8028 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8029
8030 * i386-cygwin-tdep.c: Rename to...
8031 * i386-windows-tdep.c: ... this.
8032 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
8033 i386-windows-tdep.c.
8034 * configure.tgt: Likewise.
8035
8036 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8037
8038 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
8039 * osabi.c (gdb_osabi_names): Add "Windows".
8040 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
8041 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
8042 (i386_cygwin_core_osabi_sniffer): New function, extracted from
8043 i386_cygwin_osabi_sniffer.
8044 (_initialize_i386_cygwin_tdep): Register OS ABI
8045 GDB_OSABI_WINDOWS for i386.
8046 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
8047 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
8048 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
8049 for x86-64.
8050 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
8051 when the target matches '*-*-mingw*'.
8052
8053 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8054
8055 * defs.h (enum gdb_osabi): Move to...
8056 * osabi.h (enum gdb_osabi): ... here.
8057 * gdbarch.sh: Include osabi.h in gdbarch.h.
8058 * gdbarch.h: Re-generate.
8059
8060 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8061
8062 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
8063 function.
8064 (_initialize_amd64_windows_tdep): Register osabi sniffer.
8065
8066 2020-03-14 Tom Tromey <tom@tromey.com>
8067
8068 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
8069 for C++.
8070 (c_type_print_modifier): Likewise. Add "language" parameter.
8071 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
8072 (c_type_print_base_1): Update.
8073 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
8074 constants.
8075 * type-stack.c (type_stack::insert): Handle tp_atomic and
8076 tp_restrict.
8077 (type_stack::follow_type_instance_flags): Likewise.
8078 (type_stack::follow_types): Likewise. Merge type-following code.
8079 * c-exp.y (RESTRICT, ATOMIC): New tokens.
8080 (space_identifier, cv_with_space_id)
8081 (const_or_volatile_or_space_identifier_noopt)
8082 (const_or_volatile_or_space_identifier): Remove.
8083 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
8084 rules.
8085 (ptr_operator, typebase): Update.
8086 (enum token_flag) <FLAG_C>: New constant.
8087 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
8088 "_Atomic".
8089 (lex_one_token): Handle FLAG_C.
8090
8091 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8092
8093 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
8094 it to the ptrace call.
8095 * m68k-bsd-nat.c (store_registers): Likewise.
8096
8097 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8098
8099 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
8100 gdb_byte *.
8101 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
8102 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
8103 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
8104
8105 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8106
8107 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
8108 nbsd_nat_target instead of inf_ptrace_target.
8109 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8110 nbsd_nat_target.
8111
8112 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8113
8114 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
8115 register_t.
8116
8117 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8118
8119 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
8120 it to the ptrace call.
8121 * alpha-bsd-nat.c (store_registers): Likewise.
8122
8123 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8124
8125 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
8126 includes.
8127 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
8128 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
8129 fill_fpregset): Likewise.
8130
8131 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8132
8133 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
8134 nbsd_nat_target instead of inf_ptrace_target.
8135 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8136 nbsd_nat_target.
8137
8138 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8139
8140 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
8141 register_t.
8142
8143 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8144
8145 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
8146 it to the ptrace call.
8147 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
8148 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
8149 * arm-nbsd-nat.c (store_register): Likewise.
8150 * arm-nbsd-nat.c (store_regs): Likewise.
8151 * arm-nbsd-nat.c (store_fp_register): Likewise.
8152 * arm-nbsd-nat.c (store_fp_regs): Likewise.
8153
8154 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8155
8156 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
8157 nbsd_nat_target instead of inf_ptrace_target.
8158 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8159 nbsd_nat_target.
8160
8161 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8162
8163 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
8164 it to the ptrace call.
8165 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
8166
8167 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8168
8169 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
8170 it to the ptrace call.
8171 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
8172
8173 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8174
8175 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
8176 gdb_byte *.
8177 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
8178
8179 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8180
8181 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
8182 instead of inf_ptrace_target.
8183 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8184 nbsd_nat_target.
8185
8186 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8187
8188 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8189 register_t.
8190
8191 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8192
8193 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8194 register_t.
8195
8196 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8197
8198 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
8199 register_t.
8200
8201 2020-03-13 Tom Tromey <tom@tromey.com>
8202
8203 * value.h (val_print): Don't declare.
8204 * valprint.h (val_print_array_elements)
8205 (val_print_scalar_formatted, generic_val_print): Don't declare.
8206 * valprint.c (generic_val_print_array): Take a struct value.
8207 (generic_val_print_ptr, generic_val_print_memberptr)
8208 (generic_val_print_bool, generic_val_print_int)
8209 (generic_val_print_char, generic_val_print_complex)
8210 (generic_val_print): Remove.
8211 (generic_value_print): Update.
8212 (do_val_print): Remove unused parameters. Don't call
8213 la_val_print.
8214 (val_print): Remove.
8215 (common_val_print): Update. Don't call value_check_printable.
8216 (val_print_scalar_formatted, val_print_array_elements): Remove.
8217 * rust-lang.c (rust_val_print): Remove.
8218 (rust_language_defn): Update.
8219 * p-valprint.c (pascal_val_print): Remove.
8220 (pascal_value_print_inner): Update.
8221 (pascal_object_print_val_fields, pascal_object_print_val):
8222 Remove.
8223 (pascal_object_print_static_field): Update.
8224 * p-lang.h (pascal_val_print): Don't declare.
8225 * p-lang.c (pascal_language_defn): Update.
8226 * opencl-lang.c (opencl_language_defn): Update.
8227 * objc-lang.c (objc_language_defn): Update.
8228 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
8229 * m2-lang.h (m2_val_print): Don't declare.
8230 * m2-lang.c (m2_language_defn): Update.
8231 * language.h (struct language_defn) <la_val_print>: Remove.
8232 * language.c (unk_lang_value_print_inner): Rename. Change
8233 argument types.
8234 (unknown_language_defn, auto_language_defn): Update.
8235 * go-valprint.c (go_val_print): Remove.
8236 * go-lang.h (go_val_print): Don't declare.
8237 * go-lang.c (go_language_defn): Update.
8238 * f-valprint.c (f_val_print): Remove.
8239 * f-lang.h (f_value_print): Don't declare.
8240 * f-lang.c (f_language_defn): Update.
8241 * d-valprint.c (d_val_print): Remove.
8242 * d-lang.h (d_value_print): Don't declare.
8243 * d-lang.c (d_language_defn): Update.
8244 * cp-valprint.c (cp_print_value_fields)
8245 (cp_print_value_fields_rtti, cp_print_value): Remove.
8246 (cp_print_static_field): Update.
8247 * c-valprint.c (c_val_print_array, c_val_print_ptr)
8248 (c_val_print_struct, c_val_print_union, c_val_print_int)
8249 (c_val_print_memberptr, c_val_print): Remove.
8250 * c-lang.h (c_val_print_array, cp_print_value_fields)
8251 (cp_print_value_fields_rtti): Don't declare.
8252 * c-lang.c (c_language_defn, cplus_language_defn)
8253 (asm_language_defn, minimal_language_defn): Update.
8254 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
8255 (ada_val_print_enum): Take a struct value.
8256 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
8257 (ada_val_print): Remove.
8258 (ada_value_print_1): Update.
8259 (printable_val_type): Remove.
8260 * ada-lang.h (ada_val_print): Don't declare.
8261 * ada-lang.c (ada_language_defn): Update.
8262
8263 2020-03-13 Tom Tromey <tom@tromey.com>
8264
8265 * valprint.c (do_val_print): Update.
8266 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
8267 a struct value.
8268 (value_to_value_object_no_release): Declare.
8269 * python/py-value.c (value_to_value_object_no_release): New
8270 function.
8271 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
8272 struct value.
8273 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
8274 function.
8275 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
8276 a struct value.
8277 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
8278 Declare.
8279 (gdbscm_apply_val_pretty_printer): Take a struct value.
8280 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
8281 value.
8282 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
8283 value.
8284 * extension-priv.h (struct extension_language_ops)
8285 <apply_val_pretty_printer>: Take a struct value.
8286 * cp-valprint.c (cp_print_value): Create a struct value.
8287 (cp_print_value): Update.
8288
8289 2020-03-13 Tom Tromey <tom@tromey.com>
8290
8291 * ada-valprint.c (print_field_values): Call common_val_print.
8292
8293 2020-03-13 Tom Tromey <tom@tromey.com>
8294
8295 * ada-valprint.c (val_print_packed_array_elements): Remove
8296 bitoffset and val parameters. Call common_val_print.
8297 (ada_val_print_string): Remove offset, address, and original_value
8298 parameters.
8299 (ada_val_print_array): Update.
8300 (ada_value_print_array): New function.
8301 (ada_value_print_1): Call it.
8302
8303 2020-03-13 Tom Tromey <tom@tromey.com>
8304
8305 * ada-valprint.c (ada_value_print): Use common_val_print.
8306
8307 2020-03-13 Tom Tromey <tom@tromey.com>
8308
8309 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
8310
8311 2020-03-13 Tom Tromey <tom@tromey.com>
8312
8313 * ada-valprint.c (ada_value_print_num): New function.
8314 (ada_value_print_1): Use it.
8315
8316 2020-03-13 Tom Tromey <tom@tromey.com>
8317
8318 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8319
8320 2020-03-13 Tom Tromey <tom@tromey.com>
8321
8322 * ada-valprint.c (ada_value_print_ptr): New function.
8323 (ada_value_print_1): Use it.
8324
8325 2020-03-13 Tom Tromey <tom@tromey.com>
8326
8327 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8328 call common_val_print.
8329 (ada_val_print_1): Update.
8330 (ada_value_print_1): New function.
8331 (ada_value_print_inner): Rewrite.
8332
8333 2020-03-13 Tom Tromey <tom@tromey.com>
8334
8335 * cp-valprint.c (cp_print_value_fields): Update.
8336 (cp_print_value): New function.
8337
8338 2020-03-13 Tom Tromey <tom@tromey.com>
8339
8340 * m2-valprint.c (m2_value_print_inner): Use
8341 cp_print_value_fields.
8342 * cp-valprint.c (cp_print_value_fields): New function.
8343 * c-valprint.c (c_value_print_struct): New function.
8344 (c_value_print_inner): Use c_value_print_struct.
8345 * c-lang.h (cp_print_value_fields): Declare.
8346
8347 2020-03-13 Tom Tromey <tom@tromey.com>
8348
8349 * c-valprint.c (c_value_print_array): New function.
8350 (c_value_print_inner): Use it.
8351
8352 2020-03-13 Tom Tromey <tom@tromey.com>
8353
8354 * c-valprint.c (c_value_print_memberptr): New function.
8355 (c_value_print_inner): Use it.
8356
8357 2020-03-13 Tom Tromey <tom@tromey.com>
8358
8359 * c-valprint.c (c_value_print_int): New function.
8360 (c_value_print_inner): Use it.
8361
8362 2020-03-13 Tom Tromey <tom@tromey.com>
8363
8364 * c-valprint.c (c_value_print_ptr): New function.
8365 (c_value_print_inner): Use it.
8366
8367 2020-03-13 Tom Tromey <tom@tromey.com>
8368
8369 * c-valprint.c (c_value_print_inner): Rewrite.
8370
8371 2020-03-13 Tom Tromey <tom@tromey.com>
8372
8373 * valprint.c (generic_value_print_complex): New function.
8374 (generic_value_print): Use it.
8375
8376 2020-03-13 Tom Tromey <tom@tromey.com>
8377
8378 * valprint.c (generic_val_print_float): Don't call
8379 val_print_scalar_formatted.
8380 (generic_val_print, generic_value_print): Update.
8381
8382 2020-03-13 Tom Tromey <tom@tromey.com>
8383
8384 * valprint.c (generic_value_print_char): New function
8385 (generic_value_print): Use it.
8386
8387 2020-03-13 Tom Tromey <tom@tromey.com>
8388
8389 * valprint.c (generic_value_print_int): New function.
8390 (generic_value_print): Use it.
8391
8392 2020-03-13 Tom Tromey <tom@tromey.com>
8393
8394 * valprint.c (generic_value_print_bool): New function.
8395 (generic_value_print): Use it.
8396
8397 2020-03-13 Tom Tromey <tom@tromey.com>
8398
8399 * valprint.c (generic_val_print_func): Simplify.
8400 (generic_val_print, generic_value_print): Update.
8401
8402 2020-03-13 Tom Tromey <tom@tromey.com>
8403
8404 * valprint.c (generic_val_print_flags): Remove.
8405 (generic_val_print, generic_value_print): Update.
8406 (val_print_type_code_flags): Add original_value parameter.
8407
8408 2020-03-13 Tom Tromey <tom@tromey.com>
8409
8410 * valprint.c (generic_val_print): Update.
8411 (generic_value_print): Update.
8412 * valprint.c (generic_val_print_enum): Don't call
8413 val_print_scalar_formatted.
8414
8415 2020-03-13 Tom Tromey <tom@tromey.com>
8416
8417 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8418 * valprint.c (generic_value_print_ptr): New function.
8419
8420 2020-03-13 Tom Tromey <tom@tromey.com>
8421
8422 * valprint.c (generic_value_print): Rewrite.
8423
8424 2020-03-13 Tom Tromey <tom@tromey.com>
8425
8426 * p-valprint.c (pascal_object_print_value_fields)
8427 (pascal_object_print_value): New functions.
8428
8429 2020-03-13 Tom Tromey <tom@tromey.com>
8430
8431 * p-valprint.c (pascal_value_print_inner): Rewrite.
8432
8433 2020-03-13 Tom Tromey <tom@tromey.com>
8434
8435 * f-valprint.c (f_value_print_innner): Rewrite.
8436
8437 2020-03-13 Tom Tromey <tom@tromey.com>
8438
8439 * m2-valprint.c (m2_print_unbounded_array): New overload.
8440 (m2_print_unbounded_array): Update.
8441 (m2_print_array_contents): Take a struct value.
8442 (m2_value_print_inner): Rewrite.
8443
8444 2020-03-13 Tom Tromey <tom@tromey.com>
8445
8446 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8447 (d_value_print_inner): New function.
8448 * d-lang.h (d_value_print_inner): Declare.
8449 * d-lang.c (d_language_defn): Use d_value_print_inner.
8450
8451 2020-03-13 Tom Tromey <tom@tromey.com>
8452
8453 * go-valprint.c (go_value_print_inner): New function.
8454 * go-lang.h (go_value_print_inner): Declare.
8455 * go-lang.c (go_language_defn): Use go_value_print_inner.
8456
8457 2020-03-13 Tom Tromey <tom@tromey.com>
8458
8459 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8460 API.
8461 (rust_val_print): Rewrite.
8462 (rust_value_print_inner): New function, from rust_val_print.
8463 (rust_language_defn): Use rust_value_print_inner.
8464
8465 2020-03-13 Tom Tromey <tom@tromey.com>
8466
8467 * ada-valprint.c (ada_value_print_inner): New function.
8468 * ada-lang.h (ada_value_print_inner): Declare.
8469 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8470
8471 2020-03-13 Tom Tromey <tom@tromey.com>
8472
8473 * f-valprint.c (f_value_print_innner): New function.
8474 * f-lang.h (f_value_print_innner): Declare.
8475 * f-lang.c (f_language_defn): Use f_value_print_innner.
8476
8477 2020-03-13 Tom Tromey <tom@tromey.com>
8478
8479 * p-valprint.c (pascal_value_print_inner): New function.
8480 * p-lang.h (pascal_value_print_inner): Declare.
8481 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8482
8483 2020-03-13 Tom Tromey <tom@tromey.com>
8484
8485 * m2-valprint.c (m2_value_print_inner): New function.
8486 * m2-lang.h (m2_value_print_inner): Declare.
8487 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8488
8489 2020-03-13 Tom Tromey <tom@tromey.com>
8490
8491 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8492 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8493 * c-valprint.c (c_value_print_inner): New function.
8494 * c-lang.h (c_value_print_inner): Declare.
8495 * c-lang.c (c_language_defn, cplus_language_defn)
8496 (asm_language_defn, minimal_language_defn): Use
8497 c_value_print_inner.
8498
8499 2020-03-13 Tom Tromey <tom@tromey.com>
8500
8501 * p-valprint.c (pascal_object_print_value_fields): Now static.
8502 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8503
8504 2020-03-13 Tom Tromey <tom@tromey.com>
8505
8506 * c-valprint.c (c_val_print_array): Simplify.
8507
8508 2020-03-13 Tom Tromey <tom@tromey.com>
8509
8510 * valprint.c (value_print_array_elements): New function.
8511 * valprint.h (value_print_array_elements): Declare.
8512
8513 2020-03-13 Tom Tromey <tom@tromey.com>
8514
8515 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8516 * mips-tdep.c (mips_print_register): Use
8517 value_print_scalar_formatted.
8518
8519 2020-03-13 Tom Tromey <tom@tromey.com>
8520
8521 * valprint.h (value_print_scalar_formatted): Declare.
8522 * valprint.c (value_print_scalar_formatted): New function.
8523
8524 2020-03-13 Tom Tromey <tom@tromey.com>
8525
8526 * valprint.h (generic_value_print): Declare.
8527 * valprint.c (generic_value_print): New function.
8528
8529 2020-03-13 Tom Tromey <tom@tromey.com>
8530
8531 * valprint.c (do_val_print): Call la_value_print_inner, if
8532 available.
8533 * rust-lang.c (rust_language_defn): Update.
8534 * p-lang.c (pascal_language_defn): Update.
8535 * opencl-lang.c (opencl_language_defn): Update.
8536 * objc-lang.c (objc_language_defn): Update.
8537 * m2-lang.c (m2_language_defn): Update.
8538 * language.h (struct language_defn) <la_value_print_inner>: New
8539 member.
8540 * language.c (unknown_language_defn, auto_language_defn): Update.
8541 * go-lang.c (go_language_defn): Update.
8542 * f-lang.c (f_language_defn): Update.
8543 * d-lang.c (d_language_defn): Update.
8544 * c-lang.c (c_language_defn, cplus_language_defn)
8545 (asm_language_defn, minimal_language_defn): Update.
8546 * ada-lang.c (ada_language_defn): Update.
8547
8548 2020-03-13 Tom Tromey <tom@tromey.com>
8549
8550 * c-valprint.c (c_value_print): Use common_val_print.
8551
8552 2020-03-13 Tom Tromey <tom@tromey.com>
8553
8554 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8555
8556 2020-03-13 Tom Tromey <tom@tromey.com>
8557
8558 * f-valprint.c (f77_print_array_1, f_val_print): Use
8559 common_val_print.
8560
8561 2020-03-13 Tom Tromey <tom@tromey.com>
8562
8563 * riscv-tdep.c (riscv_print_one_register_info): Use
8564 common_val_print.
8565
8566 2020-03-13 Tom Tromey <tom@tromey.com>
8567
8568 * mi/mi-main.c (output_register): Use common_val_print.
8569
8570 2020-03-13 Tom Tromey <tom@tromey.com>
8571
8572 * infcmd.c (default_print_one_register_info): Use
8573 common_val_print.
8574
8575 2020-03-13 Tom Tromey <tom@tromey.com>
8576
8577 * valprint.h (common_val_print_checked): Declare.
8578 * valprint.c (common_val_print_checked): New function.
8579 * stack.c (print_frame_arg): Use common_val_print_checked.
8580
8581 2020-03-13 Tom Tromey <tom@tromey.com>
8582
8583 * valprint.c (do_val_print): New function, from val_print.
8584 (val_print): Use do_val_print.
8585 (common_val_print): Use do_val_print.
8586
8587 2020-03-13 Tom Tromey <tom@tromey.com>
8588
8589 * valprint.c (value_print): Use scoped_value_mark.
8590
8591 2020-03-13 Tom de Vries <tdevries@suse.de>
8592
8593 PR symtab/25646
8594 * psymtab.c (partial_symtab::partial_symtab): Don't set
8595 globals_offset and statics_offset. Push element onto
8596 current_global_psymbols and current_static_psymbols stacks.
8597 (concat): New function.
8598 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8599 element from current_global_psymbols and current_static_psymbols
8600 stacks. Concat popped elements to global_psymbols and
8601 static_symbols.
8602 (add_psymbol_to_list): Use current_global_psymbols and
8603 current_static_psymbols stacks.
8604 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8605 current_static_psymbols fields.
8606
8607 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8608
8609 * corelow.c (sniff_core_bfd): Remove.
8610 (class core_target) <m_core_vec>: Remove.
8611 (core_target::core_target): Update.
8612 (core_file_fns): Remove.
8613 (deprecated_add_core_fns): Remove.
8614 (default_core_sniffer): Remove.
8615 (sniff_core_bfd): Remove.
8616 (default_check_format): Remove.
8617 (gdb_check_format): Remove.
8618 (core_target_open): Update.
8619 (core_target::get_core_register_section): Update.
8620 (get_core_registers_cb): Update.
8621 (core_target::fetch_registers): Update.
8622 * gdbcore.h (struct core_fns): Remove.
8623 (deprecated_add_core_fns): Remove.
8624 (default_core_sniffer): Remove.
8625 (default_check_format): Remove.
8626
8627 2020-03-12 Tom Tromey <tom@tromey.com>
8628
8629 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8630 CORE_ADDR.
8631 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8632
8633 2020-03-12 Tom Tromey <tom@tromey.com>
8634
8635 * remote.c (remote_target::download_tracepoint)
8636 (remote_target::enable_tracepoint)
8637 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8638 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8639 sprintf_vma.
8640
8641 2020-03-12 Tom Tromey <tom@tromey.com>
8642
8643 * symfile-mem.c: Update CORE_ADDR size assert.
8644
8645 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8646
8647 * selftest.m4: Move to gdbsupport/.
8648 * acinclude.m4: Update path to selftest.m4.
8649
8650 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8651
8652 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8653 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8654 gdbarch-selfselftests.c and selftest-arch.c.
8655 (SUBDIR_UNITTESTS_OBS): Rename to...
8656 (SELFTESTS_OBS): ... this.
8657 (COMMON_SFILES): Remove disasm-selftests.c and
8658 gdbarch-selftests.c.
8659 * configure.ac: Don't add selftest-arch.{c,o} to
8660 CONFIG_{SRCS,OBS}.
8661 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8662 preprocessor conditions.
8663
8664 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8665
8666 * configure.ac: Don't source bfd/development.sh.
8667 * selftest.m4: Modify comment.
8668 * configure: Re-generate.
8669
8670 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8671
8672 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8673 not "true" or "false".
8674 * configure: Re-generate.
8675
8676 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8677
8678 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8679 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8680 renamed to arm_nbsd_supply_gregset.
8681 (fetch_register): Update to call arm_nbsd_supply_gregset.
8682 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8683 (arm_netbsd_nat_target::fetch_registers): Update.
8684 (fetch_elfcore_registers): Removed.
8685 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8686 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8687 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8688 not require NetBSD system headers.
8689 (arm_nbsd_regset): New struct.
8690 (arm_nbsd_iterate_over_regset_sections): New function.
8691 (arm_netbsd_init_abi_common): Updated to call
8692 set_gdbarch_iterate_over_regset_sections.
8693 * arm-nbsd-tdep.h: New file.
8694
8695 2020-03-11 Kevin Buettner <kevinb@redhat.com>
8696
8697 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8698 recursion.
8699
8700 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
8701
8702 * configure: Re-generate.
8703
8704 2020-03-11 Tom Tromey <tromey@adacore.com>
8705
8706 * ada-typeprint.c (print_choices): Fix comment.
8707
8708 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8709
8710 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8711 previous item in the list, when the list has no items.
8712
8713 2020-03-11 Tom de Vries <tdevries@suse.de>
8714
8715 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8716 PROP_LOCLIST handling code.
8717
8718 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8719
8720 * buildsym-legacy.c (record_line): Pass extra parameter to
8721 record_line.
8722 * buildsym.c (buildsym_compunit::record_line): Take an extra
8723 parameter, reduce duplication in the line table, and record the
8724 is_stmt flag in the line table.
8725 * buildsym.h (buildsym_compunit::record_line): Add extra
8726 parameter.
8727 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8728 non-statement lines.
8729 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8730 this to the symtab builder.
8731 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8732 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8733 through to dwarf_record_line_1.
8734 * infrun.c (process_event_stop_test): When stepping, don't stop at
8735 a non-statement instruction, and only refresh the step info when
8736 we land in the middle of a line's range. Also add an extra
8737 comment.
8738 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8739 field.
8740 * record-btrace.c (btrace_find_line_range): Only record lines
8741 marked as is-statement.
8742 * stack.c (frame_show_address): Show the frame address if we are
8743 in a non-statement sal.
8744 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8745 (maintenance_print_one_line_table): Print a header for the is_stmt
8746 column, and include is_stmt information in the output.
8747 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8748 preference to non-statements.
8749 (find_pcs_for_symtab_line): Prefer is-statement entries.
8750 (find_line_common): Likewise.
8751 * symtab.h (struct linetable_entry): Add is_stmt field.
8752 (struct symtab_and_line): Likewise.
8753 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8754 arranging the line table.
8755
8756 2020-03-07 Tom de Vries <tdevries@suse.de>
8757
8758 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8759 DIE.
8760
8761 2020-03-07 Tom Tromey <tom@tromey.com>
8762
8763 * valops.c (value_literal_complex): Remove obsolete comment.
8764 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8765 comment.
8766
8767 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8768
8769 * infrun.h: Forward-declare thread_info.
8770 (set_step_info): Add thread_info parameter, add doc.
8771 * infrun.c (set_step_info): Add thread_info parameter, move doc
8772 to header.
8773 * infrun.c (process_event_stop_test): Pass thread to
8774 set_step_info call.
8775 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8776 set_step_info.
8777 (prepare_one_step): Add thread_info parameter, pass it to
8778 set_step_frame and prepare_one_step (recursive) call.
8779 (step_1): Pass thread to prepare_one_step call.
8780 (step_command_fsm::should_stop): Pass thread to
8781 prepare_one_step.
8782 (until_next_fsm): Pass thread to set_step_frame call.
8783 (finish_command): Pass thread to set_step_info call.
8784
8785 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
8786
8787 * windows-tdep.c (windows_solib_create_inferior_hook):
8788 Check if inferior is running.
8789
8790 2020-03-06 Tom de Vries <tdevries@suse.de>
8791
8792 * NEWS: Fix "the the".
8793 * ctfread.c: Same.
8794
8795 2020-03-06 Tom de Vries <tdevries@suse.de>
8796
8797 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8798
8799 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8800
8801 * .dir-locals.el: Add a comment referencing the other copies of
8802 this file.
8803
8804 2020-03-05 John Baldwin <jhb@FreeBSD.org>
8805
8806 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8807 psargs.
8808
8809 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8810
8811 * .gitattributes: New file.
8812
8813 2020-03-04 Tom Tromey <tom@tromey.com>
8814
8815 * symmisc.c (print_symbol_bcache_statistics)
8816 (print_objfile_statistics): Update.
8817 * symfile.c (allocate_symtab): Use intern.
8818 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8819 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8820 macro_cache>: Remove.
8821 <string_cache>: New member.
8822 (struct objfile) <intern>: New methods.
8823 * elfread.c (elf_symtab_read): Use intern.
8824 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8825 (dwarf2_compute_name, dwarf2_physname)
8826 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8827 names.
8828 (guess_partial_die_structure_name): Update.
8829 (partial_die_info::fixup): Intern name.
8830 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8831 name.
8832 (dwarf2_name): Intern name. Update.
8833 * buildsym.c (buildsym_compunit::get_macro_table): Use
8834 string_cache.
8835
8836 2020-03-04 Tom Tromey <tom@tromey.com>
8837
8838 * jit.c (bfd_open_from_target_memory): Make "target" const.
8839 * corefile.c (gnutarget): Now const.
8840 * gdbcore.h (gnutarget): Now const.
8841
8842 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
8843
8844 * NEWS: Mention support for WOW64 processes.
8845 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8846 (amd64_windows_segment_register_p): Remove static.
8847 (_initialize_amd64_windows_nat): Update.
8848 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8849 * i386-windows-nat.c (context_offset): Update.
8850 (i386_mappings): Rename and remove static.
8851 (i386_windows_segment_register_p): Remove static.
8852 (_initialize_i386_windows_nat): Update.
8853 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8854 (STATUS_WX86_SINGLE_STEP): New macro.
8855 (EnumProcessModulesEx): New macro.
8856 (Wow64SuspendThread): New macro.
8857 (Wow64GetThreadContext): New macro.
8858 (Wow64SetThreadContext): New macro.
8859 (Wow64GetThreadSelectorEntry): New macro.
8860 (windows_set_context_register_offsets): Add static.
8861 (windows_set_segment_register_p): Likewise.
8862 (windows_add_thread): Adapt for WOW64 processes.
8863 (windows_fetch_one_register): Likewise.
8864 (windows_nat_target::fetch_registers): Likewise.
8865 (windows_store_one_register): Likewise.
8866 (display_selector): Likewise.
8867 (display_selectors): Likewise.
8868 (handle_exception): Likewise.
8869 (windows_continue): Likewise.
8870 (windows_nat_target::resume): Likewise.
8871 (windows_add_all_dlls): Likewise.
8872 (do_initial_windows_stuff): Likewise.
8873 (windows_nat_target::attach): Likewise.
8874 (windows_get_exec_module_filename): Likewise.
8875 (windows_nat_target::create_inferior): Likewise.
8876 (windows_xfer_siginfo): Likewise.
8877 (_initialize_loadable): Initialize Wow64SuspendThread,
8878 Wow64GetThreadContext, Wow64SetThreadContext,
8879 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8880 * windows-nat.h (windows_set_context_register_offsets):
8881 Remove declaration.
8882 (windows_set_segment_register_p): Likewise.
8883 (i386_windows_segment_register_p): Add declaration.
8884 (amd64_windows_segment_register_p): Likewise.
8885
8886 2020-03-04 Luis Machado <luis.machado@linaro.org>
8887
8888 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8889 in "info registers" for AArch64/ARM.
8890
8891 The change caused "info registers" to not print GPR's.
8892
8893 gdb/ChangeLog:
8894
8895 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8896
8897 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8898 when reg->group is empty and reggroup is not.
8899
8900 2020-03-03 Tom Tromey <tromey@adacore.com>
8901
8902 * dwarf2/frame.c (struct dwarf2_frame_cache)
8903 <checked_tailcall_bottom, entry_cfa_sp_offset,
8904 entry_cfa_sp_offset_p>: Remove members.
8905 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8906 (dwarf2_frame_prev_register): Don't call
8907 dwarf2_tailcall_sniffer_first.
8908 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8909 * frame-unwind.c (add_unwinder): New fuction.
8910 (frame_unwind_init): Use it. Add tailcall unwinder.
8911
8912 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8913 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8914
8915 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8916 value should be printed as true.
8917
8918 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
8919
8920 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8921 (windows_init_abi): Set and use windows_so_ops.
8922
8923 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8924
8925 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8926 when verifying if dealing with a convenience variable.
8927
8928 2020-03-03 Luis Machado <luis.machado@linaro.org>
8929
8930 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8931
8932 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8933
8934 * infrun.c (gdbarch_supports_displaced_stepping): New.
8935 (use_displaced_stepping): Break up conditions in smaller pieces.
8936 Use gdbarch_supports_displaced_stepping.
8937 (displaced_step_prepare_throw): Use
8938 gdbarch_supports_displaced_stepping.
8939
8940 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8941
8942 * NEWS: Mention new behaviour of the history filename.
8943 * top.c (write_history_p): Add comment.
8944 (show_write_history_p): Add header comment, give a different
8945 message when history writing is on, but the history filename is
8946 empty.
8947 (history_filename): Add comment.
8948 (history_filename_empty): New function.
8949 (show_history_filename): Add header comment, give a different
8950 message when the filename is empty.
8951 (init_history): Compare history_filename against nullptr, and only
8952 read history if the filename is not empty.
8953 (set_history_filename): Add header comment, and only make
8954 non-empty filenames absolute.
8955 (init_main): Make the filename argument to 'set history filename'
8956 optional.
8957
8958 2020-03-02 Christian Biesinger <cbiesinger@google.com>
8959
8960 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8961 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8962 (fetch_fp_register): Update.
8963 (fetch_fp_regs): Update.
8964 (store_fp_register): Update.
8965 (store_fp_regs): Update.
8966 (arm_netbsd_nat_target::read_description): New function.
8967 (fetch_elfcore_registers): Update.
8968
8969 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8970
8971 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8972 general_thread if the stop reply is missing a thread-id.
8973 (remote_target::process_stop_reply): Use the first non-exited
8974 thread if the target didn't pass a thread-id.
8975 * infrun.c (do_target_wait): Move call to
8976 switch_to_inferior_no_thread to ....
8977 (do_target_wait_1): ... here.
8978
8979 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8980
8981 * debuginfod-support.c: Include defs.h first.
8982
8983 2020-02-28 Tom de Vries <tdevries@suse.de>
8984
8985 * symfile.c (set_initial_language): Use default language for lookup.
8986
8987 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
8988
8989 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8990 reader variable, pass `this` to read_cutu_die_from_dwo.
8991
8992 2020-02-27 Aaron Merey <amerey@redhat.com>
8993
8994 * source.c (open_source_file): Check for nullptr when computing
8995 srcpath.
8996
8997 2020-02-27 Tom Tromey <tromey@adacore.com>
8998
8999 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
9000 member.
9001 (dwarf2_add_field): Don't update nfields.
9002 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
9003
9004 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9005
9006 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
9007 abs.
9008
9009 2020-02-26 Tom Tromey <tom@tromey.com>
9010
9011 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
9012 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
9013 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
9014 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
9015 per_cu_data.
9016
9017 2020-02-26 Tom Tromey <tom@tromey.com>
9018
9019 * dwarf2/index-write.c (psym_index_map): Change type.
9020 (add_address_entry_worker, write_one_signatured_type)
9021 (recursively_count_psymbols, recursively_write_psymbols)
9022 (class debug_names, psyms_seen_size, write_gdbindex)
9023 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
9024
9025 2020-02-26 Aaron Merey <amerey@redhat.com>
9026
9027 * Makefile.in: Handle optional debuginfod support.
9028 * NEWS: Update.
9029 * README: Add --with-debuginfod summary.
9030 * config.in: Regenerate.
9031 * configure: Regenerate.
9032 * configure.ac: Handle optional debuginfod support.
9033 * debuginfod-support.c: debuginfod helper functions.
9034 * debuginfod-support.h: Ditto.
9035 * doc/gdb.texinfo: Add --with-debuginfod to configure options
9036 summary.
9037 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
9038 when a dwz file cannot be found.
9039 * elfread.c (elf_symfile_read): Query debuginfod servers when a
9040 debuginfo file cannot be found.
9041 * source.c (open_source_file): Query debuginfod servers when a
9042 source file cannot be found.
9043 * top.c (print_gdb_configuration): Include
9044 --{with,without}-debuginfod in the output.
9045
9046 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
9047
9048 * thread.c (thr_try_catch_cmd): Print thread name.
9049
9050 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
9051
9052 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
9053 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9054 dwarf2_fetch_die_type_sect_off): Move to...
9055 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9056 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9057 dwarf2_fetch_die_type_sect_off): ... here.
9058 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9059 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9060 dwarf2_fetch_die_type_sect_off): Move doc to header file.
9061
9062 2020-02-26 Tom de Vries <tdevries@suse.de>
9063
9064 PR gdb/25603
9065 * symfile.c (set_initial_language): Exit-early if
9066 language_mode == language_mode_manual.
9067
9068 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9069
9070 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
9071 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
9072 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
9073
9074 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
9075
9076 * gdbtypes.c (create_array_type_with_stride): Handle negative
9077 array strides.
9078 * valarith.c (value_subscripted_rvalue): Likewise.
9079
9080 2020-02-25 Luis Machado <luis.machado@linaro.org>
9081
9082 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
9083
9084 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9085
9086 * loc.h (dwarf2_get_die_type): Move to...
9087 * read.h (dwarf2_get_die_type): ... here.
9088 * read.c (dwarf2_get_die_type): Move doc to header.
9089
9090 2020-02-25 Joel Brobecker <brobecker@adacore.com>
9091
9092 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
9093 'gnulib/Makefile.in' to the list.
9094
9095 2020-02-24 Tom Tromey <tom@tromey.com>
9096
9097 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
9098 Remove.
9099 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
9100 XOBNEWVEC.
9101
9102 2020-02-24 Tom Tromey <tom@tromey.com>
9103
9104 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
9105 New method.
9106 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
9107 (dw2_do_instantiate_symtab, dw2_get_file_names)
9108 (build_type_psymtab_dependencies, load_full_type_unit): Update.
9109
9110 2020-02-24 Tom Tromey <tom@tromey.com>
9111
9112 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
9113 make_scoped_restore.
9114 (dwarf2_psymtab::read_symtab): Don't clear
9115 reading_partial_symbols.
9116
9117 2020-02-24 Tom de Vries <tdevries@suse.de>
9118
9119 PR gdb/25592
9120 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
9121
9122 2020-02-24 Tom de Vries <tdevries@suse.de>
9123
9124 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
9125 commands layout next/prev/regs.
9126
9127 2020-02-22 Tom Tromey <tom@tromey.com>
9128
9129 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
9130 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
9131
9132 2020-02-22 Tom Tromey <tom@tromey.com>
9133
9134 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
9135
9136 2020-02-22 Tom Tromey <tom@tromey.com>
9137
9138 * tui/tui-win.c (_initialize_tui_win): Add usage text.
9139 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
9140 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
9141 * tui/tui.c (_initialize_tui): Add usage text.
9142
9143 2020-02-22 Tom Tromey <tom@tromey.com>
9144
9145 * tui/tui-win.c (tui_set_focus_command)
9146 (tui_set_win_height_command): Use error_no_arg.
9147 (_initialize_tui_win): Update help text.
9148 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
9149
9150 2020-02-22 Tom Tromey <tom@tromey.com>
9151
9152 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
9153 * tui/tui-disasm.h (struct tui_disasm_window)
9154 <display_start_addr>: Declare.
9155 * tui/tui-source.h (struct tui_source_window)
9156 <display_start_addr>: Declare.
9157 * tui/tui-winsource.h (struct tui_source_window_base)
9158 <show_source_line, display_start_addr>: New methods.
9159 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
9160 Rename and move to protected section.
9161 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
9162 (tui_source_window_base::do_erase_source_content): Update.
9163 (tui_source_window_base::show_source_line): Now a method.
9164 (tui_source_window_base::show_source_content)
9165 (tui_source_window_base::tui_source_window_base)
9166 (tui_source_window_base::rerender)
9167 (tui_source_window_base::refill)
9168 (tui_source_window_base::do_scroll_horizontal)
9169 (tui_source_window_base::set_is_exec_point_at)
9170 (tui_source_window_base::update_breakpoint_info)
9171 (tui_source_window_base::update_exec_info): Update.
9172 * tui/tui-source.c (tui_source_window::set_contents)
9173 (tui_source_window::showing_source_p)
9174 (tui_source_window::do_scroll_vertical)
9175 (tui_source_window::location_matches_p)
9176 (tui_source_window::line_is_displayed): Update.
9177 (tui_source_window::display_start_addr): New method.
9178 * tui/tui-disasm.c (tui_disasm_window::set_contents)
9179 (tui_disasm_window::do_scroll_vertical)
9180 (tui_disasm_window::location_matches_p): Update.
9181 (tui_disasm_window::display_start_addr): New method.
9182
9183 2020-02-22 Tom Tromey <tom@tromey.com>
9184
9185 * NEWS: Add entry for gdb.register_window_type.
9186 * tui/tui-layout.h (window_factory): New typedef.
9187 (tui_register_window): Declare.
9188 * tui/tui-layout.c (saved_tui_windows): New global.
9189 (tui_apply_current_layout): Use it.
9190 (tui_register_window): New function.
9191 * python/python.c (do_start_initialization): Call
9192 gdbpy_initialize_tui.
9193 (python_GdbMethods): Add "register_window_type" function.
9194 * python/python-internal.h (gdbpy_register_tui_window)
9195 (gdbpy_initialize_tui): Declare.
9196 * python/py-tui.c: New file.
9197 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
9198
9199 2020-02-22 Tom Tromey <tom@tromey.com>
9200
9201 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
9202
9203 2020-02-22 Tom Tromey <tom@tromey.com>
9204
9205 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
9206 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
9207 * tui/tui-data.c (tui_set_win_with_focus): Remove.
9208 (tui_set_win_focus_to): Move from tui-win.c.
9209
9210 2020-02-22 Tom Tromey <tom@tromey.com>
9211
9212 * tui/tui-layout.c (make_standard_window, get_locator_window): New
9213 functions.
9214 (known_window_types): New global.
9215 (tui_get_window_by_name): Reimplement.
9216 (initialize_known_windows): New function.
9217 (validate_window_name): Rewrite.
9218 (_initialize_tui_layout): Call initialize_known_windows.
9219
9220 2020-02-22 Tom Tromey <tom@tromey.com>
9221
9222 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
9223 Remove constants.
9224 * tui/tui-winsource.h (struct tui_source_window_base)
9225 <tui_source_window_base>: Remove parameter.
9226 * tui/tui-winsource.c
9227 (tui_source_window_base::tui_source_window_base): Remove
9228 parameter.
9229 (tui_source_window_base::refill): Update.
9230 * tui/tui-stack.h (struct tui_locator_window)
9231 <tui_locator_window>: Update.
9232 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
9233 Default the constructor.
9234 * tui/tui-regs.h (struct tui_data_item_window)
9235 <tui_data_item_window>: Default the constructor.
9236 (struct tui_data_window) <tui_data_window>: Likewise.
9237 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
9238 Default the constructor.
9239 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
9240 Default the constructor.
9241 <type>: Remove.
9242 (struct tui_win_info) <tui_win_info>: Default the constructor.
9243 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
9244 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
9245 Default the constructor.
9246
9247 2020-02-22 Tom Tromey <tom@tromey.com>
9248
9249 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
9250 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
9251 * tui/tui-win.c (tui_resize_all): Don't call
9252 tui_delete_invisible_windows.
9253 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
9254 done.
9255 (tui_set_layout): Update.
9256 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
9257 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
9258 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
9259
9260 2020-02-22 Tom Tromey <tom@tromey.com>
9261
9262 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
9263 correctly.
9264
9265 2020-02-22 Tom Tromey <tom@tromey.com>
9266
9267 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
9268
9269 2020-02-22 Tom Tromey <tom@tromey.com>
9270
9271 * tui/tui-winsource.h (struct tui_source_window_iterator)
9272 <inner_iterator>: New etytypedef.
9273 <tui_source_window_iterator>: Take "end" parameter.
9274 <tui_source_window_iterator>: Take iterator.
9275 <operator*, advance>: Update.
9276 <m_iter>: Change type.
9277 <m_end>: New field.
9278 (struct tui_source_windows) <begin, end>: Update.
9279 * tui/tui-layout.c (tui_windows): New global.
9280 (tui_apply_current_layout): Clear tui_windows.
9281 (tui_layout_window::apply): Update tui_windows.
9282 * tui/tui-data.h (tui_windows): Declare.
9283 (all_tui_windows): Now inline function.
9284 (class tui_window_iterator, struct all_tui_windows): Remove.
9285
9286 2020-02-22 Tom Tromey <tom@tromey.com>
9287
9288 PR tui/17850:
9289 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
9290 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
9291 "height" argument.
9292 (class tui_layout_window) <get_sizes>: Likewise.
9293 (class tui_layout_split) <tui_layout_split>: Add "vertical"
9294 argument.
9295 <get_sizes>: Add "height" argument.
9296 <m_vertical>: New field.
9297 * tui/tui-layout.c (tui_layout_split::clone): Update.
9298 (tui_layout_split::get_sizes): Add "height" argument.
9299 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
9300 (tui_new_layout_command): Parse "-horizontal".
9301 (_initialize_tui_layout): Update help string.
9302 (tui_layout_split::specification): Add "-horizontal" when needed.
9303 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
9304 argument.
9305 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
9306 New methods.
9307
9308 2020-02-22 Tom Tromey <tom@tromey.com>
9309
9310 * tui/tui-layout.h (enum tui_adjust_result): New.
9311 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
9312 (class tui_layout_window) <adjust_size>: Return
9313 tui_adjust_result. Rewrite.
9314 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9315 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9316
9317 2020-02-22 Tom Tromey <tom@tromey.com>
9318
9319 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9320 parameter and return types.
9321 (class tui_layout_base) <specification>: Add "depth".
9322 (class tui_layout_window) <specification>: Add "depth".
9323 (class tui_layout_split) <specification>: Add "depth".
9324 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9325 and return types.
9326 (tui_new_layout_command): Parse sub-layouts.
9327 (_initialize_tui_layout): Update help string.
9328 (tui_layout_window::specification): Add "depth".
9329 (add_layout_command): Update.
9330
9331 2020-02-22 Tom Tromey <tom@tromey.com>
9332
9333 * NEWS: Add "tui new-layout" item.
9334 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9335 Add new-layout command to help text.
9336 (validate_window_name): New function.
9337 (tui_new_layout_command): New function.
9338 (_initialize_tui_layout): Register "new-layout".
9339 (tui_layout_window::specification): New method.
9340 (tui_layout_window::specification): New method.
9341 * tui/tui-layout.h (class tui_layout_base) <specification>: New
9342 method.
9343 (class tui_layout_window) <specification>: New method.
9344 (class tui_layout_split) <specification>: New method.
9345
9346 2020-02-22 Tom Tromey <tom@tromey.com>
9347
9348 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9349 * tui/tui-win.c (window_name_completer): Update comment.
9350 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9351 Declare method.
9352 (class tui_layout_window) <replace_window>: Likewise.
9353 (class tui_layout_split) <replace_window>: Likewise.
9354 (tui_set_layout): Don't declare.
9355 (tui_set_initial_layout): Declare function.
9356 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9357 (asm_regs_layout): New globals.
9358 (tui_current_layout, show_layout): Remove.
9359 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9360 (find_layout, tui_apply_layout): New function.
9361 (layout_completer): Remove.
9362 (tui_next_layout): Reimplement.
9363 (tui_next_layout_command): New function.
9364 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9365 (tui_regs_layout): Reimplement.
9366 (tui_regs_layout_command): New function.
9367 (extract_display_start_addr): Rewrite.
9368 (next_layout, prev_layout): Remove.
9369 (tui_layout_window::replace_window): New method.
9370 (tui_layout_split::replace_window): New method.
9371 (destroy_layout): New function.
9372 (layout_list): New global.
9373 (add_layout_command): New function.
9374 (initialize_layouts): Update.
9375 (tui_layout_command): New function.
9376 (_initialize_tui_layout): Install "layout" commands.
9377 * tui/tui-data.h (enum tui_layout_type): Remove.
9378 (tui_current_layout): Don't declare.
9379
9380 2020-02-22 Tom Tromey <tom@tromey.com>
9381
9382 * tui/tui-regs.c (tui_reg_layout): Remove.
9383 (tui_reg_command): Use tui_regs_layout.
9384 * tui/tui-layout.h (tui_reg_command): Declare.
9385 * tui/tui-layout.c (tui_reg_command): New function.
9386
9387 2020-02-22 Tom Tromey <tom@tromey.com>
9388
9389 * tui/tui.c (tui_rl_delete_other_windows): Call
9390 tui_remove_some_windows.
9391 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9392 Declare method.
9393 (class tui_layout_window) <remove_windows>: New method.
9394 (class tui_layout_split) <remove_windows>: Declare.
9395 (tui_remove_some_windows): Declare.
9396 * tui/tui-layout.c (tui_remove_some_windows): New function.
9397 (tui_layout_split::remove_windows): New method.
9398
9399 2020-02-22 Tom Tromey <tom@tromey.com>
9400
9401 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9402 * tui/tui-layout.h (tui_next_layout): Declare.
9403 * tui/tui-layout.c (tui_next_layout): New function.
9404
9405 2020-02-22 Tom Tromey <tom@tromey.com>
9406
9407 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9408 correct coordinates.
9409
9410 2020-02-22 Tom Tromey <tom@tromey.com>
9411
9412 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9413 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9414 DATA_WIN case.
9415
9416 2020-02-22 Tom Tromey <tom@tromey.com>
9417
9418 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9419 TUI_DISASM_WIN, not tui_win_list.
9420
9421 2020-02-22 Tom Tromey <tom@tromey.com>
9422
9423 * valprint.c (generic_val_print_enum_1)
9424 (val_print_type_code_flags): Style member names.
9425 * rust-lang.c (val_print_struct, rust_print_enum)
9426 (rust_print_struct_def, rust_internal_print_type): Style member
9427 names.
9428 * p-valprint.c (pascal_object_print_value_fields): Style member
9429 names. Only call fprintf_symbol_filtered for static members.
9430 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9431 * f-valprint.c (f_val_print): Style member names.
9432 * f-typeprint.c (f_type_print_base): Style member names.
9433 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9434 call fprintf_symbol_filtered for static members.
9435 (cp_print_class_member): Style member names.
9436 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9437 member names.
9438 * ada-valprint.c (ada_print_scalar): Style enum names.
9439 (ada_val_print_enum): Likewise.
9440 * ada-typeprint.c (print_enum_type): Style enum names.
9441
9442 2020-02-21 Tom Tromey <tom@tromey.com>
9443
9444 * psympriv.h (struct partial_symtab): Update comment.
9445
9446 2020-02-21 Tom Tromey <tromey@adacore.com>
9447
9448 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9449 type is CORE_ADDR.
9450
9451 2020-02-21 Tom de Vries <tdevries@suse.de>
9452
9453 PR gdb/25534
9454 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9455 if dependencies[i]->user != NULL.
9456
9457 2020-02-21 Ali Tamur <tamur@google.com>
9458
9459 * dwarf2/read.c (dwarf2_name): Add null check.
9460
9461 2020-02-20 Tom Tromey <tom@tromey.com>
9462
9463 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9464 ">=", in binary search.
9465 (dwarf2_find_containing_comp_unit): New overload.
9466 (run_test): New self-test.
9467 (_initialize_dwarf2_read): Register new test.
9468
9469 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
9470
9471 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9472 * riscv-tdep.h: Likewise.
9473 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9474 rv32-only CSR.
9475 * features/riscv/64bit-csr.xml: Regenerated.
9476
9477 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9478 Tom Tromey <tom@tromey.com>
9479
9480 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9481 of 'fputc_unfiltered'.
9482 (putchar_unfiltered): Call 'fputc_unfiltered'.
9483 (fputc_unfiltered): Call 'fputs_unfiltered'.
9484
9485 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9486
9487 * config.in: Regenerate.
9488 * configure: Regenerate.
9489 * configure.ac: Add --with-python-libdir option.
9490 * main.c: Use WITH_PYTHON_LIBDIR.
9491
9492 2020-02-19 Tom Tromey <tom@tromey.com>
9493
9494 * symtab.c (general_symbol_info::compute_and_set_names): Use
9495 obstack_strndup. Simplify call to symbol_set_demangled_name.
9496
9497 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
9498
9499 * dwarf2/read.c (allocate_signatured_type_table,
9500 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9501 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9502 Remove objfile parameter, update all callers.
9503
9504 2020-02-19 Doug Evans <dje@google.com>
9505
9506 PR rust/25535
9507 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9508 rust_enum_variant calculation.
9509
9510 2020-02-19 Tom Tromey <tromey@adacore.com>
9511
9512 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9513
9514 2020-02-19 Tom Tromey <tromey@adacore.com>
9515
9516 * ada-lang.c (cache_symbol): Use obstack_strdup.
9517
9518 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9519
9520 * configure: Regenerate.
9521
9522 2020-02-19 Tom Tromey <tromey@adacore.com>
9523
9524 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9525 NULL check.
9526
9527 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
9528
9529 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9530
9531 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9532
9533 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9534 if GDBSERVER is not defined.
9535 (riscv_tdesc_cache): Likewise, also store const target_desc.
9536 (STATIC_IN_GDB): Define.
9537 (riscv_create_target_description): Update declaration with
9538 STATIC_IN_GDB.
9539 (riscv_lookup_target_description): New function, only define if
9540 GDBSERVER is not defined.
9541 * arch/riscv.h (riscv_create_target_description): Declare only
9542 when GDBSERVER is defined.
9543 (riscv_lookup_target_description): New declaration when GDBSERVER
9544 is not defined.
9545 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9546 (riscv_linux_read_features): ...this, and return
9547 riscv_gdbarch_features instead of target_desc.
9548 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9549 (riscv_linux_read_description): Rename to...
9550 (riscv_linux_read_features): ...this.
9551 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9552 Update to use riscv_gdbarch_features and
9553 riscv_lookup_target_description.
9554 * riscv-tdep.c (riscv_find_default_target_description): Use
9555 riscv_lookup_target_description instead of
9556 riscv_create_target_description.
9557
9558 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9559
9560 * valprint.c (generic_val_print_enum_1): When printing a flag
9561 enum with value 0 and there is no enumerator with value 0, print
9562 just "0" instead of "(unknown: 0x0)".
9563
9564 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9565
9566 * valprint.c (generic_val_print_enum_1): Print unknown part of
9567 flag enum in hex.
9568
9569 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9570
9571 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9572 flag enums to contain duplicate enumerators.
9573 * valprint.c (generic_val_print_enum_1): Update comment.
9574
9575 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9576
9577 * dwarf2/read.c: Include "count-one-bits.h".
9578 (update_enumeration_type_from_children): If an enumerator has
9579 multiple bits set, don't treat the enumeration as a "flag enum".
9580 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9581 of flag enums have 0 or 1 bit set.
9582
9583 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9584
9585 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9586 conversion.
9587 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9588 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9589 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9590 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9591 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9592
9593 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9594
9595 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9596
9597 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9598
9599 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9600 displaced_step_closure_up.
9601 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9602 (struct displaced_step_closure_up):
9603 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9604 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9605 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9606 Likewise.
9607 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9608 * gdbarch.c, gdbarch.h: Re-generate.
9609 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9610 displaced_step_closure_up.
9611 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9612 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9613 * infrun.h (displaced_step_closure_up): New type alias.
9614 (struct displaced_step_inferior_state) <step_closure>: Change
9615 type to displaced_step_closure_up.
9616 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9617 displaced_step_closure_up.
9618 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9619
9620 2020-02-14 Tom Tromey <tom@tromey.com>
9621
9622 * minidebug.c (gnu_debug_key): New global.
9623 (find_separate_debug_file_in_section): Use it.
9624
9625 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9626
9627 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9628 std::unique_ptr.
9629 * gdbarch.c: Re-generate.
9630 * gdbarch.h: Re-generate.
9631 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9632 change.
9633 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9634 type to std::unique_ptr.
9635 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9636 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9637 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9638 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9639 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9640 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9641 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9642 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9643 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9644
9645 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9646
9647 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9648 std::unique_ptr.
9649 (displaced_step_clear): Rename to...
9650 (displaced_step_reset): ... this. Just call displaced->reset ().
9651 (displaced_step_clear_cleanup): Rename to...
9652 (displaced_step_reset_cleanup): ... this.
9653 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9654 (displaced_step_fixup): Likewise.
9655 (resume_1): Likewise.
9656 (handle_inferior_event): Restore child's memory before calling
9657 displaced_step_fixup on the parent.
9658 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9659 to std::unique_ptr.
9660 <step_closure>: Change type to std::unique_ptr.
9661
9662 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9663
9664 * arm-tdep.c: Include count-one-bits.h.
9665 (cleanup_block_store_pc): Use count_one_bits.
9666 (cleanup_block_load_pc): Use count_one_bits.
9667 (arm_copy_block_xfer): Use count_one_bits.
9668 (thumb2_copy_block_xfer): Use count_one_bits.
9669 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9670 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9671 (thumb_get_next_pcs_raw): Use count_one_bits.
9672 (arm_get_next_pcs_raw): Use count_one_bits_l.
9673 * arch/arm.c (bitcount): Remove.
9674 * arch/arm.h (bitcount): Remove.
9675
9676 2020-02-14 Tom Tromey <tromey@adacore.com>
9677
9678 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9679 Update.
9680 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9681 * dwarf2/loc.c (call_site_find_chain_1): Return
9682 unique_xmalloc_ptr.
9683 (call_site_find_chain): Likewise.
9684
9685 2020-02-14 Richard Biener <rguenther@suse.de>
9686
9687 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9688 on expression with division operators.
9689
9690 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9691
9692 * MAINTAINERS (Write After Approval): Adding myself.
9693
9694 2020-02-12 Tom Tromey <tom@tromey.com>
9695
9696 * event-loop.c (event_data, gdb_event, event_handler_func):
9697 Remove.
9698
9699 2020-02-12 Tom Tromey <tom@tromey.com>
9700
9701 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9702 (dwarf2_frame_objfile_data): Add comment.
9703 (find_comp_unit, set_comp_unit): New functions.
9704 (dwarf2_frame_find_fde): Use find_comp_unit.
9705 (dwarf2_build_frame_info): Use set_comp_unit.
9706
9707 2020-02-12 Tom Tromey <tom@tromey.com>
9708
9709 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9710 (comp_unit): Don't initialize objfile.
9711 (execute_cfa_program): Add text_offset parameter.
9712 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9713 (dwarf2_frame_cache): Update.
9714 (dwarf2_build_frame_info): Don't set "objfile" member.
9715
9716 2020-02-12 Tom Tromey <tom@tromey.com>
9717
9718 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9719 (decode_frame_entry): Likewise.
9720 (dwarf2_build_frame_info): Update.
9721
9722 2020-02-12 Tom Tromey <tom@tromey.com>
9723
9724 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9725 (decode_frame_entry_1): Use the comp_unit obstack.
9726
9727 2020-02-12 Tom Tromey <tom@tromey.com>
9728
9729 * dwarf2/frame.c (struct comp_unit): Add initializers and
9730 constructor.
9731 (dwarf2_frame_objfile_data): Store a comp_unit.
9732 (dwarf2_frame_find_fde): Update.
9733 (dwarf2_build_frame_info): Use "new".
9734
9735 2020-02-12 Tom Tromey <tom@tromey.com>
9736
9737 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9738 (dwarf2_fde_table): Typedef for std::vector.
9739 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9740 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9741 (decode_frame_entry): Update.
9742 (dwarf2_build_frame_info): Use "new".
9743
9744 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9745
9746 * arm-tdep.c (arm_gdbarch_init): Update.
9747 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9748 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9749 have_neon, is_m>: Change to bool.
9750
9751 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9752
9753 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9754
9755 2020-02-12 Tom Tromey <tom@tromey.com>
9756
9757 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9758
9759 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
9760
9761 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9762 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9763
9764 2020-02-11 Tom Tromey <tom@tromey.com>
9765
9766 * psymtab.h: Update comment.
9767
9768 2020-02-11 Tom Tromey <tom@tromey.com>
9769
9770 * gdb_obstack.h (struct auto_obstack): Use
9771 DISABLE_COPY_AND_ASSIGN.
9772
9773 2020-02-11 Tom Tromey <tom@tromey.com>
9774
9775 * dwarf2/frame.h (struct objfile): Don't forward declare.
9776
9777 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9778
9779 * cris-tdep.c (cris_supply_gregset): Change signature to match
9780 what struct regset expects.
9781 (cris_regset): New struct.
9782 (fetch_core_registers): Remove.
9783 (cris_iterate_over_regset_sections): New function.
9784 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9785 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9786
9787 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9788
9789 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9790 registers.
9791
9792 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9793
9794 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9795
9796 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9797
9798 * configure: Re-generate.
9799
9800 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9801
9802 * configure: Re-generate.
9803
9804 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9805
9806 * acinclude: Update warning.m4 path.
9807 * warning.m4: Move to gdbsupport.
9808
9809 2020-02-11 Tom Tromey <tromey@adacore.com>
9810
9811 * remote.c (remote_console_output): Update.
9812 * printcmd.c (printf_command): Update.
9813 * event-loop.c (gdb_wait_for_event): Update.
9814 * linux-nat.c (sigchld_handler): Update.
9815 * remote-sim.c (gdb_os_write_stdout): Update.
9816 (gdb_os_flush_stdout): Update.
9817 (gdb_os_flush_stderr): Update.
9818 (gdb_os_write_stderr): Update.
9819 * exceptions.c (print_exception): Update.
9820 * remote-fileio.c (remote_fileio_func_read): Update.
9821 (remote_fileio_func_write): Update.
9822 * tui/tui.c (tui_enable): Update.
9823 * tui/tui-interp.c (tui_interp::init): Update.
9824 * utils.c (init_page_info): Update.
9825 (putchar_unfiltered, fputc_unfiltered): Update.
9826 (gdb_flush): Update.
9827 (emit_style_escape): Update.
9828 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9829 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9830 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9831 (stderr_file::write): Update.
9832 (stderr_file::puts): Update.
9833 * ui-file.h (ui_file_isatty, ui_file_write)
9834 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9835 (ui_file_puts): Don't declare.
9836
9837 2020-02-10 Tom de Vries <tdevries@suse.de>
9838
9839 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9840 sentinel to char *.
9841
9842 2020-02-09 Tom de Vries <tdevries@suse.de>
9843
9844 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9845 filename if it matches "<artificial>".
9846
9847 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9848
9849 * windows-tdep.c (struct enum_value_name): New struct.
9850 (create_enum): New function.
9851 (windows_get_siginfo_type): Create and use enum types.
9852
9853 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9854
9855 * NEWS: Mention $_siginfo support for Windows.
9856 * windows-nat.c (handle_exception): Set siginfo_er.
9857 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9858 (windows_xfer_siginfo): New function.
9859 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9860 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9861 (init_windows_gdbarch_data): New function.
9862 (get_windows_gdbarch_data): New function.
9863 (windows_get_siginfo_type): New function.
9864 (windows_init_abi): Register windows_get_siginfo_type.
9865 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9866
9867 2020-02-08 Tom Tromey <tom@tromey.com>
9868
9869 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9870 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9871 <keep>: Declare method.
9872 <m_keep>: Remove member.
9873 <~cutu_reader>: Remove.
9874 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9875 (cutu_reader::cutu_reader): Update.
9876 (cutu_reader::keep): Rename from ~cutu_reader.
9877 (process_psymtab_comp_unit, build_type_psymtabs_1)
9878 (process_skeletonless_type_unit, load_partial_comp_unit)
9879 (load_full_comp_unit, dwarf2_read_addr_index)
9880 (read_signatured_type): Update.
9881
9882 2020-02-08 Tom Tromey <tom@tromey.com>
9883
9884 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9885 "want_partial_unit" parameter.
9886 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9887 Inline check for DW_TAG_partial_unit.
9888 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9889
9890 2020-02-08 Tom Tromey <tom@tromey.com>
9891
9892 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9893 read.c.
9894 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9895 read.c.
9896
9897 2020-02-08 Tom Tromey <tom@tromey.com>
9898
9899 * dwarf2/read.c (read_address): Move to comp-unit.c.
9900 (dwarf2_rnglists_process, dwarf2_ranges_process)
9901 (read_attribute_value, dwarf_decode_lines_1)
9902 (var_decode_location, decode_locdesc): Update.
9903 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9904 read.c. Remove "cu" parameter.
9905 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9906 method.
9907
9908 2020-02-08 Tom Tromey <tom@tromey.com>
9909
9910 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9911 (read_indirect_line_string): Update.
9912 * dwarf2/comp-unit.c (read_offset): Remove.
9913 (read_comp_unit_head): Update.
9914 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9915 method.
9916 (read_offset): Don't declare.
9917
9918 2020-02-08 Tom Tromey <tom@tromey.com>
9919
9920 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9921 * dwarf2/read.c (struct comp_unit_head): Move to
9922 dwarf2/comp-unit.h.
9923 (enum class rcuh_kind): Move to comp-unit.h.
9924 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9925 (read_comp_unit_head, error_check_comp_unit_head)
9926 (read_and_check_comp_unit_head): Move to comp-unit.c.
9927 (read_offset, dwarf_unit_type_name): Likewise.
9928 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9929 (cutu_reader::cutu_reader, read_call_site_scope)
9930 (find_partial_die, follow_die_offset): Update.
9931 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9932
9933 2020-02-08 Tom Tromey <tom@tromey.com>
9934
9935 * dwarf2/read.c (read_offset_1): Move to leb.c.
9936 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9937 (dwarf_decode_macro_bytes): Update.
9938 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9939 * dwarf2/leb.h (read_offset): Declare.
9940
9941 2020-02-08 Tom Tromey <tom@tromey.com>
9942
9943 * dwarf2/read.c (dwarf2_section_size): Remove.
9944 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9945 Update.
9946 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9947
9948 2020-02-08 Tom Tromey <tom@tromey.com>
9949
9950 * dwarf2/read.c (read_initial_length): Move to leb.c.
9951 * dwarf2/leb.h (read_initial_length): Declare.
9952 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9953 handle_nonstd parameter.
9954 * dwarf2/frame.c (read_initial_length): Remove.
9955 (decode_frame_entry_1): Update.
9956
9957 2020-02-08 Tom Tromey <tom@tromey.com>
9958
9959 * dwarf2/loc.c (dwarf2_find_location_expression)
9960 (dwarf_evaluate_loc_desc::get_tls_address)
9961 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9962 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9963 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9964 (dwarf2_compile_property_to_c)
9965 (dwarf2_loc_desc_get_symbol_read_needs)
9966 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9967 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9968 (loclist_describe_location, loclist_tracepoint_var_ref)
9969 (loclist_generate_c_location): Update.
9970 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9971 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9972 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9973 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9974 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9975 (dwarf2_per_cu_data::addr_size)
9976 (dwarf2_per_cu_data::ref_addr_size)
9977 (dwarf2_per_cu_data::text_offset)
9978 (dwarf2_per_cu_data::addr_type): Now methods.
9979 (per_cu_header_read_in): Make per_cu "const".
9980 (dwarf2_version): Remove.
9981 (dwarf2_per_cu_data::int_type): Now a method.
9982 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9983 (set_die_type, read_array_type, read_subrange_index_type)
9984 (read_tag_string_type, read_subrange_type): Update.
9985 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9986 offset_size, ref_addr_size, text_offset, addr_type, version,
9987 objfile, int_type, addr_sized_int_type>: Declare methods.
9988
9989 2020-02-08 Tom Tromey <tom@tromey.com>
9990
9991 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9992 Move earlier.
9993
9994 2020-02-08 Tom Tromey <tom@tromey.com>
9995
9996 * dwarf2/read.h (dwarf_line_debug): Declare.
9997 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9998 * dwarf2/read.c: Move line_header code to new files.
9999 (dwarf_line_debug): No longer static.
10000 * dwarf2/line-header.c: New file.
10001 * dwarf2/line-header.h: New file.
10002
10003 2020-02-08 Tom Tromey <tom@tromey.com>
10004
10005 * dwarf2/read.c (struct line_header) <file_full_name,
10006 file_file_name>: Return unique_xmalloc_ptr.
10007 (line_header::file_file_name): Update.
10008 (line_header::file_full_name): Update.
10009 (dw2_get_file_names_reader): Update.
10010 (macro_start_file): Update.
10011
10012 2020-02-08 Tom Tromey <tom@tromey.com>
10013
10014 * dwarf2/read.c (struct line_header) <file_full_name,
10015 file_file_name>: Declare methods.
10016 (dw2_get_file_names_reader): Update.
10017 (file_file_name): Now a method.
10018 (file_full_name): Likewise.
10019 (macro_start_file): Update.
10020
10021 2020-02-08 Tom Tromey <tom@tromey.com>
10022
10023 * dwarf2/read.c (dwarf_always_disassemble)
10024 (show_dwarf_always_disassemble): Move to loc.c.
10025 (_initialize_dwarf2_read): Move "always-disassemble" registration
10026 to loc.c.
10027 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
10028 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
10029 static.
10030 (show_dwarf_always_disassemble): Move from read.c.
10031 (_initialize_dwarf2loc): Move always-disassemble from read.c.
10032
10033 2020-02-08 Tom Tromey <tom@tromey.com>
10034
10035 * dwarf2/read.c (~dwarf2_per_objfile): Update.
10036 (create_quick_file_names_table): Return htab_up.
10037 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
10038 Update.
10039 * dwarf2/read.h (struct dwarf2_per_objfile)
10040 <quick_file_names_table>: Now htab_up.
10041
10042 2020-02-08 Tom Tromey <tom@tromey.com>
10043
10044 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
10045
10046 2020-02-08 Tom Tromey <tom@tromey.com>
10047
10048 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
10049 Rewrite.
10050 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
10051 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
10052 (abbrev_table::abbrev_table): No longer inline.
10053 (ABBREV_HASH_SIZE): Remove.
10054 (abbrev_table::m_abbrevs): Now an htab_up.
10055
10056 2020-02-08 Tom Tromey <tom@tromey.com>
10057
10058 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
10059 (cutu_reader): Update.
10060 (build_type_psymtabs_1): Update.
10061 * dwarf2/abbrev.c (abbrev_table::read): Rename.
10062 (abbrev_table::alloc_abbrev): Update.
10063 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
10064 (abbrev_table::read): New static method, renamed from
10065 abbrev_table_read_table.
10066 (abbrev_table::alloc_abbrev)
10067 (abbrev_table::add_abbrev): Now private.
10068 (abbrev_table::abbrev_table): Now private.
10069 (abbrev_table::m_abbrev_obstack): Now private. Rename.
10070
10071 2020-02-08 Tom Tromey <tom@tromey.com>
10072
10073 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
10074 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
10075 htab_up.
10076
10077 2020-02-08 Tom Tromey <tom@tromey.com>
10078
10079 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
10080 htab_up.
10081 (lookup_dwo_unit_in_dwp): Update.
10082 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
10083 on obstack.
10084
10085 2020-02-08 Tom Tromey <tom@tromey.com>
10086
10087 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
10088 obstack.
10089
10090 2020-02-08 Tom Tromey <tom@tromey.com>
10091
10092 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
10093 line_header_hash.
10094 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
10095 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
10096 Change type to htab_up.
10097
10098 2020-02-08 Tom Tromey <tom@tromey.com>
10099
10100 * dwarf2/read.c (allocate_type_unit_groups_table): Return
10101 htab_up. Don't allocate on obstack.
10102 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
10103 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
10104 Change type to htab_up.
10105
10106 2020-02-08 Tom Tromey <tom@tromey.com>
10107
10108 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
10109 Change type to htab_up.
10110 * dwarf2/read.c (create_signatured_type_table_from_index)
10111 (create_signatured_type_table_from_debug_names)
10112 (create_all_type_units, add_type_unit)
10113 (lookup_dwo_signatured_type, lookup_signatured_type)
10114 (process_skeletonless_type_unit): Update.
10115 (create_debug_type_hash_table, create_debug_types_hash_table):
10116 Change type of types_htab.
10117 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
10118 htab_up. Don't allocate on obstack.
10119 (create_cus_hash_table): Change type of cus_htab parameter.
10120 (struct dwo_file) <cus, tus>: Now htab_up.
10121 (lookup_dwo_signatured_type, lookup_dwo_cutu)
10122 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
10123 (queue_and_load_all_dwo_tus): Update.
10124 * dwarf2/index-write.c (write_gdbindex): Update.
10125 (write_debug_names): Update.
10126
10127 2020-02-08 Tom Tromey <tom@tromey.com>
10128
10129 * dwarf2/read.h (struct dwarf2_queue_item): Move from
10130 dwarf2/read.c. Remove "next" member. Add constructor ntad
10131 destructor.
10132 (struct dwarf2_per_objfile) <queue>: New member.
10133 * dwarf2/read.c (struct dwarf2_queue_item): Move to
10134 dwarf2/read.h.
10135 (dwarf2_queue, dwarf2_queue_tail): Remove.
10136 (class dwarf2_queue_guard): Add parameter to constructor. Use
10137 DISABLE_COPY_AND_ASSIGN.
10138 <m_per_objfile>: New member.
10139 <~dwarf2_queue_guard>: Rewrite.
10140 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
10141 Update.
10142 (~dwarf2_queue_item): New.
10143
10144 2020-02-08 Tom Tromey <tom@tromey.com>
10145
10146 * dwarf2/read.c (struct die_info) <has_children>: New member.
10147 (dw2_get_file_names_reader): Remove has_children.
10148 (dw2_get_file_names): Update.
10149 (read_cutu_die_from_dwo): Remove has_children.
10150 (cutu_reader::init_tu_and_read_dwo_dies)
10151 (cutu_reader::cutu_reader): Update.
10152 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
10153 Remove has_children.
10154 (build_type_psymtabs_1, process_skeletonless_type_unit)
10155 (load_partial_comp_unit, load_full_comp_unit): Update.
10156 (create_dwo_cu_reader): Remove has_children.
10157 (create_cus_hash_table, read_die_and_children): Update.
10158 (read_full_die_1,read_full_die): Remove has_children.
10159 (read_signatured_type): Update.
10160 (class cutu_reader) <has_children>: Remove.
10161
10162 2020-02-08 Tom Tromey <tom@tromey.com>
10163
10164 * dwarf2/expr.c: Rename from dwarf2expr.c.
10165 * dwarf2/expr.h: Rename from dwarf2expr.h.
10166 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
10167 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
10168 * dwarf2/frame.c: Rename from dwarf2-frame.c.
10169 * dwarf2/frame.h: Rename from dwarf2-frame.h.
10170 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
10171 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
10172 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
10173 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
10174 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
10175 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
10176 * dwarf2/loc.c: Rename from dwarf2loc.c.
10177 * dwarf2/loc.h: Rename from dwarf2loc.h.
10178 * dwarf2/read.c: Rename from dwarf2read.c.
10179 * dwarf2/read.h: Rename from dwarf2read.h.
10180 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
10181 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
10182 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
10183 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
10184 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
10185 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
10186 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
10187 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
10188 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
10189 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
10190 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
10191 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
10192 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
10193 Update.
10194 * Makefile.in (COMMON_SFILES): Update.
10195 (HFILES_NO_SRCDIR): Update.
10196
10197 2020-02-08 Tom Tromey <tom@tromey.com>
10198
10199 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
10200 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
10201
10202 2020-02-08 Tom Tromey <tom@tromey.com>
10203
10204 * dwarf2read.h (struct die_info): Don't declare.
10205
10206 2020-02-08 Tom Tromey <tom@tromey.com>
10207
10208 * dwarf2read.h (die_info_ptr): Remove typedef.
10209
10210 2020-02-08 Tom Tromey <tom@tromey.com>
10211
10212 * dwarf2read.c (read_call_site_scope)
10213 (handle_data_member_location, dwarf2_add_member_fn)
10214 (mark_common_block_symbol_computed, read_common_block)
10215 (attr_to_dynamic_prop, partial_die_info::read)
10216 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
10217 (dwarf2_symbol_mark_computed, set_die_type): Update.
10218 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
10219 method.
10220 (attr_form_is_block): Don't declare.
10221 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
10222
10223 2020-02-08 Tom Tromey <tom@tromey.com>
10224
10225 * dwarf2read.c (dwarf2_find_base_address, )
10226 (read_call_site_scope, rust_containing_type)
10227 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
10228 (handle_data_member_location, dwarf2_add_member_fn)
10229 (get_alignment, read_structure_type, process_structure_scope)
10230 (mark_common_block_symbol_computed, read_common_block)
10231 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
10232 (partial_die_info::read, read_attribute_value, new_symbol)
10233 (lookup_die_type, dwarf2_get_ref_die_offset)
10234 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
10235 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
10236 (dwarf2_symbol_mark_computed): Update.
10237 * dwarf2/attribute.h (struct attribute) <value_as_address,
10238 form_is_section_offset, form_is_constant, form_is_ref>: Declare
10239 methods.
10240 (value_as_address, attr_form_is_section_offset)
10241 (attr_form_is_constant, attr_form_is_ref): Don't declare.
10242 * dwarf2/attribute.c (attribute::value_as_address)
10243 (attribute::form_is_section_offset, attribute::form_is_constant)
10244 (attribute::form_is_ref): Now methods.
10245
10246 2020-02-08 Tom Tromey <tom@tromey.com>
10247
10248 * dwarf2read.c (struct attribute, DW_STRING)
10249 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
10250 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
10251 (attr_form_is_block, attr_form_is_section_offset)
10252 (attr_form_is_constant, attr_form_is_ref): Move.
10253 * dwarf2/attribute.h: New file.
10254 * dwarf2/attribute.c: New file, from dwarf2read.c.
10255 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
10256
10257 2020-02-08 Tom Tromey <tom@tromey.com>
10258
10259 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
10260 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
10261 Move.
10262 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
10263 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
10264 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
10265 abbrev.c.
10266 * dwarf2/abbrev.h: New file.
10267 * dwarf2/abbrev.c: New file, from dwarf2read.c.
10268 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
10269
10270 2020-02-08 Tom Tromey <tom@tromey.com>
10271
10272 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
10273 (dwarf2_section_size, dwarf2_get_section_info)
10274 (create_signatured_type_table_from_debug_names)
10275 (create_addrmap_from_aranges, read_debug_names_from_section)
10276 (get_gdb_index_contents_from_section, read_comp_unit_head)
10277 (error_check_comp_unit_head, read_abbrev_offset)
10278 (create_debug_type_hash_table, init_cu_die_reader)
10279 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
10280 (read_comp_units_from_section, create_cus_hash_table)
10281 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10282 (create_dwp_v2_section, dwarf2_rnglists_process)
10283 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
10284 (abbrev_table_read_table, read_indirect_string_at_offset_from)
10285 (read_indirect_string_from_dwz, read_addr_index_1)
10286 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
10287 (dwarf_decode_macro_bytes, dwarf_decode_macros)
10288 (fill_in_loclist_baton): Update.
10289 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
10290 get_containing_section, get_bfd_owner, get_bfd_section,
10291 get_file_name, get_id, get_flags, empty, read>: Declare methods.
10292 (dwarf2_read_section, get_section_name, get_section_file_name)
10293 (get_containing_section, get_section_bfd_owner)
10294 (get_section_bfd_section, get_section_name, get_section_file_name)
10295 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
10296 declare.
10297 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
10298 (dwarf2_section_info::get_bfd_owner)
10299 (dwarf2_section_info::get_bfd_section)
10300 (dwarf2_section_info::get_name)
10301 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
10302 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
10303 (dwarf2_section_info::read): Now methods.
10304 * dwarf-index-write.c (class debug_names): Update.
10305
10306 2020-02-08 Tom Tromey <tom@tromey.com>
10307
10308 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
10309 Move to dwarf2/section.h.
10310 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
10311 (get_section_bfd_section, get_section_name)
10312 (get_section_file_name, get_section_id, get_section_flags)
10313 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
10314 dwarf2/section.c.
10315 * dwarf2/section.h: New file.
10316 * dwarf2/section.c: New file, from dwarf2read.c.
10317 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10318
10319 2020-02-08 Tom Tromey <tom@tromey.com>
10320
10321 * dwarf2read.h (read_unsigned_leb128): Don't declare.
10322 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10323 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10324 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10325 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10326 * dwarf2/leb.h: New file, from dwarf2read.c.
10327 * dwarf2/leb.c: New file, from dwarf2read.c.
10328 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10329 Remove.
10330 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10331 (COMMON_SFILES): Add dwarf2/leb.c.
10332
10333 2020-02-08 Joel Brobecker <brobecker@adacore.com>
10334
10335 GDB 9.1 released.
10336
10337 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10338
10339 PR gdb/25190:
10340 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10341 * gdb/remote.c (remote_console_output): Update.
10342 * gdb/ui-file.c (fputs_unfiltered): Rename to...
10343 (ui_file_puts): ...this.
10344 * gdb/ui-file.h (ui_file_puts): Add declaration.
10345 * gdb/utils.c (emit_style_escape): Update.
10346 (flush_wrap_buffer): Update.
10347 (fputs_maybe_filtered): Update.
10348 (fputs_unfiltered): Add function.
10349
10350 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10351
10352 * gdb/event-loop.c (gdb_wait_for_event): Update.
10353 * gdb/printcmd.c (printf_command): Update.
10354 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10355 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10356 (gdb_os_flush_stderr): Update.
10357 * gdb/remote.c (remote_console_output): Update.
10358 * gdb/ui-file.c (gdb_flush): Rename to...
10359 (ui_file_flush): ...this.
10360 (stderr_file::write): Update.
10361 (stderr_file::puts): Update.
10362 * gdb/ui-file.h (gdb_flush): Rename to...
10363 (ui_file_flush): ...this.
10364 * gdb/utils.c (gdb_flush): Add function.
10365 * gdb/utils.h (gdb_flush): Add declaration.
10366
10367 2020-02-07 Tom Tromey <tromey@adacore.com>
10368
10369 PR breakpoints/24915:
10370 * source.c (find_and_open_source): Do not check basenames_may_differ.
10371
10372 2020-02-07 Tom Tromey <tom@tromey.com>
10373
10374 * README: Update gdbserver documentation.
10375 * gdbserver: Move to top level.
10376 * configure.tgt (build_gdbserver): Remove.
10377 * configure.ac: Remove --enable-gdbserver.
10378 * configure: Rebuild.
10379 * Makefile.in (distclean): Don't mention gdbserver.
10380
10381 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10382
10383 * source-cache.c (source_cache::ensure): Surround
10384 get_plain_source_lines with a try/catch.
10385 (source_cache::get_line_charpos): Get rid of try/catch
10386 and only check for the return value of "ensure".
10387 * tui/tui-source.c (tui_source_window::set_contents):
10388 Simplify "nlines" calculation.
10389
10390 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10391
10392 * MAINTAINERS (Write After Approval): Add myself.
10393
10394 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10395
10396 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10397 function call.
10398
10399 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10400
10401 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10402
10403 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
10404
10405 * nat/riscv-linux-tdesc.h: New file.
10406 * nat/riscv-linux-tdesc.c: New file, taking code from...
10407 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10408 ... here.
10409 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10410 NATDEPFILES.
10411
10412 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10413
10414 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10415 we don't set the fake simulator ptid to the null_ptid.
10416
10417 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
10418
10419 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10420 * gdbthread.h (class thread_info) <resumed>: Likewise.
10421 * infrun.c (resume_1): Likewise.
10422 (proceed): Likewise.
10423 (infrun_thread_stop_requested): Likewise.
10424 (stop_all_threads): Likewise.
10425 (handle_inferior_event): Likewise.
10426 (restart_threads): Likewise.
10427 (finish_step_over): Likewise.
10428 (keep_going_stepped_thread): Likewise.
10429 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10430 (linux_handle_extended_wait): Likewise.
10431 * record-btrace.c (get_thread_current_frame_id): Likewise.
10432 * record-full.c (record_full_wait_1): Likewise.
10433 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10434 * target.c (target_resume): Likewise.
10435 * thread.c (set_running_thread): Likewise.
10436
10437 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10438
10439 * f-valprint.c (f77_print_array_1): Changed datatype of index
10440 variable to LONGEST from int to enable it to contain bound
10441 values correctly.
10442
10443 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
10444
10445 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10446 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10447 offsets according to FLEN determined.
10448 (riscv_linux_nat_target::read_description): Determine FLEN
10449 dynamically.
10450 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10451 according to FLEN determined.
10452 (riscv_linux_nat_target::store_registers): Likewise.
10453
10454 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10455
10456 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10457 when reg->group is empty and reggroup is not.
10458
10459 2020-01-31 Tom Tromey <tromey@adacore.com>
10460
10461 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10462 Call beneath target's mourn_inferior after unpushing.
10463
10464 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10465
10466 PR tui/9765
10467 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10468 have enough lines to fill the screen, still return the lowest
10469 address we found.
10470
10471 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10472
10473 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10474 '-', '<', and '>' commands.
10475
10476 2020-01-29 Pedro Alves <palves@redhat.com>
10477 Sergio Durigan Junior <sergiodj@redhat.com>
10478
10479 * infcmd.c (construct_inferior_arguments): Assert that
10480 'argc' is greater than 0.
10481
10482 2020-01-29 Luis Machado <luis.machado@linaro.org>
10483
10484 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10485 (BRK_INSN_MASK): Define to 0xd4200000.
10486 (aarch64_program_breakpoint_here_p): New function.
10487 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10488 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10489 breakpoint.c.
10490 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10491 breakpoint.h
10492 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10493 call gdbarch_program_breakpoint_here_p.
10494 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10495 default_program_breakpoint_here_p, changed return type to bool and
10496 simplified.
10497 * breakpoint.h (program_breakpoint_here): Moved prototype to
10498 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10499 return type to bool.
10500 * gdbarch.c: Regenerate.
10501 * gdbarch.h: Regenerate.
10502 * gdbarch.sh (program_breakpoint_here_p): New method.
10503 * infrun.c (handle_signal_stop): Call
10504 gdbarch_program_breakpoint_here_p.
10505
10506 2020-01-26 Tom Tromey <tom@tromey.com>
10507
10508 * ctfread.c (struct ctf_fp_info): Reindent.
10509 (_initialize_ctfread): Remove.
10510
10511 2020-01-26 Tom Tromey <tom@tromey.com>
10512
10513 * psymtab.c (partial_map_expand_apply)
10514 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10515 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10516 (psym_print_stats, psym_expand_symtabs_for_function)
10517 (psym_map_symbol_filenames, psym_map_matching_symbols)
10518 (psym_expand_symtabs_matching)
10519 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10520 (maintenance_check_psymtabs): Use new methods.
10521 * psympriv.h (struct partial_symtab) <readin_p,
10522 get_compunit_symtab>: New methods.
10523 <readin, compunit_symtab>: Remove members.
10524 (struct standard_psymtab): New.
10525 (struct legacy_psymtab): Derive from standard_psymtab.
10526 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10527 standard_psymtab.
10528 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10529
10530 2020-01-26 Tom Tromey <tom@tromey.com>
10531
10532 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10533 read_dependencies. Add assert.
10534 * psymtab.c (partial_symtab::read_dependencies): New method.
10535 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10536 method.
10537 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10538 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10539 read_dependencies.
10540 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10541 Add assert.
10542
10543 2020-01-26 Tom Tromey <tom@tromey.com>
10544
10545 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10546 Call expand_psymtab.
10547 (xcoff_read_symtab): Call expand_psymtab.
10548 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10549 legacy_expand_psymtab.
10550 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10551 method.
10552 (struct legacy_psymtab) <expand_psymtab>: Implement.
10553 <legacy_expand_psymtab>: New member.
10554 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10555 (parse_partial_symbols): Set legacy_expand_psymtab.
10556 (psymtab_to_symtab_1): Change argument order. Call
10557 expand_psymtab.
10558 (new_psymtab): Set legacy_expand_psymtab.
10559 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10560 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10561 expand_psymtab.
10562 (dwarf2_psymtab::expand_psymtab): Rename from
10563 psymtab_to_symtab_1. Call expand_psymtab.
10564 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10565 (dbx_end_psymtab): Likewise.
10566 (dbx_psymtab_to_symtab_1): Change argument order. Call
10567 expand_psymtab.
10568 (dbx_read_symtab): Call expand_psymtab.
10569 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10570 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10571 (ctf_psymtab::read_symtab): Call expand_psymtab.
10572
10573 2020-01-26 Tom Tromey <tom@tromey.com>
10574
10575 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10576 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10577 messages.
10578 * mdebugread.c (mdebug_read_symtab): Remove prints.
10579 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10580 assert.
10581 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10582
10583 2020-01-26 Tom Tromey <tom@tromey.com>
10584
10585 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10586 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10587 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10588 legacy_symtab.
10589 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10590 * psymtab.c (psymtab_to_symtab): Call method.
10591 (dump_psymtab): Update.
10592 * psympriv.h (struct partial_symtab): Add virtual destructor.
10593 <read_symtab>: New method.
10594 (struct legacy_symtab): New.
10595 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10596 (struct pst_map) <pst>: Now a legacy_psymtab.
10597 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10598 (new_psymtab): Use legacy_psymtab.
10599 * dwarf2read.h (struct dwarf2_psymtab): New.
10600 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10601 * dwarf2read.c (dwarf2_create_include_psymtab)
10602 (dwarf2_build_include_psymtabs, create_type_unit_group)
10603 (create_partial_symtab, process_psymtab_comp_unit_reader)
10604 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10605 (set_partial_user): Use dwarf2_psymtab.
10606 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10607 (psymtab_to_symtab_1, process_full_comp_unit)
10608 (process_full_type_unit, dwarf2_ranges_read)
10609 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10610 (dwarf_decode_lines): Use dwarf2_psymtab.
10611 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10612 (add_address_entry_worker, write_one_signatured_type)
10613 (recursively_count_psymbols, recursively_write_psymbols)
10614 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10615 (write_debug_names): Likewise.
10616 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10617 <pst>: Now a legacy_psymtab.
10618 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10619 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10620 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10621 * ctfread.c (struct ctf_psymtab): New.
10622 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10623 ctf_psymtab.
10624 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10625 (create_partial_symtab): Return a ctf_psymtab.
10626 (scan_partial_symbols): Update.
10627
10628 2020-01-26 Tom Tromey <tom@tromey.com>
10629
10630 * xcoffread.c (xcoff_start_psymtab): Use new.
10631 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10632 renamed from start_psymtab_common.
10633 * psympriv.h (struct partial_symtab): Add new constructor.
10634 (start_psymtab_common): Don't declare.
10635 * mdebugread.c (parse_partial_symbols): Use new.
10636 * dwarf2read.c (create_partial_symtab): Use new.
10637 * dbxread.c (start_psymtab): Use new.
10638 * ctfread.c (create_partial_symtab): Use new.
10639
10640 2020-01-26 Tom Tromey <tom@tromey.com>
10641
10642 * xcoffread.c (xcoff_end_psymtab): Use new.
10643 * psymtab.c (start_psymtab_common): Use new.
10644 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10645 Update.
10646 * psympriv.h (struct partial_symtab): Add parameters to
10647 constructor. Don't inline.
10648 (allocate_psymtab): Don't declare.
10649 * mdebugread.c (new_psymtab): Use new.
10650 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10651 * dbxread.c (dbx_end_psymtab): Use new.
10652
10653 2020-01-26 Tom Tromey <tom@tromey.com>
10654
10655 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10656 allocate_psymtab. Update documentation.
10657 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10658 allocate_psymtab. Do not use new.
10659 (allocate_psymtab): Use new. Update.
10660
10661 2020-01-26 Tom Tromey <tom@tromey.com>
10662
10663 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10664 * psymtab.c (psym_print_stats): Update.
10665 * psympriv.h (struct partial_symtab) <readin,
10666 psymtabs_addrmap_supported, anonymous>: Now bool.
10667 * mdebugread.c (psymtab_to_symtab_1): Update.
10668 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10669 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10670 (process_full_comp_unit, process_full_type_unit): Update.
10671 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10672 * ctfread.c (psymtab_to_symtab): Update.
10673
10674 2020-01-26 Tom Tromey <tom@tromey.com>
10675
10676 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10677 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10678 * psymtab.c (psymtab_storage): Delete psymtabs.
10679 (psymtab_storage::allocate_psymtab): Use new.
10680 (psymtab_storage::discard_psymtab): Use delete.
10681 * psympriv.h (struct partial_symtab): Add constructor and
10682 initializers.
10683
10684 2020-01-26 Tom Tromey <tom@tromey.com>
10685
10686 * machoread.c: Do not include psympriv.h.
10687
10688 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10689
10690 * NEWS: Mention the new option and the set/show commands.
10691
10692 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10693
10694 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10695 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10696 (validate_exec_file): New variables, enums, functions.
10697 (exec_file_locate_attach, print_section_info): Style the filenames.
10698 (_initialize_exec): Install show_exec_file_mismatch_command and
10699 set_exec_file_mismatch_command.
10700 * gdbcore.h (validate_exec_file): Declare.
10701 * infcmd.c (attach_command): Call validate_exec_file.
10702 * remote.c ( remote_target::remote_add_inferior): Likewise.
10703
10704 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10705
10706 * frame.c (find_frame_sal): Move call to get_next_frame into more
10707 inner scope.
10708 * inline-frame.c (inilne_state) <inline_state>: Update argument
10709 types.
10710 (inilne_state) <skipped_symbol>: Rename to...
10711 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10712 (skip_inline_frames): Build vector of skipped symbols and use this
10713 to reate the inline_state.
10714 (inline_skipped_symbol): Add a comment and some assertions, fetch
10715 skipped symbol from the list.
10716
10717 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10718
10719 * buildsym.c (lte_is_less_than): Delete.
10720 (buildsym_compunit::end_symtab_with_blockvector): Create local
10721 lambda function to sort line table entries, and use
10722 std::stable_sort instead of std::sort.
10723 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10724 markers when looking for a previous line.
10725
10726 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10727
10728 * dwarf2read.c (lnp_state_machine::record_line): Include
10729 end_sequence parameter in debug print out. Record the line if we
10730 are at an end_sequence marker even if it's not the start of a
10731 statement.
10732 * symmisc.c (maintenance_print_one_line_table): Print end of
10733 sequence markers with 'END' not '0'.
10734
10735 2020-01-24 Pedro Alves <palves@redhat.com>
10736
10737 PR gdb/25410
10738 * thread.c (scoped_restore_current_thread::restore): Use
10739 switch_to_inferior_no_thread.
10740 * exec.c: Include "progspace-and-thread.h".
10741 (add_target_sections, remove_target_sections):
10742 scoped_restore_current_pspace_and_thread instead of
10743 scoped_restore_current_thread.
10744 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10745 and aspace to the inferior before calling clone_program_space.
10746 Remove stale comment.
10747
10748 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10749
10750 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10751 (arm_netbsd_nat_target::fetch_registers): ...this.
10752 (arm_nbsd_nat_target::store_registers): Rename to...
10753 (arm_netbsd_nat_target::store_registers): ...this.
10754
10755 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10756
10757 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10758 register_t.
10759
10760 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10761
10762 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10763 Update comment.
10764 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10765 Likewise.
10766 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10767 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10768 the correct replacement (iterate_over_regset_sections).
10769 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10770 Update comment.
10771
10772 2020-01-24 Graham Markall <graham.markall@embecosm.com>
10773
10774 PR gdb/23718
10775 * gdb/python/python.c (execute_gdb_command): Call
10776 async_enable_stdin in catch block.
10777
10778 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10779
10780 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10781 SWITCH_THRU_ALL_UIS.
10782
10783 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10784
10785 PR tui/9765
10786 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10787 comment, add extra parameter, and update to store previous symbol
10788 when appropriate.
10789 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10790 add extra parameter.
10791 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10792 remove unneeded parameter, add try/catch around gdb_print_insn,
10793 rewrite to add items to asm_lines vector.
10794 (tui_find_backward_disassembly_start_address): New function.
10795 (tui_find_disassembly_address): Updated throughout.
10796 (tui_disasm_window::set_contents): Update for changes to
10797 tui_disassemble.
10798 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10799 number of lines to scroll.
10800
10801 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10802
10803 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10804 (SECT_OFF_DATA): Likewise.
10805 (SECT_OFF_RODATA): Likewise.
10806 (SECT_OFF_TEXT): Likewise.
10807 (SECT_OFF_BSS): Likewise.
10808 (struct objfile) <text_section_offset, data_section_offset>: New
10809 methods.
10810 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10811 objfile::text_section_offset.
10812 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10813 * coffread.c (coff_symtab_read): Likewise.
10814 (enter_linenos): Likewise.
10815 (process_coff_symbol): Likewise.
10816 * ctfread.c (get_objfile_text_range): Likewise.
10817 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10818 Use objfile::data_section_offset.
10819 * dwarf2-frame.c (execute_cfa_program): Use
10820 objfile::text_section_offset.
10821 (dwarf2_frame_find_fde): Likewise.
10822 * dwarf2read.c (create_addrmap_from_index): Likewise.
10823 (create_addrmap_from_aranges): Likewise.
10824 (dw2_find_pc_sect_compunit_symtab): Likewise.
10825 (process_psymtab_comp_unit_reader): Likewise.
10826 (add_partial_symbol): Likewise.
10827 (add_partial_subprogram): Likewise.
10828 (process_full_comp_unit): Likewise.
10829 (read_file_scope): Likewise.
10830 (read_func_scope): Likewise.
10831 (read_lexical_block_scope): Likewise.
10832 (read_call_site_scope): Likewise.
10833 (dwarf2_rnglists_process): Likewise.
10834 (dwarf2_ranges_process): Likewise.
10835 (dwarf2_ranges_read): Likewise.
10836 (dwarf_decode_lines_1): Likewise.
10837 (new_symbol): Likewise.
10838 (dwarf2_fetch_die_loc_sect_off): Likewise.
10839 (dwarf2_per_cu_text_offset): Likewise.
10840 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10841 * hppa-tdep.c (read_unwind_info): Likewise.
10842 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10843 * psympriv.h (struct partial_symtab): Likewise.
10844 * psymtab.c (find_pc_sect_psymtab): Likewise.
10845 * solib-svr4.c (enable_break): Likewise.
10846 * stap-probe.c (relocate_address): Use
10847 objfile::data_section_offset.
10848 * xcoffread.c (enter_line_range): Use
10849 objfile::text_section_offset.
10850 (read_xcoff_symtab): Likewise.
10851
10852 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10853
10854 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10855 declaration to narrower scopes.
10856
10857 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10858
10859 * darwin-nat.h (struct darwin_exception_msg, enum
10860 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10861 Move up.
10862 (class darwin_nat_target) <wait_1, check_new_threads,
10863 decode_exception_message, decode_message, stop_inferior,
10864 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10865 * darwin-nat.c (darwin_check_new_threads): Rename to...
10866 (darwin_nat_target::check_new_threads): ... this.
10867 (darwin_suspend_inferior_it): Remove.
10868 (darwin_decode_exception_message): Rename to...
10869 (darwin_nat_target::decode_exception_message): ... this.
10870 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10871 (darwin_decode_message): Rename to...
10872 (darwin_nat_target::decode_message): ... this.
10873 (cancel_breakpoint): Rename to...
10874 (darwin_nat_target::cancel_breakpoint): ... this.
10875 (darwin_wait): Rename to...
10876 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10877 instead of iterate_over_inferiors.
10878 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10879 (darwin_stop_inferior): Rename to...
10880 (darwin_nat_target::stop_inferior): ... this.
10881 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10882 (darwin_init_thread_list): Rename to...
10883 (darwin_nat_target::init_thread_list): ... this.
10884 (darwin_ptrace_him): Rename to...
10885 (darwin_nat_target::ptrace_him): ... this.
10886 (darwin_nat_target::create_inferior): Pass lambda function to
10887 fork_inferior.
10888 (darwin_nat_target::detach): Call stop_inferior instead of
10889 darwin_stop_inferior.
10890 * fork-inferior.h (fork_inferior): Change init_trace_fun
10891 parameter to gdb::function_view.
10892 * fork-inferior.c (fork_inferior): Likewise.
10893
10894 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
10895
10896 * i386-cygwin-tdep.c (core_process_module_section): Update.
10897 * windows-nat.c (struct lm_info_windows): Add text_offset.
10898 (windows_xfer_shared_libraries): Update.
10899 * windows-tdep.c (windows_xfer_shared_library):
10900 Add text_offset_cached argument.
10901 * windows-tdep.h (windows_xfer_shared_library): Update.
10902
10903 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10904
10905 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10906
10907 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10908
10909 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10910 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10911 replace with range-based for.
10912 (gdbsim_interrupt_inferior): Remove.
10913 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10914 with a range-based for. Inline code from
10915 gdbsim_interrupt_inferior.
10916
10917 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10918
10919 * infrun.c (proceed): Fix indentation.
10920
10921 2020-01-21 Tom Tromey <tromey@adacore.com>
10922
10923 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10924 * python/python.c (python_extension_ops): Update.
10925 (gdbpy_colorize): New function.
10926 * python/lib/gdb/__init__.py (colorize): New function.
10927 * extension.h (ext_lang_colorize): Declare.
10928 * extension.c (ext_lang_colorize): New function.
10929 * extension-priv.h (struct extension_language_ops) <colorize>: New
10930 member.
10931 * cli/cli-style.c (_initialize_cli_style): Update help text.
10932
10933 2020-01-21 Luis Machado <luis.machado@linaro.org>
10934
10935 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10936 <cond>: Change type to bool.
10937 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10938 (aarch64_displaced_step_cb): Likewise.
10939 (aarch64_displaced_step_tb): Likewise.
10940
10941 2020-01-21 Luis Machado <luis.machado@linaro.org>
10942
10943 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10944 output.
10945
10946 2020-01-21 Luis Machado <luis.machado@linaro.org>
10947
10948 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10949 <pc_adjust>: Adjust the documentation.
10950 (aarch64_displaced_step_fixup): Check if PC really moved before
10951 adjusting it.
10952
10953 2020-01-19 Tom Tromey <tom@tromey.com>
10954
10955 * disasm.c (~gdb_disassembler): New destructor.
10956 (gdb_buffered_insn_length): Call disassemble_free_target.
10957 * disasm.h (class gdb_disassembler): Declare destructor. Use
10958 DISABLE_COPY_AND_ASSIGN.
10959
10960 2020-01-19 Tom Tromey <tom@tromey.com>
10961
10962 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10963 (die_reader_func_ftype): Remove.
10964 (cutu_reader): New class.
10965 (dw2_get_file_names_reader): Remove "data" parameter.
10966 (dw2_get_file_names): Use cutu_reader.
10967 (create_debug_type_hash_table): Update.
10968 (read_cutu_die_from_dwo): Update comment.
10969 (lookup_dwo_unit): Add dwo_name parameter.
10970 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10971 die_reader_func_ftype and data parameters.
10972 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10973 Remove die_reader_func_ftype and data parameters.
10974 (~cutu_reader): New; from init_cutu_and_read_dies.
10975 (cutu_reader::cutu_reader): Rename from
10976 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10977 and data parameters.
10978 (init_cutu_and_read_dies_simple): Remove.
10979 (struct process_psymtab_comp_unit_data): Remove.
10980 (process_psymtab_comp_unit_reader): Remove data parameter; add
10981 want_partial_unit and pretend_language parameters.
10982 (process_psymtab_comp_unit): Use cutu_reader.
10983 (build_type_psymtabs_reader): Remove data parameter.
10984 (build_type_psymtabs_1): Use cutu_reader.
10985 (process_skeletonless_type_unit): Likewise.
10986 (load_partial_comp_unit_reader): Remove.
10987 (load_partial_comp_unit): Use cutu_reader.
10988 (load_full_comp_unit_reader): Remove.
10989 (load_full_comp_unit): Use cutu_reader.
10990 (struct create_dwo_cu_data): Remove.
10991 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10992 dwo_unit parameters.
10993 (create_cus_hash_table): Use cutu_reader.
10994 (struct dwarf2_read_addr_index_data): Remove.
10995 (dwarf2_read_addr_index_reader): Remove.
10996 (dwarf2_read_addr_index): Use cutu_reader.
10997 (read_signatured_type_reader): Remove.
10998 (read_signatured_type): Use cutu_reader.
10999
11000 2020-01-19 Tom Tromey <tom@tromey.com>
11001
11002 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
11003 * tui/tui-wingeneral.h (class tui_suppress_output): New.
11004 (tui_wrefresh): Declare.
11005 * tui/tui-wingeneral.c (suppress_output): New global.
11006 (tui_suppress_output, ~tui_suppress_output): New constructor and
11007 destructor.
11008 (tui_wrefresh): New function.
11009 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
11010 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
11011 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
11012 method.
11013 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
11014 tui_wrefresh.
11015 (tui_data_window::no_refresh): New method.
11016 (tui_data_item_window::refresh_window): Call tui_wrefresh.
11017 (tui_reg_command): Use tui_suppress_output
11018 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
11019 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
11020 method.
11021 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
11022
11023 2020-01-19 Tom Tromey <tom@tromey.com>
11024
11025 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11026 Handle case where symtab is null.
11027
11028 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
11029
11030 * linux-fork.c (one_fork_p): Simplify.
11031
11032 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11033
11034 * top.c (struct qt_args): Remove.
11035 (kill_or_detach): Change return type to void, replace `void *`
11036 parameter with a proper one.
11037 (print_inferior_quit_action): Likewise.
11038 (quit_confirm): Use range-based for loop to iterate over inferiors.
11039 (quit_force): Likewise.
11040
11041 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11042
11043 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
11044 `void *` parameter with proper parameters.
11045 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
11046 (print_one_inferior): Change return type to void, replace `void *`
11047 parameter with proper parameters.
11048 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
11049 inferiors.
11050 (get_other_inferior): Remove.
11051 (mi_cmd_remove_inferior): Use range-based loop to iterate over
11052 inferiors.
11053
11054 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11055
11056 * mi/mi-interp.c (report_initial_inferior): Remove.
11057 (mi_interp::init): Use range-based for to iterate over inferiors.
11058
11059 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11060
11061 * python/py-inferior.c (build_inferior_list): Remove.
11062 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
11063
11064 2020-01-16 Christian Biesinger <cbiesinger@google.com>
11065
11066 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
11067 (btrace_stitch_trace): Likewise.
11068 * charset.c (intermediate_encoding): Likewise (vaild).
11069 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
11070 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
11071 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
11072
11073 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
11074
11075 * windows-tdep.c (windows_get_tlb_type):
11076 Add rtl_user_process_parameters type.
11077
11078 2020-01-16 Pedro Alves <palves@redhat.com>
11079 Norbert Lange <nolange79@gmail.com>
11080
11081 PR build/24805
11082 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
11083 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
11084 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
11085 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
11086 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
11087 (ps_plog): Redeclare exported functions with default visibility.
11088
11089 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
11090
11091 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
11092 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
11093
11094 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
11095
11096 * infcmd.c (post_create_inferior): Use get_thread_regcache
11097 instead of get_current_regcache.
11098
11099 2020-01-14 Tom Tromey <tom@tromey.com>
11100
11101 PR symtab/12535:
11102 * python/python.c (gdbpy_decode_line): Treat empty string the same
11103 as no argument.
11104
11105 2020-01-14 Tom Tromey <tom@tromey.com>
11106
11107 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
11108
11109 2020-01-14 Tom Tromey <tom@tromey.com>
11110
11111 * nat/linux-btrace.c: Don't include <config.h>.
11112 * nat/linux-ptrace.c: Don't include <config.h>.
11113 * nat/x86-linux-dregs.c: Don't include <config.h>.
11114
11115 2020-01-14 Tom Tromey <tom@tromey.com>
11116
11117 * configure: Rebuild.
11118 * configure.ac: Move many checks to ../gdbsupport/common.m4.
11119
11120 2020-01-14 Tom Tromey <tom@tromey.com>
11121
11122 * nat/x86-linux-dregs.c: Include configh.h.
11123 * nat/linux-ptrace.c: Include configh.h.
11124 * nat/linux-btrace.c: Include configh.h.
11125 * defs.h: Include config.h, bfd.h.
11126 * configure.ac: Don't source common.host.
11127 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
11128 * configure: Rebuild.
11129 * acinclude.m4: Update path.
11130 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
11131 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
11132 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
11133 (CLIBS): Add LIBSUPPORT.
11134 (CDEPS): Likewise.
11135 (COMMON_SFILES): Remove gdbsupport files.
11136 (HFILES_NO_SRCDIR): Likewise.
11137 (stamp-version): Update path to create-version.sh.
11138 (ALLDEPFILES): Remove gdbsupport files.
11139
11140 2020-01-14 Tom Tromey <tom@tromey.com>
11141
11142 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
11143 USE_WIN32API when needed.
11144 * configure.ac (USE_WIN32API): Don't define.
11145 (WIN32LIBS): Use WIN32APILIBS.
11146 * configure: Rebuild.
11147
11148 2020-01-14 Tom Tromey <tom@tromey.com>
11149
11150 * configure: Rebuild.
11151 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
11152
11153 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
11154
11155 * skip.c (skip_function_command): Make skip w/o arguments use the
11156 name of the inlined function if pc is inside any inlined function.
11157
11158 2020-01-14 Luis Machado <luis.machado@linaro.org>
11159
11160 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
11161 * infrun.c (resume_1): Likewise.
11162 (handle_inferior_event): Remove stale comment.
11163 * linux-nat.c (linux_nat_target::resume): Update comments.
11164 (save_stop_reason): Likewise.
11165 (linux_nat_filter_event): Likewise.
11166 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
11167
11168 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11169
11170 * elfread.c (record_minimal_symbol): Set section index to 0 for
11171 non-allocatable sections.
11172
11173
11174 2020-01-13 Ali Tamur <tamur@google.com>
11175
11176 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
11177 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
11178 to gdb::optional. Update comments.
11179 (dwo_file): Update comments.
11180 (read_attribute): Update API to take an additional out parameter,
11181 need_reprocess. This is used to mark attributes that need other
11182 attributes (e.g. str_offsets_base) for correct computation which may not
11183 have been read yet.
11184 (read_attribute_reprocess): New function declaration.
11185 (read_addr_index): Likewise.
11186 (read_dwo_str_index): Likewise.
11187 (read_stub_str_index): Likewise.
11188 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
11189 (lookup_addr_base): New function definition.
11190 (lookup_ranges_base): Likewise.
11191 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
11192 lookup_ranges_base.
11193 (init_cutu_and_read_dies): Update comments.
11194 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
11195 unit. This is used to inherit parent's str_offsets_base and addr_base.
11196 Update comments.
11197 (init_cutu_and_read_dies_simple): Reflect API changes.
11198 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
11199 (create_cus_hash_table): Change API to take parent compile unit.
11200 Reflect API changes.
11201 (open_and_init_dwo_file): Reflect API changes.
11202 (dwarf2_get_pc_bounds): Update comments.
11203 (dwarf2_record_block_ranges): Likewise.
11204 (read_full_die_1): Change implementation to reprocess attributes that
11205 need str_offsets_base and addr_base.
11206 (partial_die_info::read): Likewise.
11207 (read_attribute_reprocess): New function definition.
11208 (read_attribute_value): Change API to take an additional out parameter,
11209 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
11210 when a non-dwo compile unit has index based attributes.
11211 (read_attribute): Reflect API changes.
11212 (read_addr_index_1): Reflect API changes. Update comments.
11213 (dwarf2_read_addr_index_data): Reflect API changes.
11214 (dwarf2_read_addr_index): Likewise.
11215 (read_str_index): Change API and implementation. This becomes a helper
11216 to be used by the new string index related methods. Update error
11217 message and comments.
11218 (read_dwo_str_index): New function definition.
11219 (read_stub_str_index): Likewise.
11220 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
11221 * symfile.h (dwarf2_debug_sections): Likewise.
11222 * xcoffread.c (dwarf2_debug_sections): Likewise.
11223
11224 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11225
11226 * gdbcore.h (struct core_fns) <core_read_registers>: Change
11227 core_reg_sect type to gdb_byte *.
11228 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
11229 * cris-tdep.c (fetch_core_registers): Likewise.
11230 * corelow.c (core_target::get_core_register_section): Change
11231 type of `contents` to gdb::byte_vector.
11232
11233 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11234
11235 * tui/tui-wingeneral.c (box_win): Position the title in the center
11236 of the border.
11237
11238 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11239
11240 * corelow.c (core_target::get_core_register_section): Use
11241 std::vector instead of alloca.
11242
11243 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11244
11245 * warning.m4: Add -Wmissing-declarations to build_warnings.
11246 * configure: Re-generate.
11247
11248 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11249
11250 * python/python.c (init__gdb_module): Add declaration.
11251
11252 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11253
11254 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
11255 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
11256 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
11257 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
11258 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
11259 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
11260 * ada-exp.y (_initialize_ada_exp): Add declaration.
11261 * ada-lang.c (_initialize_ada_language): Add declaration.
11262 * ada-tasks.c (_initialize_tasks): Add declaration.
11263 * agent.c (_initialize_agent): Add declaration.
11264 * aix-thread.c (_initialize_aix_thread): Add declaration.
11265 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
11266 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
11267 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
11268 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
11269 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
11270 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
11271 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
11272 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
11273 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
11274 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
11275 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
11276 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
11277 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
11278 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
11279 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
11280 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
11281 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
11282 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
11283 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
11284 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
11285 * annotate.c (_initialize_annotate): Add declaration.
11286 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
11287 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
11288 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
11289 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
11290 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
11291 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
11292 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
11293 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
11294 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
11295 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
11296 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
11297 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
11298 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
11299 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
11300 * auto-load.c (_initialize_auto_load): Add declaration.
11301 * auxv.c (_initialize_auxv): Add declaration.
11302 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
11303 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
11304 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
11305 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
11306 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
11307 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
11308 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
11309 * breakpoint.c (_initialize_breakpoint): Add declaration.
11310 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
11311 * btrace.c (_initialize_btrace): Add declaration.
11312 * charset.c (_initialize_charset): Add declaration.
11313 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
11314 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11315 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11316 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11317 * cli/cli-script.c (_initialize_cli_script): Add declaration.
11318 * cli/cli-style.c (_initialize_cli_style): Add declaration.
11319 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11320 * coffread.c (_initialize_coffread): Add declaration.
11321 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11322 * compile/compile.c (_initialize_compile): Add declaration.
11323 * complaints.c (_initialize_complaints): Add declaration.
11324 * completer.c (_initialize_completer): Add declaration.
11325 * copying.c (_initialize_copying): Add declaration.
11326 * corefile.c (_initialize_core): Add declaration.
11327 * corelow.c (_initialize_corelow): Add declaration.
11328 * cp-abi.c (_initialize_cp_abi): Add declaration.
11329 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11330 * cp-support.c (_initialize_cp_support): Add declaration.
11331 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11332 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11333 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11334 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11335 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11336 * ctfread.c (_initialize_ctfread): Add declaration.
11337 * d-lang.c (_initialize_d_language): Add declaration.
11338 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11339 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11340 * dbxread.c (_initialize_dbxread): Add declaration.
11341 * dcache.c (_initialize_dcache): Add declaration.
11342 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11343 * disasm.c (_initialize_disasm): Add declaration.
11344 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11345 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11346 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11347 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11348 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11349 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11350 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11351 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11352 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11353 * elfread.c (_initialize_elfread): Add declaration.
11354 * exec.c (_initialize_exec): Add declaration.
11355 * extension.c (_initialize_extension): Add declaration.
11356 * f-lang.c (_initialize_f_language): Add declaration.
11357 * f-valprint.c (_initialize_f_valprint): Add declaration.
11358 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11359 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11360 * filesystem.c (_initialize_filesystem): Add declaration.
11361 * findcmd.c (_initialize_mem_search): Add declaration.
11362 * findvar.c (_initialize_findvar): Add declaration.
11363 * fork-child.c (_initialize_fork_child): Add declaration.
11364 * frame-base.c (_initialize_frame_base): Add declaration.
11365 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11366 * frame.c (_initialize_frame): Add declaration.
11367 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11368 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11369 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11370 * gcore.c (_initialize_gcore): Add declaration.
11371 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11372 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11373 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11374 * gdbarch.c (_initialize_gdbarch): Add declaration.
11375 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11376 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11377 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11378 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11379 * go-lang.c (_initialize_go_language): Add declaration.
11380 * go32-nat.c (_initialize_go32_nat): Add declaration.
11381 * guile/guile.c (_initialize_guile): Add declaration.
11382 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11383 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11384 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11385 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11386 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11387 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11388 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11389 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11390 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11391 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11392 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11393 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11394 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11395 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11396 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11397 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11398 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11399 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11400 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11401 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11402 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11403 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11404 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11405 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11406 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11407 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11408 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11409 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11410 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11411 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11412 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11413 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11414 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11415 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11416 * infcall.c (_initialize_infcall): Add declaration.
11417 * infcmd.c (_initialize_infcmd): Add declaration.
11418 * inflow.c (_initialize_inflow): Add declaration.
11419 * infrun.c (_initialize_infrun): Add declaration.
11420 * interps.c (_initialize_interpreter): Add declaration.
11421 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11422 * jit.c (_initialize_jit): Add declaration.
11423 * language.c (_initialize_language): Add declaration.
11424 * linux-fork.c (_initialize_linux_fork): Add declaration.
11425 * linux-nat.c (_initialize_linux_nat): Add declaration.
11426 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11427 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11428 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11429 * m2-lang.c (_initialize_m2_language): Add declaration.
11430 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11431 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11432 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11433 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11434 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11435 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11436 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11437 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11438 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11439 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11440 * machoread.c (_initialize_machoread): Add declaration.
11441 * macrocmd.c (_initialize_macrocmd): Add declaration.
11442 * macroscope.c (_initialize_macroscope): Add declaration.
11443 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11444 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11445 * maint.c (_initialize_maint_cmds): Add declaration.
11446 * mdebugread.c (_initialize_mdebugread): Add declaration.
11447 * memattr.c (_initialize_mem): Add declaration.
11448 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11449 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11450 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11451 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11452 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11453 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11454 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11455 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11456 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11457 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11458 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11459 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11460 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11461 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11462 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11463 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11464 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11465 * mipsread.c (_initialize_mipsread): Add declaration.
11466 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11467 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11468 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11469 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11470 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11471 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11472 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11473 * nto-procfs.c (_initialize_procfs): Add declaration.
11474 * objc-lang.c (_initialize_objc_language): Add declaration.
11475 * observable.c (_initialize_observer): Add declaration.
11476 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11477 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11478 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11479 * osabi.c (_initialize_gdb_osabi): Add declaration.
11480 * osdata.c (_initialize_osdata): Add declaration.
11481 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11482 * parse.c (_initialize_parse): Add declaration.
11483 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11484 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11485 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11486 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11487 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11488 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11489 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11490 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11491 * printcmd.c (_initialize_printcmd): Add declaration.
11492 * probe.c (_initialize_probe): Add declaration.
11493 * proc-api.c (_initialize_proc_api): Add declaration.
11494 * proc-events.c (_initialize_proc_events): Add declaration.
11495 * proc-service.c (_initialize_proc_service): Add declaration.
11496 * procfs.c (_initialize_procfs): Add declaration.
11497 * producer.c (_initialize_producer): Add declaration.
11498 * psymtab.c (_initialize_psymtab): Add declaration.
11499 * python/python.c (_initialize_python): Add declaration.
11500 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11501 * record-btrace.c (_initialize_record_btrace): Add declaration.
11502 * record-full.c (_initialize_record_full): Add declaration.
11503 * record.c (_initialize_record): Add declaration.
11504 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11505 * regcache.c (_initialize_regcache): Add declaration.
11506 * reggroups.c (_initialize_reggroup): Add declaration.
11507 * remote-notif.c (_initialize_notif): Add declaration.
11508 * remote-sim.c (_initialize_remote_sim): Add declaration.
11509 * remote.c (_initialize_remote): Add declaration.
11510 * reverse.c (_initialize_reverse): Add declaration.
11511 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11512 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11513 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11514 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11515 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11516 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11517 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11518 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11519 Add declaration.
11520 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11521 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11522 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11523 * rust-exp.y (_initialize_rust_exp): Add declaration.
11524 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11525 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11526 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11527 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11528 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11529 * score-tdep.c (_initialize_score_tdep): Add declaration.
11530 * ser-go32.c (_initialize_ser_dos): Add declaration.
11531 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11532 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11533 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11534 * ser-uds.c (_initialize_ser_socket): Add declaration.
11535 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11536 * serial.c (_initialize_serial): Add declaration.
11537 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11538 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11539 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11540 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11541 * skip.c (_initialize_step_skip): Add declaration.
11542 * sol-thread.c (_initialize_sol_thread): Add declaration.
11543 * solib-aix.c (_initialize_solib_aix): Add declaration.
11544 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11545 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11546 * solib-frv.c (_initialize_frv_solib): Add declaration.
11547 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11548 * solib-target.c (_initialize_solib_target): Add declaration.
11549 * solib.c (_initialize_solib): Add declaration.
11550 * source-cache.c (_initialize_source_cache): Add declaration.
11551 * source.c (_initialize_source): Add declaration.
11552 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11553 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11554 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11555 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11556 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11557 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11558 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11559 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11560 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11561 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11562 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11563 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11564 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11565 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11566 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11567 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11568 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11569 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11570 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11571 * stabsread.c (_initialize_stabsread): Add declaration.
11572 * stack.c (_initialize_stack): Add declaration.
11573 * stap-probe.c (_initialize_stap_probe): Add declaration.
11574 * std-regs.c (_initialize_frame_reg): Add declaration.
11575 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11576 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11577 * symfile.c (_initialize_symfile): Add declaration.
11578 * symmisc.c (_initialize_symmisc): Add declaration.
11579 * symtab.c (_initialize_symtab): Add declaration.
11580 * target.c (_initialize_target): Add declaration.
11581 * target-connection.c (_initialize_target_connection): Add
11582 declaration.
11583 * target-dcache.c (_initialize_target_dcache): Add declaration.
11584 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11585 * thread.c (_initialize_thread): Add declaration.
11586 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11587 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11588 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11589 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11590 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11591 * tracectf.c (_initialize_ctf): Add declaration.
11592 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11593 * tracefile.c (_initialize_tracefile): Add declaration.
11594 * tracepoint.c (_initialize_tracepoint): Add declaration.
11595 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11596 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11597 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11598 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11599 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11600 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11601 * tui/tui.c (_initialize_tui): Add declaration.
11602 * typeprint.c (_initialize_typeprint): Add declaration.
11603 * ui-style.c (_initialize_ui_style): Add declaration.
11604 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11605 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11606 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11607 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11608 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11609 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11610 * unittests/filtered_iterator-selftests.c
11611 (_initialize_filtered_iterator_selftests): Add declaration.
11612 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11613 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11614 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11615 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11616 * unittests/main-thread-selftests.c
11617 (_initialize_main_thread_selftests): Add declaration.
11618 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11619 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11620 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11621 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11622 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11623 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11624 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11625 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11626 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11627 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11628 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11629 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11630 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11631 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11632 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11633 declaration.
11634 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11635 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11636 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11637 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11638 * user-regs.c (_initialize_user_regs): Add declaration.
11639 * utils.c (_initialize_utils): Add declaration.
11640 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11641 * valops.c (_initialize_valops): Add declaration.
11642 * valprint.c (_initialize_valprint): Add declaration.
11643 * value.c (_initialize_values): Add declaration.
11644 * varobj.c (_initialize_varobj): Add declaration.
11645 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11646 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11647 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11648 * windows-nat.c (_initialize_windows_nat): Add declaration.
11649 (_initialize_check_for_gdb_ini): Add declaration.
11650 (_initialize_loadable): Add declaration.
11651 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11652 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11653 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11654 * xcoffread.c (_initialize_xcoffread): Add declaration.
11655 * xml-support.c (_initialize_xml_support): Add declaration.
11656 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11657 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11658 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11659 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11660
11661 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11662
11663 * regformats/regdat.sh: Generate declaration for init function.
11664
11665 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11666
11667 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11668 up.
11669 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11670 close_one_inferior>: New methods.
11671 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11672 pass down target to find_inferior_pid.
11673 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11674 Pass down target to find_inferior_ptid.
11675 (gdbsim_target::create_inferior): Pass down target to
11676 add_thread_silent.
11677 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11678 target down to find_inferior_ptid and switch_to_thread.
11679 (gdbsim_target::close): Update to call close_one_inferior.
11680 (struct resume_data): Remove.
11681 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11682 directly, rather than through a void pointer.
11683 (gdbsim_target::resume): Update to call resume_one_inferior.
11684
11685 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11686
11687 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11688
11689 2020-01-12 Pedro Alves <palves@redhat.com>
11690
11691 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11692 directly for the current inferior instead of
11693 discard_all_inferiors.
11694 (discard_all_inferiors): Delete.
11695
11696 2020-01-11 Tom Tromey <tom@tromey.com>
11697
11698 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11699 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11700 deprecated_safe_get_selected_frame.
11701
11702 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11703
11704 * inferior.c (print_inferior): Switch inferior before printing it.
11705
11706 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11707 Pedro Alves <palves@redhat.com>
11708
11709 * progspace-and-thread.c (switch_to_program_space_and_thread):
11710 Assert there's an inferior for PSPACE. Use
11711 switch_to_inferior_no_thread to switch the inferior too.
11712 * progspace.c (program_space::~program_space): Call
11713 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11714 (program_space::free_all_objfiles): Don't call clear_symtab_users
11715 here.
11716 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11717
11718 2020-01-10 Pedro Alves <palves@redhat.com>
11719
11720 * NEWS: Mention multi-target debugging, "info connections", and
11721 "add-inferior -no-connection".
11722
11723 2020-01-10 Pedro Alves <palves@redhat.com>
11724
11725 * infrun.c: Include "target-connection.h".
11726 (check_multi_target_resumption): New.
11727 (proceed): Call it.
11728 * target-connection.c (make_target_connection_string): Make
11729 extern.
11730 * target-connection.h (make_target_connection_string): Declare.
11731
11732 2020-01-10 Pedro Alves <palves@redhat.com>
11733
11734 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11735 * inferior.c (uiout_field_connection): New function.
11736 (print_inferior): Add new "connection-id" column.
11737 (add_inferior_command): Show connection number/string of added
11738 inferior.
11739 * process-stratum-target.h
11740 (process_stratum_target::connection_string): New virtual method.
11741 (process_stratum_target::connection_number): New field.
11742 * remote.c (remote_target::connection_string): New override.
11743 * target-connection.c: New file.
11744 * target-connection.h: New file.
11745 * target.c (decref_target): Remove process_stratum targets from
11746 the connection list.
11747 (target_stack::push): Add process_stratum targets to the
11748 connection list.
11749
11750 2020-01-10 Pedro Alves <palves@redhat.com>
11751
11752 Revert:
11753 2016-04-12 Pedro Alves <palves@redhat.com>
11754 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11755 Remove references to name.
11756 * serial.h (struct serial) <name>: Delete.
11757
11758 2020-01-10 Pedro Alves <palves@redhat.com>
11759
11760 * gdbarch-selftests.c (register_to_value_test): Remove "target
11761 already pushed" check.
11762
11763 2020-01-10 Pedro Alves <palves@redhat.com>
11764 John Baldwin <jhb@FreeBSD.org>
11765
11766 * aarch64-linux-nat.c
11767 (aarch64_linux_nat_target::thread_architecture): Adjust.
11768 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11769 (task_command_1): Likewise.
11770 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11771 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11772 (aix_thread_target::store_registers)
11773 (aix_thread_target::thread_alive): Adjust.
11774 * amd64-fbsd-tdep.c: Include "inferior.h".
11775 (amd64fbsd_get_thread_local_address): Pass down target.
11776 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11777 thread's gdbarch instead of target_gdbarch.
11778 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11779 get_last_target_status.
11780 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11781 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11782 inferiors.
11783 (update_inserted_breakpoint_locations): Skip if inferiors with no
11784 execution.
11785 (update_global_location_list): When handling moribund locations,
11786 find representative inferior for location's pspace, and use thread
11787 count of its process_stratum target.
11788 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11789 * bsd-uthread.c (bsd_uthread_target::wait): Use
11790 as_process_stratum_target and adjust thread_change_ptid and
11791 add_thread calls.
11792 (bsd_uthread_target::update_thread_list): Use
11793 as_process_stratum_target and adjust find_thread_ptid,
11794 thread_change_ptid and add_thread calls.
11795 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11796 find_thread_ptid call.
11797 * corelow.c (add_to_thread_list): Adjust add_thread call.
11798 (core_target_open): Adjust add_thread_silent and thread_count
11799 calls.
11800 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11801 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11802 * event-top.c (async_disconnect): Pop targets from all inferiors.
11803 * exec.c (add_target_sections): Push exec target on all inferiors
11804 sharing the program space.
11805 (remove_target_sections): Remove the exec target from all
11806 inferiors sharing the program space.
11807 (exec_on_vfork): New.
11808 * exec.h (exec_on_vfork): Declare.
11809 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11810 Pass it down.
11811 (fbsd_nat_target::update_thread_list): Adjust.
11812 (fbsd_nat_target::resume): Adjust.
11813 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11814 down.
11815 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11816 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11817 get_thread_arch_regcache call.
11818 * fork-child.c (gdb_startup_inferior): Pass target down to
11819 startup_inferior and set_executing.
11820 * gdbthread.h (struct process_stratum_target): Forward declare.
11821 (add_thread, add_thread_silent, add_thread_with_info)
11822 (in_thread_list): Add process_stratum_target parameter.
11823 (find_thread_ptid(inferior*, ptid_t)): New overload.
11824 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11825 parameter.
11826 (all_threads()): Delete overload.
11827 (all_threads, all_non_exited_threads): Add process_stratum_target
11828 parameter.
11829 (all_threads_safe): Use brace initialization.
11830 (thread_count): Add process_stratum_target parameter.
11831 (set_resumed, set_running, set_stop_requested, set_executing)
11832 (threads_are_executing, finish_thread_state): Add
11833 process_stratum_target parameter.
11834 (switch_to_thread): Use is_current_thread.
11835 * i386-fbsd-tdep.c: Include "inferior.h".
11836 (i386fbsd_get_thread_local_address): Pass down target.
11837 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11838 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11839 have_inferiors check.
11840 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11841 (inf_ptrace_target::attach): Adjust.
11842 * infcall.c (run_inferior_call): Adjust.
11843 * infcmd.c (run_command_1): Pass target to
11844 scoped_finish_thread_state.
11845 (proceed_thread_callback): Skip inferiors with no execution.
11846 (continue_command): Rename 'all_threads' local to avoid hiding
11847 'all_threads' function. Adjust get_last_target_status call.
11848 (prepare_one_step): Adjust set_running call.
11849 (signal_command): Use user_visible_resume_target. Compare thread
11850 pointers instead of inferior_ptid.
11851 (info_program_command): Adjust to pass down target.
11852 (attach_command): Mark target's 'thread_executing' flag.
11853 (stop_current_target_threads_ns): New, factored out from ...
11854 (interrupt_target_1): ... this. Switch inferior before making
11855 target calls.
11856 * inferior-iter.h
11857 (struct all_inferiors_iterator, struct all_inferiors_range)
11858 (struct all_inferiors_safe_range)
11859 (struct all_non_exited_inferiors_range): Filter on
11860 process_stratum_target too. Remove explicit.
11861 * inferior.c (inferior::inferior): Push dummy target on target
11862 stack.
11863 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11864 Add process_stratum_target parameter, and pass it down.
11865 (have_live_inferiors): Adjust.
11866 (switch_to_inferior_and_push_target): New.
11867 (add_inferior_command, clone_inferior_command): Handle
11868 "-no-connection" parameter. Use
11869 switch_to_inferior_and_push_target.
11870 (_initialize_inferior): Mention "-no-connection" option in
11871 the help of "add-inferior" and "clone-inferior" commands.
11872 * inferior.h: Include "process-stratum-target.h".
11873 (interrupt_target_1): Use bool.
11874 (struct inferior) <push_target, unpush_target, target_is_pushed,
11875 find_target_beneath, top_target, process_target, target_at,
11876 m_stack>: New.
11877 (discard_all_inferiors): Delete.
11878 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11879 (all_inferiors, all_non_exited_inferiors): Add
11880 process_stratum_target parameter.
11881 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11882 (target_last_proc_target): New global.
11883 (follow_fork_inferior): Push target on new inferior. Pass target
11884 to add_thread_silent. Call exec_on_vfork. Handle target's
11885 reference count.
11886 (follow_fork): Adjust get_last_target_status call. Also consider
11887 target.
11888 (follow_exec): Push target on new inferior.
11889 (struct execution_control_state) <target>: New field.
11890 (user_visible_resume_target): New.
11891 (do_target_resume): Call target_async.
11892 (resume_1): Set target's threads_executing flag. Consider resume
11893 target.
11894 (commit_resume_all_targets): New.
11895 (proceed): Also consider resume target. Skip threads of inferiors
11896 with no execution. Commit resumtion in all targets.
11897 (start_remote): Pass current inferior to wait_for_inferior.
11898 (infrun_thread_stop_requested): Consider target as well. Pass
11899 thread_info pointer to clear_inline_frame_state instead of ptid.
11900 (infrun_thread_thread_exit): Consider target as well.
11901 (random_pending_event_thread): New inferior parameter. Use it.
11902 (do_target_wait): Rename to ...
11903 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11904 down.
11905 (threads_are_resumed_pending_p, do_target_wait): New.
11906 (prepare_for_detach): Adjust calls.
11907 (wait_for_inferior): New inferior parameter. Handle it. Use
11908 do_target_wait_1 instead of do_target_wait.
11909 (fetch_inferior_event): Adjust. Switch to representative
11910 inferior. Pass target down.
11911 (set_last_target_status): Add process_stratum_target parameter.
11912 Save target in global.
11913 (get_last_target_status): Add process_stratum_target parameter and
11914 handle it.
11915 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11916 (context_switch): Check inferior_ptid == null_ptid before calling
11917 inferior_thread().
11918 (get_inferior_stop_soon): Pass down target.
11919 (wait_one): Rename to ...
11920 (poll_one_curr_target): ... this.
11921 (struct wait_one_event): New.
11922 (wait_one): New.
11923 (stop_all_threads): Adjust.
11924 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11925 event's target.
11926 (switch_back_to_stepped_thread): Also consider target.
11927 (print_stop_event): Update.
11928 (normal_stop): Update. Also consider the resume target.
11929 * infrun.h (wait_for_inferior): Remove declaration.
11930 (user_visible_resume_target): New declaration.
11931 (get_last_target_status, set_last_target_status): New
11932 process_stratum_target parameter.
11933 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11934 process_stratum_target parameter, and use it.
11935 (clear_inline_frame_state (thread_info*)): New.
11936 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11937 process_stratum_target parameter.
11938 (clear_inline_frame_state (thread_info*)): Declare.
11939 * linux-fork.c (delete_checkpoint_command): Pass target down to
11940 find_thread_ptid.
11941 (checkpoint_command): Adjust.
11942 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11943 instead of just tweaking inferior_ptid.
11944 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11945 (exit_lwp): Pass target down to find_thread_ptid.
11946 (attach_proc_task_lwp_callback): Pass target down to
11947 add_thread/set_running/set_executing.
11948 (linux_nat_target::attach): Pass target down to
11949 thread_change_ptid.
11950 (get_detach_signal): Pass target down to find_thread_ptid.
11951 Consider last target status's target.
11952 (linux_resume_one_lwp_throw, resume_lwp)
11953 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11954 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11955 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11956 (linux_nat_target::async_wait_fd): New.
11957 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11958 target down.
11959 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11960 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11961 * linux-thread-db.c (struct thread_db_info::process_target): New
11962 field.
11963 (add_thread_db_info): Save target.
11964 (get_thread_db_info): New process_stratum_target parameter. Also
11965 match target.
11966 (delete_thread_db_info): New process_stratum_target parameter.
11967 Also match target.
11968 (thread_from_lwp): Adjust to pass down target.
11969 (thread_db_notice_clone): Pass down target.
11970 (check_thread_db_callback): Pass down target.
11971 (try_thread_db_load_1): Always push the thread_db target.
11972 (try_thread_db_load, record_thread): Pass target down.
11973 (thread_db_target::detach): Pass target down. Always unpush the
11974 thread_db target.
11975 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11976 target down. Always unpush the thread_db target.
11977 (find_new_threads_callback, thread_db_find_new_threads_2)
11978 (thread_db_target::update_thread_list): Pass target down.
11979 (thread_db_target::pid_to_str): Pass current inferior down.
11980 (thread_db_target::get_thread_local_address): Pass target down.
11981 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11982 target down.
11983 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11984 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11985 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11986 (procfs_init_inferior): Rename to ...
11987 (procfs_target::procfs_init_inferior): ... this and adjust.
11988 (procfs_target::create_inferior, procfs_notice_thread)
11989 (procfs_do_thread_registers): Adjust.
11990 * ppc-fbsd-tdep.c: Include "inferior.h".
11991 (ppcfbsd_get_thread_local_address): Pass down target.
11992 * proc-service.c (ps_xfer_memory): Switch current inferior and
11993 program space as well.
11994 (get_ps_regcache): Pass target down.
11995 * process-stratum-target.c
11996 (process_stratum_target::thread_address_space)
11997 (process_stratum_target::thread_architecture): Pass target down.
11998 * process-stratum-target.h
11999 (process_stratum_target::threads_executing): New field.
12000 (as_process_stratum_target): New.
12001 * ravenscar-thread.c
12002 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
12003 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
12004 down.
12005 * record-btrace.c (record_btrace_target::info_record): Adjust.
12006 (record_btrace_target::record_method)
12007 (record_btrace_target::record_is_replaying)
12008 (record_btrace_target::fetch_registers)
12009 (get_thread_current_frame_id, record_btrace_target::resume)
12010 (record_btrace_target::wait, record_btrace_target::stop): Pass
12011 target down.
12012 * record-full.c (record_full_wait_1): Switch to event thread.
12013 Pass target down.
12014 * regcache.c (regcache::regcache)
12015 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
12016 process_stratum_target parameter and handle it.
12017 (current_thread_target): New global.
12018 (get_thread_regcache): Add process_stratum_target parameter and
12019 handle it. Switch inferior before calling target method.
12020 (get_thread_regcache): Pass target down.
12021 (get_thread_regcache_for_ptid): Pass target down.
12022 (registers_changed_ptid): Add process_stratum_target parameter and
12023 handle it.
12024 (registers_changed_thread, registers_changed): Pass target down.
12025 (test_get_thread_arch_aspace_regcache): New.
12026 (current_regcache_test): Define a couple local test_target_ops
12027 instances and use them for testing.
12028 (readwrite_regcache): Pass process_stratum_target parameter.
12029 (cooked_read_test, cooked_write_test): Pass mock_target down.
12030 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
12031 (get_thread_arch_aspace_regcache): Add process_stratum_target
12032 parameter.
12033 (regcache::target): New method.
12034 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
12035 (regcache::registers_changed_ptid): Add process_stratum_target
12036 parameter.
12037 (regcache::m_target): New field.
12038 (registers_changed_ptid): Add process_stratum_target parameter.
12039 * remote.c (remote_state::supports_vCont_probed): New field.
12040 (remote_target::async_wait_fd): New method.
12041 (remote_unpush_and_throw): Add remote_target parameter.
12042 (get_current_remote_target): Adjust.
12043 (remote_target::remote_add_inferior): Push target.
12044 (remote_target::remote_add_thread)
12045 (remote_target::remote_notice_new_inferior)
12046 (get_remote_thread_info): Pass target down.
12047 (remote_target::update_thread_list): Skip threads of inferiors
12048 bound to other targets. (remote_target::close): Don't discard
12049 inferiors. (remote_target::add_current_inferior_and_thread)
12050 (remote_target::process_initial_stop_replies)
12051 (remote_target::start_remote)
12052 (remote_target::remote_serial_quit_handler): Pass down target.
12053 (remote_target::remote_unpush_target): New remote_target
12054 parameter. Unpush the target from all inferiors.
12055 (remote_target::remote_unpush_and_throw): New remote_target
12056 parameter. Pass it down.
12057 (remote_target::open_1): Check whether the current inferior has
12058 execution instead of checking whether any inferior is live. Pass
12059 target down.
12060 (remote_target::remote_detach_1): Pass down target. Use
12061 remote_unpush_target.
12062 (extended_remote_target::attach): Pass down target.
12063 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
12064 (remote_target::append_resumption): Pass down target.
12065 (remote_target::append_pending_thread_resumptions)
12066 (remote_target::remote_resume_with_hc, remote_target::resume)
12067 (remote_target::commit_resume): Pass down target.
12068 (remote_target::remote_stop_ns): Check supports_vCont_probed.
12069 (remote_target::interrupt_query)
12070 (remote_target::remove_new_fork_children)
12071 (remote_target::check_pending_events_prevent_wildcard_vcont)
12072 (remote_target::remote_parse_stop_reply)
12073 (remote_target::process_stop_reply): Pass down target.
12074 (first_remote_resumed_thread): New remote_target parameter. Pass
12075 it down.
12076 (remote_target::wait_as): Pass down target.
12077 (unpush_and_perror): New remote_target parameter. Pass it down.
12078 (remote_target::readchar, remote_target::remote_serial_write)
12079 (remote_target::getpkt_or_notif_sane_1)
12080 (remote_target::kill_new_fork_children, remote_target::kill): Pass
12081 down target.
12082 (remote_target::mourn_inferior): Pass down target. Use
12083 remote_unpush_target.
12084 (remote_target::core_of_thread)
12085 (remote_target::remote_btrace_maybe_reopen): Pass down target.
12086 (remote_target::pid_to_exec_file)
12087 (remote_target::thread_handle_to_thread_info): Pass down target.
12088 (remote_target::async_wait_fd): New.
12089 * riscv-fbsd-tdep.c: Include "inferior.h".
12090 (riscv_fbsd_get_thread_local_address): Pass down target.
12091 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
12092 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
12093 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
12094 Adjust.
12095 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
12096 * solib-svr4.c (enable_break): Pass down target.
12097 * spu-multiarch.c (parse_spufs_run): Pass down target.
12098 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
12099 * target-delegates.c: Regenerate.
12100 * target.c (g_target_stack): Delete.
12101 (current_top_target): Return the current inferior's top target.
12102 (target_has_execution_1): Refer to the passed-in inferior's top
12103 target.
12104 (target_supports_terminal_ours): Check whether the initial
12105 inferior was already created.
12106 (decref_target): New.
12107 (target_stack::push): Incref/decref the target.
12108 (push_target, push_target, unpush_target): Adjust.
12109 (target_stack::unpush): Defref target.
12110 (target_is_pushed): Return bool. Adjust to refer to the current
12111 inferior's target stack.
12112 (dispose_inferior): Delete, and inline parts ...
12113 (target_preopen): ... here. Only dispose of the current inferior.
12114 (target_detach): Hold strong target reference while detaching.
12115 Pass target down.
12116 (target_thread_name): Add assertion.
12117 (target_resume): Pass down target.
12118 (target_ops::beneath, find_target_at): Adjust to refer to the
12119 current inferior's target stack.
12120 (get_dummy_target): New.
12121 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
12122 has a thread running.
12123 (initialize_targets): Rename to ...
12124 (_initialize_target): ... this.
12125 * target.h: Include "gdbsupport/refcounted-object.h".
12126 (struct target_ops): Inherit refcounted_object.
12127 (target_ops::shortname, target_ops::longname): Make const.
12128 (target_ops::async_wait_fd): New method.
12129 (decref_target): Declare.
12130 (struct target_ops_ref_policy): New.
12131 (target_ops_ref): New typedef.
12132 (get_dummy_target): Declare function.
12133 (target_is_pushed): Return bool.
12134 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
12135 (all_matching_threads_iterator::all_matching_threads_iterator):
12136 Handle filter target.
12137 * thread-iter.h (struct all_matching_threads_iterator, struct
12138 all_matching_threads_range, class all_non_exited_threads_range):
12139 Filter by target too. Remove explicit.
12140 * thread.c (threads_executing): Delete.
12141 (inferior_thread): Pass down current inferior.
12142 (clear_thread_inferior_resources): Pass down thread pointer
12143 instead of ptid_t.
12144 (add_thread_silent, add_thread_with_info, add_thread): Add
12145 process_stratum_target parameter. Use it for thread and inferior
12146 searches.
12147 (is_current_thread): New.
12148 (thread_info::deletable): Use it.
12149 (find_thread_ptid, thread_count, in_thread_list)
12150 (thread_change_ptid, set_resumed, set_running): New
12151 process_stratum_target parameter. Pass it down.
12152 (set_executing): New process_stratum_target parameter. Pass it
12153 down. Adjust reference to 'threads_executing'.
12154 (threads_are_executing): New process_stratum_target parameter.
12155 Adjust reference to 'threads_executing'.
12156 (set_stop_requested, finish_thread_state): New
12157 process_stratum_target parameter. Pass it down.
12158 (switch_to_thread): Also match inferior.
12159 (switch_to_thread): New process_stratum_target parameter. Pass it
12160 down.
12161 (update_threads_executing): Reimplement.
12162 * top.c (quit_force): Pop targets from all inferior.
12163 (gdb_init): Don't call initialize_targets.
12164 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
12165 Declare.
12166 (windows_add_thread, windows_delete_thread): Adjust.
12167 (get_windows_debug_event): Rename to ...
12168 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
12169 * tracefile-tfile.c (tfile_target_open): Pass down target.
12170 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
12171 Forward declare.
12172 (switch_to_thread): Add process_stratum_target parameter.
12173 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
12174 parameter. Use it.
12175 (mi_on_resume): Pass target down.
12176 * nat/fork-inferior.c (startup_inferior): Add
12177 process_stratum_target parameter. Pass it down.
12178 * nat/fork-inferior.h (startup_inferior): Add
12179 process_stratum_target parameter.
12180 * python/py-threadevent.c (py_get_event_thread): Pass target down.
12181
12182 2020-01-10 Pedro Alves <palves@redhat.com>
12183
12184 * remote.c (remote_target::start_remote): Don't set inferior_ptid
12185 directly. Instead find the first thread in the thread list and
12186 use switch_to_thread.
12187
12188 2020-01-10 Pedro Alves <palves@redhat.com>
12189
12190 * remote.c (remote_target::remote_add_inferior): Don't bind a
12191 process to the current inferior if the current inferior is already
12192 bound to a process.
12193
12194 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12195 Pedro Alves <palves@redhat.com>
12196
12197 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
12198 If no process is specified, return null_ptid instead of
12199 inferior_ptid.
12200 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
12201 TARGET_WAITKIND_SIGNALLED with no pid.
12202
12203 2020-01-10 Pedro Alves <palves@redhat.com>
12204
12205 * remote.c (first_remote_resumed_thread): New.
12206 (remote_target::wait_as): Use it as default event_ptid instead of
12207 inferior_ptid.
12208
12209 2020-01-10 Pedro Alves <palves@redhat.com>
12210
12211 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
12212
12213 2020-01-10 Pedro Alves <palves@redhat.com>
12214
12215 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
12216 not -1.
12217
12218 2020-01-10 Pedro Alves <palves@redhat.com>
12219
12220 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
12221 ptid to get_last_target_status.
12222 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
12223 ptid to get_last_target_status.
12224 * infcmd.c (continue_command): Don't pass a target_waitstatus to
12225 get_last_target_status.
12226 (info_program_command): Don't pass a target_waitstatus to
12227 get_last_target_status.
12228 * infrun.c (init_wait_for_inferior): Use
12229 nullify_last_target_wait_ptid.
12230 (get_last_target_status): Handle nullptr arguments.
12231 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
12232 (print_stop_event): Don't pass a ptid to get_last_target_status.
12233 (normal_stop): Don't pass a ptid to get_last_target_status.
12234 * infrun.h (get_last_target_status, set_last_target_status): Move
12235 comments here and update.
12236 (nullify_last_target_wait_ptid): Declare.
12237 * linux-fork.c (fork_load_infrun_state): Remove local extern
12238 declaration of nullify_last_target_wait_ptid.
12239 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
12240 to get_last_target_status.
12241
12242 2020-01-10 Pedro Alves <palves@redhat.com>
12243
12244 * gdbthread.h (scoped_restore_current_thread)
12245 <dont_restore, restore, m_dont_restore>: Declare.
12246 * thread.c (thread_alive): Add assertion. Return bool.
12247 (switch_to_thread_if_alive): New.
12248 (prune_threads): Switch inferior/thread.
12249 (print_thread_info_1): Switch thread before calling target methods.
12250 (scoped_restore_current_thread::restore): New, factored out from
12251 ...
12252 (scoped_restore_current_thread::~scoped_restore_current_thread):
12253 ... this.
12254 (scoped_restore_current_thread::scoped_restore_current_thread):
12255 Add assertion.
12256 (thread_apply_all_command, thread_select): Use
12257 switch_to_thread_if_alive.
12258 * infrun.c (proceed, restart_threads, handle_signal_stop)
12259 (switch_back_to_stepped_thread): Switch current thread before
12260 calling target methods.
12261
12262 2020-01-10 Pedro Alves <palves@redhat.com>
12263
12264 * inferior.c (switch_to_inferior_no_thread): New function,
12265 factored out from ...
12266 (inferior_command): ... here.
12267 * inferior.h (switch_to_inferior_no_thread): Declare.
12268 * mi/mi-main.c (run_one_inferior): Use
12269 switch_to_inferior_no_thread.
12270
12271 2020-01-10 Pedro Alves <palves@redhat.com>
12272
12273 * infcmd.c (kill_command): Remove dead code.
12274
12275 2020-01-10 Pedro Alves <palves@redhat.com>
12276
12277 * remote.c (remote_target::mourn_inferior): No longer check
12278 whether the target is running.
12279
12280 2020-01-10 Pedro Alves <palves@redhat.com>
12281
12282 * corelow.c (core_target::has_execution): Change parameter type to
12283 inferior pointer.
12284 * inferior.c (number_of_live_inferiors): Use
12285 inferior::has_execution instead of target_has_execution_1.
12286 * inferior.h (inferior::has_execution): New.
12287 * linux-thread-db.c (thread_db_target::update_thread_list): Use
12288 inferior::has_execution instead of target_has_execution_1.
12289 * process-stratum-target.c
12290 (process_stratum_target::has_execution): Change parameter type to
12291 inferior pointer. Check the inferior's PID instead of
12292 inferior_ptid.
12293 * process-stratum-target.h
12294 (process_stratum_target::has_execution): Change parameter type to
12295 inferior pointer.
12296 * record-full.c (record_full_core_target::has_execution): Change
12297 parameter type to inferior pointer.
12298 * target.c (target_has_execution_1): Change parameter type to
12299 inferior pointer.
12300 (target_has_execution_current): Adjust.
12301 * target.h (target_ops::has_execution): Change parameter type to
12302 inferior pointer.
12303 (target_has_execution_1): Change parameter type to inferior
12304 pointer. Change return type to bool.
12305 * tracefile.h (tracefile_target::has_execution): Change parameter
12306 type to inferior pointer.
12307
12308 2020-01-10 Pedro Alves <palves@redhat.com>
12309
12310 * exceptions.c (print_flush): Remove current_top_target() check.
12311
12312 2020-01-10 Pedro Alves <palves@redhat.com>
12313
12314 * remote.c (show_remote_exec_file): Show the current inferior's
12315 exec-file instead of the command variable's value.
12316
12317 2020-01-10 Pedro Alves <palves@redhat.com>
12318
12319 * record-full.c (record_full_resume_ptid): New global.
12320 (record_full_target::resume): Set it.
12321 (record_full_wait_1): Use record_full_resume_ptid instead of
12322 inferior_ptid.
12323
12324 2020-01-10 Pedro Alves <palves@redhat.com>
12325
12326 * gdbthread.h (scoped_restore_current_thread)
12327 <dont_restore, restore, m_dont_restore>: Declare.
12328 * thread.c (thread_alive): Add assertion. Return bool.
12329 (switch_to_thread_if_alive): New.
12330 (prune_threads): Switch inferior/thread.
12331 (print_thread_info_1): Switch thread before calling target methods.
12332 (scoped_restore_current_thread::restore): New, factored out from
12333 ...
12334 (scoped_restore_current_thread::~scoped_restore_current_thread):
12335 ... this.
12336 (scoped_restore_current_thread::scoped_restore_current_thread):
12337 Add assertion.
12338 (thread_apply_all_command, thread_select): Use
12339 switch_to_thread_if_alive.
12340
12341 2020-01-10 George Barrett <bob@bob131.so>
12342
12343 * stap-probe.c (stap_modify_semaphore): Don't check for null
12344 semaphores.
12345 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12346 for null semaphores.
12347
12348 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12349
12350 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12351 all source windows, and maintain horizontal scroll status while
12352 doing so.
12353
12354 2020-01-09 Tom Tromey <tom@tromey.com>
12355
12356 PR tui/18932:
12357 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12358 update_source_window, not print_source_lines.
12359
12360 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12361
12362 * tui/tui.c (tui_enable): Register tui hooks after calling
12363 tui_display_main.
12364
12365 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12366
12367 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12368
12369 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
12370
12371 * thread.c (print_thread_info_1): Fix indentation.
12372
12373 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12374
12375 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12376 unique_xmalloc_ptr outside the if to always free the demangled name.
12377
12378 2020-01-08 Tom Tromey <tromey@adacore.com>
12379
12380 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12381 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12382 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12383 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12384 Remove.
12385 (section_offsets): New typedef.
12386 * symtab.c (fixup_section, get_msymbol_address): Update.
12387 * symmisc.c (dump_msymbols): Update.
12388 * symfile.h (relative_addr_info_to_section_offsets)
12389 (symfile_map_offsets_to_segments): Update.
12390 * symfile.c (build_section_addr_info_from_objfile)
12391 (init_objfile_sect_indices): Update.
12392 (struct place_section_arg): Change type of "offsets".
12393 (place_section): Update.
12394 (relative_addr_info_to_section_offsets): Change type of
12395 "section_offsets". Remove "num_sections" parameter.
12396 (default_symfile_offsets, syms_from_objfile_1)
12397 (set_objfile_default_section_offset): Update.
12398 (reread_symbols): No need to preserve section offsets by hand.
12399 (symfile_map_offsets_to_segments): Change type of "offsets".
12400 * stap-probe.c (relocate_address): Update.
12401 * stabsread.h (process_one_symbol): Update.
12402 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12403 (solib_target_relocate_section_addresses): Update.
12404 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12405 Update.
12406 * solib-frv.c (frv_relocate_main_executable): Update.
12407 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12408 * solib-aix.c (solib_aix_get_section_offsets): Change return
12409 type.
12410 (solib_aix_solib_create_inferior_hook): Update.
12411 * remote.c (remote_target::get_offsets): Update.
12412 * psymtab.c (find_pc_sect_psymtab): Update.
12413 * psympriv.h (struct partial_symbol) <address, text_low,
12414 text_high>: Update.
12415 * objfiles.h (obj_section_offset): Update.
12416 (struct objfile) <section_offsets>: Change type.
12417 <num_sections>: Remove.
12418 (objfile_relocate): Update.
12419 * objfiles.c (entry_point_address_query): Update
12420 (relocate_one_symbol): Change type of "section_offsets".
12421 (objfile_relocate1, objfile_relocate1): Change type of
12422 "new_offsets".
12423 (objfile_rebase1): Update.
12424 * mipsread.c (mipscoff_symfile_read): Update.
12425 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12426 parameter.
12427 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12428 (parse_external, psymtab_to_symtab_1): Update.
12429 * machoread.c (macho_symfile_offsets): Update.
12430 * ia64-tdep.c (ia64_find_unwind_table): Update.
12431 * hppa-tdep.c (read_unwind_info): Update.
12432 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12433 * dwarf2read.c (create_addrmap_from_index)
12434 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12435 (process_psymtab_comp_unit_reader, add_partial_symbol)
12436 (add_partial_subprogram, process_full_comp_unit)
12437 (read_file_scope, read_func_scope, read_lexical_block_scope)
12438 (read_call_site_scope, dwarf2_rnglists_process)
12439 (dwarf2_ranges_process, dwarf2_ranges_read)
12440 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12441 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12442 Update.
12443 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12444 Update.
12445 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12446 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12447 (process_one_symbol): Change type of "section_offsets".
12448 * ctfread.c (get_objfile_text_range): Update.
12449 * coffread.c (coff_symtab_read, enter_linenos)
12450 (process_coff_symbol): Update.
12451 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12452 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12453
12454 2020-01-08 Tom Tromey <tromey@adacore.com>
12455
12456 * dwarf2read.c (parse_macro_definition): Use std::string.
12457 (parse_macro_definition): Likewise.
12458
12459 2020-01-08 Tom Tromey <tromey@adacore.com>
12460
12461 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12462 (ATTR_ALLOC_CHUNK): Remove.
12463
12464 2020-01-08 Tom Tromey <tromey@adacore.com>
12465
12466 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12467
12468 2020-01-08 Tom Tromey <tromey@adacore.com>
12469
12470 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12471 (dwarf2_compute_name, open_dwo_file): Likewise.
12472 (process_enumeration_scope): Use std::vector.
12473 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12474 (partial_die_info::fixup, dwarf2_start_subfile)
12475 (guess_full_die_structure_name, dwarf2_name): Likewise.
12476 (determine_prefix): Update.
12477 (guess_full_die_structure_name): Make return type const.
12478 (partial_die_full_name): Return unique_xmalloc_ptr.
12479 (DW_FIELD_ALLOC_CHUNK): Remove.
12480
12481 2020-01-07 Tom Tromey <tromey@adacore.com>
12482
12483 PR build/24937:
12484 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12485
12486 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12487
12488 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12489
12490 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12491
12492 * stack.c (print_frame_info): Move disassemble_next_line code
12493 inside source_print block.
12494
12495 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12496
12497 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12498 gdb/signals.h, as we are now using native signal symbols.
12499
12500 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12501
12502 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12503 overflow by an early check of content vs threshold.
12504 * tui/tui-source.c (tui_source_window::line_is_displayed):
12505 Likewise.
12506
12507 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12508
12509 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12510
12511 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12512
12513 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12514 export table if no section contains it's RVA.
12515
12516 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12517
12518 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12519
12520 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
12521
12522 * source.c (print_source_lines_base): Set last_line_listed.
12523
12524 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12525
12526 * tui/tui-disasm.c: Remove trailing spaces.
12527
12528 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12529 Pedro Alves <palves@redhat.com>
12530
12531 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12532 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12533 (windows_gdb_signal_to_target): New function, uses the above
12534 enumeration to convert GDB internal signal codes to equivalent
12535 Windows codes.
12536 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12537 * windows-nat.c: Include "gdb_wait.h".
12538 (get_windows_debug_event): Extract the fatal exception from the
12539 exit status and convert to the equivalent Posix signal number.
12540 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12541 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12542 * gdbsupport/gdb_wait.c: New file, implements
12543 windows_status_to_termsig.
12544 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12545 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12546
12547 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12548
12549 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12550 show_layout.
12551
12552 2020-01-05 Luis Machado <luis.machado@linaro.org>
12553
12554 * aarch64-linux-nat.c
12555 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12556 and bfd_mach_aarch64.
12557
12558 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12559
12560 * ui-file.c (stdio_file::can_emit_style_escape)
12561 (tee_file::can_emit_style_escape): Ensure style is used also on
12562 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12563 to gdb_stdout.
12564 * main.c (set_gdb_data_directory): Use file style to output the
12565 warning that the given pathname is not a directory.
12566 * top.c (show_history_filename, gdb_safe_append_history)
12567 (show_gdb_datadir): Use file style.
12568
12569 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12570
12571 * solib-target.c (struct lm_info_target):
12572 Change offsets to be a unique_xmalloc_ptr.
12573 (solib_target_relocate_section_addresses): Update.
12574
12575 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12576
12577 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12578
12579 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12580
12581 * MAINTAINERS (Write After Approval): Add myself.
12582
12583 2020-01-02 Luis Machado <luis.machado@linaro.org>
12584
12585 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12586 Cell BE architecture.
12587 * target.h (struct target_ops) <thread_architecture>: Likewise.
12588
12589 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12590
12591 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12592
12593 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12594
12595 * MAINTAINERS (Write After Approval): Add myself.
12596
12597 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12598
12599 * gdbarch.sh: Update copyright year range of generated files.
12600
12601 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12602
12603 Update copyright year range in all GDB files.
12604
12605 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12606
12607 * copyright.py: Convert to Python 3.
12608
12609 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12610
12611 * copyright.py: Adapt after move of gnulib directory from gdb
12612 directory to toplevel directory.
12613
12614 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12615
12616 * copyright.py (main): Exit if run from the wrong directory.
12617
12618 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12619
12620 * top.c (print_gdb_version): Change copyright year to 2020.
12621
12622 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12623
12624 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
12625
12626 For older changes see ChangeLog-2019.
12627 \f
12628 Local Variables:
12629 mode: change-log
12630 left-margin: 8
12631 fill-column: 74
12632 version-control: never
12633 coding: utf-8
12634 End: