]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
gdb: add type::is_unsigned / type::set_is_unsigned
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2
3 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4 methods.
5 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
6 sites to use type::set_is_unsigned.
7
8 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
9 Adam Renquinha <arenquinha@cimeq.qc.ca>
10
11 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
12 pointer and stack frame offset when unwinding.
13
14 2020-09-13 Pedro Alves <pedro@palves.net>
15
16 * NEWS: Document "-break-insert --qualified".
17 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
18
19 2020-09-13 Pedro Alves <pedro@palves.net>
20
21 * linespec.c (classify_mtype, compare_msyms): Delete.
22 (search_minsyms_for_name): Remove classification logic. Instead
23 filter out trampoline symbols if we also found an external
24 function of the same name.
25
26 2020-09-13 Joel Brobecker <brobecker@adacore.com>
27
28 * NEWS: Create a new section for the next release branch.
29 Rename the section of the current branch, now that it has
30 been cut.
31
32 2020-09-13 Joel Brobecker <brobecker@adacore.com>
33
34 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
35 * version.in: Bump version to 11.0.50.DATE-git.
36
37 2020-09-12 Joel Brobecker <brobecker@adacore.com>
38
39 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
40
41 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
42 Felix Willgerodt <Felix.Willgerodt@intel.com>
43
44 * gdbarch.sh: Added bfloat16 type.
45 * gdbarch.c: Regenerated.
46 * gdbarch.h: Regenerated.
47 * gdbtypes.c (floatformats_bfloat16): New struct.
48 (gdbtypes_post_init): Add builtin_bfloat16.
49 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
50 (floatformats_bfloat16): New struct.
51 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
52 (i386_ymm_type): Add field "v16_bfloat16"
53 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
54 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
55 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
56 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
57 * features/i386/64bit-avx512.xml: Add bfloat16 type.
58 * features/i386/64bit-avx512.c: Regenerated.
59 * features/i386/64bit-sse.xml: Add bfloat16 type.
60 * features/i386/64bit-sse.c: Regenerated.
61
62 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
63
64 * i386-tdep.c (i386_zmm_type): Fix field names.
65 (i386_ymm_type): Fix field names.
66
67 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
68
69 * breakpoint.c: Fix typo in the help message of the
70 "set breakpoint condition-evaluation" command.
71
72 2020-09-10 Kamil Rytarowski <n54@gmx.com>
73
74 * nbsd-nat.c: Include "nat/netbsd-nat.h".
75 * (nbsd_nat_target::pid_to_exec_file)
76 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
77 (nbsd_nat_target::post_startup_inferior)
78 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
79 (nbsd_add_threads): Switch local code to common gdb/nat functions.
80 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
81 * (nbsd_thread_lister): Remove.
82
83 2020-09-10 Kamil Rytarowski <n54@gmx.com>
84
85 * fork-inferior.c (startup_inferior): Avoid double free.
86
87 2020-09-10 Kamil Rytarowski <n54@gmx.com>
88
89 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
90 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
91
92 2020-09-10 Kamil Rytarowski <n54@gmx.com>
93
94 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
95 * netbsd-nat.c: Include <sys/ptrace.h>.
96 * (netbsd_nat::enable_proc_events): Add.
97
98 2020-09-10 Kamil Rytarowski <n54@gmx.com>
99
100 * netbsd-nat.h: Include "gdbsupport/function-view.h".
101 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
102 (netbsd_nat::for_each_thread): Add.
103 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
104 "gdbsupport/common-debug.h".
105 * (netbsd_nat::netbsd_thread_lister)
106 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
107 (netbsd_nat::for_each_thread): Add.
108
109 2020-09-10 Kamil Rytarowski <n54@gmx.com>
110
111 * netbsd-nat.h: Include <unistd.h>.
112 * (netbsd_nat::pid_to_exec_file): Add.
113 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
114 * (netbsd_nat::pid_to_exec_file) Add.
115
116 2020-09-10 Kamil Rytarowski <n54@gmx.com>
117
118 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
119
120 2020-09-10 Kamil Rytarowski <n54@gmx.com>
121
122 * netbsd-nat.h: New file.
123 * netbsd-nat.c: Likewise.
124
125 2020-09-09 Tom Tromey <tromey@adacore.com>
126
127 * ada-lang.c (remove_extra_symbols): Do not increment when
128 removing an element
129
130 2020-09-08 Tom Tromey <tromey@adacore.com>
131
132 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
133
134 2020-09-08 Tom Tromey <tromey@adacore.com>
135
136 PR win32/25302:
137 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
138 (gdb_bfd_init_data): New function.
139 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
140
141 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
142
143 * infrun.c (fetch_inferior_event): Use
144 `switch_to_target_no_thread` to switch the target.
145
146 2020-09-06 Tom Tromey <tom@tromey.com>
147
148 * symfile.h (dwarf2_free_objfile): Don't declare.
149
150 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
151
152 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
153 to match 16 byte real/complex type generated by Flang compiler.
154
155 2020-09-03 Tom de Vries <tdevries@suse.de>
156
157 PR breakpoint/26546
158 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
159 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
160
161 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
162
163 * maint.c (index_digits): New function.
164 (struct maint_print_section_data): Remove.
165 (print_bfd_section_info): Remove print_data parameter, add arg
166 and index_digits.
167 (print_objfile_section_info): Likewise.
168 (print_bfd_section_info_maybe_relocated): Likewise (plus
169 objfile).
170 (maintenance_info_sections): Adjust calls.
171
172 2020-09-02 Tom Tromey <tromey@adacore.com>
173
174 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
175 for null pointers.
176 (ada_varobj_adjust_for_child_access): Special-case null pointers.
177
178 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
179
180 * bcache.h (struct bcache) <insert>: Change type of `added` to
181 pointer to bool.
182 * bcache.c (bcache::insert): Likewise.
183 * gdbtypes.c (check_types_worklist): Adjust.
184 * psymtab.c (add_psymbol_to_bcache): Adjust.
185
186 2020-08-31 Kevin Buettner <kevinb@redhat.com>
187
188 * corelow.c (unordered_set): Include.
189 (class core_target): Add field 'm_core_unavailable_mappings'.
190 (core_target::build_file_mappings): Print only one warning
191 per inaccessible file. Add unavailable/broken mappings
192 to m_core_unavailable_mappings.
193 (core_target::xfer_partial): Call...
194 (core_target::xfer_memory_via_mappings): New method.
195
196 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
197
198 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
199 type to bool.
200
201 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
202
203 * dwarf2/read.c (struct field_info): Fix indentation.
204
205 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
206
207 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
208 ordering in comment.
209 * frame.c (frame_id_eq): Fix indentation.
210
211 2020-08-31 Scott Linder <scott@scottlinder.com>
212 Simon Marchi <simon.marchi@efficios.com>
213
214 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
215 inline frame ids in outer frame.
216
217 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
218
219 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
220 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
221 (outer_frame_id): Use FID_STACK_OUTER instead of
222 FID_STACK_INVALID.
223 (frame_id_p): Don't check for outer_frame_id.
224
225 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
226
227 * frame-unwind.c (frame_unwind_got_optimized): Don't set
228 regnum/frame in value. Call allocate_value_lazy.
229 * frame.c (frame_unwind_register_value): Use
230 val_print_not_saved.
231
232 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
233
234 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
235
236 2020-08-29 Pedro Alves <pedro@palves.net>
237
238 * progspace.c (print_program_space): Use all_inferiors. Switch to
239 the inferior before calling target_pid_to_str.
240
241 2020-08-28 Tom Tromey <tom@tromey.com>
242
243 * xcoffread.c (xcoff_end_psymtab): Update comment.
244 * dbxread.c (dbx_end_psymtab): Update comment.
245
246 2020-08-28 Tom de Vries <tdevries@suse.de>
247
248 PR breakpoint/26544
249 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
250 event_location.
251 (create_breakpoint): Same.
252 (base_breakpoint_decode_location): Same.
253 (bkpt_create_sals_from_location): Same.
254 (bkpt_decode_location): Same.
255 (bkpt_probe_create_sals_from_location): Same.
256 (bkpt_probe_decode_location): Same.
257 (tracepoint_create_sals_from_location): Same.
258 (tracepoint_decode_location): Same.
259 (tracepoint_probe_decode_location): Same.
260 (strace_marker_create_sals_from_location): Same.
261 (strace_marker_decode_location): Same.
262 (create_sals_from_location_default): Same.
263 (decode_location_default): Same.
264 * breakpoint.h (struct breakpoint_ops): Same.
265 (create_breakpoint): Same.
266 * linespec.h (decode_line_full): Same.
267 * linespec.c (decode_line_full): Same. Throw error if
268 result.size () == 0.
269
270 2020-08-27 Pedro Alves <pedro@palves.net>
271
272 PR gdb/26524
273 * breakpoint.c (until_break_fsm) <location_breakpoint,
274 caller_breakpoint>: Delete fields.
275 <breakpoints>: New field.
276 <until_break_fsm>: Adjust to save a breakpoint vector instead of
277 two individual breakpoints.
278 (until_break_fsm::should_stop): Loop over breakpoints in the
279 breakpoint vector.
280 (until_break_fsm::clean_up): Adjust to clear the breakpoints
281 vector.
282 (until_break_command): Handle location expanding into multiple
283 sals.
284
285 2020-08-27 Pedro Alves <pedro@palves.net>
286
287 PR gdb/26523
288 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
289 bp_until breakpoints user-specified locations. Update intro
290 comment.
291
292 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
293
294 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
295 gdb_bfd_sections): New.
296 * maint.c (print_bfd_section_info): Change param type to
297 maint_print_section_data.
298 (print_objfile_section_info): Likewise.
299 (print_bfd_section_info_maybe_relocated): Likewise.
300 (maintenance_info_sections): Use gdb_bfd_sections.
301
302 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
303
304 * MAINTAINERS: Add ARC target and maintainer.
305
306 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
307
308 * configure.tgt: ARC support for GNU/Linux.
309 * Makefile.in (ALL_TARGET_OBJS): Likewise.
310 * arc-linux-tdep.c: New file.
311 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
312 * arc-tdep.c (arc_write_pc): Use it.
313
314 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
315
316 * arc-tdep.c (arc_check_for_hardware_loop): New.
317 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
318
319 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
320
321 * arc-tdep.h: Include "gdbarch.h".
322
323 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
324
325 * arch/arc.h
326 (arc_gdbarch_features): New class to stir the selection of target XML.
327 (arc_create_target_description): Use FEATURES to choose XML target.
328 (arc_lookup_target_description): Use arc_create_target_description
329 to create _new_ target descriptions or return the already created
330 ones if the FEATURES is the same.
331 * arch/arc.c: Implementation of prototypes described above.
332 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
333 (arc_gdbarch_features_init): Initialize the FEATURES struct.
334 * arc-tdep.c (*_feature_name): Make feature names consistent.
335 (arc_register_feature): A new struct to hold information about
336 registers of a particular target/feature.
337 (arc_check_tdesc_feature): Check if XML provides registers in
338 compliance with ARC_REGISTER_FEATURE structs.
339 (arc_update_acc_reg_names): Add aliases for r58 and r59.
340 (determine_*_reg_feature_set): Which feature name to look for.
341 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
342 (mach_type_to_arc_isa): Convert from a set of binutils machine types
343 to expected ISA enums to be used in arc_gdbarch_features structs.
344 * features/Makefile (FEATURE_XMLFILES): Add new files.
345 * gdb/features/arc/v1-aux.c: New file.
346 * gdb/features/arc/v1-aux.xml: Likewise.
347 * gdb/features/arc/v1-core.c: Likewise.
348 * gdb/features/arc/v1-core.xml: Likewise.
349 * gdb/features/arc/v2-aux.c: Likewise.
350 * gdb/features/arc/v2-aux.xml: Likewise.
351 * gdb/features/arc/v2-core.c: Likewise.
352 * gdb/features/arc/v2-core.xml: Likewise.
353 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
354
355 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
356 Andrew Burgess <andrew.burgess@embecosm.com>
357
358 PR m2/26372
359 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
360 an assert. Remove single element array indexing pattern as the
361 MULTI_SUBSCRIPT support will handle this case too.
362
363 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
364
365 * value.h (valprint_check_validity): Move declaration from
366 here...
367 * valprint.h (valprint_check_validity): ... to here.
368
369 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
370
371 * debug.h: New file.
372 * debug.c (debug_prefixed_vprintf): New function.
373 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
374 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
375
376 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
377
378 * infrun.h (infrun_debug_printf_1): New function declaration.
379 (infrun_debug_printf): New macro.
380 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
381 throughout.
382 (infrun_debug_printf): New function.
383 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
384 (handle_jit_event): Likewise.
385
386 2020-08-21 Mark Wielaard <mark@klomp.org>
387
388 * ada-lex.l: Extend register warnings diagnostics comment for g++.
389
390 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
391
392 * frame.c (enum class frame_id_status): New.
393 (struct frame_info) <this_id::p>: Change type to frame_id_status.
394 (fprintf_frame): Update.
395 (compute_frame_id): Set frame id status to "computing" on entry.
396 Set it back to "not_computed" on failure and to "computed" on
397 success.
398 (get_frame_id): Assert the frame id is not being computed.
399 (create_sentinel_frame): Use frame_id_status::COMPUTED.
400 (create_new_frame): Likewise.
401 (frame_cleanup_after_sniffer): Update assert.
402
403 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
404
405 * regcache.c (pid_ptid_regcache_map): New type.
406 (target_ptid_regcache_map): Remove.
407 (target_pid_ptid_regcache_map): New type.
408 (regcaches): Change type to target_pid_ptid_regcache_map.
409 (get_thread_arch_aspace_regcache): Update.
410 (regcache_thread_ptid_changed): Update, handle pid-like ptid
411 case.
412 (regcaches_size): Update.
413 (regcache_count): Update.
414 (registers_changed_ptid_target_pid_test): New.
415 (_initialize_regcache): Register new test.
416
417 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
418
419 * regcache.c (regcache_count): New.
420 (struct regcache_test_data): New.
421 (regcache_test_data_up): New.
422 (populate_regcaches_for_test): New.
423 (regcaches_test): Remove.
424 (get_thread_arch_aspace_regcache_test): New.
425 (registers_changed_ptid_all_test): New.
426 (registers_changed_ptid_target_test): New.
427 (registers_changed_ptid_target_ptid_test): New.
428 (regcache_thread_ptid_changed): Remove regcache_count lambda.
429 (_initialize_regcache): Register new tests.
430
431 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
432
433 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
434 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
435 gdbarch and aspace parameter. Use current inferior's aspace.
436 Validate regcache's arch value.
437 (regcaches_test): Update.
438
439 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
440
441 * regcache.c (regcaches_test): Call registers_changed.
442
443 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
444
445 * infrun.c (process_event_stop_test): Fix typo "breapoint".
446
447 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
448
449 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
450 to find the end of prologue for flang compiled binaries.
451 * arm-tdep.c (arm_skip_prologue): Likewise.
452 * i386-tdep.c (i386_skip_prologue): Likewise.
453 * producer.c (producer_is_llvm): New function.
454 (producer_parsing_tests): Added new tests for clang/flang.
455 * producer.h (producer_is_llvm): New declaration.
456
457 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
458
459 * linux-nat.c (linux_nat_debug_printf): New function.
460 (linux_nat_debug_printf_1): New macro. Use throughout the file.
461
462 2020-08-18 Aaron Merey <amerey@redhat.com>
463
464 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
465 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
466 (CLIBS): Add DEBUGINFOD_LIBS.
467
468 2020-08-17 Sergei Trofimovich <siarheit@google.com>
469
470 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
471 'gdbarch_num_regs'.
472
473 2020-08-17 Tom Tromey <tromey@adacore.com>
474
475 * ada-varobj.c (ada_varobj_decode_var): Handle case where
476 ada_get_decoded_value returns NULL.
477
478 2020-08-17 Tom Tromey <tromey@adacore.com>
479
480 * python/py-inferior.c (infpy_search_memory): Use
481 gdb_py_object_from_ulongest.
482 * python/py-infevents.c (create_inferior_call_event_object)
483 (create_memory_changed_event_object): Use
484 gdb_py_object_from_ulongest.
485 * python/py-linetable.c (ltpy_entry_get_pc): Use
486 gdb_py_object_from_ulongest.
487
488 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
489
490 * loc.c (class symbol_needs_eval_context): Fix indentation.
491
492 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
493
494 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
495 bool.
496
497 2020-08-17 Tom de Vries <tdevries@suse.de>
498
499 PR gdb/26393
500 * gdbtypes.c (dump_dynamic_prop): New function.
501 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
502
503 2020-08-15 Tom de Vries <tdevries@suse.de>
504
505 PR backtrace/26390
506 * stack.c (print_frame_args): Temporarily set the selected
507 frame to FRAME while printing the frame's arguments.
508
509 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
510
511 PR breakpoints/26385
512 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
513 Always clear watchpoint with PTRACE_SET_DEBUGREG.
514
515 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
516
517 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
518 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
519 and >= to check return value instead of == -1 and != -1.
520
521 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
522
523 * utils.h (class gdb_argv) <as_array_view>: New method.
524 * utils.c (gdb_argv_as_array_view_test): New.
525 (_initialize_utils): Register selftest.
526 * maint.c (maintenance_selftest): Use the new method.
527
528 2020-08-13 Kamil Rytarowski <n54@gmx.com>
529
530 * target.h (supports_dumpcore, dumpcore): New
531 function declarations.
532 * target.c (supports_dumpcore, dumpcore): New
533 functions.
534 * target-delegates.c: Rebuild.
535 * gcore.c (gcore_command): Use target_supports_dumpcore ()
536 and target_dumpcore ().
537
538 2020-08-13 Aaron Merey <amerey@redhat.com>
539
540 * debuginfod-support.c: Replace global variables with user_data.
541
542 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
543
544 * maint.c (maintenance_selftest): Split args and pass array_view
545 to run_tests.
546
547 2020-08-12 Luis Machado <luis.machado@linaro.org>
548
549 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
550 type's length.
551 Use %s and pulongest to print the length.
552
553 2020-08-12 Pedro Alves <palves@redhat.com>
554
555 * NEWS: Move "Multi-target debugging support" item to the
556 "Changes since GDB 9" section.
557
558 2020-08-12 Pedro Alves <palves@redhat.com>
559
560 PR gdb/26336
561 * progspace.c (program_space::remove_objfile): Invalidate the
562 frame cache.
563
564 2020-08-11 Tom de Vries <tdevries@suse.de>
565
566 * MAINTAINERS: Mark ms1 as deleted.
567
568 2020-08-10 Luis Machado <luis.machado@linaro.org>
569
570 PR gdb/26310
571
572 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
573 act accordingly.
574 (aarch64_analyze_prologue_test): Add more unit tests to exercise
575 movz/str/stur/stp skipping behavior.
576
577 2020-08-10 Luis Machado <luis.machado@linaro.org>
578
579 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
580 struct user_sve_header instead of struct sve_context.
581
582 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
583
584 * read.h (dwarf2_fetch_die_loc_sect_off,
585 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
586 `void *` parameter with function_view.
587 * read.c (dwarf2_fetch_die_loc_sect_off,
588 dwarf2_fetch_die_loc_cu_off): Likewise.
589 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
590 (per_cu_dwarf_call): Adjust.
591 (get_frame_address_in_block_wrapper): Remove.
592 (indirect_synthetic_pointer): Adjust.
593 (get_ax_pc): Remove.
594 (dwarf2_compile_expr_to_ax): Adjust.
595
596 2020-08-08 Tom de Vries <tdevries@suse.de>
597
598 PR build/26344
599 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
600 constructor.
601 * regcache.c (get_thread_arch_aspace_regcache): Same.
602
603 2020-08-07 Tom Tromey <tromey@adacore.com>
604
605 * ravenscar-thread.c
606 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
607 New method.
608 (ravenscar_thread_target::wait): Check
609 runtime_initialized.
610 (ravenscar_thread_target::prepare_to_store)
611 (ravenscar_thread_target::stopped_by_sw_breakpoint)
612 (ravenscar_thread_target::stopped_by_hw_breakpoint)
613 (ravenscar_thread_target::stopped_by_watchpoint)
614 (ravenscar_thread_target::stopped_data_address)
615 (ravenscar_thread_target::core_of_thread): Use
616 scoped_restore_current_thread and
617 set_base_thread_from_ravenscar_task.
618
619 2020-08-07 Tom Tromey <tromey@adacore.com>
620
621 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
622
623 2020-08-07 Tom Tromey <tromey@adacore.com>
624
625 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
626 update_inferior_ptid before update_thread_list.
627 (temporarily_change_regcache_ptid): New class.
628 (ravenscar_thread_target::fetch_registers)
629 (ravenscar_thread_target::store_registers)
630 (ravenscar_thread_target::prepare_to_store): Use base thread when
631 forwarding operation.
632
633 2020-08-07 Tom Tromey <tromey@adacore.com>
634
635 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
636 "is_pid" case.
637
638 2020-08-07 Tom Tromey <tromey@adacore.com>
639
640 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
641 New methods.
642 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
643 first.
644 (ravenscar_thread_target::add_thread): Rename from
645 ravenscar_add_thread.
646 (ravenscar_thread_target::update_thread_list): Use a lambda.
647 (ravenscar_thread_target::xfer_partial): New method.
648
649 2020-08-07 Tom Tromey <tromey@adacore.com>
650
651 * ada-lang.h (ada_task_list_iterator_ftype): Now a
652 gdb::function_view.
653 (iterate_over_live_ada_tasks): Change type of argument.
654 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
655 of argument.
656
657 2020-08-07 Tom Tromey <tromey@adacore.com>
658
659 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
660 Remove.
661 (ravenscar_thread_target::extra_thread_info): Remove.
662 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
663 defer to target beneath for non-Ravenscar threads.
664
665 2020-08-07 Tom Tromey <tromey@adacore.com>
666
667 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
668 get_base_thread_from_ravenscar_task>: Now methods.
669 <m_cpu_map>: New member.
670 (ravenscar_thread_target::get_thread_base_cpu): Rename from
671 ravenscar_get_thread_base_cpu. Check m_cpu_map.
672 (ravenscar_thread_target::task_is_currently_active): Update.
673 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
674 Now a method.
675 (ravenscar_thread_target::add_active_thread): Put initial thread
676 into the m_cpu_map.
677
678 2020-08-07 Tom Tromey <tromey@adacore.com>
679
680 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
681 event_ptid.
682
683 2020-08-07 Tom Tromey <tromey@adacore.com>
684
685 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
686 runtime_initialized.
687
688 2020-08-07 Tom Tromey <tromey@adacore.com>
689
690 * ravenscar-thread.c (ravenscar_thread_target): Don't call
691 add_active_thread.
692 (ravenscar_thread_target::add_active_thread): Now public.
693 (ravenscar_inferior_created): Call add_active_thread after pushing
694 the target.
695
696 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
697
698 * regcache.c (ptid_regcache_map): New type.
699 (target_ptid_regcache_map): New type.
700 (regcaches): Change type to target_ptid_regcache_map.
701 (get_thread_arch_aspace_regcache): Update to regcaches' new
702 type.
703 (regcache_thread_ptid_changed): Likewise.
704 (registers_changed_ptid): Likewise.
705 (regcaches_size): Likewise.
706 (regcaches_test): Update.
707 (regcache_thread_ptid_changed): Update.
708 * regcache.h (regcache_up): New type.
709 * gdbsupport/ptid.h (hash_ptid): New struct.
710
711 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
712
713 * observable.h (thread_ptid_changed): Add parameter
714 `process_stratum_target *`.
715 * infrun.c (infrun_thread_ptid_changed): Add parameter
716 `process_stratum_target *` and use it.
717 (selftests): New namespace.
718 (infrun_thread_ptid_changed): New function.
719 (_initialize_infrun): Register selftest.
720 * regcache.c (regcache_thread_ptid_changed): Add parameter
721 `process_stratum_target *` and use it.
722 (regcache_thread_ptid_changed): New function.
723 (_initialize_regcache): Register selftest.
724 * thread.c (thread_change_ptid): Pass target to
725 thread_ptid_changed observable.
726
727 2020-08-06 Caroline Tice <cmtice@google.com>
728
729 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
730 (struct dwp_sections): Update field comments. Add loclists and
731 rnglists fields.
732 (struct virtual_v2_dwo_sections): Rename struct to
733 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
734 size & offset fields for loclists and rnglists.
735 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
736 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
737 skipping dummy type units.
738 (create_dwp_hash_table): Update the large comment above the function to
739 discuss Version 5 DWP files as well, with references. Update all the
740 version checks in the function to check for version 5 as well. Add new
741 section at the end to create dwp hash table for version 5.
742 (create_dwp_v2_section): Rename function to
743 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
744 Add V5 to error message text.
745 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
746 into calls to create_dwp_v2_or_v5_section.
747 (create_dwo_unit_in_dwp_v5): New function.
748 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
749 check for version2; add else clause to handle version 5.
750 (open_and_init_dwo_file): Add code to check dwarf version & only call
751 create_debug_types_hash_table (with sections.types) if version is not 5;
752 else call create_debug_type_hash_table, with sections.info.
753 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
754 version 5.
755 (dwarf2_locate_v5_dwp_sections): New function.
756 (open_and_init_dwp_file): Add else-if clause for version 5 to call
757 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
758
759 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
760
761 * regcache.h (class regcache): Remove friend
762 registers_changed_ptid.
763 <regcache_thread_ptid_changed>: Remove.
764 <regcaches>: Remove.
765 * regcache.c (regcache::regcaches): Rename to...
766 (regcaches): ... this. Make static.
767 (get_thread_arch_aspace_regcache): Update.
768 (regcache::regcache_thread_ptid_changed): Rename to...
769 (regcache_thread_ptid_changed): ... this. Update.
770 (class regcache_access): Remove.
771 (regcaches_test): Update.
772 (_initialize_regcache): Update.
773 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
774 <forward_list>.
775
776 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
777
778 * regcache.h (class regcache) <current_regcache>: Rename to...
779 <regcaches>: ... this. Move doc here.
780 * regcache.c (regcache::current_regcache) Rename to...
781 (regcache::regcaches): ... this. Move doc to header.
782 (get_thread_arch_aspace_regcache): Update.
783 (regcache::regcache_thread_ptid_changed): Update.
784 (registers_changed_ptid): Update.
785 (class regcache_access) <current_regcache_size>: Rename to...
786 <regcaches_size>: ... this.
787 (current_regcache_test): Rename to...
788 (regcaches_test): ... this.
789 (_initialize_regcache): Update.
790
791 2020-08-06 Victor Collod <vcollod@nvidia.com>
792
793 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
794
795 2020-08-05 Kevin Buettner <kevinb@redhat.com>
796
797 * corelow.c (core_target::build_file_mappings): Don't output
798 null pathname in warning.
799
800 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
801
802 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
803 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
804 gdb.dwarf2/dw2-single-line-discriminators.exp,
805 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
806
807 2020-08-05 Tom Tromey <tromey@adacore.com>
808
809 PR rust/26197:
810 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
811 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
812 Fix off-by-one and type size errors in ordinary case.
813
814 2020-08-05 Tom de Vries <tdevries@suse.de>
815
816 * gdbtypes.c (type_not_allocated, type_not_associated): Use
817 "prop->const_val () == 0" instead of "prop->const_val () != 0".
818
819 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
820
821 * frame.h (frame_id_p): Return bool.
822 (frame_id_artificial_p): Return bool.
823 (frame_id_eq): Return bool.
824 (has_stack_frames): Return bool.
825 (get_selected_frame): Fix typo in comment.
826 (get_frame_pc_if_available): Return bool.
827 (get_frame_address_in_block_if_available): Return bool.
828 (get_frame_func_if_available): Return bool.
829 (read_frame_register_unsigned): Return bool.
830 (get_frame_register_bytes): Return bool.
831 (safe_frame_unwind_memory): Return bool.
832 (deprecated_frame_register_read): Return bool.
833 (frame_unwinder_is): Return bool.
834 * frame.c (struct frame_info) <prev_arch::p>: Change type to
835 bool.
836 <this_id::p>: Likewise.
837 <prev_p>: Likewise.
838 (frame_stash_add): Return bool.
839 (get_frame_id): Use bool.
840 (frame_id_build_special) Use bool.
841 (frame_id_build_unavailable_stack): Use bool.
842 (frame_id_build): Use bool.
843 (frame_id_p): Return bool, use true/false instead of 1/0.
844 (frame_id_artificial_p): Likewise.
845 (frame_id_eq): Likewise.
846 (frame_id_inner): Likewise.
847 (get_frame_func_if_available): Likewise.
848 (read_frame_register_unsigned): Likewise.
849 (deprecated_frame_register_read): Likewise.
850 (get_frame_register_bytes): Likewise.
851 (has_stack_frames): Likewise.
852 (inside_main_func): Likewise.
853 (inside_entry_func): Likewise.
854 (get_frame_pc_if_available): Likewise.
855 (get_frame_address_in_block_if_available): Likewise.
856 (frame_unwinder_is): Likewise.
857 (safe_frame_unwind_memory): Likewise.
858 (frame_unwind_arch): Likewise.
859
860 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
861
862 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
863 type to cached_copy_status.
864 (fprintf_frame): Adjust.
865 (get_frame_func_if_available): Adjust.
866 (frame_cleanup_after_sniffer): Adjust.
867
868 2020-08-04 Mark Wielaard <mark@klomp.org>
869
870 * MAINTAINERS (Write After Approval): Update email address.
871
872 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
873
874 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
875 dynamic_prop::const_val.
876
877 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
878
879 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
880 dynamic_prop::kind.
881
882 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
883
884 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
885
886 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
887
888 * configure.tgt: Set gdb_sim for bpf-*-* targets.
889
890 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
891 Jose E. Marchesi <jose.marchesi@oracle.com>
892
893 * configure.tgt: Add entry for bpf-*-*.
894 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
895 (ALLDEPFILES): Add bpf-tdep.c.
896 * bpf-tdep.c: New file.
897 * MAINTAINERS: Add bpf target and maintainer.
898 * NEWS: Mention the support for the new target.
899
900 2020-08-04 Tom de Vries <tdevries@suse.de>
901
902 PR symtab/23270
903 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
904 Error.
905
906 2020-08-03 John Baldwin <jhb@FreeBSD.org>
907
908 * syscalls/freebsd.xml: Regenerate.
909
910 2020-08-03 John Baldwin <jhb@FreeBSD.org>
911
912 * syscalls/update-freebsd.sh: Fix usage and year range.
913
914 2020-08-03 Tom de Vries <tdevries@suse.de>
915
916 PR symtab/26333
917 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
918 DW_LNE_lo_user/DW_LNE_hi_user range.
919
920 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
921
922 PR ada/26318
923 * ada-lang.c (ada_modulus): Return 0 if property is not of const
924 kind.
925
926 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
927
928 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
929
930 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
931
932 * breakpoint.c (set_breakpoint_condition): Update the condition
933 expressions after checking that the input condition string parses
934 successfully and does not contain junk at the end.
935
936 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
937
938 * breakpoint.c (set_breakpoint_condition): Update the
939 condition string after parsing the new condition successfully.
940
941 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
942
943 * proc-api.c (_STRUCTURED_PROC): Don't define.
944 * proc-events.c: Likewise.
945 * proc-flags.c: Likewise.
946 * proc-why.c: Likewise.
947 * procfs.c: Likewise.
948
949 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
950 * configure, config.in: Regenerate.
951
952 2020-07-30 Tom de Vries <tdevries@suse.de>
953
954 PR build/26320
955 * ui-style.h (struct ui_file_style::color): Wrap m_value and
956 m_red/m_green/m_blue in a union.
957
958 2020-07-29 Tom de Vries <tdevries@suse.de>
959
960 PR tdep/26280
961 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
962
963 2020-07-28 Tom Tromey <tromey@adacore.com>
964
965 PR symtab/26270:
966 * symtab.h (find_pc_partial_function_sym): Declare.
967 * cli/cli-cmds.c (disassemble_command): Use
968 find_pc_partial_function_sym. Check asm_demangle.
969 * blockframe.c (cache_pc_function_sym): New global.
970 (cache_pc_function_name): Remove.
971 (clear_pc_function_cache): Update.
972 (find_pc_partial_function_sym): New function, from
973 find_pc_partial_function.
974 (find_pc_partial_function): Rewrite using
975 find_pc_partial_function_sym.
976
977 2020-07-28 Tom Tromey <tromey@adacore.com>
978
979 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
980 help. Add usage.
981
982 2020-07-28 Tom Tromey <tromey@adacore.com>
983
984 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
985 <DW_OP_GNU_variable_value>: Cast to address type.
986
987 2020-07-28 Kamil Rytarowski <n54@gmx.com>
988
989 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
990 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
991 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
992 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
993 (nbsd_get_siginfo_type): New.
994 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
995 (_initialize_nbsd_tdep): New.
996
997 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
998
999 PR binutils/26301
1000 * configure: Regenerated.
1001
1002 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1003
1004 PR binutils/26301
1005 * configure: Regenerated.
1006
1007 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1008
1009 * python/py-frame.c: Remove 'user-regs.h' include.
1010 (frapy_read_register): Rewrite to make use of
1011 gdbpy_parse_register_id.
1012 * python/py-registers.c (gdbpy_parse_register_id): New function,
1013 moved here from python/py-unwind.c. Updated the return type, and
1014 also accepts register descriptor objects.
1015 * python/py-unwind.c: Remove 'user-regs.h' include.
1016 (pyuw_parse_register_id): Moved to python/py-registers.c.
1017 (unwind_infopy_add_saved_register): Update to use
1018 gdbpy_parse_register_id.
1019 (pending_framepy_read_register): Likewise.
1020 * python/python-internal.h (gdbpy_parse_register_id): Declare.
1021
1022 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1023
1024 * python/py-registers.c: Add 'user-regs.h' include.
1025 (register_descriptor_iter_find): New function.
1026 (register_descriptor_iterator_object_methods): New static global
1027 methods array.
1028 (register_descriptor_iterator_object_type): Add pointer to methods
1029 array.
1030
1031 2020-07-27 John Baldwin <jhb@FreeBSD.org>
1032
1033 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
1034 for all architectures on FreeBSD 11.3 and later.
1035
1036 2020-07-27 Tom Tromey <tromey@adacore.com>
1037
1038 * gcore.h (load_corefile): Don't declare.
1039
1040 2020-07-27 Tom de Vries <tdevries@suse.de>
1041
1042 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
1043 * config.in: Regenerate.
1044 * configure: Regenerate.
1045
1046 2020-07-26 Eli Zaretskii <eliz@gnu.org>
1047
1048 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
1049 ws2tcpip.h. When checking whether socklen_t type is defined, use
1050 ws2tcpip.h if it is available and sys/socket.h isn't.
1051 * configure: Regenerate.
1052 * config.in: Regenerate.
1053
1054 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
1055
1056 PR fortran/23051
1057 PR fortran/26139
1058 * valops.c (value_ind): Pass address to
1059 readjust_indirect_value_type.
1060 * value.c (readjust_indirect_value_type): Make parameter
1061 non-const, and add extra address parameter. Resolve original type
1062 before using it.
1063 * value.h (readjust_indirect_value_type): Update function
1064 signature and comment.
1065
1066 2020-07-25 Tom de Vries <tdevries@suse.de>
1067
1068 PR symtab/26243
1069 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
1070 entries.
1071
1072 2020-07-24 Aaron Merey <amerey@redhat.com>
1073
1074 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
1075 * configure: Rebuild.
1076
1077 2020-07-23 Kevin Buettner <kevinb@redhat.com>
1078
1079 PR corefiles/26294
1080 * corelow.c (_initialize_corelow): Add period to help text
1081 for "maintenance print core-file-backed-mappings".
1082
1083 2020-07-23 Pedro Alves <pedro@palves.net>
1084
1085 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
1086 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
1087 meanwhile.
1088 * frame.c (frame_cache_generation, get_frame_cache_generation):
1089 New.
1090 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
1091 (get_prev_frame_if_no_cycle): On exception, don't touch
1092 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
1093 * frame.h (get_frame_cache_generation): Declare.
1094
1095 2020-07-23 Tom de Vries <tdevries@suse.de>
1096
1097 PR tui/26282
1098 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
1099 New default constructor.
1100
1101 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
1102
1103 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
1104 exclude non-statement entries.
1105
1106 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1107
1108 * NEWS (New commands): Mention new command
1109 "maintenance print core-file-backed-mappings".
1110
1111 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1112
1113 * corelow.c (gdbcmd.h): Include.
1114 (core_target::info_proc_mappings): New method.
1115 (get_current_core_target): New function.
1116 (maintenance_print_core_file_backed_mappings): New function.
1117 (_initialize_corelow): Add core-file-backed-mappings to
1118 "maint print" commands.
1119
1120 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1121
1122 * linux-tdep.c (dump_note_entry_p): New function.
1123 (linux_dump_mapping_p_ftype): New typedef.
1124 (linux_find_memory_regions_full): Add new parameter,
1125 should_dump_mapping_p.
1126 (linux_find_memory_regions): Adjust call to
1127 linux_find_memory_regions_full.
1128 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
1129 call to linux_find_memory_regions_full.
1130
1131 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1132
1133 * corelow.c (solist.h, unordered_map): Include.
1134 (class core_target): Add field m_core_file_mappings and
1135 method build_file_mappings.
1136 (core_target::core_target): Call build_file_mappings.
1137 (core_target::~core_target): Free memory associated with
1138 m_core_file_mappings.
1139 (core_target::build_file_mappings): New method.
1140 (core_target::xfer_partial): Use m_core_file_mappings
1141 for memory transfers.
1142 * linux-tdep.c (linux_read_core_file_mappings): New
1143 function.
1144 (linux_core_info_proc_mappings): Rewrite to use
1145 linux_read_core_file_mappings.
1146 (linux_init_abi): Register linux_read_core_file_mappings.
1147
1148 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1149
1150 * arch-utils.c (default_read_core_file_mappings): New function.
1151 * arch-utils.c (default_read_core_file_mappings): Declare.
1152 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
1153 * gdbarch.h, gdbarch.c: Regenerate.
1154
1155 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1156
1157 PR corefiles/25631
1158 * corelow.c (core_target:xfer_partial): Revise
1159 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
1160 case after first checking the stratum beneath the core
1161 target.
1162 (has_all_memory): Return true.
1163 * target.c (raw_memory_xfer_partial): Revise comment
1164 regarding use of has_all_memory.
1165
1166 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1167
1168 * exec.h (section_table_xfer_memory): Revise declaration,
1169 replacing section name parameter with an optional callback
1170 predicate.
1171 * exec.c (section_table_xfer_memory): Likewise.
1172 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
1173 of section_table_xfer_memory.
1174
1175 2020-07-22 Tom Tromey <tromey@adacore.com>
1176
1177 * mi/mi-cmd-stack.c (list_args_or_locals): Use
1178 lookup_symbol_search_name.
1179
1180 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1181
1182 * python/py-registers.c (gdbpy_register_object_data_init): Remove
1183 redundant local variable.
1184 (gdbpy_get_register_descriptor): Extract descriptor vector as a
1185 reference, not pointer, update code accordingly.
1186
1187 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1188 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1189
1190 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
1191 * jit.c (jit_breakpoint_re_set_internal): Use the
1192 `skip_jit_symbol_lookup` field.
1193
1194 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1195 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1196
1197 * jit.c (jit_read_descriptor): Define the descriptor address once,
1198 use twice.
1199 (jit_breakpoint_deleted): Move the declaration of the loop variable
1200 `iter` into the loop header.
1201 (jit_breakpoint_re_set_internal): Move the declaration of the local
1202 variable `objf_data` to the first point of definition.
1203 (jit_event_handler): Move the declaration of local variables
1204 `code_entry`, `entry_addr`, and `objf` to their first point of use.
1205 Rename `objf` to `jited`.
1206
1207 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1208
1209 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
1210 Remove.
1211 * jit.c (get_jiter_objfile_data): Update.
1212
1213 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1214 Simon Marchi <simon.marchi@polymtl.ca>
1215
1216 * jit.c (struct jit_program_space_data): Remove.
1217 (jit_program_space_key): Remove.
1218 (jiter_objfile_data::~jiter_objfile_data): Remove program space
1219 stuff.
1220 (get_jit_program_space_data): Remove.
1221 (jit_breakpoint_deleted): Iterate on all of the program space's
1222 objfiles.
1223 (jit_inferior_init): Likewise.
1224 (jit_breakpoint_re_set_internal): Likewise. Also change return
1225 type to void.
1226 (jit_breakpoint_re_set): Pass current_program_space to
1227 jit_breakpoint_re_set_internal.
1228
1229 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1230
1231 * jit.h (struct jiter_objfile_data) <cached_code_address,
1232 jit_breakpoint>: Move to here from ...
1233 * jit.c (jit_program_space_data): ... here.
1234 (jiter_objfile_data::~jiter_objfile_data): Update.
1235 (jit_breakpoint_deleted): Update.
1236 (jit_breakpoint_re_set_internal): Update.
1237
1238 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1239
1240 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
1241 checks.
1242 (jit_read_descriptor): Remove NULL check.
1243 (jit_event_handler): Add an assertion.
1244
1245 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1246
1247 * jit.h (struct jit_objfile_data): Split into...
1248 (struct jiter_objfile_data): ... this ...
1249 (struct jited_objfile_data): ... and this.
1250 * objfiles.h (struct objfile) <jit_data>: Remove.
1251 <jiter_data, jited_data>: New fields.
1252 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
1253 (jiter_objfile_data::~jiter_objfile_data): ... this.
1254 (get_jit_objfile_data): Rename to ...
1255 (get_jiter_objfile_data): ... this.
1256 (add_objfile_entry): Update.
1257 (jit_read_descriptor): Use get_jiter_objfile_data.
1258 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
1259 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
1260 (jit_inferior_exit_hook): Use objfile's jited_data field.
1261
1262 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1263
1264 * jit.h: Forward-declare `struct minimal_symbol`.
1265 (struct jit_objfile_data): Migrate to here from jit.c; also add a
1266 constructor, destructor, and an objfile* field.
1267 * jit.c (jit_objfile_data): Remove.
1268 (struct jit_objfile_data): Migrate from here to jit.h.
1269 (jit_objfile_data::~jit_objfile_data): New destructor
1270 implementation with code moved from free_objfile_data.
1271 (free_objfile_data): Delete.
1272 (get_jit_objfile_data): Update to use the jit_data field of objfile.
1273 (jit_find_objf_with_entry_addr): Ditto.
1274 (jit_inferior_exit_hook): Ditto.
1275 (_initialize_jit): Remove the call to
1276 register_objfile_data_with_cleanup.
1277 * objfiles.h (struct objfile) <jit_data>: New field.
1278
1279 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1280
1281 * jit.h: Forward-declare `struct objfile`.
1282 (jit_event_handler): Add a second parameter, the JITer objfile.
1283 * jit.c (jit_read_descriptor): Change the signature to take the
1284 JITer objfile as an argument instead of the jit_program_space_data.
1285 (jit_inferior_init): Update the call to jit_read_descriptor.
1286 (jit_event_handler): Use the new JITer objfile argument when calling
1287 jit_read_descriptor.
1288 * breakpoint.c (handle_jit_event): Update the call to
1289 jit_event_handler to pass the JITer objfile.
1290
1291 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1292
1293 * gdbarch.c: Regenerate.
1294 * gdbarch.h: Regenerate.
1295 * gdbarch.sh (handle_segmentation_fault): Remove method.
1296 * infrun.c (handle_segmentation_fault): Remove.
1297 (print_signal_received_reason): Remove call to
1298 handle_segmentation_fault.
1299
1300 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1301
1302 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1303 Rename to sparc64_linux_report_signal_info and add siggnal
1304 argument.
1305 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
1306 instead of sparc64_linux_handle_segmentation_fault.
1307
1308 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1309
1310 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
1311 i386_linux_report_signal_info instead of
1312 i386_linux_handle_segmentation_fault.
1313 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
1314 to i386_linux_report_signal_info and add siggnal argument.
1315 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
1316 of i386_linux_handle_segmentation_fault.
1317 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
1318 to i386_linux_report_signal_info and add siggnal argument.
1319
1320 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1321
1322 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1323 hook if present.
1324
1325 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1326
1327 * gdbarch.c: Regenerate.
1328 * gdbarch.h: Regenerate.
1329 * gdbarch.sh (report_signal_info): New method.
1330 * infrun.c (print_signal_received_reason): Invoke gdbarch
1331 report_signal_info hook if present.
1332
1333 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1334
1335 * python/py-registers.c : Add 'unordered_map' include.
1336 (gdbpy_new_reggroup): Renamed to...
1337 (gdbpy_get_reggroup): ...this. Update to only create register
1338 group descriptors when needed.
1339 (gdbpy_reggroup_iter_next): Update.
1340
1341 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1342
1343 * python/py-registers.c (gdbpy_register_object_data): New static
1344 global.
1345 (gdbpy_register_object_data_init): New function.
1346 (gdbpy_new_register_descriptor): Renamed to...
1347 (gdbpy_get_register_descriptor): ...this, and update to reuse
1348 existing register descriptors where possible.
1349 (gdbpy_register_descriptor_iter_next): Update.
1350 (gdbpy_initialize_registers): Register new gdbarch data.
1351
1352 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
1353
1354 * linux-nat.c (stopped_pids): Make static.
1355
1356 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1357
1358 PR ada/26235
1359 * gdbtypes.c (ada_discrete_type_low_bound,
1360 ada_discrete_type_high_bound): Handle undefined bounds.
1361
1362 2020-07-21 Kamil Rytarowski <n54@gmx.com>
1363
1364 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1365 declaration.
1366 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1367 function.
1368
1369 2020-07-20 John Baldwin <jhb@FreeBSD.org>
1370
1371 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1372 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1373 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1374 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1375 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1376 method.
1377
1378 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1379
1380 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1381 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1382 which are deprecated in Guile 3.0.
1383 * configure.ac (try_guile_versions): Add "guile-3.0".
1384 * configure (try_guile_versions): Regenerate.
1385 * NEWS: Update entry.
1386
1387 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1388 Doug Evans <dje@google.com>
1389
1390 PR gdb/21104
1391 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1392 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1393 USING_GUILE_BEFORE_2_2.
1394 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1395 Change type to 'scm_t_port_type *'.
1396 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1397 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1398 parameter and honor it. Update callers.
1399 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1400 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1401 functions.
1402 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1403 USING_GUILE_BEFORE_2_2.
1404 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1405 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1406 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1407 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1408 and 'SCM_PORT_TYPE'.
1409 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1410 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1411 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1412 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1413 [!USING_GUILE_BEFORE_2_2]: New functions.
1414 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1415 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1416 'gdbscm_memory_port_read'.
1417 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1418 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1419 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1420 function.
1421 (ioscm_init_memory_port): Remove.
1422 (ioscm_init_memory_port_stream): New function
1423 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1424 function.
1425 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1426 Return scm_from_uint (0).
1427 (gdbscm_set_memory_port_read_buffer_size_x)
1428 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1429 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1430 Return scm_from_uint (0).
1431 (gdbscm_set_memory_port_write_buffer_size_x)
1432 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1433 * configure.ac (try_guile_versions): Add "guile-2.2".
1434 * configure: Regenerate.
1435 * NEWS: Add entry.
1436
1437 2020-07-18 Tom Tromey <tom@tromey.com>
1438
1439 * linux-nat.c (linux_multi_process): Remove.
1440 (linux_nat_target::supports_multi_process): Return true.
1441
1442 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1443
1444 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1445 (riscv_lookup_target_description): Return pointer out of
1446 unique_ptr.
1447 * target-descriptions.c (allocate_target_description): Add
1448 comment.
1449 (target_desc_deleter::operator()): Likewise.
1450 * target-descriptions.h (struct target_desc_deleter): Moved to
1451 gdbsupport/tdesc.h.
1452 (target_desc_up): Likewise.
1453
1454 2020-07-17 Tom Tromey <tromey@adacore.com>
1455
1456 * linux-nat.c (linux_nat_target::supports_non_stop)
1457 (linux_nat_target::always_non_stop_p): Use "true".
1458 (linux_nat_target::supports_disable_randomization): Use "true" and
1459 "false".
1460
1461 2020-07-16 Caroline Tice <cmtice@google.com>
1462
1463 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1464 (RNGLIST_HEADER_SIZE64): New constant definition.
1465 (struct dwop_section_names): Add rnglists_dwo.
1466 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1467 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1468 (struct dwo_sections): Add rnglists field.
1469 (read_attribut_reprocess): Add tag parameter.
1470 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1471 (cu_debug_rnglists_section): New function (decl & definition).
1472 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1473 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1474 die whose range is being checked; get rnglist section from
1475 cu_debug_rnglists_section, to get from either objfile or dwo file as
1476 appropriate. Add cases for DW_RLE_base_addressx,
1477 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1478 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1479 test inside if-condition and updating complaint message.
1480 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1481 dwarf2_rnglists_process.
1482 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1483 dwarf2_ranges_process.
1484 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1485 need_ranges_base and update comment appropriately. Also pass die tag
1486 to dwarf2_ranges_read.
1487 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1488 need_ranges_base and update comment appropriately. Also pass die tag
1489 to dwarf2_ranges_process.
1490 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1491 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1492 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1493 need_ranges_base and update comment appropriately. Also pass die tag
1494 to read_attribute_reprocess and dwarf2_ranges_read.
1495 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1496 and update function comment appropriately.
1497 (read_loclist_index): Call read_loclists_rnglists_header instead of
1498 read_loclist_header.
1499 (read_rnglist_index): New function.
1500 (read_attribute_reprocess): Add tag parameter. Add code for
1501 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1502 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1503
1504 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1505
1506 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1507 being resolved.
1508
1509 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1510
1511 * arch-utils.c (show_architecture): Update formatting of messages.
1512
1513 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1514
1515 * gdbtypes.h (struct type) <bounds>: Handle array and string
1516 types.
1517 * ada-lang.c (assign_aggregate): Use type::bounds on
1518 array/string type.
1519 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1520 * c-varobj.c (c_number_of_children): Likewise.
1521 (c_describe_child): Likewise.
1522 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1523 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1524 (f_type_print_base): Likewise.
1525 * f-valprint.c (f77_array_offset_tbl): Likewise.
1526 (f77_get_upperbound): Likewise.
1527 (f77_print_array_1): Likewise.
1528 * guile/scm-type.c (gdbscm_type_range): Likewise.
1529 * m2-typeprint.c (m2_array): Likewise.
1530 (m2_is_long_set_of_type): Likewise.
1531 * m2-valprint.c (get_long_set_bounds): Likewise.
1532 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1533 * python/py-type.c (typy_range): Likewise.
1534 * rust-lang.c (rust_internal_print_type): Likewise.
1535 * type-stack.c (type_stack::follow_types): Likewise.
1536 * valarith.c (value_subscripted_rvalue): Likewise.
1537 * valops.c (value_cast): Likewise.
1538
1539 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1540
1541 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1542 callers to use the equivalent accessor methods.
1543
1544 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1545
1546 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1547 (struct type) <bit_stride>: New method.
1548 (TYPE_BIT_STRIDE): Remove.
1549 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1550
1551 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1552
1553 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1554 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1555 callers to use the equivalent accessor methods instead.
1556
1557 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1558
1559 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1560 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1561 callers to use the equivalent accessor methods instead.
1562
1563 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1564
1565 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1566 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1567 to use dynamic_prop::kind.
1568
1569 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1570
1571 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1572 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1573 to get the bound property's kind and check against
1574 PROP_UNDEFINED.
1575
1576 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1577
1578 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1579 all callers to use type::range_bounds followed by
1580 dynamic_prop::{low,high}.
1581
1582 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1583
1584 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1585 const_val, set_const_val, baton, set_locexpr, set_loclist,
1586 set_addr_offset, variant_parts, set_variant_parts,
1587 original_type, set_original_type>: New methods.
1588 <kind>: Rename to...
1589 <m_kind>: ... this. Update all users to use the new methods
1590 instead.
1591 <data>: Rename to...
1592 <m_data>: ... this. Update all users to use the new methods
1593 instead.
1594
1595 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1596
1597 * gdbtypes.c (get_discrete_bounds): Return failure if
1598 the range type's bounds are not both defined and constant
1599 values.
1600 (get_array_bounds): Update comment. Remove undefined bound check.
1601
1602 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1603
1604 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1605 the type::bounds method directly.
1606
1607 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1608
1609 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1610 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1611 are used to set the range type's bounds to use set_bounds.
1612
1613 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1614
1615 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1616
1617 2020-07-10 Pedro Alves <pedro@palves.net>
1618
1619 * gdbthread.h (inferior_ref): Define.
1620 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1621 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1622 * thread.c
1623 (scoped_restore_current_thread::restore):
1624 Adjust to gdb::ref_ptr.
1625 (scoped_restore_current_thread::~scoped_restore_current_thread):
1626 Remove manual decref handling.
1627 (scoped_restore_current_thread::scoped_restore_current_thread):
1628 Adjust to use
1629 inferior_ref::new_reference/thread_info_ref::new_reference.
1630 Incref the thread before calling get_frame_id instead of after.
1631 Let TARGET_CLOSE_ERROR propagate.
1632
1633 2020-07-10 Pedro Alves <pedro@palves.net>
1634
1635 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1636 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1637 NOT_AVAILABLE_ERROR.
1638 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1639 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1640
1641 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1642 Pedro Alves <pedro@palves.net>
1643
1644 PR gdb/26199
1645 * infrun.c (threads_are_resumed_pending_p): Delete.
1646 (do_target_wait): Remove threads_are_executing and
1647 threads_are_resumed_pending_p checks from the inferior_matches
1648 lambda. Update comments.
1649
1650 2020-07-10 Pedro Alves <pedro@palves.net>
1651
1652 PR gdb/26199
1653 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1654 executing threads.
1655
1656 2020-07-10 Pedro Alves <pedro@palves.net>
1657
1658 PR gdb/26199
1659 * infrun.c (handle_no_resumed): Handle multiple targets.
1660
1661 2020-07-10 Pedro Alves <pedro@palves.net>
1662
1663 PR gdb/26199
1664 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1665 target_is_async_p.
1666
1667 2020-07-10 Pedro Alves <pedro@palves.net>
1668
1669 PR gdb/26199
1670 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1671 threads, not all threads.
1672
1673 2020-07-10 Pedro Alves <pedro@palves.net>
1674
1675 PR gdb/26199
1676 * remote.c (remote_target::open_1): Pass remote target pointer as
1677 data to create_async_event_handler.
1678 (remote_async_inferior_event_handler): Mark async event handler
1679 before returning if the remote target still has either pending
1680 events or unacknowledged notifications.
1681
1682 2020-07-10 John Baldwin <jhb@FreeBSD.org>
1683
1684 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1685 declaration.
1686 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1687 function.
1688
1689 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1690
1691 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1692 inferior_ptid.
1693
1694 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1695
1696 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1697 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1698 AT_FREEBSD_PS_STRINGS.
1699
1700 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
1701
1702 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1703 of debugfile path on Windows.
1704
1705 2020-07-08 John Baldwin <jhb@FreeBSD.org>
1706
1707 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1708 argument to 'data'.
1709
1710 2020-07-08 Tom Tromey <tromey@adacore.com>
1711
1712 * ada-lang.c (ada_exception_message_1): Use read_memory.
1713
1714 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1715
1716 PR python/22748
1717 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1718 special handling for inline frames.
1719 * findvar.c (value_of_register_lazy): Skip inline frames when
1720 creating lazy register values.
1721 * frame.c (frame_id_computed_p): Delete definition.
1722 * frame.h (frame_id_computed_p): Delete declaration.
1723
1724 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1725
1726 * NEWS: Mention additions to Python API.
1727 * python/py-arch.c (archpy_register_groups): New function.
1728 (arch_object_methods): Add 'register_groups' method.
1729 * python/py-registers.c (reggroup_iterator_object): New struct.
1730 (reggroup_object): New struct.
1731 (gdbpy_new_reggroup): New function.
1732 (gdbpy_reggroup_to_string): New function.
1733 (gdbpy_reggroup_name): New function.
1734 (gdbpy_reggroup_iter): New function.
1735 (gdbpy_reggroup_iter_next): New function.
1736 (gdbpy_new_reggroup_iterator): New function
1737 (gdbpy_initialize_registers): Register new types.
1738 (reggroup_iterator_object_type): Define new Python type.
1739 (gdbpy_reggroup_getset): New static global.
1740 (reggroup_object_type): Define new Python type.
1741 * python/python-internal.h
1742
1743 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1744
1745 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1746 * python/py-arch.c (archpy_registers): New function.
1747 (arch_object_methods): Add 'registers' method.
1748 * python/py-registers.c: New file.
1749 * python/python-internal.h
1750 (gdbpy_new_register_descriptor_iterator): Declare.
1751 (gdbpy_initialize_registers): Declare.
1752 * python/python.c (do_start_initialization): Call
1753 gdbpy_initialize_registers.
1754 * NEWS: Mention additions to the Python API.
1755
1756 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1757
1758 * NEWS: Mention new Python API method.
1759 * python/py-unwind.c (pending_framepy_architecture): New function.
1760 (pending_frame_object_methods): Add architecture method.
1761
1762 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1763
1764 * gdbarch.c: Regenerate.
1765 * gdbarch.h: Regenerate.
1766 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1767 (gdbarch_data): Use internal_error for the case where
1768 deprecated_set_gdbarch_data was originally needed.
1769 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1770 and use passed in obstack.
1771 (libunwind_frame_set_descr): Should no longer get back NULL from
1772 gdbarch_data.
1773 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1774 type.
1775 * user-regs.c (user_regs_init): Update parameters, and use passed
1776 in obstack.
1777 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1778 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1779
1780 2020-07-06 Tom de Vries <tdevries@suse.de>
1781
1782 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1783 End-Of-Sequence in lte_is_less_than.
1784 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1785 "gdb: Don't reorder line table entries too much when sorting".
1786
1787 2020-07-06 Tom de Vries <tdevries@suse.de>
1788
1789 PR tui/26205
1790 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1791
1792 2020-07-05 Tom de Vries <tdevries@suse.de>
1793
1794 PR build/26187
1795 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1796 std::uncaught_exceptions instead of deprecated
1797 std::uncaught_exception.
1798
1799 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1800
1801 * macroexp.h (macro_stringify): Return
1802 gdb::unique_xmalloc_ptr<char>.
1803 * macroexp.c (macro_stringify): Likewise.
1804 * macrotab.c (fixup_definition): Update.
1805
1806 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1807
1808 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1809 (lex_one_token): Update.
1810 * macroexp.c (struct macro_buffer) <release>: Return
1811 gdb::unique_xmalloc_ptr<char>.
1812 (macro_stringify): Update.
1813 (macro_expand): Update.
1814 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1815 * macroexp.h (macro_expand_next): Likewise.
1816
1817 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
1818
1819 * macroexp.h (macro_lookup_ftype): Remove.
1820 (macro_expand, macro_expand_once, macro_expand_next): Remove
1821 lookup function parameters, add scope parameter.
1822 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1823 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1824 * macroscope.h (standard_macro_lookup): Change parameter type
1825 to macro_scope.
1826 * macroscope.c (standard_macro_lookup): Likewise.
1827 * c-exp.y (lex_one_token): Update.
1828 * macrocmd.c (macro_expand_command): Likewise.
1829 (macro_expand_once_command): Likewise.
1830
1831 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1832
1833 * inf-loop.c (inferior_event_handler): Remove client_data param.
1834 * inf-loop.h (inferior_event_handler): Likewise.
1835 * infcmd.c (step_1): Adjust.
1836 * infrun.c (proceed): Adjust.
1837 (fetch_inferior_event): Remove client_data param.
1838 (infrun_async_inferior_event_handler): Adjust.
1839 * infrun.h (fetch_inferior_event): Remove `void *` param.
1840 * linux-nat.c (handle_target_event): Adjust.
1841 * record-btrace.c (record_btrace_handle_async_inferior_event):
1842 Adjust.
1843 * record-full.c (record_full_async_inferior_event_handler):
1844 Adjust.
1845 * remote.c (remote_async_inferior_event_handler): Adjust.
1846
1847 2020-07-01 Tom Tromey <tom@tromey.com>
1848
1849 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1850 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1851
1852 2020-07-01 Tom Tromey <tom@tromey.com>
1853
1854 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1855 tui_gen_win_info.
1856 (tui_win_info::make_window): Merge with
1857 tui_gen_win_info::make_window.
1858 (tui_win_info::make_visible): Move from tui_gen_win_info.
1859 * tui/tui-win.c (tui_win_info::max_width): Move from
1860 tui_gen_win_info.
1861 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1862 type.
1863 <window_factory>: Likewise.
1864 * tui/tui-layout.c (tui_win_info::resize): Move from
1865 tui_gen_win_info.
1866 (make_standard_window): Change return type.
1867 (get_locator_window, tui_get_window_by_name): Likewise.
1868 (tui_layout_window::apply): Remove a cast.
1869 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1870 (struct tui_win_info): Merge with tui_gen_win_info.
1871 (struct tui_gen_win_info): Remove.
1872
1873 2020-07-01 Tom Tromey <tom@tromey.com>
1874
1875 * tui/tui-stack.h (struct tui_locator_window): Derive from
1876 tui_win_info.
1877 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1878 <can_box>: New method.
1879
1880 2020-07-01 Tom Tromey <tom@tromey.com>
1881
1882 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1883
1884 2020-07-01 Tom Tromey <tom@tromey.com>
1885
1886 * tui/tui-regs.c (tui_data_window::display_registers_from)
1887 (tui_data_window::display_registers_from)
1888 (tui_data_window::first_data_item_displayed)
1889 (tui_data_window::delete_data_content_windows): Update.
1890 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1891 Remove.
1892 (tui_data_window::check_register_values): Update.
1893 (tui_data_item_window::rerender): Add parameters. Update.
1894 (tui_data_item_window::refresh_window): Remove.
1895 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1896 virtual.
1897 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1898 tui_gen_win_info.
1899 <refresh_window, max_height, min_height>: Remove.
1900 <rerender>: Add parameters.
1901 <x, y, visible>: New members.
1902 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1903 <m_item_width>: New member.
1904
1905 2020-07-01 Tom Tromey <tom@tromey.com>
1906
1907 * tui/tui-regs.c (tui_data_window::show_register_group)
1908 (tui_data_window::check_register_values): Update.
1909 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1910 from item_no.
1911
1912 2020-07-01 Tom Tromey <tom@tromey.com>
1913
1914 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1915 useless "if".
1916
1917 2020-07-01 Tom Tromey <tom@tromey.com>
1918
1919 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1920 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1921
1922 2020-07-01 Tom Tromey <tom@tromey.com>
1923
1924 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1925 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1926 (struct tui_line_or_address): Move from tui-data.h.
1927 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1928 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1929 (tui_cmd_window, tui_source_window_base, tui_source_window)
1930 (tui_disasm_window): Don't declare.
1931 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1932 to tui-winsource.h.
1933 (SINGLE_KEY): Move to tui-stack.c.
1934
1935 2020-07-01 Tom Tromey <tom@tromey.com>
1936
1937 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1938 std::string.
1939 * tui/tui-regs.c (class tab_expansion_file): New.
1940 (tab_expansion_file::write): New method.
1941 (tui_register_format): Change return type. Use
1942 tab_expansion_file.
1943 (tui_get_register, tui_data_window::display_registers_from)
1944 (tui_data_item_window::rerender): Update.
1945 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1946 * tui/tui-io.c (tui_expand_tabs): Remove.
1947
1948 2020-07-01 Tom Tromey <tom@tromey.com>
1949
1950 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1951
1952 2020-07-01 Fangrui Song <maskray@google.com>
1953
1954 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1955
1956 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1957
1958 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1959 forms for DW_AT_associated and DW_AT_allocated attributes,
1960 which is already checked in function attr_to_dynamic_prop.
1961
1962 2020-06-30 Tom Tromey <tromey@adacore.com>
1963
1964 * dwarf2/read.c (quirk_rust_enum): Correctly call
1965 alloc_rust_variant for default-less enum.
1966
1967 2020-06-30 Tom Tromey <tromey@adacore.com>
1968
1969 PR build/26183:
1970 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1971 gdb::to_string.
1972
1973 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
1974
1975 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1976 * gdbarch.h: Re-generate.
1977
1978 2020-06-28 Tom Tromey <tom@tromey.com>
1979
1980 * command.h (cmd_types): Remove.
1981 (cmd_type): Don't declare.
1982 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1983 typedef.
1984 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1985 * cli/cli-decode.c (cmd_type): Remove.
1986
1987 2020-06-27 Pedro Alves <palves@redhat.com>
1988
1989 * fork-child.c (prefork_hook): Adjust.
1990 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1991 Delete.
1992 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1993 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1994 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1995 Remove declarations.
1996 (struct inferior) <set_tty, tty>: New methods.
1997 (struct inferior) <terminal>: Rename to ...
1998 (struct inferior) <m_terminal>: ... this and make private.
1999 * main.c (captured_main_1): Adjust.
2000 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
2001 (mi_cmd_inferior_tty_show): Adjust.
2002 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
2003 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
2004
2005 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
2006
2007 * configure.ac: Add --enable-libctf: handle --disable-static
2008 properly.
2009 * acinclude.m4: sinclude ../config/enable.m4.
2010 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
2011 (LIBCTF): Substitute in.
2012 (CTF_DEPS): New, likewise.
2013 (CLIBS): libctf needs symbols from libbfd: move earlier.
2014 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
2015 flags.
2016 * ctfread.c: Surround in ENABLE_LIBCTF.
2017 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
2018 * configure: Regenerate.
2019 * config.in: Likewise.
2020
2021 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
2022
2023 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
2024
2025 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
2026
2027 * inferior.h (struct inferior) <terminal>: Change type to
2028 gdb::unique_xmalloc_ptr<char>.
2029 * inferior.c (inferior::~inferior): Don't free inf->terminal.
2030 * infcmd.c (set_inferior_io_terminal): Don't free terminal
2031 field, adjust to unique pointer.
2032 (get_inferior_io_terminal): Adjust to unique pointer.
2033
2034 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2035
2036 * riscv-tdep.c (riscv_print_registers_info): Loop over all
2037 registers, not just the known core set of registers.
2038
2039 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2040
2041 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
2042 fflags, frm, and fcsr registers.
2043 (riscv_register_reggroup_p): Remove unknown CSRs from save and
2044 restore groups.
2045 (riscv_tdesc_unknown_reg): New function.
2046 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
2047 tdesc_use_registers.
2048 * riscv-tdep.h (struct gdbarch_tdep): Add
2049 unknown_csrs_first_regnum, unknown_csrs_count,
2050 duplicate_fflags_regnum, duplicate_frm_regnum, and
2051 duplicate_fcsr_regnum fields.
2052
2053 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2054
2055 * target-descriptions.c (tdesc_use_registers): Add new parameter a
2056 callback, use the callback (when not null) to help number unknown
2057 registers.
2058 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
2059 (tdesc_use_registers): Add extra parameter to declaration.
2060
2061 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2062
2063 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
2064 in the file.
2065 (class riscv_pending_register_alias): Likewise.
2066 (riscv_register_feature::register_info): Change 'required_p' field
2067 to 'required', and change its type. Add 'check' member function.
2068 (riscv_register_feature::register_info::check): Define new member
2069 function.
2070 (riscv_xreg_feature): Change initialisation of 'required' field.
2071 (riscv_freg_feature): Likewise.
2072 (riscv_virtual_feature): Likewise.
2073 (riscv_csr_feature): Likewise.
2074 (riscv_check_tdesc_feature): Take extra parameter, the csr
2075 tdesc_feature, rewrite the function to use the new
2076 riscv_register_feature::register_info::check function.
2077 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
2078
2079 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2080
2081 * features/Makefile: Remove all references to the deleted files
2082 below.
2083 * features/riscv/32bit-csr.c: Deleted.
2084 * features/riscv/32bit-csr.xml: Deleted.
2085 * features/riscv/64bit-csr.c: Deleted.
2086 * features/riscv/64bit-csr.xml: Deleted.
2087 * features/riscv/rebuild-csr-xml.sh: Deleted.
2088
2089 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2090
2091 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
2092 whitespace error for declaration of names member variable.
2093 (struct riscv_register_feature): Add new prefer_first_name member
2094 variable, and fix whitespace error in declaration of registers.
2095 (riscv_xreg_feature): Initialize prefer_first_name field.
2096 (riscv_freg_feature): Likewise.
2097 (riscv_virtual_feature): Likewise.
2098 (riscv_csr_feature): Likewise.
2099 (riscv_register_name): Expand on comments. Remove register name
2100 modifications for CSR and virtual registers.
2101
2102 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2103
2104 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
2105 errors.
2106
2107 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2108
2109 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
2110 riscv-opc.h.
2111 (class riscv_pending_register_alias): New class.
2112 (riscv_check_tdesc_feature): Take vector of pending aliases and
2113 populate it as appropriate.
2114 (riscv_setup_register_aliases): Delete.
2115 (riscv_gdbarch_init): Create vector of pending aliases and pass it
2116 to riscv_check_tdesc_feature in all cases. Use the vector to
2117 create the register aliases.
2118
2119 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2120
2121 * sol2-tdep.c (sol2_static_transform_name): Remove.
2122 (sol2_init_abi): Don't register it.
2123 * gdbarch.sh (static_transform_name): Remove.
2124 * gdbarch.c, gdbarch.h: Regenerate.
2125
2126 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
2127 gdbarch_static_transform_name.
2128 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
2129 * stabsread.c (define_symbol) <'X'>: Remove.
2130 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
2131 handling.
2132 <'V'>: Likewise.
2133 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
2134 <'S'>: Remove call to gdbarch_static_transform_name.
2135
2136 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2137
2138 * procfs.c (procfs_pre_trace): New function.
2139 (procfs_target::create_inferior): Pass it to fork_inferior.
2140
2141 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2142
2143 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
2144 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
2145 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
2146 sol2-tdep.o, sparc-sol2-tdep.o.
2147 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
2148 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
2149 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
2150 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
2151
2152 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2153
2154 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
2155 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
2156 Call sol2_init_abi.
2157 Remove calls to set_gdbarch_skip_solib_resolver,
2158 set_gdbarch_core_pid_to_str.
2159 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
2160 (i386_sol2_static_transform_name): Remove.
2161 (i386_sol2_init_abi): Call sol2_init_abi.
2162 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2163 set_gdbarch_static_transform_name,
2164 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2165 Use sol2_sigtramp_p.
2166 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
2167 (sol2_sigtramp_p): New function.
2168 (sol2_static_transform_name): New function.
2169 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
2170 (sol2_init_abi): New function.
2171 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
2172 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
2173 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
2174 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
2175 (sparc_sol2_static_transform_name): Remove.
2176 (sparc32_sol2_init_abi): Call sol2_init_abi.
2177 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2178 set_gdbarch_static_transform_name,
2179 set_gdbarch_skip_solib_resolver,
2180 set_gdbarch_core_pid_to_str.
2181 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
2182 (sparc_sol2_static_transform_name): Remove
2183 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
2184 call sol2_sigtramp_p.
2185 (sparc64_sol2_init_abi): Call sol2_init_abi.
2186 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2187 set_gdbarch_static_transform_name,
2188 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2189
2190 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2191
2192 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
2193 * exec.c (validate_exec_file): If from_tty, set both
2194 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
2195 * symfile.c (symbol_file_add_with_addrs): if always_confirm
2196 and from_tty, unconditionally ask a confirmation.
2197
2198 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2199
2200 * target-descriptions.c (tdesc_architecture_name): Protect against
2201 NULL pointer dereference.
2202 (maint_print_xml_tdesc_cmd): New function.
2203 (_initialize_target_descriptions): Register new 'maint print
2204 xml-tdesc' command and give it the filename completer.
2205 * NEWS: Mention new 'maint print xml-tdesc' command.
2206
2207 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2208
2209 * target-descriptions.c (class tdesc_compatible_info): New class.
2210 (struct target_desc): Change type of compatible vector.
2211 (tdesc_compatible_p): Update for change in type of
2212 target_desc::compatible.
2213 (tdesc_compatible_info_list): New function.
2214 (tdesc_compatible_info_arch_name): New function.
2215 (tdesc_add_compatible): Update for change in type of
2216 target_desc::compatible.
2217 (print_c_tdesc::visit_pre): Likewise.
2218
2219 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2220
2221 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
2222 whitespace to underscore.
2223 (maint_print_c_tdesc_cmd): Use fake filename for target
2224 descriptions that came from the target.
2225 (_initialize_target_descriptions): Add filename command completion
2226 for 'maint print c-tdesc'.
2227
2228 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2229
2230 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
2231 lines.
2232
2233 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2234
2235 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
2236 lines.
2237 (dwarf2_find_location_expression): Likewise.
2238 (call_site_parameter_matches): Likewise.
2239 (dwarf2_compile_expr_to_ax): Likewise.
2240 (disassemble_dwarf_expression): Likewise.
2241 (loclist_describe_location): Likewise.
2242
2243 2020-06-23 Pedro Alves <palves@redhat.com>
2244
2245 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
2246 progspace-and-thread.h. Include scoped-mock-context.h instead.
2247 (register_to_value_test): Use scoped_mock_context.
2248 * regcache.c: Include "scoped-mock-context.h".
2249 (cooked_read_test): Don't error out if a target is already pushed.
2250 Use scoped_mock_context. Adjust.
2251 * scoped-mock-context.h: New file.
2252
2253 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2254
2255 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
2256 initializer.
2257 (ada_language::is_string_type_p): New member function.
2258 * c-lang.c (c_language_data): Delete la_is_string_type_p
2259 initializer.
2260 (cplus_language_data): Likewise.
2261 (asm_language_data): Likewise.
2262 (minimal_language_data): Likewise.
2263 * d-lang.c (d_language_data): Likewise.
2264 * f-lang.c (f_is_string_type_p): Delete function, implementation
2265 moved to f_language::is_string_type_p.
2266 (f_language_data): Delete la_is_string_type_p initializer.
2267 (f_language::is_string_type_p): New member function,
2268 implementation from f_is_string_type_p.
2269 * go-lang.c (go_is_string_type_p): Delete function, implementation
2270 moved to go_language::is_string_type_p.
2271 (go_language_data): Delete la_is_string_type_p initializer.
2272 (go_language::is_string_type_p): New member function,
2273 implementation from go_is_string_type_p.
2274 * language.c (language_defn::is_string_type_p): Define new member
2275 function.
2276 (default_is_string_type_p): Make static, add comment copied from
2277 header file.
2278 (unknown_language_data): Delete la_is_string_type_p initializer.
2279 (unknown_language::is_string_type_p): New member function.
2280 (auto_language_data): Delete la_is_string_type_p initializer.
2281 (auto_language::is_string_type_p): New member function.
2282 * language.h (language_data): Delete la_is_string_type_p field.
2283 (language_defn::is_string_type_p): Declare new function.
2284 (default_is_string_type_p): Delete desclaration, move comment to
2285 definition.
2286 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
2287 moved to m2_language::is_string_type_p.
2288 (m2_language_data): Delete la_is_string_type_p initializer.
2289 (m2_language::is_string_type_p): New member function,
2290 implementation from m2_is_string_type_p.
2291 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
2292 initializer.
2293 * opencl-lang.c (opencl_language_data): Likewise.
2294 * p-lang.c (pascal_is_string_type_p): Delete function,
2295 implementation moved to pascal_language::is_string_type_p.
2296 (pascal_language_data): Delete la_is_string_type_p initializer.
2297 (pascal_language::is_string_type_p): New member function,
2298 implementation from pascal_is_string_type_p.
2299 * rust-lang.c (rust_is_string_type_p): Delete function,
2300 implementation moved to rust_language::is_string_type_p.
2301 (rust_language_data): Delete la_is_string_type_p initializer.
2302 (rust_language::is_string_type_p): New member function,
2303 implementation from rust_is_string_type_p.
2304 * valprint.c (val_print_scalar_or_string_type_p): Update call to
2305 is_string_type_p.
2306
2307 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2308
2309 * ada-lang.c (ada_language_data): Delete la_print_typedef
2310 initializer.
2311 (ada_language::print_typedef): New member function.
2312 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
2313 (cplus_language_data): Likewise.
2314 (asm_language_data): Likewise.
2315 (minimal_language_data): Likewise.
2316 * d-lang.c (d_language_data): Likewise.
2317 * f-lang.c (f_language_data): Likewise.
2318 (f_language::print_typedef): New member function.
2319 * go-lang.c (go_language_data): Delete la_print_typedef
2320 initializer.
2321 * language.c (language_defn::print_typedef): Define member
2322 function.
2323 (unknown_language_data): Delete la_print_typedef initializer.
2324 (unknown_language::print_typedef): New member function.
2325 (auto_language_data): Delete la_print_typedef initializer.
2326 (auto_language::print_typedef): New member function.
2327 * language.h (language_data): Delete la_print_typedef field.
2328 (language_defn::print_typedef): Declare new member function.
2329 (LA_PRINT_TYPEDEF): Update call to print_typedef.
2330 (default_print_typedef): Delete declaration.
2331 * m2-lang.c (m2_language_data): Delete la_print_typedef
2332 initializer.
2333 (m2_language::print_typedef): New member function.
2334 * objc-lang.c (objc_language_data): Delete la_print_typedef
2335 initializer.
2336 * opencl-lang.c (opencl_language_data): Likewise.
2337 * p-lang.c (pascal_language_data): Likewise.
2338 (pascal_language::print_typedef): New member function.
2339 * rust-lang.c (rust_print_typedef): Delete function,
2340 implementation moved to rust_language::print_typedef.
2341 (rust_language): Delete la_print_typedef initializer.
2342 (rust_language::print_typedef): New member function,
2343 implementation from rust_print_typedef.
2344 * typeprint.c (default_print_typedef): Delete.
2345
2346 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2347
2348 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2349 (ada_language::printstr): New member function.
2350 * c-lang.c (c_language_data): Delete la_printstr initializer.
2351 (cplus_language_data): Likewise.
2352 (asm_language_data): Likewise.
2353 (minimal_language_data): Likewise.
2354 * d-lang.c (d_language_data): Likewise.
2355 * f-lang.c (f_printstr): Rename to f_language::printstr.
2356 (f_language_data): Delete la_printstr initializer.
2357 (f_language::printstr): New member function, implementation from
2358 f_printstr.
2359 * go-lang.c (go_language_data): Delete la_printstr initializer.
2360 * language.c (language_defn::printstr): Define new member
2361 function.
2362 (unk_lang_printstr): Delete.
2363 (unknown_language_data): Delete la_printstr initializer.
2364 (unknown_language::printstr): New member function.
2365 (auto_language_data): Delete la_printstr initializer.
2366 (auto_language::printstr): New member function.
2367 * language.h (language_data): Delete la_printstr field.
2368 (language_defn::printstr): Declare new member function.
2369 (LA_PRINT_STRING): Update call to printstr.
2370 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2371 (m2_language_data): Delete la_printstr initializer.
2372 (m2_language::printstr): New member function, implementation from
2373 m2_printstr.
2374 * objc-lang.c (objc_language_data): Delete la_printstr
2375 initializer.
2376 * opencl-lang.c (opencl_language_data): Likewise.
2377 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2378 (pascal_language_data): Delete la_printstr initializer.
2379 (pascal_language::printstr): New member function, implementation
2380 from pascal_printstr.
2381 * p-lang.h (pascal_printstr): Delete declaration.
2382 * rust-lang.c (rust_printstr): Update header comment.
2383 (rust_language_data): Delete la_printstr initializer.
2384 (rust_language::printstr): New member function.
2385
2386 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2387
2388 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2389 (ada_language::printchar): New member function.
2390 * c-lang.c (c_language_data): Delete la_printchar initializer.
2391 (cplus_language_data): Likewise.
2392 (asm_language_data): Likewise.
2393 (minimal_language_data): Likewise.
2394 * d-lang.c (d_language_data): Likewise.
2395 * f-lang.c (f_printchar): Rename to f_language::printchar.
2396 (f_language_data): Delete la_printchar initializer.
2397 (f_language::printchar): New member function, implementation from
2398 f_printchar.
2399 * go-lang.c (go_language_data): Delete la_printchar initializer.
2400 * language.c (unk_lang_printchar): Delete.
2401 (language_defn::printchar): Define new member function.
2402 (unknown_language_data): Delete la_printchar initializer.
2403 (unknown_language::printchar): New member function.
2404 (auto_language_data): Delete la_printchar initializer.
2405 (auto_language::printchar): New member function.
2406 * language.h (language_data): Delete la_printchar field.
2407 (language_defn::printchar): Declare new member function.
2408 (LA_PRINT_CHAR): Update call to printchar.
2409 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2410 (m2_language::printchar): New member function.
2411 * objc-lang.c (objc_language_data): Delete la_printchar
2412 initializer.
2413 * opencl-lang.c (opencl_language_data): Likewise.
2414 * p-lang.c (pascal_language_data): Delete la_printchar
2415 initializer.
2416 (pascal_language::printchar): New member function.
2417 * rust-lang.c (rust_printchar): Rename to
2418 rust_language::printchar.
2419 (rust_language_data): Delete la_printchar initializer.
2420 (rust_language::printchar): New member function, implementation
2421 from rust_printchar.
2422
2423 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2424
2425 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2426 (ada_language_data): Delete la_emitchar initializer.
2427 (ada_language::emitchar): New member function, implementation from
2428 emit_char.
2429 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2430 (cplus_language_data): Likewise.
2431 (asm_language_data): Likewise.
2432 (minimal_language_data): Likewise.
2433 * d-lang.c (d_language_data): Likewise.
2434 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2435 (f_language_data): Delete la_emitchar initializer.
2436 (f_language::emitchar): New member function, implementation from
2437 f_emit_char.
2438 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2439 * language.c (unk_lang_emit_char): Delete.
2440 (language_defn::emitchar): New member function definition.
2441 (unknown_language_data): Delete la_emitchar initializer.
2442 (unknown_language::emitchar): New member function.
2443 (auto_language_data): Delete la_emitchar initializer.
2444 (auto_language::emitchar): New member function.
2445 * language.h (language_data): Delete la_emitchar field.
2446 (language_defn::emitchar): New member field declaration.
2447 (LA_EMIT_CHAR): Update call to emitchar.
2448 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2449 (m2_language_data): Delete la_emitchar initializer.
2450 (m2_language::emitchar): New member function, implementation from
2451 m2_emit_char.
2452 * objc-lang.c (objc_language_data): Delete la_emitchar
2453 initializer.
2454 * opencl-lang.c (opencl_language_data): Likewise.
2455 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2456 (pascal_language_data): Delete la_emitchar initializer.
2457 (pascal_language::emitchar): New member function, implementation
2458 from pascal_emit_char.
2459 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2460 (rust_language_data): Delete la_emitchar initializer.
2461 (rust_language::emitchar): New member function, implementation
2462 from rust_emitchar.
2463
2464 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2465
2466 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2467 (ada_language_data): Delete la_post_parser initializer.
2468 (ada_language::post_parser): New member function.
2469 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2470 (cplus_language_data): Likewise.
2471 (asm_language_data): Likewise.
2472 (minimal_language_data): Likewise.
2473 * d-lang.c (d_language_data): Likewise.
2474 * f-lang.c (f_language_data): Likewise.
2475 * go-lang.c (go_language_data): Likewise.
2476 * language.c (unknown_language_data): Likewise.
2477 (auto_language_data): Likewise.
2478 * language.h (language_data): Delete la_post_parser field.
2479 (language_defn::post_parser): New member function.
2480 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2481 * objc-lang.c (objc_language_data): Likewise.
2482 * opencl-lang.c (opencl_language_data): Likewise.
2483 * p-lang.c (pascal_language_data): Likewise.
2484 * parse.c (parse_exp_in_context): Update call to post_parser.
2485 (null_post_parser): Delete definition.
2486 * parser-defs.h (null_post_parser): Delete declaration.
2487 * rust-lang.c (rust_language_data): Delete la_post_parser
2488 initializer.
2489
2490 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2491
2492 * ada-lang.c (parse): Rename to ada_language::parser.
2493 (ada_language_data): Delete la_parser initializer.
2494 (ada_language::parser): New member function, implementation from
2495 parse.
2496 * c-lang.c (c_language_data): Delete la_parser initializer.
2497 (cplus_language_data): Likewise.
2498 (asm_language_data): Likewise.
2499 (minimal_language_data): Likewise.
2500 * d-lang.c (d_language_data): Likewise.
2501 (d_language::parser): New member function.
2502 * f-lang.c (f_language_data): Delete la_parser initializer.
2503 (f_language::parser): New member function.
2504 * go-lang.c (go_language_data): Delete la_parser initializer.
2505 (go_language::parser): New member function.
2506 * language.c (unk_lang_parser): Delete.
2507 (language_defn::parser): Define new member function.
2508 (unknown_language_data): Delete la_parser initializer.
2509 (unknown_language::parser): New member function.
2510 (auto_language_data): Delete la_parser initializer.
2511 (auto_language::parser): New member function.
2512 * language.h (language_data): Delete la_parser field.
2513 (language_defn::parser): Declare new member function.
2514 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2515 (m2_language::parser): New member function.
2516 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2517 * opencl-lang.c (opencl_language_data): Likewise.
2518 * p-lang.c (pascal_language_data): Likewise.
2519 (pascal_language::parser): New member function.
2520 * parse.c (parse_exp_in_context): Update call to parser.
2521 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2522 (rust_language::parser): New member function.
2523
2524 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2525
2526 * top.c (print_gdb_configuration): Print --with-python-libdir
2527 configuration value.
2528
2529 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2530
2531 * NEWS: Mention change to the alias command.
2532
2533 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2534
2535 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2536 (alias_command_completer)
2537 (make_alias_options_def_group): New functions.
2538 (alias_opts, alias_option_defs): New struct and array.
2539 (alias_usage_error): Update usage.
2540 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2541 Use option framework.
2542 (_initialize_cli_cmds): Update alias command help.
2543 Update aliases command help.
2544 (show_user):
2545 Add NULL for new default_args lookup_cmd argument.
2546 (valid_command_p): Rename to validate_aliased_command.
2547 Add NULL for new default_args lookup_cmd argument. Verify that the
2548 aliased_command has no default args.
2549 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2550 (lookup_cmd_1, lookup_cmd): New argument default_args.
2551 (add_alias_cmd):
2552 Add NULL for new default_args lookup_cmd argument.
2553 (print_help_for_command): Show default args under the layout
2554 alias some_alias = some_aliased_cmd some_alias_default_arg.
2555 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2556 xfree default_args in destructor.
2557 * cli/cli-script.c (process_next_line, do_define_command):
2558 Add NULL for new default_args lookup_cmd argument.
2559 * command.h: Declare new default_args argument in lookup_cmd
2560 and lookup_cmd_1.
2561 * completer.c (complete_line_internal_1):
2562 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2563 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2564 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2565 Likewise.
2566 * infcmd.c (_initialize_infcmd): Likewise.
2567 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2568 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2569 * python/py-param.c (add_setshow_generic): Likewise.
2570 * remote.c (_initialize_remote): Likewise.
2571 * top.c (execute_command): Prepend default_args if command has some.
2572 (set_verbose):
2573 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2574 * tracepoint.c (validate_actionline, encode_actions_1):
2575 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2576
2577 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2578
2579 * jit.c (jit_read_descriptor): Use bool as the return type.
2580 (jit_breakpoint_re_set_internal): Use bool as the return type.
2581 Invert the return value logic; return true if the jit breakpoint
2582 has been successfully initialized.
2583 (jit_inferior_init): Update the call to
2584 jit_breakpoint_re_set_internal.
2585
2586 2020-06-22 Pedro Alves <palves@redhat.com>
2587
2588 PR gdb/25939
2589 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2590 Use the current inferior instead. Don't return
2591 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2592 wait again.
2593 * sol-thread.c (sol_thread_target::wait): Don't reference
2594 inferior_ptid.
2595 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2596 (sol_update_thread_list_callback): Use the current inferior's pid
2597 instead of inferior_ptid.
2598
2599 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2600
2601 * procfs.c: Cleanup many comments.
2602
2603 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2604 (AFTER_WATCHFLAG): Replace by value.
2605
2606 (MAIN_PROC_NAME_FORMAT): Inline ...
2607 (create_procinfo): ... here.
2608
2609 (procfs_debug_inferior): Remove SYS_exec handling.
2610 (syscall_is_exec): Likewise.
2611 (procfs_set_exec_trap): Likewise.
2612
2613 (syscall_is_lwp_exit): Inline in callers.
2614 (syscall_is_exit): Likewise.
2615 (syscall_is_exec): Likewise.
2616 (syscall_is_lwp_create): Likewise.
2617
2618 (invalidate_cache): Remove #if 0 code.
2619
2620 (make_signal_thread_runnable): Remove.
2621 (procfs_target::resume): Remove #if 0 code.
2622
2623 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2624
2625 PR gdb/25939
2626 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2627 call ...
2628 (procfs_target::create_inferior): ... here.
2629
2630 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2631
2632 * exec.c (validate_exec_file): Ensure the build-id is up to
2633 date by calling reopen_exec_file (that checks file timestamp
2634 to decide to re-read the file).
2635
2636 2020-06-18 Pedro Alves <palves@redhat.com>
2637
2638 PR gdb/25412
2639 * gdbthread.h (delete_thread, delete_thread_silent)
2640 (find_thread_ptid): Update comments.
2641 * thread.c (current_thread_): New global.
2642 (is_current_thread): Move higher, and reimplement.
2643 (inferior_thread): Reimplement.
2644 (set_thread_exited): Use bool. Add assertions.
2645 (add_thread_silent): Simplify thread-reuse handling by always
2646 calling delete_thread.
2647 (delete_thread): Remove intro comment.
2648 (find_thread_ptid): Skip exited threads.
2649 (switch_to_thread_no_regs): Write to current_thread_.
2650 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2651 INFERIOR_PTID. Clear current_thread_.
2652
2653 2020-06-18 Pedro Alves <palves@redhat.com>
2654
2655 * aix-thread.c (pd_update): Use switch_to_thread.
2656
2657 2020-06-18 Pedro Alves <palves@redhat.com>
2658
2659 * ravenscar-thread.c (ravenscar_thread_target): Update.
2660 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2661 (ravenscar_thread_target::add_active_thread): ... this. Don't
2662 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2663 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2664
2665 2020-06-18 Pedro Alves <palves@redhat.com>
2666
2667 * nat/windows-nat.c (current_windows_thread): Remove.
2668 * nat/windows-nat.h (current_windows_thread): Remove.
2669 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2670 Adjust.
2671 (display_selectors): Adjust to fetch the current
2672 windows_thread_info based on inferior_ptid.
2673 (fake_create_process): No longer write to current_windows_thread.
2674 (windows_nat_target::get_windows_debug_event):
2675 Don't set inferior_ptid or current_windows_thread.
2676 (windows_nat_target::wait): Adjust to not rely on
2677 current_windows_thread.
2678 (do_initial_windows_stuff): Now a method of windows_nat_target.
2679 Switch to the last_ptid thread.
2680 (windows_nat_target::attach): Adjust.
2681 (windows_nat_target::detach): Use switch_to_no_thread instead of
2682 writing to inferior_ptid directly.
2683 (windows_nat_target::create_inferior): Adjust.
2684
2685 2020-06-18 Pedro Alves <palves@redhat.com>
2686
2687 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2688
2689 2020-06-18 Pedro Alves <palves@redhat.com>
2690
2691 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2692 after creating it, instead of writing to inferior_ptid. Don't
2693 write to inferior_ptid.
2694
2695 2020-06-18 Pedro Alves <palves@redhat.com>
2696
2697 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2698
2699 2020-06-18 Pedro Alves <palves@redhat.com>
2700
2701 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2702 it, instead of writing to inferior_ptid.
2703
2704 2020-06-18 Pedro Alves <palves@redhat.com>
2705
2706 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2707 to inferior_ptid.
2708
2709 2020-06-18 Pedro Alves <palves@redhat.com>
2710
2711 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2712 instead of writing to inferior_ptid directly.
2713
2714 2020-06-18 Pedro Alves <palves@redhat.com>
2715
2716 * corelow.c (core_target::close): Use switch_to_no_thread instead
2717 of writing to inferior_ptid directly.
2718 (add_to_thread_list, core_target_open): Use switch_to_thread
2719 instead of writing to inferior_ptid directly.
2720
2721 2020-06-18 Pedro Alves <palves@redhat.com>
2722
2723 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2724 inferior_ptid.
2725 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2726 inferior_ptid.
2727 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2728 inferior_ptid directly.
2729 (darwin_nat_target::init_thread_list): Switch to thread, instead
2730 of writing to inferior_ptid.
2731 (darwin_nat_target::attach): Don't write to inferior_ptid.
2732 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2733
2734 2020-06-18 Pedro Alves <palves@redhat.com>
2735
2736 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2737 thread.
2738 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2739 Instead use switch_to_thread.
2740 (gnu_nat_target::detach): Use switch_to_no_thread
2741 instead of writing to inferior_ptid directly. Used passed-in
2742 inferior instead of looking up the inferior by pid.
2743
2744 2020-06-18 Pedro Alves <palves@redhat.com>
2745
2746 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2747 inferior_ptid.
2748
2749 2020-06-18 Pedro Alves <palves@redhat.com>
2750
2751 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2752 inferior_ptid.
2753 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2754 thread.
2755 (nto_procfs_target::detach): Avoid referencing
2756 inferior_ptid. Use switch_to_no_thread instead of writing to
2757 inferior_ptid directly.
2758 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2759 instead of writing to inferior_ptid directly.
2760 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2761 to thread.
2762
2763 2020-06-18 Pedro Alves <palves@redhat.com>
2764
2765 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2766 after creating it, instead of writing to inferior_ptid.
2767 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2768 to inferior_ptid directly.
2769 (gdbsim_target::wait): Don't write to inferior_ptid.
2770
2771 2020-06-18 Pedro Alves <palves@redhat.com>
2772
2773 * remote.c (remote_target::remote_notice_new_inferior): Use
2774 switch_to_thread instead of writing to inferior_ptid directly.
2775 (remote_target::add_current_inferior_and_thread): Use
2776 switch_to_no_thread instead of writing to inferior_ptid directly.
2777 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2778 and switch_to_thread instead of using set_current_inferior or
2779 writing to inferior_ptid directly.
2780
2781 2020-06-18 Pedro Alves <palves@redhat.com>
2782
2783 * tracectf.c (ctf_target_open): Switch to added thread instead of
2784 writing to inferior_ptid directly.
2785 (ctf_target::close): Use switch_to_no_thread instead of writing to
2786 inferior_ptid directly.
2787
2788 2020-06-18 Pedro Alves <palves@redhat.com>
2789
2790 * tracefile-tfile.c (tfile_target_open): Don't write to
2791 inferior_ptid directly, instead switch to added thread.
2792 (tfile_target::close): Use switch_to_no_thread instead of writing
2793 to inferior_ptid directly.
2794
2795 2020-06-18 Pedro Alves <palves@redhat.com>
2796
2797 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2798 (procfs_target::detach): Use switch_to_no_thread
2799 instead of writing to inferior_ptid directly.
2800 (do_attach): Change return type to void. Switch to the added
2801 thread.
2802 (procfs_target::create_inferior): Switch to the added thread.
2803 (procfs_do_thread_registers): Don't write to inferior_ptid.
2804
2805 2020-06-18 Pedro Alves <palves@redhat.com>
2806
2807 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2808 of writing to inferior_ptid.
2809 (scoped_restore_exited_inferior): Delete.
2810 (handle_vfork_child_exec_or_exit): Simplify using
2811 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2812 instead of writing to inferior_ptid.
2813 (THREAD_STOPPED_BY): Delete.
2814 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2815 (thread_stopped_by_hw_breakpoint): Delete.
2816 (save_waitstatus): Use
2817 scoped_restore_current_thread+switch_to_thread, and call
2818 target_stopped_by_watchpoint instead of
2819 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2820 instead of thread_stopped_by_sw_breakpoint, and
2821 target_stopped_by_hw_breakpoint instead of
2822 thread_stopped_by_hw_breakpoint.
2823 (handle_inferior_event)
2824 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2825 inferior_ptid directly, nor
2826 set_current_inferior/set_current_program_space. Use
2827 switch_to_thread / switch_to_inferior_no_thread instead.
2828
2829 2020-06-18 Pedro Alves <palves@redhat.com>
2830
2831 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2832 instead of writing to inferior_ptid.
2833
2834 2020-06-18 Pedro Alves <palves@redhat.com>
2835
2836 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2837 added thread.
2838 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2839 to the added thread.
2840 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2841 instead of writing to inferior_ptid.
2842
2843 2020-06-18 Pedro Alves <palves@redhat.com>
2844
2845 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2846 (register_to_value_test): Mock a program_space too. Heap-allocate
2847 the address space. Don't write to inferior_ptid. Use
2848 switch_to_thread instead.
2849
2850 2020-06-18 Pedro Alves <palves@redhat.com>
2851
2852 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2853 Delete.
2854 (find_signalled_thread()): New, factored out from
2855 linux_make_corefile_notes and adjusted to handle exited threads.
2856 (linux_make_corefile_notes): Adjust to use the new
2857 find_signalled_thread.
2858
2859 2020-06-18 Pedro Alves <palves@redhat.com>
2860
2861 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2862 of saving/restoring inferior_ptid.
2863
2864 2020-06-17 Tom Tromey <tom@tromey.com>
2865
2866 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2867 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2868 declare.
2869 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2870
2871 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
2872
2873 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2874 of partial symtabs.
2875
2876 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2877
2878 * regformats/reg-arm.dat: Remove.
2879 * regformats/reg-bfin.dat: Remove.
2880 * regformats/reg-cris.dat: Remove.
2881 * regformats/reg-crisv32.dat: Remove.
2882 * regformats/reg-m32r.dat: Remove.
2883 * regformats/reg-tilegx.dat: Remove.
2884 * regformats/reg-tilegx32.dat: Remove.
2885
2886 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2887
2888 * features/Makefile (WHICH): Remove arm files.
2889 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2890 * regformats/arm/arm-with-neon.dat: Remove.
2891 * regformats/arm/arm-with-vfpv2.dat: Remove.
2892 * regformats/arm/arm-with-vfpv3.dat: Remove.
2893
2894 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2895
2896 * features/Makefile (XMLTOC): Remove rx.xml.
2897
2898 2020-06-17 Pedro Alves <palves@redhat.com>
2899
2900 * gdbthread.h (thread_control_state) <trap_expected> Update
2901 comments.
2902
2903 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2904
2905 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2906 ada_language::lookup_symbol_nonlocal.
2907 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2908 (ada_language::lookup_symbol_nonlocal): New member function,
2909 implementation from ada_lookup_symbol_nonlocal.
2910 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2911 initializer.
2912 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2913 initializer.
2914 (cplus_language::lookup_symbol_nonlocal): New member function.
2915 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2916 (minimal_language_data) Likewise.
2917 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2918 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2919 initializer.
2920 (d_language::lookup_symbol_nonlocal): New member function.
2921 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2922 initializer.
2923 (f_language::lookup_symbol_nonlocal): New member function.
2924 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2925 initializer.
2926 * language.c (unknown_language_data): Likewise.
2927 (auto_language_data): Likewise.
2928 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2929 field.
2930 (language_defn::lookup_symbol_nonlocal): New member function.
2931 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2932 initializer.
2933 * objc-lang.c (objc_language_data): Likewise.
2934 * opencl-lang.c (opencl_language_data): Likewise.
2935 * p-lang.c (pascal_language_data): Likewise.
2936 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2937 rust_language::lookup_symbol_nonlocal.
2938 (rust_language_data): Delete la_lookup_symbol_nonlocal
2939 initializer.
2940 (rust_language::lookup_symbol_nonlocal): New member function,
2941 implementation from rust_lookup_symbol_nonlocal.
2942 * symtab.c (lookup_symbol_aux): Update call to
2943 lookup_symbol_nonlocal.
2944 (basic_lookup_symbol_nonlocal): Rename to...
2945 (language_defn::lookup_symbol_nonlocal): ...this, and update
2946 header comment. Remove language_defn parameter, and replace with
2947 uses of `this'.
2948 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2949
2950 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2951
2952 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2953 initializer.
2954 (ada_language::value_print_inner): New member function.
2955 * c-lang.c (c_language_data): Delete la_value_print_inner
2956 initializer.
2957 (cplus_language_data): Likewise.
2958 (asm_language_data): Likewise.
2959 (minimal_language_data): Likewise.
2960 * d-lang.c (d_language_data): Likewise.
2961 (d_language::value_print_inner): New member function.
2962 * f-lang.c (f_language_data): Delete la_value_print_inner
2963 initializer.
2964 (f_language::value_print_inner): New member function.
2965 * f-lang.h (f_value_print_innner): Rename to...
2966 (f_value_print_inner): ...this (note spelling of 'inner').
2967 * f-valprint.c (f_value_print_innner): Rename to...
2968 (f_value_print_inner): ...this (note spelling of 'inner').
2969 * go-lang.c (go_language_data): Delete la_value_print_inner
2970 initializer.
2971 (go_language::value_print_inner): New member function.
2972 * language.c (language_defn::value_print_inner): Define new member
2973 function.
2974 (unk_lang_value_print_inner): Delete.
2975 (unknown_language_data): Delete la_value_print_inner initializer.
2976 (unknown_language::value_print_inner): New member function.
2977 (auto_language_data): Delete la_value_print_inner initializer.
2978 (auto_language::value_print_inner): New member function.
2979 * language.h (language_data): Delete la_value_print_inner field.
2980 (language_defn::value_print_inner): Delcare new member function.
2981 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2982 initializer.
2983 (m2_language::value_print_inner): New member function.
2984 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2985 initializer.
2986 * opencl-lang.c (opencl_language_data): Likewise.
2987 * p-lang.c (pascal_language_data): Likewise.
2988 (pascal_language::value_print_inner): New member function.
2989 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2990 initializer.
2991 (rust_language::value_print_inner): New member function.
2992 * valprint.c (do_val_print): Update call to value_print_inner.
2993
2994 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2995
2996 * ada-lang.c (ada_language_data): Delete la_value_print
2997 initializer.
2998 (ada_language::value_print): New member function.
2999 * c-lang.c (c_language_data): Delete la_value_print initializer.
3000 (cplus_language_data): Likewise.
3001 (asm_language_data): Likewise.
3002 (minimal_language_data): Likewise.
3003 * d-lang.c (d_language_data): Likewise.
3004 * f-lang.c (f_language_data): Likewise.
3005 * go-lang.c (go_language_data): Likewise.
3006 * language.c (unk_lang_value_print): Delete.
3007 (language_defn::value_print): Define new member function.
3008 (unknown_language_data): Delete la_value_print initializer.
3009 (unknown_language::value_print): New member function.
3010 (auto_language_data): Delete la_value_print initializer.
3011 (auto_language::value_print): New member function.
3012 * language.h (language_data): Delete la_value_print field.
3013 (language_defn::value_print): Declare new member function.
3014 (LA_VALUE_PRINT): Update call to value_print.
3015 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
3016 * objc-lang.c (objc_language_data): Likewise.
3017 * opencl-lang.c (opencl_language_data): Likewise.
3018 * p-lang.c (pascal_language_data): Likewise.
3019 (pascal_language::value_print): New member function.
3020 * rust-lang.c (rust_language_data): Delete la_value_print
3021 initializer.
3022
3023 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3024
3025 * ada-lang.c (ada_watch_location_expression): Rename to
3026 ada_language::watch_location_expression.
3027 (ada_language_data): Delete la_watch_location_expression
3028 initializer.
3029 (ada_language::watch_location_expression): New member function,
3030 implementation from ada_watch_location_expression.
3031 * breakpoint.c (watch_command_1): Update call to
3032 watch_location_expression.
3033 * c-lang.c (c_watch_location_expression): Rename to
3034 language_defn::watch_location_expression.
3035 (c_language_data): Delete la_watch_location_expression
3036 initializer.
3037 (cplus_language_data): Likewise.
3038 (asm_language_data): Likewise.
3039 (minimal_language_data): Likewise.
3040 * c-lang.h (c_watch_location_expression): Delete declaration.
3041 * d-lang.c (d_language_data): Delete la_watch_location_expression
3042 initializer.
3043 * f-lang.c (f_language_data): Likewise.
3044 * go-lang.c (go_language_data): Likewise.
3045 * language.c (language_defn::watch_location_expression): Member
3046 function implementation from c_watch_location_expression.
3047 (unknown_language_data): Delete la_watch_location_expression
3048 initializer.
3049 (auto_language_data): Likewise.
3050 * language.h (language_data): Delete la_watch_location_expression
3051 field.
3052 (language_defn::watch_location_expression): Declare new member
3053 function.
3054 * m2-lang.c (m2_language_data): Delete
3055 la_watch_location_expression initializer.
3056 * objc-lang.c (objc_language_data): Likewise.
3057 * opencl-lang.c (opencl_language_data): Likewise.
3058 * p-lang.c (pascal_language_data): Likewise.
3059 * rust-lang.c (rust_watch_location_expression): Rename to
3060 rust_language::watch_location_expression.
3061 (rust_language_data): Delete la_watch_location_expression
3062 initializer.
3063 (rust_language::watch_location_expression): New member function,
3064 implementation from rust_watch_location_expression.
3065
3066 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3067
3068 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
3069 ada_language::collect_symbol_completion_matches.
3070 (ada_language_data): Delete la_collect_symbol_completion_matches
3071 initializer.
3072 (ada_language::collect_symbol_completion_matches): New member
3073 function, implementation from
3074 ada_collect_symbol_completion_matches.
3075 * c-lang.c (c_language_data): Delete
3076 la_collect_symbol_completion_matches initializer.
3077 (cplus_language_data): Likewise.
3078 (asm_language_data): Likewise.
3079 (minimal_language_data): Likewise.
3080 * d-lang.c (d_language_data): Likewise.
3081 * f-lang.c (f_collect_symbol_completion_matches): Rename to
3082 f_language::collect_symbol_completion_matches.
3083 (f_language_data): Delete la_collect_symbol_completion_matches
3084 initializer.
3085 (f_language::collect_symbol_completion_matches) New member
3086 function, implementation from f_collect_symbol_completion_matches.
3087 * go-lang.c (go_language_data): Delete
3088 la_collect_symbol_completion_matches initializer.
3089 * language.c (unknown_language_data): Likewise.
3090 (auto_language_data): Likewise.
3091 * language.h (language_data): Delete
3092 la_collect_symbol_completion_matches field.
3093 (language_defn::collect_symbol_completion_matches): New member
3094 function.
3095 * m2-lang.c (m2_language_data): Delete
3096 la_collect_symbol_completion_matches initializer.
3097 * objc-lang.c (objc_language_data): Likewise.
3098 * opencl-lang.c (opencl_language_data): Likewise.
3099 * p-lang.c (pascal_language_data): Likewise.
3100 * rust-lang.c (rust_language_data): Likewise.
3101 * symtab.c (default_collect_symbol_completion_matches): Delete.
3102 (collect_symbol_completion_matches): Update call to
3103 collect_symbol_completion_matches.
3104 (collect_symbol_completion_matches_type): Likewise.
3105 * symtab.h (default_collect_symbol_completion_matches): Delete
3106 declaration.
3107
3108 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3109
3110 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
3111 (ada_language_data): Delete la_word_break_characters initializer.
3112 (ada_language::word_break_characters): New member function.
3113 * c-lang.c (c_language_data): Delete la_word_break_characters
3114 initializer.
3115 (cplus_language_data): Likewise.
3116 (asm_language_data): Likewise.
3117 (minimal_language_data): Likewise.
3118 * completer.c: Update global comment.
3119 (advance_to_expression_complete_word_point): Update call to
3120 word_break_characters.
3121 (complete_files_symbols): Likewise.
3122 (complete_line_internal_1): Likewise.
3123 (default_completer_handle_brkchars): Likewise.
3124 (skip_quoted_chars): Likewise.
3125 * d-lang.c (d_language_data): Delete la_word_break_characters
3126 initializer.
3127 * f-lang.c (f_word_break_characters): Delete.
3128 (f_language_data): Delete la_word_break_characters initializer.
3129 (f_language::word_break_characters): New member function.
3130 * go-lang.c (go_language_data): Delete la_word_break_characters
3131 initializer.
3132 * language.c (unknown_language_data): Likewise.
3133 (auto_language_data): Likewise.
3134 * language.h (default_word_break_characters): Move declaration to
3135 earlier in the file.
3136 (language_data): Delete la_word_break_characters field.
3137 (language_defn::word_break_characters): New member function.
3138 * m2-lang.c (m2_language_data): Delete la_word_break_characters
3139 initializer.
3140 * objc-lang.c (objc_language_data): Likewise.
3141 * opencl-lang.c (opencl_language_data): Likewise.
3142 * p-lang.c (pascal_language_data): Likewise.
3143 * rust-lang.c (rust_language_data): Likewise.
3144
3145 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3146
3147 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
3148 (ada_language_data): Delete la_get_symbol_name_matcher
3149 initializer.
3150 (language_defn::get_symbol_name_matcher_inner): New member
3151 function.
3152 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
3153 initializer.
3154 (cplus_language_data): Likewise.
3155 (cplus_language::get_symbol_name_matcher_inner): New member
3156 function.
3157 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
3158 (minimal_language_data): Likewise.
3159 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
3160 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
3161 initializer.
3162 * dictionary.c (iter_match_first_hashed): Update call to
3163 get_symbol_name_matcher.
3164 (iter_match_next_hashed): Likewise.
3165 (iter_match_next_linear): Likewise.
3166 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
3167 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
3168 initializer.
3169 (f_language::get_symbol_name_matcher_inner): New member function.
3170 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
3171 initializer.
3172 * language.c (default_symbol_name_matcher): Update header comment,
3173 make static.
3174 (language_defn::get_symbol_name_matcher): New definition.
3175 (language_defn::get_symbol_name_matcher_inner): Likewise.
3176 (get_symbol_name_matcher): Delete.
3177 (unknown_language_data): Delete la_get_symbol_name_matcher
3178 initializer.
3179 (auto_language_data): Likewise.
3180 * language.h (language_data): Delete la_get_symbol_name_matcher
3181 field.
3182 (language_defn::get_symbol_name_matcher): New member function.
3183 (language_defn::get_symbol_name_matcher_inner): Likewise.
3184 (default_symbol_name_matcher): Delete declaration.
3185 * linespec.c (find_methods): Update call to
3186 get_symbol_name_matcher.
3187 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
3188 initializer.
3189 * minsyms.c (lookup_minimal_symbol): Update call to
3190 get_symbol_name_matcher.
3191 (iterate_over_minimal_symbols): Likewise.
3192 * objc-lang.c (objc_language_data): Delete
3193 la_get_symbol_name_matcher initializer.
3194 * opencl-lang.c (opencl_language_data): Likewise.
3195 * p-lang.c (pascal_language_data): Likewise.
3196 * psymtab.c (psymbol_name_matches): Update call to
3197 get_symbol_name_matcher.
3198 * rust-lang.c (rust_language_data): Delete
3199 la_get_symbol_name_matcher initializer.
3200 * symtab.c (symbol_matches_search_name): Update call to
3201 get_symbol_name_matcher.
3202 (compare_symbol_name): Likewise.
3203
3204 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3205
3206 * ada-lang.c (ada_language_data): Delete la_compute_program
3207 initializer.
3208 * c-lang.c (c_language_data): Likewise.
3209 (c_language::compute_program): New member function.
3210 (cplus_language_data): Delete la_compute_program initializer.
3211 (cplus_language::compute_program): New member function.
3212 (asm_language_data): Delete la_compute_program initializer.
3213 (minimal_language_data): Likewise.
3214 * c-lang.h (c_compute_program): Update comment.
3215 (cplus_compute_program): Likewise.
3216 * compile/compile-c-support.c (c_compute_program): Likewise.
3217 (cplus_compute_program): Likewise.
3218 * compile/compile.c (compile_to_object): Update call to
3219 la_compute_program.
3220 * d-lang.c (d_language_data): Delete la_compute_program
3221 initializer.
3222 * f-lang.c (f_language_data): Likewise.
3223 * go-lang.c (go_language_data): Likewise.
3224 * language.c (unknown_language_data): Likewise.
3225 (auto_language_data): Likewise.
3226 * language.h (language_data): Delete la_compute_program field.
3227 (language_defn::compute_program): New member function.
3228 * m2-lang.c (m2_language_data): Delete la_compute_program
3229 initializer.
3230 * objc-lang.c (objc_language_data): Likewise.
3231 * opencl-lang.c (opencl_language_data): Likewise.
3232 * p-lang.c (pascal_language_data): Likewise.
3233 * rust-lang.c (rust_language_data): Likewise.
3234
3235 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3236
3237 * ada-lang.c (ada_language_data) Delete
3238 la_class_name_from_physname initializer.
3239 * c-lang.c (c_language_data): Likewise.
3240 (cplus_language_data): Likewise.
3241 (cplus_language::class_name_from_physname): New member function.
3242 (asm_language_data): Delete la_class_name_from_physname
3243 initializer.
3244 (minimal_language_data): Likewise.
3245 * d-lang.c (d_language_data): Likewise.
3246 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
3247 method on language_defn class.
3248 (guess_full_die_structure_name): Likewise.
3249 * f-lang.c (f_language_data): Delete la_class_name_from_physname
3250 initializer.
3251 * go-lang.c (go_language_data): Likewise.
3252 * language.c (language_class_name_from_physname): Delete.
3253 (unk_lang_class_name): Delete.
3254 (unknown_language_data): Delete la_class_name_from_physname
3255 initializer.
3256 (auto_language_data): Likewise.
3257 * language.h (language_data): Delete la_class_name_from_physname
3258 field.
3259 (language_defn::class_name_from_physname): New function.
3260 (language_class_name_from_physname): Delete declaration.
3261 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
3262 initializer.
3263 * objc-lang.c (objc_language_data): Likewise.
3264 * opencl-lang.c (opencl_language_data): Likewise.
3265 * p-lang.c (pascal_language_data): Likewise.
3266 * rust-lang.c (rust_language_data): Likewise.
3267
3268 2020-06-16 Tom Tromey <tom@tromey.com>
3269
3270 * tui/tui-data.h (STATUS_NAME): New macro.
3271 * tui/tui-layout.c (tui_remove_some_windows)
3272 (initialize_known_windows, tui_register_window)
3273 (tui_layout_split::remove_windows, initialize_layouts)
3274 (tui_new_layout_command): Don't use hard-coded window names.
3275
3276 2020-06-16 Tom Tromey <tom@tromey.com>
3277
3278 PR tui/25348:
3279 * tui/tui.c (tui_ensure_readline_initialized): Rename from
3280 tui_initialize_readline. Only run once. Call rl_initialize.
3281 * tui/tui.h (tui_ensure_readline_initialized): Rename from
3282 tui_initialize_readline.
3283 * tui/tui-io.c (tui_setup_io): Call
3284 tui_ensure_readline_initialized.
3285 * tui/tui-interp.c (tui_interp::init): Update.
3286
3287 2020-06-16 Tom Tromey <tom@tromey.com>
3288
3289 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
3290 Also preserve the status window.
3291
3292 2020-06-16 Tom Tromey <tom@tromey.com>
3293
3294 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
3295 where m_window==nullptr.
3296
3297 2020-06-15 Tom Tromey <tromey@adacore.com>
3298
3299 * windows-nat.c (windows_nat::handle_output_debug_string):
3300 Update.
3301 (windows_nat::handle_ms_vc_exception): Update.
3302 * target.h (target_read_string): Change API.
3303 * target.c (target_read_string): Change API.
3304 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
3305 Update.
3306 * solib-frv.c (frv_current_sos): Update.
3307 * solib-dsbt.c (dsbt_current_sos): Update.
3308 * solib-darwin.c (darwin_current_sos): Update.
3309 * linux-thread-db.c (inferior_has_bug): Update.
3310 * expprint.c (print_subexp_standard): Update.
3311 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
3312 (ada_exception_message_1): Update.
3313
3314 2020-06-15 Tom Tromey <tromey@adacore.com>
3315
3316 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
3317
3318 2020-06-15 Tom Tromey <tromey@adacore.com>
3319
3320 * valprint.c (read_string): Update comment.
3321 * target.c (MIN): Remove.
3322 (target_read_string): Rewrite.
3323
3324 2020-06-15 Tom Tromey <tromey@adacore.com>
3325
3326 * corefile.c (read_memory_string): Remove.
3327 * ada-valprint.c (ada_value_print_ptr): Update.
3328 * ada-lang.h (ada_tag_name): Change return type.
3329 * ada-lang.c (type_from_tag): Update.
3330 (ada_tag_name_from_tsd): Change return type. Use
3331 target_read_string.
3332 (ada_tag_name): Likewise.
3333 * gdbcore.h (read_memory_string): Don't declare.
3334
3335 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
3336
3337 * symtab.c (rbreak_command): Ignore Windows drive colon.
3338
3339 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
3340
3341 * NEWS: Mention removed GDBserver host support.
3342
3343 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
3344
3345 * features/riscv/rebuild-csr-xml.sh: Updated.
3346
3347 2020-06-11 Tom Tromey <tom@tromey.com>
3348
3349 PR gdb/18318:
3350 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3351
3352 2020-06-09 Jonny Grant <jg@jguk.org>
3353 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3354
3355 * main.c (captured_main_1): Don't print new line after help.
3356 (print_gdb_help): add mailing list and IRC channel information
3357 to --help. Add new lines between items in the footer. Remove
3358 quotes around bug url.
3359
3360 2020-06-11 Keith Seitz <keiths@redhat.com>
3361
3362 PR gdb/21356
3363 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3364 Resolve typedefs for type length calculations.
3365
3366 2020-06-10 Tom de Vries <tdevries@suse.de>
3367
3368 PR ada/24713
3369 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3370 (write_psymbols): Enable .gdb_index for ada.
3371 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3372 ada.
3373
3374 2020-06-10 Tom de Vries <tdevries@suse.de>
3375
3376 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3377 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3378 namei" instead of "const char *name" argument.
3379 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3380 dw2_symtab_iter_init.
3381
3382 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3383
3384 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3385 to use type::field and field::type instead.
3386
3387 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3388
3389 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3390 to use field::type instead.
3391
3392 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3393
3394 * gdbtypes.h (struct field) <type, set_type>: New methods.
3395 Rename `type` field to...
3396 <m_type>: ... this. Change references throughout to use type or
3397 set_type methods.
3398 (FIELD_TYPE): Use field::type. Change call sites that modify
3399 the field's type to use field::set_type instead.
3400
3401 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3402
3403 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3404 to use type::index_type instead.
3405
3406 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3407
3408 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3409 methods.
3410 (TYPE_INDEX_TYPE): Use type::index_type.
3411 * gdbtypes.c (create_array_type_with_stride): Likewise.
3412
3413 2020-06-07 Tom Tromey <tom@tromey.com>
3414
3415 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3416 parameter.
3417 (generic_value_print): Update.
3418
3419 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3420
3421 Revert commit 982a38f60b0.
3422 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3423
3424 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3425
3426 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3427 avoid use after free.
3428
3429 2020-06-05 Tom de Vries <tdevries@suse.de>
3430
3431 * NEWS: Fix typos.
3432
3433 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
3434
3435 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3436 the per_bfd object.
3437 (dwarf2_read_debug_names): Likewise.
3438 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3439 object when re-using a per_bfd object with an index.
3440
3441 2020-06-03 Tom de Vries <tdevries@suse.de>
3442
3443 PR symtab/26046
3444 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3445 children for C++.
3446 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3447 DW_TAG_subprogram.
3448
3449 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3450
3451 * ada-lang.c (ada_language_data): Delete skip_trampoline
3452 initializer.
3453 * c-lang.c (c_language_data): Likewise.
3454 (cplus_language_data): Likewise.
3455 (cplus_language::skip_trampoline): New member function.
3456 (asm_language_data): Delete skip_trampoline initializer.
3457 (minimal_language_data): Likewise.
3458 * d-lang.c (d_language_data): Likewise.
3459 * f-lang.c (f_language_data): Likewise.
3460 * go-lang.c (go_language_data): Likewise.
3461 * language.c (unk_lang_trampoline): Delete function.
3462 (skip_language_trampoline): Update.
3463 (unknown_language_data): Delete skip_trampoline initializer.
3464 (auto_language_data): Likewise.
3465 * language.h (language_data): Delete skip_trampoline field.
3466 (language_defn::skip_trampoline): New function.
3467 * m2-lang.c (m2_language_data): Delete skip_trampoline
3468 initializer.
3469 * objc-lang.c (objc_skip_trampoline): Delete function, move
3470 implementation to objc_language::skip_trampoline.
3471 (objc_language_data): Delete skip_trampoline initializer.
3472 (objc_language::skip_trampoline): New member function with
3473 implementation from objc_skip_trampoline.
3474 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3475 initializer.
3476 * p-lang.c (pascal_language_data): Likewise.
3477 * rust-lang.c (rust_language_data): Likewise.
3478
3479 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3480
3481 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3482 (ada_language::demangle): New member function.
3483 * c-lang.c (c_language_data): Delete la_demangle initializer.
3484 (cplus_language_data): Delete la_demangle initializer.
3485 (cplus_language::demangle): New member function.
3486 (asm_language_data): Delete la_demangle initializer.
3487 (minimal_language_data): Delete la_demangle initializer.
3488 * d-lang.c (d_language_data): Delete la_demangle initializer.
3489 (d_language::demangle): New member function.
3490 * f-lang.c (f_language_data): Delete la_demangle initializer.
3491 (f_language::demangle): New member function.
3492 * go-lang.c (go_language_data): Delete la_demangle initializer.
3493 (go_language::demangle): New member function.
3494 * language.c (language_demangle): Update.
3495 (unk_lang_demangle): Delete.
3496 (unknown_language_data): Delete la_demangle initializer.
3497 (unknown_language::demangle): New member function.
3498 (auto_language_data): Delete la_demangle initializer.
3499 (auto_language::demangle): New member function.
3500 * language.h (language_data): Delete la_demangle field.
3501 (language_defn::demangle): New function.
3502 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3503 * objc-lang.c (objc_language_data): Delete la_demangle
3504 initializer.
3505 (objc_language::demangle): New member function.
3506 * opencl-lang.c (opencl_language_data): Delete la_demangle
3507 initializer.
3508 * p-lang.c (pascal_language_data): Likewise.
3509 * rust-lang.c (rust_language_data): Likewise.
3510 (rust_language::demangle): New member function.
3511
3512 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3513
3514 * ada-lang.c (ada_language_data): Delete la_print_type
3515 initializer.
3516 (ada_language::print_type): New member function.
3517 * c-lang.c (c_language_data): Delete la_print_type initializer.
3518 (c_language::print_type): New member function.
3519 (cplus_language_data): Delete la_print_type initializer.
3520 (cplus_language::print_type): New member function.
3521 (asm_language_data): Delete la_print_type initializer.
3522 (asm_language::print_type): New member function.
3523 (minimal_language_data): Delete la_print_type initializer.
3524 (minimal_language::print_type): New member function.
3525 * d-lang.c (d_language_data): Delete la_print_type initializer.
3526 (d_language::print_type): New member function.
3527 * f-lang.c (f_language_data): Delete la_print_type initializer.
3528 (f_language::print_type): New member function.
3529 * go-lang.c (go_language_data): Delete la_print_type initializer.
3530 (go_language::print_type): New member function.
3531 * language.c (unk_lang_print_type): Delete.
3532 (unknown_language_data): Delete la_print_type initializer.
3533 (unknown_language::print_type): New member function.
3534 (auto_language_data): Delete la_print_type initializer.
3535 (auto_language::print_type): New member function.
3536 * language.h (language_data): Delete la_print_type field.
3537 (language_defn::print_type): New function.
3538 (LA_PRINT_TYPE): Update.
3539 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3540 (m2_language::print_type): New member function.
3541 * objc-lang.c (objc_language_data): Delete la_print_type
3542 initializer.
3543 (objc_language::print_type): New member function.
3544 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3545 to opencl_language::print_type.
3546 (opencl_language_data): Delete la_print_type initializer.
3547 (opencl_language::print_type): New member function, implementation
3548 from opencl_print_type.
3549 * p-lang.c (pascal_language_data): Delete la_print_type
3550 initializer.
3551 (pascal_language::print_type): New member function.
3552 * rust-lang.c (rust_print_type): Delete, implementation moved to
3553 rust_language::print_type.
3554 (rust_language_data): Delete la_print_type initializer.
3555 (rust_language::print_type): New member function, implementation
3556 from rust_print_type.
3557
3558 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3559
3560 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3561 implementation moves to...
3562 (ada_language::sniff_from_mangled_name): ...here. Update return
3563 type.
3564 (ada_language_data): Delete la_sniff_from_mangled_name
3565 initializer.
3566 * c-lang.c (c_language_data): Likewise.
3567 (cplus_language_data): Likewise.
3568 (cplus_language::sniff_from_mangled_name): New member function,
3569 implementation taken from gdb_sniff_from_mangled_name.
3570 (asm_language_data): Delete la_sniff_from_mangled_name
3571 initializer.
3572 (minimal_language_data): Likewise.
3573 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3574 implementation moves to cplus_language::sniff_from_mangled_name.
3575 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3576 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3577 moves to...
3578 (d_language::sniff_from_mangled_name): ...here.
3579 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3580 * f-lang.c (f_language_data): Likewise.
3581 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3582 moves to...
3583 (go_language::sniff_from_mangled_name): ...here.
3584 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3585 * language.c (language_sniff_from_mangled_name): Delete.
3586 (unknown_language_data): Delete la_sniff_from_mangled_name
3587 initializer.
3588 (auto_language_data): Likewise.
3589 * language.h (language_data): Delete la_sniff_from_mangled_name
3590 field.
3591 (language_defn::sniff_from_mangled_name): New function.
3592 (language_sniff_from_mangled_name): Delete declaration.
3593 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3594 field.
3595 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3596 implementation moves to...
3597 (objc_language::sniff_from_mangled_name): ...here.
3598 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3599 * opencl-lang.c (opencl_language_data): Likewise.
3600 * p-lang.c (pascal_language_data): Likewise.
3601 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3602 implementation moves to...
3603 (rust_language::sniff_from_mangled_name): ...here.
3604 (rust_language_data): Delete la_sniff_from_mangled_name
3605 initializer.
3606 * symtab.c (symbol_find_demangled_name): Call
3607 sniff_from_mangled_name member function.
3608
3609 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3610
3611 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3612 initializer.
3613 * c-lang.c (c_language_data): Likewise.
3614 (cplus_language_data): Likewise.
3615 (cplus_language::search_name_hash): New member function.
3616 (asm_language_data): Delete la_search_name_hash initializer.
3617 (minimal_language_data): Likewise.
3618 * d-lang.c (d_language_data): Likewise.
3619 * dictionary.c (default_search_name_hash): Rename to...
3620 (language_defn::search_name_hash): ...this.
3621 * f-lang.c (f_language_data): Likewise.
3622 (f_language::search_name_hash): New member function.
3623 * go-lang.c (go_language_data): Delete la_search_name_hash
3624 initializer.
3625 * language.c (unknown_language_data): Likewise.
3626 (auto_language_data): Likewise.
3627 * language.h (struct language_data): Delete la_search_name_hash
3628 field.
3629 (language_defn::search_name_hash): Declare new member function.
3630 (default_search_name_hash): Delete declaration.
3631 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3632 initializer.
3633 * objc-lang.c (objc_language_data): Likewise.
3634 * opencl-lang.c (opencl_language_data): Likewise.
3635 * p-lang.c (pascal_language_data): Likewise.
3636 * rust-lang.c (rust_language_data): Likewise.
3637 * symtab.c (search_name_hash): Update call.
3638
3639 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3640
3641 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3642 initializer.
3643 * c-lang.c (class compile_instance): Declare.
3644 (c_language_data): Delete la_get_compile_instance initializer.
3645 (c_language::get_compile_instance): New member function.
3646 (cplus_language_data): Delete la_get_compile_instance initializer.
3647 (cplus_language::get_compile_instance): New member function.
3648 (asm_language_data): Delete la_get_compile_instance initializer.
3649 (minimal_language_data): Likewise.
3650 * c-lang.h (c_get_compile_context): Update comment.
3651 (cplus_get_compile_context): Update comment.
3652 * compile/compile.c (compile_to_object): Update calls, don't rely
3653 on function pointer being NULL.
3654 * d-lang.c (d_language_data): Delete la_get_compile_instance
3655 initializer.
3656 * f-lang.c (f_language_data): Likewise.
3657 * go-lang.c (go_language_data): Likewise.
3658 * language.c (unknown_language_data): Likewise.
3659 (auto_language_data): Likewise.
3660 * language.h (language_data): Delete la_get_compile_instance field.
3661 (language_defn::get_compile_instance): New member function.
3662 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3663 initializer.
3664 * objc-lang.c (objc_language_data): Likewise.
3665 * opencl-lang.c (opencl_language_data): Likewise.
3666 * p-lang.c (pascal_language_data): Likewise.
3667 * rust-lang.c (rust_language_data): Likewise.
3668
3669 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3670
3671 * ada-lang.c (ada_add_all_symbols): Update comment.
3672 (ada_iterate_over_symbols): Delete, move implementation to...
3673 (ada_language::iterate_over_symbols): ...here, a new member
3674 function, rewrite to use range based for loop.
3675 (ada_language_data): Delete la_iterate_over_symbols initializer.
3676 * c-lang.c (c_language_data): Likewise.
3677 (cplus_language_data): Likewise.
3678 (asm_language_data): Likewise.
3679 (minimal_language_data): Likewise.
3680 * d-lang.c (d_language_data): Likewise.
3681 * f-lang.c (f_language_data): Likewise.
3682 * go-lang.c (go_language_data): Likewise.
3683 * language.c (unknown_language_data): Likewise.
3684 (auto_language_data): Likewise.
3685 * language.h (language_data): Delete la_iterate_over_symbols field.
3686 (language_defn::iterate_over_symbols): New member function.
3687 (LA_ITERATE_OVER_SYMBOLS): Update.
3688 * linespec.c (iterate_over_all_matching_symtabs): Update.
3689 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3690 initializer.
3691 * objc-lang.c (objc_language_data): Likewise.
3692 * opencl-lang.c (opencl_language_data): Likewise.
3693 * p-lang.c (pascal_language_data): Likewise.
3694 * rust-lang.c (rust_language_data): Likewise.
3695
3696 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3697
3698 * ada-lang.c (ada_language_data): Delete
3699 la_lookup_transparent_type initializer.
3700 * c-lang.c (c_language_data): Likewise.
3701 (cplus_language_data): Likewise.
3702 (cplus_language::lookup_transparent_type): New member function.
3703 (asm_language_data): Delete la_lookup_transparent_type
3704 initializer.
3705 (minimal_language_data): Likewise.
3706 * d-lang.c (d_language_data): Likewise.
3707 * f-lang.c (f_language_data): Likewise.
3708 * go-lang.c (go_language_data): Likewise.
3709 * language.c (unknown_language_data): Likewise.
3710 (auto_language_data): Likewise.
3711 * language.h (struct language_data): Delete
3712 la_lookup_transparent_type field.
3713 (language_defn::lookup_transparent_type): New member function.
3714 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3715 initializer.
3716 * objc-lang.c (objc_language_data): Likewise.
3717 * opencl-lang.c (opencl_language_data): Likewise.
3718 * p-lang.c (pascal_language_data): Likewise.
3719 * rust-lang.c (rust_language_data): Likewise.
3720 * symtab.c (symbol_matches_domain): Update call.
3721
3722 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3723
3724 * ada-lang.c (ada_language_arch_info): Delete function, move
3725 implementation to...
3726 (ada_language::language_arch_info): ...here, a new member
3727 function.
3728 (ada_language_data): Delete la_language_arch_info.
3729 * c-lang.c (c_language_data): Likewise.
3730 (c_language::language_arch_info): New member function.
3731 (cplus_language_arch_info): Delete function, move
3732 implementation to...
3733 (cplus_language::language_arch_info): ...here, a new member
3734 function.
3735 (cplus_language_data): Delete la_language_arch_info.
3736 (asm_language_data): Likewise.
3737 (asm_language::language_arch_info): New member function.
3738 (minimal_language_data): Delete la_language_arch_info.
3739 (minimal_language::language_arch_info): New member function.
3740 * d-lang.c (d_language_arch_info): Delete function, move
3741 implementation to...
3742 (d_language::language_arch_info): ...here, a new member
3743 function.
3744 (d_language_data): Delete la_language_arch_info.
3745 * f-lang.c (f_language_arch_info): Delete function, move
3746 implementation to...
3747 (f_language::language_arch_info): ...here, a new member
3748 function.
3749 (f_language_data): Delete la_language_arch_info.
3750 * go-lang.c (go_language_arch_info): Delete function, move
3751 implementation to...
3752 (go_language::language_arch_info): ...here, a new member
3753 function.
3754 (go_language_data): Delete la_language_arch_info.
3755 * language.c (unknown_language_data): Likewise.
3756 (unknown_language::language_arch_info): New member function.
3757 (auto_language_data): Delete la_language_arch_info.
3758 (auto_language::language_arch_info): New member function.
3759 (language_gdbarch_post_init): Update call to
3760 la_language_arch_info.
3761 * language.h (language_data): Delete la_language_arch_info
3762 function pointer.
3763 (language_defn::language_arch_info): New function.
3764 * m2-lang.c (m2_language_arch_info): Delete function, move
3765 implementation to...
3766 (m2_language::language_arch_info): ...here, a new member
3767 function.
3768 (m2_language_data): Delete la_language_arch_info.
3769 * objc-lang.c (objc_language_arch_info): Delete function, move
3770 implementation to...
3771 (objc_language::language_arch_info): ...here, a new member
3772 function.
3773 (objc_language_data): Delete la_language_arch_info.
3774 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3775 implementation to...
3776 (opencl_language::language_arch_info): ...here, a new member
3777 function.
3778 (opencl_language_data): Delete la_language_arch_info.
3779 * p-lang.c (pascal_language_arch_info): Delete function, move
3780 implementation to...
3781 (pascal_language::language_arch_info): ...here, a new member
3782 function.
3783 (pascal_language_data): Delete la_language_arch_info.
3784 * rust-lang.c (rust_language_arch_info): Delete function, move
3785 implementation to...
3786 (rust_language::language_arch_info): ...here, a new member
3787 function.
3788 (rust_language_data): Delete la_language_arch_info.
3789
3790 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3791
3792 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3793 initializer.
3794 * c-lang.c (c_language_data): Likewise.
3795 (cplus_language_data): Likewise.
3796 (cplus_language::pass_by_reference_info): New method.
3797 (asm_language_data): Delete la_pass_by_reference initializer.
3798 (minimal_language_data): Likewise.
3799 * cp-abi.c (cp_pass_by_reference): Remove use of
3800 default_pass_by_reference.
3801 * d-lang.c (d_language_data): Likewise.
3802 * f-lang.c (f_language_data): Likewise.
3803 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3804 default_pass_by_reference.
3805 * go-lang.c (go_language_data): Likewise.
3806 * language.c (language_pass_by_reference): Update.
3807 (default_pass_by_reference): Delete.
3808 (unknown_language_data): Delete la_pass_by_reference
3809 initializer.
3810 (auto_language_data): Likewise.
3811 * language.h (struct language_data): Delete la_pass_by_reference
3812 field.
3813 (language_defn::pass_by_reference_info): New member function.
3814 (default_pass_by_reference): Delete declaration.
3815 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3816 initializer.
3817 * objc-lang.c (objc_language_data): Likewise.
3818 * opencl-lang.c (opencl_language_data): Likewise.
3819 * p-lang.c (pascal_language_data): Likewise.
3820 * rust-lang.c (rust_language_data): Likewise.
3821
3822 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3823
3824 * ada-lang.c (ada_read_var_value): Delete function, move
3825 implementation to...
3826 (ada_language::read_var_value): ...here.
3827 (ada_language_data): Delete la_read_var_value initializer.
3828 * c-lang.c (c_language_data): Likewise.
3829 (cplus_language_data): Likewise.
3830 (minimal_language_data): Likewise.
3831 * d-lang.c (d_language_data): Likewise.
3832 * f-lang.c (f_language_data): Likewise.
3833 * findvar.c (default_read_var_value): Rename to...
3834 (language_defn::read_var_value): ...this.
3835 * findvar.c (read_var_value): Update header comment, and change to
3836 call member function instead of function pointer.
3837 * go-lang.c (go_language_data): Likewise.
3838 * language.c (unknown_language_data): Delete la_read_var_value
3839 initializer.
3840 (auto_language_data): Likewise.
3841 * language.h (struct language_data): Delete la_read_var_value
3842 field.
3843 (language_defn::read_var_value): New member function.
3844 (default_read_var_value): Delete declaration.
3845 * m2-lang.c (m2_language_data): Delete la_read_var_value
3846 initializer.
3847 * objc-lang.c (objc_language_data): Likewise.
3848 * opencl-lang.c (opencl_language_data): Likewise.
3849 * p-lang.c (pascal_language_data): Likewise.
3850 * rust-lang.c (rust_language_data): Likewise.
3851 * value.h (default_read_var_value): Delete declaration.
3852
3853 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3854
3855 * ada-lang.c (ada_print_array_index): Delete function, move
3856 implementation to...
3857 (ada_language::print_array_index): ...here.
3858 (ada_language_data): Delete la_print_array_index initializer.
3859 * c-lang.c (c_language_data): Likewise.
3860 (cplus_language_data): Likewise.
3861 (minimal_language_data): Likewise.
3862 * d-lang.c (d_language_data): Likewise.
3863 * f-lang.c (f_language_data): Likewise.
3864 * go-lang.c (go_language_data): Likewise.
3865 * language.c (default_print_array_index): Delete function, move
3866 implementation to...
3867 (language_defn::print_array_index): ...here.
3868 (unknown_language_data): Delete la_print_array_index initializer.
3869 (auto_language_data): Likewise.
3870 * language.h (struct language_data): Delete la_print_array_index
3871 field.
3872 (language_defn::print_array_index): New member function.
3873 (LA_PRINT_ARRAY_INDEX): Update.
3874 (default_print_array_index): Delete declaration.
3875 * m2-lang.c (m2_language_data): Delete la_print_array_index
3876 initializer.
3877 * objc-lang.c (objc_language_data): Likewise.
3878 * opencl-lang.c (opencl_language_data): Likewise.
3879 * p-lang.c (pascal_language_data): Likewise.
3880 * rust-lang.c (rust_language_data): Likewise.
3881
3882 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3883
3884 * gdb/ada-lang.c (ada_language_defn): Convert to...
3885 (ada_language_data): ...this.
3886 (class ada_language): New class.
3887 (ada_language_defn): New static global.
3888 * gdb/c-lang.c (c_language_defn): Convert to...
3889 (c_language_data): ...this.
3890 (class c_language): New class.
3891 (c_language_defn): New static global.
3892 (cplus_language_defn): Convert to...
3893 (cplus_language_data): ...this.
3894 (class cplus_language): New class.
3895 (cplus_language_defn): New static global.
3896 (asm_language_defn): Convert to...
3897 (asm_language_data): ...this.
3898 (class asm_language): New class.
3899 (asm_language_defn): New static global.
3900 (minimal_language_defn): Convert to...
3901 (minimal_language_data): ...this.
3902 (class minimal_language): New class.
3903 (minimal_language_defn): New static global.
3904 * gdb/d-lang.c (d_language_defn): Convert to...
3905 (d_language_data): ...this.
3906 (class d_language): New class.
3907 (d_language_defn): New static global.
3908 * gdb/f-lang.c (f_language_defn): Convert to...
3909 (f_language_data): ...this.
3910 (class f_language): New class.
3911 (f_language_defn): New static global.
3912 * gdb/go-lang.c (go_language_defn): Convert to...
3913 (go_language_data): ...this.
3914 (class go_language): New class.
3915 (go_language_defn): New static global.
3916 * gdb/language.c (unknown_language_defn): Remove declaration.
3917 (current_language): Initialize to nullptr, real initialization is
3918 moved to _initialize_language.
3919 (languages): Delete global.
3920 (language_defn::languages): Define.
3921 (set_language_command): Use language_defn::languages.
3922 (set_language): Likewise.
3923 (range_error): Likewise.
3924 (language_enum): Likewise.
3925 (language_def): Likewise.
3926 (add_set_language_command): Use language_def::languages for the
3927 language list, and language_def to lookup language pointers.
3928 (skip_language_trampoline): Use language_defn::languages.
3929 (unknown_language_defn): Convert to...
3930 (unknown_language_data): ...this.
3931 (class unknown_language): New class.
3932 (unknown_language_defn): New static global.
3933 (auto_language_defn): Convert to...
3934 (auto_language_data): ...this.
3935 (class auto_language): New class.
3936 (auto_language_defn): New static global.
3937 (language_gdbarch_post_init): Use language_defn::languages.
3938 (_initialize_language): Initialize current_language.
3939 * gdb/language.h (struct language_defn): Rename to...
3940 (struct language_data): ...this.
3941 (struct language_defn): New.
3942 (auto_language_defn): Delete.
3943 (unknown_language_defn): Delete.
3944 (minimal_language_defn): Delete.
3945 (ada_language_defn): Delete.
3946 (asm_language_defn): Delete.
3947 (c_language_defn): Delete.
3948 (cplus_language_defn): Delete.
3949 (d_language_defn): Delete.
3950 (f_language_defn): Delete.
3951 (go_language_defn): Delete.
3952 (m2_language_defn): Delete.
3953 (objc_language_defn): Delete.
3954 (opencl_language_defn): Delete.
3955 (pascal_language_defn): Delete.
3956 (rust_language_defn): Delete.
3957 * gdb/m2-lang.c (m2_language_defn): Convert to...
3958 (m2_language_data): ...this.
3959 (class m2_language): New class.
3960 (m2_language_defn): New static global.
3961 * gdb/objc-lang.c (objc_language_defn): Convert to...
3962 (objc_language_data): ...this.
3963 (class objc_language): New class.
3964 (objc_language_defn): New static global.
3965 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3966 (opencl_language_data): ...this.
3967 (class opencl_language): New class.
3968 (opencl_language_defn): New static global.
3969 * gdb/p-lang.c (pascal_language_defn): Convert to...
3970 (pascal_language_data): ...this.
3971 (class pascal_language): New class.
3972 (pascal_language_defn): New static global.
3973 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3974 language pointer, update comment format.
3975 * gdb/rust-lang.c (rust_language_defn): Convert to...
3976 (rust_language_data): ...this.
3977 (class rust_language): New class.
3978 (rust_language_defn): New static global.
3979
3980 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3981
3982 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3983 member variable.
3984 <m_stmt_at_address>: New member variable.
3985 (lnp_state_machine::record_line): Don't record some lines, update
3986 tracking of is_stmt at the same address.
3987 (lnp_state_machine::lnp_state_machine): Initialise new member
3988 variables.
3989
3990 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3991
3992 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3993 "-include gnu-nat-mig.h".
3994 * gnu-nat-mig.h: New file.
3995 * gnu-nat.c: Include "gnu-nat-mig.h".
3996 (exc_server, msg_reply_server, notify_server,
3997 process_reply_server): Remove declarations.
3998
3999 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4000
4001 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
4002 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
4003 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
4004 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
4005 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
4006 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
4007 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
4008 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
4009 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
4010 to gnu_nat_target class.
4011 * gnu-nat.c: Likewise.
4012 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
4013 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
4014 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
4015 object.
4016 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
4017 instead of `gnu_target'.
4018
4019 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4020
4021 * i386-gnu-tdep.c: Include "gdbcore.h"
4022 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
4023 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
4024 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
4025 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
4026 i386_gnu_sigcontext_addr): New functions
4027 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
4028 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
4029 tdep.
4030
4031 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4032
4033 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
4034 before fork_inferior call. Avoid calling it if target_is_pushed returns
4035 true.
4036
4037 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4038
4039 * gnu-nat.h (gnu_target): New variable declaration.
4040 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
4041 gnu_target.
4042 * gnu-nat.c (gnu_target): New variable.
4043 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
4044 add_thread_silent, and add_thread calls.
4045 (gnu_nat_target::create_inferior): Pass gnu_target to
4046 add_thread_silent, thread_change_ptid call.
4047 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
4048 call.
4049
4050 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4051
4052 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
4053 (gnu_nat_target::find_memory_regions): Remove unused
4054 `old_address' variable.
4055
4056 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4057
4058 * gnu-nat.c: Include "gdbarch.h".
4059
4060 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4061
4062 * reply_mig_hack.awk (Error return): Cast function through
4063 void *, to bypass compiler function call check.
4064
4065 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4066
4067 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
4068 $(srcdir)/reply_mig_hack.awk.
4069
4070 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4071
4072 * gnu-nat.h (gnu_debug_flag): Set type to bool.
4073
4074 2020-05-30 Jonny Grant <jg@jguk.org>
4075
4076 * configure.ac (ACX_BUGURL): change bug URL to https.
4077
4078 2020-05-30 Pedro Alves <palves@redhat.com>
4079
4080 * cp-support.c (replace_typedefs_template): New.
4081 (replace_typedefs_qualified_name): Handle
4082 DEMANGLE_COMPONENT_TEMPLATE.
4083
4084 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
4085
4086 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
4087 dwarf2/index-cache.h, dwarf2/index-write.c,
4088 dwarf2/index-write.h, dwarf2/line-header.c,
4089 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
4090 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
4091 variables and fields from `dwarf2_per_objfile` to just
4092 `per_objfile` throughout.
4093
4094 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
4095
4096 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4097 <push_dwarf_reg_entry_value>: Add comment.
4098
4099 2020-05-28 Kevin Buettner <kevinb@redhat.com>
4100 Keith Seitz <keiths@redhat.com>
4101
4102 * python/python.c (do_start_initialization): Call PyEval_SaveThread
4103 instead of PyEval_ReleaseLock.
4104 (class gdbpy_gil): Move to earlier in file.
4105 (finalize_python): Set gdb_python_initialized.
4106 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
4107 when not initialized.
4108
4109 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
4110
4111 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4112 <push_dwarf_reg_entry_value>: Remove assert. Override
4113 per_objfile with caller_per_objfile.
4114
4115 2020-05-28 Tom de Vries <tdevries@suse.de>
4116
4117 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
4118 PR gold/15646 workaround to symbol kind "type".
4119
4120 2020-05-27 Tom Tromey <tromey@adacore.com>
4121
4122 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
4123
4124 2020-05-27 Tom Tromey <tromey@adacore.com>
4125
4126 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
4127 Use htab_find_with_hash.
4128 <add_abbrev>: Remove "abbrev_number" parameter.
4129 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
4130 "abbrev_number" parameter. Use htab_find_slot_with_hash.
4131 (hash_abbrev): Add comment.
4132 (abbrev_table::lookup_abbrev): Move to header file.
4133 (abbrev_table::read): Update.
4134
4135 2020-05-27 Tom Tromey <tromey@adacore.com>
4136
4137 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
4138 method.
4139 <canonical_name>: New member.
4140 <raw_name>: Rename from "name".
4141 (partial_die_info): Initialize canonical_name.
4142 (scan_partial_symbols): Check raw_name.
4143 (partial_die_parent_scope, partial_die_full_name)
4144 (add_partial_symbol, add_partial_subprogram)
4145 (add_partial_enumeration, load_partial_dies): Use "name" method.
4146 (partial_die_info::name): New method.
4147 (partial_die_info::read, guess_partial_die_structure_name)
4148 (partial_die_info::fixup): Update.
4149
4150 2020-05-27 Tom Tromey <tromey@adacore.com>
4151
4152 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
4153 <get_ref_die_offset>: Inline.
4154 <get_ref_die_offset_complaint>: New method.
4155 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
4156 (attribute::get_ref_die_offset_complaint): Rename from
4157 get_ref_die_offset. Just issue complaint.
4158
4159 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4160
4161 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
4162
4163 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4164
4165 * exec.c (exec_file_attach): Use errno value of first openp failure.
4166
4167 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4168
4169 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
4170 Don't close thread handle.
4171
4172 2020-05-27 Tom Tromey <tom@tromey.com>
4173 Simon Marchi <simon.marchi@efficios.com>
4174
4175 * objfiles.h (struct objfile) <partial_symtabs>: Now a
4176 shared_ptr.
4177 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
4178 member.
4179 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
4180 dwarf2_per_bfd_objfile_data_key>: New globals.
4181 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
4182 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
4183 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
4184 shared.
4185 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
4186 short-circuit when sharing.
4187 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
4188 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
4189
4190 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4191
4192 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
4193 to...
4194 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
4195 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
4196
4197 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4198
4199 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
4200 build_name_components, find_name_components_bounds>:
4201 Add per_objfile parameter.
4202 (struct mapped_index) <symbol_name_at>: Likewise.
4203 (struct mapped_debug_names): Remove constructor.
4204 <dwarf2_per_objfile>: Remove field.
4205 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
4206 (mapped_index_base::find_name_components_bounds,
4207 mapped_index_base::build_name_components,
4208 dw2_expand_symtabs_matching_symbol): Likewise.
4209 (class mock_mapped_index) <symbol_name_at>: Likewise.
4210 (check_match): Likewise.
4211 (check_find_bounds_finds): Likewise.
4212 (test_mapped_index_find_name_component_bounds): Update.
4213 (CHECK_MATCH): Update.
4214 (dw2_expand_symtabs_matching): Update.
4215 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
4216 per_objfile parameter.
4217 <find_vec_in_debug_names>: Likewise.
4218 <m_per_objfile>: New field.
4219 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
4220 parameter.
4221 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
4222 (dw2_debug_names_iterator::next): Update.
4223 (dw2_debug_names_lookup_symbol): Update.
4224 (dw2_debug_names_expand_symtabs_for_function): Update.
4225 (dw2_debug_names_map_matching_symbols): Update.
4226 (dw2_debug_names_expand_symtabs_matching): Update.
4227 (dwarf2_read_debug_names): Update.
4228
4229 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4230
4231 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
4232 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
4233 move to dwarf2_per_objfile.
4234 <read_in_chain>: Remove.
4235 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
4236 remove_all_cus, age_comp_units>: New methods.
4237 <m_dwarf2_cus>: New member.
4238 (struct dwarf2_per_cu_data) <cu>: Remove.
4239 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
4240 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
4241 moved to methods of dwarf2_per_objfile.
4242 (dwarf2_clear_marks): Remove.
4243 (dwarf2_queue_item::~dwarf2_queue_item): Update.
4244 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
4245 (dwarf2_per_bfd::free_cached_comp_units): Remove.
4246 (dwarf2_per_objfile::remove_all_cus): New.
4247 (class free_cached_comp_units) <~free_cached_comp_units>:
4248 Update.
4249 (load_cu): Update.
4250 (dw2_do_instantiate_symtab): Adjust.
4251 (fill_in_sig_entry_from_dwo_entry): Adjust.
4252 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4253 (cutu_reader::cutu_reader): Likewise.
4254 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
4255 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
4256 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
4257 and dwarf2_per_objfile::age_comp_units.
4258 (load_partial_comp_unit): Update.
4259 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
4260 (process_queue): Likewise.
4261 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
4262 backlink.
4263 (dwarf2_read_addr_index): Likewise.
4264 (follow_die_offset): Likewise.
4265 (dwarf2_fetch_die_loc_sect_off): Likewise.
4266 (dwarf2_fetch_constant_bytes): Likewise.
4267 (dwarf2_fetch_die_type_sect_off): Likewise.
4268 (follow_die_sig_1): Likewise.
4269 (load_full_type_unit): Likewise.
4270 (read_signatured_type): Likewise.
4271 (dwarf2_cu::dwarf2_cu): Don't set cu field.
4272 (dwarf2_cu::~dwarf2_cu): Remove.
4273 (dwarf2_per_objfile::get_cu): New.
4274 (dwarf2_per_objfile::set_cu): New.
4275 (age_cached_comp_units): Rename to...
4276 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
4277 to std::unordered_map.
4278 (free_one_cached_comp_unit): Rename to...
4279 (dwarf2_per_objfile::remove_cu): ... this. Adjust
4280 to std::unordered_map.
4281 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
4282 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
4283 a dwarf2_per_objfile in data.
4284 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
4285 (dwarf2_clear_marks): Remove.
4286
4287 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4288
4289 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
4290 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
4291 (init_tu_and_read_dwo_dies): Likewise.
4292 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
4293 (cutu_reader::cutu_reader): Likewise.
4294 (load_partial_comp_unit): Likewise.
4295 (process_psymtab_comp_unit): Update.
4296 (build_type_psymtabs_1): Update.
4297 (process_skeletonless_type_unit): Update.
4298 (load_full_comp_unit): Update.
4299 (find_partial_die): Update.
4300 (dwarf2_read_addr_index): Update.
4301 (read_signatured_type): Update.
4302
4303 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4304
4305 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
4306 m_header_read_in>: New fields.
4307 <get_header>: New method.
4308 * dwarf2/read.c (per_cu_header_read_in): Remove.
4309 (dwarf2_per_cu_data::get_header): New.
4310 (dwarf2_per_cu_data::addr_size): Update.
4311 (dwarf2_per_cu_data::offset_size): Update.
4312 (dwarf2_per_cu_data::ref_addr_size): Update.
4313
4314 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4315
4316 * dwarf2/read.c (load_cu): Return dwarf2_cu.
4317 (dw2_do_instantiate_symtab): Update.
4318 (queue_and_load_all_dwo_tus): Change parameter from
4319 dwarf2_per_cu_data to dwarf2_cu.
4320 (dwarf2_fetch_die_loc_sect_off): Update.
4321 (dwarf2_fetch_constant_bytes): Update.
4322 (dwarf2_fetch_die_type_sect_off): Update.
4323
4324 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4325
4326 * dwarf2/read.c (process_full_comp_unit,
4327 process_full_type_unit): Remove per_cu, per_objfile paramters.
4328 Add dwarf2_cu parameter.
4329 (process_queue): Update.
4330
4331 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4332
4333 * dwarf2/read.c (create_cu_from_index_list): Replace
4334 dwarf2_per_objfile parameter with dwarf2_per_bfd.
4335 (create_cus_from_index_list): Likewise.
4336 (create_cus_from_index): Likewise.
4337 (create_signatured_type_table_from_index): Likewise.
4338 (create_cus_from_debug_names_list): Likewise.
4339 (create_cus_from_debug_names): Likewise.
4340 (dwarf2_read_gdb_index): Update.
4341 (dwarf2_read_debug_names): Update.
4342
4343 2020-05-27 Tom Tromey <tom@tromey.com>
4344 Simon Marchi <simon.marchi@efficios.com>
4345
4346 * dwarf2/read.h (struct dwarf2_per_objfile)
4347 <get_type_for_signatured_type, set_type_for_signatured_type>:
4348 New methods.
4349 <m_type_map>: New member.
4350 (struct signatured_type) <type>: Remove.
4351 * dwarf2/read.c
4352 (dwarf2_per_objfile::get_type_for_signatured_type,
4353 dwarf2_per_objfile::set_type_for_signatured_type): New.
4354 (get_signatured_type): Use new methods.
4355
4356 2020-05-27 Tom Tromey <tom@tromey.com>
4357 Simon Marchi <simon.marchi@efficios.com>
4358
4359 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4360 (struct dwarf2_per_objfile) <type_units>: New member.
4361 <get_type_unit_group_unshareable>: New method.
4362 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4363 num_symtabs, symtabs>: Remove; move to
4364 type_unit_group_unshareable.
4365 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4366 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4367 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4368
4369 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4370
4371 * dwarf2/read.h (struct dwarf2_per_cu_data):
4372 <dwarf2_per_objfile>: Remove.
4373 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4374 dwarf2_per_objfile.
4375 (create_signatured_type_table_from_index): Likewise.
4376 (create_signatured_type_table_from_debug_names): Likewise.
4377 (create_debug_type_hash_table): Likewise.
4378 (fill_in_sig_entry_from_dwo_entry): Likewise.
4379 (create_type_unit_group): Likewise.
4380 (read_comp_units_from_section): Likewise.
4381 (create_cus_hash_table): Likewise.
4382
4383 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4384
4385 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4386 dwarf2_per_cu_data::dwarf2_per_objfile.
4387 (compute_compunit_symtab_includes): Likewise.
4388 (dwarf2_cu::start_symtab): Likewise.
4389
4390 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4391
4392 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4393 parameter.
4394 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4395 (read_namespace_alias): Update.
4396 (lookup_die_type): Update.
4397 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4398 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4399 Update.
4400 (disassemble_dwarf_expression): Update.
4401
4402 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4403
4404 * dwarf2/read.h (struct dwarf2_queue_item): Add
4405 dwarf2_per_objfile parameter, assign new parameter.
4406 <per_objfile>: New field.
4407 * dwarf2/read.c (free_one_cached_comp_unit): Add
4408 dwarf2_per_objfile parameter.
4409 (queue_comp_unit): Likewise.
4410 (dw2_do_instantiate_symtab): Update.
4411 (process_psymtab_comp_unit): Update.
4412 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4413 (process_imported_unit_die): Update.
4414 (queue_and_load_dwo_tu): Update.
4415 (follow_die_offset): Update.
4416 (follow_die_sig_1): Update.
4417
4418 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4419
4420 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4421 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4422 (read_call_site_scope): Assign per_objfile.
4423 (dwarf2_per_cu_data::objfile): Remove.
4424 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4425 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4426 dwarf2_per_objfile parameter.
4427 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4428 dwarf2_per_objfile parameter.
4429 (dwarf_expr_reg_to_entry_parameter): Add output
4430 dwarf2_per_objfile parameter.
4431 (locexpr_get_frame_base): Update.
4432 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4433 <push_dwarf_reg_entry_value>: Update.
4434 <call_site_to_target_addr>: Update.
4435 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4436 parameter.
4437 (value_of_dwarf_reg_entry): Update.
4438 (rw_pieced_value): Update.
4439 (indirect_synthetic_pointer): Update.
4440 (dwarf2_evaluate_property): Update.
4441 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4442 parameter.
4443 (locexpr_read_variable): Update.
4444 (locexpr_get_symbol_read_needs): Update.
4445 (loclist_read_variable): Update.
4446
4447 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4448
4449 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4450 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4451 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4452 parameter.
4453 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4454 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4455 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4456 parameter.
4457 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4458 sect_variable_value): Add dwarf2_per_objfile parameter.
4459 (class dwarf_evaluate_loc_desc) <dwarf_call,
4460 dwarf_variable_value>: Update.
4461 (fetch_const_value_from_synthetic_pointer): Add
4462 dwarf2_per_objfile parameter.
4463 (fetch_const_value_from_synthetic_pointer): Update.
4464 (coerced_pieced_ref): Update.
4465 (class symbol_needs_eval_context) <dwarf_call,
4466 dwarf_variable_value>: Update.
4467 (dwarf2_compile_expr_to_ax): Update.
4468
4469 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4470
4471 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4472 parameter.
4473 (dwarf2_evaluate_loc_desc_full): Update.
4474
4475 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4476
4477 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4478 parameter.
4479 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4480 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4481 dwarf2_per_objfile parameter.
4482 (decode_debug_loc_dwo_addresses): Likewise.
4483 (dwarf2_find_location_expression): Update.
4484 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4485 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4486 parameter.
4487 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4488 parameter.
4489 (locexpr_describe_location_1): Likewise.
4490 (locexpr_describe_location): Update.
4491
4492 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4493
4494 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4495 Remove.
4496 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4497 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4498 (dwarf2_compile_property_to_c): Update.
4499 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4500 use text offset from objfile.
4501 (locexpr_tracepoint_var_ref): Update.
4502 (locexpr_generate_c_location): Update.
4503 (loclist_describe_location): Update.
4504 (loclist_tracepoint_var_ref): Update.
4505 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4506 dwarf2_per_objfile parameter.
4507 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4508 use text offset from objfile.
4509 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4510
4511 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4512
4513 * dwarf2/expr.h (struct dwarf_expr_context)
4514 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4515 <offset>: Remove.
4516 <per_objfile>: New member.
4517 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4518 dwarf2_per_objfile parameter. Don't set offset, set
4519 per_objfile.
4520 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4521 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4522 a dwarf2_per_objfile object instead of an offset.
4523 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4524 constructor.
4525 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4526 to dwarf2_expr_executor constructor. Don't set offset.
4527 (dwarf2_fetch_cfa_info): Update.
4528 (struct dwarf2_frame_cache) <text_offset>: Remove.
4529 <per_objfile>: New field.
4530 (dwarf2_frame_cache): Update.
4531 (dwarf2_frame_prev_register): Update.
4532 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4533 <dwarf_evaluate_loc_desc>: Add constructor.
4534 (dwarf2_evaluate_loc_desc_full): Update.
4535 (dwarf2_locexpr_baton_eval): Update.
4536 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4537 Add constructor.
4538 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4539
4540 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4541
4542 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4543 addr_sized_int_type>: Move to dwarf2_cu.
4544 <int_type>: Move to dwarf2_per_objfile.
4545 (struct dwarf2_per_objfile) <int_type>: Move here.
4546 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4547 addr_sized_int_type>: Move here.
4548 (read_func_scope): Update.
4549 (read_array_type): Update.
4550 (read_tag_string_type): Update.
4551 (attr_to_dynamic_prop): Update.
4552 (dwarf2_per_cu_data::int_type): Rename to...
4553 (dwarf2_per_objfile::int_type): ... this.
4554 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4555 (dwarf2_cu::addr_sized_int_type): ... this.
4556 (read_subrange_type): Update.
4557 (dwarf2_per_cu_data::addr_type): Rename to...
4558 (dwarf2_cu::addr_type): ... this.
4559 (set_die_type): Update.
4560
4561 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4562
4563 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4564 data through per_cu->cu.
4565
4566 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4567
4568 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4569 dwarf2_per_cu_data parameter fo dwarf2_cu.
4570 (lookup_dwo_type_unit): Likewise.
4571 (read_cutu_die_from_dwo): Likewise.
4572 (lookup_dwo_unit): Likewise.
4573 (open_and_init_dwo_file): Likewise.
4574 (lookup_dwo_cutu): Likewise.
4575 (lookup_dwo_comp_unit): Likewise.
4576 (lookup_dwo_type_unit): Likewise.
4577 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4578 (cutu_reader::cutu_reader): Update.
4579
4580 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4581
4582 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4583 parameter.
4584 (process_full_type_unit): Likewise.
4585 (process_queue): Update.
4586
4587 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4588
4589 * dwarf2/read.c (recursively_compute_inclusions): Add
4590 dwarf2_per_objfile parameter.
4591 (compute_compunit_symtab_includes): Likewise.
4592 (process_cu_includes): Update.
4593
4594 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4595
4596 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4597 parameter.
4598 (create_type_unit_group): Update.
4599 (process_psymtab_comp_unit_reader): Update.
4600 (build_type_psymtabs_reader): Update.
4601
4602 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4603
4604 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4605 object through m_this_cu->cu.
4606
4607 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4608
4609 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4610 the info parameter.
4611 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4612
4613 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4614
4615 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4616 per_objfile parameter.
4617 (load_full_type_unit): Add per_objfile parameter.
4618 (read_signatured_type): Likewise.
4619 (load_full_comp_unit): Likewise.
4620 (load_cu): Likewise.
4621 (dw2_do_instantiate_symtab): Likewise.
4622 (dw2_get_file_names): Likewise.
4623 (dw2_map_symtabs_matching_filename): Update.
4624 (dw_expand_symtabs_matching_file_matcher): Update.
4625 (dw2_map_symbol_filenames): Update.
4626 (process_psymtab_comp_unit): Add per_objfile parameter.
4627 (build_type_psymtabs_1): Update.
4628 (process_skeletonless_type_unit): Update.
4629 (dwarf2_build_psymtabs_hard): Update.
4630 (load_partial_comp_unit): Add per_objfile parameter.
4631 (scan_partial_symbols): Update.
4632 (load_full_comp_unit): Add per_objfile parameter.
4633 (process_imported_unit_die): Update.
4634 (create_cus_hash_table): Update.
4635 (find_partial_die): Update.
4636 (dwarf2_read_addr_index): Update.
4637 (follow_die_offset): Update.
4638 (dwarf2_fetch_die_loc_sect_off): Update.
4639 (dwarf2_fetch_constant_bytes): Update.
4640 (dwarf2_fetch_die_type_sect_off): Update.
4641 (follow_die_sig_1): Update.
4642 (load_full_type_unit): Add per_objfile parameter.
4643 (read_signatured_type): Likewise.
4644
4645 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4646
4647 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4648 of objfile_name.
4649
4650 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4651
4652 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4653 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4654 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4655 field.
4656 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4657 (create_cus_from_index): Update.
4658 (dwarf2_read_gdb_index): Update.
4659 (create_cus_from_debug_names): Update.
4660 (dwarf2_read_debug_names): Update.
4661 (get_abbrev_section_for_cu): Update.
4662 (create_all_comp_units): Update.
4663 (read_attribute_value): Update.
4664 (get_debug_line_section): Update.
4665 * dwarf2/index-cache.c (index_cache::store): Update.
4666 * dwarf2/index-write.c (save_gdb_index_command): Update.
4667 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4668
4669 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4670
4671 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4672 member.
4673 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4674 dwarf2_per_cu_data::per_bfd.
4675 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4676 (create_type_unit_group): Likewise.
4677 (queue_comp_unit): Remove reference to
4678 per_cu->dwarf2_per_objfile.
4679 (maybe_queue_comp_unit): Likewise.
4680 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4681 (create_cus_hash_table): Assign new field.
4682
4683 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4684
4685 * dwarf2/read.c: Replace
4686 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4687 dwarf2_cu->per_objfile throughout.
4688
4689 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4690
4691 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4692 parameter, don't use per_cu->dwarf2_per_objfile.
4693 (dw2_instantiate_symtab): Likewise.
4694 (dw2_find_last_source_symtab): Update.
4695 (dw2_map_expand_apply): Update.
4696 (dw2_lookup_symbol): Update.
4697 (dw2_expand_symtabs_for_function): Update.
4698 (dw2_expand_all_symtabs): Update.
4699 (dw2_expand_symtabs_with_fullname): Update.
4700 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4701 don't use per_cu->dwarf2_per_objfile.
4702 (dw2_expand_marked_cus): Update.
4703 (dw2_find_pc_sect_compunit_symtab): Update.
4704 (dw2_debug_names_lookup_symbol): Update.
4705 (dw2_debug_names_expand_symtabs_for_function): Update.
4706 (dw2_debug_names_map_matching_symbols): Update.
4707 (dwarf2_psymtab::expand_psymtab): Update.
4708
4709 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4710
4711 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4712 <per_objfile>: New member.
4713 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4714 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4715 call to dwarf2_cu.
4716 (cutu_reader::cutu_reader): Update.
4717 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4718
4719 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4720
4721 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4722 struct dwarf2_per_objfile.
4723 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4724 dwarf2_per_bfd.
4725 * dwarf2/read.c (set_die_type): Update.
4726 (get_die_type_at_offset): Update.
4727
4728 2020-05-27 Tom Tromey <tom@tromey.com>
4729 Simon Marchi <simon.marchi@efficios.com>
4730
4731 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4732 method.
4733 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4734 get_symtab, set_symtab>: New methods.
4735 <m_symtabs>: New field.
4736 (struct dwarf2_psymtab): Derive from partial_symtab.
4737 <readin_p, get_compunit_symtab>: Declare methods.
4738 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4739 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4740 New methods.
4741 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4742 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4743 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4744 (dw2_symtab_iter_next, dw2_print_stats)
4745 (dw2_expand_symtabs_with_fullname)
4746 (dw2_expand_symtabs_matching_one)
4747 (dw_expand_symtabs_matching_file_matcher)
4748 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4749 (dw2_debug_names_iterator::next)
4750 (dw2_debug_names_map_matching_symbols)
4751 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4752 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4753 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4754 New methods.
4755 (get_compunit_symtab, process_full_comp_unit)
4756 (process_full_type_unit): Update.
4757 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4758
4759 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4760
4761 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4762 then introduce a new dwarf2_per_objfile type.
4763 <read_line_string>: Move to the new dwarf2_per_objfile type.
4764 <objfile>: Likewise.
4765 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4766 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4767 dwarf2_per_objfile->per_bfd.
4768 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4769 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4770 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4771 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4772 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4773 (dwarf2_per_objfile::locate_sections): Rename to...
4774 (dwarf2_per_bfd::locate_sections): ... this.
4775 (dwarf2_per_objfile::get_cutu): Rename to...
4776 (dwarf2_per_bfd::get_cutu): ... this.
4777 (dwarf2_per_objfile::get_cu): Rename to...
4778 (dwarf2_per_bfd::get_cu): ... this.
4779 (dwarf2_per_objfile::get_tu): Rename to...
4780 (dwarf2_per_bfd::get_tu): ... this.
4781 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4782 (dwarf2_per_bfd::allocate_per_cu): ... this.
4783 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4784 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4785 (get_gdb_index_contents_ftype): Change parameter from
4786 dwarf2_per_objfile to dwarf2_per_bfd.
4787 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4788 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4789
4790 2020-05-27 Tom Tromey <tom@tromey.com>
4791 Simon Marchi <simon.marchi@efficios.com>
4792
4793 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4794 (allocate_piece_closure): Set "per_objfile" member.
4795 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4796 (locexpr_describe_location, loclist_describe_location): Use new
4797 member.
4798 * dwarf2/read.c (read_call_site_scope)
4799 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4800 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4801 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4802 handle_data_member_location): Set per_objfile member.
4803 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4804 member.
4805 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4806
4807 2020-05-27 Tom Tromey <tom@tromey.com>
4808
4809 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4810 allocate_signatured_type>: Declare new methods.
4811 <m_num_psymtabs>: New member.
4812 (struct dwarf2_per_cu_data) <index>: New member.
4813 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4814 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4815 (create_cu_from_index_list): Use allocate_per_cu.
4816 (create_signatured_type_table_from_index)
4817 (create_signatured_type_table_from_debug_names)
4818 (create_debug_type_hash_table, add_type_unit)
4819 (read_comp_units_from_section): Use allocate_signatured_type.
4820
4821 2020-05-27 Tom Tromey <tom@tromey.com>
4822
4823 * psymtab.c (partial_map_expand_apply)
4824 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4825 (psym_lookup_global_symbol_language)
4826 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4827 (psym_print_stats, psym_expand_symtabs_for_function)
4828 (psym_map_symbol_filenames, psym_map_matching_symbols)
4829 (psym_expand_symtabs_matching)
4830 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4831 (maintenance_check_psymtabs): Update.
4832 * psympriv.h (struct partial_symtab) <readin_p,
4833 get_compunit_symtab>: Add objfile parameter.
4834 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4835 Likewise.
4836 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4837 get_compunit_symtab>: Likewise.
4838 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4839
4840 2020-05-27 Tom Tromey <tom@tromey.com>
4841
4842 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4843 member.
4844 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4845 (create_cu_from_index_list)
4846 (create_signatured_type_table_from_index)
4847 (create_signatured_type_table_from_debug_names)
4848 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4849 (dwarf2_create_include_psymtab)
4850 (create_debug_type_hash_table, add_type_unit)
4851 (create_type_unit_group, read_comp_units_from_section)
4852 (dwarf2_compute_name, create_cus_hash_table)
4853 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4854 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4855 obstack.
4856 (dw2_get_real_path): Likewise. Change argument to
4857 dwarf2_per_objfile.
4858
4859 2020-05-27 Luis Machado <luis.machado@linaro.org>
4860
4861 PR tdep/26000
4862 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4863 for ldrd (immediate).
4864
4865 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4866
4867 * command.h: Add comment giving the name of class_tui.
4868 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4869 create the fake command for the help for class_tui.
4870
4871 2020-05-26 Tom Tromey <tromey@adacore.com>
4872
4873 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4874 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4875 (val_atr): New function.
4876 (value_val_atr): Use it.
4877 * ada-valprint.c (print_optional_low_bound): Change low bound
4878 handling for enums.
4879 (val_print_packed_array_elements): Don't call discrete_position.
4880 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4881 discrete_position for enum types.
4882 * language.c (default_print_array_index): Change type.
4883 * language.h (struct language_defn) <la_print_array_index>: Add
4884 index_type parameter, change type of index_value.
4885 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4886 (default_print_array_index): Update.
4887 * valprint.c (maybe_print_array_index): Don't call
4888 value_from_longest. Update.
4889 (value_print_array_elements): Don't call discrete_position.
4890
4891 2020-05-26 Tom Tromey <tromey@adacore.com>
4892
4893 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4894 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4895
4896 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4897
4898 PR gdb/13519
4899 * avr-tdep.c (avr_integer_to_address): Return data or code
4900 address accordingly to the second 'type' argument of the
4901 function.
4902
4903 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4904
4905 * infcmd.c, inferior.h: (construct_inferior_arguments):
4906 Moved function from here to gdbsupport/common-inferior.{h,cc}
4907
4908 2020-05-23 Tom Tromey <tom@tromey.com>
4909
4910 Revert commit eca1f90c:
4911 * NEWS: Remove entry for completion styling.
4912 * completer.c (_rl_completion_prefix_display_length): Move
4913 declaration later.
4914 (gdb_fnprint): Revert.
4915 (gdb_display_match_list_1): Likewise.
4916 * cli/cli-style.c (completion_prefix_style)
4917 (completion_difference_style, completion_suffix_style): Remove.
4918 (_initialize_cli_style): Revert.
4919 * cli/cli-style.h (completion_prefix_style)
4920 (completion_difference_style, completion_suffix_style): Don't
4921 declare.
4922
4923 2020-05-24 Pedro Alves <palves@redhat.com>
4924
4925 * symtab.c (completion_list_add_name): Return boolean indication
4926 of whether the symbol matched.
4927 (completion_list_add_symbol): Don't try to remove C++ aliases if
4928 the symbol didn't match in the first place.
4929 * symtab.h (completion_list_add_name): Return bool.
4930
4931 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4932
4933 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4934 type::field.
4935
4936 2020-05-23 Joel Brobecker <brobecker@adacore.com>
4937
4938 GDB 9.2 released.
4939
4940 2020-05-23 Tom Tromey <tom@tromey.com>
4941
4942 * NEWS: Add entry for completion styling.
4943 * completer.c (_rl_completion_prefix_display_length): Move
4944 declaration earlier.
4945 (gdb_fnprint): Use completion_style.
4946 (gdb_display_match_list_1): Likewise.
4947 * cli/cli-style.c (completion_prefix_style)
4948 (completion_difference_style, completion_suffix_style): New
4949 globals.
4950 (_initialize_cli_style): Register new globals.
4951 * cli/cli-style.h (completion_prefix_style)
4952 (completion_difference_style, completion_suffix_style): Declare.
4953
4954 2020-05-23 Pedro Alves <palves@redhat.com>
4955
4956 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4957 (parse_escape): Use ISDIGIT instead of isdigit.
4958 (puts_debug): Use gdb_isprint instead of isprint.
4959 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4960 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4961 ISSPACE instead of isspace.
4962 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4963 instead of isspace.
4964 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4965 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4966 instead of isxdigit and ISDIGIT instead of isdigit.
4967
4968 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4969
4970 * gdbtypes.h (struct type) <field>: New method.
4971 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4972 or type::field.
4973
4974 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4975
4976 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4977 (TYPE_FIELDS): Use type::fields. Change all call sites that
4978 modify the propery to use type::set_fields instead.
4979
4980 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4981
4982 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4983 type::num_fields instead.
4984
4985 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4986
4987 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4988 methods.
4989 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4990 that modify the number of fields to use type::set_num_fields
4991 instead.
4992
4993 2020-05-22 Tom Tromey <tromey@adacore.com>
4994
4995 * compile/compile-object-load.h (munmap_list_free): Don't
4996 declare.
4997
4998 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4999
5000 * annotate.c (annotate_source_line): Update return type, add call
5001 to update current symtab and line.
5002 * annotate.h (annotate_source_line): Update return type, and
5003 extend header comment.
5004 * source.c (info_line_command): Check annotation_level before
5005 calling annotate_source_line.
5006 * stack.c (print_frame_info): If calling annotate_source_line
5007 returns true, then don't print any other source line information.
5008
5009 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
5010
5011 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
5012
5013 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
5014
5015 * coffread.c (patch_type): Remove NULL check before xfree.
5016 * corefile.c (set_gnutarget): Likewise.
5017 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
5018 * exec.c (build_section_table): Likewise.
5019 * remote.c (remote_target::pass_signals): Likewise.
5020 * utils.c (n_spaces): Likewise.
5021 * cli/cli-script.c (document_command): Likewise.
5022 * i386-windows-tdep.c (core_process_module_section): Likewise.
5023 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
5024
5025 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
5026
5027 * symfile.c (reread_symbols): Clear objfile's section_offsets
5028 vector and section indices, re-compute them by calling
5029 sym_offsets.
5030
5031 2020-05-20 Tom Tromey <tromey@adacore.com>
5032
5033 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
5034 (desc_one_bound, desc_index_type): Compute field name.
5035
5036 2020-05-20 Tom de Vries <tdevries@suse.de>
5037
5038 PR symtab/25833
5039 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
5040
5041 2020-05-20 Alan Modra <amodra@gmail.com>
5042
5043 PR 25993
5044 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
5045 bfd_set_filename.
5046 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
5047 passed to bfd_set_filename.
5048 * symfile-mem.c (add_vsyscall_page): Likewise for string
5049 passed to symbol_file_add_from_memory.
5050 (symbol_file_add_from_memory): Make name param a const char* and
5051 don't strdup.
5052
5053 2020-05-20 Alan Modra <amodra@gmail.com>
5054
5055 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
5056 rather than accessing bfd->filename directly.
5057 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
5058 and use bfd_section_name.
5059 * dwarf2/frame.c (decode_frame_entry): Likewise.
5060 * exec.c (exec_set_section_address): Likewise.
5061 * solib-aix.c (solib_aix_bfd_open): Likewise.
5062 * stap-probe.c (get_stap_base_address): Likewise.
5063 * symfile.c (reread_symbols): Likewise.
5064
5065 2020-05-19 Tom Tromey <tromey@adacore.com>
5066
5067 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
5068
5069 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5070
5071 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
5072
5073 2020-05-19 Pedro Alves <palves@redhat.com>
5074
5075 * NEWS (set exec-file-mismatch): Adjust entry.
5076 * exec.c: Include "build-id.h".
5077 (validate_exec_file): Try to match build IDs instead of filenames.
5078 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
5079 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
5080 and pass down 'warn_if_slow'.
5081 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
5082 gdb_bfd_open_closure to pass it down.
5083 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
5084
5085 2020-05-19 Pedro Alves <palves@redhat.com>
5086
5087 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
5088 * target.c (target_fileio_open_1): Rename to target_fileio_open
5089 and make extern. Use bool.
5090 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
5091 (target_fileio_read_alloc_1): Adjust.
5092 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
5093 (target_fileio_open_warn_if_slow): Delete declaration.
5094
5095 2020-05-19 Pedro Alves <palves@redhat.com>
5096
5097 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
5098 Adjust all callers.
5099
5100 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
5101
5102 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
5103 whether disp is negative.
5104
5105 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5106
5107 * symfile.h (struct symfile_segment_data)
5108 <~symfile_segment_data>: Remove.
5109 <segment_info>: Change to std::vector.
5110 * symfile.c (default_symfile_segments): Update.
5111 * elfread.c (elf_symfile_segments): Update.
5112
5113 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5114
5115 * symfile.h (struct symfile_segment_data) <struct segment>: New.
5116 <segments>: New.
5117 <segment_bases, segment_sizes>: Remove.
5118 * symfile.c (default_symfile_segments): Update.
5119 * elfread.c (elf_symfile_segments): Update.
5120 * remote.c (remote_target::get_offsets): Update.
5121 * solib-target.c (solib_target_relocate_section_addresses):
5122 Update.
5123
5124 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5125
5126 * symfile.h (struct symfile_segment_data): Initialize fields.
5127 <~symfile_segment_data>: Add.
5128 (symfile_segment_data_up): New.
5129 (struct sym_fns) <sym_segments>: Return a
5130 symfile_segment_data_up.
5131 (default_symfile_segments): Return a symfile_segment_data_up.
5132 (free_symfile_segment_data): Remove.
5133 (get_symfile_segment_data): Return a symfile_segment_data_up.
5134 * symfile.c (default_symfile_segments): Likewise.
5135 (get_symfile_segment_data): Likewise.
5136 (free_symfile_segment_data): Remove.
5137 (symfile_find_segment_sections): Update.
5138 * elfread.c (elf_symfile_segments): Return a
5139 symfile_segment_data_up.
5140 * remote.c (remote_target::get_offsets): Update.
5141 * solib-target.c (solib_target_relocate_section_addresses):
5142 Update.
5143 * symfile-debug.c (debug_sym_segments): Return a
5144 symfile_segment_data_up.
5145
5146 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5147
5148 PR build/25981
5149 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
5150 Hardcode register numbers.
5151
5152 PR build/25981
5153 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
5154 procfs_find_LDT_entry): Remove.
5155 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
5156 procfs_find_LDT_entry): Remove.
5157 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
5158 Remove.
5159
5160 2020-05-17 Pedro Alves <palves@redhat.com>
5161 Andrew Burgess <andrew.burgess@embecosm.com>
5162 Keno Fischer <keno@juliacomputing.com>
5163
5164 PR gdb/25741
5165 * breakpoint.c (build_target_condition_list): Update comments.
5166 (build_target_command_list): Update comments and skip matching
5167 locations.
5168 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
5169 a separate function. Simplify "set breakpoint auto-hw off"
5170 handling.
5171 (insert_breakpoints): Update comment.
5172 (tracepoint_locations_match): New parameter. For breakpoints,
5173 compare location types too, if the caller wants to.
5174 (handle_automatic_hardware_breakpoints): New functions.
5175 (bp_location_is_less_than): Also sort by location type and
5176 hardware breakpoint length.
5177 (update_global_location_list): Handle "set breakpoint auto-hw on"
5178 here.
5179 (update_breakpoint_locations): Ask breakpoint_locations_match to
5180 ignore location types.
5181
5182 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5183
5184 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
5185 type::name instead.
5186
5187 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5188
5189 * gdbtypes.h (struct type) <name, set_name>: New methods.
5190 (TYPE_CODE): Use type::name. Change all call sites used to set
5191 the name to use type::set_name instead.
5192
5193 2020-05-16 Tom Tromey <tom@tromey.com>
5194
5195 * top.c (quit_force): Update.
5196 * infrun.c (handle_no_resumed): Update.
5197 * top.h (all_uis): New function.
5198 (ALL_UIS): Remove.
5199
5200 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5201
5202 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
5203
5204 2020-05-16 Pedro Alves <palves@redhat.com>
5205
5206 * ia64-linux-nat.c
5207 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
5208 Declare method.
5209 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
5210
5211 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
5212
5213 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
5214 (sparc64_adi_info): Likewise.
5215
5216 2020-05-15 Tom Tromey <tom@tromey.com>
5217
5218 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
5219 block_objfile.
5220 (lookup_objfile_from_block): Remove.
5221 (lookup_symbol_in_block, lookup_symbol_in_static_block)
5222 (lookup_global_symbol): Use block_objfile.
5223 * symtab.h (lookup_objfile_from_block): Don't declare.
5224 * printcmd.c (clear_dangling_display_expressions): Use
5225 block_objfile.
5226 * parse.c (operator_check_standard): Use block_objfile.
5227
5228 2020-05-15 Tom Tromey <tom@tromey.com>
5229
5230 * language.c (language_alloc_type_symbol): Set
5231 SYMBOL_SECTION.
5232 * symtab.c (initialize_objfile_symbol): Remove.
5233 (allocate_symbol): Remove.
5234 (allocate_template_symbol): Remove.
5235 * dwarf2/read.c (fixup_go_packaging): Use "new".
5236 (new_symbol): Use "new".
5237 (read_variable): Don't call initialize_objfile_symbol. Use
5238 "new".
5239 (read_func_scope): Use "new".
5240 * xcoffread.c (process_xcoff_symbol): Don't call
5241 initialize_objfile_symbol.
5242 (SYMBOL_DUP): Remove.
5243 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
5244 "new".
5245 * symtab.h (allocate_symbol, initialize_objfile_symbol)
5246 (allocate_template_symbol): Don't declare.
5247 (struct symbol): Add copy constructor. Change defaults.
5248 * jit.c (finalize_symtab): Use "new".
5249 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
5250 Use "new".
5251 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5252 (common_block_end): Use "new".
5253 * mdebugread.c (parse_symbol): Use "new".
5254 (new_symbol): Likewise.
5255
5256 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5257
5258 * NEWS: Mention changes to help and apropos.
5259
5260 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5261
5262 * command.h (enum command_class): Improve comments, document
5263 that class_alias is for user-defined aliases, give the class
5264 name for each class, remove unused class_xdb.
5265 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
5266 * breakpoint.c (_initialize_breakpoint): Replace class_alias
5267 by a precise class.
5268 * infcmd.c (_initialize_infcmd): Likewise.
5269 * reverse.c (_initialize_reverse): Likewise.
5270 * stack.c (_initialize_stack): Likewise.
5271 * symfile.c (_initialize_symfile): Likewise.
5272 * tracepoint.c (_initialize_tracepoint): Likewise.
5273
5274 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5275
5276 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
5277 when their aliased command is traversed.
5278 (help_cmd): Add fput_command_names_styled call to
5279 output command name and aliases when command has an alias.
5280
5281 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5282
5283 * cli/cli-decode.h (help_cmd_list): Remove declaration.
5284 * cli/cli-decode.c (help_cmd_list): Declare as static,
5285 remove prefix argument, use bool for recurse arg, rework to show the aliases of
5286 a command together with the command.
5287 (fput_command_name_styled, fput_command_names_styled): New functions.
5288 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
5289 fput_command_name_styled.
5290 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
5291 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
5292
5293 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5294
5295 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
5296 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
5297 * command.h (cmd_show_list): Likewise.
5298 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
5299 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
5300
5301 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5302
5303 * unittests/command-def-selftests.c (traverse_command_structure):
5304 Verify all commands of a list have the same prefix command and
5305 that only the top cmdlist commands have a null prefix.
5306
5307 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5308
5309 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
5310 as prefix, not one of its aliases.
5311 (set_cmd_prefix): Remove.
5312 (do_add_cmd): Centralize the setting of the prefix of a command, when
5313 command is defined after its full chain of prefix commands.
5314 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
5315 (add_setshow_cmd_full): Likewise.
5316 (update_prefix_field_of_prefixed_commands): New function.
5317 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
5318 update_prefix_field_of_prefixed_commands.
5319 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
5320 addresses of remote_set_cmdlist and remote_show_cmdlist given
5321 as argument, not the address of an argument.
5322 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5323 * gdb/remote.c (_initialize_remote): Likewise.
5324
5325 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5326
5327 * cli/cli-cmds.c (alias_command): Check for an existing alias
5328 using lookup_cmd_composition, as valid_command_p is too strict
5329 and forbids aliases that are the prefix of an existing alias
5330 or command.
5331 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5332 command is properly recognised as a valid command.
5333
5334 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5335
5336 * unittests/help-doc-selftests.c: Rename to
5337 unittests/command-def-selftests.c
5338 * unittests/command-def-selftests.c (help_doc_tests): Update some
5339 comments.
5340 (command_structure_tests, traverse_command_structure): New namespace
5341 and function.
5342 (command_structure_invariants_tests): New function.
5343 (_initialize_command_def_selftests) Renamed from
5344 _initialize_help_doc_selftests, register command_structure_invariants
5345 selftest.
5346
5347 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5348
5349 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5350 an alias of 'show'.
5351
5352 2020-05-15 Joel Brobecker <brobecker@adacore.com>
5353
5354 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5355 ada_is_fixed_point_type. Update all callers.
5356 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5357 all callers.
5358 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5359 Update all callers.
5360 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5361 print_fixed_point_type. Update all callers.
5362 * ada-valprint.c (ada_value_print_num): Replace call to
5363 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5364
5365 2020-05-14 Kevin Buettner <kevinb@redhat.com>
5366
5367 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5368 processors.
5369 (cpu_supports_bts): Add CV_AMD case.
5370
5371 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5372 Simon Marchi <simon.marchi@efficios.com>
5373
5374 * infrun.c (stop_all_threads): Collect multiple wait events at
5375 each pass.
5376
5377 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5378
5379 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5380 type::code instead.
5381
5382 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5383
5384 * gdbtypes.h (struct type) <code, set_code>: New methods.
5385 (TYPE_CODE): Use type::code. Change all call sites used to set
5386 the code to use type::set_code instead.
5387
5388 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5389 Tom de Vries <tdevries@suse.de>
5390 Pedro Alves <palves@redhat.com>
5391
5392 PR threads/25478
5393 * infrun.c (stop_all_threads): Do NOT ignore
5394 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5395 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5396 received.
5397 (handle_no_resumed): Remove code handling a live inferior with no
5398 threads.
5399 * remote.c (has_single_non_exited_thread): New.
5400 (remote_target::update_thread_list): Do not delete a thread if is
5401 the last thread of the process.
5402 * thread.c (thread_select): Call delete_exited_threads instead of
5403 prune_threads.
5404
5405 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5406
5407 * infrun.c (stop_all_threads): Enable/disable thread events of all
5408 targets. Move a debug message denoting the end of the function
5409 into the SCOPED_EXIT block.
5410
5411 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5412
5413 * process-stratum-target.h: Include <set>.
5414 (all_non_exited_process_targets, switch_to_target_no_thread): New
5415 function declarations.
5416 * process-stratum-target.c (all_non_exited_process_targets)
5417 (switch_to_target_no_thread): New function implementations.
5418
5419 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5420
5421 * infrun.c (handle_inferior_event): Extract out a piece of code
5422 into...
5423 (mark_non_executing_threads): ...this new function.
5424
5425 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5426
5427 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5428 use.
5429
5430 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5431
5432 * regcache.c (regcache_read_pc_protected): New function
5433 implementation that returns 0 if the PC cannot read via
5434 'regcache_read_pc'.
5435 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5436 instead of 'regcache_read_pc'.
5437 (keep_going_pass_signal): Ditto.
5438
5439 2020-05-13 Tom Tromey <tromey@adacore.com>
5440
5441 * ada-lang.c (align_value): Remove.
5442 (ada_template_to_fixed_record_type_1): Use align_up.
5443
5444 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5445
5446 * async-event.c: Update the copyright year.
5447 * async-event.h: Update the copyright year.
5448
5449 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
5450
5451 * objfiles.h (is_addr_in_objfile,
5452 shared_objfile_contains_address_p): Return bool.
5453 * objfile.c (is_addr_in_objfile,
5454 shared_objfile_contains_address_p): Return bool.
5455
5456 2020-05-11 Tom Tromey <tromey@adacore.com>
5457
5458 * cli/cli-cmds.c (info_command): Restore.
5459 (_initialize_cli_cmds): Use add_prefix_command for "info".
5460 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5461
5462 2020-05-11 Tom Tromey <tromey@adacore.com>
5463
5464 * ada-lang.c (ada_value_primitive_field): Now public.
5465 * ada-lang.h (ada_value_primitive_field): Declare.
5466 * ada-valprint.c (print_field_values): Use
5467 ada_value_primitive_field for wrapper fields.
5468
5469 2020-05-11 Tom de Vries <tdevries@suse.de>
5470
5471 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5472 MODULE_DOMAIN.
5473
5474 2020-05-11 Tom de Vries <tdevries@suse.de>
5475
5476 PR symtab/25941
5477 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5478 with length 0, if not gdb-produced.
5479 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5480
5481 2020-05-09 Tom de Vries <tdevries@suse.de>
5482
5483 PR gdb/25955
5484 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5485 calculation.
5486
5487 2020-05-09 Tom Tromey <tom@tromey.com>
5488
5489 * top.c (server_command): Now bool.
5490 * top.h (server_command): Now bool.
5491
5492 2020-05-08 Tom Tromey <tromey@adacore.com>
5493
5494 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5495 already being processed.
5496
5497 2020-05-08 Tom Tromey <tom@tromey.com>
5498
5499 * printcmd.c (struct display) <next>: Remove.
5500 <display>: New constructor.
5501 <exp_string>: Now a std::string.
5502 <enabled_p>: Now a bool.
5503 (display_number): Move definition earlier.
5504 (displays): Rename from display_chain. Now a std::vector.
5505 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5506 (display_command): Update.
5507 (do_one_display, disable_display)
5508 (enable_disable_display_command, do_enable_disable_display):
5509 Update.
5510 (free_display): Remove.
5511 (clear_displays): Rewrite.
5512 (delete_display): Update.
5513 (map_display_numbers): Use function_view. Remove "data"
5514 parameter. Update.
5515 (do_delete_display): Remove.
5516 (undisplay_command): Update.
5517 (do_one_display, do_displays, disable_display)
5518 (info_display_command): Update.
5519 (do_enable_disable_display): Remove.
5520 (enable_disable_display_command)
5521 (clear_dangling_display_expressions): Update.
5522
5523 2020-05-08 Tom Tromey <tom@tromey.com>
5524
5525 * symtab.c (set_symbol_cache_size)
5526 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5527 (maintenance_print_symbol_cache_statistics): Update.
5528 * symmisc.c (print_symbol_bcache_statistics)
5529 (print_objfile_statistics, maintenance_print_objfiles)
5530 (maintenance_info_symtabs, maintenance_check_symtabs)
5531 (maintenance_expand_symtabs, maintenance_info_line_tables):
5532 Update.
5533 * symfile-debug.c (set_debug_symfile): Update.
5534 * source.c (forget_cached_source_info): Update.
5535 * python/python.c (gdbpy_progspaces): Update.
5536 * psymtab.c (maintenance_info_psymtabs): Update.
5537 * probe.c (parse_probes): Update.
5538 * linespec.c (iterate_over_all_matching_symtabs)
5539 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5540 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5541 * exec.c (exec_target::close): Update.
5542 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5543 * breakpoint.c (print_one_breakpoint_location)
5544 (create_longjmp_master_breakpoint)
5545 (create_std_terminate_master_breakpoint): Update.
5546 * progspace.c (program_spaces): Now a std::vector.
5547 (maybe_new_address_space): Update.
5548 (add_program_space): Remove.
5549 (program_space::program_space): Update.
5550 (remove_program_space): Update.
5551 (number_of_program_spaces): Remove.
5552 (print_program_space, update_address_spaces): Update.
5553 * progspace.h (program_spaces): Change type.
5554 (ALL_PSPACES): Remove.
5555 (number_of_program_spaces): Don't declare.
5556 (struct program_space) <next>: Remove.
5557
5558 2020-05-08 Tom Tromey <tom@tromey.com>
5559
5560 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5561 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5562 (enable_break): Update.
5563 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5564 (frv_fdpic_find_canonical_descriptor): Update.
5565 (frv_fetch_objfile_link_map): Update.
5566 * progspace.c (program_space::free_all_objfiles): Update.
5567 (program_space::solibs): New method.
5568 * progspace.h (struct program_space) <solibs>: New method.
5569 * solist.h (master_so_list): Don't declare.
5570 (ALL_SO_LIBS): Remove.
5571 * solib.h (so_list_head): Remove.
5572 (update_solib_list): Update comment.
5573 * solib.c (master_so_list): Remove.
5574 (solib_used, update_solib_list, solib_add)
5575 (info_sharedlibrary_command, clear_solib)
5576 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5577
5578 2020-05-08 Tom Tromey <tom@tromey.com>
5579
5580 * extension.c (extension_languages): Now a std::array.
5581 (ALL_EXTENSION_LANGUAGES): Remove.
5582 (get_ext_lang_defn, get_ext_lang_of_file)
5583 (eval_ext_lang_from_control_command): Update.
5584 (finish_ext_lang_initialization)
5585 (auto_load_ext_lang_scripts_for_objfile)
5586 (ext_lang_type_printers::ext_lang_type_printers)
5587 (apply_ext_lang_type_printers)
5588 (ext_lang_type_printers::~ext_lang_type_printers)
5589 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5590 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5591 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5592 (get_matching_xmethod_workers, ext_lang_colorize)
5593 (ext_lang_before_prompt): Update.
5594 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5595
5596 2020-05-08 Tom Tromey <tom@tromey.com>
5597
5598 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5599 overload.
5600 <swap_string, m_string>: Remove.
5601 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5602 Update.
5603 * stabsread.c (define_symbol, read_type): Update.
5604 * linespec.c (find_linespec_symbols): Update.
5605 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5606 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5607 * dbxread.c (read_dbx_symtab): Update.
5608 * cp-support.h (cp_canonicalize_string_full)
5609 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5610 Return unique_xmalloc_ptr.
5611 * cp-support.c (inspect_type): Update.
5612 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5613 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5614 Likewise.
5615 * c-typeprint.c (print_name_maybe_canonical): Update.
5616 * break-catch-throw.c (check_status_exception_catchpoint):
5617 Update.
5618
5619 2020-05-08 Tom de Vries <tdevries@suse.de>
5620
5621 * infrun.c (follow_fork): Copy current_line and current_symtab to
5622 child thread.
5623
5624 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5625
5626 * async-event.c (struct async_signal_handler, struct
5627 async_event_handler): Reformat, remove typedef.
5628
5629 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5630
5631 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5632 access thistype->main_type->dyn_prop_list directly.
5633
5634 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5635
5636 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5637 (remove_dyn_prop): Remove. Update all users to use
5638 type::remove_dyn_prop.
5639 * gdbtypes.c (remove_dyn_prop): Rename to...
5640 (type::remove_dyn_prop): ... this.
5641
5642 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5643
5644 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5645 (add_dyn_prop): Remove. Update all users to use
5646 type::add_dyn_prop.
5647 * gdbtypes.c (add_dyn_prop): Rename to...
5648 (type::add_dyn_prop): ... this.
5649
5650 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5651
5652 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5653 (get_dyn_prop): Remove. Update all users to use
5654 type::dyn_prop.
5655 * gdbtypes.c (get_dyn_prop): Rename to...
5656 (type::dyn_prop): ... this.
5657
5658 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5659
5660 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5661
5662 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5663
5664 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5665 instruction, skip it if it's there.
5666
5667 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
5668
5669 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5670
5671 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
5672
5673 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5674 * gdbtypes.c (recursive_dump_type): Remove use of
5675 TYPE_INCOMPLETE.
5676
5677 2020-05-03 Tom Tromey <tom@tromey.com>
5678
5679 * breakpoint.c (catch_command, tcatch_command): Remove.
5680 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5681 add_show_prefix_cmd.
5682 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5683 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5684 Remove.
5685 (add_internal_problem_command): Use add_basic_prefix_cmd,
5686 add_show_prefix_cmd.
5687 * mips-tdep.c (set_mipsfpu_command): Remove.
5688 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5689 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5690 (_initialize_index_cache): Use add_basic_prefix_cmd.
5691 * memattr.c (dummy_cmd): Remove.
5692 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5693 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5694 (_initialize_tui_win): Use add_basic_prefix_cmd,
5695 add_show_prefix_cmd.
5696 * cli/cli-logging.c (set_logging_command): Remove.
5697 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5698 add_show_prefix_cmd.
5699 (show_logging_command): Remove.
5700 * target.c (target_command): Remove.
5701 (add_target): Use add_basic_prefix_cmd.
5702
5703 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
5704
5705 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5706
5707 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5708
5709 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5710 info_command.
5711
5712 2020-04-30 Kamil Rytarowski <n54@gmx.com>
5713
5714 * nbsd-nat.c (nbsd_enable_proc_events)
5715 (nbsd_nat_target::post_startup_inferior): Add.
5716 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5717 (nbsd_nat_target::update_thread_list): Rewrite.
5718 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5719 "PTRACE_LWP_CREATE".
5720 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5721
5722 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5723
5724 * stack.c (_initialize_stack): Remove duplicated creation
5725 of "frame" command and "f" alias.
5726
5727 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5728
5729 PR gdb/18706
5730 * gdbtypes.c (check_typedef): Calculate size of array of
5731 stubbed type.
5732
5733 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5734
5735 PR gdb/15559
5736 * i386-tdep.c (i386_push_dummy_call): Call
5737 i386_thiscall_push_dummy_call.
5738 (i386_thiscall_push_dummy_call): New function.
5739 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5740 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5741 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5742
5743 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5744
5745 * gdbarch.sh (do_read): Add shellcheck disable directive for
5746 warning SC2162.
5747
5748 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5749
5750 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5751 "referenced but not assigned" warning.
5752
5753 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5754
5755 * gdbarch.sh: Remove code that sets fallbackdefault.
5756
5757 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5758
5759 * gdbarch.sh: Use shell operators && and || instead of
5760 -a and -o.
5761
5762 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5763
5764 * gdbarch.sh: Use $(...) instead of `...`.
5765
5766 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5767
5768 * gdbarch.sh: Use double quotes around variables.
5769
5770 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5771
5772 * gdbarch.sh: Use %s with printf, instead of variables in the
5773 format string.
5774
5775 2020-04-29 Tom Tromey <tromey@adacore.com>
5776
5777 PR ada/25875:
5778 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5779 type fields here.
5780 (read_enumeration_type): Call
5781 update_enumeration_type_from_children later. Update comments.
5782 (process_enumeration_scope): Don't create type fields.
5783
5784 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5785
5786 * nbsd-tdep.c: Include "xml-syscall.h".
5787 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5788
5789 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5790
5791 * nbsd-nat.c: Include "sys/wait.h".
5792 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5793 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5794 (nbsd_nat_target::remove_exec_catchpoint)
5795 (nbsd_nat_target::set_syscall_catchpoint): Add.
5796 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5797 (nbsd_nat_target::insert_exec_catchpoint)
5798 (nbsd_nat_target::remove_exec_catchpoint)
5799 (nbsd_nat_target::set_syscall_catchpoint): Add.
5800 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5801 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5802 `nbsd_get_syscall_number'.
5803
5804 2020-04-29 Tom Tromey <tom@tromey.com>
5805
5806 * stack.c (print_block_frame_labels): Remove.
5807
5808 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
5809
5810 PR gdb/17320
5811 * ada-valprint.c (val_print_packed_array_elements): Move array
5812 end bracket to new line.
5813 (ada_val_print_string): Remove extra spaces before first array
5814 element.
5815 * c-valprint.c (c_value_print_array): Likewise.
5816 * m2-valprint.c (m2_print_array_contents): Likewise.
5817 (m2_value_print_inner): Likewise.
5818 * p-valprint.c (pascal_value_print_inner): Likewise.
5819 * valprint.c (generic_val_print_array): Likewise.
5820 (value_print_array_elements): Move first array element and array
5821 end bracket to new line.
5822
5823 2020-04-29 Tom de Vries <tdevries@suse.de>
5824
5825 PR symtab/25889
5826 * linespec.c (find_method): Fix ix calculation.
5827
5828 2020-04-28 Kamil Rytarowski <n54@gmx.com>
5829
5830 * syscalls/update-netbsd.sh: New file.
5831 * syscalls/netbsd.xml: Regenerate.
5832 * data-directory/Makefile.in: Register `netbsd.xml' in
5833 `SYSCALLS_FILES'.
5834
5835 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5836
5837 * syscalls/update-freebsd.sh: Add double quotes.
5838
5839 2020-04-28 Tom Tromey <tom@tromey.com>
5840
5841 * NEWS: Update.
5842 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5843 (cmdpy_init): Allow class_tui.
5844
5845 2020-04-28 Mark Williams <mark@myosotissp.com>
5846
5847 PR gdb/24480
5848 * dwarf2read.c: Add missing assingments to list_in_scope when
5849 start_symtab was already called.
5850
5851 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5852
5853 PR gdb/25881
5854 * dwarf2/read.c (offset_map_type): Use
5855 gdb:hash_enum<sect_offset> as hash function.
5856
5857 2020-04-28 Tom de Vries <tdevries@suse.de>
5858
5859 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5860 with DW_AT_signature.
5861
5862 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
5863
5864 * configure.ac: Remove check for fs_base/gs_base in
5865 user_regs_struct.
5866 * configure: Re-generate.
5867 * config.in: Re-generate.
5868 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5869 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5870 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5871
5872 2020-04-27 Luis Machado <luis.machado@linaro.org>
5873
5874 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5875 problematic inline frame unwinding situation.
5876 * frame.c (frame_id_computed_p): New function.
5877 * frame.h (frame_id_computed_p): New prototype.
5878
5879 2020-04-26 Tom Tromey <tom@tromey.com>
5880
5881 * command.h (enum command_class) <class_pseudo>: Remove.
5882
5883 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5884
5885 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5886 and whitespace.
5887
5888 2020-04-25 Kamil Rytarowski <n54@gmx.com>
5889
5890 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5891 `PT_GET_PROCESS_STATE' block.
5892
5893 2020-04-24 Tom Tromey <tom@tromey.com>
5894
5895 * symtab.h (symbol_get_demangled_name): Don't declare.
5896 * symtab.c (symbol_get_demangled_name): Remove.
5897 (general_symbol_info::natural_name)
5898 (general_symbol_info::demangled_name): Update.
5899
5900 2020-04-24 Tom Tromey <tom@tromey.com>
5901
5902 PR rust/25025:
5903 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5904
5905 2020-04-24 Tom Tromey <tom@tromey.com>
5906
5907 PR symtab/12707:
5908 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5909 exists.
5910 (new_symbol): Likewise.
5911 * compile/compile-object-load.c (get_out_value_type): Use
5912 symbol_matches_search_name.
5913
5914 2020-04-24 Tom Tromey <tom@tromey.com>
5915
5916 * dwarf2/read.c (add_partial_symbol): Do not call
5917 compute_and_set_names.
5918
5919 2020-04-24 Tom Tromey <tom@tromey.com>
5920
5921 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5922 overload.
5923
5924 2020-04-24 Tom Tromey <tom@tromey.com>
5925
5926 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5927 (add_psymbol_to_list): New overload. Make old overload call new
5928 one.
5929 * psympriv.h (add_psymbol_to_list): New overload.
5930
5931 2020-04-24 Tom Tromey <tom@tromey.com>
5932
5933 * dwarf2/read.c (partial_die_info::read) <case
5934 DW_AT_linkage_name>: Use value_as_string.
5935 (dwarf2_string_attr): Use value_as_string.
5936 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5937 method.
5938 * dwarf2/attribute.c (attribute::value_as_string): New method.
5939
5940 2020-04-24 Tom Tromey <tom@tromey.com>
5941
5942 * symtab.c (general_symbol_info::natural_name)
5943 (general_symbol_info::demangled_name): Check for language_rust.
5944
5945 2020-04-24 Tom Tromey <tom@tromey.com>
5946
5947 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5948 (dwarf2_physname): ... from here.
5949 (partial_die_info::read): Add Rust "{" hack.
5950
5951 2020-04-24 Tom Tromey <tom@tromey.com>
5952
5953 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5954 method.
5955 (symbol_set_demangled_name): Don't declare.
5956 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5957 symbol_set_demangled_name.
5958 (general_symbol_info::set_language)
5959 (general_symbol_info::compute_and_set_names): Update.
5960 * minsyms.c (minimal_symbol_reader::install): Update.
5961 * dwarf2/read.c (new_symbol): Update.
5962
5963 2020-04-24 Tom Tromey <tromey@adacore.com>
5964
5965 PR python/23662:
5966 * python/py-type.c (convert_field): Handle
5967 FIELD_LOC_KIND_DWARF_BLOCK.
5968 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5969 (typy_get_dynamic): Nw function.
5970 (type_object_getset): Add "dynamic".
5971 * NEWS: Add entry.
5972
5973 2020-04-24 Tom Tromey <tromey@adacore.com>
5974
5975 * ada-typeprint.c (print_choices, print_variant_part)
5976 (print_record_field_types_dynamic): New functions.
5977 (print_record_field_types): Use print_record_field_types_dynamic.
5978
5979 2020-04-24 Tom Tromey <tromey@adacore.com>
5980
5981 * dwarf2/read.c (handle_data_member_location): New overload.
5982 (dwarf2_add_field): Use it.
5983 (decode_locdesc): Add "computed" parameter. Update comment.
5984 * gdbtypes.c (is_dynamic_type_internal): Also look for
5985 FIELD_LOC_KIND_DWARF_BLOCK.
5986 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5987 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5988 virtual base classes.
5989 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5990 FIELD_LOC_KIND_DWARF_BLOCK.
5991
5992 2020-04-24 Tom Tromey <tromey@adacore.com>
5993
5994 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5995 * gdbtypes.c (is_dynamic_type_internal): Check
5996 TYPE_HAS_DYNAMIC_LENGTH.
5997 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5998 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5999 New macros.
6000 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
6001 constant.
6002
6003 2020-04-24 Tom Tromey <tromey@adacore.com>
6004
6005 * dwarf2/read.c (struct variant_field): Rewrite.
6006 (struct variant_part_builder): New.
6007 (struct nextfield): Remove "variant" field. Add "offset".
6008 (struct field_info): Add "current_variant_part" and
6009 "variant_parts".
6010 (alloc_discriminant_info): Remove.
6011 (alloc_rust_variant): New function.
6012 (quirk_rust_enum): Update.
6013 (dwarf2_add_field): Set "offset" member. Don't handle
6014 DW_TAG_variant_part.
6015 (offset_map_type): New typedef.
6016 (convert_variant_range, create_one_variant)
6017 (create_one_variant_part, create_variant_parts)
6018 (add_variant_property): New functions.
6019 (dwarf2_attach_fields_to_type): Call add_variant_property.
6020 (read_structure_type): Don't handle DW_TAG_variant_part.
6021 (handle_variant_part, handle_variant): New functions.
6022 (handle_struct_member_die): Use them.
6023 (process_structure_scope): Don't handle variant parts.
6024 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
6025 (struct discriminant_info): Remove.
6026 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
6027 (struct main_type) <flag_discriminated_union>: Remove.
6028 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
6029 (rust_enum_variant): Return int. Remove "contents". Rewrite.
6030 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
6031 Update.
6032 * valops.c (value_union_variant): Remove.
6033 * value.h (value_union_variant): Don't declare.
6034
6035 2020-04-24 Tom Tromey <tromey@adacore.com>
6036
6037 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
6038 (ada_value_primitive_packed_val): Update.
6039 * ada-valprint.c (ada_value_print_1): Update.
6040 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
6041 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
6042 just an address. Use evaluate_for_locexpr_baton.
6043 (dwarf2_evaluate_property): Update.
6044 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
6045 array_view.
6046 * findvar.c (default_read_var_value): Update.
6047 * gdbtypes.c (compute_variant_fields_inner)
6048 (resolve_dynamic_type_internal): Update.
6049 (resolve_dynamic_type): Change type of valaddr parameter.
6050 * gdbtypes.h (resolve_dynamic_type): Update.
6051 * valarith.c (value_subscripted_rvalue): Update.
6052 * value.c (value_from_contents_and_address): Update.
6053
6054 2020-04-24 Tom Tromey <tromey@adacore.com>
6055
6056 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
6057 "push_initial_value" parameter.
6058 (dwarf2_evaluate_property): Likewise.
6059 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
6060
6061 2020-04-24 Tom Tromey <tromey@adacore.com>
6062
6063 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
6064 (variant::matches, compute_variant_fields_recurse)
6065 (compute_variant_fields_inner, compute_variant_fields): New
6066 functions.
6067 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
6068 Use resolved_type after type is made.
6069 (operator==): Add new cases.
6070 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
6071 (struct discriminant_range, struct variant, struct variant_part):
6072 New.
6073 (union dynamic_prop_data) <variant_parts, original_type>: New
6074 members.
6075 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
6076 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
6077 constants.
6078 * value.c (unpack_bits_as_long): Now public.
6079 * value.h (unpack_bits_as_long): Declare.
6080
6081 2020-04-24 Tom Tromey <tromey@adacore.com>
6082
6083 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
6084 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
6085
6086 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
6087
6088 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
6089
6090 2020-04-24 Kamil Rytarowski <n54@gmx.com>
6091
6092 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
6093 (remove_fork_catchpoint, post_startup_inferior)
6094 (post_attach): Move...
6095 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
6096 (remove_fork_catchpoint, post_startup_inferior)
6097 (post_attach): ...here.
6098 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
6099 (remove_fork_catchpoint, post_startup_inferior)
6100 (post_attach): Move...
6101 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
6102 (remove_fork_catchpoint, post_startup_inferior)
6103 (post_attach): ...here.
6104
6105 2020-04-24 Tom Tromey <tromey@adacore.com>
6106
6107 * nat/windows-nat.h (struct windows_thread_info)
6108 <pc_adjusted>: New member.
6109 * windows-nat.c (windows_fetch_one_register): Check
6110 pc_adjusted.
6111 (windows_nat_target::get_windows_debug_event)
6112 (windows_nat_target::wait): Set pc_adjusted.
6113
6114 2020-04-24 Tom de Vries <tdevries@suse.de>
6115
6116 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
6117 Run gdb-add-index inside temp dir.
6118
6119 2020-04-23 Tom Tromey <tromey@adacore.com>
6120
6121 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
6122 in loop.
6123
6124 2020-04-23 Luis Machado <luis.machado@linaro.org>
6125
6126 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
6127 get_frame_register instead of gdbarch_unwind_pc.
6128
6129 2020-04-23 Tom de Vries <tdevries@suse.de>
6130
6131 * symtab.c (lookup_global_symbol): Prefer def over decl.
6132
6133 2020-04-23 Tom de Vries <tdevries@suse.de>
6134
6135 PR symtab/25807
6136 * block.c (best_symbol, better_symbol): Promote to external.
6137 * block.h (best_symbol, better_symbol): Declare.
6138 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
6139 decl.
6140
6141 2020-04-23 Tom Tromey <tromey@adacore.com>
6142
6143 PR ada/25837:
6144 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
6145 "const char *", not a "const std::string &".
6146 <name_and_matcher::operator==>: Update.
6147 * unittests/lookup_name_info-selftests.c: Change type of
6148 "result".
6149
6150 2020-04-23 Tom Tromey <tom@tromey.com>
6151
6152 * inferior.h (iterate_over_inferiors): Don't declare.
6153 * inferior.c (iterate_over_inferiors): Remove.
6154 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
6155 Remove.
6156 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
6157 use iterate_over_inferiors.
6158 (darwin_resume_inferior_it)
6159 (struct resume_inferior_threads_param)
6160 (darwin_resume_inferior_threads_it): Remove.
6161 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
6162
6163 2020-04-23 Tom de Vries <tdevries@suse.de>
6164
6165 * blockframe.c (find_pc_partial_function): Use
6166 find_pc_sect_compunit_symtab rather than
6167 objfile->sf->qf->find_pc_sect_compunit_symtab.
6168
6169 2020-04-22 Tom de Vries <tdevries@suse.de>
6170
6171 PR symtab/25764
6172 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
6173 in psymtabs.
6174
6175 2020-04-22 Tom de Vries <tdevries@suse.de>
6176
6177 PR symtab/25801
6178 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
6179 symtabs.
6180
6181 2020-04-22 Tom de Vries <tdevries@suse.de>
6182
6183 PR symtab/25700
6184 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
6185 CU if already created.
6186
6187 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6188
6189 * infrun.c (displaced_step_fixup): Switch to the event_thread
6190 before calling displaced_step_restore, not after.
6191
6192 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6193
6194 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
6195 its inferior is not recorded by us.
6196 (record_btrace_target_open): Replace call to
6197 all_non_exited_threads () with call to current_inferior
6198 ()->non_exited_threads ().
6199 (record_btrace_target::stop_recording): Likewise.
6200 (record_btrace_target::close): Likewise.
6201 (record_btrace_target::wait): Likewise.
6202 (record_btrace_target::record_stop_replaying): Likewise.
6203
6204 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6205
6206 * btrace.c (btrace_enable): Throw an error on double enables and
6207 when enabling recording fails.
6208 (btrace_disable): Throw an error if the thread is not recorded.
6209
6210 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6211
6212 * record-btrace.c (record_btrace_target::fetch_registers): Forward
6213 request if we do not have a thread_info.
6214
6215 2020-04-21 Tom de Vries <tdevries@suse.de>
6216
6217 PR gdb/25471
6218 * thread.c
6219 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
6220 exception in get_frame_id.
6221
6222 2020-04-20 Tom Tromey <tromey@adacore.com>
6223
6224 * python/python.c (struct gdbpy_event): Mark move constructor as
6225 noexcept.
6226 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
6227 constructor as noexcept.
6228 * completer.h (struct completion_result): Mark move constructor as
6229 noexcept.
6230 * completer.c (completion_result::completion_result): Use
6231 initialization style. Don't call reset_match_list.
6232
6233 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
6234
6235 * MAINTAINERS (Write After Approval): Add myself.
6236
6237 2020-04-18 Tom Tromey <tom@tromey.com>
6238
6239 * windows-tdep.c (init_w32_command_list)
6240 (w32_prefix_command_valid): Restore.
6241 (_initialize_windows_tdep): Call init_w32_command_list.
6242
6243 2020-04-18 Tom Tromey <tom@tromey.com>
6244
6245 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
6246 * value.c (value_fn_field): Update.
6247 * valops.c (find_function_in_inferior)
6248 (value_allocate_space_in_inferior): Update.
6249 * tui/tui-winsource.c (tui_update_source_windows_with_line):
6250 Update.
6251 * tui/tui-source.c (tui_source_window::set_contents): Update.
6252 * symtab.c (lookup_global_or_static_symbol)
6253 (find_function_start_sal_1, skip_prologue_sal)
6254 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
6255 * symmisc.c (dump_msymbols, dump_symtab_1)
6256 (maintenance_print_one_line_table): Update.
6257 * symfile.c (init_entry_point_info, section_is_mapped)
6258 (list_overlays_command, simple_read_overlay_table)
6259 (simple_overlay_update_1): Update.
6260 * stap-probe.c (handle_stap_probe): Update.
6261 * stabsread.c (dbx_init_float_type, define_symbol)
6262 (read_one_struct_field, read_enum_type, read_range_type): Update.
6263 * source.c (info_line_command): Update.
6264 * python/python.c (gdbpy_source_objfile_script)
6265 (gdbpy_execute_objfile_script): Update.
6266 * python/py-type.c (save_objfile_types): Update.
6267 * python/py-objfile.c (py_free_objfile): Update.
6268 * python/py-inferior.c (python_new_objfile): Update.
6269 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
6270 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
6271 (maintenance_check_psymtabs): Update.
6272 * printcmd.c (info_address_command): Update.
6273 * objfiles.h (struct objfile) <arch>: New method, from
6274 get_objfile_arch.
6275 (get_objfile_arch): Don't declare.
6276 * objfiles.c (get_objfile_arch): Remove.
6277 (filter_overlapping_sections): Update.
6278 * minsyms.c (msymbol_is_function): Update.
6279 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
6280 (output_nondebug_symbol): Update.
6281 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
6282 (mdebug_expand_psymtab): Update.
6283 * machoread.c (macho_add_oso_symfile): Update.
6284 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
6285 Update.
6286 * linux-fork.c (checkpoint_command): Update.
6287 * linespec.c (convert_linespec_to_sals): Update.
6288 * jit.c (finalize_symtab): Update.
6289 * infrun.c (insert_exception_resume_from_probe): Update.
6290 * ia64-tdep.c (ia64_find_unwind_table): Update.
6291 * hppa-tdep.c (internalize_unwinds): Update.
6292 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
6293 Update.
6294 * gcore.c (call_target_sbrk): Update.
6295 * elfread.c (record_minimal_symbol, elf_symtab_read)
6296 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
6297 (elf_gnu_ifunc_resolve_by_got): Update.
6298 * dwarf2/read.c (create_addrmap_from_index)
6299 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6300 (read_debug_names_from_section)
6301 (process_psymtab_comp_unit_reader, add_partial_symbol)
6302 (add_partial_subprogram, process_full_comp_unit)
6303 (read_file_scope, read_func_scope, read_lexical_block_scope)
6304 (read_call_site_scope, dwarf2_ranges_read)
6305 (dwarf2_record_block_ranges, dwarf2_add_field)
6306 (mark_common_block_symbol_computed, read_tag_pointer_type)
6307 (read_tag_string_type, dwarf2_init_float_type)
6308 (dwarf2_init_complex_target_type, read_base_type)
6309 (partial_die_info::read, partial_die_info::read)
6310 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
6311 (dwarf2_fetch_die_loc_sect_off): Update.
6312 * dwarf2/loc.c (dwarf2_find_location_expression)
6313 (class dwarf_evaluate_loc_desc, rw_pieced_value)
6314 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
6315 (dwarf2_loc_desc_get_symbol_read_needs)
6316 (locexpr_describe_location_piece, locexpr_describe_location_1)
6317 (loclist_describe_location): Update.
6318 * dwarf2/index-write.c (write_debug_names): Update.
6319 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
6320 * dtrace-probe.c (dtrace_process_dof): Update.
6321 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6322 (process_one_symbol): Update.
6323 * ctfread.c (ctf_init_float_type, read_base_type): Update.
6324 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6325 (coff_read_enum_type): Update.
6326 * cli/cli-cmds.c (edit_command, list_command): Update.
6327 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6328 * breakpoint.c (create_overlay_event_breakpoint)
6329 (create_longjmp_master_breakpoint)
6330 (create_std_terminate_master_breakpoint)
6331 (create_exception_master_breakpoint, get_sal_arch): Update.
6332 * block.c (block_gdbarch): Update.
6333 * annotate.c (annotate_source_line): Update.
6334
6335 2020-04-17 Tom Tromey <tromey@adacore.com>
6336
6337 * auto-load.c (show_auto_load_cmd): Remove.
6338 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6339 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6340 (maintenance_print_arc_command): Remove.
6341 * tui/tui-win.c (tui_command): Remove.
6342 (tui_get_cmd_list): Use add_basic_prefix_cmd.
6343 * tui/tui-layout.c (tui_layout_command): Remove.
6344 (_initialize_tui_layout): Use add_basic_prefix_cmd.
6345 * python/python.c (user_set_python, user_show_python): Remove.
6346 (_initialize_python): Use add_basic_prefix_cmd,
6347 add_show_prefix_cmd.
6348 * guile/guile.c (set_guile_command, show_guile_command): Remove.
6349 (install_gdb_commands): Use add_basic_prefix_cmd,
6350 add_show_prefix_cmd.
6351 (info_guile_command): Remove.
6352 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6353 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6354 add_show_prefix_cmd.
6355 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6356 Remove do_set and do_show parameters.
6357 * cli/cli-style.c (set_style, show_style): Remove.
6358 (_initialize_cli_style): Use add_basic_prefix_cmd,
6359 add_show_prefix_cmd.
6360 (cli_style_option::add_setshow_commands): Remove do_set and
6361 do_show parameters.
6362 (cli_style_option::add_setshow_commands): Use
6363 add_basic_prefix_cmd, add_show_prefix_cmd.
6364 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6365 (set_style_name): Remove.
6366 * cli/cli-dump.c (dump_command, append_command): Remove.
6367 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6368 (tekhex_dump_command, binary_dump_command)
6369 (binary_append_command): Remove.
6370 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6371 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6372 (init_w32_command_list): Remove; move into ...
6373 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6374 * valprint.c (set_print, show_print, set_print_raw)
6375 (show_print_raw): Remove.
6376 (_initialize_valprint): Use add_basic_prefix_cmd,
6377 add_show_prefix_cmd.
6378 * typeprint.c (set_print_type, show_print_type): Remove.
6379 (_initialize_typeprint): Use add_basic_prefix_cmd,
6380 add_show_prefix_cmd.
6381 * record.c (set_record_command, show_record_command): Remove.
6382 (_initialize_record): Use add_basic_prefix_cmd,
6383 add_show_prefix_cmd.
6384 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6385 add_show_prefix_cmd.
6386 (info_command, show_command, set_debug, show_debug): Remove.
6387 * top.h (set_history, show_history): Don't declare.
6388 * top.c (set_history, show_history): Remove.
6389 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6390 (unset_tdesc_cmd): Remove.
6391 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6392 add_show_prefix_cmd.
6393 * symtab.c (info_module_command): Remove.
6394 (_initialize_symtab): Use add_basic_prefix_cmd.
6395 * symfile.c (overlay_command): Remove.
6396 (_initialize_symfile): Use add_basic_prefix_cmd.
6397 * sparc64-tdep.c (info_adi_command): Remove.
6398 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6399 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6400 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6401 add_show_prefix_cmd.
6402 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6403 (_initialize_serial): Use add_basic_prefix_cmd,
6404 add_show_prefix_cmd.
6405 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6406 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6407 add_show_prefix_cmd.
6408 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6409 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6410 add_show_prefix_cmd.
6411 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6412 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6413 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6414 add_show_prefix_cmd.
6415 * remote.c (remote_command, set_remote_cmd): Remove.
6416 (_initialize_remote): Use add_basic_prefix_cmd.
6417 * record-full.c (set_record_full_command)
6418 (show_record_full_command): Remove.
6419 (_initialize_record_full): Use add_basic_prefix_cmd,
6420 add_show_prefix_cmd.
6421 * record-btrace.c (cmd_set_record_btrace)
6422 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6423 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6424 (cmd_show_record_btrace_pt): Remove.
6425 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6426 add_show_prefix_cmd.
6427 * ravenscar-thread.c (set_ravenscar_command)
6428 (show_ravenscar_command): Remove.
6429 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6430 add_show_prefix_cmd.
6431 * mips-tdep.c (show_mips_command, set_mips_command)
6432 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6433 add_show_prefix_cmd.
6434 * maint.c (maintenance_command, maintenance_info_command)
6435 (maintenance_check_command, maintenance_print_command)
6436 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6437 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6438 add_show_prefix_cmd.
6439 (show_per_command_cmd): Remove.
6440 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6441 Remove.
6442 (maintenance_show_test_settings_cmd): Remove.
6443 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6444 add_show_prefix_cmd.
6445 * maint-test-options.c (maintenance_test_options_command):
6446 Remove.
6447 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6448 * macrocmd.c (macro_command): Remove
6449 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6450 * language.c (set_check, show_check): Remove.
6451 (_initialize_language): Use add_basic_prefix_cmd,
6452 add_show_prefix_cmd.
6453 * infcmd.c (unset_command): Remove.
6454 (_initialize_infcmd): Use add_basic_prefix_cmd.
6455 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6456 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6457 add_show_prefix_cmd.
6458 * go32-nat.c (go32_info_dos_command): Remove.
6459 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6460 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6461 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6462 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6463 (_initialize_frame): Use add_basic_prefix_cmd,
6464 add_show_prefix_cmd.
6465 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6466 (_initialize_dcache): Use add_basic_prefix_cmd,
6467 add_show_prefix_cmd.
6468 * cp-support.c (maint_cplus_command): Remove.
6469 (_initialize_cp_support): Use add_basic_prefix_cmd.
6470 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6471 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6472 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6473 add_basic_prefix_cmd, add_show_prefix_cmd.
6474 * breakpoint.c (save_command): Remove.
6475 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6476 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6477 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6478 add_show_prefix_cmd.
6479 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6480 (set_ada_command, show_ada_command): Remove.
6481 (_initialize_ada_language): Use add_basic_prefix_cmd,
6482 add_show_prefix_cmd.
6483 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6484
6485 2020-04-16 Kamil Rytarowski <n54@gmx.com>
6486
6487 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6488 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6489
6490 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6491
6492 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6493 warning messages.
6494
6495 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6496
6497 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6498 import table is not at beginning of .idata section.
6499
6500 2020-04-16 Pedro Alves <palves@redhat.com>
6501
6502 * inferior.c (delete_inferior): Use delete operator directly
6503 instead of delete_program_space.
6504 * progspace.c (add_program_space): New, factored out from
6505 program_space::program_space.
6506 (remove_program_space): New, factored out from
6507 delete_program_space.
6508 (program_space::program_space): Remove intro comment. Rewrite.
6509 (program_space::~program_space): Remove intro comment. Call
6510 remove_program_space.
6511 (delete_program_space): Delete.
6512 * progspace.h (program_space::program_space): Make explicit. Move
6513 intro comment here, adjusted.
6514 (program_space::~program_space): Move intro comment here,
6515 adjusted.
6516 (delete_program_space): Remove.
6517
6518 2020-04-16 Tom Tromey <tromey@adacore.com>
6519
6520 * windows-nat.c (windows_nat::handle_access_violation): New
6521 function.
6522 * nat/windows-nat.h (handle_access_violation): Declare.
6523 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6524 windows-nat.c. Call handle_access_violation.
6525
6526 2020-04-16 Tom de Vries <tdevries@suse.de>
6527
6528 PR symtab/25791
6529 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6530 CUs without psymtab.
6531
6532 2020-04-16 Kevin Buettner <kevinb@redhat.com>
6533
6534 * python/python.c (do_start_initialization): Don't call
6535 PyEval_InitThreads for Python 3.9 and beyond.
6536
6537 2020-04-15 Kamil Rytarowski <n54@gmx.com>
6538
6539 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6540 thread functions.
6541 (obsd_nat_target::wait): Likewise.
6542
6543 2020-04-15 Tom Tromey <tromey@adacore.com>
6544
6545 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6546 (DEBUG_EXCEPT): Use debug_printf.
6547
6548 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6549
6550 * completer.c (class completion_tracker::completion_hash_entry)
6551 <hash_name>: New member function.
6552 (completion_tracker::discard_completions): New callback to hash a
6553 completion_hash_entry, pass this to htab_create_alloc.
6554
6555 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6556
6557 * windows-nat.c (windows_make_so): Warn rather than stopping with
6558 an error if realpath() fails.
6559
6560 2020-04-14 Kamil Rytarowski <n54@gmx.com>
6561
6562 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6563 (nbsd_nat_target::info_proc): Add do_status.
6564
6565 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6566 Tom de Vries <tdevries@suse.de>
6567
6568 PR symtab/25718
6569 * psympriv.h (struct partial_symtab::read_symtab)
6570 (struct partial_symtab::expand_psymtab)
6571 (struct partial_symtab::read_dependencies): Update comments.
6572 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6573 read_symtab for includer.
6574 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6575 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6576 (struct dwarf2_include_psymtab::m_readin): Remove.
6577 (struct dwarf2_include_psymtab::includer): New member function.
6578 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6579
6580 2020-04-14 Tom de Vries <tdevries@suse.de>
6581
6582 PR symtab/25720
6583 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6584 with NULL symbol_matcher and lookup_name.
6585 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6586 and lookup_name.
6587 * dwarf2/read.c (dw2_expand_symtabs_matching)
6588 (dw2_debug_names_expand_symtabs_matching): Same.
6589 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6590 Make lookup_name a pointer. Update comment.
6591 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6592 lookup_name being a pointer.
6593 * symfile.c (expand_symtabs_matching): Same.
6594 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6595 * linespec.c (iterate_over_all_matching_symtabs): Same.
6596
6597 2020-04-13 Tom Tromey <tom@tromey.com>
6598
6599 * run-on-main-thread.c: Update include.
6600 * unittests/main-thread-selftests.c: Update include.
6601 * tui/tui-win.c: Update include.
6602 * tui/tui-io.c: Update include.
6603 * tui/tui-interp.c: Update include.
6604 * tui/tui-hooks.c: Update include.
6605 * top.h: Update include.
6606 * top.c: Update include.
6607 * ser-base.c: Update include.
6608 * remote.c: Update include.
6609 * remote-notif.c: Update include.
6610 * remote-fileio.c: Update include.
6611 * record-full.c: Update include.
6612 * record-btrace.c: Update include.
6613 * python/python.c: Update include.
6614 * posix-hdep.c: Update include.
6615 * mingw-hdep.c: Update include.
6616 * mi/mi-main.c: Update include.
6617 * mi/mi-interp.c: Update include.
6618 * main.c: Update include.
6619 * linux-nat.c: Update include.
6620 * interps.c: Update include.
6621 * infrun.c: Update include.
6622 * inf-loop.c: Update include.
6623 * event-top.c: Update include.
6624 * event-loop.c: Move to ../gdbsupport/.
6625 * event-loop.h: Move to ../gdbsupport/.
6626 * async-event.h: Update include.
6627 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6628
6629 2020-04-13 Tom Tromey <tom@tromey.com>
6630
6631 * tui/tui-win.c: Include async-event.h.
6632 * remote.c: Include async-event.h.
6633 * remote-notif.c: Include async-event.h.
6634 * record-full.c: Include async-event.h.
6635 * record-btrace.c: Include async-event.h.
6636 * infrun.c: Include async-event.h.
6637 * event-top.c: Include async-event.h.
6638 * event-loop.h: Move some declarations to async-event.h.
6639 * event-loop.c: Don't include ser-event.h or top.h. Move some
6640 code to async-event.c.
6641 * async-event.h: New file.
6642 * async-event.c: New file.
6643 * Makefile.in (COMMON_SFILES): Add async-event.c.
6644 (HFILES_NO_SRCDIR): Add async-event.h.
6645
6646 2020-04-13 Tom Tromey <tom@tromey.com>
6647
6648 * utils.c (flush_streams): New function.
6649 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6650
6651 2020-04-13 Tom Tromey <tom@tromey.com>
6652
6653 * event-loop.c (handle_file_event): Use warning, not
6654 printf_unfiltered.
6655
6656 2020-04-13 Tom Tromey <tom@tromey.com>
6657
6658 * event-loop.c: Include <chrono>.
6659
6660 2020-04-13 Tom Tromey <tom@tromey.com>
6661
6662 * gdb_select.h: Move to ../gdbsupport/.
6663 * event-loop.c: Update include path.
6664 * top.c: Update include path.
6665 * ser-base.c: Update include path.
6666 * ui-file.c: Update include path.
6667 * ser-tcp.c: Update include path.
6668 * guile/scm-ports.c: Update include path.
6669 * posix-hdep.c: Update include path.
6670 * ser-unix.c: Update include path.
6671 * gdb_usleep.c: Update include path.
6672 * mingw-hdep.c: Update include path.
6673 * inflow.c: Update include path.
6674 * infrun.c: Update include path.
6675 * event-top.c: Update include path.
6676
6677 2020-04-13 Tom Tromey <tom@tromey.com>
6678
6679 * configure: Rebuild.
6680 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6681
6682 2020-04-13 Tom Tromey <tom@tromey.com>
6683
6684 * event-loop.h (start_event_loop): Don't declare.
6685 * event-loop.c (start_event_loop): Move...
6686 * main.c (start_event_loop): ...here. Now static.
6687
6688 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6689
6690 * MAINTAINERS: Update my email address.
6691
6692 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6693
6694 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6695 IP_ALL.
6696
6697 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6698
6699 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
6700 (nbsd_nat_target::info_proc): Add do_cmdline.
6701
6702 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6703
6704 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
6705 (nbsd_nat_target::info_proc): Add do_cwd.
6706
6707 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6708
6709 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6710
6711 2020-04-11 Kamil Rytarowski <n54@gmx.com>
6712
6713 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6714 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6715 (nbsd_nat_target::info_proc): New functions.
6716 * nbsd-nat.c (kinfo_get_vmmap): New function.
6717 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6718 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6719 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6720 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6721 functions.
6722 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6723 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6724 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6725 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6726 (KINFO_VME_FLAG_GROWS_DOWN): New.
6727
6728 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6729
6730 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6731 bit shift.
6732
6733 2020-04-10 Tom Tromey <tromey@adacore.com>
6734
6735 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6736
6737 2020-04-10 Tom Tromey <tromey@adacore.com>
6738
6739 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6740 separate debug files.
6741
6742 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
6743
6744 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6745 Move to...
6746 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6747 ... here.
6748 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6749 Check for STATUS_WX86_BREAKPOINT.
6750 (windows_nat_target::wait): Same.
6751
6752 2020-04-10 Tom de Vries <tdevries@suse.de>
6753
6754 PR cli/25808
6755 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6756
6757 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6758
6759 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6760 (Write After Approval): Remove Tom de Vries.
6761
6762 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6763
6764 revert partially:
6765 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6766
6767 * buildsym.c (record_line): Fix undefined behavior and preserve
6768 lines at eof.
6769
6770 2020-04-09 Kamil Rytarowski <n54@gmx.com>
6771
6772 * auxv.h (svr4_auxv_parse): New.
6773 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6774 and generic_auxv_parse.
6775 (svr4_auxv_parse): Add.
6776 * obsd-tdep.c: Include "auxv.h".
6777 (obsd_auxv_parse): Remove.
6778 (obsd_init_abi): Remove comment.
6779 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6780 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6781 * nbsd-tdep.c: Include "auxv.h".
6782 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6783
6784 2020-04-08 Tom Tromey <tromey@adacore.com>
6785
6786 * nat/windows-nat.h (last_wait_event): Don't declare.
6787 (wait_for_debug_event): Update comment.
6788 * nat/windows-nat.c (last_wait_event): Now static.
6789
6790 2020-04-08 Tom Tromey <tromey@adacore.com>
6791
6792 * windows-nat.c (wait_for_debug_event): Move to
6793 nat/windows-nat.c.
6794 * nat/windows-nat.h (wait_for_debug_event): Declare.
6795 * nat/windows-nat.c (wait_for_debug_event): Move from
6796 windows-nat.c. No longer static.
6797
6798 2020-04-08 Tom Tromey <tromey@adacore.com>
6799
6800 * windows-nat.c (get_windows_debug_event): Use
6801 fetch_pending_stop.
6802 * nat/windows-nat.h (fetch_pending_stop): Declare.
6803 * nat/windows-nat.c (fetch_pending_stop): New function.
6804
6805 2020-04-08 Tom Tromey <tromey@adacore.com>
6806
6807 * windows-nat.c (windows_continue): Use matching_pending_stop and
6808 continue_last_debug_event.
6809 * nat/windows-nat.h (matching_pending_stop)
6810 (continue_last_debug_event): Declare.
6811 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6812 (matching_pending_stop, continue_last_debug_event): New
6813 functions.
6814
6815 2020-04-08 Tom Tromey <tromey@adacore.com>
6816
6817 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6818 (handle_exception_result): Move to nat/windows-nat.h.
6819 (DEBUG_EXCEPTION_SIMPLE): Remove.
6820 (windows_nat::handle_ms_vc_exception): New function.
6821 (handle_exception): Move to nat/windows-nat.c.
6822 (get_windows_debug_event): Update.
6823 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6824 nat/windows-nat.c.
6825 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6826 (handle_exception_result): Move from windows-nat.c.
6827 (handle_exception): Declare.
6828 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6829 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6830 windows-nat.c.
6831
6832 2020-04-08 Tom Tromey <tromey@adacore.com>
6833
6834 * windows-nat.c (exception_count, event_count): Remove.
6835 (handle_exception, get_windows_debug_event)
6836 (do_initial_windows_stuff): Update.
6837
6838 2020-04-08 Tom Tromey <tromey@adacore.com>
6839
6840 * windows-nat.c (windows_nat::handle_load_dll)
6841 (windows_nat::handle_unload_dll): Rename. No longer static.
6842 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6843 Declare.
6844
6845 2020-04-08 Tom Tromey <tromey@adacore.com>
6846
6847 * complaints.h (stop_whining): Declare at top-level.
6848 (complaint): Don't declare stop_whining.
6849
6850 2020-04-08 Tom Tromey <tromey@adacore.com>
6851
6852 * windows-nat.c (windows_nat::handle_output_debug_string):
6853 Rename. No longer static.
6854 * nat/windows-nat.h (handle_output_debug_string): Declare.
6855
6856 2020-04-08 Tom Tromey <tromey@adacore.com>
6857
6858 * windows-nat.c (current_process_handle, current_process_id)
6859 (main_thread_id, last_sig, current_event, last_wait_event)
6860 (current_windows_thread, desired_stop_thread_id, pending_stops)
6861 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6862 (display_selectors, fake_create_process)
6863 (get_windows_debug_event): Update.
6864 * nat/windows-nat.h (current_process_handle, current_process_id)
6865 (main_thread_id, last_sig, current_event, last_wait_event)
6866 (current_windows_thread, desired_stop_thread_id, pending_stops)
6867 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6868 * nat/windows-nat.c (current_process_handle, current_process_id)
6869 (main_thread_id, last_sig, current_event, last_wait_event)
6870 (current_windows_thread, desired_stop_thread_id, pending_stops)
6871 (siginfo_er): New globals. Move from windows-nat.c.
6872
6873 2020-04-08 Tom Tromey <tromey@adacore.com>
6874
6875 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6876 (handle_load_dll): Update.
6877 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6878
6879 2020-04-08 Tom Tromey <tromey@adacore.com>
6880
6881 * windows-nat.c (enum thread_disposition_type): Move to
6882 nat/windows-nat.h.
6883 (windows_nat::thread_rec): Rename from thread_rec. No longer
6884 static.
6885 (windows_add_thread, windows_nat_target::fetch_registers)
6886 (windows_nat_target::store_registers, handle_exception)
6887 (windows_nat_target::resume, get_windows_debug_event)
6888 (windows_nat_target::get_tib_address)
6889 (windows_nat_target::thread_name)
6890 (windows_nat_target::thread_alive): Update.
6891 * nat/windows-nat.h (enum thread_disposition_type): Move from
6892 windows-nat.c.
6893 (thread_rec): Declare.
6894
6895 2020-04-08 Tom Tromey <tromey@adacore.com>
6896
6897 * windows-nat.c: Add "using namespace".
6898 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6899 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6900
6901 2020-04-08 Tom Tromey <tromey@adacore.com>
6902
6903 * nat/windows-nat.h (struct windows_thread_info): Declare
6904 destructor.
6905 * nat/windows-nat.c (~windows_thread_info): New.
6906
6907 2020-04-08 Tom Tromey <tromey@adacore.com>
6908
6909 PR gdb/22992
6910 * windows-nat.c (current_event): Update comment.
6911 (last_wait_event, desired_stop_thread_id): New globals.
6912 (struct pending_stop): New.
6913 (pending_stops): New global.
6914 (windows_nat_target) <stopped_by_sw_breakpoint>
6915 <supports_stopped_by_sw_breakpoint>: New methods.
6916 (windows_fetch_one_register): Add assertions. Adjust PC.
6917 (windows_continue): Handle pending stops. Suspend other threads
6918 when stepping. Use last_wait_event
6919 (wait_for_debug_event): New function.
6920 (get_windows_debug_event): Use wait_for_debug_event. Handle
6921 pending stops. Queue spurious stops.
6922 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6923 (windows_nat_target::kill): Use wait_for_debug_event.
6924 * nat/windows-nat.h (struct windows_thread_info)
6925 <stopped_at_software_breakpoint>: New field.
6926 * nat/windows-nat.c (windows_thread_info::resume): Clear
6927 stopped_at_software_breakpoint.
6928
6929 2020-04-08 Tom Tromey <tromey@adacore.com>
6930
6931 * windows-nat.c (enum thread_disposition_type): New.
6932 (thread_rec): Replace "get_context" parameter with "disposition";
6933 change type.
6934 (windows_add_thread, windows_nat_target::fetch_registers)
6935 (windows_nat_target::store_registers, handle_exception)
6936 (windows_nat_target::resume, get_windows_debug_event)
6937 (windows_nat_target::get_tib_address)
6938 (windows_nat_target::thread_name)
6939 (windows_nat_target::thread_alive): Update.
6940
6941 2020-04-08 Tom Tromey <tromey@adacore.com>
6942
6943 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6944 (windows_continue): Use windows_continue::resume.
6945 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6946 resume>: Declare new methods.
6947 * nat/windows-nat.c: New file.
6948 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6949
6950 2020-04-08 Tom Tromey <tromey@adacore.com>
6951
6952 * windows-nat.c (windows_add_thread, windows_delete_thread)
6953 (windows_nat_target::fetch_registers)
6954 (windows_nat_target::store_registers, fake_create_process)
6955 (windows_nat_target::resume, windows_nat_target::resume)
6956 (get_windows_debug_event, windows_nat_target::wait)
6957 (windows_nat_target::pid_to_str)
6958 (windows_nat_target::get_tib_address)
6959 (windows_nat_target::get_ada_task_ptid)
6960 (windows_nat_target::thread_name)
6961 (windows_nat_target::thread_alive): Use lwp, not tid.
6962
6963 2020-04-08 Tom Tromey <tromey@adacore.com>
6964
6965 * windows-nat.c (handle_exception)
6966 (windows_nat_target::thread_name): Update.
6967 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6968 <name>: Now unique_xmalloc_ptr.
6969
6970 2020-04-08 Tom Tromey <tromey@adacore.com>
6971
6972 * windows-nat.c (thread_rec)
6973 (windows_nat_target::fetch_registers): Update.
6974 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6975 Update comment.
6976 <debug_registers_changed, reload_context>: Now bool.
6977
6978 2020-04-08 Tom Tromey <tromey@adacore.com>
6979
6980 * windows-nat.c (windows_add_thread): Use new.
6981 (windows_init_thread_list, windows_delete_thread): Use delete.
6982 (get_windows_debug_event): Update.
6983 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6984 destructor, and initializers.
6985
6986 2020-04-08 Tom Tromey <tromey@adacore.com>
6987
6988 * windows-nat.c (struct windows_thread_info): Remove.
6989 * nat/windows-nat.h: New file.
6990
6991 2020-04-08 Tom Tromey <tromey@adacore.com>
6992
6993 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6994 (thread_rec, windows_add_thread, windows_delete_thread)
6995 (windows_continue): Update.
6996
6997 2020-04-08 Tom Tromey <tromey@adacore.com>
6998
6999 * windows-nat.c (struct windows_thread_info): Remove typedef.
7000 (thread_head): Remove.
7001 (thread_list): New global.
7002 (thread_rec, windows_add_thread, windows_init_thread_list)
7003 (windows_delete_thread, windows_continue): Update.
7004
7005 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7006
7007 * windows-tdep.h (windows_init_abi): Add comment.
7008 (cygwin_init_abi): New declaration.
7009 * windows-tdep.c: Split signal enumeration in two, one for
7010 Windows and one for Cygwin.
7011 (windows_gdb_signal_to_target): Only deal with signal of the
7012 Windows OS ABI.
7013 (cygwin_gdb_signal_to_target): New function.
7014 (windows_init_abi): Rename to windows_init_abi_common, don't set
7015 gdb_signal_to_target gdbarch method. Add new new function with
7016 this name.
7017 (cygwin_init_abi): New function.
7018 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
7019 comment. Don't call windows_init_abi.
7020 (amd64_windows_init_abi): Add comment, call windows_init_abi.
7021 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
7022 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
7023 i386_windows_init_abi_common, don't call windows_init_abi. Add
7024 a new function of this name.
7025 (i386_cygwin_init_abi): New function.
7026 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
7027 OS ABI Cygwin.
7028
7029 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7030
7031 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
7032 parameter.c.
7033 (dwarf2_read_gdb_index): Update.
7034
7035 2020-04-07 Kamil Rytarowski <n54@gmx.com>
7036
7037 * nbsd-tdep.c: Include "objfiles.h".
7038 (nbsd_skip_solib_resolver): New.
7039 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
7040
7041 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7042
7043 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
7044 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
7045 with DW_LLE_base_addressx are being emitted in DWARFv5.
7046 Add the newly added kind DW_LOC_OFFSET_PAIR also.
7047 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
7048 unsigned integer.
7049
7050 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7051
7052 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
7053 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
7054 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
7055 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
7056 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
7057 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
7058 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
7059
7060
7061 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7062
7063 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
7064 (read_loclist_index): New function definition.
7065 (lookup_loclist_base): New function definition.
7066 (read_loclist_header): New function definition.
7067 (dwarf2_cu): Add loclist_base and loclist_header field.
7068 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
7069 (read_full_die_1): Read the value of DW_AT_loclists_base.
7070 (read_attribute_reprocess): Handle DW_FORM_loclistx.
7071 (read_attribute_value): Handle DW_FORM_loclistx.
7072 (skip_one_die): Handle DW_FORM_loclistx.
7073 (loclist_header): New structure declaration.
7074 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
7075
7076 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7077
7078 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
7079 constructor. Remove `addr` parameter from other constructor and
7080 add `per_cu` parameter.
7081 * dwarf2/read.c (create_partial_symtab): Update.
7082
7083 2020-04-07 Tom de Vries <tdevries@suse.de>
7084
7085 PR symtab/25796
7086 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
7087 (partial_die_info::fixup): Inherit has_const_value.
7088
7089 2020-04-07 Tom de Vries <tdevries@suse.de>
7090
7091 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
7092 symbols without address.
7093
7094 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7095
7096 * nbsd-nat.h (struct thread_info): Add forward declaration.
7097 (nbsd_nat_target::thread_alive): Add.
7098 (nbsd_nat_target::thread_name): Likewise.
7099 (nbsd_nat_target::update_thread_list): Likewise.
7100 (update_thread_list::post_attach): Likewise.
7101 (post_attach::pid_to_str): Likewise.
7102 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
7103 (nbsd_thread_lister): Add.
7104 (nbsd_nat_target::thread_alive): Likewise.
7105 (nbsd_nat_target::thread_name): Likewise.
7106 (nbsd_add_threads): Likewise.
7107 (update_thread_list::post_attach): Likewise.
7108 (nbsd_nat_target::update_thread_list): Likewise.
7109 (post_attach::pid_to_str): Likewise.
7110
7111 2020-04-06 Tom Tromey <tromey@adacore.com>
7112
7113 * ada-valprint.c (print_variant_part): Extract the variant field.
7114 (print_field_values): Use the field as the outer value when
7115 recursing.
7116
7117 2020-04-06 Tom Tromey <tromey@adacore.com>
7118
7119 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
7120 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
7121 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
7122 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
7123 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
7124
7125 2020-04-06 Tom Tromey <tromey@adacore.com>
7126
7127 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
7128 TYPE_CODE_ERROR.
7129
7130 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7131
7132 * nbsd-tdep.c: Include "gdbarch.h".
7133 Define enum with NetBSD signal numbers.
7134 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
7135 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
7136 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
7137 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
7138 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
7139 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
7140 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
7141 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
7142 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
7143 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7144 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7145 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
7146
7147 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
7148
7149 PR gdb/25325
7150 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
7151
7152 2020-04-03 Tom Tromey <tromey@adacore.com>
7153
7154 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
7155 Read constant block.
7156
7157 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7158
7159 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
7160 (gdb_bfd_get_full_section_contents): New declaration.
7161 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
7162 * windows-tdep.c (is_linked_with_cygwin_dll): Use
7163 gdb_bfd_get_full_section_contents.
7164
7165 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7166
7167 * exec.c (build_section_table): Replace internal_error with
7168 gdb_assert.
7169 (section_table_xfer_memory_partial): Likewise.
7170 * mdebugread.c (parse_partial_symbols): Likewise.
7171 * psymtab.c (lookup_partial_symbol): Likewise.
7172 * utils.c (wrap_here): Likewise.
7173
7174 2020-04-02 Tom Tromey <tromey@adacore.com>
7175
7176 * f-lang.c (build_fortran_types): Use arch_type to initialize
7177 builtin_complex_s32 in the TYPE_CODE_ERROR case.
7178
7179 2020-04-02 Tom Tromey <tromey@adacore.com>
7180
7181 * dwarf2/read.c (partial_die_info::read): Do not create a vector
7182 of attributes.
7183
7184 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
7185 Bernd Edlinger <bernd.edlinger@hotmail.de>
7186 Tom Tromey <tromey@adacore.com>
7187
7188 * buildsym.c (buildsym_compunit::record_line): Remove
7189 deduplication code.
7190
7191 2020-04-02 Tom de Vries <tdevries@suse.de>
7192
7193 PR ada/24671
7194 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
7195
7196 2020-04-02 Tom de Vries <tdevries@suse.de>
7197
7198 * dwarf2/read.c (dwarf2_gdb_index_functions,
7199 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
7200 NULL.
7201 * psymtab.c (psym_lookup_global_symbol_language): New function.
7202 (psym_functions): Init psym_lookup_global_symbol_language with
7203 psym_lookup_global_symbol_language.
7204 * symfile-debug.c (debug_sym_quick_functions): Init
7205 lookup_global_symbol_language with NULL.
7206 * symfile.c (set_initial_language): Remove fixme comment.
7207 * symfile.h (struct quick_symbol_functions): Add
7208 lookup_global_symbol_language.
7209 * symtab.c (find_quick_global_symbol_language): New function.
7210 (find_main_name): Use find_quick_global_symbol_language.
7211
7212 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
7213
7214 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
7215
7216 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7217
7218 * buildsym.c (record_line): Fix undefined behavior and preserve
7219 lines at eof.
7220
7221 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7222
7223 * buildsym.c (record_line): Fix the resizing condition.
7224
7225 2020-04-01 Tom Tromey <tom@tromey.com>
7226
7227 * value.h (value_literal_complex): Add comment.
7228 * valops.c (value_literal_complex): Refer to value.h.
7229
7230 2020-04-01 Tom Tromey <tom@tromey.com>
7231
7232 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
7233 (scalar_type): New rule, from typebase.
7234 (typebase): Use scalar_type. Recognize complex types.
7235 (field_name): Handle FLOAT_KEYWORD.
7236 (ident_tokens): Add _Complex and __complex__.
7237
7238 2020-04-01 Tom Tromey <tom@tromey.com>
7239
7240 PR exp/25299:
7241 * valarith.c (promotion_type, complex_binop): New functions.
7242 (scalar_binop): Handle complex numbers. Use promotion_type.
7243 (value_pos, value_neg, value_complement): Handle complex numbers.
7244
7245 2020-04-01 Tom Tromey <tom@tromey.com>
7246
7247 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
7248 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
7249 (parse_number): Handle complex numbers.
7250
7251 2020-04-01 Tom Tromey <tom@tromey.com>
7252
7253 * c-valprint.c (c_decorations): Change complex suffix to "i".
7254
7255 2020-04-01 Tom Tromey <tom@tromey.com>
7256
7257 * valprint.c (generic_value_print_complex): Use accessors.
7258 * value.h (value_real_part, value_imaginary_part): Declare.
7259 * valops.c (value_real_part, value_imaginary_part): New
7260 functions.
7261 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
7262
7263 2020-04-01 Tom Tromey <tom@tromey.com>
7264
7265 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
7266 (read_range_type): Update.
7267 * mdebugread.c (basic_type): Update.
7268 * go-lang.c (build_go_types): Use init_complex_type.
7269 * gdbtypes.h (struct main_type) <complex_type>: New member.
7270 (init_complex_type): Update.
7271 (arch_complex_type): Don't declare.
7272 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
7273 Make name if none given. Use alloc_type_copy. Look for cached
7274 complex type.
7275 (arch_complex_type): Remove.
7276 (gdbtypes_post_init): Use init_complex_type.
7277 * f-lang.c (build_fortran_types): Use init_complex_type.
7278 * dwarf2/read.c (read_base_type): Update.
7279 * d-lang.c (build_d_types): Use init_complex_type.
7280 * ctfread.c (read_base_type): Update.
7281
7282 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7283
7284 * infrun.c (stop_all_threads): Update assertion, plus when
7285 stopping threads, take into account that we might be trying
7286 to stop an all-stop target.
7287 (stop_waiting): Call 'stop_all_threads' if there exists a
7288 non-stop target.
7289
7290 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7291
7292 * target.h (exists_non_stop_target): New function declaration.
7293 * target.c (exists_non_stop_target): New function.
7294
7295 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
7296
7297 PR gdb/24789
7298 * eval.c (is_integral_or_integral_reference): New function.
7299 (evaluate_subexp_standard): Allow integer references in
7300 pointer arithmetic.
7301
7302 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7303
7304 * remote.c (remote_target::remote_parse_stop_reply): Remove the
7305 check for no ptid in the stop reply when the target is non-stop.
7306
7307 2020-04-01 Tom Tromey <tromey@adacore.com>
7308
7309 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
7310 "name" parameter to rvalue reference. Initialize m_name_holder.
7311 <lookup_name_info>: New overloads.
7312 <name>: Return gdb::string_view.
7313 <c_str>: New method.
7314 <make_ignore_params>: Update.
7315 <search_name_hash>: Update.
7316 <language_lookup_name>: Return const char *.
7317 <m_name>: Change type.
7318 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
7319 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
7320 (lookup_name_info::match_any): Update.
7321 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7322 Update.
7323 * minsyms.c (linkage_name_str): Update.
7324 * language.c (default_symbol_name_matcher): Update.
7325 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7326 Update.
7327 * ada-lang.c (ada_fold_name): Change parameter to string_view.
7328 (ada_lookup_name_info::ada_lookup_name_info): Update.
7329 (literal_symbol_name_matcher): Update.
7330
7331 2020-04-01 Tom Tromey <tromey@adacore.com>
7332
7333 * psymtab.c (psymtab_search_name): Remove function.
7334 (psym_lookup_symbol): Create search name and lookup name here.
7335 (lookup_partial_symbol): Remove "name" parameter; add
7336 lookup_name.
7337 (psym_expand_symtabs_for_function): Update.
7338
7339 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
7340
7341 PR tui/25597:
7342 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7343
7344 2020-03-31 Tom Tromey <tromey@adacore.com>
7345
7346 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7347 memcpy.
7348
7349 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
7350
7351 * features/riscv/32bit-csr.xml: Regenerated.
7352 * features/riscv/64bit-csr.xml: Regenerated.
7353
7354 2020-03-30 Tom Tromey <tromey@adacore.com>
7355
7356 * ada-valprint.c (print_variant_part): Update.
7357 * ada-lang.h (ada_which_variant_applies): Update.
7358 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7359 outer_valaddr parameters; replace with "outer" value parameter.
7360 (to_fixed_variant_branch_type): Update.
7361
7362 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7363
7364 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7365 <list>. Remove inclusion of observable.h.
7366 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7367 (struct arch_lwp_info): New struct.
7368 (class ppc_linux_dreg_interface): New class.
7369 (struct ppc_linux_process_info): New struct.
7370 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7371 <low_new_clone, low_forget_process, low_prepare_to_resume>
7372 <copy_thread_dreg_state, mark_thread_stale>
7373 <mark_debug_registers_changed, register_hw_breakpoint>
7374 <clear_hw_breakpoint, register_wp, clear_wp>
7375 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7376 <num_memory_accesses, get_trigger_type>
7377 <create_watchpoint_request, hwdebug_point_cmp>
7378 <init_arch_lwp_info, get_arch_lwp_info>
7379 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7380 methods.
7381 <struct ptid_hash>: New inner struct.
7382 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7383 members.
7384 (saved_dabr_value, hwdebug_info, max_slots_number)
7385 (struct hw_break_tuple, struct thread_points, ppc_threads)
7386 (have_ptrace_hwdebug_interface)
7387 (hwdebug_find_thread_points_by_tid)
7388 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7389 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7390 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7391 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7392 use m_dreg_interface.
7393 (hwdebug_point_cmp): Change to...
7394 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7395 reference arguments instead of pointers.
7396 (ppc_linux_nat_target::ranged_break_num_registers): Use
7397 m_dreg_interface.
7398 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7399 m_dreg_interface. Call register_hw_breakpoint.
7400 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7401 m_dreg_interface. Call clear_hw_breakpoint.
7402 (get_trigger_type): Change to...
7403 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7404 comment.
7405 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7406 use m_dreg_interface. Call register_hw_breakpoint.
7407 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7408 use m_dreg_interface. Call clear_hw_breakpoint.
7409 (can_use_watchpoint_cond_accel): Change to...
7410 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7411 method. Update comment, use m_dreg_interface and
7412 m_process_info.
7413 (calculate_dvc): Change to...
7414 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7415 m_dreg_interface.
7416 (num_memory_accesses): Change to...
7417 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7418 (check_condition): Change to...
7419 (ppc_linux_nat_target::check_condition): ...this method.
7420 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7421 comment, use m_dreg_interface.
7422 (create_watchpoint_request): Change to...
7423 (ppc_linux_nat_target::create_watchpoint_request): ...this
7424 method. Use m_dreg_interface.
7425 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7426 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7427 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7428 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7429 (ppc_linux_nat_target::low_forget_process)
7430 (ppc_linux_nat_target::low_new_fork)
7431 (ppc_linux_nat_target::low_new_clone)
7432 (ppc_linux_nat_target::low_delete_thread)
7433 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7434 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7435 only call mark_thread_stale.
7436 (ppc_linux_thread_exit): Remove.
7437 (ppc_linux_nat_target::stopped_data_address): Change to...
7438 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7439 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7440 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7441 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7442 comment. Call low_stopped_data_address.
7443 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7444 m_dreg_interface.
7445 (ppc_linux_nat_target::masked_watch_num_registers): Use
7446 m_dreg_interface.
7447 (ppc_linux_nat_target::copy_thread_dreg_state)
7448 (ppc_linux_nat_target::mark_thread_stale)
7449 (ppc_linux_nat_target::mark_debug_registers_changed)
7450 (ppc_linux_nat_target::register_hw_breakpoint)
7451 (ppc_linux_nat_target::clear_hw_breakpoint)
7452 (ppc_linux_nat_target::register_wp)
7453 (ppc_linux_nat_target::clear_wp)
7454 (ppc_linux_nat_target::init_arch_lwp_info)
7455 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7456 (_initialize_ppc_linux_nat): Remove observer callback.
7457
7458 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7459
7460 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7461 (ppc_linux_nat_target::auxv_parse)
7462 (ppc_linux_nat_target::read_description)
7463 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7464 Move up.
7465
7466 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7467
7468 * linux-nat.h (low_new_clone): New method.
7469 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7470
7471 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7472
7473 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7474 (dbx_expand_psymtab): ... this.
7475 (start_psymtab): Update.
7476 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7477 (mdebug_expand_psymtab): ... this.
7478 (parse_partial_symbols): Update.
7479 (new_psymtab): Update.
7480 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7481 (xcoff_expand_psymtab): ... this.
7482 (xcoff_start_psymtab): Update.
7483
7484 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7485
7486 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7487 <expand_dependencies>: ... this.
7488 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7489 (partial_symtab::expand_dependencies): ... this.
7490 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7491 Update.
7492 (dwarf2_psymtab::expand_psymtab): Update.
7493 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7494 * mdebugread.c (psymtab_to_symtab_1): Update.
7495 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7496
7497 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7498
7499 * psympriv.h (discard_psymtab): Remove.
7500 * dbxread.c (dbx_end_psymtab): Update.
7501 * xcoffread.c (xcoff_end_psymtab): Update.
7502
7503 2020-03-28 Tom Tromey <tom@tromey.com>
7504
7505 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7506 comment.
7507
7508 2020-03-28 Tom Tromey <tom@tromey.com>
7509
7510 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7511
7512 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
7513
7514 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7515
7516 2020-03-26 John Baldwin <jhb@FreeBSD.org>
7517
7518 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7519
7520 2020-03-26 Tom Tromey <tom@tromey.com>
7521
7522 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7523 (mark_common_block_symbol_computed, read_tag_string_type)
7524 (attr_to_dynamic_prop, read_subrange_type): Update.
7525 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7526 to be methods on struct attribute.
7527 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7528 (read_call_site_scope, partial_die_info::read)
7529 (partial_die_info::read, lookup_die_type, follow_die_ref):
7530 Update.
7531 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7532 from dwarf2_get_ref_die_offset.
7533 (attribute::constant_value): New method, from
7534 dwarf2_get_attr_constant_value.
7535 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7536 Declare method.
7537 <constant_value>: New method.
7538
7539 2020-03-26 Tom Tromey <tom@tromey.com>
7540
7541 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7542 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7543 (dwarf_type_encoding_name): Move to stringify.c.
7544 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7545 * dwarf2/stringify.c: New file.
7546 * dwarf2/stringify.h: New file.
7547
7548 2020-03-26 Tom Tromey <tom@tromey.com>
7549
7550 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7551 Rewrite.
7552
7553 2020-03-26 Tom Tromey <tom@tromey.com>
7554
7555 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7556 methods.
7557 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7558 (lookup_ranges_base): Likewise.
7559 (read_cutu_die_from_dwo, read_full_die_1): Update.
7560
7561 2020-03-26 Tom Tromey <tom@tromey.com>
7562
7563 * dwarf2/read.c (read_import_statement, read_file_scope)
7564 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7565 (read_lexical_block_scope, read_call_site_scope)
7566 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7567 (handle_struct_member_die, process_structure_scope)
7568 (update_enumeration_type_from_children)
7569 (process_enumeration_scope, read_array_type, read_common_block)
7570 (read_namespace, read_module, read_subroutine_type): Update.
7571 (sibling_die): Remove.
7572
7573 2020-03-26 Tom Tromey <tom@tromey.com>
7574
7575 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7576 (build_type_psymtabs_reader, read_structure_type)
7577 (read_enumeration_type, read_full_die_1): Update.
7578 (dwarf2_attr_no_follow): Move to die.h.
7579 * dwarf2/die.h (struct die_info) <attr>: New method.
7580
7581 2020-03-26 Tom Tromey <tom@tromey.com>
7582
7583 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7584 <base_address>: Now an optional.
7585 (dwarf2_find_base_address, dwarf2_rnglists_process)
7586 (dwarf2_ranges_process, fill_in_loclist_baton)
7587 (dwarf2_symbol_mark_computed): Update.
7588
7589 2020-03-26 Tom Tromey <tom@tromey.com>
7590
7591 * dwarf2/read.c (struct die_info): Move to die.h.
7592 * dwarf2/die.h: New file.
7593
7594 2020-03-26 Tom Tromey <tom@tromey.com>
7595
7596 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7597 * dwarf2/read.c
7598 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7599 Move to line-header.c.
7600 (read_checked_initial_length_and_offset, read_formatted_entries):
7601 Likewise.
7602 (dwarf_decode_line_header): Split into two.
7603 * dwarf2/line-header.c
7604 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7605 Move from read.c.
7606 (read_checked_initial_length_and_offset, read_formatted_entries):
7607 Likewise.
7608 (dwarf_decode_line_header): New function, split from read.c.
7609
7610 2020-03-26 Tom Tromey <tom@tromey.com>
7611
7612 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7613 Declare method.
7614 * dwarf2/read.c (read_attribute_value): Update.
7615 (dwarf2_per_objfile::read_line_string): Rename from
7616 read_indirect_line_string.
7617 (read_formatted_entries): Update.
7618
7619 2020-03-26 Tom Tromey <tom@tromey.com>
7620
7621 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7622 variable.
7623
7624 2020-03-26 Tom Tromey <tom@tromey.com>
7625
7626 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7627 const.
7628 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7629 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7630 parameter const.
7631
7632 2020-03-26 Tom Tromey <tom@tromey.com>
7633
7634 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7635 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7636 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7637 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7638
7639 2020-03-26 Tom Tromey <tom@tromey.com>
7640
7641 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7642 file_names_size, file_full_name, file_file_name>: Use const.
7643 <file_name_at, file_names>: Add const overload.
7644 * dwarf2/line-header.c (line_header::file_file_name)
7645 (line_header::file_full_name): Update.
7646
7647 2020-03-26 Tom Tromey <tom@tromey.com>
7648
7649 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7650 (macro_start_file, consume_improper_spaces)
7651 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7652 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7653 (dwarf_decode_macros): Move to macro.c.
7654 * dwarf2/macro.c: New file.
7655 * dwarf2/macro.h: New file.
7656 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7657
7658 2020-03-26 Tom Tromey <tom@tromey.com>
7659
7660 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7661 method.
7662 * dwarf2/section.c: New method. From
7663 read_indirect_string_at_offset_from.
7664 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7665 (read_indirect_string_at_offset_from): Move to section.c.
7666 (read_indirect_string_at_offset): Rewrite.
7667 (read_indirect_line_string_at_offset): Remove.
7668 (read_indirect_string, read_indirect_line_string)
7669 (dwarf_decode_macro_bytes): Update.
7670
7671 2020-03-26 Tom Tromey <tom@tromey.com>
7672
7673 * dwarf2/section.h (struct dwarf2_section_info)
7674 <overload_complaint>: Declare.
7675 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7676 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7677 Rename from dwarf2_section_buffer_overflow_complaint.
7678 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7679 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7680
7681 2020-03-26 Tom Tromey <tom@tromey.com>
7682
7683 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7684 Declare.
7685 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7686 Move from read.c.
7687 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7688 to section.c.
7689
7690 2020-03-26 Tom Tromey <tom@tromey.com>
7691
7692 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7693
7694 2020-03-26 Tom Tromey <tom@tromey.com>
7695
7696 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7697 "builder".
7698 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7699 parameter.
7700 (dwarf_decode_macros): Update.
7701
7702 2020-03-26 Tom Tromey <tom@tromey.com>
7703
7704 * dwarf2/read.c (read_attribute_value): Update.
7705 (read_indirect_string_from_dwz): Move to dwz.c; change into
7706 method.
7707 (dwarf_decode_macro_bytes): Update.
7708 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7709 * dwarf2/dwz.c: New file.
7710 * Makefile.in (COMMON_SFILES): Add dwz.c.
7711
7712 2020-03-26 Tom Tromey <tom@tromey.com>
7713
7714 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7715 * dwarf2/read.c: Add include.
7716 * dwarf2/index-write.c: Add include.
7717 * dwarf2/index-cache.c: Add include.
7718 * dwarf2/dwz.h: New file.
7719
7720 2020-03-25 Tom Tromey <tom@tromey.com>
7721
7722 * compile/compile-object-load.c (get_out_value_type): Mention
7723 correct symbol name in error message.
7724
7725 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
7726
7727 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7728
7729 2020-03-25 Tom de Vries <tdevries@suse.de>
7730
7731 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7732 * symmisc.c (dump_symtab_1): Print user and includes fields.
7733 (maintenance_info_symtabs): Same.
7734
7735 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7736
7737 PR gdb/25534
7738 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7739 (riscv_regcache_cooked_write): New function.
7740 (riscv_push_dummy_call): Use new function.
7741 (riscv_return_value): Likewise.
7742
7743 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7744
7745 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7746 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7747 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7748 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7749 * infrun.c (follow_fork): Likewise.
7750 (follow_fork_inferior): Likewise.
7751 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7752 * linux-nat.h (class linux_nat_target): Likewise.
7753 * remote.c (class remote_target) <follow_fork>: Likewise.
7754 (remote_target::follow_fork): Likewise.
7755 * target-delegates.c: Re-generate.
7756 * target.c (default_follow_fork): Likewise.
7757 (target_follow_fork): Likewise.
7758 * target.h (struct target_ops) <follow_fork>: Likewise.
7759 (target_follow_fork): Likewise.
7760
7761 2020-03-24 Tom de Vries <tdevries@suse.de>
7762
7763 * psymtab.c (maintenance_info_psymtabs): Print user field.
7764
7765 2020-03-20 Tom Tromey <tromey@adacore.com>
7766
7767 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7768 const.
7769 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7770 const.
7771
7772 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
7773
7774 * ptrace.m4: Don't check for ptrace declaration.
7775 * config.in: Re-generate.
7776 * configure: Re-generate.
7777 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7778 not defined.
7779
7780 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7781
7782 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7783 `PTRACE_TYPE_RET'.
7784 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7785 * sparc-nat.c (gdb_ptrace): Likewise.
7786 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7787
7788 2020-03-20 Tom Tromey <tromey@adacore.com>
7789
7790 * c-exp.y (lex_one_token): Fix assert.
7791
7792 2020-03-20 Tom Tromey <tromey@adacore.com>
7793
7794 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7795 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7796 strncpy call.
7797
7798 2020-03-20 Tom Tromey <tromey@adacore.com>
7799
7800 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7801
7802 2020-03-20 Tom Tromey <tromey@adacore.com>
7803
7804 * ada-valprint.c (print_variant_part): Remove parameters; switch
7805 to value-based API.
7806 (print_field_values): Likewise.
7807 (ada_val_print_struct_union): Likewise.
7808 (ada_value_print_1): Update.
7809
7810 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7811
7812 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7813 nbsd_nat_target instead of inf_ptrace_target.
7814 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7815 nbsd_nat_target.
7816
7817 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7818
7819 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7820 it to the ptrace call.
7821 * (store_registers): Likewise.
7822
7823 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7824
7825 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7826 it to the ptrace call.
7827 * (store_registers): Likewise.
7828
7829 2020-03-19 Luis Machado <luis.machado@linaro.org>
7830
7831 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7832 valid, fetch vg value from ptrace.
7833
7834 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7835 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7836 * inf-ptrace.c: Likewise.
7837 * (gdb_ptrace): Add.
7838 * (inf_ptrace_target::resume): Update.
7839 * (inf_ptrace_target::xfer_partial): Likewise.
7840 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7841 * (inf_ptrace_peek_poke): Update.
7842
7843 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7844
7845 * x86-bsd-nat.c (gdb_ptrace): New.
7846 * (x86bsd_dr_set): Add new argument `ptid'.
7847 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7848 x86bsd_dr_set_addr): Update.
7849
7850 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7851
7852 * remote.c (remote_target::process_stop_reply): Handle events for
7853 all threads differently.
7854
7855 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7856
7857 * completer.c (completion_tracker::remove_completion): Define new
7858 function.
7859 * completer.h (completion_tracker::remove_completion): Declare new
7860 function.
7861 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7862 when adding a C++ function symbol.
7863
7864 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7865
7866 * completer.c (completion_tracker::completion_hash_entry): Define
7867 new class.
7868 (advance_to_filename_complete_word_point): Call
7869 recompute_lowest_common_denominator.
7870 (completion_tracker::completion_tracker): Call discard_completions
7871 to setup the hash table.
7872 (completion_tracker::discard_completions): Allow for being called
7873 from the constructor, pass new equal function, and element deleter
7874 when constructing the hash table. Initialise new class member
7875 variables.
7876 (completion_tracker::maybe_add_completion): Remove use of
7877 m_entries_vec, and store more information into m_entries_hash.
7878 (completion_tracker::recompute_lcd_visitor): New function, most
7879 content taken from...
7880 (completion_tracker::recompute_lowest_common_denominator):
7881 ...here, this now just visits each item in the hash calling the
7882 above visitor.
7883 (completion_tracker::build_completion_result): Remove use of
7884 m_entries_vec, call recompute_lowest_common_denominator.
7885 * completer.h (completion_tracker::have_completions): Remove use
7886 of m_entries_vec.
7887 (completion_tracker::completion_hash_entry): Declare new class.
7888 (completion_tracker::recompute_lowest_common_denominator): Change
7889 function signature.
7890 (completion_tracker::recompute_lcd_visitor): Declare new function.
7891 (completion_tracker::m_entries_vec): Delete.
7892 (completion_tracker::m_entries_hash): Initialize to NULL.
7893 (completion_tracker::m_lowest_common_denominator_valid): New
7894 member variable.
7895 (completion_tracker::m_lowest_common_denominator_max_length): New
7896 member variable.
7897
7898 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7899
7900 * regformats/regdef.h: Put reg in gdb namespace.
7901
7902 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7903
7904 * i386-bsd-nat.c (gdb_ptrace): New.
7905 * (i386bsd_fetch_inferior_registers,
7906 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7907 * (i386bsd_fetch_inferior_registers,
7908 i386bsd_store_inferior_registers) Use gdb_ptrace.
7909
7910 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7911
7912 * amd64-bsd-nat.c (gdb_ptrace): New.
7913 * (amd64bsd_fetch_inferior_registers,
7914 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7915 * (amd64bsd_fetch_inferior_registers,
7916 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7917
7918 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7919
7920 * user-regs.c (user_reg::read): Rename to...
7921 (user_reg::xread): ...this.
7922 * (append_user_reg): Rename argument `read' to `xread'.
7923 * (user_reg_add_builtin): Likewise.
7924 * (user_reg_add): Likewise.
7925 * (value_of_user_reg): Likewise.
7926
7927 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7928
7929 * sparc-nat.c (gdb_ptrace): New.
7930 * sparc-nat.c (sparc_fetch_inferior_registers)
7931 (sparc_store_inferior_registers) Remove obsolete comment.
7932 * sparc-nat.c (sparc_fetch_inferior_registers)
7933 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7934 * sparc-nat.c (sparc_fetch_inferior_registers)
7935 (sparc_store_inferior_registers) Use gdb_ptrace.
7936
7937 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7938
7939 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7940 it to the ptrace call.
7941 * sh-nbsd-nat.c (store_registers): Likewise.
7942
7943 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7944
7945 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7946 nbsd_nat_target instead of inf_ptrace_target.
7947 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7948 nbsd_nat_target.
7949
7950 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7951
7952 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7953
7954 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7955
7956 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7957 <sys/sysctl.h>.
7958 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7959
7960 2020-03-17 Tom de Vries <tdevries@suse.de>
7961
7962 PR gdb/23710
7963 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7964 fields.
7965 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7966 fields.
7967 (process_imported_unit_die): Skip import of c++ CUs.
7968
7969 2020-03-16 Tom Tromey <tom@tromey.com>
7970
7971 * p-valprint.c (pascal_object_print_value): Initialize
7972 base_value.
7973
7974 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7975 Shahab Vahedi <shahab@synopsys.com>
7976
7977 * Makefile.in: Add arch/arc.o
7978 * configure.tgt: Likewise.
7979 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7980 (_initialize_arc_tdep): Don't initialize old target descriptions.
7981 (arc_read_description): New function to cache target descriptions.
7982 * arc-tdep.h (arc_read_description): Add proto type.
7983 * arch/arc.c: New file.
7984 * arch/arc.h: Likewise.
7985 * features/Makefile: Replace old target descriptions with new.
7986 * features/arc-arcompact.c: Remove.
7987 * features/arc-arcompact.xml: Likewise.
7988 * features/arc-v2.c: Likewise
7989 * features/arc-v2.xml: Likewise
7990 * features/arc/aux-arcompact.xml: New file.
7991 * features/arc/aux-v2.xml: Likewise.
7992 * features/arc/core-arcompact.xml: Likewise.
7993 * features/arc/core-v2.xml: Likewise.
7994 * features/arc/aux-arcompact.c: Generate.
7995 * features/arc/aux-v2.c: Likewise.
7996 * features/arc/core-arcompact.c: Likewise.
7997 * features/arc/core-v2.c: Likewise.
7998 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7999
8000 2020-03-16 Tom Tromey <tromey@adacore.com>
8001
8002 PR gdb/25663:
8003 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
8004 putting value into bcache.
8005
8006 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8007
8008 PR gdb/21500
8009 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
8010 to...
8011 (amd64_windows_init_abi_common): ... this. Don't set size of
8012 long type.
8013 (amd64_windows_init_abi): New function.
8014 (amd64_cygwin_init_abi): New function.
8015 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
8016 the Cygwin OS ABI.
8017 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
8018 comment.
8019
8020 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8021
8022 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
8023 * windows-tdep.c (CYGWIN_DLL_NAME): New.
8024 (pe_import_directory_entry): New struct type.
8025 (is_linked_with_cygwin_dll): New function.
8026 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
8027 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
8028 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
8029
8030 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8031
8032 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
8033 i386_cygwin_core_osabi_sniffer.
8034
8035 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8036
8037 * i386-cygwin-tdep.c: Rename to...
8038 * i386-windows-tdep.c: ... this.
8039 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
8040 i386-windows-tdep.c.
8041 * configure.tgt: Likewise.
8042
8043 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8044
8045 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
8046 * osabi.c (gdb_osabi_names): Add "Windows".
8047 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
8048 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
8049 (i386_cygwin_core_osabi_sniffer): New function, extracted from
8050 i386_cygwin_osabi_sniffer.
8051 (_initialize_i386_cygwin_tdep): Register OS ABI
8052 GDB_OSABI_WINDOWS for i386.
8053 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
8054 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
8055 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
8056 for x86-64.
8057 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
8058 when the target matches '*-*-mingw*'.
8059
8060 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8061
8062 * defs.h (enum gdb_osabi): Move to...
8063 * osabi.h (enum gdb_osabi): ... here.
8064 * gdbarch.sh: Include osabi.h in gdbarch.h.
8065 * gdbarch.h: Re-generate.
8066
8067 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8068
8069 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
8070 function.
8071 (_initialize_amd64_windows_tdep): Register osabi sniffer.
8072
8073 2020-03-14 Tom Tromey <tom@tromey.com>
8074
8075 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
8076 for C++.
8077 (c_type_print_modifier): Likewise. Add "language" parameter.
8078 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
8079 (c_type_print_base_1): Update.
8080 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
8081 constants.
8082 * type-stack.c (type_stack::insert): Handle tp_atomic and
8083 tp_restrict.
8084 (type_stack::follow_type_instance_flags): Likewise.
8085 (type_stack::follow_types): Likewise. Merge type-following code.
8086 * c-exp.y (RESTRICT, ATOMIC): New tokens.
8087 (space_identifier, cv_with_space_id)
8088 (const_or_volatile_or_space_identifier_noopt)
8089 (const_or_volatile_or_space_identifier): Remove.
8090 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
8091 rules.
8092 (ptr_operator, typebase): Update.
8093 (enum token_flag) <FLAG_C>: New constant.
8094 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
8095 "_Atomic".
8096 (lex_one_token): Handle FLAG_C.
8097
8098 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8099
8100 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
8101 it to the ptrace call.
8102 * m68k-bsd-nat.c (store_registers): Likewise.
8103
8104 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8105
8106 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
8107 gdb_byte *.
8108 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
8109 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
8110 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
8111
8112 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8113
8114 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
8115 nbsd_nat_target instead of inf_ptrace_target.
8116 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8117 nbsd_nat_target.
8118
8119 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8120
8121 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
8122 register_t.
8123
8124 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8125
8126 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
8127 it to the ptrace call.
8128 * alpha-bsd-nat.c (store_registers): Likewise.
8129
8130 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8131
8132 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
8133 includes.
8134 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
8135 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
8136 fill_fpregset): Likewise.
8137
8138 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8139
8140 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
8141 nbsd_nat_target instead of inf_ptrace_target.
8142 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8143 nbsd_nat_target.
8144
8145 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8146
8147 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
8148 register_t.
8149
8150 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8151
8152 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
8153 it to the ptrace call.
8154 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
8155 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
8156 * arm-nbsd-nat.c (store_register): Likewise.
8157 * arm-nbsd-nat.c (store_regs): Likewise.
8158 * arm-nbsd-nat.c (store_fp_register): Likewise.
8159 * arm-nbsd-nat.c (store_fp_regs): Likewise.
8160
8161 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8162
8163 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
8164 nbsd_nat_target instead of inf_ptrace_target.
8165 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8166 nbsd_nat_target.
8167
8168 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8169
8170 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
8171 it to the ptrace call.
8172 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
8173
8174 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8175
8176 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
8177 it to the ptrace call.
8178 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
8179
8180 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8181
8182 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
8183 gdb_byte *.
8184 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
8185
8186 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8187
8188 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
8189 instead of inf_ptrace_target.
8190 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8191 nbsd_nat_target.
8192
8193 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8194
8195 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8196 register_t.
8197
8198 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8199
8200 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8201 register_t.
8202
8203 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8204
8205 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
8206 register_t.
8207
8208 2020-03-13 Tom Tromey <tom@tromey.com>
8209
8210 * value.h (val_print): Don't declare.
8211 * valprint.h (val_print_array_elements)
8212 (val_print_scalar_formatted, generic_val_print): Don't declare.
8213 * valprint.c (generic_val_print_array): Take a struct value.
8214 (generic_val_print_ptr, generic_val_print_memberptr)
8215 (generic_val_print_bool, generic_val_print_int)
8216 (generic_val_print_char, generic_val_print_complex)
8217 (generic_val_print): Remove.
8218 (generic_value_print): Update.
8219 (do_val_print): Remove unused parameters. Don't call
8220 la_val_print.
8221 (val_print): Remove.
8222 (common_val_print): Update. Don't call value_check_printable.
8223 (val_print_scalar_formatted, val_print_array_elements): Remove.
8224 * rust-lang.c (rust_val_print): Remove.
8225 (rust_language_defn): Update.
8226 * p-valprint.c (pascal_val_print): Remove.
8227 (pascal_value_print_inner): Update.
8228 (pascal_object_print_val_fields, pascal_object_print_val):
8229 Remove.
8230 (pascal_object_print_static_field): Update.
8231 * p-lang.h (pascal_val_print): Don't declare.
8232 * p-lang.c (pascal_language_defn): Update.
8233 * opencl-lang.c (opencl_language_defn): Update.
8234 * objc-lang.c (objc_language_defn): Update.
8235 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
8236 * m2-lang.h (m2_val_print): Don't declare.
8237 * m2-lang.c (m2_language_defn): Update.
8238 * language.h (struct language_defn) <la_val_print>: Remove.
8239 * language.c (unk_lang_value_print_inner): Rename. Change
8240 argument types.
8241 (unknown_language_defn, auto_language_defn): Update.
8242 * go-valprint.c (go_val_print): Remove.
8243 * go-lang.h (go_val_print): Don't declare.
8244 * go-lang.c (go_language_defn): Update.
8245 * f-valprint.c (f_val_print): Remove.
8246 * f-lang.h (f_value_print): Don't declare.
8247 * f-lang.c (f_language_defn): Update.
8248 * d-valprint.c (d_val_print): Remove.
8249 * d-lang.h (d_value_print): Don't declare.
8250 * d-lang.c (d_language_defn): Update.
8251 * cp-valprint.c (cp_print_value_fields)
8252 (cp_print_value_fields_rtti, cp_print_value): Remove.
8253 (cp_print_static_field): Update.
8254 * c-valprint.c (c_val_print_array, c_val_print_ptr)
8255 (c_val_print_struct, c_val_print_union, c_val_print_int)
8256 (c_val_print_memberptr, c_val_print): Remove.
8257 * c-lang.h (c_val_print_array, cp_print_value_fields)
8258 (cp_print_value_fields_rtti): Don't declare.
8259 * c-lang.c (c_language_defn, cplus_language_defn)
8260 (asm_language_defn, minimal_language_defn): Update.
8261 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
8262 (ada_val_print_enum): Take a struct value.
8263 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
8264 (ada_val_print): Remove.
8265 (ada_value_print_1): Update.
8266 (printable_val_type): Remove.
8267 * ada-lang.h (ada_val_print): Don't declare.
8268 * ada-lang.c (ada_language_defn): Update.
8269
8270 2020-03-13 Tom Tromey <tom@tromey.com>
8271
8272 * valprint.c (do_val_print): Update.
8273 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
8274 a struct value.
8275 (value_to_value_object_no_release): Declare.
8276 * python/py-value.c (value_to_value_object_no_release): New
8277 function.
8278 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
8279 struct value.
8280 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
8281 function.
8282 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
8283 a struct value.
8284 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
8285 Declare.
8286 (gdbscm_apply_val_pretty_printer): Take a struct value.
8287 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
8288 value.
8289 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
8290 value.
8291 * extension-priv.h (struct extension_language_ops)
8292 <apply_val_pretty_printer>: Take a struct value.
8293 * cp-valprint.c (cp_print_value): Create a struct value.
8294 (cp_print_value): Update.
8295
8296 2020-03-13 Tom Tromey <tom@tromey.com>
8297
8298 * ada-valprint.c (print_field_values): Call common_val_print.
8299
8300 2020-03-13 Tom Tromey <tom@tromey.com>
8301
8302 * ada-valprint.c (val_print_packed_array_elements): Remove
8303 bitoffset and val parameters. Call common_val_print.
8304 (ada_val_print_string): Remove offset, address, and original_value
8305 parameters.
8306 (ada_val_print_array): Update.
8307 (ada_value_print_array): New function.
8308 (ada_value_print_1): Call it.
8309
8310 2020-03-13 Tom Tromey <tom@tromey.com>
8311
8312 * ada-valprint.c (ada_value_print): Use common_val_print.
8313
8314 2020-03-13 Tom Tromey <tom@tromey.com>
8315
8316 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
8317
8318 2020-03-13 Tom Tromey <tom@tromey.com>
8319
8320 * ada-valprint.c (ada_value_print_num): New function.
8321 (ada_value_print_1): Use it.
8322
8323 2020-03-13 Tom Tromey <tom@tromey.com>
8324
8325 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8326
8327 2020-03-13 Tom Tromey <tom@tromey.com>
8328
8329 * ada-valprint.c (ada_value_print_ptr): New function.
8330 (ada_value_print_1): Use it.
8331
8332 2020-03-13 Tom Tromey <tom@tromey.com>
8333
8334 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8335 call common_val_print.
8336 (ada_val_print_1): Update.
8337 (ada_value_print_1): New function.
8338 (ada_value_print_inner): Rewrite.
8339
8340 2020-03-13 Tom Tromey <tom@tromey.com>
8341
8342 * cp-valprint.c (cp_print_value_fields): Update.
8343 (cp_print_value): New function.
8344
8345 2020-03-13 Tom Tromey <tom@tromey.com>
8346
8347 * m2-valprint.c (m2_value_print_inner): Use
8348 cp_print_value_fields.
8349 * cp-valprint.c (cp_print_value_fields): New function.
8350 * c-valprint.c (c_value_print_struct): New function.
8351 (c_value_print_inner): Use c_value_print_struct.
8352 * c-lang.h (cp_print_value_fields): Declare.
8353
8354 2020-03-13 Tom Tromey <tom@tromey.com>
8355
8356 * c-valprint.c (c_value_print_array): New function.
8357 (c_value_print_inner): Use it.
8358
8359 2020-03-13 Tom Tromey <tom@tromey.com>
8360
8361 * c-valprint.c (c_value_print_memberptr): New function.
8362 (c_value_print_inner): Use it.
8363
8364 2020-03-13 Tom Tromey <tom@tromey.com>
8365
8366 * c-valprint.c (c_value_print_int): New function.
8367 (c_value_print_inner): Use it.
8368
8369 2020-03-13 Tom Tromey <tom@tromey.com>
8370
8371 * c-valprint.c (c_value_print_ptr): New function.
8372 (c_value_print_inner): Use it.
8373
8374 2020-03-13 Tom Tromey <tom@tromey.com>
8375
8376 * c-valprint.c (c_value_print_inner): Rewrite.
8377
8378 2020-03-13 Tom Tromey <tom@tromey.com>
8379
8380 * valprint.c (generic_value_print_complex): New function.
8381 (generic_value_print): Use it.
8382
8383 2020-03-13 Tom Tromey <tom@tromey.com>
8384
8385 * valprint.c (generic_val_print_float): Don't call
8386 val_print_scalar_formatted.
8387 (generic_val_print, generic_value_print): Update.
8388
8389 2020-03-13 Tom Tromey <tom@tromey.com>
8390
8391 * valprint.c (generic_value_print_char): New function
8392 (generic_value_print): Use it.
8393
8394 2020-03-13 Tom Tromey <tom@tromey.com>
8395
8396 * valprint.c (generic_value_print_int): New function.
8397 (generic_value_print): Use it.
8398
8399 2020-03-13 Tom Tromey <tom@tromey.com>
8400
8401 * valprint.c (generic_value_print_bool): New function.
8402 (generic_value_print): Use it.
8403
8404 2020-03-13 Tom Tromey <tom@tromey.com>
8405
8406 * valprint.c (generic_val_print_func): Simplify.
8407 (generic_val_print, generic_value_print): Update.
8408
8409 2020-03-13 Tom Tromey <tom@tromey.com>
8410
8411 * valprint.c (generic_val_print_flags): Remove.
8412 (generic_val_print, generic_value_print): Update.
8413 (val_print_type_code_flags): Add original_value parameter.
8414
8415 2020-03-13 Tom Tromey <tom@tromey.com>
8416
8417 * valprint.c (generic_val_print): Update.
8418 (generic_value_print): Update.
8419 * valprint.c (generic_val_print_enum): Don't call
8420 val_print_scalar_formatted.
8421
8422 2020-03-13 Tom Tromey <tom@tromey.com>
8423
8424 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8425 * valprint.c (generic_value_print_ptr): New function.
8426
8427 2020-03-13 Tom Tromey <tom@tromey.com>
8428
8429 * valprint.c (generic_value_print): Rewrite.
8430
8431 2020-03-13 Tom Tromey <tom@tromey.com>
8432
8433 * p-valprint.c (pascal_object_print_value_fields)
8434 (pascal_object_print_value): New functions.
8435
8436 2020-03-13 Tom Tromey <tom@tromey.com>
8437
8438 * p-valprint.c (pascal_value_print_inner): Rewrite.
8439
8440 2020-03-13 Tom Tromey <tom@tromey.com>
8441
8442 * f-valprint.c (f_value_print_innner): Rewrite.
8443
8444 2020-03-13 Tom Tromey <tom@tromey.com>
8445
8446 * m2-valprint.c (m2_print_unbounded_array): New overload.
8447 (m2_print_unbounded_array): Update.
8448 (m2_print_array_contents): Take a struct value.
8449 (m2_value_print_inner): Rewrite.
8450
8451 2020-03-13 Tom Tromey <tom@tromey.com>
8452
8453 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8454 (d_value_print_inner): New function.
8455 * d-lang.h (d_value_print_inner): Declare.
8456 * d-lang.c (d_language_defn): Use d_value_print_inner.
8457
8458 2020-03-13 Tom Tromey <tom@tromey.com>
8459
8460 * go-valprint.c (go_value_print_inner): New function.
8461 * go-lang.h (go_value_print_inner): Declare.
8462 * go-lang.c (go_language_defn): Use go_value_print_inner.
8463
8464 2020-03-13 Tom Tromey <tom@tromey.com>
8465
8466 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8467 API.
8468 (rust_val_print): Rewrite.
8469 (rust_value_print_inner): New function, from rust_val_print.
8470 (rust_language_defn): Use rust_value_print_inner.
8471
8472 2020-03-13 Tom Tromey <tom@tromey.com>
8473
8474 * ada-valprint.c (ada_value_print_inner): New function.
8475 * ada-lang.h (ada_value_print_inner): Declare.
8476 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8477
8478 2020-03-13 Tom Tromey <tom@tromey.com>
8479
8480 * f-valprint.c (f_value_print_innner): New function.
8481 * f-lang.h (f_value_print_innner): Declare.
8482 * f-lang.c (f_language_defn): Use f_value_print_innner.
8483
8484 2020-03-13 Tom Tromey <tom@tromey.com>
8485
8486 * p-valprint.c (pascal_value_print_inner): New function.
8487 * p-lang.h (pascal_value_print_inner): Declare.
8488 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8489
8490 2020-03-13 Tom Tromey <tom@tromey.com>
8491
8492 * m2-valprint.c (m2_value_print_inner): New function.
8493 * m2-lang.h (m2_value_print_inner): Declare.
8494 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8495
8496 2020-03-13 Tom Tromey <tom@tromey.com>
8497
8498 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8499 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8500 * c-valprint.c (c_value_print_inner): New function.
8501 * c-lang.h (c_value_print_inner): Declare.
8502 * c-lang.c (c_language_defn, cplus_language_defn)
8503 (asm_language_defn, minimal_language_defn): Use
8504 c_value_print_inner.
8505
8506 2020-03-13 Tom Tromey <tom@tromey.com>
8507
8508 * p-valprint.c (pascal_object_print_value_fields): Now static.
8509 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8510
8511 2020-03-13 Tom Tromey <tom@tromey.com>
8512
8513 * c-valprint.c (c_val_print_array): Simplify.
8514
8515 2020-03-13 Tom Tromey <tom@tromey.com>
8516
8517 * valprint.c (value_print_array_elements): New function.
8518 * valprint.h (value_print_array_elements): Declare.
8519
8520 2020-03-13 Tom Tromey <tom@tromey.com>
8521
8522 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8523 * mips-tdep.c (mips_print_register): Use
8524 value_print_scalar_formatted.
8525
8526 2020-03-13 Tom Tromey <tom@tromey.com>
8527
8528 * valprint.h (value_print_scalar_formatted): Declare.
8529 * valprint.c (value_print_scalar_formatted): New function.
8530
8531 2020-03-13 Tom Tromey <tom@tromey.com>
8532
8533 * valprint.h (generic_value_print): Declare.
8534 * valprint.c (generic_value_print): New function.
8535
8536 2020-03-13 Tom Tromey <tom@tromey.com>
8537
8538 * valprint.c (do_val_print): Call la_value_print_inner, if
8539 available.
8540 * rust-lang.c (rust_language_defn): Update.
8541 * p-lang.c (pascal_language_defn): Update.
8542 * opencl-lang.c (opencl_language_defn): Update.
8543 * objc-lang.c (objc_language_defn): Update.
8544 * m2-lang.c (m2_language_defn): Update.
8545 * language.h (struct language_defn) <la_value_print_inner>: New
8546 member.
8547 * language.c (unknown_language_defn, auto_language_defn): Update.
8548 * go-lang.c (go_language_defn): Update.
8549 * f-lang.c (f_language_defn): Update.
8550 * d-lang.c (d_language_defn): Update.
8551 * c-lang.c (c_language_defn, cplus_language_defn)
8552 (asm_language_defn, minimal_language_defn): Update.
8553 * ada-lang.c (ada_language_defn): Update.
8554
8555 2020-03-13 Tom Tromey <tom@tromey.com>
8556
8557 * c-valprint.c (c_value_print): Use common_val_print.
8558
8559 2020-03-13 Tom Tromey <tom@tromey.com>
8560
8561 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8562
8563 2020-03-13 Tom Tromey <tom@tromey.com>
8564
8565 * f-valprint.c (f77_print_array_1, f_val_print): Use
8566 common_val_print.
8567
8568 2020-03-13 Tom Tromey <tom@tromey.com>
8569
8570 * riscv-tdep.c (riscv_print_one_register_info): Use
8571 common_val_print.
8572
8573 2020-03-13 Tom Tromey <tom@tromey.com>
8574
8575 * mi/mi-main.c (output_register): Use common_val_print.
8576
8577 2020-03-13 Tom Tromey <tom@tromey.com>
8578
8579 * infcmd.c (default_print_one_register_info): Use
8580 common_val_print.
8581
8582 2020-03-13 Tom Tromey <tom@tromey.com>
8583
8584 * valprint.h (common_val_print_checked): Declare.
8585 * valprint.c (common_val_print_checked): New function.
8586 * stack.c (print_frame_arg): Use common_val_print_checked.
8587
8588 2020-03-13 Tom Tromey <tom@tromey.com>
8589
8590 * valprint.c (do_val_print): New function, from val_print.
8591 (val_print): Use do_val_print.
8592 (common_val_print): Use do_val_print.
8593
8594 2020-03-13 Tom Tromey <tom@tromey.com>
8595
8596 * valprint.c (value_print): Use scoped_value_mark.
8597
8598 2020-03-13 Tom de Vries <tdevries@suse.de>
8599
8600 PR symtab/25646
8601 * psymtab.c (partial_symtab::partial_symtab): Don't set
8602 globals_offset and statics_offset. Push element onto
8603 current_global_psymbols and current_static_psymbols stacks.
8604 (concat): New function.
8605 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8606 element from current_global_psymbols and current_static_psymbols
8607 stacks. Concat popped elements to global_psymbols and
8608 static_symbols.
8609 (add_psymbol_to_list): Use current_global_psymbols and
8610 current_static_psymbols stacks.
8611 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8612 current_static_psymbols fields.
8613
8614 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8615
8616 * corelow.c (sniff_core_bfd): Remove.
8617 (class core_target) <m_core_vec>: Remove.
8618 (core_target::core_target): Update.
8619 (core_file_fns): Remove.
8620 (deprecated_add_core_fns): Remove.
8621 (default_core_sniffer): Remove.
8622 (sniff_core_bfd): Remove.
8623 (default_check_format): Remove.
8624 (gdb_check_format): Remove.
8625 (core_target_open): Update.
8626 (core_target::get_core_register_section): Update.
8627 (get_core_registers_cb): Update.
8628 (core_target::fetch_registers): Update.
8629 * gdbcore.h (struct core_fns): Remove.
8630 (deprecated_add_core_fns): Remove.
8631 (default_core_sniffer): Remove.
8632 (default_check_format): Remove.
8633
8634 2020-03-12 Tom Tromey <tom@tromey.com>
8635
8636 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8637 CORE_ADDR.
8638 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8639
8640 2020-03-12 Tom Tromey <tom@tromey.com>
8641
8642 * remote.c (remote_target::download_tracepoint)
8643 (remote_target::enable_tracepoint)
8644 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8645 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8646 sprintf_vma.
8647
8648 2020-03-12 Tom Tromey <tom@tromey.com>
8649
8650 * symfile-mem.c: Update CORE_ADDR size assert.
8651
8652 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8653
8654 * selftest.m4: Move to gdbsupport/.
8655 * acinclude.m4: Update path to selftest.m4.
8656
8657 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8658
8659 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8660 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8661 gdbarch-selfselftests.c and selftest-arch.c.
8662 (SUBDIR_UNITTESTS_OBS): Rename to...
8663 (SELFTESTS_OBS): ... this.
8664 (COMMON_SFILES): Remove disasm-selftests.c and
8665 gdbarch-selftests.c.
8666 * configure.ac: Don't add selftest-arch.{c,o} to
8667 CONFIG_{SRCS,OBS}.
8668 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8669 preprocessor conditions.
8670
8671 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8672
8673 * configure.ac: Don't source bfd/development.sh.
8674 * selftest.m4: Modify comment.
8675 * configure: Re-generate.
8676
8677 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8678
8679 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8680 not "true" or "false".
8681 * configure: Re-generate.
8682
8683 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8684
8685 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8686 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8687 renamed to arm_nbsd_supply_gregset.
8688 (fetch_register): Update to call arm_nbsd_supply_gregset.
8689 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8690 (arm_netbsd_nat_target::fetch_registers): Update.
8691 (fetch_elfcore_registers): Removed.
8692 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8693 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8694 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8695 not require NetBSD system headers.
8696 (arm_nbsd_regset): New struct.
8697 (arm_nbsd_iterate_over_regset_sections): New function.
8698 (arm_netbsd_init_abi_common): Updated to call
8699 set_gdbarch_iterate_over_regset_sections.
8700 * arm-nbsd-tdep.h: New file.
8701
8702 2020-03-11 Kevin Buettner <kevinb@redhat.com>
8703
8704 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8705 recursion.
8706
8707 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
8708
8709 * configure: Re-generate.
8710
8711 2020-03-11 Tom Tromey <tromey@adacore.com>
8712
8713 * ada-typeprint.c (print_choices): Fix comment.
8714
8715 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8716
8717 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8718 previous item in the list, when the list has no items.
8719
8720 2020-03-11 Tom de Vries <tdevries@suse.de>
8721
8722 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8723 PROP_LOCLIST handling code.
8724
8725 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8726
8727 * buildsym-legacy.c (record_line): Pass extra parameter to
8728 record_line.
8729 * buildsym.c (buildsym_compunit::record_line): Take an extra
8730 parameter, reduce duplication in the line table, and record the
8731 is_stmt flag in the line table.
8732 * buildsym.h (buildsym_compunit::record_line): Add extra
8733 parameter.
8734 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8735 non-statement lines.
8736 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8737 this to the symtab builder.
8738 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8739 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8740 through to dwarf_record_line_1.
8741 * infrun.c (process_event_stop_test): When stepping, don't stop at
8742 a non-statement instruction, and only refresh the step info when
8743 we land in the middle of a line's range. Also add an extra
8744 comment.
8745 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8746 field.
8747 * record-btrace.c (btrace_find_line_range): Only record lines
8748 marked as is-statement.
8749 * stack.c (frame_show_address): Show the frame address if we are
8750 in a non-statement sal.
8751 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8752 (maintenance_print_one_line_table): Print a header for the is_stmt
8753 column, and include is_stmt information in the output.
8754 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8755 preference to non-statements.
8756 (find_pcs_for_symtab_line): Prefer is-statement entries.
8757 (find_line_common): Likewise.
8758 * symtab.h (struct linetable_entry): Add is_stmt field.
8759 (struct symtab_and_line): Likewise.
8760 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8761 arranging the line table.
8762
8763 2020-03-07 Tom de Vries <tdevries@suse.de>
8764
8765 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8766 DIE.
8767
8768 2020-03-07 Tom Tromey <tom@tromey.com>
8769
8770 * valops.c (value_literal_complex): Remove obsolete comment.
8771 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8772 comment.
8773
8774 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8775
8776 * infrun.h: Forward-declare thread_info.
8777 (set_step_info): Add thread_info parameter, add doc.
8778 * infrun.c (set_step_info): Add thread_info parameter, move doc
8779 to header.
8780 * infrun.c (process_event_stop_test): Pass thread to
8781 set_step_info call.
8782 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8783 set_step_info.
8784 (prepare_one_step): Add thread_info parameter, pass it to
8785 set_step_frame and prepare_one_step (recursive) call.
8786 (step_1): Pass thread to prepare_one_step call.
8787 (step_command_fsm::should_stop): Pass thread to
8788 prepare_one_step.
8789 (until_next_fsm): Pass thread to set_step_frame call.
8790 (finish_command): Pass thread to set_step_info call.
8791
8792 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
8793
8794 * windows-tdep.c (windows_solib_create_inferior_hook):
8795 Check if inferior is running.
8796
8797 2020-03-06 Tom de Vries <tdevries@suse.de>
8798
8799 * NEWS: Fix "the the".
8800 * ctfread.c: Same.
8801
8802 2020-03-06 Tom de Vries <tdevries@suse.de>
8803
8804 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8805
8806 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8807
8808 * .dir-locals.el: Add a comment referencing the other copies of
8809 this file.
8810
8811 2020-03-05 John Baldwin <jhb@FreeBSD.org>
8812
8813 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8814 psargs.
8815
8816 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8817
8818 * .gitattributes: New file.
8819
8820 2020-03-04 Tom Tromey <tom@tromey.com>
8821
8822 * symmisc.c (print_symbol_bcache_statistics)
8823 (print_objfile_statistics): Update.
8824 * symfile.c (allocate_symtab): Use intern.
8825 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8826 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8827 macro_cache>: Remove.
8828 <string_cache>: New member.
8829 (struct objfile) <intern>: New methods.
8830 * elfread.c (elf_symtab_read): Use intern.
8831 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8832 (dwarf2_compute_name, dwarf2_physname)
8833 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8834 names.
8835 (guess_partial_die_structure_name): Update.
8836 (partial_die_info::fixup): Intern name.
8837 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8838 name.
8839 (dwarf2_name): Intern name. Update.
8840 * buildsym.c (buildsym_compunit::get_macro_table): Use
8841 string_cache.
8842
8843 2020-03-04 Tom Tromey <tom@tromey.com>
8844
8845 * jit.c (bfd_open_from_target_memory): Make "target" const.
8846 * corefile.c (gnutarget): Now const.
8847 * gdbcore.h (gnutarget): Now const.
8848
8849 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
8850
8851 * NEWS: Mention support for WOW64 processes.
8852 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8853 (amd64_windows_segment_register_p): Remove static.
8854 (_initialize_amd64_windows_nat): Update.
8855 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8856 * i386-windows-nat.c (context_offset): Update.
8857 (i386_mappings): Rename and remove static.
8858 (i386_windows_segment_register_p): Remove static.
8859 (_initialize_i386_windows_nat): Update.
8860 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8861 (STATUS_WX86_SINGLE_STEP): New macro.
8862 (EnumProcessModulesEx): New macro.
8863 (Wow64SuspendThread): New macro.
8864 (Wow64GetThreadContext): New macro.
8865 (Wow64SetThreadContext): New macro.
8866 (Wow64GetThreadSelectorEntry): New macro.
8867 (windows_set_context_register_offsets): Add static.
8868 (windows_set_segment_register_p): Likewise.
8869 (windows_add_thread): Adapt for WOW64 processes.
8870 (windows_fetch_one_register): Likewise.
8871 (windows_nat_target::fetch_registers): Likewise.
8872 (windows_store_one_register): Likewise.
8873 (display_selector): Likewise.
8874 (display_selectors): Likewise.
8875 (handle_exception): Likewise.
8876 (windows_continue): Likewise.
8877 (windows_nat_target::resume): Likewise.
8878 (windows_add_all_dlls): Likewise.
8879 (do_initial_windows_stuff): Likewise.
8880 (windows_nat_target::attach): Likewise.
8881 (windows_get_exec_module_filename): Likewise.
8882 (windows_nat_target::create_inferior): Likewise.
8883 (windows_xfer_siginfo): Likewise.
8884 (_initialize_loadable): Initialize Wow64SuspendThread,
8885 Wow64GetThreadContext, Wow64SetThreadContext,
8886 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8887 * windows-nat.h (windows_set_context_register_offsets):
8888 Remove declaration.
8889 (windows_set_segment_register_p): Likewise.
8890 (i386_windows_segment_register_p): Add declaration.
8891 (amd64_windows_segment_register_p): Likewise.
8892
8893 2020-03-04 Luis Machado <luis.machado@linaro.org>
8894
8895 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8896 in "info registers" for AArch64/ARM.
8897
8898 The change caused "info registers" to not print GPR's.
8899
8900 gdb/ChangeLog:
8901
8902 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8903
8904 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8905 when reg->group is empty and reggroup is not.
8906
8907 2020-03-03 Tom Tromey <tromey@adacore.com>
8908
8909 * dwarf2/frame.c (struct dwarf2_frame_cache)
8910 <checked_tailcall_bottom, entry_cfa_sp_offset,
8911 entry_cfa_sp_offset_p>: Remove members.
8912 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8913 (dwarf2_frame_prev_register): Don't call
8914 dwarf2_tailcall_sniffer_first.
8915 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8916 * frame-unwind.c (add_unwinder): New fuction.
8917 (frame_unwind_init): Use it. Add tailcall unwinder.
8918
8919 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8920 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8921
8922 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8923 value should be printed as true.
8924
8925 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
8926
8927 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8928 (windows_init_abi): Set and use windows_so_ops.
8929
8930 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8931
8932 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8933 when verifying if dealing with a convenience variable.
8934
8935 2020-03-03 Luis Machado <luis.machado@linaro.org>
8936
8937 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8938
8939 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8940
8941 * infrun.c (gdbarch_supports_displaced_stepping): New.
8942 (use_displaced_stepping): Break up conditions in smaller pieces.
8943 Use gdbarch_supports_displaced_stepping.
8944 (displaced_step_prepare_throw): Use
8945 gdbarch_supports_displaced_stepping.
8946
8947 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8948
8949 * NEWS: Mention new behaviour of the history filename.
8950 * top.c (write_history_p): Add comment.
8951 (show_write_history_p): Add header comment, give a different
8952 message when history writing is on, but the history filename is
8953 empty.
8954 (history_filename): Add comment.
8955 (history_filename_empty): New function.
8956 (show_history_filename): Add header comment, give a different
8957 message when the filename is empty.
8958 (init_history): Compare history_filename against nullptr, and only
8959 read history if the filename is not empty.
8960 (set_history_filename): Add header comment, and only make
8961 non-empty filenames absolute.
8962 (init_main): Make the filename argument to 'set history filename'
8963 optional.
8964
8965 2020-03-02 Christian Biesinger <cbiesinger@google.com>
8966
8967 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8968 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8969 (fetch_fp_register): Update.
8970 (fetch_fp_regs): Update.
8971 (store_fp_register): Update.
8972 (store_fp_regs): Update.
8973 (arm_netbsd_nat_target::read_description): New function.
8974 (fetch_elfcore_registers): Update.
8975
8976 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8977
8978 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8979 general_thread if the stop reply is missing a thread-id.
8980 (remote_target::process_stop_reply): Use the first non-exited
8981 thread if the target didn't pass a thread-id.
8982 * infrun.c (do_target_wait): Move call to
8983 switch_to_inferior_no_thread to ....
8984 (do_target_wait_1): ... here.
8985
8986 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8987
8988 * debuginfod-support.c: Include defs.h first.
8989
8990 2020-02-28 Tom de Vries <tdevries@suse.de>
8991
8992 * symfile.c (set_initial_language): Use default language for lookup.
8993
8994 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
8995
8996 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8997 reader variable, pass `this` to read_cutu_die_from_dwo.
8998
8999 2020-02-27 Aaron Merey <amerey@redhat.com>
9000
9001 * source.c (open_source_file): Check for nullptr when computing
9002 srcpath.
9003
9004 2020-02-27 Tom Tromey <tromey@adacore.com>
9005
9006 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
9007 member.
9008 (dwarf2_add_field): Don't update nfields.
9009 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
9010
9011 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9012
9013 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
9014 abs.
9015
9016 2020-02-26 Tom Tromey <tom@tromey.com>
9017
9018 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
9019 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
9020 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
9021 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
9022 per_cu_data.
9023
9024 2020-02-26 Tom Tromey <tom@tromey.com>
9025
9026 * dwarf2/index-write.c (psym_index_map): Change type.
9027 (add_address_entry_worker, write_one_signatured_type)
9028 (recursively_count_psymbols, recursively_write_psymbols)
9029 (class debug_names, psyms_seen_size, write_gdbindex)
9030 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
9031
9032 2020-02-26 Aaron Merey <amerey@redhat.com>
9033
9034 * Makefile.in: Handle optional debuginfod support.
9035 * NEWS: Update.
9036 * README: Add --with-debuginfod summary.
9037 * config.in: Regenerate.
9038 * configure: Regenerate.
9039 * configure.ac: Handle optional debuginfod support.
9040 * debuginfod-support.c: debuginfod helper functions.
9041 * debuginfod-support.h: Ditto.
9042 * doc/gdb.texinfo: Add --with-debuginfod to configure options
9043 summary.
9044 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
9045 when a dwz file cannot be found.
9046 * elfread.c (elf_symfile_read): Query debuginfod servers when a
9047 debuginfo file cannot be found.
9048 * source.c (open_source_file): Query debuginfod servers when a
9049 source file cannot be found.
9050 * top.c (print_gdb_configuration): Include
9051 --{with,without}-debuginfod in the output.
9052
9053 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
9054
9055 * thread.c (thr_try_catch_cmd): Print thread name.
9056
9057 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
9058
9059 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
9060 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9061 dwarf2_fetch_die_type_sect_off): Move to...
9062 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9063 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9064 dwarf2_fetch_die_type_sect_off): ... here.
9065 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9066 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9067 dwarf2_fetch_die_type_sect_off): Move doc to header file.
9068
9069 2020-02-26 Tom de Vries <tdevries@suse.de>
9070
9071 PR gdb/25603
9072 * symfile.c (set_initial_language): Exit-early if
9073 language_mode == language_mode_manual.
9074
9075 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9076
9077 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
9078 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
9079 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
9080
9081 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
9082
9083 * gdbtypes.c (create_array_type_with_stride): Handle negative
9084 array strides.
9085 * valarith.c (value_subscripted_rvalue): Likewise.
9086
9087 2020-02-25 Luis Machado <luis.machado@linaro.org>
9088
9089 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
9090
9091 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9092
9093 * loc.h (dwarf2_get_die_type): Move to...
9094 * read.h (dwarf2_get_die_type): ... here.
9095 * read.c (dwarf2_get_die_type): Move doc to header.
9096
9097 2020-02-25 Joel Brobecker <brobecker@adacore.com>
9098
9099 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
9100 'gnulib/Makefile.in' to the list.
9101
9102 2020-02-24 Tom Tromey <tom@tromey.com>
9103
9104 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
9105 Remove.
9106 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
9107 XOBNEWVEC.
9108
9109 2020-02-24 Tom Tromey <tom@tromey.com>
9110
9111 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
9112 New method.
9113 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
9114 (dw2_do_instantiate_symtab, dw2_get_file_names)
9115 (build_type_psymtab_dependencies, load_full_type_unit): Update.
9116
9117 2020-02-24 Tom Tromey <tom@tromey.com>
9118
9119 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
9120 make_scoped_restore.
9121 (dwarf2_psymtab::read_symtab): Don't clear
9122 reading_partial_symbols.
9123
9124 2020-02-24 Tom de Vries <tdevries@suse.de>
9125
9126 PR gdb/25592
9127 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
9128
9129 2020-02-24 Tom de Vries <tdevries@suse.de>
9130
9131 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
9132 commands layout next/prev/regs.
9133
9134 2020-02-22 Tom Tromey <tom@tromey.com>
9135
9136 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
9137 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
9138
9139 2020-02-22 Tom Tromey <tom@tromey.com>
9140
9141 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
9142
9143 2020-02-22 Tom Tromey <tom@tromey.com>
9144
9145 * tui/tui-win.c (_initialize_tui_win): Add usage text.
9146 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
9147 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
9148 * tui/tui.c (_initialize_tui): Add usage text.
9149
9150 2020-02-22 Tom Tromey <tom@tromey.com>
9151
9152 * tui/tui-win.c (tui_set_focus_command)
9153 (tui_set_win_height_command): Use error_no_arg.
9154 (_initialize_tui_win): Update help text.
9155 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
9156
9157 2020-02-22 Tom Tromey <tom@tromey.com>
9158
9159 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
9160 * tui/tui-disasm.h (struct tui_disasm_window)
9161 <display_start_addr>: Declare.
9162 * tui/tui-source.h (struct tui_source_window)
9163 <display_start_addr>: Declare.
9164 * tui/tui-winsource.h (struct tui_source_window_base)
9165 <show_source_line, display_start_addr>: New methods.
9166 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
9167 Rename and move to protected section.
9168 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
9169 (tui_source_window_base::do_erase_source_content): Update.
9170 (tui_source_window_base::show_source_line): Now a method.
9171 (tui_source_window_base::show_source_content)
9172 (tui_source_window_base::tui_source_window_base)
9173 (tui_source_window_base::rerender)
9174 (tui_source_window_base::refill)
9175 (tui_source_window_base::do_scroll_horizontal)
9176 (tui_source_window_base::set_is_exec_point_at)
9177 (tui_source_window_base::update_breakpoint_info)
9178 (tui_source_window_base::update_exec_info): Update.
9179 * tui/tui-source.c (tui_source_window::set_contents)
9180 (tui_source_window::showing_source_p)
9181 (tui_source_window::do_scroll_vertical)
9182 (tui_source_window::location_matches_p)
9183 (tui_source_window::line_is_displayed): Update.
9184 (tui_source_window::display_start_addr): New method.
9185 * tui/tui-disasm.c (tui_disasm_window::set_contents)
9186 (tui_disasm_window::do_scroll_vertical)
9187 (tui_disasm_window::location_matches_p): Update.
9188 (tui_disasm_window::display_start_addr): New method.
9189
9190 2020-02-22 Tom Tromey <tom@tromey.com>
9191
9192 * NEWS: Add entry for gdb.register_window_type.
9193 * tui/tui-layout.h (window_factory): New typedef.
9194 (tui_register_window): Declare.
9195 * tui/tui-layout.c (saved_tui_windows): New global.
9196 (tui_apply_current_layout): Use it.
9197 (tui_register_window): New function.
9198 * python/python.c (do_start_initialization): Call
9199 gdbpy_initialize_tui.
9200 (python_GdbMethods): Add "register_window_type" function.
9201 * python/python-internal.h (gdbpy_register_tui_window)
9202 (gdbpy_initialize_tui): Declare.
9203 * python/py-tui.c: New file.
9204 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
9205
9206 2020-02-22 Tom Tromey <tom@tromey.com>
9207
9208 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
9209
9210 2020-02-22 Tom Tromey <tom@tromey.com>
9211
9212 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
9213 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
9214 * tui/tui-data.c (tui_set_win_with_focus): Remove.
9215 (tui_set_win_focus_to): Move from tui-win.c.
9216
9217 2020-02-22 Tom Tromey <tom@tromey.com>
9218
9219 * tui/tui-layout.c (make_standard_window, get_locator_window): New
9220 functions.
9221 (known_window_types): New global.
9222 (tui_get_window_by_name): Reimplement.
9223 (initialize_known_windows): New function.
9224 (validate_window_name): Rewrite.
9225 (_initialize_tui_layout): Call initialize_known_windows.
9226
9227 2020-02-22 Tom Tromey <tom@tromey.com>
9228
9229 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
9230 Remove constants.
9231 * tui/tui-winsource.h (struct tui_source_window_base)
9232 <tui_source_window_base>: Remove parameter.
9233 * tui/tui-winsource.c
9234 (tui_source_window_base::tui_source_window_base): Remove
9235 parameter.
9236 (tui_source_window_base::refill): Update.
9237 * tui/tui-stack.h (struct tui_locator_window)
9238 <tui_locator_window>: Update.
9239 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
9240 Default the constructor.
9241 * tui/tui-regs.h (struct tui_data_item_window)
9242 <tui_data_item_window>: Default the constructor.
9243 (struct tui_data_window) <tui_data_window>: Likewise.
9244 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
9245 Default the constructor.
9246 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
9247 Default the constructor.
9248 <type>: Remove.
9249 (struct tui_win_info) <tui_win_info>: Default the constructor.
9250 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
9251 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
9252 Default the constructor.
9253
9254 2020-02-22 Tom Tromey <tom@tromey.com>
9255
9256 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
9257 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
9258 * tui/tui-win.c (tui_resize_all): Don't call
9259 tui_delete_invisible_windows.
9260 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
9261 done.
9262 (tui_set_layout): Update.
9263 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
9264 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
9265 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
9266
9267 2020-02-22 Tom Tromey <tom@tromey.com>
9268
9269 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
9270 correctly.
9271
9272 2020-02-22 Tom Tromey <tom@tromey.com>
9273
9274 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
9275
9276 2020-02-22 Tom Tromey <tom@tromey.com>
9277
9278 * tui/tui-winsource.h (struct tui_source_window_iterator)
9279 <inner_iterator>: New etytypedef.
9280 <tui_source_window_iterator>: Take "end" parameter.
9281 <tui_source_window_iterator>: Take iterator.
9282 <operator*, advance>: Update.
9283 <m_iter>: Change type.
9284 <m_end>: New field.
9285 (struct tui_source_windows) <begin, end>: Update.
9286 * tui/tui-layout.c (tui_windows): New global.
9287 (tui_apply_current_layout): Clear tui_windows.
9288 (tui_layout_window::apply): Update tui_windows.
9289 * tui/tui-data.h (tui_windows): Declare.
9290 (all_tui_windows): Now inline function.
9291 (class tui_window_iterator, struct all_tui_windows): Remove.
9292
9293 2020-02-22 Tom Tromey <tom@tromey.com>
9294
9295 PR tui/17850:
9296 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
9297 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
9298 "height" argument.
9299 (class tui_layout_window) <get_sizes>: Likewise.
9300 (class tui_layout_split) <tui_layout_split>: Add "vertical"
9301 argument.
9302 <get_sizes>: Add "height" argument.
9303 <m_vertical>: New field.
9304 * tui/tui-layout.c (tui_layout_split::clone): Update.
9305 (tui_layout_split::get_sizes): Add "height" argument.
9306 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
9307 (tui_new_layout_command): Parse "-horizontal".
9308 (_initialize_tui_layout): Update help string.
9309 (tui_layout_split::specification): Add "-horizontal" when needed.
9310 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
9311 argument.
9312 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
9313 New methods.
9314
9315 2020-02-22 Tom Tromey <tom@tromey.com>
9316
9317 * tui/tui-layout.h (enum tui_adjust_result): New.
9318 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
9319 (class tui_layout_window) <adjust_size>: Return
9320 tui_adjust_result. Rewrite.
9321 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9322 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9323
9324 2020-02-22 Tom Tromey <tom@tromey.com>
9325
9326 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9327 parameter and return types.
9328 (class tui_layout_base) <specification>: Add "depth".
9329 (class tui_layout_window) <specification>: Add "depth".
9330 (class tui_layout_split) <specification>: Add "depth".
9331 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9332 and return types.
9333 (tui_new_layout_command): Parse sub-layouts.
9334 (_initialize_tui_layout): Update help string.
9335 (tui_layout_window::specification): Add "depth".
9336 (add_layout_command): Update.
9337
9338 2020-02-22 Tom Tromey <tom@tromey.com>
9339
9340 * NEWS: Add "tui new-layout" item.
9341 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9342 Add new-layout command to help text.
9343 (validate_window_name): New function.
9344 (tui_new_layout_command): New function.
9345 (_initialize_tui_layout): Register "new-layout".
9346 (tui_layout_window::specification): New method.
9347 (tui_layout_window::specification): New method.
9348 * tui/tui-layout.h (class tui_layout_base) <specification>: New
9349 method.
9350 (class tui_layout_window) <specification>: New method.
9351 (class tui_layout_split) <specification>: New method.
9352
9353 2020-02-22 Tom Tromey <tom@tromey.com>
9354
9355 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9356 * tui/tui-win.c (window_name_completer): Update comment.
9357 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9358 Declare method.
9359 (class tui_layout_window) <replace_window>: Likewise.
9360 (class tui_layout_split) <replace_window>: Likewise.
9361 (tui_set_layout): Don't declare.
9362 (tui_set_initial_layout): Declare function.
9363 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9364 (asm_regs_layout): New globals.
9365 (tui_current_layout, show_layout): Remove.
9366 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9367 (find_layout, tui_apply_layout): New function.
9368 (layout_completer): Remove.
9369 (tui_next_layout): Reimplement.
9370 (tui_next_layout_command): New function.
9371 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9372 (tui_regs_layout): Reimplement.
9373 (tui_regs_layout_command): New function.
9374 (extract_display_start_addr): Rewrite.
9375 (next_layout, prev_layout): Remove.
9376 (tui_layout_window::replace_window): New method.
9377 (tui_layout_split::replace_window): New method.
9378 (destroy_layout): New function.
9379 (layout_list): New global.
9380 (add_layout_command): New function.
9381 (initialize_layouts): Update.
9382 (tui_layout_command): New function.
9383 (_initialize_tui_layout): Install "layout" commands.
9384 * tui/tui-data.h (enum tui_layout_type): Remove.
9385 (tui_current_layout): Don't declare.
9386
9387 2020-02-22 Tom Tromey <tom@tromey.com>
9388
9389 * tui/tui-regs.c (tui_reg_layout): Remove.
9390 (tui_reg_command): Use tui_regs_layout.
9391 * tui/tui-layout.h (tui_reg_command): Declare.
9392 * tui/tui-layout.c (tui_reg_command): New function.
9393
9394 2020-02-22 Tom Tromey <tom@tromey.com>
9395
9396 * tui/tui.c (tui_rl_delete_other_windows): Call
9397 tui_remove_some_windows.
9398 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9399 Declare method.
9400 (class tui_layout_window) <remove_windows>: New method.
9401 (class tui_layout_split) <remove_windows>: Declare.
9402 (tui_remove_some_windows): Declare.
9403 * tui/tui-layout.c (tui_remove_some_windows): New function.
9404 (tui_layout_split::remove_windows): New method.
9405
9406 2020-02-22 Tom Tromey <tom@tromey.com>
9407
9408 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9409 * tui/tui-layout.h (tui_next_layout): Declare.
9410 * tui/tui-layout.c (tui_next_layout): New function.
9411
9412 2020-02-22 Tom Tromey <tom@tromey.com>
9413
9414 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9415 correct coordinates.
9416
9417 2020-02-22 Tom Tromey <tom@tromey.com>
9418
9419 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9420 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9421 DATA_WIN case.
9422
9423 2020-02-22 Tom Tromey <tom@tromey.com>
9424
9425 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9426 TUI_DISASM_WIN, not tui_win_list.
9427
9428 2020-02-22 Tom Tromey <tom@tromey.com>
9429
9430 * valprint.c (generic_val_print_enum_1)
9431 (val_print_type_code_flags): Style member names.
9432 * rust-lang.c (val_print_struct, rust_print_enum)
9433 (rust_print_struct_def, rust_internal_print_type): Style member
9434 names.
9435 * p-valprint.c (pascal_object_print_value_fields): Style member
9436 names. Only call fprintf_symbol_filtered for static members.
9437 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9438 * f-valprint.c (f_val_print): Style member names.
9439 * f-typeprint.c (f_type_print_base): Style member names.
9440 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9441 call fprintf_symbol_filtered for static members.
9442 (cp_print_class_member): Style member names.
9443 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9444 member names.
9445 * ada-valprint.c (ada_print_scalar): Style enum names.
9446 (ada_val_print_enum): Likewise.
9447 * ada-typeprint.c (print_enum_type): Style enum names.
9448
9449 2020-02-21 Tom Tromey <tom@tromey.com>
9450
9451 * psympriv.h (struct partial_symtab): Update comment.
9452
9453 2020-02-21 Tom Tromey <tromey@adacore.com>
9454
9455 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9456 type is CORE_ADDR.
9457
9458 2020-02-21 Tom de Vries <tdevries@suse.de>
9459
9460 PR gdb/25534
9461 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9462 if dependencies[i]->user != NULL.
9463
9464 2020-02-21 Ali Tamur <tamur@google.com>
9465
9466 * dwarf2/read.c (dwarf2_name): Add null check.
9467
9468 2020-02-20 Tom Tromey <tom@tromey.com>
9469
9470 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9471 ">=", in binary search.
9472 (dwarf2_find_containing_comp_unit): New overload.
9473 (run_test): New self-test.
9474 (_initialize_dwarf2_read): Register new test.
9475
9476 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
9477
9478 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9479 * riscv-tdep.h: Likewise.
9480 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9481 rv32-only CSR.
9482 * features/riscv/64bit-csr.xml: Regenerated.
9483
9484 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9485 Tom Tromey <tom@tromey.com>
9486
9487 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9488 of 'fputc_unfiltered'.
9489 (putchar_unfiltered): Call 'fputc_unfiltered'.
9490 (fputc_unfiltered): Call 'fputs_unfiltered'.
9491
9492 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9493
9494 * config.in: Regenerate.
9495 * configure: Regenerate.
9496 * configure.ac: Add --with-python-libdir option.
9497 * main.c: Use WITH_PYTHON_LIBDIR.
9498
9499 2020-02-19 Tom Tromey <tom@tromey.com>
9500
9501 * symtab.c (general_symbol_info::compute_and_set_names): Use
9502 obstack_strndup. Simplify call to symbol_set_demangled_name.
9503
9504 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
9505
9506 * dwarf2/read.c (allocate_signatured_type_table,
9507 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9508 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9509 Remove objfile parameter, update all callers.
9510
9511 2020-02-19 Doug Evans <dje@google.com>
9512
9513 PR rust/25535
9514 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9515 rust_enum_variant calculation.
9516
9517 2020-02-19 Tom Tromey <tromey@adacore.com>
9518
9519 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9520
9521 2020-02-19 Tom Tromey <tromey@adacore.com>
9522
9523 * ada-lang.c (cache_symbol): Use obstack_strdup.
9524
9525 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9526
9527 * configure: Regenerate.
9528
9529 2020-02-19 Tom Tromey <tromey@adacore.com>
9530
9531 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9532 NULL check.
9533
9534 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
9535
9536 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9537
9538 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9539
9540 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9541 if GDBSERVER is not defined.
9542 (riscv_tdesc_cache): Likewise, also store const target_desc.
9543 (STATIC_IN_GDB): Define.
9544 (riscv_create_target_description): Update declaration with
9545 STATIC_IN_GDB.
9546 (riscv_lookup_target_description): New function, only define if
9547 GDBSERVER is not defined.
9548 * arch/riscv.h (riscv_create_target_description): Declare only
9549 when GDBSERVER is defined.
9550 (riscv_lookup_target_description): New declaration when GDBSERVER
9551 is not defined.
9552 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9553 (riscv_linux_read_features): ...this, and return
9554 riscv_gdbarch_features instead of target_desc.
9555 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9556 (riscv_linux_read_description): Rename to...
9557 (riscv_linux_read_features): ...this.
9558 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9559 Update to use riscv_gdbarch_features and
9560 riscv_lookup_target_description.
9561 * riscv-tdep.c (riscv_find_default_target_description): Use
9562 riscv_lookup_target_description instead of
9563 riscv_create_target_description.
9564
9565 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9566
9567 * valprint.c (generic_val_print_enum_1): When printing a flag
9568 enum with value 0 and there is no enumerator with value 0, print
9569 just "0" instead of "(unknown: 0x0)".
9570
9571 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9572
9573 * valprint.c (generic_val_print_enum_1): Print unknown part of
9574 flag enum in hex.
9575
9576 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9577
9578 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9579 flag enums to contain duplicate enumerators.
9580 * valprint.c (generic_val_print_enum_1): Update comment.
9581
9582 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9583
9584 * dwarf2/read.c: Include "count-one-bits.h".
9585 (update_enumeration_type_from_children): If an enumerator has
9586 multiple bits set, don't treat the enumeration as a "flag enum".
9587 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9588 of flag enums have 0 or 1 bit set.
9589
9590 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9591
9592 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9593 conversion.
9594 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9595 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9596 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9597 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9598 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9599
9600 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9601
9602 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9603
9604 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9605
9606 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9607 displaced_step_closure_up.
9608 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9609 (struct displaced_step_closure_up):
9610 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9611 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9612 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9613 Likewise.
9614 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9615 * gdbarch.c, gdbarch.h: Re-generate.
9616 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9617 displaced_step_closure_up.
9618 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9619 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9620 * infrun.h (displaced_step_closure_up): New type alias.
9621 (struct displaced_step_inferior_state) <step_closure>: Change
9622 type to displaced_step_closure_up.
9623 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9624 displaced_step_closure_up.
9625 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9626
9627 2020-02-14 Tom Tromey <tom@tromey.com>
9628
9629 * minidebug.c (gnu_debug_key): New global.
9630 (find_separate_debug_file_in_section): Use it.
9631
9632 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9633
9634 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9635 std::unique_ptr.
9636 * gdbarch.c: Re-generate.
9637 * gdbarch.h: Re-generate.
9638 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9639 change.
9640 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9641 type to std::unique_ptr.
9642 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9643 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9644 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9645 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9646 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9647 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9648 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9649 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9650 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9651
9652 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9653
9654 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9655 std::unique_ptr.
9656 (displaced_step_clear): Rename to...
9657 (displaced_step_reset): ... this. Just call displaced->reset ().
9658 (displaced_step_clear_cleanup): Rename to...
9659 (displaced_step_reset_cleanup): ... this.
9660 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9661 (displaced_step_fixup): Likewise.
9662 (resume_1): Likewise.
9663 (handle_inferior_event): Restore child's memory before calling
9664 displaced_step_fixup on the parent.
9665 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9666 to std::unique_ptr.
9667 <step_closure>: Change type to std::unique_ptr.
9668
9669 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9670
9671 * arm-tdep.c: Include count-one-bits.h.
9672 (cleanup_block_store_pc): Use count_one_bits.
9673 (cleanup_block_load_pc): Use count_one_bits.
9674 (arm_copy_block_xfer): Use count_one_bits.
9675 (thumb2_copy_block_xfer): Use count_one_bits.
9676 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9677 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9678 (thumb_get_next_pcs_raw): Use count_one_bits.
9679 (arm_get_next_pcs_raw): Use count_one_bits_l.
9680 * arch/arm.c (bitcount): Remove.
9681 * arch/arm.h (bitcount): Remove.
9682
9683 2020-02-14 Tom Tromey <tromey@adacore.com>
9684
9685 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9686 Update.
9687 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9688 * dwarf2/loc.c (call_site_find_chain_1): Return
9689 unique_xmalloc_ptr.
9690 (call_site_find_chain): Likewise.
9691
9692 2020-02-14 Richard Biener <rguenther@suse.de>
9693
9694 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9695 on expression with division operators.
9696
9697 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9698
9699 * MAINTAINERS (Write After Approval): Adding myself.
9700
9701 2020-02-12 Tom Tromey <tom@tromey.com>
9702
9703 * event-loop.c (event_data, gdb_event, event_handler_func):
9704 Remove.
9705
9706 2020-02-12 Tom Tromey <tom@tromey.com>
9707
9708 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9709 (dwarf2_frame_objfile_data): Add comment.
9710 (find_comp_unit, set_comp_unit): New functions.
9711 (dwarf2_frame_find_fde): Use find_comp_unit.
9712 (dwarf2_build_frame_info): Use set_comp_unit.
9713
9714 2020-02-12 Tom Tromey <tom@tromey.com>
9715
9716 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9717 (comp_unit): Don't initialize objfile.
9718 (execute_cfa_program): Add text_offset parameter.
9719 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9720 (dwarf2_frame_cache): Update.
9721 (dwarf2_build_frame_info): Don't set "objfile" member.
9722
9723 2020-02-12 Tom Tromey <tom@tromey.com>
9724
9725 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9726 (decode_frame_entry): Likewise.
9727 (dwarf2_build_frame_info): Update.
9728
9729 2020-02-12 Tom Tromey <tom@tromey.com>
9730
9731 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9732 (decode_frame_entry_1): Use the comp_unit obstack.
9733
9734 2020-02-12 Tom Tromey <tom@tromey.com>
9735
9736 * dwarf2/frame.c (struct comp_unit): Add initializers and
9737 constructor.
9738 (dwarf2_frame_objfile_data): Store a comp_unit.
9739 (dwarf2_frame_find_fde): Update.
9740 (dwarf2_build_frame_info): Use "new".
9741
9742 2020-02-12 Tom Tromey <tom@tromey.com>
9743
9744 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9745 (dwarf2_fde_table): Typedef for std::vector.
9746 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9747 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9748 (decode_frame_entry): Update.
9749 (dwarf2_build_frame_info): Use "new".
9750
9751 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9752
9753 * arm-tdep.c (arm_gdbarch_init): Update.
9754 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9755 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9756 have_neon, is_m>: Change to bool.
9757
9758 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9759
9760 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9761
9762 2020-02-12 Tom Tromey <tom@tromey.com>
9763
9764 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9765
9766 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
9767
9768 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9769 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9770
9771 2020-02-11 Tom Tromey <tom@tromey.com>
9772
9773 * psymtab.h: Update comment.
9774
9775 2020-02-11 Tom Tromey <tom@tromey.com>
9776
9777 * gdb_obstack.h (struct auto_obstack): Use
9778 DISABLE_COPY_AND_ASSIGN.
9779
9780 2020-02-11 Tom Tromey <tom@tromey.com>
9781
9782 * dwarf2/frame.h (struct objfile): Don't forward declare.
9783
9784 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9785
9786 * cris-tdep.c (cris_supply_gregset): Change signature to match
9787 what struct regset expects.
9788 (cris_regset): New struct.
9789 (fetch_core_registers): Remove.
9790 (cris_iterate_over_regset_sections): New function.
9791 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9792 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9793
9794 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9795
9796 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9797 registers.
9798
9799 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9800
9801 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9802
9803 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9804
9805 * configure: Re-generate.
9806
9807 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9808
9809 * configure: Re-generate.
9810
9811 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9812
9813 * acinclude: Update warning.m4 path.
9814 * warning.m4: Move to gdbsupport.
9815
9816 2020-02-11 Tom Tromey <tromey@adacore.com>
9817
9818 * remote.c (remote_console_output): Update.
9819 * printcmd.c (printf_command): Update.
9820 * event-loop.c (gdb_wait_for_event): Update.
9821 * linux-nat.c (sigchld_handler): Update.
9822 * remote-sim.c (gdb_os_write_stdout): Update.
9823 (gdb_os_flush_stdout): Update.
9824 (gdb_os_flush_stderr): Update.
9825 (gdb_os_write_stderr): Update.
9826 * exceptions.c (print_exception): Update.
9827 * remote-fileio.c (remote_fileio_func_read): Update.
9828 (remote_fileio_func_write): Update.
9829 * tui/tui.c (tui_enable): Update.
9830 * tui/tui-interp.c (tui_interp::init): Update.
9831 * utils.c (init_page_info): Update.
9832 (putchar_unfiltered, fputc_unfiltered): Update.
9833 (gdb_flush): Update.
9834 (emit_style_escape): Update.
9835 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9836 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9837 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9838 (stderr_file::write): Update.
9839 (stderr_file::puts): Update.
9840 * ui-file.h (ui_file_isatty, ui_file_write)
9841 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9842 (ui_file_puts): Don't declare.
9843
9844 2020-02-10 Tom de Vries <tdevries@suse.de>
9845
9846 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9847 sentinel to char *.
9848
9849 2020-02-09 Tom de Vries <tdevries@suse.de>
9850
9851 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9852 filename if it matches "<artificial>".
9853
9854 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9855
9856 * windows-tdep.c (struct enum_value_name): New struct.
9857 (create_enum): New function.
9858 (windows_get_siginfo_type): Create and use enum types.
9859
9860 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9861
9862 * NEWS: Mention $_siginfo support for Windows.
9863 * windows-nat.c (handle_exception): Set siginfo_er.
9864 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9865 (windows_xfer_siginfo): New function.
9866 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9867 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9868 (init_windows_gdbarch_data): New function.
9869 (get_windows_gdbarch_data): New function.
9870 (windows_get_siginfo_type): New function.
9871 (windows_init_abi): Register windows_get_siginfo_type.
9872 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9873
9874 2020-02-08 Tom Tromey <tom@tromey.com>
9875
9876 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9877 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9878 <keep>: Declare method.
9879 <m_keep>: Remove member.
9880 <~cutu_reader>: Remove.
9881 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9882 (cutu_reader::cutu_reader): Update.
9883 (cutu_reader::keep): Rename from ~cutu_reader.
9884 (process_psymtab_comp_unit, build_type_psymtabs_1)
9885 (process_skeletonless_type_unit, load_partial_comp_unit)
9886 (load_full_comp_unit, dwarf2_read_addr_index)
9887 (read_signatured_type): Update.
9888
9889 2020-02-08 Tom Tromey <tom@tromey.com>
9890
9891 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9892 "want_partial_unit" parameter.
9893 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9894 Inline check for DW_TAG_partial_unit.
9895 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9896
9897 2020-02-08 Tom Tromey <tom@tromey.com>
9898
9899 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9900 read.c.
9901 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9902 read.c.
9903
9904 2020-02-08 Tom Tromey <tom@tromey.com>
9905
9906 * dwarf2/read.c (read_address): Move to comp-unit.c.
9907 (dwarf2_rnglists_process, dwarf2_ranges_process)
9908 (read_attribute_value, dwarf_decode_lines_1)
9909 (var_decode_location, decode_locdesc): Update.
9910 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9911 read.c. Remove "cu" parameter.
9912 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9913 method.
9914
9915 2020-02-08 Tom Tromey <tom@tromey.com>
9916
9917 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9918 (read_indirect_line_string): Update.
9919 * dwarf2/comp-unit.c (read_offset): Remove.
9920 (read_comp_unit_head): Update.
9921 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9922 method.
9923 (read_offset): Don't declare.
9924
9925 2020-02-08 Tom Tromey <tom@tromey.com>
9926
9927 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9928 * dwarf2/read.c (struct comp_unit_head): Move to
9929 dwarf2/comp-unit.h.
9930 (enum class rcuh_kind): Move to comp-unit.h.
9931 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9932 (read_comp_unit_head, error_check_comp_unit_head)
9933 (read_and_check_comp_unit_head): Move to comp-unit.c.
9934 (read_offset, dwarf_unit_type_name): Likewise.
9935 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9936 (cutu_reader::cutu_reader, read_call_site_scope)
9937 (find_partial_die, follow_die_offset): Update.
9938 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9939
9940 2020-02-08 Tom Tromey <tom@tromey.com>
9941
9942 * dwarf2/read.c (read_offset_1): Move to leb.c.
9943 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9944 (dwarf_decode_macro_bytes): Update.
9945 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9946 * dwarf2/leb.h (read_offset): Declare.
9947
9948 2020-02-08 Tom Tromey <tom@tromey.com>
9949
9950 * dwarf2/read.c (dwarf2_section_size): Remove.
9951 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9952 Update.
9953 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9954
9955 2020-02-08 Tom Tromey <tom@tromey.com>
9956
9957 * dwarf2/read.c (read_initial_length): Move to leb.c.
9958 * dwarf2/leb.h (read_initial_length): Declare.
9959 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9960 handle_nonstd parameter.
9961 * dwarf2/frame.c (read_initial_length): Remove.
9962 (decode_frame_entry_1): Update.
9963
9964 2020-02-08 Tom Tromey <tom@tromey.com>
9965
9966 * dwarf2/loc.c (dwarf2_find_location_expression)
9967 (dwarf_evaluate_loc_desc::get_tls_address)
9968 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9969 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9970 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9971 (dwarf2_compile_property_to_c)
9972 (dwarf2_loc_desc_get_symbol_read_needs)
9973 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9974 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9975 (loclist_describe_location, loclist_tracepoint_var_ref)
9976 (loclist_generate_c_location): Update.
9977 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9978 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9979 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9980 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9981 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9982 (dwarf2_per_cu_data::addr_size)
9983 (dwarf2_per_cu_data::ref_addr_size)
9984 (dwarf2_per_cu_data::text_offset)
9985 (dwarf2_per_cu_data::addr_type): Now methods.
9986 (per_cu_header_read_in): Make per_cu "const".
9987 (dwarf2_version): Remove.
9988 (dwarf2_per_cu_data::int_type): Now a method.
9989 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9990 (set_die_type, read_array_type, read_subrange_index_type)
9991 (read_tag_string_type, read_subrange_type): Update.
9992 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9993 offset_size, ref_addr_size, text_offset, addr_type, version,
9994 objfile, int_type, addr_sized_int_type>: Declare methods.
9995
9996 2020-02-08 Tom Tromey <tom@tromey.com>
9997
9998 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9999 Move earlier.
10000
10001 2020-02-08 Tom Tromey <tom@tromey.com>
10002
10003 * dwarf2/read.h (dwarf_line_debug): Declare.
10004 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
10005 * dwarf2/read.c: Move line_header code to new files.
10006 (dwarf_line_debug): No longer static.
10007 * dwarf2/line-header.c: New file.
10008 * dwarf2/line-header.h: New file.
10009
10010 2020-02-08 Tom Tromey <tom@tromey.com>
10011
10012 * dwarf2/read.c (struct line_header) <file_full_name,
10013 file_file_name>: Return unique_xmalloc_ptr.
10014 (line_header::file_file_name): Update.
10015 (line_header::file_full_name): Update.
10016 (dw2_get_file_names_reader): Update.
10017 (macro_start_file): Update.
10018
10019 2020-02-08 Tom Tromey <tom@tromey.com>
10020
10021 * dwarf2/read.c (struct line_header) <file_full_name,
10022 file_file_name>: Declare methods.
10023 (dw2_get_file_names_reader): Update.
10024 (file_file_name): Now a method.
10025 (file_full_name): Likewise.
10026 (macro_start_file): Update.
10027
10028 2020-02-08 Tom Tromey <tom@tromey.com>
10029
10030 * dwarf2/read.c (dwarf_always_disassemble)
10031 (show_dwarf_always_disassemble): Move to loc.c.
10032 (_initialize_dwarf2_read): Move "always-disassemble" registration
10033 to loc.c.
10034 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
10035 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
10036 static.
10037 (show_dwarf_always_disassemble): Move from read.c.
10038 (_initialize_dwarf2loc): Move always-disassemble from read.c.
10039
10040 2020-02-08 Tom Tromey <tom@tromey.com>
10041
10042 * dwarf2/read.c (~dwarf2_per_objfile): Update.
10043 (create_quick_file_names_table): Return htab_up.
10044 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
10045 Update.
10046 * dwarf2/read.h (struct dwarf2_per_objfile)
10047 <quick_file_names_table>: Now htab_up.
10048
10049 2020-02-08 Tom Tromey <tom@tromey.com>
10050
10051 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
10052
10053 2020-02-08 Tom Tromey <tom@tromey.com>
10054
10055 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
10056 Rewrite.
10057 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
10058 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
10059 (abbrev_table::abbrev_table): No longer inline.
10060 (ABBREV_HASH_SIZE): Remove.
10061 (abbrev_table::m_abbrevs): Now an htab_up.
10062
10063 2020-02-08 Tom Tromey <tom@tromey.com>
10064
10065 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
10066 (cutu_reader): Update.
10067 (build_type_psymtabs_1): Update.
10068 * dwarf2/abbrev.c (abbrev_table::read): Rename.
10069 (abbrev_table::alloc_abbrev): Update.
10070 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
10071 (abbrev_table::read): New static method, renamed from
10072 abbrev_table_read_table.
10073 (abbrev_table::alloc_abbrev)
10074 (abbrev_table::add_abbrev): Now private.
10075 (abbrev_table::abbrev_table): Now private.
10076 (abbrev_table::m_abbrev_obstack): Now private. Rename.
10077
10078 2020-02-08 Tom Tromey <tom@tromey.com>
10079
10080 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
10081 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
10082 htab_up.
10083
10084 2020-02-08 Tom Tromey <tom@tromey.com>
10085
10086 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
10087 htab_up.
10088 (lookup_dwo_unit_in_dwp): Update.
10089 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
10090 on obstack.
10091
10092 2020-02-08 Tom Tromey <tom@tromey.com>
10093
10094 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
10095 obstack.
10096
10097 2020-02-08 Tom Tromey <tom@tromey.com>
10098
10099 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
10100 line_header_hash.
10101 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
10102 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
10103 Change type to htab_up.
10104
10105 2020-02-08 Tom Tromey <tom@tromey.com>
10106
10107 * dwarf2/read.c (allocate_type_unit_groups_table): Return
10108 htab_up. Don't allocate on obstack.
10109 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
10110 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
10111 Change type to htab_up.
10112
10113 2020-02-08 Tom Tromey <tom@tromey.com>
10114
10115 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
10116 Change type to htab_up.
10117 * dwarf2/read.c (create_signatured_type_table_from_index)
10118 (create_signatured_type_table_from_debug_names)
10119 (create_all_type_units, add_type_unit)
10120 (lookup_dwo_signatured_type, lookup_signatured_type)
10121 (process_skeletonless_type_unit): Update.
10122 (create_debug_type_hash_table, create_debug_types_hash_table):
10123 Change type of types_htab.
10124 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
10125 htab_up. Don't allocate on obstack.
10126 (create_cus_hash_table): Change type of cus_htab parameter.
10127 (struct dwo_file) <cus, tus>: Now htab_up.
10128 (lookup_dwo_signatured_type, lookup_dwo_cutu)
10129 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
10130 (queue_and_load_all_dwo_tus): Update.
10131 * dwarf2/index-write.c (write_gdbindex): Update.
10132 (write_debug_names): Update.
10133
10134 2020-02-08 Tom Tromey <tom@tromey.com>
10135
10136 * dwarf2/read.h (struct dwarf2_queue_item): Move from
10137 dwarf2/read.c. Remove "next" member. Add constructor ntad
10138 destructor.
10139 (struct dwarf2_per_objfile) <queue>: New member.
10140 * dwarf2/read.c (struct dwarf2_queue_item): Move to
10141 dwarf2/read.h.
10142 (dwarf2_queue, dwarf2_queue_tail): Remove.
10143 (class dwarf2_queue_guard): Add parameter to constructor. Use
10144 DISABLE_COPY_AND_ASSIGN.
10145 <m_per_objfile>: New member.
10146 <~dwarf2_queue_guard>: Rewrite.
10147 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
10148 Update.
10149 (~dwarf2_queue_item): New.
10150
10151 2020-02-08 Tom Tromey <tom@tromey.com>
10152
10153 * dwarf2/read.c (struct die_info) <has_children>: New member.
10154 (dw2_get_file_names_reader): Remove has_children.
10155 (dw2_get_file_names): Update.
10156 (read_cutu_die_from_dwo): Remove has_children.
10157 (cutu_reader::init_tu_and_read_dwo_dies)
10158 (cutu_reader::cutu_reader): Update.
10159 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
10160 Remove has_children.
10161 (build_type_psymtabs_1, process_skeletonless_type_unit)
10162 (load_partial_comp_unit, load_full_comp_unit): Update.
10163 (create_dwo_cu_reader): Remove has_children.
10164 (create_cus_hash_table, read_die_and_children): Update.
10165 (read_full_die_1,read_full_die): Remove has_children.
10166 (read_signatured_type): Update.
10167 (class cutu_reader) <has_children>: Remove.
10168
10169 2020-02-08 Tom Tromey <tom@tromey.com>
10170
10171 * dwarf2/expr.c: Rename from dwarf2expr.c.
10172 * dwarf2/expr.h: Rename from dwarf2expr.h.
10173 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
10174 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
10175 * dwarf2/frame.c: Rename from dwarf2-frame.c.
10176 * dwarf2/frame.h: Rename from dwarf2-frame.h.
10177 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
10178 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
10179 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
10180 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
10181 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
10182 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
10183 * dwarf2/loc.c: Rename from dwarf2loc.c.
10184 * dwarf2/loc.h: Rename from dwarf2loc.h.
10185 * dwarf2/read.c: Rename from dwarf2read.c.
10186 * dwarf2/read.h: Rename from dwarf2read.h.
10187 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
10188 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
10189 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
10190 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
10191 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
10192 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
10193 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
10194 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
10195 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
10196 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
10197 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
10198 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
10199 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
10200 Update.
10201 * Makefile.in (COMMON_SFILES): Update.
10202 (HFILES_NO_SRCDIR): Update.
10203
10204 2020-02-08 Tom Tromey <tom@tromey.com>
10205
10206 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
10207 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
10208
10209 2020-02-08 Tom Tromey <tom@tromey.com>
10210
10211 * dwarf2read.h (struct die_info): Don't declare.
10212
10213 2020-02-08 Tom Tromey <tom@tromey.com>
10214
10215 * dwarf2read.h (die_info_ptr): Remove typedef.
10216
10217 2020-02-08 Tom Tromey <tom@tromey.com>
10218
10219 * dwarf2read.c (read_call_site_scope)
10220 (handle_data_member_location, dwarf2_add_member_fn)
10221 (mark_common_block_symbol_computed, read_common_block)
10222 (attr_to_dynamic_prop, partial_die_info::read)
10223 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
10224 (dwarf2_symbol_mark_computed, set_die_type): Update.
10225 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
10226 method.
10227 (attr_form_is_block): Don't declare.
10228 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
10229
10230 2020-02-08 Tom Tromey <tom@tromey.com>
10231
10232 * dwarf2read.c (dwarf2_find_base_address, )
10233 (read_call_site_scope, rust_containing_type)
10234 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
10235 (handle_data_member_location, dwarf2_add_member_fn)
10236 (get_alignment, read_structure_type, process_structure_scope)
10237 (mark_common_block_symbol_computed, read_common_block)
10238 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
10239 (partial_die_info::read, read_attribute_value, new_symbol)
10240 (lookup_die_type, dwarf2_get_ref_die_offset)
10241 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
10242 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
10243 (dwarf2_symbol_mark_computed): Update.
10244 * dwarf2/attribute.h (struct attribute) <value_as_address,
10245 form_is_section_offset, form_is_constant, form_is_ref>: Declare
10246 methods.
10247 (value_as_address, attr_form_is_section_offset)
10248 (attr_form_is_constant, attr_form_is_ref): Don't declare.
10249 * dwarf2/attribute.c (attribute::value_as_address)
10250 (attribute::form_is_section_offset, attribute::form_is_constant)
10251 (attribute::form_is_ref): Now methods.
10252
10253 2020-02-08 Tom Tromey <tom@tromey.com>
10254
10255 * dwarf2read.c (struct attribute, DW_STRING)
10256 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
10257 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
10258 (attr_form_is_block, attr_form_is_section_offset)
10259 (attr_form_is_constant, attr_form_is_ref): Move.
10260 * dwarf2/attribute.h: New file.
10261 * dwarf2/attribute.c: New file, from dwarf2read.c.
10262 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
10263
10264 2020-02-08 Tom Tromey <tom@tromey.com>
10265
10266 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
10267 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
10268 Move.
10269 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
10270 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
10271 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
10272 abbrev.c.
10273 * dwarf2/abbrev.h: New file.
10274 * dwarf2/abbrev.c: New file, from dwarf2read.c.
10275 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
10276
10277 2020-02-08 Tom Tromey <tom@tromey.com>
10278
10279 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
10280 (dwarf2_section_size, dwarf2_get_section_info)
10281 (create_signatured_type_table_from_debug_names)
10282 (create_addrmap_from_aranges, read_debug_names_from_section)
10283 (get_gdb_index_contents_from_section, read_comp_unit_head)
10284 (error_check_comp_unit_head, read_abbrev_offset)
10285 (create_debug_type_hash_table, init_cu_die_reader)
10286 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
10287 (read_comp_units_from_section, create_cus_hash_table)
10288 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10289 (create_dwp_v2_section, dwarf2_rnglists_process)
10290 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
10291 (abbrev_table_read_table, read_indirect_string_at_offset_from)
10292 (read_indirect_string_from_dwz, read_addr_index_1)
10293 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
10294 (dwarf_decode_macro_bytes, dwarf_decode_macros)
10295 (fill_in_loclist_baton): Update.
10296 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
10297 get_containing_section, get_bfd_owner, get_bfd_section,
10298 get_file_name, get_id, get_flags, empty, read>: Declare methods.
10299 (dwarf2_read_section, get_section_name, get_section_file_name)
10300 (get_containing_section, get_section_bfd_owner)
10301 (get_section_bfd_section, get_section_name, get_section_file_name)
10302 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
10303 declare.
10304 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
10305 (dwarf2_section_info::get_bfd_owner)
10306 (dwarf2_section_info::get_bfd_section)
10307 (dwarf2_section_info::get_name)
10308 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
10309 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
10310 (dwarf2_section_info::read): Now methods.
10311 * dwarf-index-write.c (class debug_names): Update.
10312
10313 2020-02-08 Tom Tromey <tom@tromey.com>
10314
10315 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
10316 Move to dwarf2/section.h.
10317 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
10318 (get_section_bfd_section, get_section_name)
10319 (get_section_file_name, get_section_id, get_section_flags)
10320 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
10321 dwarf2/section.c.
10322 * dwarf2/section.h: New file.
10323 * dwarf2/section.c: New file, from dwarf2read.c.
10324 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10325
10326 2020-02-08 Tom Tromey <tom@tromey.com>
10327
10328 * dwarf2read.h (read_unsigned_leb128): Don't declare.
10329 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10330 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10331 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10332 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10333 * dwarf2/leb.h: New file, from dwarf2read.c.
10334 * dwarf2/leb.c: New file, from dwarf2read.c.
10335 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10336 Remove.
10337 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10338 (COMMON_SFILES): Add dwarf2/leb.c.
10339
10340 2020-02-08 Joel Brobecker <brobecker@adacore.com>
10341
10342 GDB 9.1 released.
10343
10344 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10345
10346 PR gdb/25190:
10347 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10348 * gdb/remote.c (remote_console_output): Update.
10349 * gdb/ui-file.c (fputs_unfiltered): Rename to...
10350 (ui_file_puts): ...this.
10351 * gdb/ui-file.h (ui_file_puts): Add declaration.
10352 * gdb/utils.c (emit_style_escape): Update.
10353 (flush_wrap_buffer): Update.
10354 (fputs_maybe_filtered): Update.
10355 (fputs_unfiltered): Add function.
10356
10357 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10358
10359 * gdb/event-loop.c (gdb_wait_for_event): Update.
10360 * gdb/printcmd.c (printf_command): Update.
10361 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10362 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10363 (gdb_os_flush_stderr): Update.
10364 * gdb/remote.c (remote_console_output): Update.
10365 * gdb/ui-file.c (gdb_flush): Rename to...
10366 (ui_file_flush): ...this.
10367 (stderr_file::write): Update.
10368 (stderr_file::puts): Update.
10369 * gdb/ui-file.h (gdb_flush): Rename to...
10370 (ui_file_flush): ...this.
10371 * gdb/utils.c (gdb_flush): Add function.
10372 * gdb/utils.h (gdb_flush): Add declaration.
10373
10374 2020-02-07 Tom Tromey <tromey@adacore.com>
10375
10376 PR breakpoints/24915:
10377 * source.c (find_and_open_source): Do not check basenames_may_differ.
10378
10379 2020-02-07 Tom Tromey <tom@tromey.com>
10380
10381 * README: Update gdbserver documentation.
10382 * gdbserver: Move to top level.
10383 * configure.tgt (build_gdbserver): Remove.
10384 * configure.ac: Remove --enable-gdbserver.
10385 * configure: Rebuild.
10386 * Makefile.in (distclean): Don't mention gdbserver.
10387
10388 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10389
10390 * source-cache.c (source_cache::ensure): Surround
10391 get_plain_source_lines with a try/catch.
10392 (source_cache::get_line_charpos): Get rid of try/catch
10393 and only check for the return value of "ensure".
10394 * tui/tui-source.c (tui_source_window::set_contents):
10395 Simplify "nlines" calculation.
10396
10397 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10398
10399 * MAINTAINERS (Write After Approval): Add myself.
10400
10401 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10402
10403 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10404 function call.
10405
10406 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10407
10408 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10409
10410 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
10411
10412 * nat/riscv-linux-tdesc.h: New file.
10413 * nat/riscv-linux-tdesc.c: New file, taking code from...
10414 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10415 ... here.
10416 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10417 NATDEPFILES.
10418
10419 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10420
10421 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10422 we don't set the fake simulator ptid to the null_ptid.
10423
10424 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
10425
10426 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10427 * gdbthread.h (class thread_info) <resumed>: Likewise.
10428 * infrun.c (resume_1): Likewise.
10429 (proceed): Likewise.
10430 (infrun_thread_stop_requested): Likewise.
10431 (stop_all_threads): Likewise.
10432 (handle_inferior_event): Likewise.
10433 (restart_threads): Likewise.
10434 (finish_step_over): Likewise.
10435 (keep_going_stepped_thread): Likewise.
10436 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10437 (linux_handle_extended_wait): Likewise.
10438 * record-btrace.c (get_thread_current_frame_id): Likewise.
10439 * record-full.c (record_full_wait_1): Likewise.
10440 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10441 * target.c (target_resume): Likewise.
10442 * thread.c (set_running_thread): Likewise.
10443
10444 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10445
10446 * f-valprint.c (f77_print_array_1): Changed datatype of index
10447 variable to LONGEST from int to enable it to contain bound
10448 values correctly.
10449
10450 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
10451
10452 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10453 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10454 offsets according to FLEN determined.
10455 (riscv_linux_nat_target::read_description): Determine FLEN
10456 dynamically.
10457 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10458 according to FLEN determined.
10459 (riscv_linux_nat_target::store_registers): Likewise.
10460
10461 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10462
10463 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10464 when reg->group is empty and reggroup is not.
10465
10466 2020-01-31 Tom Tromey <tromey@adacore.com>
10467
10468 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10469 Call beneath target's mourn_inferior after unpushing.
10470
10471 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10472
10473 PR tui/9765
10474 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10475 have enough lines to fill the screen, still return the lowest
10476 address we found.
10477
10478 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10479
10480 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10481 '-', '<', and '>' commands.
10482
10483 2020-01-29 Pedro Alves <palves@redhat.com>
10484 Sergio Durigan Junior <sergiodj@redhat.com>
10485
10486 * infcmd.c (construct_inferior_arguments): Assert that
10487 'argc' is greater than 0.
10488
10489 2020-01-29 Luis Machado <luis.machado@linaro.org>
10490
10491 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10492 (BRK_INSN_MASK): Define to 0xd4200000.
10493 (aarch64_program_breakpoint_here_p): New function.
10494 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10495 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10496 breakpoint.c.
10497 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10498 breakpoint.h
10499 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10500 call gdbarch_program_breakpoint_here_p.
10501 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10502 default_program_breakpoint_here_p, changed return type to bool and
10503 simplified.
10504 * breakpoint.h (program_breakpoint_here): Moved prototype to
10505 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10506 return type to bool.
10507 * gdbarch.c: Regenerate.
10508 * gdbarch.h: Regenerate.
10509 * gdbarch.sh (program_breakpoint_here_p): New method.
10510 * infrun.c (handle_signal_stop): Call
10511 gdbarch_program_breakpoint_here_p.
10512
10513 2020-01-26 Tom Tromey <tom@tromey.com>
10514
10515 * ctfread.c (struct ctf_fp_info): Reindent.
10516 (_initialize_ctfread): Remove.
10517
10518 2020-01-26 Tom Tromey <tom@tromey.com>
10519
10520 * psymtab.c (partial_map_expand_apply)
10521 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10522 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10523 (psym_print_stats, psym_expand_symtabs_for_function)
10524 (psym_map_symbol_filenames, psym_map_matching_symbols)
10525 (psym_expand_symtabs_matching)
10526 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10527 (maintenance_check_psymtabs): Use new methods.
10528 * psympriv.h (struct partial_symtab) <readin_p,
10529 get_compunit_symtab>: New methods.
10530 <readin, compunit_symtab>: Remove members.
10531 (struct standard_psymtab): New.
10532 (struct legacy_psymtab): Derive from standard_psymtab.
10533 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10534 standard_psymtab.
10535 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10536
10537 2020-01-26 Tom Tromey <tom@tromey.com>
10538
10539 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10540 read_dependencies. Add assert.
10541 * psymtab.c (partial_symtab::read_dependencies): New method.
10542 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10543 method.
10544 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10545 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10546 read_dependencies.
10547 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10548 Add assert.
10549
10550 2020-01-26 Tom Tromey <tom@tromey.com>
10551
10552 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10553 Call expand_psymtab.
10554 (xcoff_read_symtab): Call expand_psymtab.
10555 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10556 legacy_expand_psymtab.
10557 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10558 method.
10559 (struct legacy_psymtab) <expand_psymtab>: Implement.
10560 <legacy_expand_psymtab>: New member.
10561 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10562 (parse_partial_symbols): Set legacy_expand_psymtab.
10563 (psymtab_to_symtab_1): Change argument order. Call
10564 expand_psymtab.
10565 (new_psymtab): Set legacy_expand_psymtab.
10566 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10567 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10568 expand_psymtab.
10569 (dwarf2_psymtab::expand_psymtab): Rename from
10570 psymtab_to_symtab_1. Call expand_psymtab.
10571 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10572 (dbx_end_psymtab): Likewise.
10573 (dbx_psymtab_to_symtab_1): Change argument order. Call
10574 expand_psymtab.
10575 (dbx_read_symtab): Call expand_psymtab.
10576 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10577 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10578 (ctf_psymtab::read_symtab): Call expand_psymtab.
10579
10580 2020-01-26 Tom Tromey <tom@tromey.com>
10581
10582 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10583 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10584 messages.
10585 * mdebugread.c (mdebug_read_symtab): Remove prints.
10586 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10587 assert.
10588 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10589
10590 2020-01-26 Tom Tromey <tom@tromey.com>
10591
10592 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10593 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10594 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10595 legacy_symtab.
10596 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10597 * psymtab.c (psymtab_to_symtab): Call method.
10598 (dump_psymtab): Update.
10599 * psympriv.h (struct partial_symtab): Add virtual destructor.
10600 <read_symtab>: New method.
10601 (struct legacy_symtab): New.
10602 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10603 (struct pst_map) <pst>: Now a legacy_psymtab.
10604 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10605 (new_psymtab): Use legacy_psymtab.
10606 * dwarf2read.h (struct dwarf2_psymtab): New.
10607 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10608 * dwarf2read.c (dwarf2_create_include_psymtab)
10609 (dwarf2_build_include_psymtabs, create_type_unit_group)
10610 (create_partial_symtab, process_psymtab_comp_unit_reader)
10611 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10612 (set_partial_user): Use dwarf2_psymtab.
10613 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10614 (psymtab_to_symtab_1, process_full_comp_unit)
10615 (process_full_type_unit, dwarf2_ranges_read)
10616 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10617 (dwarf_decode_lines): Use dwarf2_psymtab.
10618 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10619 (add_address_entry_worker, write_one_signatured_type)
10620 (recursively_count_psymbols, recursively_write_psymbols)
10621 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10622 (write_debug_names): Likewise.
10623 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10624 <pst>: Now a legacy_psymtab.
10625 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10626 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10627 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10628 * ctfread.c (struct ctf_psymtab): New.
10629 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10630 ctf_psymtab.
10631 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10632 (create_partial_symtab): Return a ctf_psymtab.
10633 (scan_partial_symbols): Update.
10634
10635 2020-01-26 Tom Tromey <tom@tromey.com>
10636
10637 * xcoffread.c (xcoff_start_psymtab): Use new.
10638 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10639 renamed from start_psymtab_common.
10640 * psympriv.h (struct partial_symtab): Add new constructor.
10641 (start_psymtab_common): Don't declare.
10642 * mdebugread.c (parse_partial_symbols): Use new.
10643 * dwarf2read.c (create_partial_symtab): Use new.
10644 * dbxread.c (start_psymtab): Use new.
10645 * ctfread.c (create_partial_symtab): Use new.
10646
10647 2020-01-26 Tom Tromey <tom@tromey.com>
10648
10649 * xcoffread.c (xcoff_end_psymtab): Use new.
10650 * psymtab.c (start_psymtab_common): Use new.
10651 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10652 Update.
10653 * psympriv.h (struct partial_symtab): Add parameters to
10654 constructor. Don't inline.
10655 (allocate_psymtab): Don't declare.
10656 * mdebugread.c (new_psymtab): Use new.
10657 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10658 * dbxread.c (dbx_end_psymtab): Use new.
10659
10660 2020-01-26 Tom Tromey <tom@tromey.com>
10661
10662 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10663 allocate_psymtab. Update documentation.
10664 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10665 allocate_psymtab. Do not use new.
10666 (allocate_psymtab): Use new. Update.
10667
10668 2020-01-26 Tom Tromey <tom@tromey.com>
10669
10670 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10671 * psymtab.c (psym_print_stats): Update.
10672 * psympriv.h (struct partial_symtab) <readin,
10673 psymtabs_addrmap_supported, anonymous>: Now bool.
10674 * mdebugread.c (psymtab_to_symtab_1): Update.
10675 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10676 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10677 (process_full_comp_unit, process_full_type_unit): Update.
10678 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10679 * ctfread.c (psymtab_to_symtab): Update.
10680
10681 2020-01-26 Tom Tromey <tom@tromey.com>
10682
10683 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10684 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10685 * psymtab.c (psymtab_storage): Delete psymtabs.
10686 (psymtab_storage::allocate_psymtab): Use new.
10687 (psymtab_storage::discard_psymtab): Use delete.
10688 * psympriv.h (struct partial_symtab): Add constructor and
10689 initializers.
10690
10691 2020-01-26 Tom Tromey <tom@tromey.com>
10692
10693 * machoread.c: Do not include psympriv.h.
10694
10695 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10696
10697 * NEWS: Mention the new option and the set/show commands.
10698
10699 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10700
10701 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10702 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10703 (validate_exec_file): New variables, enums, functions.
10704 (exec_file_locate_attach, print_section_info): Style the filenames.
10705 (_initialize_exec): Install show_exec_file_mismatch_command and
10706 set_exec_file_mismatch_command.
10707 * gdbcore.h (validate_exec_file): Declare.
10708 * infcmd.c (attach_command): Call validate_exec_file.
10709 * remote.c ( remote_target::remote_add_inferior): Likewise.
10710
10711 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10712
10713 * frame.c (find_frame_sal): Move call to get_next_frame into more
10714 inner scope.
10715 * inline-frame.c (inilne_state) <inline_state>: Update argument
10716 types.
10717 (inilne_state) <skipped_symbol>: Rename to...
10718 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10719 (skip_inline_frames): Build vector of skipped symbols and use this
10720 to reate the inline_state.
10721 (inline_skipped_symbol): Add a comment and some assertions, fetch
10722 skipped symbol from the list.
10723
10724 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10725
10726 * buildsym.c (lte_is_less_than): Delete.
10727 (buildsym_compunit::end_symtab_with_blockvector): Create local
10728 lambda function to sort line table entries, and use
10729 std::stable_sort instead of std::sort.
10730 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10731 markers when looking for a previous line.
10732
10733 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10734
10735 * dwarf2read.c (lnp_state_machine::record_line): Include
10736 end_sequence parameter in debug print out. Record the line if we
10737 are at an end_sequence marker even if it's not the start of a
10738 statement.
10739 * symmisc.c (maintenance_print_one_line_table): Print end of
10740 sequence markers with 'END' not '0'.
10741
10742 2020-01-24 Pedro Alves <palves@redhat.com>
10743
10744 PR gdb/25410
10745 * thread.c (scoped_restore_current_thread::restore): Use
10746 switch_to_inferior_no_thread.
10747 * exec.c: Include "progspace-and-thread.h".
10748 (add_target_sections, remove_target_sections):
10749 scoped_restore_current_pspace_and_thread instead of
10750 scoped_restore_current_thread.
10751 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10752 and aspace to the inferior before calling clone_program_space.
10753 Remove stale comment.
10754
10755 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10756
10757 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10758 (arm_netbsd_nat_target::fetch_registers): ...this.
10759 (arm_nbsd_nat_target::store_registers): Rename to...
10760 (arm_netbsd_nat_target::store_registers): ...this.
10761
10762 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10763
10764 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10765 register_t.
10766
10767 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10768
10769 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10770 Update comment.
10771 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10772 Likewise.
10773 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10774 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10775 the correct replacement (iterate_over_regset_sections).
10776 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10777 Update comment.
10778
10779 2020-01-24 Graham Markall <graham.markall@embecosm.com>
10780
10781 PR gdb/23718
10782 * gdb/python/python.c (execute_gdb_command): Call
10783 async_enable_stdin in catch block.
10784
10785 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10786
10787 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10788 SWITCH_THRU_ALL_UIS.
10789
10790 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10791
10792 PR tui/9765
10793 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10794 comment, add extra parameter, and update to store previous symbol
10795 when appropriate.
10796 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10797 add extra parameter.
10798 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10799 remove unneeded parameter, add try/catch around gdb_print_insn,
10800 rewrite to add items to asm_lines vector.
10801 (tui_find_backward_disassembly_start_address): New function.
10802 (tui_find_disassembly_address): Updated throughout.
10803 (tui_disasm_window::set_contents): Update for changes to
10804 tui_disassemble.
10805 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10806 number of lines to scroll.
10807
10808 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10809
10810 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10811 (SECT_OFF_DATA): Likewise.
10812 (SECT_OFF_RODATA): Likewise.
10813 (SECT_OFF_TEXT): Likewise.
10814 (SECT_OFF_BSS): Likewise.
10815 (struct objfile) <text_section_offset, data_section_offset>: New
10816 methods.
10817 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10818 objfile::text_section_offset.
10819 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10820 * coffread.c (coff_symtab_read): Likewise.
10821 (enter_linenos): Likewise.
10822 (process_coff_symbol): Likewise.
10823 * ctfread.c (get_objfile_text_range): Likewise.
10824 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10825 Use objfile::data_section_offset.
10826 * dwarf2-frame.c (execute_cfa_program): Use
10827 objfile::text_section_offset.
10828 (dwarf2_frame_find_fde): Likewise.
10829 * dwarf2read.c (create_addrmap_from_index): Likewise.
10830 (create_addrmap_from_aranges): Likewise.
10831 (dw2_find_pc_sect_compunit_symtab): Likewise.
10832 (process_psymtab_comp_unit_reader): Likewise.
10833 (add_partial_symbol): Likewise.
10834 (add_partial_subprogram): Likewise.
10835 (process_full_comp_unit): Likewise.
10836 (read_file_scope): Likewise.
10837 (read_func_scope): Likewise.
10838 (read_lexical_block_scope): Likewise.
10839 (read_call_site_scope): Likewise.
10840 (dwarf2_rnglists_process): Likewise.
10841 (dwarf2_ranges_process): Likewise.
10842 (dwarf2_ranges_read): Likewise.
10843 (dwarf_decode_lines_1): Likewise.
10844 (new_symbol): Likewise.
10845 (dwarf2_fetch_die_loc_sect_off): Likewise.
10846 (dwarf2_per_cu_text_offset): Likewise.
10847 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10848 * hppa-tdep.c (read_unwind_info): Likewise.
10849 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10850 * psympriv.h (struct partial_symtab): Likewise.
10851 * psymtab.c (find_pc_sect_psymtab): Likewise.
10852 * solib-svr4.c (enable_break): Likewise.
10853 * stap-probe.c (relocate_address): Use
10854 objfile::data_section_offset.
10855 * xcoffread.c (enter_line_range): Use
10856 objfile::text_section_offset.
10857 (read_xcoff_symtab): Likewise.
10858
10859 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10860
10861 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10862 declaration to narrower scopes.
10863
10864 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10865
10866 * darwin-nat.h (struct darwin_exception_msg, enum
10867 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10868 Move up.
10869 (class darwin_nat_target) <wait_1, check_new_threads,
10870 decode_exception_message, decode_message, stop_inferior,
10871 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10872 * darwin-nat.c (darwin_check_new_threads): Rename to...
10873 (darwin_nat_target::check_new_threads): ... this.
10874 (darwin_suspend_inferior_it): Remove.
10875 (darwin_decode_exception_message): Rename to...
10876 (darwin_nat_target::decode_exception_message): ... this.
10877 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10878 (darwin_decode_message): Rename to...
10879 (darwin_nat_target::decode_message): ... this.
10880 (cancel_breakpoint): Rename to...
10881 (darwin_nat_target::cancel_breakpoint): ... this.
10882 (darwin_wait): Rename to...
10883 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10884 instead of iterate_over_inferiors.
10885 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10886 (darwin_stop_inferior): Rename to...
10887 (darwin_nat_target::stop_inferior): ... this.
10888 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10889 (darwin_init_thread_list): Rename to...
10890 (darwin_nat_target::init_thread_list): ... this.
10891 (darwin_ptrace_him): Rename to...
10892 (darwin_nat_target::ptrace_him): ... this.
10893 (darwin_nat_target::create_inferior): Pass lambda function to
10894 fork_inferior.
10895 (darwin_nat_target::detach): Call stop_inferior instead of
10896 darwin_stop_inferior.
10897 * fork-inferior.h (fork_inferior): Change init_trace_fun
10898 parameter to gdb::function_view.
10899 * fork-inferior.c (fork_inferior): Likewise.
10900
10901 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
10902
10903 * i386-cygwin-tdep.c (core_process_module_section): Update.
10904 * windows-nat.c (struct lm_info_windows): Add text_offset.
10905 (windows_xfer_shared_libraries): Update.
10906 * windows-tdep.c (windows_xfer_shared_library):
10907 Add text_offset_cached argument.
10908 * windows-tdep.h (windows_xfer_shared_library): Update.
10909
10910 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10911
10912 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10913
10914 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10915
10916 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10917 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10918 replace with range-based for.
10919 (gdbsim_interrupt_inferior): Remove.
10920 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10921 with a range-based for. Inline code from
10922 gdbsim_interrupt_inferior.
10923
10924 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10925
10926 * infrun.c (proceed): Fix indentation.
10927
10928 2020-01-21 Tom Tromey <tromey@adacore.com>
10929
10930 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10931 * python/python.c (python_extension_ops): Update.
10932 (gdbpy_colorize): New function.
10933 * python/lib/gdb/__init__.py (colorize): New function.
10934 * extension.h (ext_lang_colorize): Declare.
10935 * extension.c (ext_lang_colorize): New function.
10936 * extension-priv.h (struct extension_language_ops) <colorize>: New
10937 member.
10938 * cli/cli-style.c (_initialize_cli_style): Update help text.
10939
10940 2020-01-21 Luis Machado <luis.machado@linaro.org>
10941
10942 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10943 <cond>: Change type to bool.
10944 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10945 (aarch64_displaced_step_cb): Likewise.
10946 (aarch64_displaced_step_tb): Likewise.
10947
10948 2020-01-21 Luis Machado <luis.machado@linaro.org>
10949
10950 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10951 output.
10952
10953 2020-01-21 Luis Machado <luis.machado@linaro.org>
10954
10955 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10956 <pc_adjust>: Adjust the documentation.
10957 (aarch64_displaced_step_fixup): Check if PC really moved before
10958 adjusting it.
10959
10960 2020-01-19 Tom Tromey <tom@tromey.com>
10961
10962 * disasm.c (~gdb_disassembler): New destructor.
10963 (gdb_buffered_insn_length): Call disassemble_free_target.
10964 * disasm.h (class gdb_disassembler): Declare destructor. Use
10965 DISABLE_COPY_AND_ASSIGN.
10966
10967 2020-01-19 Tom Tromey <tom@tromey.com>
10968
10969 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10970 (die_reader_func_ftype): Remove.
10971 (cutu_reader): New class.
10972 (dw2_get_file_names_reader): Remove "data" parameter.
10973 (dw2_get_file_names): Use cutu_reader.
10974 (create_debug_type_hash_table): Update.
10975 (read_cutu_die_from_dwo): Update comment.
10976 (lookup_dwo_unit): Add dwo_name parameter.
10977 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10978 die_reader_func_ftype and data parameters.
10979 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10980 Remove die_reader_func_ftype and data parameters.
10981 (~cutu_reader): New; from init_cutu_and_read_dies.
10982 (cutu_reader::cutu_reader): Rename from
10983 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10984 and data parameters.
10985 (init_cutu_and_read_dies_simple): Remove.
10986 (struct process_psymtab_comp_unit_data): Remove.
10987 (process_psymtab_comp_unit_reader): Remove data parameter; add
10988 want_partial_unit and pretend_language parameters.
10989 (process_psymtab_comp_unit): Use cutu_reader.
10990 (build_type_psymtabs_reader): Remove data parameter.
10991 (build_type_psymtabs_1): Use cutu_reader.
10992 (process_skeletonless_type_unit): Likewise.
10993 (load_partial_comp_unit_reader): Remove.
10994 (load_partial_comp_unit): Use cutu_reader.
10995 (load_full_comp_unit_reader): Remove.
10996 (load_full_comp_unit): Use cutu_reader.
10997 (struct create_dwo_cu_data): Remove.
10998 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10999 dwo_unit parameters.
11000 (create_cus_hash_table): Use cutu_reader.
11001 (struct dwarf2_read_addr_index_data): Remove.
11002 (dwarf2_read_addr_index_reader): Remove.
11003 (dwarf2_read_addr_index): Use cutu_reader.
11004 (read_signatured_type_reader): Remove.
11005 (read_signatured_type): Use cutu_reader.
11006
11007 2020-01-19 Tom Tromey <tom@tromey.com>
11008
11009 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
11010 * tui/tui-wingeneral.h (class tui_suppress_output): New.
11011 (tui_wrefresh): Declare.
11012 * tui/tui-wingeneral.c (suppress_output): New global.
11013 (tui_suppress_output, ~tui_suppress_output): New constructor and
11014 destructor.
11015 (tui_wrefresh): New function.
11016 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
11017 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
11018 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
11019 method.
11020 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
11021 tui_wrefresh.
11022 (tui_data_window::no_refresh): New method.
11023 (tui_data_item_window::refresh_window): Call tui_wrefresh.
11024 (tui_reg_command): Use tui_suppress_output
11025 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
11026 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
11027 method.
11028 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
11029
11030 2020-01-19 Tom Tromey <tom@tromey.com>
11031
11032 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11033 Handle case where symtab is null.
11034
11035 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
11036
11037 * linux-fork.c (one_fork_p): Simplify.
11038
11039 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11040
11041 * top.c (struct qt_args): Remove.
11042 (kill_or_detach): Change return type to void, replace `void *`
11043 parameter with a proper one.
11044 (print_inferior_quit_action): Likewise.
11045 (quit_confirm): Use range-based for loop to iterate over inferiors.
11046 (quit_force): Likewise.
11047
11048 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11049
11050 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
11051 `void *` parameter with proper parameters.
11052 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
11053 (print_one_inferior): Change return type to void, replace `void *`
11054 parameter with proper parameters.
11055 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
11056 inferiors.
11057 (get_other_inferior): Remove.
11058 (mi_cmd_remove_inferior): Use range-based loop to iterate over
11059 inferiors.
11060
11061 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11062
11063 * mi/mi-interp.c (report_initial_inferior): Remove.
11064 (mi_interp::init): Use range-based for to iterate over inferiors.
11065
11066 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11067
11068 * python/py-inferior.c (build_inferior_list): Remove.
11069 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
11070
11071 2020-01-16 Christian Biesinger <cbiesinger@google.com>
11072
11073 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
11074 (btrace_stitch_trace): Likewise.
11075 * charset.c (intermediate_encoding): Likewise (vaild).
11076 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
11077 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
11078 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
11079
11080 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
11081
11082 * windows-tdep.c (windows_get_tlb_type):
11083 Add rtl_user_process_parameters type.
11084
11085 2020-01-16 Pedro Alves <palves@redhat.com>
11086 Norbert Lange <nolange79@gmail.com>
11087
11088 PR build/24805
11089 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
11090 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
11091 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
11092 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
11093 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
11094 (ps_plog): Redeclare exported functions with default visibility.
11095
11096 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
11097
11098 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
11099 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
11100
11101 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
11102
11103 * infcmd.c (post_create_inferior): Use get_thread_regcache
11104 instead of get_current_regcache.
11105
11106 2020-01-14 Tom Tromey <tom@tromey.com>
11107
11108 PR symtab/12535:
11109 * python/python.c (gdbpy_decode_line): Treat empty string the same
11110 as no argument.
11111
11112 2020-01-14 Tom Tromey <tom@tromey.com>
11113
11114 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
11115
11116 2020-01-14 Tom Tromey <tom@tromey.com>
11117
11118 * nat/linux-btrace.c: Don't include <config.h>.
11119 * nat/linux-ptrace.c: Don't include <config.h>.
11120 * nat/x86-linux-dregs.c: Don't include <config.h>.
11121
11122 2020-01-14 Tom Tromey <tom@tromey.com>
11123
11124 * configure: Rebuild.
11125 * configure.ac: Move many checks to ../gdbsupport/common.m4.
11126
11127 2020-01-14 Tom Tromey <tom@tromey.com>
11128
11129 * nat/x86-linux-dregs.c: Include configh.h.
11130 * nat/linux-ptrace.c: Include configh.h.
11131 * nat/linux-btrace.c: Include configh.h.
11132 * defs.h: Include config.h, bfd.h.
11133 * configure.ac: Don't source common.host.
11134 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
11135 * configure: Rebuild.
11136 * acinclude.m4: Update path.
11137 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
11138 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
11139 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
11140 (CLIBS): Add LIBSUPPORT.
11141 (CDEPS): Likewise.
11142 (COMMON_SFILES): Remove gdbsupport files.
11143 (HFILES_NO_SRCDIR): Likewise.
11144 (stamp-version): Update path to create-version.sh.
11145 (ALLDEPFILES): Remove gdbsupport files.
11146
11147 2020-01-14 Tom Tromey <tom@tromey.com>
11148
11149 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
11150 USE_WIN32API when needed.
11151 * configure.ac (USE_WIN32API): Don't define.
11152 (WIN32LIBS): Use WIN32APILIBS.
11153 * configure: Rebuild.
11154
11155 2020-01-14 Tom Tromey <tom@tromey.com>
11156
11157 * configure: Rebuild.
11158 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
11159
11160 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
11161
11162 * skip.c (skip_function_command): Make skip w/o arguments use the
11163 name of the inlined function if pc is inside any inlined function.
11164
11165 2020-01-14 Luis Machado <luis.machado@linaro.org>
11166
11167 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
11168 * infrun.c (resume_1): Likewise.
11169 (handle_inferior_event): Remove stale comment.
11170 * linux-nat.c (linux_nat_target::resume): Update comments.
11171 (save_stop_reason): Likewise.
11172 (linux_nat_filter_event): Likewise.
11173 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
11174
11175 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11176
11177 * elfread.c (record_minimal_symbol): Set section index to 0 for
11178 non-allocatable sections.
11179
11180
11181 2020-01-13 Ali Tamur <tamur@google.com>
11182
11183 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
11184 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
11185 to gdb::optional. Update comments.
11186 (dwo_file): Update comments.
11187 (read_attribute): Update API to take an additional out parameter,
11188 need_reprocess. This is used to mark attributes that need other
11189 attributes (e.g. str_offsets_base) for correct computation which may not
11190 have been read yet.
11191 (read_attribute_reprocess): New function declaration.
11192 (read_addr_index): Likewise.
11193 (read_dwo_str_index): Likewise.
11194 (read_stub_str_index): Likewise.
11195 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
11196 (lookup_addr_base): New function definition.
11197 (lookup_ranges_base): Likewise.
11198 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
11199 lookup_ranges_base.
11200 (init_cutu_and_read_dies): Update comments.
11201 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
11202 unit. This is used to inherit parent's str_offsets_base and addr_base.
11203 Update comments.
11204 (init_cutu_and_read_dies_simple): Reflect API changes.
11205 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
11206 (create_cus_hash_table): Change API to take parent compile unit.
11207 Reflect API changes.
11208 (open_and_init_dwo_file): Reflect API changes.
11209 (dwarf2_get_pc_bounds): Update comments.
11210 (dwarf2_record_block_ranges): Likewise.
11211 (read_full_die_1): Change implementation to reprocess attributes that
11212 need str_offsets_base and addr_base.
11213 (partial_die_info::read): Likewise.
11214 (read_attribute_reprocess): New function definition.
11215 (read_attribute_value): Change API to take an additional out parameter,
11216 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
11217 when a non-dwo compile unit has index based attributes.
11218 (read_attribute): Reflect API changes.
11219 (read_addr_index_1): Reflect API changes. Update comments.
11220 (dwarf2_read_addr_index_data): Reflect API changes.
11221 (dwarf2_read_addr_index): Likewise.
11222 (read_str_index): Change API and implementation. This becomes a helper
11223 to be used by the new string index related methods. Update error
11224 message and comments.
11225 (read_dwo_str_index): New function definition.
11226 (read_stub_str_index): Likewise.
11227 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
11228 * symfile.h (dwarf2_debug_sections): Likewise.
11229 * xcoffread.c (dwarf2_debug_sections): Likewise.
11230
11231 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11232
11233 * gdbcore.h (struct core_fns) <core_read_registers>: Change
11234 core_reg_sect type to gdb_byte *.
11235 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
11236 * cris-tdep.c (fetch_core_registers): Likewise.
11237 * corelow.c (core_target::get_core_register_section): Change
11238 type of `contents` to gdb::byte_vector.
11239
11240 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11241
11242 * tui/tui-wingeneral.c (box_win): Position the title in the center
11243 of the border.
11244
11245 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11246
11247 * corelow.c (core_target::get_core_register_section): Use
11248 std::vector instead of alloca.
11249
11250 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11251
11252 * warning.m4: Add -Wmissing-declarations to build_warnings.
11253 * configure: Re-generate.
11254
11255 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11256
11257 * python/python.c (init__gdb_module): Add declaration.
11258
11259 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11260
11261 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
11262 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
11263 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
11264 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
11265 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
11266 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
11267 * ada-exp.y (_initialize_ada_exp): Add declaration.
11268 * ada-lang.c (_initialize_ada_language): Add declaration.
11269 * ada-tasks.c (_initialize_tasks): Add declaration.
11270 * agent.c (_initialize_agent): Add declaration.
11271 * aix-thread.c (_initialize_aix_thread): Add declaration.
11272 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
11273 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
11274 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
11275 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
11276 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
11277 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
11278 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
11279 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
11280 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
11281 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
11282 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
11283 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
11284 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
11285 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
11286 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
11287 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
11288 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
11289 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
11290 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
11291 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
11292 * annotate.c (_initialize_annotate): Add declaration.
11293 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
11294 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
11295 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
11296 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
11297 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
11298 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
11299 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
11300 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
11301 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
11302 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
11303 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
11304 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
11305 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
11306 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
11307 * auto-load.c (_initialize_auto_load): Add declaration.
11308 * auxv.c (_initialize_auxv): Add declaration.
11309 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
11310 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
11311 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
11312 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
11313 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
11314 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
11315 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
11316 * breakpoint.c (_initialize_breakpoint): Add declaration.
11317 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
11318 * btrace.c (_initialize_btrace): Add declaration.
11319 * charset.c (_initialize_charset): Add declaration.
11320 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
11321 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11322 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11323 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11324 * cli/cli-script.c (_initialize_cli_script): Add declaration.
11325 * cli/cli-style.c (_initialize_cli_style): Add declaration.
11326 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11327 * coffread.c (_initialize_coffread): Add declaration.
11328 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11329 * compile/compile.c (_initialize_compile): Add declaration.
11330 * complaints.c (_initialize_complaints): Add declaration.
11331 * completer.c (_initialize_completer): Add declaration.
11332 * copying.c (_initialize_copying): Add declaration.
11333 * corefile.c (_initialize_core): Add declaration.
11334 * corelow.c (_initialize_corelow): Add declaration.
11335 * cp-abi.c (_initialize_cp_abi): Add declaration.
11336 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11337 * cp-support.c (_initialize_cp_support): Add declaration.
11338 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11339 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11340 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11341 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11342 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11343 * ctfread.c (_initialize_ctfread): Add declaration.
11344 * d-lang.c (_initialize_d_language): Add declaration.
11345 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11346 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11347 * dbxread.c (_initialize_dbxread): Add declaration.
11348 * dcache.c (_initialize_dcache): Add declaration.
11349 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11350 * disasm.c (_initialize_disasm): Add declaration.
11351 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11352 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11353 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11354 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11355 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11356 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11357 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11358 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11359 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11360 * elfread.c (_initialize_elfread): Add declaration.
11361 * exec.c (_initialize_exec): Add declaration.
11362 * extension.c (_initialize_extension): Add declaration.
11363 * f-lang.c (_initialize_f_language): Add declaration.
11364 * f-valprint.c (_initialize_f_valprint): Add declaration.
11365 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11366 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11367 * filesystem.c (_initialize_filesystem): Add declaration.
11368 * findcmd.c (_initialize_mem_search): Add declaration.
11369 * findvar.c (_initialize_findvar): Add declaration.
11370 * fork-child.c (_initialize_fork_child): Add declaration.
11371 * frame-base.c (_initialize_frame_base): Add declaration.
11372 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11373 * frame.c (_initialize_frame): Add declaration.
11374 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11375 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11376 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11377 * gcore.c (_initialize_gcore): Add declaration.
11378 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11379 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11380 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11381 * gdbarch.c (_initialize_gdbarch): Add declaration.
11382 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11383 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11384 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11385 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11386 * go-lang.c (_initialize_go_language): Add declaration.
11387 * go32-nat.c (_initialize_go32_nat): Add declaration.
11388 * guile/guile.c (_initialize_guile): Add declaration.
11389 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11390 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11391 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11392 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11393 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11394 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11395 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11396 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11397 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11398 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11399 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11400 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11401 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11402 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11403 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11404 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11405 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11406 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11407 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11408 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11409 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11410 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11411 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11412 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11413 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11414 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11415 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11416 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11417 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11418 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11419 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11420 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11421 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11422 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11423 * infcall.c (_initialize_infcall): Add declaration.
11424 * infcmd.c (_initialize_infcmd): Add declaration.
11425 * inflow.c (_initialize_inflow): Add declaration.
11426 * infrun.c (_initialize_infrun): Add declaration.
11427 * interps.c (_initialize_interpreter): Add declaration.
11428 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11429 * jit.c (_initialize_jit): Add declaration.
11430 * language.c (_initialize_language): Add declaration.
11431 * linux-fork.c (_initialize_linux_fork): Add declaration.
11432 * linux-nat.c (_initialize_linux_nat): Add declaration.
11433 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11434 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11435 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11436 * m2-lang.c (_initialize_m2_language): Add declaration.
11437 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11438 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11439 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11440 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11441 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11442 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11443 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11444 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11445 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11446 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11447 * machoread.c (_initialize_machoread): Add declaration.
11448 * macrocmd.c (_initialize_macrocmd): Add declaration.
11449 * macroscope.c (_initialize_macroscope): Add declaration.
11450 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11451 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11452 * maint.c (_initialize_maint_cmds): Add declaration.
11453 * mdebugread.c (_initialize_mdebugread): Add declaration.
11454 * memattr.c (_initialize_mem): Add declaration.
11455 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11456 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11457 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11458 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11459 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11460 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11461 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11462 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11463 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11464 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11465 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11466 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11467 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11468 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11469 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11470 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11471 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11472 * mipsread.c (_initialize_mipsread): Add declaration.
11473 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11474 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11475 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11476 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11477 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11478 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11479 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11480 * nto-procfs.c (_initialize_procfs): Add declaration.
11481 * objc-lang.c (_initialize_objc_language): Add declaration.
11482 * observable.c (_initialize_observer): Add declaration.
11483 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11484 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11485 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11486 * osabi.c (_initialize_gdb_osabi): Add declaration.
11487 * osdata.c (_initialize_osdata): Add declaration.
11488 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11489 * parse.c (_initialize_parse): Add declaration.
11490 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11491 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11492 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11493 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11494 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11495 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11496 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11497 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11498 * printcmd.c (_initialize_printcmd): Add declaration.
11499 * probe.c (_initialize_probe): Add declaration.
11500 * proc-api.c (_initialize_proc_api): Add declaration.
11501 * proc-events.c (_initialize_proc_events): Add declaration.
11502 * proc-service.c (_initialize_proc_service): Add declaration.
11503 * procfs.c (_initialize_procfs): Add declaration.
11504 * producer.c (_initialize_producer): Add declaration.
11505 * psymtab.c (_initialize_psymtab): Add declaration.
11506 * python/python.c (_initialize_python): Add declaration.
11507 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11508 * record-btrace.c (_initialize_record_btrace): Add declaration.
11509 * record-full.c (_initialize_record_full): Add declaration.
11510 * record.c (_initialize_record): Add declaration.
11511 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11512 * regcache.c (_initialize_regcache): Add declaration.
11513 * reggroups.c (_initialize_reggroup): Add declaration.
11514 * remote-notif.c (_initialize_notif): Add declaration.
11515 * remote-sim.c (_initialize_remote_sim): Add declaration.
11516 * remote.c (_initialize_remote): Add declaration.
11517 * reverse.c (_initialize_reverse): Add declaration.
11518 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11519 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11520 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11521 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11522 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11523 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11524 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11525 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11526 Add declaration.
11527 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11528 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11529 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11530 * rust-exp.y (_initialize_rust_exp): Add declaration.
11531 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11532 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11533 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11534 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11535 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11536 * score-tdep.c (_initialize_score_tdep): Add declaration.
11537 * ser-go32.c (_initialize_ser_dos): Add declaration.
11538 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11539 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11540 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11541 * ser-uds.c (_initialize_ser_socket): Add declaration.
11542 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11543 * serial.c (_initialize_serial): Add declaration.
11544 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11545 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11546 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11547 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11548 * skip.c (_initialize_step_skip): Add declaration.
11549 * sol-thread.c (_initialize_sol_thread): Add declaration.
11550 * solib-aix.c (_initialize_solib_aix): Add declaration.
11551 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11552 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11553 * solib-frv.c (_initialize_frv_solib): Add declaration.
11554 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11555 * solib-target.c (_initialize_solib_target): Add declaration.
11556 * solib.c (_initialize_solib): Add declaration.
11557 * source-cache.c (_initialize_source_cache): Add declaration.
11558 * source.c (_initialize_source): Add declaration.
11559 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11560 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11561 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11562 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11563 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11564 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11565 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11566 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11567 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11568 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11569 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11570 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11571 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11572 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11573 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11574 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11575 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11576 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11577 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11578 * stabsread.c (_initialize_stabsread): Add declaration.
11579 * stack.c (_initialize_stack): Add declaration.
11580 * stap-probe.c (_initialize_stap_probe): Add declaration.
11581 * std-regs.c (_initialize_frame_reg): Add declaration.
11582 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11583 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11584 * symfile.c (_initialize_symfile): Add declaration.
11585 * symmisc.c (_initialize_symmisc): Add declaration.
11586 * symtab.c (_initialize_symtab): Add declaration.
11587 * target.c (_initialize_target): Add declaration.
11588 * target-connection.c (_initialize_target_connection): Add
11589 declaration.
11590 * target-dcache.c (_initialize_target_dcache): Add declaration.
11591 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11592 * thread.c (_initialize_thread): Add declaration.
11593 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11594 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11595 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11596 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11597 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11598 * tracectf.c (_initialize_ctf): Add declaration.
11599 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11600 * tracefile.c (_initialize_tracefile): Add declaration.
11601 * tracepoint.c (_initialize_tracepoint): Add declaration.
11602 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11603 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11604 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11605 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11606 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11607 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11608 * tui/tui.c (_initialize_tui): Add declaration.
11609 * typeprint.c (_initialize_typeprint): Add declaration.
11610 * ui-style.c (_initialize_ui_style): Add declaration.
11611 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11612 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11613 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11614 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11615 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11616 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11617 * unittests/filtered_iterator-selftests.c
11618 (_initialize_filtered_iterator_selftests): Add declaration.
11619 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11620 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11621 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11622 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11623 * unittests/main-thread-selftests.c
11624 (_initialize_main_thread_selftests): Add declaration.
11625 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11626 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11627 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11628 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11629 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11630 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11631 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11632 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11633 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11634 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11635 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11636 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11637 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11638 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11639 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11640 declaration.
11641 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11642 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11643 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11644 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11645 * user-regs.c (_initialize_user_regs): Add declaration.
11646 * utils.c (_initialize_utils): Add declaration.
11647 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11648 * valops.c (_initialize_valops): Add declaration.
11649 * valprint.c (_initialize_valprint): Add declaration.
11650 * value.c (_initialize_values): Add declaration.
11651 * varobj.c (_initialize_varobj): Add declaration.
11652 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11653 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11654 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11655 * windows-nat.c (_initialize_windows_nat): Add declaration.
11656 (_initialize_check_for_gdb_ini): Add declaration.
11657 (_initialize_loadable): Add declaration.
11658 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11659 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11660 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11661 * xcoffread.c (_initialize_xcoffread): Add declaration.
11662 * xml-support.c (_initialize_xml_support): Add declaration.
11663 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11664 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11665 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11666 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11667
11668 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11669
11670 * regformats/regdat.sh: Generate declaration for init function.
11671
11672 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11673
11674 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11675 up.
11676 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11677 close_one_inferior>: New methods.
11678 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11679 pass down target to find_inferior_pid.
11680 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11681 Pass down target to find_inferior_ptid.
11682 (gdbsim_target::create_inferior): Pass down target to
11683 add_thread_silent.
11684 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11685 target down to find_inferior_ptid and switch_to_thread.
11686 (gdbsim_target::close): Update to call close_one_inferior.
11687 (struct resume_data): Remove.
11688 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11689 directly, rather than through a void pointer.
11690 (gdbsim_target::resume): Update to call resume_one_inferior.
11691
11692 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11693
11694 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11695
11696 2020-01-12 Pedro Alves <palves@redhat.com>
11697
11698 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11699 directly for the current inferior instead of
11700 discard_all_inferiors.
11701 (discard_all_inferiors): Delete.
11702
11703 2020-01-11 Tom Tromey <tom@tromey.com>
11704
11705 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11706 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11707 deprecated_safe_get_selected_frame.
11708
11709 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11710
11711 * inferior.c (print_inferior): Switch inferior before printing it.
11712
11713 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11714 Pedro Alves <palves@redhat.com>
11715
11716 * progspace-and-thread.c (switch_to_program_space_and_thread):
11717 Assert there's an inferior for PSPACE. Use
11718 switch_to_inferior_no_thread to switch the inferior too.
11719 * progspace.c (program_space::~program_space): Call
11720 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11721 (program_space::free_all_objfiles): Don't call clear_symtab_users
11722 here.
11723 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11724
11725 2020-01-10 Pedro Alves <palves@redhat.com>
11726
11727 * NEWS: Mention multi-target debugging, "info connections", and
11728 "add-inferior -no-connection".
11729
11730 2020-01-10 Pedro Alves <palves@redhat.com>
11731
11732 * infrun.c: Include "target-connection.h".
11733 (check_multi_target_resumption): New.
11734 (proceed): Call it.
11735 * target-connection.c (make_target_connection_string): Make
11736 extern.
11737 * target-connection.h (make_target_connection_string): Declare.
11738
11739 2020-01-10 Pedro Alves <palves@redhat.com>
11740
11741 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11742 * inferior.c (uiout_field_connection): New function.
11743 (print_inferior): Add new "connection-id" column.
11744 (add_inferior_command): Show connection number/string of added
11745 inferior.
11746 * process-stratum-target.h
11747 (process_stratum_target::connection_string): New virtual method.
11748 (process_stratum_target::connection_number): New field.
11749 * remote.c (remote_target::connection_string): New override.
11750 * target-connection.c: New file.
11751 * target-connection.h: New file.
11752 * target.c (decref_target): Remove process_stratum targets from
11753 the connection list.
11754 (target_stack::push): Add process_stratum targets to the
11755 connection list.
11756
11757 2020-01-10 Pedro Alves <palves@redhat.com>
11758
11759 Revert:
11760 2016-04-12 Pedro Alves <palves@redhat.com>
11761 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11762 Remove references to name.
11763 * serial.h (struct serial) <name>: Delete.
11764
11765 2020-01-10 Pedro Alves <palves@redhat.com>
11766
11767 * gdbarch-selftests.c (register_to_value_test): Remove "target
11768 already pushed" check.
11769
11770 2020-01-10 Pedro Alves <palves@redhat.com>
11771 John Baldwin <jhb@FreeBSD.org>
11772
11773 * aarch64-linux-nat.c
11774 (aarch64_linux_nat_target::thread_architecture): Adjust.
11775 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11776 (task_command_1): Likewise.
11777 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11778 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11779 (aix_thread_target::store_registers)
11780 (aix_thread_target::thread_alive): Adjust.
11781 * amd64-fbsd-tdep.c: Include "inferior.h".
11782 (amd64fbsd_get_thread_local_address): Pass down target.
11783 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11784 thread's gdbarch instead of target_gdbarch.
11785 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11786 get_last_target_status.
11787 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11788 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11789 inferiors.
11790 (update_inserted_breakpoint_locations): Skip if inferiors with no
11791 execution.
11792 (update_global_location_list): When handling moribund locations,
11793 find representative inferior for location's pspace, and use thread
11794 count of its process_stratum target.
11795 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11796 * bsd-uthread.c (bsd_uthread_target::wait): Use
11797 as_process_stratum_target and adjust thread_change_ptid and
11798 add_thread calls.
11799 (bsd_uthread_target::update_thread_list): Use
11800 as_process_stratum_target and adjust find_thread_ptid,
11801 thread_change_ptid and add_thread calls.
11802 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11803 find_thread_ptid call.
11804 * corelow.c (add_to_thread_list): Adjust add_thread call.
11805 (core_target_open): Adjust add_thread_silent and thread_count
11806 calls.
11807 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11808 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11809 * event-top.c (async_disconnect): Pop targets from all inferiors.
11810 * exec.c (add_target_sections): Push exec target on all inferiors
11811 sharing the program space.
11812 (remove_target_sections): Remove the exec target from all
11813 inferiors sharing the program space.
11814 (exec_on_vfork): New.
11815 * exec.h (exec_on_vfork): Declare.
11816 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11817 Pass it down.
11818 (fbsd_nat_target::update_thread_list): Adjust.
11819 (fbsd_nat_target::resume): Adjust.
11820 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11821 down.
11822 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11823 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11824 get_thread_arch_regcache call.
11825 * fork-child.c (gdb_startup_inferior): Pass target down to
11826 startup_inferior and set_executing.
11827 * gdbthread.h (struct process_stratum_target): Forward declare.
11828 (add_thread, add_thread_silent, add_thread_with_info)
11829 (in_thread_list): Add process_stratum_target parameter.
11830 (find_thread_ptid(inferior*, ptid_t)): New overload.
11831 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11832 parameter.
11833 (all_threads()): Delete overload.
11834 (all_threads, all_non_exited_threads): Add process_stratum_target
11835 parameter.
11836 (all_threads_safe): Use brace initialization.
11837 (thread_count): Add process_stratum_target parameter.
11838 (set_resumed, set_running, set_stop_requested, set_executing)
11839 (threads_are_executing, finish_thread_state): Add
11840 process_stratum_target parameter.
11841 (switch_to_thread): Use is_current_thread.
11842 * i386-fbsd-tdep.c: Include "inferior.h".
11843 (i386fbsd_get_thread_local_address): Pass down target.
11844 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11845 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11846 have_inferiors check.
11847 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11848 (inf_ptrace_target::attach): Adjust.
11849 * infcall.c (run_inferior_call): Adjust.
11850 * infcmd.c (run_command_1): Pass target to
11851 scoped_finish_thread_state.
11852 (proceed_thread_callback): Skip inferiors with no execution.
11853 (continue_command): Rename 'all_threads' local to avoid hiding
11854 'all_threads' function. Adjust get_last_target_status call.
11855 (prepare_one_step): Adjust set_running call.
11856 (signal_command): Use user_visible_resume_target. Compare thread
11857 pointers instead of inferior_ptid.
11858 (info_program_command): Adjust to pass down target.
11859 (attach_command): Mark target's 'thread_executing' flag.
11860 (stop_current_target_threads_ns): New, factored out from ...
11861 (interrupt_target_1): ... this. Switch inferior before making
11862 target calls.
11863 * inferior-iter.h
11864 (struct all_inferiors_iterator, struct all_inferiors_range)
11865 (struct all_inferiors_safe_range)
11866 (struct all_non_exited_inferiors_range): Filter on
11867 process_stratum_target too. Remove explicit.
11868 * inferior.c (inferior::inferior): Push dummy target on target
11869 stack.
11870 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11871 Add process_stratum_target parameter, and pass it down.
11872 (have_live_inferiors): Adjust.
11873 (switch_to_inferior_and_push_target): New.
11874 (add_inferior_command, clone_inferior_command): Handle
11875 "-no-connection" parameter. Use
11876 switch_to_inferior_and_push_target.
11877 (_initialize_inferior): Mention "-no-connection" option in
11878 the help of "add-inferior" and "clone-inferior" commands.
11879 * inferior.h: Include "process-stratum-target.h".
11880 (interrupt_target_1): Use bool.
11881 (struct inferior) <push_target, unpush_target, target_is_pushed,
11882 find_target_beneath, top_target, process_target, target_at,
11883 m_stack>: New.
11884 (discard_all_inferiors): Delete.
11885 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11886 (all_inferiors, all_non_exited_inferiors): Add
11887 process_stratum_target parameter.
11888 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11889 (target_last_proc_target): New global.
11890 (follow_fork_inferior): Push target on new inferior. Pass target
11891 to add_thread_silent. Call exec_on_vfork. Handle target's
11892 reference count.
11893 (follow_fork): Adjust get_last_target_status call. Also consider
11894 target.
11895 (follow_exec): Push target on new inferior.
11896 (struct execution_control_state) <target>: New field.
11897 (user_visible_resume_target): New.
11898 (do_target_resume): Call target_async.
11899 (resume_1): Set target's threads_executing flag. Consider resume
11900 target.
11901 (commit_resume_all_targets): New.
11902 (proceed): Also consider resume target. Skip threads of inferiors
11903 with no execution. Commit resumtion in all targets.
11904 (start_remote): Pass current inferior to wait_for_inferior.
11905 (infrun_thread_stop_requested): Consider target as well. Pass
11906 thread_info pointer to clear_inline_frame_state instead of ptid.
11907 (infrun_thread_thread_exit): Consider target as well.
11908 (random_pending_event_thread): New inferior parameter. Use it.
11909 (do_target_wait): Rename to ...
11910 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11911 down.
11912 (threads_are_resumed_pending_p, do_target_wait): New.
11913 (prepare_for_detach): Adjust calls.
11914 (wait_for_inferior): New inferior parameter. Handle it. Use
11915 do_target_wait_1 instead of do_target_wait.
11916 (fetch_inferior_event): Adjust. Switch to representative
11917 inferior. Pass target down.
11918 (set_last_target_status): Add process_stratum_target parameter.
11919 Save target in global.
11920 (get_last_target_status): Add process_stratum_target parameter and
11921 handle it.
11922 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11923 (context_switch): Check inferior_ptid == null_ptid before calling
11924 inferior_thread().
11925 (get_inferior_stop_soon): Pass down target.
11926 (wait_one): Rename to ...
11927 (poll_one_curr_target): ... this.
11928 (struct wait_one_event): New.
11929 (wait_one): New.
11930 (stop_all_threads): Adjust.
11931 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11932 event's target.
11933 (switch_back_to_stepped_thread): Also consider target.
11934 (print_stop_event): Update.
11935 (normal_stop): Update. Also consider the resume target.
11936 * infrun.h (wait_for_inferior): Remove declaration.
11937 (user_visible_resume_target): New declaration.
11938 (get_last_target_status, set_last_target_status): New
11939 process_stratum_target parameter.
11940 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11941 process_stratum_target parameter, and use it.
11942 (clear_inline_frame_state (thread_info*)): New.
11943 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11944 process_stratum_target parameter.
11945 (clear_inline_frame_state (thread_info*)): Declare.
11946 * linux-fork.c (delete_checkpoint_command): Pass target down to
11947 find_thread_ptid.
11948 (checkpoint_command): Adjust.
11949 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11950 instead of just tweaking inferior_ptid.
11951 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11952 (exit_lwp): Pass target down to find_thread_ptid.
11953 (attach_proc_task_lwp_callback): Pass target down to
11954 add_thread/set_running/set_executing.
11955 (linux_nat_target::attach): Pass target down to
11956 thread_change_ptid.
11957 (get_detach_signal): Pass target down to find_thread_ptid.
11958 Consider last target status's target.
11959 (linux_resume_one_lwp_throw, resume_lwp)
11960 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11961 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11962 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11963 (linux_nat_target::async_wait_fd): New.
11964 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11965 target down.
11966 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11967 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11968 * linux-thread-db.c (struct thread_db_info::process_target): New
11969 field.
11970 (add_thread_db_info): Save target.
11971 (get_thread_db_info): New process_stratum_target parameter. Also
11972 match target.
11973 (delete_thread_db_info): New process_stratum_target parameter.
11974 Also match target.
11975 (thread_from_lwp): Adjust to pass down target.
11976 (thread_db_notice_clone): Pass down target.
11977 (check_thread_db_callback): Pass down target.
11978 (try_thread_db_load_1): Always push the thread_db target.
11979 (try_thread_db_load, record_thread): Pass target down.
11980 (thread_db_target::detach): Pass target down. Always unpush the
11981 thread_db target.
11982 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11983 target down. Always unpush the thread_db target.
11984 (find_new_threads_callback, thread_db_find_new_threads_2)
11985 (thread_db_target::update_thread_list): Pass target down.
11986 (thread_db_target::pid_to_str): Pass current inferior down.
11987 (thread_db_target::get_thread_local_address): Pass target down.
11988 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11989 target down.
11990 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11991 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11992 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11993 (procfs_init_inferior): Rename to ...
11994 (procfs_target::procfs_init_inferior): ... this and adjust.
11995 (procfs_target::create_inferior, procfs_notice_thread)
11996 (procfs_do_thread_registers): Adjust.
11997 * ppc-fbsd-tdep.c: Include "inferior.h".
11998 (ppcfbsd_get_thread_local_address): Pass down target.
11999 * proc-service.c (ps_xfer_memory): Switch current inferior and
12000 program space as well.
12001 (get_ps_regcache): Pass target down.
12002 * process-stratum-target.c
12003 (process_stratum_target::thread_address_space)
12004 (process_stratum_target::thread_architecture): Pass target down.
12005 * process-stratum-target.h
12006 (process_stratum_target::threads_executing): New field.
12007 (as_process_stratum_target): New.
12008 * ravenscar-thread.c
12009 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
12010 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
12011 down.
12012 * record-btrace.c (record_btrace_target::info_record): Adjust.
12013 (record_btrace_target::record_method)
12014 (record_btrace_target::record_is_replaying)
12015 (record_btrace_target::fetch_registers)
12016 (get_thread_current_frame_id, record_btrace_target::resume)
12017 (record_btrace_target::wait, record_btrace_target::stop): Pass
12018 target down.
12019 * record-full.c (record_full_wait_1): Switch to event thread.
12020 Pass target down.
12021 * regcache.c (regcache::regcache)
12022 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
12023 process_stratum_target parameter and handle it.
12024 (current_thread_target): New global.
12025 (get_thread_regcache): Add process_stratum_target parameter and
12026 handle it. Switch inferior before calling target method.
12027 (get_thread_regcache): Pass target down.
12028 (get_thread_regcache_for_ptid): Pass target down.
12029 (registers_changed_ptid): Add process_stratum_target parameter and
12030 handle it.
12031 (registers_changed_thread, registers_changed): Pass target down.
12032 (test_get_thread_arch_aspace_regcache): New.
12033 (current_regcache_test): Define a couple local test_target_ops
12034 instances and use them for testing.
12035 (readwrite_regcache): Pass process_stratum_target parameter.
12036 (cooked_read_test, cooked_write_test): Pass mock_target down.
12037 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
12038 (get_thread_arch_aspace_regcache): Add process_stratum_target
12039 parameter.
12040 (regcache::target): New method.
12041 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
12042 (regcache::registers_changed_ptid): Add process_stratum_target
12043 parameter.
12044 (regcache::m_target): New field.
12045 (registers_changed_ptid): Add process_stratum_target parameter.
12046 * remote.c (remote_state::supports_vCont_probed): New field.
12047 (remote_target::async_wait_fd): New method.
12048 (remote_unpush_and_throw): Add remote_target parameter.
12049 (get_current_remote_target): Adjust.
12050 (remote_target::remote_add_inferior): Push target.
12051 (remote_target::remote_add_thread)
12052 (remote_target::remote_notice_new_inferior)
12053 (get_remote_thread_info): Pass target down.
12054 (remote_target::update_thread_list): Skip threads of inferiors
12055 bound to other targets. (remote_target::close): Don't discard
12056 inferiors. (remote_target::add_current_inferior_and_thread)
12057 (remote_target::process_initial_stop_replies)
12058 (remote_target::start_remote)
12059 (remote_target::remote_serial_quit_handler): Pass down target.
12060 (remote_target::remote_unpush_target): New remote_target
12061 parameter. Unpush the target from all inferiors.
12062 (remote_target::remote_unpush_and_throw): New remote_target
12063 parameter. Pass it down.
12064 (remote_target::open_1): Check whether the current inferior has
12065 execution instead of checking whether any inferior is live. Pass
12066 target down.
12067 (remote_target::remote_detach_1): Pass down target. Use
12068 remote_unpush_target.
12069 (extended_remote_target::attach): Pass down target.
12070 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
12071 (remote_target::append_resumption): Pass down target.
12072 (remote_target::append_pending_thread_resumptions)
12073 (remote_target::remote_resume_with_hc, remote_target::resume)
12074 (remote_target::commit_resume): Pass down target.
12075 (remote_target::remote_stop_ns): Check supports_vCont_probed.
12076 (remote_target::interrupt_query)
12077 (remote_target::remove_new_fork_children)
12078 (remote_target::check_pending_events_prevent_wildcard_vcont)
12079 (remote_target::remote_parse_stop_reply)
12080 (remote_target::process_stop_reply): Pass down target.
12081 (first_remote_resumed_thread): New remote_target parameter. Pass
12082 it down.
12083 (remote_target::wait_as): Pass down target.
12084 (unpush_and_perror): New remote_target parameter. Pass it down.
12085 (remote_target::readchar, remote_target::remote_serial_write)
12086 (remote_target::getpkt_or_notif_sane_1)
12087 (remote_target::kill_new_fork_children, remote_target::kill): Pass
12088 down target.
12089 (remote_target::mourn_inferior): Pass down target. Use
12090 remote_unpush_target.
12091 (remote_target::core_of_thread)
12092 (remote_target::remote_btrace_maybe_reopen): Pass down target.
12093 (remote_target::pid_to_exec_file)
12094 (remote_target::thread_handle_to_thread_info): Pass down target.
12095 (remote_target::async_wait_fd): New.
12096 * riscv-fbsd-tdep.c: Include "inferior.h".
12097 (riscv_fbsd_get_thread_local_address): Pass down target.
12098 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
12099 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
12100 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
12101 Adjust.
12102 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
12103 * solib-svr4.c (enable_break): Pass down target.
12104 * spu-multiarch.c (parse_spufs_run): Pass down target.
12105 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
12106 * target-delegates.c: Regenerate.
12107 * target.c (g_target_stack): Delete.
12108 (current_top_target): Return the current inferior's top target.
12109 (target_has_execution_1): Refer to the passed-in inferior's top
12110 target.
12111 (target_supports_terminal_ours): Check whether the initial
12112 inferior was already created.
12113 (decref_target): New.
12114 (target_stack::push): Incref/decref the target.
12115 (push_target, push_target, unpush_target): Adjust.
12116 (target_stack::unpush): Defref target.
12117 (target_is_pushed): Return bool. Adjust to refer to the current
12118 inferior's target stack.
12119 (dispose_inferior): Delete, and inline parts ...
12120 (target_preopen): ... here. Only dispose of the current inferior.
12121 (target_detach): Hold strong target reference while detaching.
12122 Pass target down.
12123 (target_thread_name): Add assertion.
12124 (target_resume): Pass down target.
12125 (target_ops::beneath, find_target_at): Adjust to refer to the
12126 current inferior's target stack.
12127 (get_dummy_target): New.
12128 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
12129 has a thread running.
12130 (initialize_targets): Rename to ...
12131 (_initialize_target): ... this.
12132 * target.h: Include "gdbsupport/refcounted-object.h".
12133 (struct target_ops): Inherit refcounted_object.
12134 (target_ops::shortname, target_ops::longname): Make const.
12135 (target_ops::async_wait_fd): New method.
12136 (decref_target): Declare.
12137 (struct target_ops_ref_policy): New.
12138 (target_ops_ref): New typedef.
12139 (get_dummy_target): Declare function.
12140 (target_is_pushed): Return bool.
12141 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
12142 (all_matching_threads_iterator::all_matching_threads_iterator):
12143 Handle filter target.
12144 * thread-iter.h (struct all_matching_threads_iterator, struct
12145 all_matching_threads_range, class all_non_exited_threads_range):
12146 Filter by target too. Remove explicit.
12147 * thread.c (threads_executing): Delete.
12148 (inferior_thread): Pass down current inferior.
12149 (clear_thread_inferior_resources): Pass down thread pointer
12150 instead of ptid_t.
12151 (add_thread_silent, add_thread_with_info, add_thread): Add
12152 process_stratum_target parameter. Use it for thread and inferior
12153 searches.
12154 (is_current_thread): New.
12155 (thread_info::deletable): Use it.
12156 (find_thread_ptid, thread_count, in_thread_list)
12157 (thread_change_ptid, set_resumed, set_running): New
12158 process_stratum_target parameter. Pass it down.
12159 (set_executing): New process_stratum_target parameter. Pass it
12160 down. Adjust reference to 'threads_executing'.
12161 (threads_are_executing): New process_stratum_target parameter.
12162 Adjust reference to 'threads_executing'.
12163 (set_stop_requested, finish_thread_state): New
12164 process_stratum_target parameter. Pass it down.
12165 (switch_to_thread): Also match inferior.
12166 (switch_to_thread): New process_stratum_target parameter. Pass it
12167 down.
12168 (update_threads_executing): Reimplement.
12169 * top.c (quit_force): Pop targets from all inferior.
12170 (gdb_init): Don't call initialize_targets.
12171 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
12172 Declare.
12173 (windows_add_thread, windows_delete_thread): Adjust.
12174 (get_windows_debug_event): Rename to ...
12175 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
12176 * tracefile-tfile.c (tfile_target_open): Pass down target.
12177 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
12178 Forward declare.
12179 (switch_to_thread): Add process_stratum_target parameter.
12180 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
12181 parameter. Use it.
12182 (mi_on_resume): Pass target down.
12183 * nat/fork-inferior.c (startup_inferior): Add
12184 process_stratum_target parameter. Pass it down.
12185 * nat/fork-inferior.h (startup_inferior): Add
12186 process_stratum_target parameter.
12187 * python/py-threadevent.c (py_get_event_thread): Pass target down.
12188
12189 2020-01-10 Pedro Alves <palves@redhat.com>
12190
12191 * remote.c (remote_target::start_remote): Don't set inferior_ptid
12192 directly. Instead find the first thread in the thread list and
12193 use switch_to_thread.
12194
12195 2020-01-10 Pedro Alves <palves@redhat.com>
12196
12197 * remote.c (remote_target::remote_add_inferior): Don't bind a
12198 process to the current inferior if the current inferior is already
12199 bound to a process.
12200
12201 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12202 Pedro Alves <palves@redhat.com>
12203
12204 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
12205 If no process is specified, return null_ptid instead of
12206 inferior_ptid.
12207 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
12208 TARGET_WAITKIND_SIGNALLED with no pid.
12209
12210 2020-01-10 Pedro Alves <palves@redhat.com>
12211
12212 * remote.c (first_remote_resumed_thread): New.
12213 (remote_target::wait_as): Use it as default event_ptid instead of
12214 inferior_ptid.
12215
12216 2020-01-10 Pedro Alves <palves@redhat.com>
12217
12218 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
12219
12220 2020-01-10 Pedro Alves <palves@redhat.com>
12221
12222 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
12223 not -1.
12224
12225 2020-01-10 Pedro Alves <palves@redhat.com>
12226
12227 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
12228 ptid to get_last_target_status.
12229 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
12230 ptid to get_last_target_status.
12231 * infcmd.c (continue_command): Don't pass a target_waitstatus to
12232 get_last_target_status.
12233 (info_program_command): Don't pass a target_waitstatus to
12234 get_last_target_status.
12235 * infrun.c (init_wait_for_inferior): Use
12236 nullify_last_target_wait_ptid.
12237 (get_last_target_status): Handle nullptr arguments.
12238 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
12239 (print_stop_event): Don't pass a ptid to get_last_target_status.
12240 (normal_stop): Don't pass a ptid to get_last_target_status.
12241 * infrun.h (get_last_target_status, set_last_target_status): Move
12242 comments here and update.
12243 (nullify_last_target_wait_ptid): Declare.
12244 * linux-fork.c (fork_load_infrun_state): Remove local extern
12245 declaration of nullify_last_target_wait_ptid.
12246 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
12247 to get_last_target_status.
12248
12249 2020-01-10 Pedro Alves <palves@redhat.com>
12250
12251 * gdbthread.h (scoped_restore_current_thread)
12252 <dont_restore, restore, m_dont_restore>: Declare.
12253 * thread.c (thread_alive): Add assertion. Return bool.
12254 (switch_to_thread_if_alive): New.
12255 (prune_threads): Switch inferior/thread.
12256 (print_thread_info_1): Switch thread before calling target methods.
12257 (scoped_restore_current_thread::restore): New, factored out from
12258 ...
12259 (scoped_restore_current_thread::~scoped_restore_current_thread):
12260 ... this.
12261 (scoped_restore_current_thread::scoped_restore_current_thread):
12262 Add assertion.
12263 (thread_apply_all_command, thread_select): Use
12264 switch_to_thread_if_alive.
12265 * infrun.c (proceed, restart_threads, handle_signal_stop)
12266 (switch_back_to_stepped_thread): Switch current thread before
12267 calling target methods.
12268
12269 2020-01-10 Pedro Alves <palves@redhat.com>
12270
12271 * inferior.c (switch_to_inferior_no_thread): New function,
12272 factored out from ...
12273 (inferior_command): ... here.
12274 * inferior.h (switch_to_inferior_no_thread): Declare.
12275 * mi/mi-main.c (run_one_inferior): Use
12276 switch_to_inferior_no_thread.
12277
12278 2020-01-10 Pedro Alves <palves@redhat.com>
12279
12280 * infcmd.c (kill_command): Remove dead code.
12281
12282 2020-01-10 Pedro Alves <palves@redhat.com>
12283
12284 * remote.c (remote_target::mourn_inferior): No longer check
12285 whether the target is running.
12286
12287 2020-01-10 Pedro Alves <palves@redhat.com>
12288
12289 * corelow.c (core_target::has_execution): Change parameter type to
12290 inferior pointer.
12291 * inferior.c (number_of_live_inferiors): Use
12292 inferior::has_execution instead of target_has_execution_1.
12293 * inferior.h (inferior::has_execution): New.
12294 * linux-thread-db.c (thread_db_target::update_thread_list): Use
12295 inferior::has_execution instead of target_has_execution_1.
12296 * process-stratum-target.c
12297 (process_stratum_target::has_execution): Change parameter type to
12298 inferior pointer. Check the inferior's PID instead of
12299 inferior_ptid.
12300 * process-stratum-target.h
12301 (process_stratum_target::has_execution): Change parameter type to
12302 inferior pointer.
12303 * record-full.c (record_full_core_target::has_execution): Change
12304 parameter type to inferior pointer.
12305 * target.c (target_has_execution_1): Change parameter type to
12306 inferior pointer.
12307 (target_has_execution_current): Adjust.
12308 * target.h (target_ops::has_execution): Change parameter type to
12309 inferior pointer.
12310 (target_has_execution_1): Change parameter type to inferior
12311 pointer. Change return type to bool.
12312 * tracefile.h (tracefile_target::has_execution): Change parameter
12313 type to inferior pointer.
12314
12315 2020-01-10 Pedro Alves <palves@redhat.com>
12316
12317 * exceptions.c (print_flush): Remove current_top_target() check.
12318
12319 2020-01-10 Pedro Alves <palves@redhat.com>
12320
12321 * remote.c (show_remote_exec_file): Show the current inferior's
12322 exec-file instead of the command variable's value.
12323
12324 2020-01-10 Pedro Alves <palves@redhat.com>
12325
12326 * record-full.c (record_full_resume_ptid): New global.
12327 (record_full_target::resume): Set it.
12328 (record_full_wait_1): Use record_full_resume_ptid instead of
12329 inferior_ptid.
12330
12331 2020-01-10 Pedro Alves <palves@redhat.com>
12332
12333 * gdbthread.h (scoped_restore_current_thread)
12334 <dont_restore, restore, m_dont_restore>: Declare.
12335 * thread.c (thread_alive): Add assertion. Return bool.
12336 (switch_to_thread_if_alive): New.
12337 (prune_threads): Switch inferior/thread.
12338 (print_thread_info_1): Switch thread before calling target methods.
12339 (scoped_restore_current_thread::restore): New, factored out from
12340 ...
12341 (scoped_restore_current_thread::~scoped_restore_current_thread):
12342 ... this.
12343 (scoped_restore_current_thread::scoped_restore_current_thread):
12344 Add assertion.
12345 (thread_apply_all_command, thread_select): Use
12346 switch_to_thread_if_alive.
12347
12348 2020-01-10 George Barrett <bob@bob131.so>
12349
12350 * stap-probe.c (stap_modify_semaphore): Don't check for null
12351 semaphores.
12352 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12353 for null semaphores.
12354
12355 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12356
12357 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12358 all source windows, and maintain horizontal scroll status while
12359 doing so.
12360
12361 2020-01-09 Tom Tromey <tom@tromey.com>
12362
12363 PR tui/18932:
12364 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12365 update_source_window, not print_source_lines.
12366
12367 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12368
12369 * tui/tui.c (tui_enable): Register tui hooks after calling
12370 tui_display_main.
12371
12372 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12373
12374 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12375
12376 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
12377
12378 * thread.c (print_thread_info_1): Fix indentation.
12379
12380 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12381
12382 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12383 unique_xmalloc_ptr outside the if to always free the demangled name.
12384
12385 2020-01-08 Tom Tromey <tromey@adacore.com>
12386
12387 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12388 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12389 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12390 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12391 Remove.
12392 (section_offsets): New typedef.
12393 * symtab.c (fixup_section, get_msymbol_address): Update.
12394 * symmisc.c (dump_msymbols): Update.
12395 * symfile.h (relative_addr_info_to_section_offsets)
12396 (symfile_map_offsets_to_segments): Update.
12397 * symfile.c (build_section_addr_info_from_objfile)
12398 (init_objfile_sect_indices): Update.
12399 (struct place_section_arg): Change type of "offsets".
12400 (place_section): Update.
12401 (relative_addr_info_to_section_offsets): Change type of
12402 "section_offsets". Remove "num_sections" parameter.
12403 (default_symfile_offsets, syms_from_objfile_1)
12404 (set_objfile_default_section_offset): Update.
12405 (reread_symbols): No need to preserve section offsets by hand.
12406 (symfile_map_offsets_to_segments): Change type of "offsets".
12407 * stap-probe.c (relocate_address): Update.
12408 * stabsread.h (process_one_symbol): Update.
12409 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12410 (solib_target_relocate_section_addresses): Update.
12411 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12412 Update.
12413 * solib-frv.c (frv_relocate_main_executable): Update.
12414 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12415 * solib-aix.c (solib_aix_get_section_offsets): Change return
12416 type.
12417 (solib_aix_solib_create_inferior_hook): Update.
12418 * remote.c (remote_target::get_offsets): Update.
12419 * psymtab.c (find_pc_sect_psymtab): Update.
12420 * psympriv.h (struct partial_symbol) <address, text_low,
12421 text_high>: Update.
12422 * objfiles.h (obj_section_offset): Update.
12423 (struct objfile) <section_offsets>: Change type.
12424 <num_sections>: Remove.
12425 (objfile_relocate): Update.
12426 * objfiles.c (entry_point_address_query): Update
12427 (relocate_one_symbol): Change type of "section_offsets".
12428 (objfile_relocate1, objfile_relocate1): Change type of
12429 "new_offsets".
12430 (objfile_rebase1): Update.
12431 * mipsread.c (mipscoff_symfile_read): Update.
12432 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12433 parameter.
12434 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12435 (parse_external, psymtab_to_symtab_1): Update.
12436 * machoread.c (macho_symfile_offsets): Update.
12437 * ia64-tdep.c (ia64_find_unwind_table): Update.
12438 * hppa-tdep.c (read_unwind_info): Update.
12439 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12440 * dwarf2read.c (create_addrmap_from_index)
12441 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12442 (process_psymtab_comp_unit_reader, add_partial_symbol)
12443 (add_partial_subprogram, process_full_comp_unit)
12444 (read_file_scope, read_func_scope, read_lexical_block_scope)
12445 (read_call_site_scope, dwarf2_rnglists_process)
12446 (dwarf2_ranges_process, dwarf2_ranges_read)
12447 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12448 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12449 Update.
12450 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12451 Update.
12452 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12453 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12454 (process_one_symbol): Change type of "section_offsets".
12455 * ctfread.c (get_objfile_text_range): Update.
12456 * coffread.c (coff_symtab_read, enter_linenos)
12457 (process_coff_symbol): Update.
12458 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12459 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12460
12461 2020-01-08 Tom Tromey <tromey@adacore.com>
12462
12463 * dwarf2read.c (parse_macro_definition): Use std::string.
12464 (parse_macro_definition): Likewise.
12465
12466 2020-01-08 Tom Tromey <tromey@adacore.com>
12467
12468 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12469 (ATTR_ALLOC_CHUNK): Remove.
12470
12471 2020-01-08 Tom Tromey <tromey@adacore.com>
12472
12473 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12474
12475 2020-01-08 Tom Tromey <tromey@adacore.com>
12476
12477 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12478 (dwarf2_compute_name, open_dwo_file): Likewise.
12479 (process_enumeration_scope): Use std::vector.
12480 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12481 (partial_die_info::fixup, dwarf2_start_subfile)
12482 (guess_full_die_structure_name, dwarf2_name): Likewise.
12483 (determine_prefix): Update.
12484 (guess_full_die_structure_name): Make return type const.
12485 (partial_die_full_name): Return unique_xmalloc_ptr.
12486 (DW_FIELD_ALLOC_CHUNK): Remove.
12487
12488 2020-01-07 Tom Tromey <tromey@adacore.com>
12489
12490 PR build/24937:
12491 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12492
12493 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12494
12495 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12496
12497 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12498
12499 * stack.c (print_frame_info): Move disassemble_next_line code
12500 inside source_print block.
12501
12502 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12503
12504 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12505 gdb/signals.h, as we are now using native signal symbols.
12506
12507 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12508
12509 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12510 overflow by an early check of content vs threshold.
12511 * tui/tui-source.c (tui_source_window::line_is_displayed):
12512 Likewise.
12513
12514 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12515
12516 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12517
12518 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12519
12520 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12521 export table if no section contains it's RVA.
12522
12523 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12524
12525 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12526
12527 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
12528
12529 * source.c (print_source_lines_base): Set last_line_listed.
12530
12531 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12532
12533 * tui/tui-disasm.c: Remove trailing spaces.
12534
12535 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12536 Pedro Alves <palves@redhat.com>
12537
12538 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12539 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12540 (windows_gdb_signal_to_target): New function, uses the above
12541 enumeration to convert GDB internal signal codes to equivalent
12542 Windows codes.
12543 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12544 * windows-nat.c: Include "gdb_wait.h".
12545 (get_windows_debug_event): Extract the fatal exception from the
12546 exit status and convert to the equivalent Posix signal number.
12547 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12548 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12549 * gdbsupport/gdb_wait.c: New file, implements
12550 windows_status_to_termsig.
12551 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12552 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12553
12554 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12555
12556 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12557 show_layout.
12558
12559 2020-01-05 Luis Machado <luis.machado@linaro.org>
12560
12561 * aarch64-linux-nat.c
12562 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12563 and bfd_mach_aarch64.
12564
12565 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12566
12567 * ui-file.c (stdio_file::can_emit_style_escape)
12568 (tee_file::can_emit_style_escape): Ensure style is used also on
12569 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12570 to gdb_stdout.
12571 * main.c (set_gdb_data_directory): Use file style to output the
12572 warning that the given pathname is not a directory.
12573 * top.c (show_history_filename, gdb_safe_append_history)
12574 (show_gdb_datadir): Use file style.
12575
12576 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12577
12578 * solib-target.c (struct lm_info_target):
12579 Change offsets to be a unique_xmalloc_ptr.
12580 (solib_target_relocate_section_addresses): Update.
12581
12582 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12583
12584 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12585
12586 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12587
12588 * MAINTAINERS (Write After Approval): Add myself.
12589
12590 2020-01-02 Luis Machado <luis.machado@linaro.org>
12591
12592 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12593 Cell BE architecture.
12594 * target.h (struct target_ops) <thread_architecture>: Likewise.
12595
12596 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12597
12598 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12599
12600 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12601
12602 * MAINTAINERS (Write After Approval): Add myself.
12603
12604 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12605
12606 * gdbarch.sh: Update copyright year range of generated files.
12607
12608 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12609
12610 Update copyright year range in all GDB files.
12611
12612 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12613
12614 * copyright.py: Convert to Python 3.
12615
12616 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12617
12618 * copyright.py: Adapt after move of gnulib directory from gdb
12619 directory to toplevel directory.
12620
12621 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12622
12623 * copyright.py (main): Exit if run from the wrong directory.
12624
12625 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12626
12627 * top.c (print_gdb_version): Change copyright year to 2020.
12628
12629 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12630
12631 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
12632
12633 For older changes see ChangeLog-2019.
12634 \f
12635 Local Variables:
12636 mode: change-log
12637 left-margin: 8
12638 fill-column: 74
12639 version-control: never
12640 coding: utf-8
12641 End: