gdb: remove TYPE_PROTOTYPED
[binutils-gdb.git] / gdb / ChangeLog
1 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2
3 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4 uses with type::is_prototyped.
5
6 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
7
8 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
9 New methods.
10 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
11 call sites to use type::set_is_prototyped.
12
13 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
14
15 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
16 uses with type::target_is_stub.
17
18 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
19
20 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
21 New methods.
22 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
23 sites to use type::set_target_is_stub.
24
25 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
26
27 * gdbtypes.h (TYPE_STUB): Remove, replace all
28 uses with type::is_stub.
29
30 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
31
32 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
33 (TYPE_STUB): Use type::is_stub, change all write call sites to
34 use type::set_is_stub.
35
36 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
37
38 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
39 type::has_no_signedness.
40
41 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
42
43 * gdbtypes.h (struct type) <has_no_signedness,
44 set_has_no_signedness>: New methods.
45 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
46 call sites to use type::set_has_no_signedness.
47
48 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
49
50 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
51 type::is_unsigned.
52
53 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
54
55 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
56 methods.
57 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
58 sites to use type::set_is_unsigned.
59
60 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
61 Adam Renquinha <arenquinha@cimeq.qc.ca>
62
63 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
64 pointer and stack frame offset when unwinding.
65
66 2020-09-13 Pedro Alves <pedro@palves.net>
67
68 * NEWS: Document "-break-insert --qualified".
69 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
70
71 2020-09-13 Pedro Alves <pedro@palves.net>
72
73 * linespec.c (classify_mtype, compare_msyms): Delete.
74 (search_minsyms_for_name): Remove classification logic. Instead
75 filter out trampoline symbols if we also found an external
76 function of the same name.
77
78 2020-09-13 Joel Brobecker <brobecker@adacore.com>
79
80 * NEWS: Create a new section for the next release branch.
81 Rename the section of the current branch, now that it has
82 been cut.
83
84 2020-09-13 Joel Brobecker <brobecker@adacore.com>
85
86 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
87 * version.in: Bump version to 11.0.50.DATE-git.
88
89 2020-09-12 Joel Brobecker <brobecker@adacore.com>
90
91 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
92
93 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
94 Felix Willgerodt <Felix.Willgerodt@intel.com>
95
96 * gdbarch.sh: Added bfloat16 type.
97 * gdbarch.c: Regenerated.
98 * gdbarch.h: Regenerated.
99 * gdbtypes.c (floatformats_bfloat16): New struct.
100 (gdbtypes_post_init): Add builtin_bfloat16.
101 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
102 (floatformats_bfloat16): New struct.
103 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
104 (i386_ymm_type): Add field "v16_bfloat16"
105 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
106 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
107 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
108 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
109 * features/i386/64bit-avx512.xml: Add bfloat16 type.
110 * features/i386/64bit-avx512.c: Regenerated.
111 * features/i386/64bit-sse.xml: Add bfloat16 type.
112 * features/i386/64bit-sse.c: Regenerated.
113
114 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
115
116 * i386-tdep.c (i386_zmm_type): Fix field names.
117 (i386_ymm_type): Fix field names.
118
119 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
120
121 * breakpoint.c: Fix typo in the help message of the
122 "set breakpoint condition-evaluation" command.
123
124 2020-09-10 Kamil Rytarowski <n54@gmx.com>
125
126 * nbsd-nat.c: Include "nat/netbsd-nat.h".
127 * (nbsd_nat_target::pid_to_exec_file)
128 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
129 (nbsd_nat_target::post_startup_inferior)
130 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
131 (nbsd_add_threads): Switch local code to common gdb/nat functions.
132 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
133 * (nbsd_thread_lister): Remove.
134
135 2020-09-10 Kamil Rytarowski <n54@gmx.com>
136
137 * fork-inferior.c (startup_inferior): Avoid double free.
138
139 2020-09-10 Kamil Rytarowski <n54@gmx.com>
140
141 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
142 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
143
144 2020-09-10 Kamil Rytarowski <n54@gmx.com>
145
146 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
147 * netbsd-nat.c: Include <sys/ptrace.h>.
148 * (netbsd_nat::enable_proc_events): Add.
149
150 2020-09-10 Kamil Rytarowski <n54@gmx.com>
151
152 * netbsd-nat.h: Include "gdbsupport/function-view.h".
153 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
154 (netbsd_nat::for_each_thread): Add.
155 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
156 "gdbsupport/common-debug.h".
157 * (netbsd_nat::netbsd_thread_lister)
158 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
159 (netbsd_nat::for_each_thread): Add.
160
161 2020-09-10 Kamil Rytarowski <n54@gmx.com>
162
163 * netbsd-nat.h: Include <unistd.h>.
164 * (netbsd_nat::pid_to_exec_file): Add.
165 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
166 * (netbsd_nat::pid_to_exec_file) Add.
167
168 2020-09-10 Kamil Rytarowski <n54@gmx.com>
169
170 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
171
172 2020-09-10 Kamil Rytarowski <n54@gmx.com>
173
174 * netbsd-nat.h: New file.
175 * netbsd-nat.c: Likewise.
176
177 2020-09-09 Tom Tromey <tromey@adacore.com>
178
179 * ada-lang.c (remove_extra_symbols): Do not increment when
180 removing an element
181
182 2020-09-08 Tom Tromey <tromey@adacore.com>
183
184 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
185
186 2020-09-08 Tom Tromey <tromey@adacore.com>
187
188 PR win32/25302:
189 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
190 (gdb_bfd_init_data): New function.
191 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
192
193 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
194
195 * infrun.c (fetch_inferior_event): Use
196 `switch_to_target_no_thread` to switch the target.
197
198 2020-09-06 Tom Tromey <tom@tromey.com>
199
200 * symfile.h (dwarf2_free_objfile): Don't declare.
201
202 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
203
204 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
205 to match 16 byte real/complex type generated by Flang compiler.
206
207 2020-09-03 Tom de Vries <tdevries@suse.de>
208
209 PR breakpoint/26546
210 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
211 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
212
213 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
214
215 * maint.c (index_digits): New function.
216 (struct maint_print_section_data): Remove.
217 (print_bfd_section_info): Remove print_data parameter, add arg
218 and index_digits.
219 (print_objfile_section_info): Likewise.
220 (print_bfd_section_info_maybe_relocated): Likewise (plus
221 objfile).
222 (maintenance_info_sections): Adjust calls.
223
224 2020-09-02 Tom Tromey <tromey@adacore.com>
225
226 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
227 for null pointers.
228 (ada_varobj_adjust_for_child_access): Special-case null pointers.
229
230 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
231
232 * bcache.h (struct bcache) <insert>: Change type of `added` to
233 pointer to bool.
234 * bcache.c (bcache::insert): Likewise.
235 * gdbtypes.c (check_types_worklist): Adjust.
236 * psymtab.c (add_psymbol_to_bcache): Adjust.
237
238 2020-08-31 Kevin Buettner <kevinb@redhat.com>
239
240 * corelow.c (unordered_set): Include.
241 (class core_target): Add field 'm_core_unavailable_mappings'.
242 (core_target::build_file_mappings): Print only one warning
243 per inaccessible file. Add unavailable/broken mappings
244 to m_core_unavailable_mappings.
245 (core_target::xfer_partial): Call...
246 (core_target::xfer_memory_via_mappings): New method.
247
248 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
249
250 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
251 type to bool.
252
253 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
254
255 * dwarf2/read.c (struct field_info): Fix indentation.
256
257 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
258
259 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
260 ordering in comment.
261 * frame.c (frame_id_eq): Fix indentation.
262
263 2020-08-31 Scott Linder <scott@scottlinder.com>
264 Simon Marchi <simon.marchi@efficios.com>
265
266 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
267 inline frame ids in outer frame.
268
269 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
270
271 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
272 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
273 (outer_frame_id): Use FID_STACK_OUTER instead of
274 FID_STACK_INVALID.
275 (frame_id_p): Don't check for outer_frame_id.
276
277 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
278
279 * frame-unwind.c (frame_unwind_got_optimized): Don't set
280 regnum/frame in value. Call allocate_value_lazy.
281 * frame.c (frame_unwind_register_value): Use
282 val_print_not_saved.
283
284 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
285
286 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
287
288 2020-08-29 Pedro Alves <pedro@palves.net>
289
290 * progspace.c (print_program_space): Use all_inferiors. Switch to
291 the inferior before calling target_pid_to_str.
292
293 2020-08-28 Tom Tromey <tom@tromey.com>
294
295 * xcoffread.c (xcoff_end_psymtab): Update comment.
296 * dbxread.c (dbx_end_psymtab): Update comment.
297
298 2020-08-28 Tom de Vries <tdevries@suse.de>
299
300 PR breakpoint/26544
301 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
302 event_location.
303 (create_breakpoint): Same.
304 (base_breakpoint_decode_location): Same.
305 (bkpt_create_sals_from_location): Same.
306 (bkpt_decode_location): Same.
307 (bkpt_probe_create_sals_from_location): Same.
308 (bkpt_probe_decode_location): Same.
309 (tracepoint_create_sals_from_location): Same.
310 (tracepoint_decode_location): Same.
311 (tracepoint_probe_decode_location): Same.
312 (strace_marker_create_sals_from_location): Same.
313 (strace_marker_decode_location): Same.
314 (create_sals_from_location_default): Same.
315 (decode_location_default): Same.
316 * breakpoint.h (struct breakpoint_ops): Same.
317 (create_breakpoint): Same.
318 * linespec.h (decode_line_full): Same.
319 * linespec.c (decode_line_full): Same. Throw error if
320 result.size () == 0.
321
322 2020-08-27 Pedro Alves <pedro@palves.net>
323
324 PR gdb/26524
325 * breakpoint.c (until_break_fsm) <location_breakpoint,
326 caller_breakpoint>: Delete fields.
327 <breakpoints>: New field.
328 <until_break_fsm>: Adjust to save a breakpoint vector instead of
329 two individual breakpoints.
330 (until_break_fsm::should_stop): Loop over breakpoints in the
331 breakpoint vector.
332 (until_break_fsm::clean_up): Adjust to clear the breakpoints
333 vector.
334 (until_break_command): Handle location expanding into multiple
335 sals.
336
337 2020-08-27 Pedro Alves <pedro@palves.net>
338
339 PR gdb/26523
340 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
341 bp_until breakpoints user-specified locations. Update intro
342 comment.
343
344 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
345
346 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
347 gdb_bfd_sections): New.
348 * maint.c (print_bfd_section_info): Change param type to
349 maint_print_section_data.
350 (print_objfile_section_info): Likewise.
351 (print_bfd_section_info_maybe_relocated): Likewise.
352 (maintenance_info_sections): Use gdb_bfd_sections.
353
354 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
355
356 * MAINTAINERS: Add ARC target and maintainer.
357
358 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
359
360 * configure.tgt: ARC support for GNU/Linux.
361 * Makefile.in (ALL_TARGET_OBJS): Likewise.
362 * arc-linux-tdep.c: New file.
363 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
364 * arc-tdep.c (arc_write_pc): Use it.
365
366 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
367
368 * arc-tdep.c (arc_check_for_hardware_loop): New.
369 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
370
371 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
372
373 * arc-tdep.h: Include "gdbarch.h".
374
375 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
376
377 * arch/arc.h
378 (arc_gdbarch_features): New class to stir the selection of target XML.
379 (arc_create_target_description): Use FEATURES to choose XML target.
380 (arc_lookup_target_description): Use arc_create_target_description
381 to create _new_ target descriptions or return the already created
382 ones if the FEATURES is the same.
383 * arch/arc.c: Implementation of prototypes described above.
384 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
385 (arc_gdbarch_features_init): Initialize the FEATURES struct.
386 * arc-tdep.c (*_feature_name): Make feature names consistent.
387 (arc_register_feature): A new struct to hold information about
388 registers of a particular target/feature.
389 (arc_check_tdesc_feature): Check if XML provides registers in
390 compliance with ARC_REGISTER_FEATURE structs.
391 (arc_update_acc_reg_names): Add aliases for r58 and r59.
392 (determine_*_reg_feature_set): Which feature name to look for.
393 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
394 (mach_type_to_arc_isa): Convert from a set of binutils machine types
395 to expected ISA enums to be used in arc_gdbarch_features structs.
396 * features/Makefile (FEATURE_XMLFILES): Add new files.
397 * gdb/features/arc/v1-aux.c: New file.
398 * gdb/features/arc/v1-aux.xml: Likewise.
399 * gdb/features/arc/v1-core.c: Likewise.
400 * gdb/features/arc/v1-core.xml: Likewise.
401 * gdb/features/arc/v2-aux.c: Likewise.
402 * gdb/features/arc/v2-aux.xml: Likewise.
403 * gdb/features/arc/v2-core.c: Likewise.
404 * gdb/features/arc/v2-core.xml: Likewise.
405 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
406
407 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
408 Andrew Burgess <andrew.burgess@embecosm.com>
409
410 PR m2/26372
411 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
412 an assert. Remove single element array indexing pattern as the
413 MULTI_SUBSCRIPT support will handle this case too.
414
415 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
416
417 * value.h (valprint_check_validity): Move declaration from
418 here...
419 * valprint.h (valprint_check_validity): ... to here.
420
421 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
422
423 * debug.h: New file.
424 * debug.c (debug_prefixed_vprintf): New function.
425 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
426 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
427
428 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
429
430 * infrun.h (infrun_debug_printf_1): New function declaration.
431 (infrun_debug_printf): New macro.
432 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
433 throughout.
434 (infrun_debug_printf): New function.
435 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
436 (handle_jit_event): Likewise.
437
438 2020-08-21 Mark Wielaard <mark@klomp.org>
439
440 * ada-lex.l: Extend register warnings diagnostics comment for g++.
441
442 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
443
444 * frame.c (enum class frame_id_status): New.
445 (struct frame_info) <this_id::p>: Change type to frame_id_status.
446 (fprintf_frame): Update.
447 (compute_frame_id): Set frame id status to "computing" on entry.
448 Set it back to "not_computed" on failure and to "computed" on
449 success.
450 (get_frame_id): Assert the frame id is not being computed.
451 (create_sentinel_frame): Use frame_id_status::COMPUTED.
452 (create_new_frame): Likewise.
453 (frame_cleanup_after_sniffer): Update assert.
454
455 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
456
457 * regcache.c (pid_ptid_regcache_map): New type.
458 (target_ptid_regcache_map): Remove.
459 (target_pid_ptid_regcache_map): New type.
460 (regcaches): Change type to target_pid_ptid_regcache_map.
461 (get_thread_arch_aspace_regcache): Update.
462 (regcache_thread_ptid_changed): Update, handle pid-like ptid
463 case.
464 (regcaches_size): Update.
465 (regcache_count): Update.
466 (registers_changed_ptid_target_pid_test): New.
467 (_initialize_regcache): Register new test.
468
469 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
470
471 * regcache.c (regcache_count): New.
472 (struct regcache_test_data): New.
473 (regcache_test_data_up): New.
474 (populate_regcaches_for_test): New.
475 (regcaches_test): Remove.
476 (get_thread_arch_aspace_regcache_test): New.
477 (registers_changed_ptid_all_test): New.
478 (registers_changed_ptid_target_test): New.
479 (registers_changed_ptid_target_ptid_test): New.
480 (regcache_thread_ptid_changed): Remove regcache_count lambda.
481 (_initialize_regcache): Register new tests.
482
483 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
484
485 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
486 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
487 gdbarch and aspace parameter. Use current inferior's aspace.
488 Validate regcache's arch value.
489 (regcaches_test): Update.
490
491 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
492
493 * regcache.c (regcaches_test): Call registers_changed.
494
495 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
496
497 * infrun.c (process_event_stop_test): Fix typo "breapoint".
498
499 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
500
501 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
502 to find the end of prologue for flang compiled binaries.
503 * arm-tdep.c (arm_skip_prologue): Likewise.
504 * i386-tdep.c (i386_skip_prologue): Likewise.
505 * producer.c (producer_is_llvm): New function.
506 (producer_parsing_tests): Added new tests for clang/flang.
507 * producer.h (producer_is_llvm): New declaration.
508
509 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
510
511 * linux-nat.c (linux_nat_debug_printf): New function.
512 (linux_nat_debug_printf_1): New macro. Use throughout the file.
513
514 2020-08-18 Aaron Merey <amerey@redhat.com>
515
516 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
517 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
518 (CLIBS): Add DEBUGINFOD_LIBS.
519
520 2020-08-17 Sergei Trofimovich <siarheit@google.com>
521
522 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
523 'gdbarch_num_regs'.
524
525 2020-08-17 Tom Tromey <tromey@adacore.com>
526
527 * ada-varobj.c (ada_varobj_decode_var): Handle case where
528 ada_get_decoded_value returns NULL.
529
530 2020-08-17 Tom Tromey <tromey@adacore.com>
531
532 * python/py-inferior.c (infpy_search_memory): Use
533 gdb_py_object_from_ulongest.
534 * python/py-infevents.c (create_inferior_call_event_object)
535 (create_memory_changed_event_object): Use
536 gdb_py_object_from_ulongest.
537 * python/py-linetable.c (ltpy_entry_get_pc): Use
538 gdb_py_object_from_ulongest.
539
540 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
541
542 * loc.c (class symbol_needs_eval_context): Fix indentation.
543
544 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
545
546 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
547 bool.
548
549 2020-08-17 Tom de Vries <tdevries@suse.de>
550
551 PR gdb/26393
552 * gdbtypes.c (dump_dynamic_prop): New function.
553 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
554
555 2020-08-15 Tom de Vries <tdevries@suse.de>
556
557 PR backtrace/26390
558 * stack.c (print_frame_args): Temporarily set the selected
559 frame to FRAME while printing the frame's arguments.
560
561 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
562
563 PR breakpoints/26385
564 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
565 Always clear watchpoint with PTRACE_SET_DEBUGREG.
566
567 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
568
569 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
570 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
571 and >= to check return value instead of == -1 and != -1.
572
573 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
574
575 * utils.h (class gdb_argv) <as_array_view>: New method.
576 * utils.c (gdb_argv_as_array_view_test): New.
577 (_initialize_utils): Register selftest.
578 * maint.c (maintenance_selftest): Use the new method.
579
580 2020-08-13 Kamil Rytarowski <n54@gmx.com>
581
582 * target.h (supports_dumpcore, dumpcore): New
583 function declarations.
584 * target.c (supports_dumpcore, dumpcore): New
585 functions.
586 * target-delegates.c: Rebuild.
587 * gcore.c (gcore_command): Use target_supports_dumpcore ()
588 and target_dumpcore ().
589
590 2020-08-13 Aaron Merey <amerey@redhat.com>
591
592 * debuginfod-support.c: Replace global variables with user_data.
593
594 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
595
596 * maint.c (maintenance_selftest): Split args and pass array_view
597 to run_tests.
598
599 2020-08-12 Luis Machado <luis.machado@linaro.org>
600
601 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
602 type's length.
603 Use %s and pulongest to print the length.
604
605 2020-08-12 Pedro Alves <palves@redhat.com>
606
607 * NEWS: Move "Multi-target debugging support" item to the
608 "Changes since GDB 9" section.
609
610 2020-08-12 Pedro Alves <palves@redhat.com>
611
612 PR gdb/26336
613 * progspace.c (program_space::remove_objfile): Invalidate the
614 frame cache.
615
616 2020-08-11 Tom de Vries <tdevries@suse.de>
617
618 * MAINTAINERS: Mark ms1 as deleted.
619
620 2020-08-10 Luis Machado <luis.machado@linaro.org>
621
622 PR gdb/26310
623
624 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
625 act accordingly.
626 (aarch64_analyze_prologue_test): Add more unit tests to exercise
627 movz/str/stur/stp skipping behavior.
628
629 2020-08-10 Luis Machado <luis.machado@linaro.org>
630
631 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
632 struct user_sve_header instead of struct sve_context.
633
634 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
635
636 * read.h (dwarf2_fetch_die_loc_sect_off,
637 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
638 `void *` parameter with function_view.
639 * read.c (dwarf2_fetch_die_loc_sect_off,
640 dwarf2_fetch_die_loc_cu_off): Likewise.
641 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
642 (per_cu_dwarf_call): Adjust.
643 (get_frame_address_in_block_wrapper): Remove.
644 (indirect_synthetic_pointer): Adjust.
645 (get_ax_pc): Remove.
646 (dwarf2_compile_expr_to_ax): Adjust.
647
648 2020-08-08 Tom de Vries <tdevries@suse.de>
649
650 PR build/26344
651 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
652 constructor.
653 * regcache.c (get_thread_arch_aspace_regcache): Same.
654
655 2020-08-07 Tom Tromey <tromey@adacore.com>
656
657 * ravenscar-thread.c
658 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
659 New method.
660 (ravenscar_thread_target::wait): Check
661 runtime_initialized.
662 (ravenscar_thread_target::prepare_to_store)
663 (ravenscar_thread_target::stopped_by_sw_breakpoint)
664 (ravenscar_thread_target::stopped_by_hw_breakpoint)
665 (ravenscar_thread_target::stopped_by_watchpoint)
666 (ravenscar_thread_target::stopped_data_address)
667 (ravenscar_thread_target::core_of_thread): Use
668 scoped_restore_current_thread and
669 set_base_thread_from_ravenscar_task.
670
671 2020-08-07 Tom Tromey <tromey@adacore.com>
672
673 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
674
675 2020-08-07 Tom Tromey <tromey@adacore.com>
676
677 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
678 update_inferior_ptid before update_thread_list.
679 (temporarily_change_regcache_ptid): New class.
680 (ravenscar_thread_target::fetch_registers)
681 (ravenscar_thread_target::store_registers)
682 (ravenscar_thread_target::prepare_to_store): Use base thread when
683 forwarding operation.
684
685 2020-08-07 Tom Tromey <tromey@adacore.com>
686
687 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
688 "is_pid" case.
689
690 2020-08-07 Tom Tromey <tromey@adacore.com>
691
692 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
693 New methods.
694 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
695 first.
696 (ravenscar_thread_target::add_thread): Rename from
697 ravenscar_add_thread.
698 (ravenscar_thread_target::update_thread_list): Use a lambda.
699 (ravenscar_thread_target::xfer_partial): New method.
700
701 2020-08-07 Tom Tromey <tromey@adacore.com>
702
703 * ada-lang.h (ada_task_list_iterator_ftype): Now a
704 gdb::function_view.
705 (iterate_over_live_ada_tasks): Change type of argument.
706 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
707 of argument.
708
709 2020-08-07 Tom Tromey <tromey@adacore.com>
710
711 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
712 Remove.
713 (ravenscar_thread_target::extra_thread_info): Remove.
714 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
715 defer to target beneath for non-Ravenscar threads.
716
717 2020-08-07 Tom Tromey <tromey@adacore.com>
718
719 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
720 get_base_thread_from_ravenscar_task>: Now methods.
721 <m_cpu_map>: New member.
722 (ravenscar_thread_target::get_thread_base_cpu): Rename from
723 ravenscar_get_thread_base_cpu. Check m_cpu_map.
724 (ravenscar_thread_target::task_is_currently_active): Update.
725 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
726 Now a method.
727 (ravenscar_thread_target::add_active_thread): Put initial thread
728 into the m_cpu_map.
729
730 2020-08-07 Tom Tromey <tromey@adacore.com>
731
732 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
733 event_ptid.
734
735 2020-08-07 Tom Tromey <tromey@adacore.com>
736
737 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
738 runtime_initialized.
739
740 2020-08-07 Tom Tromey <tromey@adacore.com>
741
742 * ravenscar-thread.c (ravenscar_thread_target): Don't call
743 add_active_thread.
744 (ravenscar_thread_target::add_active_thread): Now public.
745 (ravenscar_inferior_created): Call add_active_thread after pushing
746 the target.
747
748 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
749
750 * regcache.c (ptid_regcache_map): New type.
751 (target_ptid_regcache_map): New type.
752 (regcaches): Change type to target_ptid_regcache_map.
753 (get_thread_arch_aspace_regcache): Update to regcaches' new
754 type.
755 (regcache_thread_ptid_changed): Likewise.
756 (registers_changed_ptid): Likewise.
757 (regcaches_size): Likewise.
758 (regcaches_test): Update.
759 (regcache_thread_ptid_changed): Update.
760 * regcache.h (regcache_up): New type.
761 * gdbsupport/ptid.h (hash_ptid): New struct.
762
763 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
764
765 * observable.h (thread_ptid_changed): Add parameter
766 `process_stratum_target *`.
767 * infrun.c (infrun_thread_ptid_changed): Add parameter
768 `process_stratum_target *` and use it.
769 (selftests): New namespace.
770 (infrun_thread_ptid_changed): New function.
771 (_initialize_infrun): Register selftest.
772 * regcache.c (regcache_thread_ptid_changed): Add parameter
773 `process_stratum_target *` and use it.
774 (regcache_thread_ptid_changed): New function.
775 (_initialize_regcache): Register selftest.
776 * thread.c (thread_change_ptid): Pass target to
777 thread_ptid_changed observable.
778
779 2020-08-06 Caroline Tice <cmtice@google.com>
780
781 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
782 (struct dwp_sections): Update field comments. Add loclists and
783 rnglists fields.
784 (struct virtual_v2_dwo_sections): Rename struct to
785 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
786 size & offset fields for loclists and rnglists.
787 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
788 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
789 skipping dummy type units.
790 (create_dwp_hash_table): Update the large comment above the function to
791 discuss Version 5 DWP files as well, with references. Update all the
792 version checks in the function to check for version 5 as well. Add new
793 section at the end to create dwp hash table for version 5.
794 (create_dwp_v2_section): Rename function to
795 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
796 Add V5 to error message text.
797 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
798 into calls to create_dwp_v2_or_v5_section.
799 (create_dwo_unit_in_dwp_v5): New function.
800 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
801 check for version2; add else clause to handle version 5.
802 (open_and_init_dwo_file): Add code to check dwarf version & only call
803 create_debug_types_hash_table (with sections.types) if version is not 5;
804 else call create_debug_type_hash_table, with sections.info.
805 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
806 version 5.
807 (dwarf2_locate_v5_dwp_sections): New function.
808 (open_and_init_dwp_file): Add else-if clause for version 5 to call
809 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
810
811 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
812
813 * regcache.h (class regcache): Remove friend
814 registers_changed_ptid.
815 <regcache_thread_ptid_changed>: Remove.
816 <regcaches>: Remove.
817 * regcache.c (regcache::regcaches): Rename to...
818 (regcaches): ... this. Make static.
819 (get_thread_arch_aspace_regcache): Update.
820 (regcache::regcache_thread_ptid_changed): Rename to...
821 (regcache_thread_ptid_changed): ... this. Update.
822 (class regcache_access): Remove.
823 (regcaches_test): Update.
824 (_initialize_regcache): Update.
825 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
826 <forward_list>.
827
828 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
829
830 * regcache.h (class regcache) <current_regcache>: Rename to...
831 <regcaches>: ... this. Move doc here.
832 * regcache.c (regcache::current_regcache) Rename to...
833 (regcache::regcaches): ... this. Move doc to header.
834 (get_thread_arch_aspace_regcache): Update.
835 (regcache::regcache_thread_ptid_changed): Update.
836 (registers_changed_ptid): Update.
837 (class regcache_access) <current_regcache_size>: Rename to...
838 <regcaches_size>: ... this.
839 (current_regcache_test): Rename to...
840 (regcaches_test): ... this.
841 (_initialize_regcache): Update.
842
843 2020-08-06 Victor Collod <vcollod@nvidia.com>
844
845 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
846
847 2020-08-05 Kevin Buettner <kevinb@redhat.com>
848
849 * corelow.c (core_target::build_file_mappings): Don't output
850 null pathname in warning.
851
852 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
853
854 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
855 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
856 gdb.dwarf2/dw2-single-line-discriminators.exp,
857 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
858
859 2020-08-05 Tom Tromey <tromey@adacore.com>
860
861 PR rust/26197:
862 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
863 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
864 Fix off-by-one and type size errors in ordinary case.
865
866 2020-08-05 Tom de Vries <tdevries@suse.de>
867
868 * gdbtypes.c (type_not_allocated, type_not_associated): Use
869 "prop->const_val () == 0" instead of "prop->const_val () != 0".
870
871 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
872
873 * frame.h (frame_id_p): Return bool.
874 (frame_id_artificial_p): Return bool.
875 (frame_id_eq): Return bool.
876 (has_stack_frames): Return bool.
877 (get_selected_frame): Fix typo in comment.
878 (get_frame_pc_if_available): Return bool.
879 (get_frame_address_in_block_if_available): Return bool.
880 (get_frame_func_if_available): Return bool.
881 (read_frame_register_unsigned): Return bool.
882 (get_frame_register_bytes): Return bool.
883 (safe_frame_unwind_memory): Return bool.
884 (deprecated_frame_register_read): Return bool.
885 (frame_unwinder_is): Return bool.
886 * frame.c (struct frame_info) <prev_arch::p>: Change type to
887 bool.
888 <this_id::p>: Likewise.
889 <prev_p>: Likewise.
890 (frame_stash_add): Return bool.
891 (get_frame_id): Use bool.
892 (frame_id_build_special) Use bool.
893 (frame_id_build_unavailable_stack): Use bool.
894 (frame_id_build): Use bool.
895 (frame_id_p): Return bool, use true/false instead of 1/0.
896 (frame_id_artificial_p): Likewise.
897 (frame_id_eq): Likewise.
898 (frame_id_inner): Likewise.
899 (get_frame_func_if_available): Likewise.
900 (read_frame_register_unsigned): Likewise.
901 (deprecated_frame_register_read): Likewise.
902 (get_frame_register_bytes): Likewise.
903 (has_stack_frames): Likewise.
904 (inside_main_func): Likewise.
905 (inside_entry_func): Likewise.
906 (get_frame_pc_if_available): Likewise.
907 (get_frame_address_in_block_if_available): Likewise.
908 (frame_unwinder_is): Likewise.
909 (safe_frame_unwind_memory): Likewise.
910 (frame_unwind_arch): Likewise.
911
912 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
913
914 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
915 type to cached_copy_status.
916 (fprintf_frame): Adjust.
917 (get_frame_func_if_available): Adjust.
918 (frame_cleanup_after_sniffer): Adjust.
919
920 2020-08-04 Mark Wielaard <mark@klomp.org>
921
922 * MAINTAINERS (Write After Approval): Update email address.
923
924 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
925
926 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
927 dynamic_prop::const_val.
928
929 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
930
931 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
932 dynamic_prop::kind.
933
934 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
935
936 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
937
938 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
939
940 * configure.tgt: Set gdb_sim for bpf-*-* targets.
941
942 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
943 Jose E. Marchesi <jose.marchesi@oracle.com>
944
945 * configure.tgt: Add entry for bpf-*-*.
946 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
947 (ALLDEPFILES): Add bpf-tdep.c.
948 * bpf-tdep.c: New file.
949 * MAINTAINERS: Add bpf target and maintainer.
950 * NEWS: Mention the support for the new target.
951
952 2020-08-04 Tom de Vries <tdevries@suse.de>
953
954 PR symtab/23270
955 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
956 Error.
957
958 2020-08-03 John Baldwin <jhb@FreeBSD.org>
959
960 * syscalls/freebsd.xml: Regenerate.
961
962 2020-08-03 John Baldwin <jhb@FreeBSD.org>
963
964 * syscalls/update-freebsd.sh: Fix usage and year range.
965
966 2020-08-03 Tom de Vries <tdevries@suse.de>
967
968 PR symtab/26333
969 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
970 DW_LNE_lo_user/DW_LNE_hi_user range.
971
972 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
973
974 PR ada/26318
975 * ada-lang.c (ada_modulus): Return 0 if property is not of const
976 kind.
977
978 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
979
980 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
981
982 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
983
984 * breakpoint.c (set_breakpoint_condition): Update the condition
985 expressions after checking that the input condition string parses
986 successfully and does not contain junk at the end.
987
988 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
989
990 * breakpoint.c (set_breakpoint_condition): Update the
991 condition string after parsing the new condition successfully.
992
993 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
994
995 * proc-api.c (_STRUCTURED_PROC): Don't define.
996 * proc-events.c: Likewise.
997 * proc-flags.c: Likewise.
998 * proc-why.c: Likewise.
999 * procfs.c: Likewise.
1000
1001 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
1002 * configure, config.in: Regenerate.
1003
1004 2020-07-30 Tom de Vries <tdevries@suse.de>
1005
1006 PR build/26320
1007 * ui-style.h (struct ui_file_style::color): Wrap m_value and
1008 m_red/m_green/m_blue in a union.
1009
1010 2020-07-29 Tom de Vries <tdevries@suse.de>
1011
1012 PR tdep/26280
1013 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
1014
1015 2020-07-28 Tom Tromey <tromey@adacore.com>
1016
1017 PR symtab/26270:
1018 * symtab.h (find_pc_partial_function_sym): Declare.
1019 * cli/cli-cmds.c (disassemble_command): Use
1020 find_pc_partial_function_sym. Check asm_demangle.
1021 * blockframe.c (cache_pc_function_sym): New global.
1022 (cache_pc_function_name): Remove.
1023 (clear_pc_function_cache): Update.
1024 (find_pc_partial_function_sym): New function, from
1025 find_pc_partial_function.
1026 (find_pc_partial_function): Rewrite using
1027 find_pc_partial_function_sym.
1028
1029 2020-07-28 Tom Tromey <tromey@adacore.com>
1030
1031 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
1032 help. Add usage.
1033
1034 2020-07-28 Tom Tromey <tromey@adacore.com>
1035
1036 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
1037 <DW_OP_GNU_variable_value>: Cast to address type.
1038
1039 2020-07-28 Kamil Rytarowski <n54@gmx.com>
1040
1041 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
1042 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
1043 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
1044 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
1045 (nbsd_get_siginfo_type): New.
1046 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
1047 (_initialize_nbsd_tdep): New.
1048
1049 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1050
1051 PR binutils/26301
1052 * configure: Regenerated.
1053
1054 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1055
1056 PR binutils/26301
1057 * configure: Regenerated.
1058
1059 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1060
1061 * python/py-frame.c: Remove 'user-regs.h' include.
1062 (frapy_read_register): Rewrite to make use of
1063 gdbpy_parse_register_id.
1064 * python/py-registers.c (gdbpy_parse_register_id): New function,
1065 moved here from python/py-unwind.c. Updated the return type, and
1066 also accepts register descriptor objects.
1067 * python/py-unwind.c: Remove 'user-regs.h' include.
1068 (pyuw_parse_register_id): Moved to python/py-registers.c.
1069 (unwind_infopy_add_saved_register): Update to use
1070 gdbpy_parse_register_id.
1071 (pending_framepy_read_register): Likewise.
1072 * python/python-internal.h (gdbpy_parse_register_id): Declare.
1073
1074 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1075
1076 * python/py-registers.c: Add 'user-regs.h' include.
1077 (register_descriptor_iter_find): New function.
1078 (register_descriptor_iterator_object_methods): New static global
1079 methods array.
1080 (register_descriptor_iterator_object_type): Add pointer to methods
1081 array.
1082
1083 2020-07-27 John Baldwin <jhb@FreeBSD.org>
1084
1085 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
1086 for all architectures on FreeBSD 11.3 and later.
1087
1088 2020-07-27 Tom Tromey <tromey@adacore.com>
1089
1090 * gcore.h (load_corefile): Don't declare.
1091
1092 2020-07-27 Tom de Vries <tdevries@suse.de>
1093
1094 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
1095 * config.in: Regenerate.
1096 * configure: Regenerate.
1097
1098 2020-07-26 Eli Zaretskii <eliz@gnu.org>
1099
1100 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
1101 ws2tcpip.h. When checking whether socklen_t type is defined, use
1102 ws2tcpip.h if it is available and sys/socket.h isn't.
1103 * configure: Regenerate.
1104 * config.in: Regenerate.
1105
1106 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
1107
1108 PR fortran/23051
1109 PR fortran/26139
1110 * valops.c (value_ind): Pass address to
1111 readjust_indirect_value_type.
1112 * value.c (readjust_indirect_value_type): Make parameter
1113 non-const, and add extra address parameter. Resolve original type
1114 before using it.
1115 * value.h (readjust_indirect_value_type): Update function
1116 signature and comment.
1117
1118 2020-07-25 Tom de Vries <tdevries@suse.de>
1119
1120 PR symtab/26243
1121 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
1122 entries.
1123
1124 2020-07-24 Aaron Merey <amerey@redhat.com>
1125
1126 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
1127 * configure: Rebuild.
1128
1129 2020-07-23 Kevin Buettner <kevinb@redhat.com>
1130
1131 PR corefiles/26294
1132 * corelow.c (_initialize_corelow): Add period to help text
1133 for "maintenance print core-file-backed-mappings".
1134
1135 2020-07-23 Pedro Alves <pedro@palves.net>
1136
1137 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
1138 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
1139 meanwhile.
1140 * frame.c (frame_cache_generation, get_frame_cache_generation):
1141 New.
1142 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
1143 (get_prev_frame_if_no_cycle): On exception, don't touch
1144 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
1145 * frame.h (get_frame_cache_generation): Declare.
1146
1147 2020-07-23 Tom de Vries <tdevries@suse.de>
1148
1149 PR tui/26282
1150 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
1151 New default constructor.
1152
1153 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
1154
1155 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
1156 exclude non-statement entries.
1157
1158 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1159
1160 * NEWS (New commands): Mention new command
1161 "maintenance print core-file-backed-mappings".
1162
1163 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1164
1165 * corelow.c (gdbcmd.h): Include.
1166 (core_target::info_proc_mappings): New method.
1167 (get_current_core_target): New function.
1168 (maintenance_print_core_file_backed_mappings): New function.
1169 (_initialize_corelow): Add core-file-backed-mappings to
1170 "maint print" commands.
1171
1172 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1173
1174 * linux-tdep.c (dump_note_entry_p): New function.
1175 (linux_dump_mapping_p_ftype): New typedef.
1176 (linux_find_memory_regions_full): Add new parameter,
1177 should_dump_mapping_p.
1178 (linux_find_memory_regions): Adjust call to
1179 linux_find_memory_regions_full.
1180 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
1181 call to linux_find_memory_regions_full.
1182
1183 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1184
1185 * corelow.c (solist.h, unordered_map): Include.
1186 (class core_target): Add field m_core_file_mappings and
1187 method build_file_mappings.
1188 (core_target::core_target): Call build_file_mappings.
1189 (core_target::~core_target): Free memory associated with
1190 m_core_file_mappings.
1191 (core_target::build_file_mappings): New method.
1192 (core_target::xfer_partial): Use m_core_file_mappings
1193 for memory transfers.
1194 * linux-tdep.c (linux_read_core_file_mappings): New
1195 function.
1196 (linux_core_info_proc_mappings): Rewrite to use
1197 linux_read_core_file_mappings.
1198 (linux_init_abi): Register linux_read_core_file_mappings.
1199
1200 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1201
1202 * arch-utils.c (default_read_core_file_mappings): New function.
1203 * arch-utils.c (default_read_core_file_mappings): Declare.
1204 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
1205 * gdbarch.h, gdbarch.c: Regenerate.
1206
1207 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1208
1209 PR corefiles/25631
1210 * corelow.c (core_target:xfer_partial): Revise
1211 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
1212 case after first checking the stratum beneath the core
1213 target.
1214 (has_all_memory): Return true.
1215 * target.c (raw_memory_xfer_partial): Revise comment
1216 regarding use of has_all_memory.
1217
1218 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1219
1220 * exec.h (section_table_xfer_memory): Revise declaration,
1221 replacing section name parameter with an optional callback
1222 predicate.
1223 * exec.c (section_table_xfer_memory): Likewise.
1224 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
1225 of section_table_xfer_memory.
1226
1227 2020-07-22 Tom Tromey <tromey@adacore.com>
1228
1229 * mi/mi-cmd-stack.c (list_args_or_locals): Use
1230 lookup_symbol_search_name.
1231
1232 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1233
1234 * python/py-registers.c (gdbpy_register_object_data_init): Remove
1235 redundant local variable.
1236 (gdbpy_get_register_descriptor): Extract descriptor vector as a
1237 reference, not pointer, update code accordingly.
1238
1239 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1240 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1241
1242 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
1243 * jit.c (jit_breakpoint_re_set_internal): Use the
1244 `skip_jit_symbol_lookup` field.
1245
1246 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1247 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1248
1249 * jit.c (jit_read_descriptor): Define the descriptor address once,
1250 use twice.
1251 (jit_breakpoint_deleted): Move the declaration of the loop variable
1252 `iter` into the loop header.
1253 (jit_breakpoint_re_set_internal): Move the declaration of the local
1254 variable `objf_data` to the first point of definition.
1255 (jit_event_handler): Move the declaration of local variables
1256 `code_entry`, `entry_addr`, and `objf` to their first point of use.
1257 Rename `objf` to `jited`.
1258
1259 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1260
1261 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
1262 Remove.
1263 * jit.c (get_jiter_objfile_data): Update.
1264
1265 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1266 Simon Marchi <simon.marchi@polymtl.ca>
1267
1268 * jit.c (struct jit_program_space_data): Remove.
1269 (jit_program_space_key): Remove.
1270 (jiter_objfile_data::~jiter_objfile_data): Remove program space
1271 stuff.
1272 (get_jit_program_space_data): Remove.
1273 (jit_breakpoint_deleted): Iterate on all of the program space's
1274 objfiles.
1275 (jit_inferior_init): Likewise.
1276 (jit_breakpoint_re_set_internal): Likewise. Also change return
1277 type to void.
1278 (jit_breakpoint_re_set): Pass current_program_space to
1279 jit_breakpoint_re_set_internal.
1280
1281 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1282
1283 * jit.h (struct jiter_objfile_data) <cached_code_address,
1284 jit_breakpoint>: Move to here from ...
1285 * jit.c (jit_program_space_data): ... here.
1286 (jiter_objfile_data::~jiter_objfile_data): Update.
1287 (jit_breakpoint_deleted): Update.
1288 (jit_breakpoint_re_set_internal): Update.
1289
1290 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1291
1292 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
1293 checks.
1294 (jit_read_descriptor): Remove NULL check.
1295 (jit_event_handler): Add an assertion.
1296
1297 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1298
1299 * jit.h (struct jit_objfile_data): Split into...
1300 (struct jiter_objfile_data): ... this ...
1301 (struct jited_objfile_data): ... and this.
1302 * objfiles.h (struct objfile) <jit_data>: Remove.
1303 <jiter_data, jited_data>: New fields.
1304 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
1305 (jiter_objfile_data::~jiter_objfile_data): ... this.
1306 (get_jit_objfile_data): Rename to ...
1307 (get_jiter_objfile_data): ... this.
1308 (add_objfile_entry): Update.
1309 (jit_read_descriptor): Use get_jiter_objfile_data.
1310 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
1311 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
1312 (jit_inferior_exit_hook): Use objfile's jited_data field.
1313
1314 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1315
1316 * jit.h: Forward-declare `struct minimal_symbol`.
1317 (struct jit_objfile_data): Migrate to here from jit.c; also add a
1318 constructor, destructor, and an objfile* field.
1319 * jit.c (jit_objfile_data): Remove.
1320 (struct jit_objfile_data): Migrate from here to jit.h.
1321 (jit_objfile_data::~jit_objfile_data): New destructor
1322 implementation with code moved from free_objfile_data.
1323 (free_objfile_data): Delete.
1324 (get_jit_objfile_data): Update to use the jit_data field of objfile.
1325 (jit_find_objf_with_entry_addr): Ditto.
1326 (jit_inferior_exit_hook): Ditto.
1327 (_initialize_jit): Remove the call to
1328 register_objfile_data_with_cleanup.
1329 * objfiles.h (struct objfile) <jit_data>: New field.
1330
1331 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1332
1333 * jit.h: Forward-declare `struct objfile`.
1334 (jit_event_handler): Add a second parameter, the JITer objfile.
1335 * jit.c (jit_read_descriptor): Change the signature to take the
1336 JITer objfile as an argument instead of the jit_program_space_data.
1337 (jit_inferior_init): Update the call to jit_read_descriptor.
1338 (jit_event_handler): Use the new JITer objfile argument when calling
1339 jit_read_descriptor.
1340 * breakpoint.c (handle_jit_event): Update the call to
1341 jit_event_handler to pass the JITer objfile.
1342
1343 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1344
1345 * gdbarch.c: Regenerate.
1346 * gdbarch.h: Regenerate.
1347 * gdbarch.sh (handle_segmentation_fault): Remove method.
1348 * infrun.c (handle_segmentation_fault): Remove.
1349 (print_signal_received_reason): Remove call to
1350 handle_segmentation_fault.
1351
1352 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1353
1354 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1355 Rename to sparc64_linux_report_signal_info and add siggnal
1356 argument.
1357 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
1358 instead of sparc64_linux_handle_segmentation_fault.
1359
1360 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1361
1362 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
1363 i386_linux_report_signal_info instead of
1364 i386_linux_handle_segmentation_fault.
1365 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
1366 to i386_linux_report_signal_info and add siggnal argument.
1367 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
1368 of i386_linux_handle_segmentation_fault.
1369 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
1370 to i386_linux_report_signal_info and add siggnal argument.
1371
1372 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1373
1374 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1375 hook if present.
1376
1377 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1378
1379 * gdbarch.c: Regenerate.
1380 * gdbarch.h: Regenerate.
1381 * gdbarch.sh (report_signal_info): New method.
1382 * infrun.c (print_signal_received_reason): Invoke gdbarch
1383 report_signal_info hook if present.
1384
1385 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1386
1387 * python/py-registers.c : Add 'unordered_map' include.
1388 (gdbpy_new_reggroup): Renamed to...
1389 (gdbpy_get_reggroup): ...this. Update to only create register
1390 group descriptors when needed.
1391 (gdbpy_reggroup_iter_next): Update.
1392
1393 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1394
1395 * python/py-registers.c (gdbpy_register_object_data): New static
1396 global.
1397 (gdbpy_register_object_data_init): New function.
1398 (gdbpy_new_register_descriptor): Renamed to...
1399 (gdbpy_get_register_descriptor): ...this, and update to reuse
1400 existing register descriptors where possible.
1401 (gdbpy_register_descriptor_iter_next): Update.
1402 (gdbpy_initialize_registers): Register new gdbarch data.
1403
1404 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
1405
1406 * linux-nat.c (stopped_pids): Make static.
1407
1408 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1409
1410 PR ada/26235
1411 * gdbtypes.c (ada_discrete_type_low_bound,
1412 ada_discrete_type_high_bound): Handle undefined bounds.
1413
1414 2020-07-21 Kamil Rytarowski <n54@gmx.com>
1415
1416 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1417 declaration.
1418 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1419 function.
1420
1421 2020-07-20 John Baldwin <jhb@FreeBSD.org>
1422
1423 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1424 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1425 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1426 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1427 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1428 method.
1429
1430 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1431
1432 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1433 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1434 which are deprecated in Guile 3.0.
1435 * configure.ac (try_guile_versions): Add "guile-3.0".
1436 * configure (try_guile_versions): Regenerate.
1437 * NEWS: Update entry.
1438
1439 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1440 Doug Evans <dje@google.com>
1441
1442 PR gdb/21104
1443 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1444 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1445 USING_GUILE_BEFORE_2_2.
1446 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1447 Change type to 'scm_t_port_type *'.
1448 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1449 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1450 parameter and honor it. Update callers.
1451 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1452 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1453 functions.
1454 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1455 USING_GUILE_BEFORE_2_2.
1456 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1457 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1458 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1459 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1460 and 'SCM_PORT_TYPE'.
1461 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1462 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1463 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1464 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1465 [!USING_GUILE_BEFORE_2_2]: New functions.
1466 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1467 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1468 'gdbscm_memory_port_read'.
1469 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1470 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1471 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1472 function.
1473 (ioscm_init_memory_port): Remove.
1474 (ioscm_init_memory_port_stream): New function
1475 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1476 function.
1477 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1478 Return scm_from_uint (0).
1479 (gdbscm_set_memory_port_read_buffer_size_x)
1480 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1481 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1482 Return scm_from_uint (0).
1483 (gdbscm_set_memory_port_write_buffer_size_x)
1484 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1485 * configure.ac (try_guile_versions): Add "guile-2.2".
1486 * configure: Regenerate.
1487 * NEWS: Add entry.
1488
1489 2020-07-18 Tom Tromey <tom@tromey.com>
1490
1491 * linux-nat.c (linux_multi_process): Remove.
1492 (linux_nat_target::supports_multi_process): Return true.
1493
1494 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1495
1496 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1497 (riscv_lookup_target_description): Return pointer out of
1498 unique_ptr.
1499 * target-descriptions.c (allocate_target_description): Add
1500 comment.
1501 (target_desc_deleter::operator()): Likewise.
1502 * target-descriptions.h (struct target_desc_deleter): Moved to
1503 gdbsupport/tdesc.h.
1504 (target_desc_up): Likewise.
1505
1506 2020-07-17 Tom Tromey <tromey@adacore.com>
1507
1508 * linux-nat.c (linux_nat_target::supports_non_stop)
1509 (linux_nat_target::always_non_stop_p): Use "true".
1510 (linux_nat_target::supports_disable_randomization): Use "true" and
1511 "false".
1512
1513 2020-07-16 Caroline Tice <cmtice@google.com>
1514
1515 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1516 (RNGLIST_HEADER_SIZE64): New constant definition.
1517 (struct dwop_section_names): Add rnglists_dwo.
1518 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1519 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1520 (struct dwo_sections): Add rnglists field.
1521 (read_attribut_reprocess): Add tag parameter.
1522 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1523 (cu_debug_rnglists_section): New function (decl & definition).
1524 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1525 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1526 die whose range is being checked; get rnglist section from
1527 cu_debug_rnglists_section, to get from either objfile or dwo file as
1528 appropriate. Add cases for DW_RLE_base_addressx,
1529 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1530 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1531 test inside if-condition and updating complaint message.
1532 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1533 dwarf2_rnglists_process.
1534 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1535 dwarf2_ranges_process.
1536 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1537 need_ranges_base and update comment appropriately. Also pass die tag
1538 to dwarf2_ranges_read.
1539 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1540 need_ranges_base and update comment appropriately. Also pass die tag
1541 to dwarf2_ranges_process.
1542 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1543 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1544 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1545 need_ranges_base and update comment appropriately. Also pass die tag
1546 to read_attribute_reprocess and dwarf2_ranges_read.
1547 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1548 and update function comment appropriately.
1549 (read_loclist_index): Call read_loclists_rnglists_header instead of
1550 read_loclist_header.
1551 (read_rnglist_index): New function.
1552 (read_attribute_reprocess): Add tag parameter. Add code for
1553 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1554 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1555
1556 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1557
1558 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1559 being resolved.
1560
1561 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1562
1563 * arch-utils.c (show_architecture): Update formatting of messages.
1564
1565 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1566
1567 * gdbtypes.h (struct type) <bounds>: Handle array and string
1568 types.
1569 * ada-lang.c (assign_aggregate): Use type::bounds on
1570 array/string type.
1571 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1572 * c-varobj.c (c_number_of_children): Likewise.
1573 (c_describe_child): Likewise.
1574 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1575 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1576 (f_type_print_base): Likewise.
1577 * f-valprint.c (f77_array_offset_tbl): Likewise.
1578 (f77_get_upperbound): Likewise.
1579 (f77_print_array_1): Likewise.
1580 * guile/scm-type.c (gdbscm_type_range): Likewise.
1581 * m2-typeprint.c (m2_array): Likewise.
1582 (m2_is_long_set_of_type): Likewise.
1583 * m2-valprint.c (get_long_set_bounds): Likewise.
1584 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1585 * python/py-type.c (typy_range): Likewise.
1586 * rust-lang.c (rust_internal_print_type): Likewise.
1587 * type-stack.c (type_stack::follow_types): Likewise.
1588 * valarith.c (value_subscripted_rvalue): Likewise.
1589 * valops.c (value_cast): Likewise.
1590
1591 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1592
1593 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1594 callers to use the equivalent accessor methods.
1595
1596 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1597
1598 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1599 (struct type) <bit_stride>: New method.
1600 (TYPE_BIT_STRIDE): Remove.
1601 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1602
1603 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1604
1605 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1606 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1607 callers to use the equivalent accessor methods instead.
1608
1609 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1610
1611 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1612 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1613 callers to use the equivalent accessor methods instead.
1614
1615 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1616
1617 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1618 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1619 to use dynamic_prop::kind.
1620
1621 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1622
1623 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1624 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1625 to get the bound property's kind and check against
1626 PROP_UNDEFINED.
1627
1628 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1629
1630 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1631 all callers to use type::range_bounds followed by
1632 dynamic_prop::{low,high}.
1633
1634 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1635
1636 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1637 const_val, set_const_val, baton, set_locexpr, set_loclist,
1638 set_addr_offset, variant_parts, set_variant_parts,
1639 original_type, set_original_type>: New methods.
1640 <kind>: Rename to...
1641 <m_kind>: ... this. Update all users to use the new methods
1642 instead.
1643 <data>: Rename to...
1644 <m_data>: ... this. Update all users to use the new methods
1645 instead.
1646
1647 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1648
1649 * gdbtypes.c (get_discrete_bounds): Return failure if
1650 the range type's bounds are not both defined and constant
1651 values.
1652 (get_array_bounds): Update comment. Remove undefined bound check.
1653
1654 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1655
1656 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1657 the type::bounds method directly.
1658
1659 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1660
1661 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1662 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1663 are used to set the range type's bounds to use set_bounds.
1664
1665 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1666
1667 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1668
1669 2020-07-10 Pedro Alves <pedro@palves.net>
1670
1671 * gdbthread.h (inferior_ref): Define.
1672 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1673 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1674 * thread.c
1675 (scoped_restore_current_thread::restore):
1676 Adjust to gdb::ref_ptr.
1677 (scoped_restore_current_thread::~scoped_restore_current_thread):
1678 Remove manual decref handling.
1679 (scoped_restore_current_thread::scoped_restore_current_thread):
1680 Adjust to use
1681 inferior_ref::new_reference/thread_info_ref::new_reference.
1682 Incref the thread before calling get_frame_id instead of after.
1683 Let TARGET_CLOSE_ERROR propagate.
1684
1685 2020-07-10 Pedro Alves <pedro@palves.net>
1686
1687 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1688 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1689 NOT_AVAILABLE_ERROR.
1690 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1691 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1692
1693 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1694 Pedro Alves <pedro@palves.net>
1695
1696 PR gdb/26199
1697 * infrun.c (threads_are_resumed_pending_p): Delete.
1698 (do_target_wait): Remove threads_are_executing and
1699 threads_are_resumed_pending_p checks from the inferior_matches
1700 lambda. Update comments.
1701
1702 2020-07-10 Pedro Alves <pedro@palves.net>
1703
1704 PR gdb/26199
1705 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1706 executing threads.
1707
1708 2020-07-10 Pedro Alves <pedro@palves.net>
1709
1710 PR gdb/26199
1711 * infrun.c (handle_no_resumed): Handle multiple targets.
1712
1713 2020-07-10 Pedro Alves <pedro@palves.net>
1714
1715 PR gdb/26199
1716 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1717 target_is_async_p.
1718
1719 2020-07-10 Pedro Alves <pedro@palves.net>
1720
1721 PR gdb/26199
1722 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1723 threads, not all threads.
1724
1725 2020-07-10 Pedro Alves <pedro@palves.net>
1726
1727 PR gdb/26199
1728 * remote.c (remote_target::open_1): Pass remote target pointer as
1729 data to create_async_event_handler.
1730 (remote_async_inferior_event_handler): Mark async event handler
1731 before returning if the remote target still has either pending
1732 events or unacknowledged notifications.
1733
1734 2020-07-10 John Baldwin <jhb@FreeBSD.org>
1735
1736 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1737 declaration.
1738 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1739 function.
1740
1741 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1742
1743 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1744 inferior_ptid.
1745
1746 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1747
1748 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1749 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1750 AT_FREEBSD_PS_STRINGS.
1751
1752 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
1753
1754 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1755 of debugfile path on Windows.
1756
1757 2020-07-08 John Baldwin <jhb@FreeBSD.org>
1758
1759 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1760 argument to 'data'.
1761
1762 2020-07-08 Tom Tromey <tromey@adacore.com>
1763
1764 * ada-lang.c (ada_exception_message_1): Use read_memory.
1765
1766 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1767
1768 PR python/22748
1769 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1770 special handling for inline frames.
1771 * findvar.c (value_of_register_lazy): Skip inline frames when
1772 creating lazy register values.
1773 * frame.c (frame_id_computed_p): Delete definition.
1774 * frame.h (frame_id_computed_p): Delete declaration.
1775
1776 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1777
1778 * NEWS: Mention additions to Python API.
1779 * python/py-arch.c (archpy_register_groups): New function.
1780 (arch_object_methods): Add 'register_groups' method.
1781 * python/py-registers.c (reggroup_iterator_object): New struct.
1782 (reggroup_object): New struct.
1783 (gdbpy_new_reggroup): New function.
1784 (gdbpy_reggroup_to_string): New function.
1785 (gdbpy_reggroup_name): New function.
1786 (gdbpy_reggroup_iter): New function.
1787 (gdbpy_reggroup_iter_next): New function.
1788 (gdbpy_new_reggroup_iterator): New function
1789 (gdbpy_initialize_registers): Register new types.
1790 (reggroup_iterator_object_type): Define new Python type.
1791 (gdbpy_reggroup_getset): New static global.
1792 (reggroup_object_type): Define new Python type.
1793 * python/python-internal.h
1794
1795 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1796
1797 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1798 * python/py-arch.c (archpy_registers): New function.
1799 (arch_object_methods): Add 'registers' method.
1800 * python/py-registers.c: New file.
1801 * python/python-internal.h
1802 (gdbpy_new_register_descriptor_iterator): Declare.
1803 (gdbpy_initialize_registers): Declare.
1804 * python/python.c (do_start_initialization): Call
1805 gdbpy_initialize_registers.
1806 * NEWS: Mention additions to the Python API.
1807
1808 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1809
1810 * NEWS: Mention new Python API method.
1811 * python/py-unwind.c (pending_framepy_architecture): New function.
1812 (pending_frame_object_methods): Add architecture method.
1813
1814 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1815
1816 * gdbarch.c: Regenerate.
1817 * gdbarch.h: Regenerate.
1818 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1819 (gdbarch_data): Use internal_error for the case where
1820 deprecated_set_gdbarch_data was originally needed.
1821 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1822 and use passed in obstack.
1823 (libunwind_frame_set_descr): Should no longer get back NULL from
1824 gdbarch_data.
1825 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1826 type.
1827 * user-regs.c (user_regs_init): Update parameters, and use passed
1828 in obstack.
1829 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1830 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1831
1832 2020-07-06 Tom de Vries <tdevries@suse.de>
1833
1834 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1835 End-Of-Sequence in lte_is_less_than.
1836 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1837 "gdb: Don't reorder line table entries too much when sorting".
1838
1839 2020-07-06 Tom de Vries <tdevries@suse.de>
1840
1841 PR tui/26205
1842 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1843
1844 2020-07-05 Tom de Vries <tdevries@suse.de>
1845
1846 PR build/26187
1847 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1848 std::uncaught_exceptions instead of deprecated
1849 std::uncaught_exception.
1850
1851 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1852
1853 * macroexp.h (macro_stringify): Return
1854 gdb::unique_xmalloc_ptr<char>.
1855 * macroexp.c (macro_stringify): Likewise.
1856 * macrotab.c (fixup_definition): Update.
1857
1858 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1859
1860 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1861 (lex_one_token): Update.
1862 * macroexp.c (struct macro_buffer) <release>: Return
1863 gdb::unique_xmalloc_ptr<char>.
1864 (macro_stringify): Update.
1865 (macro_expand): Update.
1866 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1867 * macroexp.h (macro_expand_next): Likewise.
1868
1869 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
1870
1871 * macroexp.h (macro_lookup_ftype): Remove.
1872 (macro_expand, macro_expand_once, macro_expand_next): Remove
1873 lookup function parameters, add scope parameter.
1874 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1875 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1876 * macroscope.h (standard_macro_lookup): Change parameter type
1877 to macro_scope.
1878 * macroscope.c (standard_macro_lookup): Likewise.
1879 * c-exp.y (lex_one_token): Update.
1880 * macrocmd.c (macro_expand_command): Likewise.
1881 (macro_expand_once_command): Likewise.
1882
1883 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1884
1885 * inf-loop.c (inferior_event_handler): Remove client_data param.
1886 * inf-loop.h (inferior_event_handler): Likewise.
1887 * infcmd.c (step_1): Adjust.
1888 * infrun.c (proceed): Adjust.
1889 (fetch_inferior_event): Remove client_data param.
1890 (infrun_async_inferior_event_handler): Adjust.
1891 * infrun.h (fetch_inferior_event): Remove `void *` param.
1892 * linux-nat.c (handle_target_event): Adjust.
1893 * record-btrace.c (record_btrace_handle_async_inferior_event):
1894 Adjust.
1895 * record-full.c (record_full_async_inferior_event_handler):
1896 Adjust.
1897 * remote.c (remote_async_inferior_event_handler): Adjust.
1898
1899 2020-07-01 Tom Tromey <tom@tromey.com>
1900
1901 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1902 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1903
1904 2020-07-01 Tom Tromey <tom@tromey.com>
1905
1906 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1907 tui_gen_win_info.
1908 (tui_win_info::make_window): Merge with
1909 tui_gen_win_info::make_window.
1910 (tui_win_info::make_visible): Move from tui_gen_win_info.
1911 * tui/tui-win.c (tui_win_info::max_width): Move from
1912 tui_gen_win_info.
1913 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1914 type.
1915 <window_factory>: Likewise.
1916 * tui/tui-layout.c (tui_win_info::resize): Move from
1917 tui_gen_win_info.
1918 (make_standard_window): Change return type.
1919 (get_locator_window, tui_get_window_by_name): Likewise.
1920 (tui_layout_window::apply): Remove a cast.
1921 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1922 (struct tui_win_info): Merge with tui_gen_win_info.
1923 (struct tui_gen_win_info): Remove.
1924
1925 2020-07-01 Tom Tromey <tom@tromey.com>
1926
1927 * tui/tui-stack.h (struct tui_locator_window): Derive from
1928 tui_win_info.
1929 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1930 <can_box>: New method.
1931
1932 2020-07-01 Tom Tromey <tom@tromey.com>
1933
1934 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1935
1936 2020-07-01 Tom Tromey <tom@tromey.com>
1937
1938 * tui/tui-regs.c (tui_data_window::display_registers_from)
1939 (tui_data_window::display_registers_from)
1940 (tui_data_window::first_data_item_displayed)
1941 (tui_data_window::delete_data_content_windows): Update.
1942 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1943 Remove.
1944 (tui_data_window::check_register_values): Update.
1945 (tui_data_item_window::rerender): Add parameters. Update.
1946 (tui_data_item_window::refresh_window): Remove.
1947 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1948 virtual.
1949 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1950 tui_gen_win_info.
1951 <refresh_window, max_height, min_height>: Remove.
1952 <rerender>: Add parameters.
1953 <x, y, visible>: New members.
1954 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1955 <m_item_width>: New member.
1956
1957 2020-07-01 Tom Tromey <tom@tromey.com>
1958
1959 * tui/tui-regs.c (tui_data_window::show_register_group)
1960 (tui_data_window::check_register_values): Update.
1961 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1962 from item_no.
1963
1964 2020-07-01 Tom Tromey <tom@tromey.com>
1965
1966 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1967 useless "if".
1968
1969 2020-07-01 Tom Tromey <tom@tromey.com>
1970
1971 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1972 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1973
1974 2020-07-01 Tom Tromey <tom@tromey.com>
1975
1976 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1977 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1978 (struct tui_line_or_address): Move from tui-data.h.
1979 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1980 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1981 (tui_cmd_window, tui_source_window_base, tui_source_window)
1982 (tui_disasm_window): Don't declare.
1983 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1984 to tui-winsource.h.
1985 (SINGLE_KEY): Move to tui-stack.c.
1986
1987 2020-07-01 Tom Tromey <tom@tromey.com>
1988
1989 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1990 std::string.
1991 * tui/tui-regs.c (class tab_expansion_file): New.
1992 (tab_expansion_file::write): New method.
1993 (tui_register_format): Change return type. Use
1994 tab_expansion_file.
1995 (tui_get_register, tui_data_window::display_registers_from)
1996 (tui_data_item_window::rerender): Update.
1997 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1998 * tui/tui-io.c (tui_expand_tabs): Remove.
1999
2000 2020-07-01 Tom Tromey <tom@tromey.com>
2001
2002 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
2003
2004 2020-07-01 Fangrui Song <maskray@google.com>
2005
2006 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
2007
2008 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2009
2010 * dwarf2/read.c (set_die_type): Removed conditions to restrict
2011 forms for DW_AT_associated and DW_AT_allocated attributes,
2012 which is already checked in function attr_to_dynamic_prop.
2013
2014 2020-06-30 Tom Tromey <tromey@adacore.com>
2015
2016 * dwarf2/read.c (quirk_rust_enum): Correctly call
2017 alloc_rust_variant for default-less enum.
2018
2019 2020-06-30 Tom Tromey <tromey@adacore.com>
2020
2021 PR build/26183:
2022 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
2023 gdb::to_string.
2024
2025 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
2026
2027 * gdbarch.sh (displaced_step_copy_insn): Update doc.
2028 * gdbarch.h: Re-generate.
2029
2030 2020-06-28 Tom Tromey <tom@tromey.com>
2031
2032 * command.h (cmd_types): Remove.
2033 (cmd_type): Don't declare.
2034 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
2035 typedef.
2036 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
2037 * cli/cli-decode.c (cmd_type): Remove.
2038
2039 2020-06-27 Pedro Alves <palves@redhat.com>
2040
2041 * fork-child.c (prefork_hook): Adjust.
2042 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
2043 Delete.
2044 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
2045 * inferior.c (inferior::set_tty, inferior::tty): New methods.
2046 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
2047 Remove declarations.
2048 (struct inferior) <set_tty, tty>: New methods.
2049 (struct inferior) <terminal>: Rename to ...
2050 (struct inferior) <m_terminal>: ... this and make private.
2051 * main.c (captured_main_1): Adjust.
2052 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
2053 (mi_cmd_inferior_tty_show): Adjust.
2054 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
2055 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
2056
2057 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
2058
2059 * configure.ac: Add --enable-libctf: handle --disable-static
2060 properly.
2061 * acinclude.m4: sinclude ../config/enable.m4.
2062 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
2063 (LIBCTF): Substitute in.
2064 (CTF_DEPS): New, likewise.
2065 (CLIBS): libctf needs symbols from libbfd: move earlier.
2066 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
2067 flags.
2068 * ctfread.c: Surround in ENABLE_LIBCTF.
2069 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
2070 * configure: Regenerate.
2071 * config.in: Likewise.
2072
2073 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
2074
2075 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
2076
2077 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
2078
2079 * inferior.h (struct inferior) <terminal>: Change type to
2080 gdb::unique_xmalloc_ptr<char>.
2081 * inferior.c (inferior::~inferior): Don't free inf->terminal.
2082 * infcmd.c (set_inferior_io_terminal): Don't free terminal
2083 field, adjust to unique pointer.
2084 (get_inferior_io_terminal): Adjust to unique pointer.
2085
2086 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2087
2088 * riscv-tdep.c (riscv_print_registers_info): Loop over all
2089 registers, not just the known core set of registers.
2090
2091 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2092
2093 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
2094 fflags, frm, and fcsr registers.
2095 (riscv_register_reggroup_p): Remove unknown CSRs from save and
2096 restore groups.
2097 (riscv_tdesc_unknown_reg): New function.
2098 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
2099 tdesc_use_registers.
2100 * riscv-tdep.h (struct gdbarch_tdep): Add
2101 unknown_csrs_first_regnum, unknown_csrs_count,
2102 duplicate_fflags_regnum, duplicate_frm_regnum, and
2103 duplicate_fcsr_regnum fields.
2104
2105 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2106
2107 * target-descriptions.c (tdesc_use_registers): Add new parameter a
2108 callback, use the callback (when not null) to help number unknown
2109 registers.
2110 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
2111 (tdesc_use_registers): Add extra parameter to declaration.
2112
2113 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2114
2115 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
2116 in the file.
2117 (class riscv_pending_register_alias): Likewise.
2118 (riscv_register_feature::register_info): Change 'required_p' field
2119 to 'required', and change its type. Add 'check' member function.
2120 (riscv_register_feature::register_info::check): Define new member
2121 function.
2122 (riscv_xreg_feature): Change initialisation of 'required' field.
2123 (riscv_freg_feature): Likewise.
2124 (riscv_virtual_feature): Likewise.
2125 (riscv_csr_feature): Likewise.
2126 (riscv_check_tdesc_feature): Take extra parameter, the csr
2127 tdesc_feature, rewrite the function to use the new
2128 riscv_register_feature::register_info::check function.
2129 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
2130
2131 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2132
2133 * features/Makefile: Remove all references to the deleted files
2134 below.
2135 * features/riscv/32bit-csr.c: Deleted.
2136 * features/riscv/32bit-csr.xml: Deleted.
2137 * features/riscv/64bit-csr.c: Deleted.
2138 * features/riscv/64bit-csr.xml: Deleted.
2139 * features/riscv/rebuild-csr-xml.sh: Deleted.
2140
2141 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2142
2143 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
2144 whitespace error for declaration of names member variable.
2145 (struct riscv_register_feature): Add new prefer_first_name member
2146 variable, and fix whitespace error in declaration of registers.
2147 (riscv_xreg_feature): Initialize prefer_first_name field.
2148 (riscv_freg_feature): Likewise.
2149 (riscv_virtual_feature): Likewise.
2150 (riscv_csr_feature): Likewise.
2151 (riscv_register_name): Expand on comments. Remove register name
2152 modifications for CSR and virtual registers.
2153
2154 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2155
2156 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
2157 errors.
2158
2159 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2160
2161 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
2162 riscv-opc.h.
2163 (class riscv_pending_register_alias): New class.
2164 (riscv_check_tdesc_feature): Take vector of pending aliases and
2165 populate it as appropriate.
2166 (riscv_setup_register_aliases): Delete.
2167 (riscv_gdbarch_init): Create vector of pending aliases and pass it
2168 to riscv_check_tdesc_feature in all cases. Use the vector to
2169 create the register aliases.
2170
2171 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2172
2173 * sol2-tdep.c (sol2_static_transform_name): Remove.
2174 (sol2_init_abi): Don't register it.
2175 * gdbarch.sh (static_transform_name): Remove.
2176 * gdbarch.c, gdbarch.h: Regenerate.
2177
2178 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
2179 gdbarch_static_transform_name.
2180 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
2181 * stabsread.c (define_symbol) <'X'>: Remove.
2182 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
2183 handling.
2184 <'V'>: Likewise.
2185 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
2186 <'S'>: Remove call to gdbarch_static_transform_name.
2187
2188 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2189
2190 * procfs.c (procfs_pre_trace): New function.
2191 (procfs_target::create_inferior): Pass it to fork_inferior.
2192
2193 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2194
2195 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
2196 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
2197 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
2198 sol2-tdep.o, sparc-sol2-tdep.o.
2199 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
2200 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
2201 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
2202 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
2203
2204 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2205
2206 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
2207 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
2208 Call sol2_init_abi.
2209 Remove calls to set_gdbarch_skip_solib_resolver,
2210 set_gdbarch_core_pid_to_str.
2211 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
2212 (i386_sol2_static_transform_name): Remove.
2213 (i386_sol2_init_abi): Call sol2_init_abi.
2214 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2215 set_gdbarch_static_transform_name,
2216 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2217 Use sol2_sigtramp_p.
2218 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
2219 (sol2_sigtramp_p): New function.
2220 (sol2_static_transform_name): New function.
2221 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
2222 (sol2_init_abi): New function.
2223 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
2224 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
2225 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
2226 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
2227 (sparc_sol2_static_transform_name): Remove.
2228 (sparc32_sol2_init_abi): Call sol2_init_abi.
2229 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2230 set_gdbarch_static_transform_name,
2231 set_gdbarch_skip_solib_resolver,
2232 set_gdbarch_core_pid_to_str.
2233 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
2234 (sparc_sol2_static_transform_name): Remove
2235 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
2236 call sol2_sigtramp_p.
2237 (sparc64_sol2_init_abi): Call sol2_init_abi.
2238 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2239 set_gdbarch_static_transform_name,
2240 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2241
2242 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2243
2244 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
2245 * exec.c (validate_exec_file): If from_tty, set both
2246 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
2247 * symfile.c (symbol_file_add_with_addrs): if always_confirm
2248 and from_tty, unconditionally ask a confirmation.
2249
2250 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2251
2252 * target-descriptions.c (tdesc_architecture_name): Protect against
2253 NULL pointer dereference.
2254 (maint_print_xml_tdesc_cmd): New function.
2255 (_initialize_target_descriptions): Register new 'maint print
2256 xml-tdesc' command and give it the filename completer.
2257 * NEWS: Mention new 'maint print xml-tdesc' command.
2258
2259 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2260
2261 * target-descriptions.c (class tdesc_compatible_info): New class.
2262 (struct target_desc): Change type of compatible vector.
2263 (tdesc_compatible_p): Update for change in type of
2264 target_desc::compatible.
2265 (tdesc_compatible_info_list): New function.
2266 (tdesc_compatible_info_arch_name): New function.
2267 (tdesc_add_compatible): Update for change in type of
2268 target_desc::compatible.
2269 (print_c_tdesc::visit_pre): Likewise.
2270
2271 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2272
2273 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
2274 whitespace to underscore.
2275 (maint_print_c_tdesc_cmd): Use fake filename for target
2276 descriptions that came from the target.
2277 (_initialize_target_descriptions): Add filename command completion
2278 for 'maint print c-tdesc'.
2279
2280 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2281
2282 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
2283 lines.
2284
2285 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2286
2287 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
2288 lines.
2289 (dwarf2_find_location_expression): Likewise.
2290 (call_site_parameter_matches): Likewise.
2291 (dwarf2_compile_expr_to_ax): Likewise.
2292 (disassemble_dwarf_expression): Likewise.
2293 (loclist_describe_location): Likewise.
2294
2295 2020-06-23 Pedro Alves <palves@redhat.com>
2296
2297 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
2298 progspace-and-thread.h. Include scoped-mock-context.h instead.
2299 (register_to_value_test): Use scoped_mock_context.
2300 * regcache.c: Include "scoped-mock-context.h".
2301 (cooked_read_test): Don't error out if a target is already pushed.
2302 Use scoped_mock_context. Adjust.
2303 * scoped-mock-context.h: New file.
2304
2305 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2306
2307 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
2308 initializer.
2309 (ada_language::is_string_type_p): New member function.
2310 * c-lang.c (c_language_data): Delete la_is_string_type_p
2311 initializer.
2312 (cplus_language_data): Likewise.
2313 (asm_language_data): Likewise.
2314 (minimal_language_data): Likewise.
2315 * d-lang.c (d_language_data): Likewise.
2316 * f-lang.c (f_is_string_type_p): Delete function, implementation
2317 moved to f_language::is_string_type_p.
2318 (f_language_data): Delete la_is_string_type_p initializer.
2319 (f_language::is_string_type_p): New member function,
2320 implementation from f_is_string_type_p.
2321 * go-lang.c (go_is_string_type_p): Delete function, implementation
2322 moved to go_language::is_string_type_p.
2323 (go_language_data): Delete la_is_string_type_p initializer.
2324 (go_language::is_string_type_p): New member function,
2325 implementation from go_is_string_type_p.
2326 * language.c (language_defn::is_string_type_p): Define new member
2327 function.
2328 (default_is_string_type_p): Make static, add comment copied from
2329 header file.
2330 (unknown_language_data): Delete la_is_string_type_p initializer.
2331 (unknown_language::is_string_type_p): New member function.
2332 (auto_language_data): Delete la_is_string_type_p initializer.
2333 (auto_language::is_string_type_p): New member function.
2334 * language.h (language_data): Delete la_is_string_type_p field.
2335 (language_defn::is_string_type_p): Declare new function.
2336 (default_is_string_type_p): Delete desclaration, move comment to
2337 definition.
2338 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
2339 moved to m2_language::is_string_type_p.
2340 (m2_language_data): Delete la_is_string_type_p initializer.
2341 (m2_language::is_string_type_p): New member function,
2342 implementation from m2_is_string_type_p.
2343 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
2344 initializer.
2345 * opencl-lang.c (opencl_language_data): Likewise.
2346 * p-lang.c (pascal_is_string_type_p): Delete function,
2347 implementation moved to pascal_language::is_string_type_p.
2348 (pascal_language_data): Delete la_is_string_type_p initializer.
2349 (pascal_language::is_string_type_p): New member function,
2350 implementation from pascal_is_string_type_p.
2351 * rust-lang.c (rust_is_string_type_p): Delete function,
2352 implementation moved to rust_language::is_string_type_p.
2353 (rust_language_data): Delete la_is_string_type_p initializer.
2354 (rust_language::is_string_type_p): New member function,
2355 implementation from rust_is_string_type_p.
2356 * valprint.c (val_print_scalar_or_string_type_p): Update call to
2357 is_string_type_p.
2358
2359 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2360
2361 * ada-lang.c (ada_language_data): Delete la_print_typedef
2362 initializer.
2363 (ada_language::print_typedef): New member function.
2364 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
2365 (cplus_language_data): Likewise.
2366 (asm_language_data): Likewise.
2367 (minimal_language_data): Likewise.
2368 * d-lang.c (d_language_data): Likewise.
2369 * f-lang.c (f_language_data): Likewise.
2370 (f_language::print_typedef): New member function.
2371 * go-lang.c (go_language_data): Delete la_print_typedef
2372 initializer.
2373 * language.c (language_defn::print_typedef): Define member
2374 function.
2375 (unknown_language_data): Delete la_print_typedef initializer.
2376 (unknown_language::print_typedef): New member function.
2377 (auto_language_data): Delete la_print_typedef initializer.
2378 (auto_language::print_typedef): New member function.
2379 * language.h (language_data): Delete la_print_typedef field.
2380 (language_defn::print_typedef): Declare new member function.
2381 (LA_PRINT_TYPEDEF): Update call to print_typedef.
2382 (default_print_typedef): Delete declaration.
2383 * m2-lang.c (m2_language_data): Delete la_print_typedef
2384 initializer.
2385 (m2_language::print_typedef): New member function.
2386 * objc-lang.c (objc_language_data): Delete la_print_typedef
2387 initializer.
2388 * opencl-lang.c (opencl_language_data): Likewise.
2389 * p-lang.c (pascal_language_data): Likewise.
2390 (pascal_language::print_typedef): New member function.
2391 * rust-lang.c (rust_print_typedef): Delete function,
2392 implementation moved to rust_language::print_typedef.
2393 (rust_language): Delete la_print_typedef initializer.
2394 (rust_language::print_typedef): New member function,
2395 implementation from rust_print_typedef.
2396 * typeprint.c (default_print_typedef): Delete.
2397
2398 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2399
2400 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2401 (ada_language::printstr): New member function.
2402 * c-lang.c (c_language_data): Delete la_printstr initializer.
2403 (cplus_language_data): Likewise.
2404 (asm_language_data): Likewise.
2405 (minimal_language_data): Likewise.
2406 * d-lang.c (d_language_data): Likewise.
2407 * f-lang.c (f_printstr): Rename to f_language::printstr.
2408 (f_language_data): Delete la_printstr initializer.
2409 (f_language::printstr): New member function, implementation from
2410 f_printstr.
2411 * go-lang.c (go_language_data): Delete la_printstr initializer.
2412 * language.c (language_defn::printstr): Define new member
2413 function.
2414 (unk_lang_printstr): Delete.
2415 (unknown_language_data): Delete la_printstr initializer.
2416 (unknown_language::printstr): New member function.
2417 (auto_language_data): Delete la_printstr initializer.
2418 (auto_language::printstr): New member function.
2419 * language.h (language_data): Delete la_printstr field.
2420 (language_defn::printstr): Declare new member function.
2421 (LA_PRINT_STRING): Update call to printstr.
2422 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2423 (m2_language_data): Delete la_printstr initializer.
2424 (m2_language::printstr): New member function, implementation from
2425 m2_printstr.
2426 * objc-lang.c (objc_language_data): Delete la_printstr
2427 initializer.
2428 * opencl-lang.c (opencl_language_data): Likewise.
2429 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2430 (pascal_language_data): Delete la_printstr initializer.
2431 (pascal_language::printstr): New member function, implementation
2432 from pascal_printstr.
2433 * p-lang.h (pascal_printstr): Delete declaration.
2434 * rust-lang.c (rust_printstr): Update header comment.
2435 (rust_language_data): Delete la_printstr initializer.
2436 (rust_language::printstr): New member function.
2437
2438 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2439
2440 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2441 (ada_language::printchar): New member function.
2442 * c-lang.c (c_language_data): Delete la_printchar initializer.
2443 (cplus_language_data): Likewise.
2444 (asm_language_data): Likewise.
2445 (minimal_language_data): Likewise.
2446 * d-lang.c (d_language_data): Likewise.
2447 * f-lang.c (f_printchar): Rename to f_language::printchar.
2448 (f_language_data): Delete la_printchar initializer.
2449 (f_language::printchar): New member function, implementation from
2450 f_printchar.
2451 * go-lang.c (go_language_data): Delete la_printchar initializer.
2452 * language.c (unk_lang_printchar): Delete.
2453 (language_defn::printchar): Define new member function.
2454 (unknown_language_data): Delete la_printchar initializer.
2455 (unknown_language::printchar): New member function.
2456 (auto_language_data): Delete la_printchar initializer.
2457 (auto_language::printchar): New member function.
2458 * language.h (language_data): Delete la_printchar field.
2459 (language_defn::printchar): Declare new member function.
2460 (LA_PRINT_CHAR): Update call to printchar.
2461 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2462 (m2_language::printchar): New member function.
2463 * objc-lang.c (objc_language_data): Delete la_printchar
2464 initializer.
2465 * opencl-lang.c (opencl_language_data): Likewise.
2466 * p-lang.c (pascal_language_data): Delete la_printchar
2467 initializer.
2468 (pascal_language::printchar): New member function.
2469 * rust-lang.c (rust_printchar): Rename to
2470 rust_language::printchar.
2471 (rust_language_data): Delete la_printchar initializer.
2472 (rust_language::printchar): New member function, implementation
2473 from rust_printchar.
2474
2475 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2476
2477 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2478 (ada_language_data): Delete la_emitchar initializer.
2479 (ada_language::emitchar): New member function, implementation from
2480 emit_char.
2481 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2482 (cplus_language_data): Likewise.
2483 (asm_language_data): Likewise.
2484 (minimal_language_data): Likewise.
2485 * d-lang.c (d_language_data): Likewise.
2486 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2487 (f_language_data): Delete la_emitchar initializer.
2488 (f_language::emitchar): New member function, implementation from
2489 f_emit_char.
2490 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2491 * language.c (unk_lang_emit_char): Delete.
2492 (language_defn::emitchar): New member function definition.
2493 (unknown_language_data): Delete la_emitchar initializer.
2494 (unknown_language::emitchar): New member function.
2495 (auto_language_data): Delete la_emitchar initializer.
2496 (auto_language::emitchar): New member function.
2497 * language.h (language_data): Delete la_emitchar field.
2498 (language_defn::emitchar): New member field declaration.
2499 (LA_EMIT_CHAR): Update call to emitchar.
2500 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2501 (m2_language_data): Delete la_emitchar initializer.
2502 (m2_language::emitchar): New member function, implementation from
2503 m2_emit_char.
2504 * objc-lang.c (objc_language_data): Delete la_emitchar
2505 initializer.
2506 * opencl-lang.c (opencl_language_data): Likewise.
2507 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2508 (pascal_language_data): Delete la_emitchar initializer.
2509 (pascal_language::emitchar): New member function, implementation
2510 from pascal_emit_char.
2511 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2512 (rust_language_data): Delete la_emitchar initializer.
2513 (rust_language::emitchar): New member function, implementation
2514 from rust_emitchar.
2515
2516 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2517
2518 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2519 (ada_language_data): Delete la_post_parser initializer.
2520 (ada_language::post_parser): New member function.
2521 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2522 (cplus_language_data): Likewise.
2523 (asm_language_data): Likewise.
2524 (minimal_language_data): Likewise.
2525 * d-lang.c (d_language_data): Likewise.
2526 * f-lang.c (f_language_data): Likewise.
2527 * go-lang.c (go_language_data): Likewise.
2528 * language.c (unknown_language_data): Likewise.
2529 (auto_language_data): Likewise.
2530 * language.h (language_data): Delete la_post_parser field.
2531 (language_defn::post_parser): New member function.
2532 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2533 * objc-lang.c (objc_language_data): Likewise.
2534 * opencl-lang.c (opencl_language_data): Likewise.
2535 * p-lang.c (pascal_language_data): Likewise.
2536 * parse.c (parse_exp_in_context): Update call to post_parser.
2537 (null_post_parser): Delete definition.
2538 * parser-defs.h (null_post_parser): Delete declaration.
2539 * rust-lang.c (rust_language_data): Delete la_post_parser
2540 initializer.
2541
2542 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2543
2544 * ada-lang.c (parse): Rename to ada_language::parser.
2545 (ada_language_data): Delete la_parser initializer.
2546 (ada_language::parser): New member function, implementation from
2547 parse.
2548 * c-lang.c (c_language_data): Delete la_parser initializer.
2549 (cplus_language_data): Likewise.
2550 (asm_language_data): Likewise.
2551 (minimal_language_data): Likewise.
2552 * d-lang.c (d_language_data): Likewise.
2553 (d_language::parser): New member function.
2554 * f-lang.c (f_language_data): Delete la_parser initializer.
2555 (f_language::parser): New member function.
2556 * go-lang.c (go_language_data): Delete la_parser initializer.
2557 (go_language::parser): New member function.
2558 * language.c (unk_lang_parser): Delete.
2559 (language_defn::parser): Define new member function.
2560 (unknown_language_data): Delete la_parser initializer.
2561 (unknown_language::parser): New member function.
2562 (auto_language_data): Delete la_parser initializer.
2563 (auto_language::parser): New member function.
2564 * language.h (language_data): Delete la_parser field.
2565 (language_defn::parser): Declare new member function.
2566 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2567 (m2_language::parser): New member function.
2568 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2569 * opencl-lang.c (opencl_language_data): Likewise.
2570 * p-lang.c (pascal_language_data): Likewise.
2571 (pascal_language::parser): New member function.
2572 * parse.c (parse_exp_in_context): Update call to parser.
2573 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2574 (rust_language::parser): New member function.
2575
2576 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2577
2578 * top.c (print_gdb_configuration): Print --with-python-libdir
2579 configuration value.
2580
2581 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2582
2583 * NEWS: Mention change to the alias command.
2584
2585 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2586
2587 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2588 (alias_command_completer)
2589 (make_alias_options_def_group): New functions.
2590 (alias_opts, alias_option_defs): New struct and array.
2591 (alias_usage_error): Update usage.
2592 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2593 Use option framework.
2594 (_initialize_cli_cmds): Update alias command help.
2595 Update aliases command help.
2596 (show_user):
2597 Add NULL for new default_args lookup_cmd argument.
2598 (valid_command_p): Rename to validate_aliased_command.
2599 Add NULL for new default_args lookup_cmd argument. Verify that the
2600 aliased_command has no default args.
2601 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2602 (lookup_cmd_1, lookup_cmd): New argument default_args.
2603 (add_alias_cmd):
2604 Add NULL for new default_args lookup_cmd argument.
2605 (print_help_for_command): Show default args under the layout
2606 alias some_alias = some_aliased_cmd some_alias_default_arg.
2607 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2608 xfree default_args in destructor.
2609 * cli/cli-script.c (process_next_line, do_define_command):
2610 Add NULL for new default_args lookup_cmd argument.
2611 * command.h: Declare new default_args argument in lookup_cmd
2612 and lookup_cmd_1.
2613 * completer.c (complete_line_internal_1):
2614 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2615 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2616 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2617 Likewise.
2618 * infcmd.c (_initialize_infcmd): Likewise.
2619 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2620 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2621 * python/py-param.c (add_setshow_generic): Likewise.
2622 * remote.c (_initialize_remote): Likewise.
2623 * top.c (execute_command): Prepend default_args if command has some.
2624 (set_verbose):
2625 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2626 * tracepoint.c (validate_actionline, encode_actions_1):
2627 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2628
2629 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2630
2631 * jit.c (jit_read_descriptor): Use bool as the return type.
2632 (jit_breakpoint_re_set_internal): Use bool as the return type.
2633 Invert the return value logic; return true if the jit breakpoint
2634 has been successfully initialized.
2635 (jit_inferior_init): Update the call to
2636 jit_breakpoint_re_set_internal.
2637
2638 2020-06-22 Pedro Alves <palves@redhat.com>
2639
2640 PR gdb/25939
2641 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2642 Use the current inferior instead. Don't return
2643 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2644 wait again.
2645 * sol-thread.c (sol_thread_target::wait): Don't reference
2646 inferior_ptid.
2647 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2648 (sol_update_thread_list_callback): Use the current inferior's pid
2649 instead of inferior_ptid.
2650
2651 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2652
2653 * procfs.c: Cleanup many comments.
2654
2655 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2656 (AFTER_WATCHFLAG): Replace by value.
2657
2658 (MAIN_PROC_NAME_FORMAT): Inline ...
2659 (create_procinfo): ... here.
2660
2661 (procfs_debug_inferior): Remove SYS_exec handling.
2662 (syscall_is_exec): Likewise.
2663 (procfs_set_exec_trap): Likewise.
2664
2665 (syscall_is_lwp_exit): Inline in callers.
2666 (syscall_is_exit): Likewise.
2667 (syscall_is_exec): Likewise.
2668 (syscall_is_lwp_create): Likewise.
2669
2670 (invalidate_cache): Remove #if 0 code.
2671
2672 (make_signal_thread_runnable): Remove.
2673 (procfs_target::resume): Remove #if 0 code.
2674
2675 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2676
2677 PR gdb/25939
2678 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2679 call ...
2680 (procfs_target::create_inferior): ... here.
2681
2682 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2683
2684 * exec.c (validate_exec_file): Ensure the build-id is up to
2685 date by calling reopen_exec_file (that checks file timestamp
2686 to decide to re-read the file).
2687
2688 2020-06-18 Pedro Alves <palves@redhat.com>
2689
2690 PR gdb/25412
2691 * gdbthread.h (delete_thread, delete_thread_silent)
2692 (find_thread_ptid): Update comments.
2693 * thread.c (current_thread_): New global.
2694 (is_current_thread): Move higher, and reimplement.
2695 (inferior_thread): Reimplement.
2696 (set_thread_exited): Use bool. Add assertions.
2697 (add_thread_silent): Simplify thread-reuse handling by always
2698 calling delete_thread.
2699 (delete_thread): Remove intro comment.
2700 (find_thread_ptid): Skip exited threads.
2701 (switch_to_thread_no_regs): Write to current_thread_.
2702 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2703 INFERIOR_PTID. Clear current_thread_.
2704
2705 2020-06-18 Pedro Alves <palves@redhat.com>
2706
2707 * aix-thread.c (pd_update): Use switch_to_thread.
2708
2709 2020-06-18 Pedro Alves <palves@redhat.com>
2710
2711 * ravenscar-thread.c (ravenscar_thread_target): Update.
2712 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2713 (ravenscar_thread_target::add_active_thread): ... this. Don't
2714 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2715 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2716
2717 2020-06-18 Pedro Alves <palves@redhat.com>
2718
2719 * nat/windows-nat.c (current_windows_thread): Remove.
2720 * nat/windows-nat.h (current_windows_thread): Remove.
2721 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2722 Adjust.
2723 (display_selectors): Adjust to fetch the current
2724 windows_thread_info based on inferior_ptid.
2725 (fake_create_process): No longer write to current_windows_thread.
2726 (windows_nat_target::get_windows_debug_event):
2727 Don't set inferior_ptid or current_windows_thread.
2728 (windows_nat_target::wait): Adjust to not rely on
2729 current_windows_thread.
2730 (do_initial_windows_stuff): Now a method of windows_nat_target.
2731 Switch to the last_ptid thread.
2732 (windows_nat_target::attach): Adjust.
2733 (windows_nat_target::detach): Use switch_to_no_thread instead of
2734 writing to inferior_ptid directly.
2735 (windows_nat_target::create_inferior): Adjust.
2736
2737 2020-06-18 Pedro Alves <palves@redhat.com>
2738
2739 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2740
2741 2020-06-18 Pedro Alves <palves@redhat.com>
2742
2743 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2744 after creating it, instead of writing to inferior_ptid. Don't
2745 write to inferior_ptid.
2746
2747 2020-06-18 Pedro Alves <palves@redhat.com>
2748
2749 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2750
2751 2020-06-18 Pedro Alves <palves@redhat.com>
2752
2753 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2754 it, instead of writing to inferior_ptid.
2755
2756 2020-06-18 Pedro Alves <palves@redhat.com>
2757
2758 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2759 to inferior_ptid.
2760
2761 2020-06-18 Pedro Alves <palves@redhat.com>
2762
2763 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2764 instead of writing to inferior_ptid directly.
2765
2766 2020-06-18 Pedro Alves <palves@redhat.com>
2767
2768 * corelow.c (core_target::close): Use switch_to_no_thread instead
2769 of writing to inferior_ptid directly.
2770 (add_to_thread_list, core_target_open): Use switch_to_thread
2771 instead of writing to inferior_ptid directly.
2772
2773 2020-06-18 Pedro Alves <palves@redhat.com>
2774
2775 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2776 inferior_ptid.
2777 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2778 inferior_ptid.
2779 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2780 inferior_ptid directly.
2781 (darwin_nat_target::init_thread_list): Switch to thread, instead
2782 of writing to inferior_ptid.
2783 (darwin_nat_target::attach): Don't write to inferior_ptid.
2784 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2785
2786 2020-06-18 Pedro Alves <palves@redhat.com>
2787
2788 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2789 thread.
2790 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2791 Instead use switch_to_thread.
2792 (gnu_nat_target::detach): Use switch_to_no_thread
2793 instead of writing to inferior_ptid directly. Used passed-in
2794 inferior instead of looking up the inferior by pid.
2795
2796 2020-06-18 Pedro Alves <palves@redhat.com>
2797
2798 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2799 inferior_ptid.
2800
2801 2020-06-18 Pedro Alves <palves@redhat.com>
2802
2803 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2804 inferior_ptid.
2805 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2806 thread.
2807 (nto_procfs_target::detach): Avoid referencing
2808 inferior_ptid. Use switch_to_no_thread instead of writing to
2809 inferior_ptid directly.
2810 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2811 instead of writing to inferior_ptid directly.
2812 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2813 to thread.
2814
2815 2020-06-18 Pedro Alves <palves@redhat.com>
2816
2817 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2818 after creating it, instead of writing to inferior_ptid.
2819 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2820 to inferior_ptid directly.
2821 (gdbsim_target::wait): Don't write to inferior_ptid.
2822
2823 2020-06-18 Pedro Alves <palves@redhat.com>
2824
2825 * remote.c (remote_target::remote_notice_new_inferior): Use
2826 switch_to_thread instead of writing to inferior_ptid directly.
2827 (remote_target::add_current_inferior_and_thread): Use
2828 switch_to_no_thread instead of writing to inferior_ptid directly.
2829 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2830 and switch_to_thread instead of using set_current_inferior or
2831 writing to inferior_ptid directly.
2832
2833 2020-06-18 Pedro Alves <palves@redhat.com>
2834
2835 * tracectf.c (ctf_target_open): Switch to added thread instead of
2836 writing to inferior_ptid directly.
2837 (ctf_target::close): Use switch_to_no_thread instead of writing to
2838 inferior_ptid directly.
2839
2840 2020-06-18 Pedro Alves <palves@redhat.com>
2841
2842 * tracefile-tfile.c (tfile_target_open): Don't write to
2843 inferior_ptid directly, instead switch to added thread.
2844 (tfile_target::close): Use switch_to_no_thread instead of writing
2845 to inferior_ptid directly.
2846
2847 2020-06-18 Pedro Alves <palves@redhat.com>
2848
2849 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2850 (procfs_target::detach): Use switch_to_no_thread
2851 instead of writing to inferior_ptid directly.
2852 (do_attach): Change return type to void. Switch to the added
2853 thread.
2854 (procfs_target::create_inferior): Switch to the added thread.
2855 (procfs_do_thread_registers): Don't write to inferior_ptid.
2856
2857 2020-06-18 Pedro Alves <palves@redhat.com>
2858
2859 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2860 of writing to inferior_ptid.
2861 (scoped_restore_exited_inferior): Delete.
2862 (handle_vfork_child_exec_or_exit): Simplify using
2863 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2864 instead of writing to inferior_ptid.
2865 (THREAD_STOPPED_BY): Delete.
2866 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2867 (thread_stopped_by_hw_breakpoint): Delete.
2868 (save_waitstatus): Use
2869 scoped_restore_current_thread+switch_to_thread, and call
2870 target_stopped_by_watchpoint instead of
2871 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2872 instead of thread_stopped_by_sw_breakpoint, and
2873 target_stopped_by_hw_breakpoint instead of
2874 thread_stopped_by_hw_breakpoint.
2875 (handle_inferior_event)
2876 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2877 inferior_ptid directly, nor
2878 set_current_inferior/set_current_program_space. Use
2879 switch_to_thread / switch_to_inferior_no_thread instead.
2880
2881 2020-06-18 Pedro Alves <palves@redhat.com>
2882
2883 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2884 instead of writing to inferior_ptid.
2885
2886 2020-06-18 Pedro Alves <palves@redhat.com>
2887
2888 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2889 added thread.
2890 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2891 to the added thread.
2892 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2893 instead of writing to inferior_ptid.
2894
2895 2020-06-18 Pedro Alves <palves@redhat.com>
2896
2897 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2898 (register_to_value_test): Mock a program_space too. Heap-allocate
2899 the address space. Don't write to inferior_ptid. Use
2900 switch_to_thread instead.
2901
2902 2020-06-18 Pedro Alves <palves@redhat.com>
2903
2904 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2905 Delete.
2906 (find_signalled_thread()): New, factored out from
2907 linux_make_corefile_notes and adjusted to handle exited threads.
2908 (linux_make_corefile_notes): Adjust to use the new
2909 find_signalled_thread.
2910
2911 2020-06-18 Pedro Alves <palves@redhat.com>
2912
2913 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2914 of saving/restoring inferior_ptid.
2915
2916 2020-06-17 Tom Tromey <tom@tromey.com>
2917
2918 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2919 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2920 declare.
2921 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2922
2923 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
2924
2925 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2926 of partial symtabs.
2927
2928 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2929
2930 * regformats/reg-arm.dat: Remove.
2931 * regformats/reg-bfin.dat: Remove.
2932 * regformats/reg-cris.dat: Remove.
2933 * regformats/reg-crisv32.dat: Remove.
2934 * regformats/reg-m32r.dat: Remove.
2935 * regformats/reg-tilegx.dat: Remove.
2936 * regformats/reg-tilegx32.dat: Remove.
2937
2938 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2939
2940 * features/Makefile (WHICH): Remove arm files.
2941 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2942 * regformats/arm/arm-with-neon.dat: Remove.
2943 * regformats/arm/arm-with-vfpv2.dat: Remove.
2944 * regformats/arm/arm-with-vfpv3.dat: Remove.
2945
2946 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2947
2948 * features/Makefile (XMLTOC): Remove rx.xml.
2949
2950 2020-06-17 Pedro Alves <palves@redhat.com>
2951
2952 * gdbthread.h (thread_control_state) <trap_expected> Update
2953 comments.
2954
2955 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2956
2957 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2958 ada_language::lookup_symbol_nonlocal.
2959 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2960 (ada_language::lookup_symbol_nonlocal): New member function,
2961 implementation from ada_lookup_symbol_nonlocal.
2962 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2963 initializer.
2964 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2965 initializer.
2966 (cplus_language::lookup_symbol_nonlocal): New member function.
2967 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2968 (minimal_language_data) Likewise.
2969 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2970 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2971 initializer.
2972 (d_language::lookup_symbol_nonlocal): New member function.
2973 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2974 initializer.
2975 (f_language::lookup_symbol_nonlocal): New member function.
2976 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2977 initializer.
2978 * language.c (unknown_language_data): Likewise.
2979 (auto_language_data): Likewise.
2980 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2981 field.
2982 (language_defn::lookup_symbol_nonlocal): New member function.
2983 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2984 initializer.
2985 * objc-lang.c (objc_language_data): Likewise.
2986 * opencl-lang.c (opencl_language_data): Likewise.
2987 * p-lang.c (pascal_language_data): Likewise.
2988 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2989 rust_language::lookup_symbol_nonlocal.
2990 (rust_language_data): Delete la_lookup_symbol_nonlocal
2991 initializer.
2992 (rust_language::lookup_symbol_nonlocal): New member function,
2993 implementation from rust_lookup_symbol_nonlocal.
2994 * symtab.c (lookup_symbol_aux): Update call to
2995 lookup_symbol_nonlocal.
2996 (basic_lookup_symbol_nonlocal): Rename to...
2997 (language_defn::lookup_symbol_nonlocal): ...this, and update
2998 header comment. Remove language_defn parameter, and replace with
2999 uses of `this'.
3000 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
3001
3002 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3003
3004 * ada-lang.c (ada_language_data): Delete la_value_print_inner
3005 initializer.
3006 (ada_language::value_print_inner): New member function.
3007 * c-lang.c (c_language_data): Delete la_value_print_inner
3008 initializer.
3009 (cplus_language_data): Likewise.
3010 (asm_language_data): Likewise.
3011 (minimal_language_data): Likewise.
3012 * d-lang.c (d_language_data): Likewise.
3013 (d_language::value_print_inner): New member function.
3014 * f-lang.c (f_language_data): Delete la_value_print_inner
3015 initializer.
3016 (f_language::value_print_inner): New member function.
3017 * f-lang.h (f_value_print_innner): Rename to...
3018 (f_value_print_inner): ...this (note spelling of 'inner').
3019 * f-valprint.c (f_value_print_innner): Rename to...
3020 (f_value_print_inner): ...this (note spelling of 'inner').
3021 * go-lang.c (go_language_data): Delete la_value_print_inner
3022 initializer.
3023 (go_language::value_print_inner): New member function.
3024 * language.c (language_defn::value_print_inner): Define new member
3025 function.
3026 (unk_lang_value_print_inner): Delete.
3027 (unknown_language_data): Delete la_value_print_inner initializer.
3028 (unknown_language::value_print_inner): New member function.
3029 (auto_language_data): Delete la_value_print_inner initializer.
3030 (auto_language::value_print_inner): New member function.
3031 * language.h (language_data): Delete la_value_print_inner field.
3032 (language_defn::value_print_inner): Delcare new member function.
3033 * m2-lang.c (m2_language_data): Delete la_value_print_inner
3034 initializer.
3035 (m2_language::value_print_inner): New member function.
3036 * objc-lang.c (objc_language_data): Delete la_value_print_inner
3037 initializer.
3038 * opencl-lang.c (opencl_language_data): Likewise.
3039 * p-lang.c (pascal_language_data): Likewise.
3040 (pascal_language::value_print_inner): New member function.
3041 * rust-lang.c (rust_language_data): Delete la_value_print_inner
3042 initializer.
3043 (rust_language::value_print_inner): New member function.
3044 * valprint.c (do_val_print): Update call to value_print_inner.
3045
3046 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3047
3048 * ada-lang.c (ada_language_data): Delete la_value_print
3049 initializer.
3050 (ada_language::value_print): New member function.
3051 * c-lang.c (c_language_data): Delete la_value_print initializer.
3052 (cplus_language_data): Likewise.
3053 (asm_language_data): Likewise.
3054 (minimal_language_data): Likewise.
3055 * d-lang.c (d_language_data): Likewise.
3056 * f-lang.c (f_language_data): Likewise.
3057 * go-lang.c (go_language_data): Likewise.
3058 * language.c (unk_lang_value_print): Delete.
3059 (language_defn::value_print): Define new member function.
3060 (unknown_language_data): Delete la_value_print initializer.
3061 (unknown_language::value_print): New member function.
3062 (auto_language_data): Delete la_value_print initializer.
3063 (auto_language::value_print): New member function.
3064 * language.h (language_data): Delete la_value_print field.
3065 (language_defn::value_print): Declare new member function.
3066 (LA_VALUE_PRINT): Update call to value_print.
3067 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
3068 * objc-lang.c (objc_language_data): Likewise.
3069 * opencl-lang.c (opencl_language_data): Likewise.
3070 * p-lang.c (pascal_language_data): Likewise.
3071 (pascal_language::value_print): New member function.
3072 * rust-lang.c (rust_language_data): Delete la_value_print
3073 initializer.
3074
3075 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3076
3077 * ada-lang.c (ada_watch_location_expression): Rename to
3078 ada_language::watch_location_expression.
3079 (ada_language_data): Delete la_watch_location_expression
3080 initializer.
3081 (ada_language::watch_location_expression): New member function,
3082 implementation from ada_watch_location_expression.
3083 * breakpoint.c (watch_command_1): Update call to
3084 watch_location_expression.
3085 * c-lang.c (c_watch_location_expression): Rename to
3086 language_defn::watch_location_expression.
3087 (c_language_data): Delete la_watch_location_expression
3088 initializer.
3089 (cplus_language_data): Likewise.
3090 (asm_language_data): Likewise.
3091 (minimal_language_data): Likewise.
3092 * c-lang.h (c_watch_location_expression): Delete declaration.
3093 * d-lang.c (d_language_data): Delete la_watch_location_expression
3094 initializer.
3095 * f-lang.c (f_language_data): Likewise.
3096 * go-lang.c (go_language_data): Likewise.
3097 * language.c (language_defn::watch_location_expression): Member
3098 function implementation from c_watch_location_expression.
3099 (unknown_language_data): Delete la_watch_location_expression
3100 initializer.
3101 (auto_language_data): Likewise.
3102 * language.h (language_data): Delete la_watch_location_expression
3103 field.
3104 (language_defn::watch_location_expression): Declare new member
3105 function.
3106 * m2-lang.c (m2_language_data): Delete
3107 la_watch_location_expression initializer.
3108 * objc-lang.c (objc_language_data): Likewise.
3109 * opencl-lang.c (opencl_language_data): Likewise.
3110 * p-lang.c (pascal_language_data): Likewise.
3111 * rust-lang.c (rust_watch_location_expression): Rename to
3112 rust_language::watch_location_expression.
3113 (rust_language_data): Delete la_watch_location_expression
3114 initializer.
3115 (rust_language::watch_location_expression): New member function,
3116 implementation from rust_watch_location_expression.
3117
3118 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3119
3120 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
3121 ada_language::collect_symbol_completion_matches.
3122 (ada_language_data): Delete la_collect_symbol_completion_matches
3123 initializer.
3124 (ada_language::collect_symbol_completion_matches): New member
3125 function, implementation from
3126 ada_collect_symbol_completion_matches.
3127 * c-lang.c (c_language_data): Delete
3128 la_collect_symbol_completion_matches initializer.
3129 (cplus_language_data): Likewise.
3130 (asm_language_data): Likewise.
3131 (minimal_language_data): Likewise.
3132 * d-lang.c (d_language_data): Likewise.
3133 * f-lang.c (f_collect_symbol_completion_matches): Rename to
3134 f_language::collect_symbol_completion_matches.
3135 (f_language_data): Delete la_collect_symbol_completion_matches
3136 initializer.
3137 (f_language::collect_symbol_completion_matches) New member
3138 function, implementation from f_collect_symbol_completion_matches.
3139 * go-lang.c (go_language_data): Delete
3140 la_collect_symbol_completion_matches initializer.
3141 * language.c (unknown_language_data): Likewise.
3142 (auto_language_data): Likewise.
3143 * language.h (language_data): Delete
3144 la_collect_symbol_completion_matches field.
3145 (language_defn::collect_symbol_completion_matches): New member
3146 function.
3147 * m2-lang.c (m2_language_data): Delete
3148 la_collect_symbol_completion_matches initializer.
3149 * objc-lang.c (objc_language_data): Likewise.
3150 * opencl-lang.c (opencl_language_data): Likewise.
3151 * p-lang.c (pascal_language_data): Likewise.
3152 * rust-lang.c (rust_language_data): Likewise.
3153 * symtab.c (default_collect_symbol_completion_matches): Delete.
3154 (collect_symbol_completion_matches): Update call to
3155 collect_symbol_completion_matches.
3156 (collect_symbol_completion_matches_type): Likewise.
3157 * symtab.h (default_collect_symbol_completion_matches): Delete
3158 declaration.
3159
3160 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3161
3162 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
3163 (ada_language_data): Delete la_word_break_characters initializer.
3164 (ada_language::word_break_characters): New member function.
3165 * c-lang.c (c_language_data): Delete la_word_break_characters
3166 initializer.
3167 (cplus_language_data): Likewise.
3168 (asm_language_data): Likewise.
3169 (minimal_language_data): Likewise.
3170 * completer.c: Update global comment.
3171 (advance_to_expression_complete_word_point): Update call to
3172 word_break_characters.
3173 (complete_files_symbols): Likewise.
3174 (complete_line_internal_1): Likewise.
3175 (default_completer_handle_brkchars): Likewise.
3176 (skip_quoted_chars): Likewise.
3177 * d-lang.c (d_language_data): Delete la_word_break_characters
3178 initializer.
3179 * f-lang.c (f_word_break_characters): Delete.
3180 (f_language_data): Delete la_word_break_characters initializer.
3181 (f_language::word_break_characters): New member function.
3182 * go-lang.c (go_language_data): Delete la_word_break_characters
3183 initializer.
3184 * language.c (unknown_language_data): Likewise.
3185 (auto_language_data): Likewise.
3186 * language.h (default_word_break_characters): Move declaration to
3187 earlier in the file.
3188 (language_data): Delete la_word_break_characters field.
3189 (language_defn::word_break_characters): New member function.
3190 * m2-lang.c (m2_language_data): Delete la_word_break_characters
3191 initializer.
3192 * objc-lang.c (objc_language_data): Likewise.
3193 * opencl-lang.c (opencl_language_data): Likewise.
3194 * p-lang.c (pascal_language_data): Likewise.
3195 * rust-lang.c (rust_language_data): Likewise.
3196
3197 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3198
3199 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
3200 (ada_language_data): Delete la_get_symbol_name_matcher
3201 initializer.
3202 (language_defn::get_symbol_name_matcher_inner): New member
3203 function.
3204 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
3205 initializer.
3206 (cplus_language_data): Likewise.
3207 (cplus_language::get_symbol_name_matcher_inner): New member
3208 function.
3209 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
3210 (minimal_language_data): Likewise.
3211 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
3212 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
3213 initializer.
3214 * dictionary.c (iter_match_first_hashed): Update call to
3215 get_symbol_name_matcher.
3216 (iter_match_next_hashed): Likewise.
3217 (iter_match_next_linear): Likewise.
3218 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
3219 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
3220 initializer.
3221 (f_language::get_symbol_name_matcher_inner): New member function.
3222 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
3223 initializer.
3224 * language.c (default_symbol_name_matcher): Update header comment,
3225 make static.
3226 (language_defn::get_symbol_name_matcher): New definition.
3227 (language_defn::get_symbol_name_matcher_inner): Likewise.
3228 (get_symbol_name_matcher): Delete.
3229 (unknown_language_data): Delete la_get_symbol_name_matcher
3230 initializer.
3231 (auto_language_data): Likewise.
3232 * language.h (language_data): Delete la_get_symbol_name_matcher
3233 field.
3234 (language_defn::get_symbol_name_matcher): New member function.
3235 (language_defn::get_symbol_name_matcher_inner): Likewise.
3236 (default_symbol_name_matcher): Delete declaration.
3237 * linespec.c (find_methods): Update call to
3238 get_symbol_name_matcher.
3239 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
3240 initializer.
3241 * minsyms.c (lookup_minimal_symbol): Update call to
3242 get_symbol_name_matcher.
3243 (iterate_over_minimal_symbols): Likewise.
3244 * objc-lang.c (objc_language_data): Delete
3245 la_get_symbol_name_matcher initializer.
3246 * opencl-lang.c (opencl_language_data): Likewise.
3247 * p-lang.c (pascal_language_data): Likewise.
3248 * psymtab.c (psymbol_name_matches): Update call to
3249 get_symbol_name_matcher.
3250 * rust-lang.c (rust_language_data): Delete
3251 la_get_symbol_name_matcher initializer.
3252 * symtab.c (symbol_matches_search_name): Update call to
3253 get_symbol_name_matcher.
3254 (compare_symbol_name): Likewise.
3255
3256 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3257
3258 * ada-lang.c (ada_language_data): Delete la_compute_program
3259 initializer.
3260 * c-lang.c (c_language_data): Likewise.
3261 (c_language::compute_program): New member function.
3262 (cplus_language_data): Delete la_compute_program initializer.
3263 (cplus_language::compute_program): New member function.
3264 (asm_language_data): Delete la_compute_program initializer.
3265 (minimal_language_data): Likewise.
3266 * c-lang.h (c_compute_program): Update comment.
3267 (cplus_compute_program): Likewise.
3268 * compile/compile-c-support.c (c_compute_program): Likewise.
3269 (cplus_compute_program): Likewise.
3270 * compile/compile.c (compile_to_object): Update call to
3271 la_compute_program.
3272 * d-lang.c (d_language_data): Delete la_compute_program
3273 initializer.
3274 * f-lang.c (f_language_data): Likewise.
3275 * go-lang.c (go_language_data): Likewise.
3276 * language.c (unknown_language_data): Likewise.
3277 (auto_language_data): Likewise.
3278 * language.h (language_data): Delete la_compute_program field.
3279 (language_defn::compute_program): New member function.
3280 * m2-lang.c (m2_language_data): Delete la_compute_program
3281 initializer.
3282 * objc-lang.c (objc_language_data): Likewise.
3283 * opencl-lang.c (opencl_language_data): Likewise.
3284 * p-lang.c (pascal_language_data): Likewise.
3285 * rust-lang.c (rust_language_data): Likewise.
3286
3287 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3288
3289 * ada-lang.c (ada_language_data) Delete
3290 la_class_name_from_physname initializer.
3291 * c-lang.c (c_language_data): Likewise.
3292 (cplus_language_data): Likewise.
3293 (cplus_language::class_name_from_physname): New member function.
3294 (asm_language_data): Delete la_class_name_from_physname
3295 initializer.
3296 (minimal_language_data): Likewise.
3297 * d-lang.c (d_language_data): Likewise.
3298 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
3299 method on language_defn class.
3300 (guess_full_die_structure_name): Likewise.
3301 * f-lang.c (f_language_data): Delete la_class_name_from_physname
3302 initializer.
3303 * go-lang.c (go_language_data): Likewise.
3304 * language.c (language_class_name_from_physname): Delete.
3305 (unk_lang_class_name): Delete.
3306 (unknown_language_data): Delete la_class_name_from_physname
3307 initializer.
3308 (auto_language_data): Likewise.
3309 * language.h (language_data): Delete la_class_name_from_physname
3310 field.
3311 (language_defn::class_name_from_physname): New function.
3312 (language_class_name_from_physname): Delete declaration.
3313 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
3314 initializer.
3315 * objc-lang.c (objc_language_data): Likewise.
3316 * opencl-lang.c (opencl_language_data): Likewise.
3317 * p-lang.c (pascal_language_data): Likewise.
3318 * rust-lang.c (rust_language_data): Likewise.
3319
3320 2020-06-16 Tom Tromey <tom@tromey.com>
3321
3322 * tui/tui-data.h (STATUS_NAME): New macro.
3323 * tui/tui-layout.c (tui_remove_some_windows)
3324 (initialize_known_windows, tui_register_window)
3325 (tui_layout_split::remove_windows, initialize_layouts)
3326 (tui_new_layout_command): Don't use hard-coded window names.
3327
3328 2020-06-16 Tom Tromey <tom@tromey.com>
3329
3330 PR tui/25348:
3331 * tui/tui.c (tui_ensure_readline_initialized): Rename from
3332 tui_initialize_readline. Only run once. Call rl_initialize.
3333 * tui/tui.h (tui_ensure_readline_initialized): Rename from
3334 tui_initialize_readline.
3335 * tui/tui-io.c (tui_setup_io): Call
3336 tui_ensure_readline_initialized.
3337 * tui/tui-interp.c (tui_interp::init): Update.
3338
3339 2020-06-16 Tom Tromey <tom@tromey.com>
3340
3341 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
3342 Also preserve the status window.
3343
3344 2020-06-16 Tom Tromey <tom@tromey.com>
3345
3346 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
3347 where m_window==nullptr.
3348
3349 2020-06-15 Tom Tromey <tromey@adacore.com>
3350
3351 * windows-nat.c (windows_nat::handle_output_debug_string):
3352 Update.
3353 (windows_nat::handle_ms_vc_exception): Update.
3354 * target.h (target_read_string): Change API.
3355 * target.c (target_read_string): Change API.
3356 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
3357 Update.
3358 * solib-frv.c (frv_current_sos): Update.
3359 * solib-dsbt.c (dsbt_current_sos): Update.
3360 * solib-darwin.c (darwin_current_sos): Update.
3361 * linux-thread-db.c (inferior_has_bug): Update.
3362 * expprint.c (print_subexp_standard): Update.
3363 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
3364 (ada_exception_message_1): Update.
3365
3366 2020-06-15 Tom Tromey <tromey@adacore.com>
3367
3368 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
3369
3370 2020-06-15 Tom Tromey <tromey@adacore.com>
3371
3372 * valprint.c (read_string): Update comment.
3373 * target.c (MIN): Remove.
3374 (target_read_string): Rewrite.
3375
3376 2020-06-15 Tom Tromey <tromey@adacore.com>
3377
3378 * corefile.c (read_memory_string): Remove.
3379 * ada-valprint.c (ada_value_print_ptr): Update.
3380 * ada-lang.h (ada_tag_name): Change return type.
3381 * ada-lang.c (type_from_tag): Update.
3382 (ada_tag_name_from_tsd): Change return type. Use
3383 target_read_string.
3384 (ada_tag_name): Likewise.
3385 * gdbcore.h (read_memory_string): Don't declare.
3386
3387 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
3388
3389 * symtab.c (rbreak_command): Ignore Windows drive colon.
3390
3391 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
3392
3393 * NEWS: Mention removed GDBserver host support.
3394
3395 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
3396
3397 * features/riscv/rebuild-csr-xml.sh: Updated.
3398
3399 2020-06-11 Tom Tromey <tom@tromey.com>
3400
3401 PR gdb/18318:
3402 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3403
3404 2020-06-09 Jonny Grant <jg@jguk.org>
3405 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3406
3407 * main.c (captured_main_1): Don't print new line after help.
3408 (print_gdb_help): add mailing list and IRC channel information
3409 to --help. Add new lines between items in the footer. Remove
3410 quotes around bug url.
3411
3412 2020-06-11 Keith Seitz <keiths@redhat.com>
3413
3414 PR gdb/21356
3415 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3416 Resolve typedefs for type length calculations.
3417
3418 2020-06-10 Tom de Vries <tdevries@suse.de>
3419
3420 PR ada/24713
3421 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3422 (write_psymbols): Enable .gdb_index for ada.
3423 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3424 ada.
3425
3426 2020-06-10 Tom de Vries <tdevries@suse.de>
3427
3428 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3429 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3430 namei" instead of "const char *name" argument.
3431 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3432 dw2_symtab_iter_init.
3433
3434 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3435
3436 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3437 to use type::field and field::type instead.
3438
3439 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3440
3441 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3442 to use field::type instead.
3443
3444 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3445
3446 * gdbtypes.h (struct field) <type, set_type>: New methods.
3447 Rename `type` field to...
3448 <m_type>: ... this. Change references throughout to use type or
3449 set_type methods.
3450 (FIELD_TYPE): Use field::type. Change call sites that modify
3451 the field's type to use field::set_type instead.
3452
3453 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3454
3455 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3456 to use type::index_type instead.
3457
3458 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3459
3460 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3461 methods.
3462 (TYPE_INDEX_TYPE): Use type::index_type.
3463 * gdbtypes.c (create_array_type_with_stride): Likewise.
3464
3465 2020-06-07 Tom Tromey <tom@tromey.com>
3466
3467 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3468 parameter.
3469 (generic_value_print): Update.
3470
3471 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3472
3473 Revert commit 982a38f60b0.
3474 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3475
3476 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3477
3478 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3479 avoid use after free.
3480
3481 2020-06-05 Tom de Vries <tdevries@suse.de>
3482
3483 * NEWS: Fix typos.
3484
3485 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
3486
3487 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3488 the per_bfd object.
3489 (dwarf2_read_debug_names): Likewise.
3490 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3491 object when re-using a per_bfd object with an index.
3492
3493 2020-06-03 Tom de Vries <tdevries@suse.de>
3494
3495 PR symtab/26046
3496 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3497 children for C++.
3498 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3499 DW_TAG_subprogram.
3500
3501 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3502
3503 * ada-lang.c (ada_language_data): Delete skip_trampoline
3504 initializer.
3505 * c-lang.c (c_language_data): Likewise.
3506 (cplus_language_data): Likewise.
3507 (cplus_language::skip_trampoline): New member function.
3508 (asm_language_data): Delete skip_trampoline initializer.
3509 (minimal_language_data): Likewise.
3510 * d-lang.c (d_language_data): Likewise.
3511 * f-lang.c (f_language_data): Likewise.
3512 * go-lang.c (go_language_data): Likewise.
3513 * language.c (unk_lang_trampoline): Delete function.
3514 (skip_language_trampoline): Update.
3515 (unknown_language_data): Delete skip_trampoline initializer.
3516 (auto_language_data): Likewise.
3517 * language.h (language_data): Delete skip_trampoline field.
3518 (language_defn::skip_trampoline): New function.
3519 * m2-lang.c (m2_language_data): Delete skip_trampoline
3520 initializer.
3521 * objc-lang.c (objc_skip_trampoline): Delete function, move
3522 implementation to objc_language::skip_trampoline.
3523 (objc_language_data): Delete skip_trampoline initializer.
3524 (objc_language::skip_trampoline): New member function with
3525 implementation from objc_skip_trampoline.
3526 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3527 initializer.
3528 * p-lang.c (pascal_language_data): Likewise.
3529 * rust-lang.c (rust_language_data): Likewise.
3530
3531 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3532
3533 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3534 (ada_language::demangle): New member function.
3535 * c-lang.c (c_language_data): Delete la_demangle initializer.
3536 (cplus_language_data): Delete la_demangle initializer.
3537 (cplus_language::demangle): New member function.
3538 (asm_language_data): Delete la_demangle initializer.
3539 (minimal_language_data): Delete la_demangle initializer.
3540 * d-lang.c (d_language_data): Delete la_demangle initializer.
3541 (d_language::demangle): New member function.
3542 * f-lang.c (f_language_data): Delete la_demangle initializer.
3543 (f_language::demangle): New member function.
3544 * go-lang.c (go_language_data): Delete la_demangle initializer.
3545 (go_language::demangle): New member function.
3546 * language.c (language_demangle): Update.
3547 (unk_lang_demangle): Delete.
3548 (unknown_language_data): Delete la_demangle initializer.
3549 (unknown_language::demangle): New member function.
3550 (auto_language_data): Delete la_demangle initializer.
3551 (auto_language::demangle): New member function.
3552 * language.h (language_data): Delete la_demangle field.
3553 (language_defn::demangle): New function.
3554 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3555 * objc-lang.c (objc_language_data): Delete la_demangle
3556 initializer.
3557 (objc_language::demangle): New member function.
3558 * opencl-lang.c (opencl_language_data): Delete la_demangle
3559 initializer.
3560 * p-lang.c (pascal_language_data): Likewise.
3561 * rust-lang.c (rust_language_data): Likewise.
3562 (rust_language::demangle): New member function.
3563
3564 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3565
3566 * ada-lang.c (ada_language_data): Delete la_print_type
3567 initializer.
3568 (ada_language::print_type): New member function.
3569 * c-lang.c (c_language_data): Delete la_print_type initializer.
3570 (c_language::print_type): New member function.
3571 (cplus_language_data): Delete la_print_type initializer.
3572 (cplus_language::print_type): New member function.
3573 (asm_language_data): Delete la_print_type initializer.
3574 (asm_language::print_type): New member function.
3575 (minimal_language_data): Delete la_print_type initializer.
3576 (minimal_language::print_type): New member function.
3577 * d-lang.c (d_language_data): Delete la_print_type initializer.
3578 (d_language::print_type): New member function.
3579 * f-lang.c (f_language_data): Delete la_print_type initializer.
3580 (f_language::print_type): New member function.
3581 * go-lang.c (go_language_data): Delete la_print_type initializer.
3582 (go_language::print_type): New member function.
3583 * language.c (unk_lang_print_type): Delete.
3584 (unknown_language_data): Delete la_print_type initializer.
3585 (unknown_language::print_type): New member function.
3586 (auto_language_data): Delete la_print_type initializer.
3587 (auto_language::print_type): New member function.
3588 * language.h (language_data): Delete la_print_type field.
3589 (language_defn::print_type): New function.
3590 (LA_PRINT_TYPE): Update.
3591 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3592 (m2_language::print_type): New member function.
3593 * objc-lang.c (objc_language_data): Delete la_print_type
3594 initializer.
3595 (objc_language::print_type): New member function.
3596 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3597 to opencl_language::print_type.
3598 (opencl_language_data): Delete la_print_type initializer.
3599 (opencl_language::print_type): New member function, implementation
3600 from opencl_print_type.
3601 * p-lang.c (pascal_language_data): Delete la_print_type
3602 initializer.
3603 (pascal_language::print_type): New member function.
3604 * rust-lang.c (rust_print_type): Delete, implementation moved to
3605 rust_language::print_type.
3606 (rust_language_data): Delete la_print_type initializer.
3607 (rust_language::print_type): New member function, implementation
3608 from rust_print_type.
3609
3610 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3611
3612 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3613 implementation moves to...
3614 (ada_language::sniff_from_mangled_name): ...here. Update return
3615 type.
3616 (ada_language_data): Delete la_sniff_from_mangled_name
3617 initializer.
3618 * c-lang.c (c_language_data): Likewise.
3619 (cplus_language_data): Likewise.
3620 (cplus_language::sniff_from_mangled_name): New member function,
3621 implementation taken from gdb_sniff_from_mangled_name.
3622 (asm_language_data): Delete la_sniff_from_mangled_name
3623 initializer.
3624 (minimal_language_data): Likewise.
3625 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3626 implementation moves to cplus_language::sniff_from_mangled_name.
3627 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3628 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3629 moves to...
3630 (d_language::sniff_from_mangled_name): ...here.
3631 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3632 * f-lang.c (f_language_data): Likewise.
3633 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3634 moves to...
3635 (go_language::sniff_from_mangled_name): ...here.
3636 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3637 * language.c (language_sniff_from_mangled_name): Delete.
3638 (unknown_language_data): Delete la_sniff_from_mangled_name
3639 initializer.
3640 (auto_language_data): Likewise.
3641 * language.h (language_data): Delete la_sniff_from_mangled_name
3642 field.
3643 (language_defn::sniff_from_mangled_name): New function.
3644 (language_sniff_from_mangled_name): Delete declaration.
3645 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3646 field.
3647 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3648 implementation moves to...
3649 (objc_language::sniff_from_mangled_name): ...here.
3650 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3651 * opencl-lang.c (opencl_language_data): Likewise.
3652 * p-lang.c (pascal_language_data): Likewise.
3653 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3654 implementation moves to...
3655 (rust_language::sniff_from_mangled_name): ...here.
3656 (rust_language_data): Delete la_sniff_from_mangled_name
3657 initializer.
3658 * symtab.c (symbol_find_demangled_name): Call
3659 sniff_from_mangled_name member function.
3660
3661 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3662
3663 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3664 initializer.
3665 * c-lang.c (c_language_data): Likewise.
3666 (cplus_language_data): Likewise.
3667 (cplus_language::search_name_hash): New member function.
3668 (asm_language_data): Delete la_search_name_hash initializer.
3669 (minimal_language_data): Likewise.
3670 * d-lang.c (d_language_data): Likewise.
3671 * dictionary.c (default_search_name_hash): Rename to...
3672 (language_defn::search_name_hash): ...this.
3673 * f-lang.c (f_language_data): Likewise.
3674 (f_language::search_name_hash): New member function.
3675 * go-lang.c (go_language_data): Delete la_search_name_hash
3676 initializer.
3677 * language.c (unknown_language_data): Likewise.
3678 (auto_language_data): Likewise.
3679 * language.h (struct language_data): Delete la_search_name_hash
3680 field.
3681 (language_defn::search_name_hash): Declare new member function.
3682 (default_search_name_hash): Delete declaration.
3683 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3684 initializer.
3685 * objc-lang.c (objc_language_data): Likewise.
3686 * opencl-lang.c (opencl_language_data): Likewise.
3687 * p-lang.c (pascal_language_data): Likewise.
3688 * rust-lang.c (rust_language_data): Likewise.
3689 * symtab.c (search_name_hash): Update call.
3690
3691 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3692
3693 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3694 initializer.
3695 * c-lang.c (class compile_instance): Declare.
3696 (c_language_data): Delete la_get_compile_instance initializer.
3697 (c_language::get_compile_instance): New member function.
3698 (cplus_language_data): Delete la_get_compile_instance initializer.
3699 (cplus_language::get_compile_instance): New member function.
3700 (asm_language_data): Delete la_get_compile_instance initializer.
3701 (minimal_language_data): Likewise.
3702 * c-lang.h (c_get_compile_context): Update comment.
3703 (cplus_get_compile_context): Update comment.
3704 * compile/compile.c (compile_to_object): Update calls, don't rely
3705 on function pointer being NULL.
3706 * d-lang.c (d_language_data): Delete la_get_compile_instance
3707 initializer.
3708 * f-lang.c (f_language_data): Likewise.
3709 * go-lang.c (go_language_data): Likewise.
3710 * language.c (unknown_language_data): Likewise.
3711 (auto_language_data): Likewise.
3712 * language.h (language_data): Delete la_get_compile_instance field.
3713 (language_defn::get_compile_instance): New member function.
3714 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
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
3721 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3722
3723 * ada-lang.c (ada_add_all_symbols): Update comment.
3724 (ada_iterate_over_symbols): Delete, move implementation to...
3725 (ada_language::iterate_over_symbols): ...here, a new member
3726 function, rewrite to use range based for loop.
3727 (ada_language_data): Delete la_iterate_over_symbols initializer.
3728 * c-lang.c (c_language_data): Likewise.
3729 (cplus_language_data): Likewise.
3730 (asm_language_data): Likewise.
3731 (minimal_language_data): Likewise.
3732 * d-lang.c (d_language_data): Likewise.
3733 * f-lang.c (f_language_data): Likewise.
3734 * go-lang.c (go_language_data): Likewise.
3735 * language.c (unknown_language_data): Likewise.
3736 (auto_language_data): Likewise.
3737 * language.h (language_data): Delete la_iterate_over_symbols field.
3738 (language_defn::iterate_over_symbols): New member function.
3739 (LA_ITERATE_OVER_SYMBOLS): Update.
3740 * linespec.c (iterate_over_all_matching_symtabs): Update.
3741 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3742 initializer.
3743 * objc-lang.c (objc_language_data): Likewise.
3744 * opencl-lang.c (opencl_language_data): Likewise.
3745 * p-lang.c (pascal_language_data): Likewise.
3746 * rust-lang.c (rust_language_data): Likewise.
3747
3748 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3749
3750 * ada-lang.c (ada_language_data): Delete
3751 la_lookup_transparent_type initializer.
3752 * c-lang.c (c_language_data): Likewise.
3753 (cplus_language_data): Likewise.
3754 (cplus_language::lookup_transparent_type): New member function.
3755 (asm_language_data): Delete la_lookup_transparent_type
3756 initializer.
3757 (minimal_language_data): Likewise.
3758 * d-lang.c (d_language_data): Likewise.
3759 * f-lang.c (f_language_data): Likewise.
3760 * go-lang.c (go_language_data): Likewise.
3761 * language.c (unknown_language_data): Likewise.
3762 (auto_language_data): Likewise.
3763 * language.h (struct language_data): Delete
3764 la_lookup_transparent_type field.
3765 (language_defn::lookup_transparent_type): New member function.
3766 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3767 initializer.
3768 * objc-lang.c (objc_language_data): Likewise.
3769 * opencl-lang.c (opencl_language_data): Likewise.
3770 * p-lang.c (pascal_language_data): Likewise.
3771 * rust-lang.c (rust_language_data): Likewise.
3772 * symtab.c (symbol_matches_domain): Update call.
3773
3774 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3775
3776 * ada-lang.c (ada_language_arch_info): Delete function, move
3777 implementation to...
3778 (ada_language::language_arch_info): ...here, a new member
3779 function.
3780 (ada_language_data): Delete la_language_arch_info.
3781 * c-lang.c (c_language_data): Likewise.
3782 (c_language::language_arch_info): New member function.
3783 (cplus_language_arch_info): Delete function, move
3784 implementation to...
3785 (cplus_language::language_arch_info): ...here, a new member
3786 function.
3787 (cplus_language_data): Delete la_language_arch_info.
3788 (asm_language_data): Likewise.
3789 (asm_language::language_arch_info): New member function.
3790 (minimal_language_data): Delete la_language_arch_info.
3791 (minimal_language::language_arch_info): New member function.
3792 * d-lang.c (d_language_arch_info): Delete function, move
3793 implementation to...
3794 (d_language::language_arch_info): ...here, a new member
3795 function.
3796 (d_language_data): Delete la_language_arch_info.
3797 * f-lang.c (f_language_arch_info): Delete function, move
3798 implementation to...
3799 (f_language::language_arch_info): ...here, a new member
3800 function.
3801 (f_language_data): Delete la_language_arch_info.
3802 * go-lang.c (go_language_arch_info): Delete function, move
3803 implementation to...
3804 (go_language::language_arch_info): ...here, a new member
3805 function.
3806 (go_language_data): Delete la_language_arch_info.
3807 * language.c (unknown_language_data): Likewise.
3808 (unknown_language::language_arch_info): New member function.
3809 (auto_language_data): Delete la_language_arch_info.
3810 (auto_language::language_arch_info): New member function.
3811 (language_gdbarch_post_init): Update call to
3812 la_language_arch_info.
3813 * language.h (language_data): Delete la_language_arch_info
3814 function pointer.
3815 (language_defn::language_arch_info): New function.
3816 * m2-lang.c (m2_language_arch_info): Delete function, move
3817 implementation to...
3818 (m2_language::language_arch_info): ...here, a new member
3819 function.
3820 (m2_language_data): Delete la_language_arch_info.
3821 * objc-lang.c (objc_language_arch_info): Delete function, move
3822 implementation to...
3823 (objc_language::language_arch_info): ...here, a new member
3824 function.
3825 (objc_language_data): Delete la_language_arch_info.
3826 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3827 implementation to...
3828 (opencl_language::language_arch_info): ...here, a new member
3829 function.
3830 (opencl_language_data): Delete la_language_arch_info.
3831 * p-lang.c (pascal_language_arch_info): Delete function, move
3832 implementation to...
3833 (pascal_language::language_arch_info): ...here, a new member
3834 function.
3835 (pascal_language_data): Delete la_language_arch_info.
3836 * rust-lang.c (rust_language_arch_info): Delete function, move
3837 implementation to...
3838 (rust_language::language_arch_info): ...here, a new member
3839 function.
3840 (rust_language_data): Delete la_language_arch_info.
3841
3842 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3843
3844 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3845 initializer.
3846 * c-lang.c (c_language_data): Likewise.
3847 (cplus_language_data): Likewise.
3848 (cplus_language::pass_by_reference_info): New method.
3849 (asm_language_data): Delete la_pass_by_reference initializer.
3850 (minimal_language_data): Likewise.
3851 * cp-abi.c (cp_pass_by_reference): Remove use of
3852 default_pass_by_reference.
3853 * d-lang.c (d_language_data): Likewise.
3854 * f-lang.c (f_language_data): Likewise.
3855 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3856 default_pass_by_reference.
3857 * go-lang.c (go_language_data): Likewise.
3858 * language.c (language_pass_by_reference): Update.
3859 (default_pass_by_reference): Delete.
3860 (unknown_language_data): Delete la_pass_by_reference
3861 initializer.
3862 (auto_language_data): Likewise.
3863 * language.h (struct language_data): Delete la_pass_by_reference
3864 field.
3865 (language_defn::pass_by_reference_info): New member function.
3866 (default_pass_by_reference): Delete declaration.
3867 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3868 initializer.
3869 * objc-lang.c (objc_language_data): Likewise.
3870 * opencl-lang.c (opencl_language_data): Likewise.
3871 * p-lang.c (pascal_language_data): Likewise.
3872 * rust-lang.c (rust_language_data): Likewise.
3873
3874 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3875
3876 * ada-lang.c (ada_read_var_value): Delete function, move
3877 implementation to...
3878 (ada_language::read_var_value): ...here.
3879 (ada_language_data): Delete la_read_var_value initializer.
3880 * c-lang.c (c_language_data): Likewise.
3881 (cplus_language_data): Likewise.
3882 (minimal_language_data): Likewise.
3883 * d-lang.c (d_language_data): Likewise.
3884 * f-lang.c (f_language_data): Likewise.
3885 * findvar.c (default_read_var_value): Rename to...
3886 (language_defn::read_var_value): ...this.
3887 * findvar.c (read_var_value): Update header comment, and change to
3888 call member function instead of function pointer.
3889 * go-lang.c (go_language_data): Likewise.
3890 * language.c (unknown_language_data): Delete la_read_var_value
3891 initializer.
3892 (auto_language_data): Likewise.
3893 * language.h (struct language_data): Delete la_read_var_value
3894 field.
3895 (language_defn::read_var_value): New member function.
3896 (default_read_var_value): Delete declaration.
3897 * m2-lang.c (m2_language_data): Delete la_read_var_value
3898 initializer.
3899 * objc-lang.c (objc_language_data): Likewise.
3900 * opencl-lang.c (opencl_language_data): Likewise.
3901 * p-lang.c (pascal_language_data): Likewise.
3902 * rust-lang.c (rust_language_data): Likewise.
3903 * value.h (default_read_var_value): Delete declaration.
3904
3905 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3906
3907 * ada-lang.c (ada_print_array_index): Delete function, move
3908 implementation to...
3909 (ada_language::print_array_index): ...here.
3910 (ada_language_data): Delete la_print_array_index initializer.
3911 * c-lang.c (c_language_data): Likewise.
3912 (cplus_language_data): Likewise.
3913 (minimal_language_data): Likewise.
3914 * d-lang.c (d_language_data): Likewise.
3915 * f-lang.c (f_language_data): Likewise.
3916 * go-lang.c (go_language_data): Likewise.
3917 * language.c (default_print_array_index): Delete function, move
3918 implementation to...
3919 (language_defn::print_array_index): ...here.
3920 (unknown_language_data): Delete la_print_array_index initializer.
3921 (auto_language_data): Likewise.
3922 * language.h (struct language_data): Delete la_print_array_index
3923 field.
3924 (language_defn::print_array_index): New member function.
3925 (LA_PRINT_ARRAY_INDEX): Update.
3926 (default_print_array_index): Delete declaration.
3927 * m2-lang.c (m2_language_data): Delete la_print_array_index
3928 initializer.
3929 * objc-lang.c (objc_language_data): Likewise.
3930 * opencl-lang.c (opencl_language_data): Likewise.
3931 * p-lang.c (pascal_language_data): Likewise.
3932 * rust-lang.c (rust_language_data): Likewise.
3933
3934 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3935
3936 * gdb/ada-lang.c (ada_language_defn): Convert to...
3937 (ada_language_data): ...this.
3938 (class ada_language): New class.
3939 (ada_language_defn): New static global.
3940 * gdb/c-lang.c (c_language_defn): Convert to...
3941 (c_language_data): ...this.
3942 (class c_language): New class.
3943 (c_language_defn): New static global.
3944 (cplus_language_defn): Convert to...
3945 (cplus_language_data): ...this.
3946 (class cplus_language): New class.
3947 (cplus_language_defn): New static global.
3948 (asm_language_defn): Convert to...
3949 (asm_language_data): ...this.
3950 (class asm_language): New class.
3951 (asm_language_defn): New static global.
3952 (minimal_language_defn): Convert to...
3953 (minimal_language_data): ...this.
3954 (class minimal_language): New class.
3955 (minimal_language_defn): New static global.
3956 * gdb/d-lang.c (d_language_defn): Convert to...
3957 (d_language_data): ...this.
3958 (class d_language): New class.
3959 (d_language_defn): New static global.
3960 * gdb/f-lang.c (f_language_defn): Convert to...
3961 (f_language_data): ...this.
3962 (class f_language): New class.
3963 (f_language_defn): New static global.
3964 * gdb/go-lang.c (go_language_defn): Convert to...
3965 (go_language_data): ...this.
3966 (class go_language): New class.
3967 (go_language_defn): New static global.
3968 * gdb/language.c (unknown_language_defn): Remove declaration.
3969 (current_language): Initialize to nullptr, real initialization is
3970 moved to _initialize_language.
3971 (languages): Delete global.
3972 (language_defn::languages): Define.
3973 (set_language_command): Use language_defn::languages.
3974 (set_language): Likewise.
3975 (range_error): Likewise.
3976 (language_enum): Likewise.
3977 (language_def): Likewise.
3978 (add_set_language_command): Use language_def::languages for the
3979 language list, and language_def to lookup language pointers.
3980 (skip_language_trampoline): Use language_defn::languages.
3981 (unknown_language_defn): Convert to...
3982 (unknown_language_data): ...this.
3983 (class unknown_language): New class.
3984 (unknown_language_defn): New static global.
3985 (auto_language_defn): Convert to...
3986 (auto_language_data): ...this.
3987 (class auto_language): New class.
3988 (auto_language_defn): New static global.
3989 (language_gdbarch_post_init): Use language_defn::languages.
3990 (_initialize_language): Initialize current_language.
3991 * gdb/language.h (struct language_defn): Rename to...
3992 (struct language_data): ...this.
3993 (struct language_defn): New.
3994 (auto_language_defn): Delete.
3995 (unknown_language_defn): Delete.
3996 (minimal_language_defn): Delete.
3997 (ada_language_defn): Delete.
3998 (asm_language_defn): Delete.
3999 (c_language_defn): Delete.
4000 (cplus_language_defn): Delete.
4001 (d_language_defn): Delete.
4002 (f_language_defn): Delete.
4003 (go_language_defn): Delete.
4004 (m2_language_defn): Delete.
4005 (objc_language_defn): Delete.
4006 (opencl_language_defn): Delete.
4007 (pascal_language_defn): Delete.
4008 (rust_language_defn): Delete.
4009 * gdb/m2-lang.c (m2_language_defn): Convert to...
4010 (m2_language_data): ...this.
4011 (class m2_language): New class.
4012 (m2_language_defn): New static global.
4013 * gdb/objc-lang.c (objc_language_defn): Convert to...
4014 (objc_language_data): ...this.
4015 (class objc_language): New class.
4016 (objc_language_defn): New static global.
4017 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
4018 (opencl_language_data): ...this.
4019 (class opencl_language): New class.
4020 (opencl_language_defn): New static global.
4021 * gdb/p-lang.c (pascal_language_defn): Convert to...
4022 (pascal_language_data): ...this.
4023 (class pascal_language): New class.
4024 (pascal_language_defn): New static global.
4025 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
4026 language pointer, update comment format.
4027 * gdb/rust-lang.c (rust_language_defn): Convert to...
4028 (rust_language_data): ...this.
4029 (class rust_language): New class.
4030 (rust_language_defn): New static global.
4031
4032 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
4033
4034 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
4035 member variable.
4036 <m_stmt_at_address>: New member variable.
4037 (lnp_state_machine::record_line): Don't record some lines, update
4038 tracking of is_stmt at the same address.
4039 (lnp_state_machine::lnp_state_machine): Initialise new member
4040 variables.
4041
4042 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4043
4044 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
4045 "-include gnu-nat-mig.h".
4046 * gnu-nat-mig.h: New file.
4047 * gnu-nat.c: Include "gnu-nat-mig.h".
4048 (exc_server, msg_reply_server, notify_server,
4049 process_reply_server): Remove declarations.
4050
4051 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4052
4053 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
4054 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
4055 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
4056 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
4057 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
4058 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
4059 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
4060 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
4061 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
4062 to gnu_nat_target class.
4063 * gnu-nat.c: Likewise.
4064 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
4065 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
4066 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
4067 object.
4068 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
4069 instead of `gnu_target'.
4070
4071 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4072
4073 * i386-gnu-tdep.c: Include "gdbcore.h"
4074 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
4075 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
4076 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
4077 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
4078 i386_gnu_sigcontext_addr): New functions
4079 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
4080 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
4081 tdep.
4082
4083 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4084
4085 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
4086 before fork_inferior call. Avoid calling it if target_is_pushed returns
4087 true.
4088
4089 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4090
4091 * gnu-nat.h (gnu_target): New variable declaration.
4092 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
4093 gnu_target.
4094 * gnu-nat.c (gnu_target): New variable.
4095 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
4096 add_thread_silent, and add_thread calls.
4097 (gnu_nat_target::create_inferior): Pass gnu_target to
4098 add_thread_silent, thread_change_ptid call.
4099 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
4100 call.
4101
4102 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4103
4104 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
4105 (gnu_nat_target::find_memory_regions): Remove unused
4106 `old_address' variable.
4107
4108 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4109
4110 * gnu-nat.c: Include "gdbarch.h".
4111
4112 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4113
4114 * reply_mig_hack.awk (Error return): Cast function through
4115 void *, to bypass compiler function call check.
4116
4117 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4118
4119 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
4120 $(srcdir)/reply_mig_hack.awk.
4121
4122 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4123
4124 * gnu-nat.h (gnu_debug_flag): Set type to bool.
4125
4126 2020-05-30 Jonny Grant <jg@jguk.org>
4127
4128 * configure.ac (ACX_BUGURL): change bug URL to https.
4129
4130 2020-05-30 Pedro Alves <palves@redhat.com>
4131
4132 * cp-support.c (replace_typedefs_template): New.
4133 (replace_typedefs_qualified_name): Handle
4134 DEMANGLE_COMPONENT_TEMPLATE.
4135
4136 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
4137
4138 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
4139 dwarf2/index-cache.h, dwarf2/index-write.c,
4140 dwarf2/index-write.h, dwarf2/line-header.c,
4141 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
4142 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
4143 variables and fields from `dwarf2_per_objfile` to just
4144 `per_objfile` throughout.
4145
4146 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
4147
4148 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4149 <push_dwarf_reg_entry_value>: Add comment.
4150
4151 2020-05-28 Kevin Buettner <kevinb@redhat.com>
4152 Keith Seitz <keiths@redhat.com>
4153
4154 * python/python.c (do_start_initialization): Call PyEval_SaveThread
4155 instead of PyEval_ReleaseLock.
4156 (class gdbpy_gil): Move to earlier in file.
4157 (finalize_python): Set gdb_python_initialized.
4158 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
4159 when not initialized.
4160
4161 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
4162
4163 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4164 <push_dwarf_reg_entry_value>: Remove assert. Override
4165 per_objfile with caller_per_objfile.
4166
4167 2020-05-28 Tom de Vries <tdevries@suse.de>
4168
4169 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
4170 PR gold/15646 workaround to symbol kind "type".
4171
4172 2020-05-27 Tom Tromey <tromey@adacore.com>
4173
4174 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
4175
4176 2020-05-27 Tom Tromey <tromey@adacore.com>
4177
4178 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
4179 Use htab_find_with_hash.
4180 <add_abbrev>: Remove "abbrev_number" parameter.
4181 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
4182 "abbrev_number" parameter. Use htab_find_slot_with_hash.
4183 (hash_abbrev): Add comment.
4184 (abbrev_table::lookup_abbrev): Move to header file.
4185 (abbrev_table::read): Update.
4186
4187 2020-05-27 Tom Tromey <tromey@adacore.com>
4188
4189 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
4190 method.
4191 <canonical_name>: New member.
4192 <raw_name>: Rename from "name".
4193 (partial_die_info): Initialize canonical_name.
4194 (scan_partial_symbols): Check raw_name.
4195 (partial_die_parent_scope, partial_die_full_name)
4196 (add_partial_symbol, add_partial_subprogram)
4197 (add_partial_enumeration, load_partial_dies): Use "name" method.
4198 (partial_die_info::name): New method.
4199 (partial_die_info::read, guess_partial_die_structure_name)
4200 (partial_die_info::fixup): Update.
4201
4202 2020-05-27 Tom Tromey <tromey@adacore.com>
4203
4204 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
4205 <get_ref_die_offset>: Inline.
4206 <get_ref_die_offset_complaint>: New method.
4207 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
4208 (attribute::get_ref_die_offset_complaint): Rename from
4209 get_ref_die_offset. Just issue complaint.
4210
4211 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4212
4213 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
4214
4215 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4216
4217 * exec.c (exec_file_attach): Use errno value of first openp failure.
4218
4219 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4220
4221 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
4222 Don't close thread handle.
4223
4224 2020-05-27 Tom Tromey <tom@tromey.com>
4225 Simon Marchi <simon.marchi@efficios.com>
4226
4227 * objfiles.h (struct objfile) <partial_symtabs>: Now a
4228 shared_ptr.
4229 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
4230 member.
4231 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
4232 dwarf2_per_bfd_objfile_data_key>: New globals.
4233 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
4234 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
4235 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
4236 shared.
4237 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
4238 short-circuit when sharing.
4239 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
4240 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
4241
4242 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4243
4244 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
4245 to...
4246 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
4247 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
4248
4249 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4250
4251 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
4252 build_name_components, find_name_components_bounds>:
4253 Add per_objfile parameter.
4254 (struct mapped_index) <symbol_name_at>: Likewise.
4255 (struct mapped_debug_names): Remove constructor.
4256 <dwarf2_per_objfile>: Remove field.
4257 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
4258 (mapped_index_base::find_name_components_bounds,
4259 mapped_index_base::build_name_components,
4260 dw2_expand_symtabs_matching_symbol): Likewise.
4261 (class mock_mapped_index) <symbol_name_at>: Likewise.
4262 (check_match): Likewise.
4263 (check_find_bounds_finds): Likewise.
4264 (test_mapped_index_find_name_component_bounds): Update.
4265 (CHECK_MATCH): Update.
4266 (dw2_expand_symtabs_matching): Update.
4267 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
4268 per_objfile parameter.
4269 <find_vec_in_debug_names>: Likewise.
4270 <m_per_objfile>: New field.
4271 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
4272 parameter.
4273 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
4274 (dw2_debug_names_iterator::next): Update.
4275 (dw2_debug_names_lookup_symbol): Update.
4276 (dw2_debug_names_expand_symtabs_for_function): Update.
4277 (dw2_debug_names_map_matching_symbols): Update.
4278 (dw2_debug_names_expand_symtabs_matching): Update.
4279 (dwarf2_read_debug_names): Update.
4280
4281 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4282
4283 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
4284 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
4285 move to dwarf2_per_objfile.
4286 <read_in_chain>: Remove.
4287 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
4288 remove_all_cus, age_comp_units>: New methods.
4289 <m_dwarf2_cus>: New member.
4290 (struct dwarf2_per_cu_data) <cu>: Remove.
4291 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
4292 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
4293 moved to methods of dwarf2_per_objfile.
4294 (dwarf2_clear_marks): Remove.
4295 (dwarf2_queue_item::~dwarf2_queue_item): Update.
4296 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
4297 (dwarf2_per_bfd::free_cached_comp_units): Remove.
4298 (dwarf2_per_objfile::remove_all_cus): New.
4299 (class free_cached_comp_units) <~free_cached_comp_units>:
4300 Update.
4301 (load_cu): Update.
4302 (dw2_do_instantiate_symtab): Adjust.
4303 (fill_in_sig_entry_from_dwo_entry): Adjust.
4304 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4305 (cutu_reader::cutu_reader): Likewise.
4306 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
4307 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
4308 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
4309 and dwarf2_per_objfile::age_comp_units.
4310 (load_partial_comp_unit): Update.
4311 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
4312 (process_queue): Likewise.
4313 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
4314 backlink.
4315 (dwarf2_read_addr_index): Likewise.
4316 (follow_die_offset): Likewise.
4317 (dwarf2_fetch_die_loc_sect_off): Likewise.
4318 (dwarf2_fetch_constant_bytes): Likewise.
4319 (dwarf2_fetch_die_type_sect_off): Likewise.
4320 (follow_die_sig_1): Likewise.
4321 (load_full_type_unit): Likewise.
4322 (read_signatured_type): Likewise.
4323 (dwarf2_cu::dwarf2_cu): Don't set cu field.
4324 (dwarf2_cu::~dwarf2_cu): Remove.
4325 (dwarf2_per_objfile::get_cu): New.
4326 (dwarf2_per_objfile::set_cu): New.
4327 (age_cached_comp_units): Rename to...
4328 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
4329 to std::unordered_map.
4330 (free_one_cached_comp_unit): Rename to...
4331 (dwarf2_per_objfile::remove_cu): ... this. Adjust
4332 to std::unordered_map.
4333 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
4334 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
4335 a dwarf2_per_objfile in data.
4336 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
4337 (dwarf2_clear_marks): Remove.
4338
4339 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4340
4341 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
4342 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
4343 (init_tu_and_read_dwo_dies): Likewise.
4344 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
4345 (cutu_reader::cutu_reader): Likewise.
4346 (load_partial_comp_unit): Likewise.
4347 (process_psymtab_comp_unit): Update.
4348 (build_type_psymtabs_1): Update.
4349 (process_skeletonless_type_unit): Update.
4350 (load_full_comp_unit): Update.
4351 (find_partial_die): Update.
4352 (dwarf2_read_addr_index): Update.
4353 (read_signatured_type): Update.
4354
4355 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4356
4357 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
4358 m_header_read_in>: New fields.
4359 <get_header>: New method.
4360 * dwarf2/read.c (per_cu_header_read_in): Remove.
4361 (dwarf2_per_cu_data::get_header): New.
4362 (dwarf2_per_cu_data::addr_size): Update.
4363 (dwarf2_per_cu_data::offset_size): Update.
4364 (dwarf2_per_cu_data::ref_addr_size): Update.
4365
4366 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4367
4368 * dwarf2/read.c (load_cu): Return dwarf2_cu.
4369 (dw2_do_instantiate_symtab): Update.
4370 (queue_and_load_all_dwo_tus): Change parameter from
4371 dwarf2_per_cu_data to dwarf2_cu.
4372 (dwarf2_fetch_die_loc_sect_off): Update.
4373 (dwarf2_fetch_constant_bytes): Update.
4374 (dwarf2_fetch_die_type_sect_off): Update.
4375
4376 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4377
4378 * dwarf2/read.c (process_full_comp_unit,
4379 process_full_type_unit): Remove per_cu, per_objfile paramters.
4380 Add dwarf2_cu parameter.
4381 (process_queue): Update.
4382
4383 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4384
4385 * dwarf2/read.c (create_cu_from_index_list): Replace
4386 dwarf2_per_objfile parameter with dwarf2_per_bfd.
4387 (create_cus_from_index_list): Likewise.
4388 (create_cus_from_index): Likewise.
4389 (create_signatured_type_table_from_index): Likewise.
4390 (create_cus_from_debug_names_list): Likewise.
4391 (create_cus_from_debug_names): Likewise.
4392 (dwarf2_read_gdb_index): Update.
4393 (dwarf2_read_debug_names): Update.
4394
4395 2020-05-27 Tom Tromey <tom@tromey.com>
4396 Simon Marchi <simon.marchi@efficios.com>
4397
4398 * dwarf2/read.h (struct dwarf2_per_objfile)
4399 <get_type_for_signatured_type, set_type_for_signatured_type>:
4400 New methods.
4401 <m_type_map>: New member.
4402 (struct signatured_type) <type>: Remove.
4403 * dwarf2/read.c
4404 (dwarf2_per_objfile::get_type_for_signatured_type,
4405 dwarf2_per_objfile::set_type_for_signatured_type): New.
4406 (get_signatured_type): Use new methods.
4407
4408 2020-05-27 Tom Tromey <tom@tromey.com>
4409 Simon Marchi <simon.marchi@efficios.com>
4410
4411 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4412 (struct dwarf2_per_objfile) <type_units>: New member.
4413 <get_type_unit_group_unshareable>: New method.
4414 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4415 num_symtabs, symtabs>: Remove; move to
4416 type_unit_group_unshareable.
4417 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4418 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4419 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4420
4421 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4422
4423 * dwarf2/read.h (struct dwarf2_per_cu_data):
4424 <dwarf2_per_objfile>: Remove.
4425 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4426 dwarf2_per_objfile.
4427 (create_signatured_type_table_from_index): Likewise.
4428 (create_signatured_type_table_from_debug_names): Likewise.
4429 (create_debug_type_hash_table): Likewise.
4430 (fill_in_sig_entry_from_dwo_entry): Likewise.
4431 (create_type_unit_group): Likewise.
4432 (read_comp_units_from_section): Likewise.
4433 (create_cus_hash_table): Likewise.
4434
4435 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4436
4437 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4438 dwarf2_per_cu_data::dwarf2_per_objfile.
4439 (compute_compunit_symtab_includes): Likewise.
4440 (dwarf2_cu::start_symtab): Likewise.
4441
4442 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4443
4444 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4445 parameter.
4446 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4447 (read_namespace_alias): Update.
4448 (lookup_die_type): Update.
4449 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4450 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4451 Update.
4452 (disassemble_dwarf_expression): Update.
4453
4454 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4455
4456 * dwarf2/read.h (struct dwarf2_queue_item): Add
4457 dwarf2_per_objfile parameter, assign new parameter.
4458 <per_objfile>: New field.
4459 * dwarf2/read.c (free_one_cached_comp_unit): Add
4460 dwarf2_per_objfile parameter.
4461 (queue_comp_unit): Likewise.
4462 (dw2_do_instantiate_symtab): Update.
4463 (process_psymtab_comp_unit): Update.
4464 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4465 (process_imported_unit_die): Update.
4466 (queue_and_load_dwo_tu): Update.
4467 (follow_die_offset): Update.
4468 (follow_die_sig_1): Update.
4469
4470 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4471
4472 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4473 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4474 (read_call_site_scope): Assign per_objfile.
4475 (dwarf2_per_cu_data::objfile): Remove.
4476 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4477 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4478 dwarf2_per_objfile parameter.
4479 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4480 dwarf2_per_objfile parameter.
4481 (dwarf_expr_reg_to_entry_parameter): Add output
4482 dwarf2_per_objfile parameter.
4483 (locexpr_get_frame_base): Update.
4484 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4485 <push_dwarf_reg_entry_value>: Update.
4486 <call_site_to_target_addr>: Update.
4487 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4488 parameter.
4489 (value_of_dwarf_reg_entry): Update.
4490 (rw_pieced_value): Update.
4491 (indirect_synthetic_pointer): Update.
4492 (dwarf2_evaluate_property): Update.
4493 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4494 parameter.
4495 (locexpr_read_variable): Update.
4496 (locexpr_get_symbol_read_needs): Update.
4497 (loclist_read_variable): Update.
4498
4499 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4500
4501 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4502 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4503 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4504 parameter.
4505 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4506 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4507 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4508 parameter.
4509 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4510 sect_variable_value): Add dwarf2_per_objfile parameter.
4511 (class dwarf_evaluate_loc_desc) <dwarf_call,
4512 dwarf_variable_value>: Update.
4513 (fetch_const_value_from_synthetic_pointer): Add
4514 dwarf2_per_objfile parameter.
4515 (fetch_const_value_from_synthetic_pointer): Update.
4516 (coerced_pieced_ref): Update.
4517 (class symbol_needs_eval_context) <dwarf_call,
4518 dwarf_variable_value>: Update.
4519 (dwarf2_compile_expr_to_ax): Update.
4520
4521 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4522
4523 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4524 parameter.
4525 (dwarf2_evaluate_loc_desc_full): Update.
4526
4527 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4528
4529 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4530 parameter.
4531 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4532 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4533 dwarf2_per_objfile parameter.
4534 (decode_debug_loc_dwo_addresses): Likewise.
4535 (dwarf2_find_location_expression): Update.
4536 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4537 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4538 parameter.
4539 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4540 parameter.
4541 (locexpr_describe_location_1): Likewise.
4542 (locexpr_describe_location): Update.
4543
4544 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4545
4546 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4547 Remove.
4548 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4549 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4550 (dwarf2_compile_property_to_c): Update.
4551 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4552 use text offset from objfile.
4553 (locexpr_tracepoint_var_ref): Update.
4554 (locexpr_generate_c_location): Update.
4555 (loclist_describe_location): Update.
4556 (loclist_tracepoint_var_ref): Update.
4557 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4558 dwarf2_per_objfile parameter.
4559 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4560 use text offset from objfile.
4561 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4562
4563 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4564
4565 * dwarf2/expr.h (struct dwarf_expr_context)
4566 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4567 <offset>: Remove.
4568 <per_objfile>: New member.
4569 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4570 dwarf2_per_objfile parameter. Don't set offset, set
4571 per_objfile.
4572 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4573 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4574 a dwarf2_per_objfile object instead of an offset.
4575 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4576 constructor.
4577 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4578 to dwarf2_expr_executor constructor. Don't set offset.
4579 (dwarf2_fetch_cfa_info): Update.
4580 (struct dwarf2_frame_cache) <text_offset>: Remove.
4581 <per_objfile>: New field.
4582 (dwarf2_frame_cache): Update.
4583 (dwarf2_frame_prev_register): Update.
4584 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4585 <dwarf_evaluate_loc_desc>: Add constructor.
4586 (dwarf2_evaluate_loc_desc_full): Update.
4587 (dwarf2_locexpr_baton_eval): Update.
4588 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4589 Add constructor.
4590 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4591
4592 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4593
4594 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4595 addr_sized_int_type>: Move to dwarf2_cu.
4596 <int_type>: Move to dwarf2_per_objfile.
4597 (struct dwarf2_per_objfile) <int_type>: Move here.
4598 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4599 addr_sized_int_type>: Move here.
4600 (read_func_scope): Update.
4601 (read_array_type): Update.
4602 (read_tag_string_type): Update.
4603 (attr_to_dynamic_prop): Update.
4604 (dwarf2_per_cu_data::int_type): Rename to...
4605 (dwarf2_per_objfile::int_type): ... this.
4606 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4607 (dwarf2_cu::addr_sized_int_type): ... this.
4608 (read_subrange_type): Update.
4609 (dwarf2_per_cu_data::addr_type): Rename to...
4610 (dwarf2_cu::addr_type): ... this.
4611 (set_die_type): Update.
4612
4613 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4614
4615 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4616 data through per_cu->cu.
4617
4618 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4619
4620 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4621 dwarf2_per_cu_data parameter fo dwarf2_cu.
4622 (lookup_dwo_type_unit): Likewise.
4623 (read_cutu_die_from_dwo): Likewise.
4624 (lookup_dwo_unit): Likewise.
4625 (open_and_init_dwo_file): Likewise.
4626 (lookup_dwo_cutu): Likewise.
4627 (lookup_dwo_comp_unit): Likewise.
4628 (lookup_dwo_type_unit): Likewise.
4629 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4630 (cutu_reader::cutu_reader): Update.
4631
4632 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4633
4634 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4635 parameter.
4636 (process_full_type_unit): Likewise.
4637 (process_queue): Update.
4638
4639 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4640
4641 * dwarf2/read.c (recursively_compute_inclusions): Add
4642 dwarf2_per_objfile parameter.
4643 (compute_compunit_symtab_includes): Likewise.
4644 (process_cu_includes): Update.
4645
4646 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4647
4648 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4649 parameter.
4650 (create_type_unit_group): Update.
4651 (process_psymtab_comp_unit_reader): Update.
4652 (build_type_psymtabs_reader): Update.
4653
4654 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4655
4656 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4657 object through m_this_cu->cu.
4658
4659 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4660
4661 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4662 the info parameter.
4663 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4664
4665 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4666
4667 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4668 per_objfile parameter.
4669 (load_full_type_unit): Add per_objfile parameter.
4670 (read_signatured_type): Likewise.
4671 (load_full_comp_unit): Likewise.
4672 (load_cu): Likewise.
4673 (dw2_do_instantiate_symtab): Likewise.
4674 (dw2_get_file_names): Likewise.
4675 (dw2_map_symtabs_matching_filename): Update.
4676 (dw_expand_symtabs_matching_file_matcher): Update.
4677 (dw2_map_symbol_filenames): Update.
4678 (process_psymtab_comp_unit): Add per_objfile parameter.
4679 (build_type_psymtabs_1): Update.
4680 (process_skeletonless_type_unit): Update.
4681 (dwarf2_build_psymtabs_hard): Update.
4682 (load_partial_comp_unit): Add per_objfile parameter.
4683 (scan_partial_symbols): Update.
4684 (load_full_comp_unit): Add per_objfile parameter.
4685 (process_imported_unit_die): Update.
4686 (create_cus_hash_table): Update.
4687 (find_partial_die): Update.
4688 (dwarf2_read_addr_index): Update.
4689 (follow_die_offset): Update.
4690 (dwarf2_fetch_die_loc_sect_off): Update.
4691 (dwarf2_fetch_constant_bytes): Update.
4692 (dwarf2_fetch_die_type_sect_off): Update.
4693 (follow_die_sig_1): Update.
4694 (load_full_type_unit): Add per_objfile parameter.
4695 (read_signatured_type): Likewise.
4696
4697 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4698
4699 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4700 of objfile_name.
4701
4702 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4703
4704 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4705 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4706 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4707 field.
4708 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4709 (create_cus_from_index): Update.
4710 (dwarf2_read_gdb_index): Update.
4711 (create_cus_from_debug_names): Update.
4712 (dwarf2_read_debug_names): Update.
4713 (get_abbrev_section_for_cu): Update.
4714 (create_all_comp_units): Update.
4715 (read_attribute_value): Update.
4716 (get_debug_line_section): Update.
4717 * dwarf2/index-cache.c (index_cache::store): Update.
4718 * dwarf2/index-write.c (save_gdb_index_command): Update.
4719 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4720
4721 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4722
4723 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4724 member.
4725 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4726 dwarf2_per_cu_data::per_bfd.
4727 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4728 (create_type_unit_group): Likewise.
4729 (queue_comp_unit): Remove reference to
4730 per_cu->dwarf2_per_objfile.
4731 (maybe_queue_comp_unit): Likewise.
4732 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4733 (create_cus_hash_table): Assign new field.
4734
4735 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4736
4737 * dwarf2/read.c: Replace
4738 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4739 dwarf2_cu->per_objfile throughout.
4740
4741 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4742
4743 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4744 parameter, don't use per_cu->dwarf2_per_objfile.
4745 (dw2_instantiate_symtab): Likewise.
4746 (dw2_find_last_source_symtab): Update.
4747 (dw2_map_expand_apply): Update.
4748 (dw2_lookup_symbol): Update.
4749 (dw2_expand_symtabs_for_function): Update.
4750 (dw2_expand_all_symtabs): Update.
4751 (dw2_expand_symtabs_with_fullname): Update.
4752 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4753 don't use per_cu->dwarf2_per_objfile.
4754 (dw2_expand_marked_cus): Update.
4755 (dw2_find_pc_sect_compunit_symtab): Update.
4756 (dw2_debug_names_lookup_symbol): Update.
4757 (dw2_debug_names_expand_symtabs_for_function): Update.
4758 (dw2_debug_names_map_matching_symbols): Update.
4759 (dwarf2_psymtab::expand_psymtab): Update.
4760
4761 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4762
4763 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4764 <per_objfile>: New member.
4765 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4766 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4767 call to dwarf2_cu.
4768 (cutu_reader::cutu_reader): Update.
4769 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4770
4771 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4772
4773 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4774 struct dwarf2_per_objfile.
4775 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4776 dwarf2_per_bfd.
4777 * dwarf2/read.c (set_die_type): Update.
4778 (get_die_type_at_offset): Update.
4779
4780 2020-05-27 Tom Tromey <tom@tromey.com>
4781 Simon Marchi <simon.marchi@efficios.com>
4782
4783 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4784 method.
4785 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4786 get_symtab, set_symtab>: New methods.
4787 <m_symtabs>: New field.
4788 (struct dwarf2_psymtab): Derive from partial_symtab.
4789 <readin_p, get_compunit_symtab>: Declare methods.
4790 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4791 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4792 New methods.
4793 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4794 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4795 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4796 (dw2_symtab_iter_next, dw2_print_stats)
4797 (dw2_expand_symtabs_with_fullname)
4798 (dw2_expand_symtabs_matching_one)
4799 (dw_expand_symtabs_matching_file_matcher)
4800 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4801 (dw2_debug_names_iterator::next)
4802 (dw2_debug_names_map_matching_symbols)
4803 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4804 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4805 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4806 New methods.
4807 (get_compunit_symtab, process_full_comp_unit)
4808 (process_full_type_unit): Update.
4809 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4810
4811 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4812
4813 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4814 then introduce a new dwarf2_per_objfile type.
4815 <read_line_string>: Move to the new dwarf2_per_objfile type.
4816 <objfile>: Likewise.
4817 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4818 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4819 dwarf2_per_objfile->per_bfd.
4820 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4821 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4822 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4823 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4824 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4825 (dwarf2_per_objfile::locate_sections): Rename to...
4826 (dwarf2_per_bfd::locate_sections): ... this.
4827 (dwarf2_per_objfile::get_cutu): Rename to...
4828 (dwarf2_per_bfd::get_cutu): ... this.
4829 (dwarf2_per_objfile::get_cu): Rename to...
4830 (dwarf2_per_bfd::get_cu): ... this.
4831 (dwarf2_per_objfile::get_tu): Rename to...
4832 (dwarf2_per_bfd::get_tu): ... this.
4833 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4834 (dwarf2_per_bfd::allocate_per_cu): ... this.
4835 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4836 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4837 (get_gdb_index_contents_ftype): Change parameter from
4838 dwarf2_per_objfile to dwarf2_per_bfd.
4839 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4840 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4841
4842 2020-05-27 Tom Tromey <tom@tromey.com>
4843 Simon Marchi <simon.marchi@efficios.com>
4844
4845 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4846 (allocate_piece_closure): Set "per_objfile" member.
4847 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4848 (locexpr_describe_location, loclist_describe_location): Use new
4849 member.
4850 * dwarf2/read.c (read_call_site_scope)
4851 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4852 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4853 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4854 handle_data_member_location): Set per_objfile member.
4855 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4856 member.
4857 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4858
4859 2020-05-27 Tom Tromey <tom@tromey.com>
4860
4861 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4862 allocate_signatured_type>: Declare new methods.
4863 <m_num_psymtabs>: New member.
4864 (struct dwarf2_per_cu_data) <index>: New member.
4865 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4866 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4867 (create_cu_from_index_list): Use allocate_per_cu.
4868 (create_signatured_type_table_from_index)
4869 (create_signatured_type_table_from_debug_names)
4870 (create_debug_type_hash_table, add_type_unit)
4871 (read_comp_units_from_section): Use allocate_signatured_type.
4872
4873 2020-05-27 Tom Tromey <tom@tromey.com>
4874
4875 * psymtab.c (partial_map_expand_apply)
4876 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4877 (psym_lookup_global_symbol_language)
4878 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4879 (psym_print_stats, psym_expand_symtabs_for_function)
4880 (psym_map_symbol_filenames, psym_map_matching_symbols)
4881 (psym_expand_symtabs_matching)
4882 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4883 (maintenance_check_psymtabs): Update.
4884 * psympriv.h (struct partial_symtab) <readin_p,
4885 get_compunit_symtab>: Add objfile parameter.
4886 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4887 Likewise.
4888 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4889 get_compunit_symtab>: Likewise.
4890 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4891
4892 2020-05-27 Tom Tromey <tom@tromey.com>
4893
4894 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4895 member.
4896 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4897 (create_cu_from_index_list)
4898 (create_signatured_type_table_from_index)
4899 (create_signatured_type_table_from_debug_names)
4900 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4901 (dwarf2_create_include_psymtab)
4902 (create_debug_type_hash_table, add_type_unit)
4903 (create_type_unit_group, read_comp_units_from_section)
4904 (dwarf2_compute_name, create_cus_hash_table)
4905 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4906 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4907 obstack.
4908 (dw2_get_real_path): Likewise. Change argument to
4909 dwarf2_per_objfile.
4910
4911 2020-05-27 Luis Machado <luis.machado@linaro.org>
4912
4913 PR tdep/26000
4914 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4915 for ldrd (immediate).
4916
4917 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4918
4919 * command.h: Add comment giving the name of class_tui.
4920 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4921 create the fake command for the help for class_tui.
4922
4923 2020-05-26 Tom Tromey <tromey@adacore.com>
4924
4925 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4926 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4927 (val_atr): New function.
4928 (value_val_atr): Use it.
4929 * ada-valprint.c (print_optional_low_bound): Change low bound
4930 handling for enums.
4931 (val_print_packed_array_elements): Don't call discrete_position.
4932 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4933 discrete_position for enum types.
4934 * language.c (default_print_array_index): Change type.
4935 * language.h (struct language_defn) <la_print_array_index>: Add
4936 index_type parameter, change type of index_value.
4937 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4938 (default_print_array_index): Update.
4939 * valprint.c (maybe_print_array_index): Don't call
4940 value_from_longest. Update.
4941 (value_print_array_elements): Don't call discrete_position.
4942
4943 2020-05-26 Tom Tromey <tromey@adacore.com>
4944
4945 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4946 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4947
4948 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4949
4950 PR gdb/13519
4951 * avr-tdep.c (avr_integer_to_address): Return data or code
4952 address accordingly to the second 'type' argument of the
4953 function.
4954
4955 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4956
4957 * infcmd.c, inferior.h: (construct_inferior_arguments):
4958 Moved function from here to gdbsupport/common-inferior.{h,cc}
4959
4960 2020-05-23 Tom Tromey <tom@tromey.com>
4961
4962 Revert commit eca1f90c:
4963 * NEWS: Remove entry for completion styling.
4964 * completer.c (_rl_completion_prefix_display_length): Move
4965 declaration later.
4966 (gdb_fnprint): Revert.
4967 (gdb_display_match_list_1): Likewise.
4968 * cli/cli-style.c (completion_prefix_style)
4969 (completion_difference_style, completion_suffix_style): Remove.
4970 (_initialize_cli_style): Revert.
4971 * cli/cli-style.h (completion_prefix_style)
4972 (completion_difference_style, completion_suffix_style): Don't
4973 declare.
4974
4975 2020-05-24 Pedro Alves <palves@redhat.com>
4976
4977 * symtab.c (completion_list_add_name): Return boolean indication
4978 of whether the symbol matched.
4979 (completion_list_add_symbol): Don't try to remove C++ aliases if
4980 the symbol didn't match in the first place.
4981 * symtab.h (completion_list_add_name): Return bool.
4982
4983 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4984
4985 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4986 type::field.
4987
4988 2020-05-23 Joel Brobecker <brobecker@adacore.com>
4989
4990 GDB 9.2 released.
4991
4992 2020-05-23 Tom Tromey <tom@tromey.com>
4993
4994 * NEWS: Add entry for completion styling.
4995 * completer.c (_rl_completion_prefix_display_length): Move
4996 declaration earlier.
4997 (gdb_fnprint): Use completion_style.
4998 (gdb_display_match_list_1): Likewise.
4999 * cli/cli-style.c (completion_prefix_style)
5000 (completion_difference_style, completion_suffix_style): New
5001 globals.
5002 (_initialize_cli_style): Register new globals.
5003 * cli/cli-style.h (completion_prefix_style)
5004 (completion_difference_style, completion_suffix_style): Declare.
5005
5006 2020-05-23 Pedro Alves <palves@redhat.com>
5007
5008 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
5009 (parse_escape): Use ISDIGIT instead of isdigit.
5010 (puts_debug): Use gdb_isprint instead of isprint.
5011 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
5012 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
5013 ISSPACE instead of isspace.
5014 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
5015 instead of isspace.
5016 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
5017 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
5018 instead of isxdigit and ISDIGIT instead of isdigit.
5019
5020 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5021
5022 * gdbtypes.h (struct type) <field>: New method.
5023 (TYPE_FIELDS): Remove, replace all uses with either type::fields
5024 or type::field.
5025
5026 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5027
5028 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
5029 (TYPE_FIELDS): Use type::fields. Change all call sites that
5030 modify the propery to use type::set_fields instead.
5031
5032 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5033
5034 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
5035 type::num_fields instead.
5036
5037 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5038
5039 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
5040 methods.
5041 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
5042 that modify the number of fields to use type::set_num_fields
5043 instead.
5044
5045 2020-05-22 Tom Tromey <tromey@adacore.com>
5046
5047 * compile/compile-object-load.h (munmap_list_free): Don't
5048 declare.
5049
5050 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
5051
5052 * annotate.c (annotate_source_line): Update return type, add call
5053 to update current symtab and line.
5054 * annotate.h (annotate_source_line): Update return type, and
5055 extend header comment.
5056 * source.c (info_line_command): Check annotation_level before
5057 calling annotate_source_line.
5058 * stack.c (print_frame_info): If calling annotate_source_line
5059 returns true, then don't print any other source line information.
5060
5061 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
5062
5063 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
5064
5065 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
5066
5067 * coffread.c (patch_type): Remove NULL check before xfree.
5068 * corefile.c (set_gnutarget): Likewise.
5069 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
5070 * exec.c (build_section_table): Likewise.
5071 * remote.c (remote_target::pass_signals): Likewise.
5072 * utils.c (n_spaces): Likewise.
5073 * cli/cli-script.c (document_command): Likewise.
5074 * i386-windows-tdep.c (core_process_module_section): Likewise.
5075 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
5076
5077 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
5078
5079 * symfile.c (reread_symbols): Clear objfile's section_offsets
5080 vector and section indices, re-compute them by calling
5081 sym_offsets.
5082
5083 2020-05-20 Tom Tromey <tromey@adacore.com>
5084
5085 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
5086 (desc_one_bound, desc_index_type): Compute field name.
5087
5088 2020-05-20 Tom de Vries <tdevries@suse.de>
5089
5090 PR symtab/25833
5091 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
5092
5093 2020-05-20 Alan Modra <amodra@gmail.com>
5094
5095 PR 25993
5096 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
5097 bfd_set_filename.
5098 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
5099 passed to bfd_set_filename.
5100 * symfile-mem.c (add_vsyscall_page): Likewise for string
5101 passed to symbol_file_add_from_memory.
5102 (symbol_file_add_from_memory): Make name param a const char* and
5103 don't strdup.
5104
5105 2020-05-20 Alan Modra <amodra@gmail.com>
5106
5107 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
5108 rather than accessing bfd->filename directly.
5109 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
5110 and use bfd_section_name.
5111 * dwarf2/frame.c (decode_frame_entry): Likewise.
5112 * exec.c (exec_set_section_address): Likewise.
5113 * solib-aix.c (solib_aix_bfd_open): Likewise.
5114 * stap-probe.c (get_stap_base_address): Likewise.
5115 * symfile.c (reread_symbols): Likewise.
5116
5117 2020-05-19 Tom Tromey <tromey@adacore.com>
5118
5119 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
5120
5121 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5122
5123 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
5124
5125 2020-05-19 Pedro Alves <palves@redhat.com>
5126
5127 * NEWS (set exec-file-mismatch): Adjust entry.
5128 * exec.c: Include "build-id.h".
5129 (validate_exec_file): Try to match build IDs instead of filenames.
5130 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
5131 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
5132 and pass down 'warn_if_slow'.
5133 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
5134 gdb_bfd_open_closure to pass it down.
5135 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
5136
5137 2020-05-19 Pedro Alves <palves@redhat.com>
5138
5139 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
5140 * target.c (target_fileio_open_1): Rename to target_fileio_open
5141 and make extern. Use bool.
5142 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
5143 (target_fileio_read_alloc_1): Adjust.
5144 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
5145 (target_fileio_open_warn_if_slow): Delete declaration.
5146
5147 2020-05-19 Pedro Alves <palves@redhat.com>
5148
5149 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
5150 Adjust all callers.
5151
5152 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
5153
5154 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
5155 whether disp is negative.
5156
5157 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5158
5159 * symfile.h (struct symfile_segment_data)
5160 <~symfile_segment_data>: Remove.
5161 <segment_info>: Change to std::vector.
5162 * symfile.c (default_symfile_segments): Update.
5163 * elfread.c (elf_symfile_segments): Update.
5164
5165 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5166
5167 * symfile.h (struct symfile_segment_data) <struct segment>: New.
5168 <segments>: New.
5169 <segment_bases, segment_sizes>: Remove.
5170 * symfile.c (default_symfile_segments): Update.
5171 * elfread.c (elf_symfile_segments): Update.
5172 * remote.c (remote_target::get_offsets): Update.
5173 * solib-target.c (solib_target_relocate_section_addresses):
5174 Update.
5175
5176 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5177
5178 * symfile.h (struct symfile_segment_data): Initialize fields.
5179 <~symfile_segment_data>: Add.
5180 (symfile_segment_data_up): New.
5181 (struct sym_fns) <sym_segments>: Return a
5182 symfile_segment_data_up.
5183 (default_symfile_segments): Return a symfile_segment_data_up.
5184 (free_symfile_segment_data): Remove.
5185 (get_symfile_segment_data): Return a symfile_segment_data_up.
5186 * symfile.c (default_symfile_segments): Likewise.
5187 (get_symfile_segment_data): Likewise.
5188 (free_symfile_segment_data): Remove.
5189 (symfile_find_segment_sections): Update.
5190 * elfread.c (elf_symfile_segments): Return a
5191 symfile_segment_data_up.
5192 * remote.c (remote_target::get_offsets): Update.
5193 * solib-target.c (solib_target_relocate_section_addresses):
5194 Update.
5195 * symfile-debug.c (debug_sym_segments): Return a
5196 symfile_segment_data_up.
5197
5198 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5199
5200 PR build/25981
5201 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
5202 Hardcode register numbers.
5203
5204 PR build/25981
5205 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
5206 procfs_find_LDT_entry): Remove.
5207 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
5208 procfs_find_LDT_entry): Remove.
5209 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
5210 Remove.
5211
5212 2020-05-17 Pedro Alves <palves@redhat.com>
5213 Andrew Burgess <andrew.burgess@embecosm.com>
5214 Keno Fischer <keno@juliacomputing.com>
5215
5216 PR gdb/25741
5217 * breakpoint.c (build_target_condition_list): Update comments.
5218 (build_target_command_list): Update comments and skip matching
5219 locations.
5220 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
5221 a separate function. Simplify "set breakpoint auto-hw off"
5222 handling.
5223 (insert_breakpoints): Update comment.
5224 (tracepoint_locations_match): New parameter. For breakpoints,
5225 compare location types too, if the caller wants to.
5226 (handle_automatic_hardware_breakpoints): New functions.
5227 (bp_location_is_less_than): Also sort by location type and
5228 hardware breakpoint length.
5229 (update_global_location_list): Handle "set breakpoint auto-hw on"
5230 here.
5231 (update_breakpoint_locations): Ask breakpoint_locations_match to
5232 ignore location types.
5233
5234 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5235
5236 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
5237 type::name instead.
5238
5239 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5240
5241 * gdbtypes.h (struct type) <name, set_name>: New methods.
5242 (TYPE_CODE): Use type::name. Change all call sites used to set
5243 the name to use type::set_name instead.
5244
5245 2020-05-16 Tom Tromey <tom@tromey.com>
5246
5247 * top.c (quit_force): Update.
5248 * infrun.c (handle_no_resumed): Update.
5249 * top.h (all_uis): New function.
5250 (ALL_UIS): Remove.
5251
5252 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5253
5254 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
5255
5256 2020-05-16 Pedro Alves <palves@redhat.com>
5257
5258 * ia64-linux-nat.c
5259 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
5260 Declare method.
5261 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
5262
5263 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
5264
5265 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
5266 (sparc64_adi_info): Likewise.
5267
5268 2020-05-15 Tom Tromey <tom@tromey.com>
5269
5270 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
5271 block_objfile.
5272 (lookup_objfile_from_block): Remove.
5273 (lookup_symbol_in_block, lookup_symbol_in_static_block)
5274 (lookup_global_symbol): Use block_objfile.
5275 * symtab.h (lookup_objfile_from_block): Don't declare.
5276 * printcmd.c (clear_dangling_display_expressions): Use
5277 block_objfile.
5278 * parse.c (operator_check_standard): Use block_objfile.
5279
5280 2020-05-15 Tom Tromey <tom@tromey.com>
5281
5282 * language.c (language_alloc_type_symbol): Set
5283 SYMBOL_SECTION.
5284 * symtab.c (initialize_objfile_symbol): Remove.
5285 (allocate_symbol): Remove.
5286 (allocate_template_symbol): Remove.
5287 * dwarf2/read.c (fixup_go_packaging): Use "new".
5288 (new_symbol): Use "new".
5289 (read_variable): Don't call initialize_objfile_symbol. Use
5290 "new".
5291 (read_func_scope): Use "new".
5292 * xcoffread.c (process_xcoff_symbol): Don't call
5293 initialize_objfile_symbol.
5294 (SYMBOL_DUP): Remove.
5295 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
5296 "new".
5297 * symtab.h (allocate_symbol, initialize_objfile_symbol)
5298 (allocate_template_symbol): Don't declare.
5299 (struct symbol): Add copy constructor. Change defaults.
5300 * jit.c (finalize_symtab): Use "new".
5301 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
5302 Use "new".
5303 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5304 (common_block_end): Use "new".
5305 * mdebugread.c (parse_symbol): Use "new".
5306 (new_symbol): Likewise.
5307
5308 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5309
5310 * NEWS: Mention changes to help and apropos.
5311
5312 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5313
5314 * command.h (enum command_class): Improve comments, document
5315 that class_alias is for user-defined aliases, give the class
5316 name for each class, remove unused class_xdb.
5317 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
5318 * breakpoint.c (_initialize_breakpoint): Replace class_alias
5319 by a precise class.
5320 * infcmd.c (_initialize_infcmd): Likewise.
5321 * reverse.c (_initialize_reverse): Likewise.
5322 * stack.c (_initialize_stack): Likewise.
5323 * symfile.c (_initialize_symfile): Likewise.
5324 * tracepoint.c (_initialize_tracepoint): Likewise.
5325
5326 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5327
5328 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
5329 when their aliased command is traversed.
5330 (help_cmd): Add fput_command_names_styled call to
5331 output command name and aliases when command has an alias.
5332
5333 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5334
5335 * cli/cli-decode.h (help_cmd_list): Remove declaration.
5336 * cli/cli-decode.c (help_cmd_list): Declare as static,
5337 remove prefix argument, use bool for recurse arg, rework to show the aliases of
5338 a command together with the command.
5339 (fput_command_name_styled, fput_command_names_styled): New functions.
5340 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
5341 fput_command_name_styled.
5342 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
5343 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
5344
5345 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5346
5347 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
5348 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
5349 * command.h (cmd_show_list): Likewise.
5350 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
5351 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
5352
5353 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5354
5355 * unittests/command-def-selftests.c (traverse_command_structure):
5356 Verify all commands of a list have the same prefix command and
5357 that only the top cmdlist commands have a null prefix.
5358
5359 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5360
5361 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
5362 as prefix, not one of its aliases.
5363 (set_cmd_prefix): Remove.
5364 (do_add_cmd): Centralize the setting of the prefix of a command, when
5365 command is defined after its full chain of prefix commands.
5366 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
5367 (add_setshow_cmd_full): Likewise.
5368 (update_prefix_field_of_prefixed_commands): New function.
5369 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
5370 update_prefix_field_of_prefixed_commands.
5371 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
5372 addresses of remote_set_cmdlist and remote_show_cmdlist given
5373 as argument, not the address of an argument.
5374 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5375 * gdb/remote.c (_initialize_remote): Likewise.
5376
5377 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5378
5379 * cli/cli-cmds.c (alias_command): Check for an existing alias
5380 using lookup_cmd_composition, as valid_command_p is too strict
5381 and forbids aliases that are the prefix of an existing alias
5382 or command.
5383 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5384 command is properly recognised as a valid command.
5385
5386 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5387
5388 * unittests/help-doc-selftests.c: Rename to
5389 unittests/command-def-selftests.c
5390 * unittests/command-def-selftests.c (help_doc_tests): Update some
5391 comments.
5392 (command_structure_tests, traverse_command_structure): New namespace
5393 and function.
5394 (command_structure_invariants_tests): New function.
5395 (_initialize_command_def_selftests) Renamed from
5396 _initialize_help_doc_selftests, register command_structure_invariants
5397 selftest.
5398
5399 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5400
5401 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5402 an alias of 'show'.
5403
5404 2020-05-15 Joel Brobecker <brobecker@adacore.com>
5405
5406 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5407 ada_is_fixed_point_type. Update all callers.
5408 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5409 all callers.
5410 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5411 Update all callers.
5412 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5413 print_fixed_point_type. Update all callers.
5414 * ada-valprint.c (ada_value_print_num): Replace call to
5415 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5416
5417 2020-05-14 Kevin Buettner <kevinb@redhat.com>
5418
5419 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5420 processors.
5421 (cpu_supports_bts): Add CV_AMD case.
5422
5423 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5424 Simon Marchi <simon.marchi@efficios.com>
5425
5426 * infrun.c (stop_all_threads): Collect multiple wait events at
5427 each pass.
5428
5429 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5430
5431 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5432 type::code instead.
5433
5434 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5435
5436 * gdbtypes.h (struct type) <code, set_code>: New methods.
5437 (TYPE_CODE): Use type::code. Change all call sites used to set
5438 the code to use type::set_code instead.
5439
5440 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5441 Tom de Vries <tdevries@suse.de>
5442 Pedro Alves <palves@redhat.com>
5443
5444 PR threads/25478
5445 * infrun.c (stop_all_threads): Do NOT ignore
5446 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5447 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5448 received.
5449 (handle_no_resumed): Remove code handling a live inferior with no
5450 threads.
5451 * remote.c (has_single_non_exited_thread): New.
5452 (remote_target::update_thread_list): Do not delete a thread if is
5453 the last thread of the process.
5454 * thread.c (thread_select): Call delete_exited_threads instead of
5455 prune_threads.
5456
5457 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5458
5459 * infrun.c (stop_all_threads): Enable/disable thread events of all
5460 targets. Move a debug message denoting the end of the function
5461 into the SCOPED_EXIT block.
5462
5463 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5464
5465 * process-stratum-target.h: Include <set>.
5466 (all_non_exited_process_targets, switch_to_target_no_thread): New
5467 function declarations.
5468 * process-stratum-target.c (all_non_exited_process_targets)
5469 (switch_to_target_no_thread): New function implementations.
5470
5471 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5472
5473 * infrun.c (handle_inferior_event): Extract out a piece of code
5474 into...
5475 (mark_non_executing_threads): ...this new function.
5476
5477 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5478
5479 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5480 use.
5481
5482 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5483
5484 * regcache.c (regcache_read_pc_protected): New function
5485 implementation that returns 0 if the PC cannot read via
5486 'regcache_read_pc'.
5487 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5488 instead of 'regcache_read_pc'.
5489 (keep_going_pass_signal): Ditto.
5490
5491 2020-05-13 Tom Tromey <tromey@adacore.com>
5492
5493 * ada-lang.c (align_value): Remove.
5494 (ada_template_to_fixed_record_type_1): Use align_up.
5495
5496 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5497
5498 * async-event.c: Update the copyright year.
5499 * async-event.h: Update the copyright year.
5500
5501 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
5502
5503 * objfiles.h (is_addr_in_objfile,
5504 shared_objfile_contains_address_p): Return bool.
5505 * objfile.c (is_addr_in_objfile,
5506 shared_objfile_contains_address_p): Return bool.
5507
5508 2020-05-11 Tom Tromey <tromey@adacore.com>
5509
5510 * cli/cli-cmds.c (info_command): Restore.
5511 (_initialize_cli_cmds): Use add_prefix_command for "info".
5512 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5513
5514 2020-05-11 Tom Tromey <tromey@adacore.com>
5515
5516 * ada-lang.c (ada_value_primitive_field): Now public.
5517 * ada-lang.h (ada_value_primitive_field): Declare.
5518 * ada-valprint.c (print_field_values): Use
5519 ada_value_primitive_field for wrapper fields.
5520
5521 2020-05-11 Tom de Vries <tdevries@suse.de>
5522
5523 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5524 MODULE_DOMAIN.
5525
5526 2020-05-11 Tom de Vries <tdevries@suse.de>
5527
5528 PR symtab/25941
5529 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5530 with length 0, if not gdb-produced.
5531 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5532
5533 2020-05-09 Tom de Vries <tdevries@suse.de>
5534
5535 PR gdb/25955
5536 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5537 calculation.
5538
5539 2020-05-09 Tom Tromey <tom@tromey.com>
5540
5541 * top.c (server_command): Now bool.
5542 * top.h (server_command): Now bool.
5543
5544 2020-05-08 Tom Tromey <tromey@adacore.com>
5545
5546 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5547 already being processed.
5548
5549 2020-05-08 Tom Tromey <tom@tromey.com>
5550
5551 * printcmd.c (struct display) <next>: Remove.
5552 <display>: New constructor.
5553 <exp_string>: Now a std::string.
5554 <enabled_p>: Now a bool.
5555 (display_number): Move definition earlier.
5556 (displays): Rename from display_chain. Now a std::vector.
5557 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5558 (display_command): Update.
5559 (do_one_display, disable_display)
5560 (enable_disable_display_command, do_enable_disable_display):
5561 Update.
5562 (free_display): Remove.
5563 (clear_displays): Rewrite.
5564 (delete_display): Update.
5565 (map_display_numbers): Use function_view. Remove "data"
5566 parameter. Update.
5567 (do_delete_display): Remove.
5568 (undisplay_command): Update.
5569 (do_one_display, do_displays, disable_display)
5570 (info_display_command): Update.
5571 (do_enable_disable_display): Remove.
5572 (enable_disable_display_command)
5573 (clear_dangling_display_expressions): Update.
5574
5575 2020-05-08 Tom Tromey <tom@tromey.com>
5576
5577 * symtab.c (set_symbol_cache_size)
5578 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5579 (maintenance_print_symbol_cache_statistics): Update.
5580 * symmisc.c (print_symbol_bcache_statistics)
5581 (print_objfile_statistics, maintenance_print_objfiles)
5582 (maintenance_info_symtabs, maintenance_check_symtabs)
5583 (maintenance_expand_symtabs, maintenance_info_line_tables):
5584 Update.
5585 * symfile-debug.c (set_debug_symfile): Update.
5586 * source.c (forget_cached_source_info): Update.
5587 * python/python.c (gdbpy_progspaces): Update.
5588 * psymtab.c (maintenance_info_psymtabs): Update.
5589 * probe.c (parse_probes): Update.
5590 * linespec.c (iterate_over_all_matching_symtabs)
5591 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5592 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5593 * exec.c (exec_target::close): Update.
5594 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5595 * breakpoint.c (print_one_breakpoint_location)
5596 (create_longjmp_master_breakpoint)
5597 (create_std_terminate_master_breakpoint): Update.
5598 * progspace.c (program_spaces): Now a std::vector.
5599 (maybe_new_address_space): Update.
5600 (add_program_space): Remove.
5601 (program_space::program_space): Update.
5602 (remove_program_space): Update.
5603 (number_of_program_spaces): Remove.
5604 (print_program_space, update_address_spaces): Update.
5605 * progspace.h (program_spaces): Change type.
5606 (ALL_PSPACES): Remove.
5607 (number_of_program_spaces): Don't declare.
5608 (struct program_space) <next>: Remove.
5609
5610 2020-05-08 Tom Tromey <tom@tromey.com>
5611
5612 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5613 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5614 (enable_break): Update.
5615 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5616 (frv_fdpic_find_canonical_descriptor): Update.
5617 (frv_fetch_objfile_link_map): Update.
5618 * progspace.c (program_space::free_all_objfiles): Update.
5619 (program_space::solibs): New method.
5620 * progspace.h (struct program_space) <solibs>: New method.
5621 * solist.h (master_so_list): Don't declare.
5622 (ALL_SO_LIBS): Remove.
5623 * solib.h (so_list_head): Remove.
5624 (update_solib_list): Update comment.
5625 * solib.c (master_so_list): Remove.
5626 (solib_used, update_solib_list, solib_add)
5627 (info_sharedlibrary_command, clear_solib)
5628 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5629
5630 2020-05-08 Tom Tromey <tom@tromey.com>
5631
5632 * extension.c (extension_languages): Now a std::array.
5633 (ALL_EXTENSION_LANGUAGES): Remove.
5634 (get_ext_lang_defn, get_ext_lang_of_file)
5635 (eval_ext_lang_from_control_command): Update.
5636 (finish_ext_lang_initialization)
5637 (auto_load_ext_lang_scripts_for_objfile)
5638 (ext_lang_type_printers::ext_lang_type_printers)
5639 (apply_ext_lang_type_printers)
5640 (ext_lang_type_printers::~ext_lang_type_printers)
5641 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5642 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5643 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5644 (get_matching_xmethod_workers, ext_lang_colorize)
5645 (ext_lang_before_prompt): Update.
5646 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5647
5648 2020-05-08 Tom Tromey <tom@tromey.com>
5649
5650 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5651 overload.
5652 <swap_string, m_string>: Remove.
5653 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5654 Update.
5655 * stabsread.c (define_symbol, read_type): Update.
5656 * linespec.c (find_linespec_symbols): Update.
5657 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5658 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5659 * dbxread.c (read_dbx_symtab): Update.
5660 * cp-support.h (cp_canonicalize_string_full)
5661 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5662 Return unique_xmalloc_ptr.
5663 * cp-support.c (inspect_type): Update.
5664 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5665 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5666 Likewise.
5667 * c-typeprint.c (print_name_maybe_canonical): Update.
5668 * break-catch-throw.c (check_status_exception_catchpoint):
5669 Update.
5670
5671 2020-05-08 Tom de Vries <tdevries@suse.de>
5672
5673 * infrun.c (follow_fork): Copy current_line and current_symtab to
5674 child thread.
5675
5676 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5677
5678 * async-event.c (struct async_signal_handler, struct
5679 async_event_handler): Reformat, remove typedef.
5680
5681 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5682
5683 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5684 access thistype->main_type->dyn_prop_list directly.
5685
5686 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5687
5688 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5689 (remove_dyn_prop): Remove. Update all users to use
5690 type::remove_dyn_prop.
5691 * gdbtypes.c (remove_dyn_prop): Rename to...
5692 (type::remove_dyn_prop): ... this.
5693
5694 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5695
5696 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5697 (add_dyn_prop): Remove. Update all users to use
5698 type::add_dyn_prop.
5699 * gdbtypes.c (add_dyn_prop): Rename to...
5700 (type::add_dyn_prop): ... this.
5701
5702 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5703
5704 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5705 (get_dyn_prop): Remove. Update all users to use
5706 type::dyn_prop.
5707 * gdbtypes.c (get_dyn_prop): Rename to...
5708 (type::dyn_prop): ... this.
5709
5710 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5711
5712 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5713
5714 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5715
5716 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5717 instruction, skip it if it's there.
5718
5719 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
5720
5721 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5722
5723 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
5724
5725 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5726 * gdbtypes.c (recursive_dump_type): Remove use of
5727 TYPE_INCOMPLETE.
5728
5729 2020-05-03 Tom Tromey <tom@tromey.com>
5730
5731 * breakpoint.c (catch_command, tcatch_command): Remove.
5732 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5733 add_show_prefix_cmd.
5734 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5735 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5736 Remove.
5737 (add_internal_problem_command): Use add_basic_prefix_cmd,
5738 add_show_prefix_cmd.
5739 * mips-tdep.c (set_mipsfpu_command): Remove.
5740 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5741 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5742 (_initialize_index_cache): Use add_basic_prefix_cmd.
5743 * memattr.c (dummy_cmd): Remove.
5744 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5745 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5746 (_initialize_tui_win): Use add_basic_prefix_cmd,
5747 add_show_prefix_cmd.
5748 * cli/cli-logging.c (set_logging_command): Remove.
5749 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5750 add_show_prefix_cmd.
5751 (show_logging_command): Remove.
5752 * target.c (target_command): Remove.
5753 (add_target): Use add_basic_prefix_cmd.
5754
5755 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
5756
5757 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5758
5759 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5760
5761 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5762 info_command.
5763
5764 2020-04-30 Kamil Rytarowski <n54@gmx.com>
5765
5766 * nbsd-nat.c (nbsd_enable_proc_events)
5767 (nbsd_nat_target::post_startup_inferior): Add.
5768 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5769 (nbsd_nat_target::update_thread_list): Rewrite.
5770 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5771 "PTRACE_LWP_CREATE".
5772 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5773
5774 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5775
5776 * stack.c (_initialize_stack): Remove duplicated creation
5777 of "frame" command and "f" alias.
5778
5779 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5780
5781 PR gdb/18706
5782 * gdbtypes.c (check_typedef): Calculate size of array of
5783 stubbed type.
5784
5785 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5786
5787 PR gdb/15559
5788 * i386-tdep.c (i386_push_dummy_call): Call
5789 i386_thiscall_push_dummy_call.
5790 (i386_thiscall_push_dummy_call): New function.
5791 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5792 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5793 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5794
5795 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5796
5797 * gdbarch.sh (do_read): Add shellcheck disable directive for
5798 warning SC2162.
5799
5800 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5801
5802 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5803 "referenced but not assigned" warning.
5804
5805 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5806
5807 * gdbarch.sh: Remove code that sets fallbackdefault.
5808
5809 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5810
5811 * gdbarch.sh: Use shell operators && and || instead of
5812 -a and -o.
5813
5814 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5815
5816 * gdbarch.sh: Use $(...) instead of `...`.
5817
5818 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5819
5820 * gdbarch.sh: Use double quotes around variables.
5821
5822 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5823
5824 * gdbarch.sh: Use %s with printf, instead of variables in the
5825 format string.
5826
5827 2020-04-29 Tom Tromey <tromey@adacore.com>
5828
5829 PR ada/25875:
5830 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5831 type fields here.
5832 (read_enumeration_type): Call
5833 update_enumeration_type_from_children later. Update comments.
5834 (process_enumeration_scope): Don't create type fields.
5835
5836 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5837
5838 * nbsd-tdep.c: Include "xml-syscall.h".
5839 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5840
5841 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5842
5843 * nbsd-nat.c: Include "sys/wait.h".
5844 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5845 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5846 (nbsd_nat_target::remove_exec_catchpoint)
5847 (nbsd_nat_target::set_syscall_catchpoint): Add.
5848 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5849 (nbsd_nat_target::insert_exec_catchpoint)
5850 (nbsd_nat_target::remove_exec_catchpoint)
5851 (nbsd_nat_target::set_syscall_catchpoint): Add.
5852 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5853 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5854 `nbsd_get_syscall_number'.
5855
5856 2020-04-29 Tom Tromey <tom@tromey.com>
5857
5858 * stack.c (print_block_frame_labels): Remove.
5859
5860 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
5861
5862 PR gdb/17320
5863 * ada-valprint.c (val_print_packed_array_elements): Move array
5864 end bracket to new line.
5865 (ada_val_print_string): Remove extra spaces before first array
5866 element.
5867 * c-valprint.c (c_value_print_array): Likewise.
5868 * m2-valprint.c (m2_print_array_contents): Likewise.
5869 (m2_value_print_inner): Likewise.
5870 * p-valprint.c (pascal_value_print_inner): Likewise.
5871 * valprint.c (generic_val_print_array): Likewise.
5872 (value_print_array_elements): Move first array element and array
5873 end bracket to new line.
5874
5875 2020-04-29 Tom de Vries <tdevries@suse.de>
5876
5877 PR symtab/25889
5878 * linespec.c (find_method): Fix ix calculation.
5879
5880 2020-04-28 Kamil Rytarowski <n54@gmx.com>
5881
5882 * syscalls/update-netbsd.sh: New file.
5883 * syscalls/netbsd.xml: Regenerate.
5884 * data-directory/Makefile.in: Register `netbsd.xml' in
5885 `SYSCALLS_FILES'.
5886
5887 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5888
5889 * syscalls/update-freebsd.sh: Add double quotes.
5890
5891 2020-04-28 Tom Tromey <tom@tromey.com>
5892
5893 * NEWS: Update.
5894 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5895 (cmdpy_init): Allow class_tui.
5896
5897 2020-04-28 Mark Williams <mark@myosotissp.com>
5898
5899 PR gdb/24480
5900 * dwarf2read.c: Add missing assingments to list_in_scope when
5901 start_symtab was already called.
5902
5903 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5904
5905 PR gdb/25881
5906 * dwarf2/read.c (offset_map_type): Use
5907 gdb:hash_enum<sect_offset> as hash function.
5908
5909 2020-04-28 Tom de Vries <tdevries@suse.de>
5910
5911 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5912 with DW_AT_signature.
5913
5914 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
5915
5916 * configure.ac: Remove check for fs_base/gs_base in
5917 user_regs_struct.
5918 * configure: Re-generate.
5919 * config.in: Re-generate.
5920 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5921 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5922 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5923
5924 2020-04-27 Luis Machado <luis.machado@linaro.org>
5925
5926 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5927 problematic inline frame unwinding situation.
5928 * frame.c (frame_id_computed_p): New function.
5929 * frame.h (frame_id_computed_p): New prototype.
5930
5931 2020-04-26 Tom Tromey <tom@tromey.com>
5932
5933 * command.h (enum command_class) <class_pseudo>: Remove.
5934
5935 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5936
5937 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5938 and whitespace.
5939
5940 2020-04-25 Kamil Rytarowski <n54@gmx.com>
5941
5942 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5943 `PT_GET_PROCESS_STATE' block.
5944
5945 2020-04-24 Tom Tromey <tom@tromey.com>
5946
5947 * symtab.h (symbol_get_demangled_name): Don't declare.
5948 * symtab.c (symbol_get_demangled_name): Remove.
5949 (general_symbol_info::natural_name)
5950 (general_symbol_info::demangled_name): Update.
5951
5952 2020-04-24 Tom Tromey <tom@tromey.com>
5953
5954 PR rust/25025:
5955 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5956
5957 2020-04-24 Tom Tromey <tom@tromey.com>
5958
5959 PR symtab/12707:
5960 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5961 exists.
5962 (new_symbol): Likewise.
5963 * compile/compile-object-load.c (get_out_value_type): Use
5964 symbol_matches_search_name.
5965
5966 2020-04-24 Tom Tromey <tom@tromey.com>
5967
5968 * dwarf2/read.c (add_partial_symbol): Do not call
5969 compute_and_set_names.
5970
5971 2020-04-24 Tom Tromey <tom@tromey.com>
5972
5973 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5974 overload.
5975
5976 2020-04-24 Tom Tromey <tom@tromey.com>
5977
5978 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5979 (add_psymbol_to_list): New overload. Make old overload call new
5980 one.
5981 * psympriv.h (add_psymbol_to_list): New overload.
5982
5983 2020-04-24 Tom Tromey <tom@tromey.com>
5984
5985 * dwarf2/read.c (partial_die_info::read) <case
5986 DW_AT_linkage_name>: Use value_as_string.
5987 (dwarf2_string_attr): Use value_as_string.
5988 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5989 method.
5990 * dwarf2/attribute.c (attribute::value_as_string): New method.
5991
5992 2020-04-24 Tom Tromey <tom@tromey.com>
5993
5994 * symtab.c (general_symbol_info::natural_name)
5995 (general_symbol_info::demangled_name): Check for language_rust.
5996
5997 2020-04-24 Tom Tromey <tom@tromey.com>
5998
5999 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
6000 (dwarf2_physname): ... from here.
6001 (partial_die_info::read): Add Rust "{" hack.
6002
6003 2020-04-24 Tom Tromey <tom@tromey.com>
6004
6005 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
6006 method.
6007 (symbol_set_demangled_name): Don't declare.
6008 * symtab.c (general_symbol_info::set_demangled_name): Rename from
6009 symbol_set_demangled_name.
6010 (general_symbol_info::set_language)
6011 (general_symbol_info::compute_and_set_names): Update.
6012 * minsyms.c (minimal_symbol_reader::install): Update.
6013 * dwarf2/read.c (new_symbol): Update.
6014
6015 2020-04-24 Tom Tromey <tromey@adacore.com>
6016
6017 PR python/23662:
6018 * python/py-type.c (convert_field): Handle
6019 FIELD_LOC_KIND_DWARF_BLOCK.
6020 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
6021 (typy_get_dynamic): Nw function.
6022 (type_object_getset): Add "dynamic".
6023 * NEWS: Add entry.
6024
6025 2020-04-24 Tom Tromey <tromey@adacore.com>
6026
6027 * ada-typeprint.c (print_choices, print_variant_part)
6028 (print_record_field_types_dynamic): New functions.
6029 (print_record_field_types): Use print_record_field_types_dynamic.
6030
6031 2020-04-24 Tom Tromey <tromey@adacore.com>
6032
6033 * dwarf2/read.c (handle_data_member_location): New overload.
6034 (dwarf2_add_field): Use it.
6035 (decode_locdesc): Add "computed" parameter. Update comment.
6036 * gdbtypes.c (is_dynamic_type_internal): Also look for
6037 FIELD_LOC_KIND_DWARF_BLOCK.
6038 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
6039 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
6040 virtual base classes.
6041 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
6042 FIELD_LOC_KIND_DWARF_BLOCK.
6043
6044 2020-04-24 Tom Tromey <tromey@adacore.com>
6045
6046 * dwarf2/read.c (read_structure_type): Handle dynamic length.
6047 * gdbtypes.c (is_dynamic_type_internal): Check
6048 TYPE_HAS_DYNAMIC_LENGTH.
6049 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
6050 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
6051 New macros.
6052 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
6053 constant.
6054
6055 2020-04-24 Tom Tromey <tromey@adacore.com>
6056
6057 * dwarf2/read.c (struct variant_field): Rewrite.
6058 (struct variant_part_builder): New.
6059 (struct nextfield): Remove "variant" field. Add "offset".
6060 (struct field_info): Add "current_variant_part" and
6061 "variant_parts".
6062 (alloc_discriminant_info): Remove.
6063 (alloc_rust_variant): New function.
6064 (quirk_rust_enum): Update.
6065 (dwarf2_add_field): Set "offset" member. Don't handle
6066 DW_TAG_variant_part.
6067 (offset_map_type): New typedef.
6068 (convert_variant_range, create_one_variant)
6069 (create_one_variant_part, create_variant_parts)
6070 (add_variant_property): New functions.
6071 (dwarf2_attach_fields_to_type): Call add_variant_property.
6072 (read_structure_type): Don't handle DW_TAG_variant_part.
6073 (handle_variant_part, handle_variant): New functions.
6074 (handle_struct_member_die): Use them.
6075 (process_structure_scope): Don't handle variant parts.
6076 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
6077 (struct discriminant_info): Remove.
6078 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
6079 (struct main_type) <flag_discriminated_union>: Remove.
6080 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
6081 (rust_enum_variant): Return int. Remove "contents". Rewrite.
6082 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
6083 Update.
6084 * valops.c (value_union_variant): Remove.
6085 * value.h (value_union_variant): Don't declare.
6086
6087 2020-04-24 Tom Tromey <tromey@adacore.com>
6088
6089 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
6090 (ada_value_primitive_packed_val): Update.
6091 * ada-valprint.c (ada_value_print_1): Update.
6092 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
6093 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
6094 just an address. Use evaluate_for_locexpr_baton.
6095 (dwarf2_evaluate_property): Update.
6096 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
6097 array_view.
6098 * findvar.c (default_read_var_value): Update.
6099 * gdbtypes.c (compute_variant_fields_inner)
6100 (resolve_dynamic_type_internal): Update.
6101 (resolve_dynamic_type): Change type of valaddr parameter.
6102 * gdbtypes.h (resolve_dynamic_type): Update.
6103 * valarith.c (value_subscripted_rvalue): Update.
6104 * value.c (value_from_contents_and_address): Update.
6105
6106 2020-04-24 Tom Tromey <tromey@adacore.com>
6107
6108 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
6109 "push_initial_value" parameter.
6110 (dwarf2_evaluate_property): Likewise.
6111 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
6112
6113 2020-04-24 Tom Tromey <tromey@adacore.com>
6114
6115 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
6116 (variant::matches, compute_variant_fields_recurse)
6117 (compute_variant_fields_inner, compute_variant_fields): New
6118 functions.
6119 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
6120 Use resolved_type after type is made.
6121 (operator==): Add new cases.
6122 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
6123 (struct discriminant_range, struct variant, struct variant_part):
6124 New.
6125 (union dynamic_prop_data) <variant_parts, original_type>: New
6126 members.
6127 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
6128 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
6129 constants.
6130 * value.c (unpack_bits_as_long): Now public.
6131 * value.h (unpack_bits_as_long): Declare.
6132
6133 2020-04-24 Tom Tromey <tromey@adacore.com>
6134
6135 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
6136 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
6137
6138 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
6139
6140 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
6141
6142 2020-04-24 Kamil Rytarowski <n54@gmx.com>
6143
6144 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
6145 (remove_fork_catchpoint, post_startup_inferior)
6146 (post_attach): Move...
6147 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
6148 (remove_fork_catchpoint, post_startup_inferior)
6149 (post_attach): ...here.
6150 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
6151 (remove_fork_catchpoint, post_startup_inferior)
6152 (post_attach): Move...
6153 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
6154 (remove_fork_catchpoint, post_startup_inferior)
6155 (post_attach): ...here.
6156
6157 2020-04-24 Tom Tromey <tromey@adacore.com>
6158
6159 * nat/windows-nat.h (struct windows_thread_info)
6160 <pc_adjusted>: New member.
6161 * windows-nat.c (windows_fetch_one_register): Check
6162 pc_adjusted.
6163 (windows_nat_target::get_windows_debug_event)
6164 (windows_nat_target::wait): Set pc_adjusted.
6165
6166 2020-04-24 Tom de Vries <tdevries@suse.de>
6167
6168 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
6169 Run gdb-add-index inside temp dir.
6170
6171 2020-04-23 Tom Tromey <tromey@adacore.com>
6172
6173 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
6174 in loop.
6175
6176 2020-04-23 Luis Machado <luis.machado@linaro.org>
6177
6178 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
6179 get_frame_register instead of gdbarch_unwind_pc.
6180
6181 2020-04-23 Tom de Vries <tdevries@suse.de>
6182
6183 * symtab.c (lookup_global_symbol): Prefer def over decl.
6184
6185 2020-04-23 Tom de Vries <tdevries@suse.de>
6186
6187 PR symtab/25807
6188 * block.c (best_symbol, better_symbol): Promote to external.
6189 * block.h (best_symbol, better_symbol): Declare.
6190 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
6191 decl.
6192
6193 2020-04-23 Tom Tromey <tromey@adacore.com>
6194
6195 PR ada/25837:
6196 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
6197 "const char *", not a "const std::string &".
6198 <name_and_matcher::operator==>: Update.
6199 * unittests/lookup_name_info-selftests.c: Change type of
6200 "result".
6201
6202 2020-04-23 Tom Tromey <tom@tromey.com>
6203
6204 * inferior.h (iterate_over_inferiors): Don't declare.
6205 * inferior.c (iterate_over_inferiors): Remove.
6206 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
6207 Remove.
6208 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
6209 use iterate_over_inferiors.
6210 (darwin_resume_inferior_it)
6211 (struct resume_inferior_threads_param)
6212 (darwin_resume_inferior_threads_it): Remove.
6213 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
6214
6215 2020-04-23 Tom de Vries <tdevries@suse.de>
6216
6217 * blockframe.c (find_pc_partial_function): Use
6218 find_pc_sect_compunit_symtab rather than
6219 objfile->sf->qf->find_pc_sect_compunit_symtab.
6220
6221 2020-04-22 Tom de Vries <tdevries@suse.de>
6222
6223 PR symtab/25764
6224 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
6225 in psymtabs.
6226
6227 2020-04-22 Tom de Vries <tdevries@suse.de>
6228
6229 PR symtab/25801
6230 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
6231 symtabs.
6232
6233 2020-04-22 Tom de Vries <tdevries@suse.de>
6234
6235 PR symtab/25700
6236 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
6237 CU if already created.
6238
6239 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6240
6241 * infrun.c (displaced_step_fixup): Switch to the event_thread
6242 before calling displaced_step_restore, not after.
6243
6244 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6245
6246 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
6247 its inferior is not recorded by us.
6248 (record_btrace_target_open): Replace call to
6249 all_non_exited_threads () with call to current_inferior
6250 ()->non_exited_threads ().
6251 (record_btrace_target::stop_recording): Likewise.
6252 (record_btrace_target::close): Likewise.
6253 (record_btrace_target::wait): Likewise.
6254 (record_btrace_target::record_stop_replaying): Likewise.
6255
6256 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6257
6258 * btrace.c (btrace_enable): Throw an error on double enables and
6259 when enabling recording fails.
6260 (btrace_disable): Throw an error if the thread is not recorded.
6261
6262 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6263
6264 * record-btrace.c (record_btrace_target::fetch_registers): Forward
6265 request if we do not have a thread_info.
6266
6267 2020-04-21 Tom de Vries <tdevries@suse.de>
6268
6269 PR gdb/25471
6270 * thread.c
6271 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
6272 exception in get_frame_id.
6273
6274 2020-04-20 Tom Tromey <tromey@adacore.com>
6275
6276 * python/python.c (struct gdbpy_event): Mark move constructor as
6277 noexcept.
6278 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
6279 constructor as noexcept.
6280 * completer.h (struct completion_result): Mark move constructor as
6281 noexcept.
6282 * completer.c (completion_result::completion_result): Use
6283 initialization style. Don't call reset_match_list.
6284
6285 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
6286
6287 * MAINTAINERS (Write After Approval): Add myself.
6288
6289 2020-04-18 Tom Tromey <tom@tromey.com>
6290
6291 * windows-tdep.c (init_w32_command_list)
6292 (w32_prefix_command_valid): Restore.
6293 (_initialize_windows_tdep): Call init_w32_command_list.
6294
6295 2020-04-18 Tom Tromey <tom@tromey.com>
6296
6297 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
6298 * value.c (value_fn_field): Update.
6299 * valops.c (find_function_in_inferior)
6300 (value_allocate_space_in_inferior): Update.
6301 * tui/tui-winsource.c (tui_update_source_windows_with_line):
6302 Update.
6303 * tui/tui-source.c (tui_source_window::set_contents): Update.
6304 * symtab.c (lookup_global_or_static_symbol)
6305 (find_function_start_sal_1, skip_prologue_sal)
6306 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
6307 * symmisc.c (dump_msymbols, dump_symtab_1)
6308 (maintenance_print_one_line_table): Update.
6309 * symfile.c (init_entry_point_info, section_is_mapped)
6310 (list_overlays_command, simple_read_overlay_table)
6311 (simple_overlay_update_1): Update.
6312 * stap-probe.c (handle_stap_probe): Update.
6313 * stabsread.c (dbx_init_float_type, define_symbol)
6314 (read_one_struct_field, read_enum_type, read_range_type): Update.
6315 * source.c (info_line_command): Update.
6316 * python/python.c (gdbpy_source_objfile_script)
6317 (gdbpy_execute_objfile_script): Update.
6318 * python/py-type.c (save_objfile_types): Update.
6319 * python/py-objfile.c (py_free_objfile): Update.
6320 * python/py-inferior.c (python_new_objfile): Update.
6321 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
6322 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
6323 (maintenance_check_psymtabs): Update.
6324 * printcmd.c (info_address_command): Update.
6325 * objfiles.h (struct objfile) <arch>: New method, from
6326 get_objfile_arch.
6327 (get_objfile_arch): Don't declare.
6328 * objfiles.c (get_objfile_arch): Remove.
6329 (filter_overlapping_sections): Update.
6330 * minsyms.c (msymbol_is_function): Update.
6331 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
6332 (output_nondebug_symbol): Update.
6333 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
6334 (mdebug_expand_psymtab): Update.
6335 * machoread.c (macho_add_oso_symfile): Update.
6336 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
6337 Update.
6338 * linux-fork.c (checkpoint_command): Update.
6339 * linespec.c (convert_linespec_to_sals): Update.
6340 * jit.c (finalize_symtab): Update.
6341 * infrun.c (insert_exception_resume_from_probe): Update.
6342 * ia64-tdep.c (ia64_find_unwind_table): Update.
6343 * hppa-tdep.c (internalize_unwinds): Update.
6344 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
6345 Update.
6346 * gcore.c (call_target_sbrk): Update.
6347 * elfread.c (record_minimal_symbol, elf_symtab_read)
6348 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
6349 (elf_gnu_ifunc_resolve_by_got): Update.
6350 * dwarf2/read.c (create_addrmap_from_index)
6351 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6352 (read_debug_names_from_section)
6353 (process_psymtab_comp_unit_reader, add_partial_symbol)
6354 (add_partial_subprogram, process_full_comp_unit)
6355 (read_file_scope, read_func_scope, read_lexical_block_scope)
6356 (read_call_site_scope, dwarf2_ranges_read)
6357 (dwarf2_record_block_ranges, dwarf2_add_field)
6358 (mark_common_block_symbol_computed, read_tag_pointer_type)
6359 (read_tag_string_type, dwarf2_init_float_type)
6360 (dwarf2_init_complex_target_type, read_base_type)
6361 (partial_die_info::read, partial_die_info::read)
6362 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
6363 (dwarf2_fetch_die_loc_sect_off): Update.
6364 * dwarf2/loc.c (dwarf2_find_location_expression)
6365 (class dwarf_evaluate_loc_desc, rw_pieced_value)
6366 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
6367 (dwarf2_loc_desc_get_symbol_read_needs)
6368 (locexpr_describe_location_piece, locexpr_describe_location_1)
6369 (loclist_describe_location): Update.
6370 * dwarf2/index-write.c (write_debug_names): Update.
6371 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
6372 * dtrace-probe.c (dtrace_process_dof): Update.
6373 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6374 (process_one_symbol): Update.
6375 * ctfread.c (ctf_init_float_type, read_base_type): Update.
6376 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6377 (coff_read_enum_type): Update.
6378 * cli/cli-cmds.c (edit_command, list_command): Update.
6379 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6380 * breakpoint.c (create_overlay_event_breakpoint)
6381 (create_longjmp_master_breakpoint)
6382 (create_std_terminate_master_breakpoint)
6383 (create_exception_master_breakpoint, get_sal_arch): Update.
6384 * block.c (block_gdbarch): Update.
6385 * annotate.c (annotate_source_line): Update.
6386
6387 2020-04-17 Tom Tromey <tromey@adacore.com>
6388
6389 * auto-load.c (show_auto_load_cmd): Remove.
6390 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6391 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6392 (maintenance_print_arc_command): Remove.
6393 * tui/tui-win.c (tui_command): Remove.
6394 (tui_get_cmd_list): Use add_basic_prefix_cmd.
6395 * tui/tui-layout.c (tui_layout_command): Remove.
6396 (_initialize_tui_layout): Use add_basic_prefix_cmd.
6397 * python/python.c (user_set_python, user_show_python): Remove.
6398 (_initialize_python): Use add_basic_prefix_cmd,
6399 add_show_prefix_cmd.
6400 * guile/guile.c (set_guile_command, show_guile_command): Remove.
6401 (install_gdb_commands): Use add_basic_prefix_cmd,
6402 add_show_prefix_cmd.
6403 (info_guile_command): Remove.
6404 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6405 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6406 add_show_prefix_cmd.
6407 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6408 Remove do_set and do_show parameters.
6409 * cli/cli-style.c (set_style, show_style): Remove.
6410 (_initialize_cli_style): Use add_basic_prefix_cmd,
6411 add_show_prefix_cmd.
6412 (cli_style_option::add_setshow_commands): Remove do_set and
6413 do_show parameters.
6414 (cli_style_option::add_setshow_commands): Use
6415 add_basic_prefix_cmd, add_show_prefix_cmd.
6416 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6417 (set_style_name): Remove.
6418 * cli/cli-dump.c (dump_command, append_command): Remove.
6419 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6420 (tekhex_dump_command, binary_dump_command)
6421 (binary_append_command): Remove.
6422 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6423 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6424 (init_w32_command_list): Remove; move into ...
6425 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6426 * valprint.c (set_print, show_print, set_print_raw)
6427 (show_print_raw): Remove.
6428 (_initialize_valprint): Use add_basic_prefix_cmd,
6429 add_show_prefix_cmd.
6430 * typeprint.c (set_print_type, show_print_type): Remove.
6431 (_initialize_typeprint): Use add_basic_prefix_cmd,
6432 add_show_prefix_cmd.
6433 * record.c (set_record_command, show_record_command): Remove.
6434 (_initialize_record): Use add_basic_prefix_cmd,
6435 add_show_prefix_cmd.
6436 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6437 add_show_prefix_cmd.
6438 (info_command, show_command, set_debug, show_debug): Remove.
6439 * top.h (set_history, show_history): Don't declare.
6440 * top.c (set_history, show_history): Remove.
6441 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6442 (unset_tdesc_cmd): Remove.
6443 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6444 add_show_prefix_cmd.
6445 * symtab.c (info_module_command): Remove.
6446 (_initialize_symtab): Use add_basic_prefix_cmd.
6447 * symfile.c (overlay_command): Remove.
6448 (_initialize_symfile): Use add_basic_prefix_cmd.
6449 * sparc64-tdep.c (info_adi_command): Remove.
6450 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6451 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6452 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6453 add_show_prefix_cmd.
6454 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6455 (_initialize_serial): Use add_basic_prefix_cmd,
6456 add_show_prefix_cmd.
6457 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6458 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6459 add_show_prefix_cmd.
6460 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6461 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6462 add_show_prefix_cmd.
6463 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6464 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6465 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6466 add_show_prefix_cmd.
6467 * remote.c (remote_command, set_remote_cmd): Remove.
6468 (_initialize_remote): Use add_basic_prefix_cmd.
6469 * record-full.c (set_record_full_command)
6470 (show_record_full_command): Remove.
6471 (_initialize_record_full): Use add_basic_prefix_cmd,
6472 add_show_prefix_cmd.
6473 * record-btrace.c (cmd_set_record_btrace)
6474 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6475 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6476 (cmd_show_record_btrace_pt): Remove.
6477 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6478 add_show_prefix_cmd.
6479 * ravenscar-thread.c (set_ravenscar_command)
6480 (show_ravenscar_command): Remove.
6481 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6482 add_show_prefix_cmd.
6483 * mips-tdep.c (show_mips_command, set_mips_command)
6484 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6485 add_show_prefix_cmd.
6486 * maint.c (maintenance_command, maintenance_info_command)
6487 (maintenance_check_command, maintenance_print_command)
6488 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6489 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6490 add_show_prefix_cmd.
6491 (show_per_command_cmd): Remove.
6492 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6493 Remove.
6494 (maintenance_show_test_settings_cmd): Remove.
6495 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6496 add_show_prefix_cmd.
6497 * maint-test-options.c (maintenance_test_options_command):
6498 Remove.
6499 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6500 * macrocmd.c (macro_command): Remove
6501 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6502 * language.c (set_check, show_check): Remove.
6503 (_initialize_language): Use add_basic_prefix_cmd,
6504 add_show_prefix_cmd.
6505 * infcmd.c (unset_command): Remove.
6506 (_initialize_infcmd): Use add_basic_prefix_cmd.
6507 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6508 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6509 add_show_prefix_cmd.
6510 * go32-nat.c (go32_info_dos_command): Remove.
6511 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6512 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6513 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6514 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6515 (_initialize_frame): Use add_basic_prefix_cmd,
6516 add_show_prefix_cmd.
6517 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6518 (_initialize_dcache): Use add_basic_prefix_cmd,
6519 add_show_prefix_cmd.
6520 * cp-support.c (maint_cplus_command): Remove.
6521 (_initialize_cp_support): Use add_basic_prefix_cmd.
6522 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6523 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6524 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6525 add_basic_prefix_cmd, add_show_prefix_cmd.
6526 * breakpoint.c (save_command): Remove.
6527 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6528 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6529 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6530 add_show_prefix_cmd.
6531 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6532 (set_ada_command, show_ada_command): Remove.
6533 (_initialize_ada_language): Use add_basic_prefix_cmd,
6534 add_show_prefix_cmd.
6535 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6536
6537 2020-04-16 Kamil Rytarowski <n54@gmx.com>
6538
6539 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6540 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6541
6542 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6543
6544 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6545 warning messages.
6546
6547 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6548
6549 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6550 import table is not at beginning of .idata section.
6551
6552 2020-04-16 Pedro Alves <palves@redhat.com>
6553
6554 * inferior.c (delete_inferior): Use delete operator directly
6555 instead of delete_program_space.
6556 * progspace.c (add_program_space): New, factored out from
6557 program_space::program_space.
6558 (remove_program_space): New, factored out from
6559 delete_program_space.
6560 (program_space::program_space): Remove intro comment. Rewrite.
6561 (program_space::~program_space): Remove intro comment. Call
6562 remove_program_space.
6563 (delete_program_space): Delete.
6564 * progspace.h (program_space::program_space): Make explicit. Move
6565 intro comment here, adjusted.
6566 (program_space::~program_space): Move intro comment here,
6567 adjusted.
6568 (delete_program_space): Remove.
6569
6570 2020-04-16 Tom Tromey <tromey@adacore.com>
6571
6572 * windows-nat.c (windows_nat::handle_access_violation): New
6573 function.
6574 * nat/windows-nat.h (handle_access_violation): Declare.
6575 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6576 windows-nat.c. Call handle_access_violation.
6577
6578 2020-04-16 Tom de Vries <tdevries@suse.de>
6579
6580 PR symtab/25791
6581 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6582 CUs without psymtab.
6583
6584 2020-04-16 Kevin Buettner <kevinb@redhat.com>
6585
6586 * python/python.c (do_start_initialization): Don't call
6587 PyEval_InitThreads for Python 3.9 and beyond.
6588
6589 2020-04-15 Kamil Rytarowski <n54@gmx.com>
6590
6591 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6592 thread functions.
6593 (obsd_nat_target::wait): Likewise.
6594
6595 2020-04-15 Tom Tromey <tromey@adacore.com>
6596
6597 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6598 (DEBUG_EXCEPT): Use debug_printf.
6599
6600 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6601
6602 * completer.c (class completion_tracker::completion_hash_entry)
6603 <hash_name>: New member function.
6604 (completion_tracker::discard_completions): New callback to hash a
6605 completion_hash_entry, pass this to htab_create_alloc.
6606
6607 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6608
6609 * windows-nat.c (windows_make_so): Warn rather than stopping with
6610 an error if realpath() fails.
6611
6612 2020-04-14 Kamil Rytarowski <n54@gmx.com>
6613
6614 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6615 (nbsd_nat_target::info_proc): Add do_status.
6616
6617 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6618 Tom de Vries <tdevries@suse.de>
6619
6620 PR symtab/25718
6621 * psympriv.h (struct partial_symtab::read_symtab)
6622 (struct partial_symtab::expand_psymtab)
6623 (struct partial_symtab::read_dependencies): Update comments.
6624 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6625 read_symtab for includer.
6626 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6627 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6628 (struct dwarf2_include_psymtab::m_readin): Remove.
6629 (struct dwarf2_include_psymtab::includer): New member function.
6630 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6631
6632 2020-04-14 Tom de Vries <tdevries@suse.de>
6633
6634 PR symtab/25720
6635 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6636 with NULL symbol_matcher and lookup_name.
6637 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6638 and lookup_name.
6639 * dwarf2/read.c (dw2_expand_symtabs_matching)
6640 (dw2_debug_names_expand_symtabs_matching): Same.
6641 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6642 Make lookup_name a pointer. Update comment.
6643 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6644 lookup_name being a pointer.
6645 * symfile.c (expand_symtabs_matching): Same.
6646 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6647 * linespec.c (iterate_over_all_matching_symtabs): Same.
6648
6649 2020-04-13 Tom Tromey <tom@tromey.com>
6650
6651 * run-on-main-thread.c: Update include.
6652 * unittests/main-thread-selftests.c: Update include.
6653 * tui/tui-win.c: Update include.
6654 * tui/tui-io.c: Update include.
6655 * tui/tui-interp.c: Update include.
6656 * tui/tui-hooks.c: Update include.
6657 * top.h: Update include.
6658 * top.c: Update include.
6659 * ser-base.c: Update include.
6660 * remote.c: Update include.
6661 * remote-notif.c: Update include.
6662 * remote-fileio.c: Update include.
6663 * record-full.c: Update include.
6664 * record-btrace.c: Update include.
6665 * python/python.c: Update include.
6666 * posix-hdep.c: Update include.
6667 * mingw-hdep.c: Update include.
6668 * mi/mi-main.c: Update include.
6669 * mi/mi-interp.c: Update include.
6670 * main.c: Update include.
6671 * linux-nat.c: Update include.
6672 * interps.c: Update include.
6673 * infrun.c: Update include.
6674 * inf-loop.c: Update include.
6675 * event-top.c: Update include.
6676 * event-loop.c: Move to ../gdbsupport/.
6677 * event-loop.h: Move to ../gdbsupport/.
6678 * async-event.h: Update include.
6679 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6680
6681 2020-04-13 Tom Tromey <tom@tromey.com>
6682
6683 * tui/tui-win.c: Include async-event.h.
6684 * remote.c: Include async-event.h.
6685 * remote-notif.c: Include async-event.h.
6686 * record-full.c: Include async-event.h.
6687 * record-btrace.c: Include async-event.h.
6688 * infrun.c: Include async-event.h.
6689 * event-top.c: Include async-event.h.
6690 * event-loop.h: Move some declarations to async-event.h.
6691 * event-loop.c: Don't include ser-event.h or top.h. Move some
6692 code to async-event.c.
6693 * async-event.h: New file.
6694 * async-event.c: New file.
6695 * Makefile.in (COMMON_SFILES): Add async-event.c.
6696 (HFILES_NO_SRCDIR): Add async-event.h.
6697
6698 2020-04-13 Tom Tromey <tom@tromey.com>
6699
6700 * utils.c (flush_streams): New function.
6701 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6702
6703 2020-04-13 Tom Tromey <tom@tromey.com>
6704
6705 * event-loop.c (handle_file_event): Use warning, not
6706 printf_unfiltered.
6707
6708 2020-04-13 Tom Tromey <tom@tromey.com>
6709
6710 * event-loop.c: Include <chrono>.
6711
6712 2020-04-13 Tom Tromey <tom@tromey.com>
6713
6714 * gdb_select.h: Move to ../gdbsupport/.
6715 * event-loop.c: Update include path.
6716 * top.c: Update include path.
6717 * ser-base.c: Update include path.
6718 * ui-file.c: Update include path.
6719 * ser-tcp.c: Update include path.
6720 * guile/scm-ports.c: Update include path.
6721 * posix-hdep.c: Update include path.
6722 * ser-unix.c: Update include path.
6723 * gdb_usleep.c: Update include path.
6724 * mingw-hdep.c: Update include path.
6725 * inflow.c: Update include path.
6726 * infrun.c: Update include path.
6727 * event-top.c: Update include path.
6728
6729 2020-04-13 Tom Tromey <tom@tromey.com>
6730
6731 * configure: Rebuild.
6732 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6733
6734 2020-04-13 Tom Tromey <tom@tromey.com>
6735
6736 * event-loop.h (start_event_loop): Don't declare.
6737 * event-loop.c (start_event_loop): Move...
6738 * main.c (start_event_loop): ...here. Now static.
6739
6740 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6741
6742 * MAINTAINERS: Update my email address.
6743
6744 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6745
6746 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6747 IP_ALL.
6748
6749 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6750
6751 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
6752 (nbsd_nat_target::info_proc): Add do_cmdline.
6753
6754 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6755
6756 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
6757 (nbsd_nat_target::info_proc): Add do_cwd.
6758
6759 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6760
6761 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6762
6763 2020-04-11 Kamil Rytarowski <n54@gmx.com>
6764
6765 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6766 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6767 (nbsd_nat_target::info_proc): New functions.
6768 * nbsd-nat.c (kinfo_get_vmmap): New function.
6769 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6770 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6771 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6772 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6773 functions.
6774 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6775 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6776 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6777 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6778 (KINFO_VME_FLAG_GROWS_DOWN): New.
6779
6780 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6781
6782 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6783 bit shift.
6784
6785 2020-04-10 Tom Tromey <tromey@adacore.com>
6786
6787 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6788
6789 2020-04-10 Tom Tromey <tromey@adacore.com>
6790
6791 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6792 separate debug files.
6793
6794 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
6795
6796 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6797 Move to...
6798 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6799 ... here.
6800 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6801 Check for STATUS_WX86_BREAKPOINT.
6802 (windows_nat_target::wait): Same.
6803
6804 2020-04-10 Tom de Vries <tdevries@suse.de>
6805
6806 PR cli/25808
6807 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6808
6809 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6810
6811 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6812 (Write After Approval): Remove Tom de Vries.
6813
6814 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6815
6816 revert partially:
6817 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6818
6819 * buildsym.c (record_line): Fix undefined behavior and preserve
6820 lines at eof.
6821
6822 2020-04-09 Kamil Rytarowski <n54@gmx.com>
6823
6824 * auxv.h (svr4_auxv_parse): New.
6825 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6826 and generic_auxv_parse.
6827 (svr4_auxv_parse): Add.
6828 * obsd-tdep.c: Include "auxv.h".
6829 (obsd_auxv_parse): Remove.
6830 (obsd_init_abi): Remove comment.
6831 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6832 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6833 * nbsd-tdep.c: Include "auxv.h".
6834 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6835
6836 2020-04-08 Tom Tromey <tromey@adacore.com>
6837
6838 * nat/windows-nat.h (last_wait_event): Don't declare.
6839 (wait_for_debug_event): Update comment.
6840 * nat/windows-nat.c (last_wait_event): Now static.
6841
6842 2020-04-08 Tom Tromey <tromey@adacore.com>
6843
6844 * windows-nat.c (wait_for_debug_event): Move to
6845 nat/windows-nat.c.
6846 * nat/windows-nat.h (wait_for_debug_event): Declare.
6847 * nat/windows-nat.c (wait_for_debug_event): Move from
6848 windows-nat.c. No longer static.
6849
6850 2020-04-08 Tom Tromey <tromey@adacore.com>
6851
6852 * windows-nat.c (get_windows_debug_event): Use
6853 fetch_pending_stop.
6854 * nat/windows-nat.h (fetch_pending_stop): Declare.
6855 * nat/windows-nat.c (fetch_pending_stop): New function.
6856
6857 2020-04-08 Tom Tromey <tromey@adacore.com>
6858
6859 * windows-nat.c (windows_continue): Use matching_pending_stop and
6860 continue_last_debug_event.
6861 * nat/windows-nat.h (matching_pending_stop)
6862 (continue_last_debug_event): Declare.
6863 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6864 (matching_pending_stop, continue_last_debug_event): New
6865 functions.
6866
6867 2020-04-08 Tom Tromey <tromey@adacore.com>
6868
6869 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6870 (handle_exception_result): Move to nat/windows-nat.h.
6871 (DEBUG_EXCEPTION_SIMPLE): Remove.
6872 (windows_nat::handle_ms_vc_exception): New function.
6873 (handle_exception): Move to nat/windows-nat.c.
6874 (get_windows_debug_event): Update.
6875 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6876 nat/windows-nat.c.
6877 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6878 (handle_exception_result): Move from windows-nat.c.
6879 (handle_exception): Declare.
6880 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6881 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6882 windows-nat.c.
6883
6884 2020-04-08 Tom Tromey <tromey@adacore.com>
6885
6886 * windows-nat.c (exception_count, event_count): Remove.
6887 (handle_exception, get_windows_debug_event)
6888 (do_initial_windows_stuff): Update.
6889
6890 2020-04-08 Tom Tromey <tromey@adacore.com>
6891
6892 * windows-nat.c (windows_nat::handle_load_dll)
6893 (windows_nat::handle_unload_dll): Rename. No longer static.
6894 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6895 Declare.
6896
6897 2020-04-08 Tom Tromey <tromey@adacore.com>
6898
6899 * complaints.h (stop_whining): Declare at top-level.
6900 (complaint): Don't declare stop_whining.
6901
6902 2020-04-08 Tom Tromey <tromey@adacore.com>
6903
6904 * windows-nat.c (windows_nat::handle_output_debug_string):
6905 Rename. No longer static.
6906 * nat/windows-nat.h (handle_output_debug_string): Declare.
6907
6908 2020-04-08 Tom Tromey <tromey@adacore.com>
6909
6910 * windows-nat.c (current_process_handle, current_process_id)
6911 (main_thread_id, last_sig, current_event, last_wait_event)
6912 (current_windows_thread, desired_stop_thread_id, pending_stops)
6913 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6914 (display_selectors, fake_create_process)
6915 (get_windows_debug_event): Update.
6916 * nat/windows-nat.h (current_process_handle, current_process_id)
6917 (main_thread_id, last_sig, current_event, last_wait_event)
6918 (current_windows_thread, desired_stop_thread_id, pending_stops)
6919 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6920 * nat/windows-nat.c (current_process_handle, current_process_id)
6921 (main_thread_id, last_sig, current_event, last_wait_event)
6922 (current_windows_thread, desired_stop_thread_id, pending_stops)
6923 (siginfo_er): New globals. Move from windows-nat.c.
6924
6925 2020-04-08 Tom Tromey <tromey@adacore.com>
6926
6927 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6928 (handle_load_dll): Update.
6929 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6930
6931 2020-04-08 Tom Tromey <tromey@adacore.com>
6932
6933 * windows-nat.c (enum thread_disposition_type): Move to
6934 nat/windows-nat.h.
6935 (windows_nat::thread_rec): Rename from thread_rec. No longer
6936 static.
6937 (windows_add_thread, windows_nat_target::fetch_registers)
6938 (windows_nat_target::store_registers, handle_exception)
6939 (windows_nat_target::resume, get_windows_debug_event)
6940 (windows_nat_target::get_tib_address)
6941 (windows_nat_target::thread_name)
6942 (windows_nat_target::thread_alive): Update.
6943 * nat/windows-nat.h (enum thread_disposition_type): Move from
6944 windows-nat.c.
6945 (thread_rec): Declare.
6946
6947 2020-04-08 Tom Tromey <tromey@adacore.com>
6948
6949 * windows-nat.c: Add "using namespace".
6950 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6951 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6952
6953 2020-04-08 Tom Tromey <tromey@adacore.com>
6954
6955 * nat/windows-nat.h (struct windows_thread_info): Declare
6956 destructor.
6957 * nat/windows-nat.c (~windows_thread_info): New.
6958
6959 2020-04-08 Tom Tromey <tromey@adacore.com>
6960
6961 PR gdb/22992
6962 * windows-nat.c (current_event): Update comment.
6963 (last_wait_event, desired_stop_thread_id): New globals.
6964 (struct pending_stop): New.
6965 (pending_stops): New global.
6966 (windows_nat_target) <stopped_by_sw_breakpoint>
6967 <supports_stopped_by_sw_breakpoint>: New methods.
6968 (windows_fetch_one_register): Add assertions. Adjust PC.
6969 (windows_continue): Handle pending stops. Suspend other threads
6970 when stepping. Use last_wait_event
6971 (wait_for_debug_event): New function.
6972 (get_windows_debug_event): Use wait_for_debug_event. Handle
6973 pending stops. Queue spurious stops.
6974 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6975 (windows_nat_target::kill): Use wait_for_debug_event.
6976 * nat/windows-nat.h (struct windows_thread_info)
6977 <stopped_at_software_breakpoint>: New field.
6978 * nat/windows-nat.c (windows_thread_info::resume): Clear
6979 stopped_at_software_breakpoint.
6980
6981 2020-04-08 Tom Tromey <tromey@adacore.com>
6982
6983 * windows-nat.c (enum thread_disposition_type): New.
6984 (thread_rec): Replace "get_context" parameter with "disposition";
6985 change type.
6986 (windows_add_thread, windows_nat_target::fetch_registers)
6987 (windows_nat_target::store_registers, handle_exception)
6988 (windows_nat_target::resume, get_windows_debug_event)
6989 (windows_nat_target::get_tib_address)
6990 (windows_nat_target::thread_name)
6991 (windows_nat_target::thread_alive): Update.
6992
6993 2020-04-08 Tom Tromey <tromey@adacore.com>
6994
6995 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6996 (windows_continue): Use windows_continue::resume.
6997 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6998 resume>: Declare new methods.
6999 * nat/windows-nat.c: New file.
7000 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
7001
7002 2020-04-08 Tom Tromey <tromey@adacore.com>
7003
7004 * windows-nat.c (windows_add_thread, windows_delete_thread)
7005 (windows_nat_target::fetch_registers)
7006 (windows_nat_target::store_registers, fake_create_process)
7007 (windows_nat_target::resume, windows_nat_target::resume)
7008 (get_windows_debug_event, windows_nat_target::wait)
7009 (windows_nat_target::pid_to_str)
7010 (windows_nat_target::get_tib_address)
7011 (windows_nat_target::get_ada_task_ptid)
7012 (windows_nat_target::thread_name)
7013 (windows_nat_target::thread_alive): Use lwp, not tid.
7014
7015 2020-04-08 Tom Tromey <tromey@adacore.com>
7016
7017 * windows-nat.c (handle_exception)
7018 (windows_nat_target::thread_name): Update.
7019 * nat/windows-nat.h (windows_thread_info): Remove destructor.
7020 <name>: Now unique_xmalloc_ptr.
7021
7022 2020-04-08 Tom Tromey <tromey@adacore.com>
7023
7024 * windows-nat.c (thread_rec)
7025 (windows_nat_target::fetch_registers): Update.
7026 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
7027 Update comment.
7028 <debug_registers_changed, reload_context>: Now bool.
7029
7030 2020-04-08 Tom Tromey <tromey@adacore.com>
7031
7032 * windows-nat.c (windows_add_thread): Use new.
7033 (windows_init_thread_list, windows_delete_thread): Use delete.
7034 (get_windows_debug_event): Update.
7035 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
7036 destructor, and initializers.
7037
7038 2020-04-08 Tom Tromey <tromey@adacore.com>
7039
7040 * windows-nat.c (struct windows_thread_info): Remove.
7041 * nat/windows-nat.h: New file.
7042
7043 2020-04-08 Tom Tromey <tromey@adacore.com>
7044
7045 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
7046 (thread_rec, windows_add_thread, windows_delete_thread)
7047 (windows_continue): Update.
7048
7049 2020-04-08 Tom Tromey <tromey@adacore.com>
7050
7051 * windows-nat.c (struct windows_thread_info): Remove typedef.
7052 (thread_head): Remove.
7053 (thread_list): New global.
7054 (thread_rec, windows_add_thread, windows_init_thread_list)
7055 (windows_delete_thread, windows_continue): Update.
7056
7057 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7058
7059 * windows-tdep.h (windows_init_abi): Add comment.
7060 (cygwin_init_abi): New declaration.
7061 * windows-tdep.c: Split signal enumeration in two, one for
7062 Windows and one for Cygwin.
7063 (windows_gdb_signal_to_target): Only deal with signal of the
7064 Windows OS ABI.
7065 (cygwin_gdb_signal_to_target): New function.
7066 (windows_init_abi): Rename to windows_init_abi_common, don't set
7067 gdb_signal_to_target gdbarch method. Add new new function with
7068 this name.
7069 (cygwin_init_abi): New function.
7070 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
7071 comment. Don't call windows_init_abi.
7072 (amd64_windows_init_abi): Add comment, call windows_init_abi.
7073 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
7074 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
7075 i386_windows_init_abi_common, don't call windows_init_abi. Add
7076 a new function of this name.
7077 (i386_cygwin_init_abi): New function.
7078 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
7079 OS ABI Cygwin.
7080
7081 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7082
7083 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
7084 parameter.c.
7085 (dwarf2_read_gdb_index): Update.
7086
7087 2020-04-07 Kamil Rytarowski <n54@gmx.com>
7088
7089 * nbsd-tdep.c: Include "objfiles.h".
7090 (nbsd_skip_solib_resolver): New.
7091 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
7092
7093 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7094
7095 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
7096 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
7097 with DW_LLE_base_addressx are being emitted in DWARFv5.
7098 Add the newly added kind DW_LOC_OFFSET_PAIR also.
7099 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
7100 unsigned integer.
7101
7102 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7103
7104 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
7105 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
7106 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
7107 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
7108 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
7109 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
7110 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
7111
7112
7113 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7114
7115 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
7116 (read_loclist_index): New function definition.
7117 (lookup_loclist_base): New function definition.
7118 (read_loclist_header): New function definition.
7119 (dwarf2_cu): Add loclist_base and loclist_header field.
7120 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
7121 (read_full_die_1): Read the value of DW_AT_loclists_base.
7122 (read_attribute_reprocess): Handle DW_FORM_loclistx.
7123 (read_attribute_value): Handle DW_FORM_loclistx.
7124 (skip_one_die): Handle DW_FORM_loclistx.
7125 (loclist_header): New structure declaration.
7126 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
7127
7128 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7129
7130 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
7131 constructor. Remove `addr` parameter from other constructor and
7132 add `per_cu` parameter.
7133 * dwarf2/read.c (create_partial_symtab): Update.
7134
7135 2020-04-07 Tom de Vries <tdevries@suse.de>
7136
7137 PR symtab/25796
7138 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
7139 (partial_die_info::fixup): Inherit has_const_value.
7140
7141 2020-04-07 Tom de Vries <tdevries@suse.de>
7142
7143 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
7144 symbols without address.
7145
7146 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7147
7148 * nbsd-nat.h (struct thread_info): Add forward declaration.
7149 (nbsd_nat_target::thread_alive): Add.
7150 (nbsd_nat_target::thread_name): Likewise.
7151 (nbsd_nat_target::update_thread_list): Likewise.
7152 (update_thread_list::post_attach): Likewise.
7153 (post_attach::pid_to_str): Likewise.
7154 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
7155 (nbsd_thread_lister): Add.
7156 (nbsd_nat_target::thread_alive): Likewise.
7157 (nbsd_nat_target::thread_name): Likewise.
7158 (nbsd_add_threads): Likewise.
7159 (update_thread_list::post_attach): Likewise.
7160 (nbsd_nat_target::update_thread_list): Likewise.
7161 (post_attach::pid_to_str): Likewise.
7162
7163 2020-04-06 Tom Tromey <tromey@adacore.com>
7164
7165 * ada-valprint.c (print_variant_part): Extract the variant field.
7166 (print_field_values): Use the field as the outer value when
7167 recursing.
7168
7169 2020-04-06 Tom Tromey <tromey@adacore.com>
7170
7171 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
7172 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
7173 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
7174 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
7175 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
7176
7177 2020-04-06 Tom Tromey <tromey@adacore.com>
7178
7179 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
7180 TYPE_CODE_ERROR.
7181
7182 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7183
7184 * nbsd-tdep.c: Include "gdbarch.h".
7185 Define enum with NetBSD signal numbers.
7186 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
7187 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
7188 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
7189 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
7190 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
7191 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
7192 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
7193 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
7194 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
7195 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7196 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7197 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
7198
7199 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
7200
7201 PR gdb/25325
7202 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
7203
7204 2020-04-03 Tom Tromey <tromey@adacore.com>
7205
7206 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
7207 Read constant block.
7208
7209 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7210
7211 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
7212 (gdb_bfd_get_full_section_contents): New declaration.
7213 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
7214 * windows-tdep.c (is_linked_with_cygwin_dll): Use
7215 gdb_bfd_get_full_section_contents.
7216
7217 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7218
7219 * exec.c (build_section_table): Replace internal_error with
7220 gdb_assert.
7221 (section_table_xfer_memory_partial): Likewise.
7222 * mdebugread.c (parse_partial_symbols): Likewise.
7223 * psymtab.c (lookup_partial_symbol): Likewise.
7224 * utils.c (wrap_here): Likewise.
7225
7226 2020-04-02 Tom Tromey <tromey@adacore.com>
7227
7228 * f-lang.c (build_fortran_types): Use arch_type to initialize
7229 builtin_complex_s32 in the TYPE_CODE_ERROR case.
7230
7231 2020-04-02 Tom Tromey <tromey@adacore.com>
7232
7233 * dwarf2/read.c (partial_die_info::read): Do not create a vector
7234 of attributes.
7235
7236 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
7237 Bernd Edlinger <bernd.edlinger@hotmail.de>
7238 Tom Tromey <tromey@adacore.com>
7239
7240 * buildsym.c (buildsym_compunit::record_line): Remove
7241 deduplication code.
7242
7243 2020-04-02 Tom de Vries <tdevries@suse.de>
7244
7245 PR ada/24671
7246 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
7247
7248 2020-04-02 Tom de Vries <tdevries@suse.de>
7249
7250 * dwarf2/read.c (dwarf2_gdb_index_functions,
7251 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
7252 NULL.
7253 * psymtab.c (psym_lookup_global_symbol_language): New function.
7254 (psym_functions): Init psym_lookup_global_symbol_language with
7255 psym_lookup_global_symbol_language.
7256 * symfile-debug.c (debug_sym_quick_functions): Init
7257 lookup_global_symbol_language with NULL.
7258 * symfile.c (set_initial_language): Remove fixme comment.
7259 * symfile.h (struct quick_symbol_functions): Add
7260 lookup_global_symbol_language.
7261 * symtab.c (find_quick_global_symbol_language): New function.
7262 (find_main_name): Use find_quick_global_symbol_language.
7263
7264 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
7265
7266 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
7267
7268 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7269
7270 * buildsym.c (record_line): Fix undefined behavior and preserve
7271 lines at eof.
7272
7273 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7274
7275 * buildsym.c (record_line): Fix the resizing condition.
7276
7277 2020-04-01 Tom Tromey <tom@tromey.com>
7278
7279 * value.h (value_literal_complex): Add comment.
7280 * valops.c (value_literal_complex): Refer to value.h.
7281
7282 2020-04-01 Tom Tromey <tom@tromey.com>
7283
7284 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
7285 (scalar_type): New rule, from typebase.
7286 (typebase): Use scalar_type. Recognize complex types.
7287 (field_name): Handle FLOAT_KEYWORD.
7288 (ident_tokens): Add _Complex and __complex__.
7289
7290 2020-04-01 Tom Tromey <tom@tromey.com>
7291
7292 PR exp/25299:
7293 * valarith.c (promotion_type, complex_binop): New functions.
7294 (scalar_binop): Handle complex numbers. Use promotion_type.
7295 (value_pos, value_neg, value_complement): Handle complex numbers.
7296
7297 2020-04-01 Tom Tromey <tom@tromey.com>
7298
7299 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
7300 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
7301 (parse_number): Handle complex numbers.
7302
7303 2020-04-01 Tom Tromey <tom@tromey.com>
7304
7305 * c-valprint.c (c_decorations): Change complex suffix to "i".
7306
7307 2020-04-01 Tom Tromey <tom@tromey.com>
7308
7309 * valprint.c (generic_value_print_complex): Use accessors.
7310 * value.h (value_real_part, value_imaginary_part): Declare.
7311 * valops.c (value_real_part, value_imaginary_part): New
7312 functions.
7313 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
7314
7315 2020-04-01 Tom Tromey <tom@tromey.com>
7316
7317 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
7318 (read_range_type): Update.
7319 * mdebugread.c (basic_type): Update.
7320 * go-lang.c (build_go_types): Use init_complex_type.
7321 * gdbtypes.h (struct main_type) <complex_type>: New member.
7322 (init_complex_type): Update.
7323 (arch_complex_type): Don't declare.
7324 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
7325 Make name if none given. Use alloc_type_copy. Look for cached
7326 complex type.
7327 (arch_complex_type): Remove.
7328 (gdbtypes_post_init): Use init_complex_type.
7329 * f-lang.c (build_fortran_types): Use init_complex_type.
7330 * dwarf2/read.c (read_base_type): Update.
7331 * d-lang.c (build_d_types): Use init_complex_type.
7332 * ctfread.c (read_base_type): Update.
7333
7334 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7335
7336 * infrun.c (stop_all_threads): Update assertion, plus when
7337 stopping threads, take into account that we might be trying
7338 to stop an all-stop target.
7339 (stop_waiting): Call 'stop_all_threads' if there exists a
7340 non-stop target.
7341
7342 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7343
7344 * target.h (exists_non_stop_target): New function declaration.
7345 * target.c (exists_non_stop_target): New function.
7346
7347 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
7348
7349 PR gdb/24789
7350 * eval.c (is_integral_or_integral_reference): New function.
7351 (evaluate_subexp_standard): Allow integer references in
7352 pointer arithmetic.
7353
7354 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7355
7356 * remote.c (remote_target::remote_parse_stop_reply): Remove the
7357 check for no ptid in the stop reply when the target is non-stop.
7358
7359 2020-04-01 Tom Tromey <tromey@adacore.com>
7360
7361 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
7362 "name" parameter to rvalue reference. Initialize m_name_holder.
7363 <lookup_name_info>: New overloads.
7364 <name>: Return gdb::string_view.
7365 <c_str>: New method.
7366 <make_ignore_params>: Update.
7367 <search_name_hash>: Update.
7368 <language_lookup_name>: Return const char *.
7369 <m_name>: Change type.
7370 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
7371 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
7372 (lookup_name_info::match_any): Update.
7373 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7374 Update.
7375 * minsyms.c (linkage_name_str): Update.
7376 * language.c (default_symbol_name_matcher): Update.
7377 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7378 Update.
7379 * ada-lang.c (ada_fold_name): Change parameter to string_view.
7380 (ada_lookup_name_info::ada_lookup_name_info): Update.
7381 (literal_symbol_name_matcher): Update.
7382
7383 2020-04-01 Tom Tromey <tromey@adacore.com>
7384
7385 * psymtab.c (psymtab_search_name): Remove function.
7386 (psym_lookup_symbol): Create search name and lookup name here.
7387 (lookup_partial_symbol): Remove "name" parameter; add
7388 lookup_name.
7389 (psym_expand_symtabs_for_function): Update.
7390
7391 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
7392
7393 PR tui/25597:
7394 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7395
7396 2020-03-31 Tom Tromey <tromey@adacore.com>
7397
7398 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7399 memcpy.
7400
7401 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
7402
7403 * features/riscv/32bit-csr.xml: Regenerated.
7404 * features/riscv/64bit-csr.xml: Regenerated.
7405
7406 2020-03-30 Tom Tromey <tromey@adacore.com>
7407
7408 * ada-valprint.c (print_variant_part): Update.
7409 * ada-lang.h (ada_which_variant_applies): Update.
7410 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7411 outer_valaddr parameters; replace with "outer" value parameter.
7412 (to_fixed_variant_branch_type): Update.
7413
7414 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7415
7416 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7417 <list>. Remove inclusion of observable.h.
7418 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7419 (struct arch_lwp_info): New struct.
7420 (class ppc_linux_dreg_interface): New class.
7421 (struct ppc_linux_process_info): New struct.
7422 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7423 <low_new_clone, low_forget_process, low_prepare_to_resume>
7424 <copy_thread_dreg_state, mark_thread_stale>
7425 <mark_debug_registers_changed, register_hw_breakpoint>
7426 <clear_hw_breakpoint, register_wp, clear_wp>
7427 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7428 <num_memory_accesses, get_trigger_type>
7429 <create_watchpoint_request, hwdebug_point_cmp>
7430 <init_arch_lwp_info, get_arch_lwp_info>
7431 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7432 methods.
7433 <struct ptid_hash>: New inner struct.
7434 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7435 members.
7436 (saved_dabr_value, hwdebug_info, max_slots_number)
7437 (struct hw_break_tuple, struct thread_points, ppc_threads)
7438 (have_ptrace_hwdebug_interface)
7439 (hwdebug_find_thread_points_by_tid)
7440 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7441 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7442 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7443 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7444 use m_dreg_interface.
7445 (hwdebug_point_cmp): Change to...
7446 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7447 reference arguments instead of pointers.
7448 (ppc_linux_nat_target::ranged_break_num_registers): Use
7449 m_dreg_interface.
7450 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7451 m_dreg_interface. Call register_hw_breakpoint.
7452 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7453 m_dreg_interface. Call clear_hw_breakpoint.
7454 (get_trigger_type): Change to...
7455 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7456 comment.
7457 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7458 use m_dreg_interface. Call register_hw_breakpoint.
7459 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7460 use m_dreg_interface. Call clear_hw_breakpoint.
7461 (can_use_watchpoint_cond_accel): Change to...
7462 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7463 method. Update comment, use m_dreg_interface and
7464 m_process_info.
7465 (calculate_dvc): Change to...
7466 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7467 m_dreg_interface.
7468 (num_memory_accesses): Change to...
7469 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7470 (check_condition): Change to...
7471 (ppc_linux_nat_target::check_condition): ...this method.
7472 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7473 comment, use m_dreg_interface.
7474 (create_watchpoint_request): Change to...
7475 (ppc_linux_nat_target::create_watchpoint_request): ...this
7476 method. Use m_dreg_interface.
7477 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7478 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7479 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7480 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7481 (ppc_linux_nat_target::low_forget_process)
7482 (ppc_linux_nat_target::low_new_fork)
7483 (ppc_linux_nat_target::low_new_clone)
7484 (ppc_linux_nat_target::low_delete_thread)
7485 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7486 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7487 only call mark_thread_stale.
7488 (ppc_linux_thread_exit): Remove.
7489 (ppc_linux_nat_target::stopped_data_address): Change to...
7490 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7491 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7492 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7493 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7494 comment. Call low_stopped_data_address.
7495 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7496 m_dreg_interface.
7497 (ppc_linux_nat_target::masked_watch_num_registers): Use
7498 m_dreg_interface.
7499 (ppc_linux_nat_target::copy_thread_dreg_state)
7500 (ppc_linux_nat_target::mark_thread_stale)
7501 (ppc_linux_nat_target::mark_debug_registers_changed)
7502 (ppc_linux_nat_target::register_hw_breakpoint)
7503 (ppc_linux_nat_target::clear_hw_breakpoint)
7504 (ppc_linux_nat_target::register_wp)
7505 (ppc_linux_nat_target::clear_wp)
7506 (ppc_linux_nat_target::init_arch_lwp_info)
7507 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7508 (_initialize_ppc_linux_nat): Remove observer callback.
7509
7510 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7511
7512 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7513 (ppc_linux_nat_target::auxv_parse)
7514 (ppc_linux_nat_target::read_description)
7515 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7516 Move up.
7517
7518 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7519
7520 * linux-nat.h (low_new_clone): New method.
7521 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7522
7523 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7524
7525 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7526 (dbx_expand_psymtab): ... this.
7527 (start_psymtab): Update.
7528 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7529 (mdebug_expand_psymtab): ... this.
7530 (parse_partial_symbols): Update.
7531 (new_psymtab): Update.
7532 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7533 (xcoff_expand_psymtab): ... this.
7534 (xcoff_start_psymtab): Update.
7535
7536 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7537
7538 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7539 <expand_dependencies>: ... this.
7540 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7541 (partial_symtab::expand_dependencies): ... this.
7542 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7543 Update.
7544 (dwarf2_psymtab::expand_psymtab): Update.
7545 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7546 * mdebugread.c (psymtab_to_symtab_1): Update.
7547 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7548
7549 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7550
7551 * psympriv.h (discard_psymtab): Remove.
7552 * dbxread.c (dbx_end_psymtab): Update.
7553 * xcoffread.c (xcoff_end_psymtab): Update.
7554
7555 2020-03-28 Tom Tromey <tom@tromey.com>
7556
7557 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7558 comment.
7559
7560 2020-03-28 Tom Tromey <tom@tromey.com>
7561
7562 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7563
7564 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
7565
7566 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7567
7568 2020-03-26 John Baldwin <jhb@FreeBSD.org>
7569
7570 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7571
7572 2020-03-26 Tom Tromey <tom@tromey.com>
7573
7574 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7575 (mark_common_block_symbol_computed, read_tag_string_type)
7576 (attr_to_dynamic_prop, read_subrange_type): Update.
7577 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7578 to be methods on struct attribute.
7579 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7580 (read_call_site_scope, partial_die_info::read)
7581 (partial_die_info::read, lookup_die_type, follow_die_ref):
7582 Update.
7583 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7584 from dwarf2_get_ref_die_offset.
7585 (attribute::constant_value): New method, from
7586 dwarf2_get_attr_constant_value.
7587 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7588 Declare method.
7589 <constant_value>: New method.
7590
7591 2020-03-26 Tom Tromey <tom@tromey.com>
7592
7593 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7594 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7595 (dwarf_type_encoding_name): Move to stringify.c.
7596 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7597 * dwarf2/stringify.c: New file.
7598 * dwarf2/stringify.h: New file.
7599
7600 2020-03-26 Tom Tromey <tom@tromey.com>
7601
7602 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7603 Rewrite.
7604
7605 2020-03-26 Tom Tromey <tom@tromey.com>
7606
7607 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7608 methods.
7609 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7610 (lookup_ranges_base): Likewise.
7611 (read_cutu_die_from_dwo, read_full_die_1): Update.
7612
7613 2020-03-26 Tom Tromey <tom@tromey.com>
7614
7615 * dwarf2/read.c (read_import_statement, read_file_scope)
7616 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7617 (read_lexical_block_scope, read_call_site_scope)
7618 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7619 (handle_struct_member_die, process_structure_scope)
7620 (update_enumeration_type_from_children)
7621 (process_enumeration_scope, read_array_type, read_common_block)
7622 (read_namespace, read_module, read_subroutine_type): Update.
7623 (sibling_die): Remove.
7624
7625 2020-03-26 Tom Tromey <tom@tromey.com>
7626
7627 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7628 (build_type_psymtabs_reader, read_structure_type)
7629 (read_enumeration_type, read_full_die_1): Update.
7630 (dwarf2_attr_no_follow): Move to die.h.
7631 * dwarf2/die.h (struct die_info) <attr>: New method.
7632
7633 2020-03-26 Tom Tromey <tom@tromey.com>
7634
7635 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7636 <base_address>: Now an optional.
7637 (dwarf2_find_base_address, dwarf2_rnglists_process)
7638 (dwarf2_ranges_process, fill_in_loclist_baton)
7639 (dwarf2_symbol_mark_computed): Update.
7640
7641 2020-03-26 Tom Tromey <tom@tromey.com>
7642
7643 * dwarf2/read.c (struct die_info): Move to die.h.
7644 * dwarf2/die.h: New file.
7645
7646 2020-03-26 Tom Tromey <tom@tromey.com>
7647
7648 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7649 * dwarf2/read.c
7650 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7651 Move to line-header.c.
7652 (read_checked_initial_length_and_offset, read_formatted_entries):
7653 Likewise.
7654 (dwarf_decode_line_header): Split into two.
7655 * dwarf2/line-header.c
7656 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7657 Move from read.c.
7658 (read_checked_initial_length_and_offset, read_formatted_entries):
7659 Likewise.
7660 (dwarf_decode_line_header): New function, split from read.c.
7661
7662 2020-03-26 Tom Tromey <tom@tromey.com>
7663
7664 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7665 Declare method.
7666 * dwarf2/read.c (read_attribute_value): Update.
7667 (dwarf2_per_objfile::read_line_string): Rename from
7668 read_indirect_line_string.
7669 (read_formatted_entries): Update.
7670
7671 2020-03-26 Tom Tromey <tom@tromey.com>
7672
7673 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7674 variable.
7675
7676 2020-03-26 Tom Tromey <tom@tromey.com>
7677
7678 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7679 const.
7680 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7681 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7682 parameter const.
7683
7684 2020-03-26 Tom Tromey <tom@tromey.com>
7685
7686 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7687 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7688 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7689 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7690
7691 2020-03-26 Tom Tromey <tom@tromey.com>
7692
7693 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7694 file_names_size, file_full_name, file_file_name>: Use const.
7695 <file_name_at, file_names>: Add const overload.
7696 * dwarf2/line-header.c (line_header::file_file_name)
7697 (line_header::file_full_name): Update.
7698
7699 2020-03-26 Tom Tromey <tom@tromey.com>
7700
7701 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7702 (macro_start_file, consume_improper_spaces)
7703 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7704 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7705 (dwarf_decode_macros): Move to macro.c.
7706 * dwarf2/macro.c: New file.
7707 * dwarf2/macro.h: New file.
7708 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7709
7710 2020-03-26 Tom Tromey <tom@tromey.com>
7711
7712 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7713 method.
7714 * dwarf2/section.c: New method. From
7715 read_indirect_string_at_offset_from.
7716 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7717 (read_indirect_string_at_offset_from): Move to section.c.
7718 (read_indirect_string_at_offset): Rewrite.
7719 (read_indirect_line_string_at_offset): Remove.
7720 (read_indirect_string, read_indirect_line_string)
7721 (dwarf_decode_macro_bytes): Update.
7722
7723 2020-03-26 Tom Tromey <tom@tromey.com>
7724
7725 * dwarf2/section.h (struct dwarf2_section_info)
7726 <overload_complaint>: Declare.
7727 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7728 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7729 Rename from dwarf2_section_buffer_overflow_complaint.
7730 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7731 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7732
7733 2020-03-26 Tom Tromey <tom@tromey.com>
7734
7735 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7736 Declare.
7737 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7738 Move from read.c.
7739 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7740 to section.c.
7741
7742 2020-03-26 Tom Tromey <tom@tromey.com>
7743
7744 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7745
7746 2020-03-26 Tom Tromey <tom@tromey.com>
7747
7748 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7749 "builder".
7750 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7751 parameter.
7752 (dwarf_decode_macros): Update.
7753
7754 2020-03-26 Tom Tromey <tom@tromey.com>
7755
7756 * dwarf2/read.c (read_attribute_value): Update.
7757 (read_indirect_string_from_dwz): Move to dwz.c; change into
7758 method.
7759 (dwarf_decode_macro_bytes): Update.
7760 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7761 * dwarf2/dwz.c: New file.
7762 * Makefile.in (COMMON_SFILES): Add dwz.c.
7763
7764 2020-03-26 Tom Tromey <tom@tromey.com>
7765
7766 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7767 * dwarf2/read.c: Add include.
7768 * dwarf2/index-write.c: Add include.
7769 * dwarf2/index-cache.c: Add include.
7770 * dwarf2/dwz.h: New file.
7771
7772 2020-03-25 Tom Tromey <tom@tromey.com>
7773
7774 * compile/compile-object-load.c (get_out_value_type): Mention
7775 correct symbol name in error message.
7776
7777 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
7778
7779 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7780
7781 2020-03-25 Tom de Vries <tdevries@suse.de>
7782
7783 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7784 * symmisc.c (dump_symtab_1): Print user and includes fields.
7785 (maintenance_info_symtabs): Same.
7786
7787 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7788
7789 PR gdb/25534
7790 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7791 (riscv_regcache_cooked_write): New function.
7792 (riscv_push_dummy_call): Use new function.
7793 (riscv_return_value): Likewise.
7794
7795 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7796
7797 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7798 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7799 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7800 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7801 * infrun.c (follow_fork): Likewise.
7802 (follow_fork_inferior): Likewise.
7803 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7804 * linux-nat.h (class linux_nat_target): Likewise.
7805 * remote.c (class remote_target) <follow_fork>: Likewise.
7806 (remote_target::follow_fork): Likewise.
7807 * target-delegates.c: Re-generate.
7808 * target.c (default_follow_fork): Likewise.
7809 (target_follow_fork): Likewise.
7810 * target.h (struct target_ops) <follow_fork>: Likewise.
7811 (target_follow_fork): Likewise.
7812
7813 2020-03-24 Tom de Vries <tdevries@suse.de>
7814
7815 * psymtab.c (maintenance_info_psymtabs): Print user field.
7816
7817 2020-03-20 Tom Tromey <tromey@adacore.com>
7818
7819 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7820 const.
7821 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7822 const.
7823
7824 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
7825
7826 * ptrace.m4: Don't check for ptrace declaration.
7827 * config.in: Re-generate.
7828 * configure: Re-generate.
7829 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7830 not defined.
7831
7832 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7833
7834 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7835 `PTRACE_TYPE_RET'.
7836 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7837 * sparc-nat.c (gdb_ptrace): Likewise.
7838 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7839
7840 2020-03-20 Tom Tromey <tromey@adacore.com>
7841
7842 * c-exp.y (lex_one_token): Fix assert.
7843
7844 2020-03-20 Tom Tromey <tromey@adacore.com>
7845
7846 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7847 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7848 strncpy call.
7849
7850 2020-03-20 Tom Tromey <tromey@adacore.com>
7851
7852 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7853
7854 2020-03-20 Tom Tromey <tromey@adacore.com>
7855
7856 * ada-valprint.c (print_variant_part): Remove parameters; switch
7857 to value-based API.
7858 (print_field_values): Likewise.
7859 (ada_val_print_struct_union): Likewise.
7860 (ada_value_print_1): Update.
7861
7862 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7863
7864 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7865 nbsd_nat_target instead of inf_ptrace_target.
7866 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7867 nbsd_nat_target.
7868
7869 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7870
7871 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7872 it to the ptrace call.
7873 * (store_registers): Likewise.
7874
7875 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7876
7877 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7878 it to the ptrace call.
7879 * (store_registers): Likewise.
7880
7881 2020-03-19 Luis Machado <luis.machado@linaro.org>
7882
7883 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7884 valid, fetch vg value from ptrace.
7885
7886 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7887 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7888 * inf-ptrace.c: Likewise.
7889 * (gdb_ptrace): Add.
7890 * (inf_ptrace_target::resume): Update.
7891 * (inf_ptrace_target::xfer_partial): Likewise.
7892 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7893 * (inf_ptrace_peek_poke): Update.
7894
7895 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7896
7897 * x86-bsd-nat.c (gdb_ptrace): New.
7898 * (x86bsd_dr_set): Add new argument `ptid'.
7899 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7900 x86bsd_dr_set_addr): Update.
7901
7902 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7903
7904 * remote.c (remote_target::process_stop_reply): Handle events for
7905 all threads differently.
7906
7907 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7908
7909 * completer.c (completion_tracker::remove_completion): Define new
7910 function.
7911 * completer.h (completion_tracker::remove_completion): Declare new
7912 function.
7913 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7914 when adding a C++ function symbol.
7915
7916 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7917
7918 * completer.c (completion_tracker::completion_hash_entry): Define
7919 new class.
7920 (advance_to_filename_complete_word_point): Call
7921 recompute_lowest_common_denominator.
7922 (completion_tracker::completion_tracker): Call discard_completions
7923 to setup the hash table.
7924 (completion_tracker::discard_completions): Allow for being called
7925 from the constructor, pass new equal function, and element deleter
7926 when constructing the hash table. Initialise new class member
7927 variables.
7928 (completion_tracker::maybe_add_completion): Remove use of
7929 m_entries_vec, and store more information into m_entries_hash.
7930 (completion_tracker::recompute_lcd_visitor): New function, most
7931 content taken from...
7932 (completion_tracker::recompute_lowest_common_denominator):
7933 ...here, this now just visits each item in the hash calling the
7934 above visitor.
7935 (completion_tracker::build_completion_result): Remove use of
7936 m_entries_vec, call recompute_lowest_common_denominator.
7937 * completer.h (completion_tracker::have_completions): Remove use
7938 of m_entries_vec.
7939 (completion_tracker::completion_hash_entry): Declare new class.
7940 (completion_tracker::recompute_lowest_common_denominator): Change
7941 function signature.
7942 (completion_tracker::recompute_lcd_visitor): Declare new function.
7943 (completion_tracker::m_entries_vec): Delete.
7944 (completion_tracker::m_entries_hash): Initialize to NULL.
7945 (completion_tracker::m_lowest_common_denominator_valid): New
7946 member variable.
7947 (completion_tracker::m_lowest_common_denominator_max_length): New
7948 member variable.
7949
7950 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7951
7952 * regformats/regdef.h: Put reg in gdb namespace.
7953
7954 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7955
7956 * i386-bsd-nat.c (gdb_ptrace): New.
7957 * (i386bsd_fetch_inferior_registers,
7958 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7959 * (i386bsd_fetch_inferior_registers,
7960 i386bsd_store_inferior_registers) Use gdb_ptrace.
7961
7962 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7963
7964 * amd64-bsd-nat.c (gdb_ptrace): New.
7965 * (amd64bsd_fetch_inferior_registers,
7966 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7967 * (amd64bsd_fetch_inferior_registers,
7968 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7969
7970 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7971
7972 * user-regs.c (user_reg::read): Rename to...
7973 (user_reg::xread): ...this.
7974 * (append_user_reg): Rename argument `read' to `xread'.
7975 * (user_reg_add_builtin): Likewise.
7976 * (user_reg_add): Likewise.
7977 * (value_of_user_reg): Likewise.
7978
7979 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7980
7981 * sparc-nat.c (gdb_ptrace): New.
7982 * sparc-nat.c (sparc_fetch_inferior_registers)
7983 (sparc_store_inferior_registers) Remove obsolete comment.
7984 * sparc-nat.c (sparc_fetch_inferior_registers)
7985 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7986 * sparc-nat.c (sparc_fetch_inferior_registers)
7987 (sparc_store_inferior_registers) Use gdb_ptrace.
7988
7989 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7990
7991 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7992 it to the ptrace call.
7993 * sh-nbsd-nat.c (store_registers): Likewise.
7994
7995 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7996
7997 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7998 nbsd_nat_target instead of inf_ptrace_target.
7999 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8000 nbsd_nat_target.
8001
8002 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8003
8004 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
8005
8006 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8007
8008 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
8009 <sys/sysctl.h>.
8010 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
8011
8012 2020-03-17 Tom de Vries <tdevries@suse.de>
8013
8014 PR gdb/23710
8015 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
8016 fields.
8017 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
8018 fields.
8019 (process_imported_unit_die): Skip import of c++ CUs.
8020
8021 2020-03-16 Tom Tromey <tom@tromey.com>
8022
8023 * p-valprint.c (pascal_object_print_value): Initialize
8024 base_value.
8025
8026 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
8027 Shahab Vahedi <shahab@synopsys.com>
8028
8029 * Makefile.in: Add arch/arc.o
8030 * configure.tgt: Likewise.
8031 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
8032 (_initialize_arc_tdep): Don't initialize old target descriptions.
8033 (arc_read_description): New function to cache target descriptions.
8034 * arc-tdep.h (arc_read_description): Add proto type.
8035 * arch/arc.c: New file.
8036 * arch/arc.h: Likewise.
8037 * features/Makefile: Replace old target descriptions with new.
8038 * features/arc-arcompact.c: Remove.
8039 * features/arc-arcompact.xml: Likewise.
8040 * features/arc-v2.c: Likewise
8041 * features/arc-v2.xml: Likewise
8042 * features/arc/aux-arcompact.xml: New file.
8043 * features/arc/aux-v2.xml: Likewise.
8044 * features/arc/core-arcompact.xml: Likewise.
8045 * features/arc/core-v2.xml: Likewise.
8046 * features/arc/aux-arcompact.c: Generate.
8047 * features/arc/aux-v2.c: Likewise.
8048 * features/arc/core-arcompact.c: Likewise.
8049 * features/arc/core-v2.c: Likewise.
8050 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
8051
8052 2020-03-16 Tom Tromey <tromey@adacore.com>
8053
8054 PR gdb/25663:
8055 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
8056 putting value into bcache.
8057
8058 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8059
8060 PR gdb/21500
8061 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
8062 to...
8063 (amd64_windows_init_abi_common): ... this. Don't set size of
8064 long type.
8065 (amd64_windows_init_abi): New function.
8066 (amd64_cygwin_init_abi): New function.
8067 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
8068 the Cygwin OS ABI.
8069 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
8070 comment.
8071
8072 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8073
8074 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
8075 * windows-tdep.c (CYGWIN_DLL_NAME): New.
8076 (pe_import_directory_entry): New struct type.
8077 (is_linked_with_cygwin_dll): New function.
8078 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
8079 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
8080 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
8081
8082 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8083
8084 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
8085 i386_cygwin_core_osabi_sniffer.
8086
8087 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8088
8089 * i386-cygwin-tdep.c: Rename to...
8090 * i386-windows-tdep.c: ... this.
8091 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
8092 i386-windows-tdep.c.
8093 * configure.tgt: Likewise.
8094
8095 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8096
8097 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
8098 * osabi.c (gdb_osabi_names): Add "Windows".
8099 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
8100 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
8101 (i386_cygwin_core_osabi_sniffer): New function, extracted from
8102 i386_cygwin_osabi_sniffer.
8103 (_initialize_i386_cygwin_tdep): Register OS ABI
8104 GDB_OSABI_WINDOWS for i386.
8105 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
8106 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
8107 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
8108 for x86-64.
8109 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
8110 when the target matches '*-*-mingw*'.
8111
8112 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8113
8114 * defs.h (enum gdb_osabi): Move to...
8115 * osabi.h (enum gdb_osabi): ... here.
8116 * gdbarch.sh: Include osabi.h in gdbarch.h.
8117 * gdbarch.h: Re-generate.
8118
8119 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8120
8121 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
8122 function.
8123 (_initialize_amd64_windows_tdep): Register osabi sniffer.
8124
8125 2020-03-14 Tom Tromey <tom@tromey.com>
8126
8127 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
8128 for C++.
8129 (c_type_print_modifier): Likewise. Add "language" parameter.
8130 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
8131 (c_type_print_base_1): Update.
8132 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
8133 constants.
8134 * type-stack.c (type_stack::insert): Handle tp_atomic and
8135 tp_restrict.
8136 (type_stack::follow_type_instance_flags): Likewise.
8137 (type_stack::follow_types): Likewise. Merge type-following code.
8138 * c-exp.y (RESTRICT, ATOMIC): New tokens.
8139 (space_identifier, cv_with_space_id)
8140 (const_or_volatile_or_space_identifier_noopt)
8141 (const_or_volatile_or_space_identifier): Remove.
8142 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
8143 rules.
8144 (ptr_operator, typebase): Update.
8145 (enum token_flag) <FLAG_C>: New constant.
8146 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
8147 "_Atomic".
8148 (lex_one_token): Handle FLAG_C.
8149
8150 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8151
8152 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
8153 it to the ptrace call.
8154 * m68k-bsd-nat.c (store_registers): Likewise.
8155
8156 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8157
8158 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
8159 gdb_byte *.
8160 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
8161 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
8162 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
8163
8164 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8165
8166 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
8167 nbsd_nat_target instead of inf_ptrace_target.
8168 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8169 nbsd_nat_target.
8170
8171 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8172
8173 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
8174 register_t.
8175
8176 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8177
8178 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
8179 it to the ptrace call.
8180 * alpha-bsd-nat.c (store_registers): Likewise.
8181
8182 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8183
8184 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
8185 includes.
8186 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
8187 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
8188 fill_fpregset): Likewise.
8189
8190 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8191
8192 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
8193 nbsd_nat_target instead of inf_ptrace_target.
8194 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8195 nbsd_nat_target.
8196
8197 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8198
8199 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
8200 register_t.
8201
8202 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8203
8204 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
8205 it to the ptrace call.
8206 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
8207 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
8208 * arm-nbsd-nat.c (store_register): Likewise.
8209 * arm-nbsd-nat.c (store_regs): Likewise.
8210 * arm-nbsd-nat.c (store_fp_register): Likewise.
8211 * arm-nbsd-nat.c (store_fp_regs): Likewise.
8212
8213 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8214
8215 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
8216 nbsd_nat_target instead of inf_ptrace_target.
8217 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8218 nbsd_nat_target.
8219
8220 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8221
8222 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
8223 it to the ptrace call.
8224 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
8225
8226 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8227
8228 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
8229 it to the ptrace call.
8230 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
8231
8232 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8233
8234 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
8235 gdb_byte *.
8236 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
8237
8238 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8239
8240 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
8241 instead of inf_ptrace_target.
8242 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8243 nbsd_nat_target.
8244
8245 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8246
8247 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8248 register_t.
8249
8250 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8251
8252 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8253 register_t.
8254
8255 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8256
8257 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
8258 register_t.
8259
8260 2020-03-13 Tom Tromey <tom@tromey.com>
8261
8262 * value.h (val_print): Don't declare.
8263 * valprint.h (val_print_array_elements)
8264 (val_print_scalar_formatted, generic_val_print): Don't declare.
8265 * valprint.c (generic_val_print_array): Take a struct value.
8266 (generic_val_print_ptr, generic_val_print_memberptr)
8267 (generic_val_print_bool, generic_val_print_int)
8268 (generic_val_print_char, generic_val_print_complex)
8269 (generic_val_print): Remove.
8270 (generic_value_print): Update.
8271 (do_val_print): Remove unused parameters. Don't call
8272 la_val_print.
8273 (val_print): Remove.
8274 (common_val_print): Update. Don't call value_check_printable.
8275 (val_print_scalar_formatted, val_print_array_elements): Remove.
8276 * rust-lang.c (rust_val_print): Remove.
8277 (rust_language_defn): Update.
8278 * p-valprint.c (pascal_val_print): Remove.
8279 (pascal_value_print_inner): Update.
8280 (pascal_object_print_val_fields, pascal_object_print_val):
8281 Remove.
8282 (pascal_object_print_static_field): Update.
8283 * p-lang.h (pascal_val_print): Don't declare.
8284 * p-lang.c (pascal_language_defn): Update.
8285 * opencl-lang.c (opencl_language_defn): Update.
8286 * objc-lang.c (objc_language_defn): Update.
8287 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
8288 * m2-lang.h (m2_val_print): Don't declare.
8289 * m2-lang.c (m2_language_defn): Update.
8290 * language.h (struct language_defn) <la_val_print>: Remove.
8291 * language.c (unk_lang_value_print_inner): Rename. Change
8292 argument types.
8293 (unknown_language_defn, auto_language_defn): Update.
8294 * go-valprint.c (go_val_print): Remove.
8295 * go-lang.h (go_val_print): Don't declare.
8296 * go-lang.c (go_language_defn): Update.
8297 * f-valprint.c (f_val_print): Remove.
8298 * f-lang.h (f_value_print): Don't declare.
8299 * f-lang.c (f_language_defn): Update.
8300 * d-valprint.c (d_val_print): Remove.
8301 * d-lang.h (d_value_print): Don't declare.
8302 * d-lang.c (d_language_defn): Update.
8303 * cp-valprint.c (cp_print_value_fields)
8304 (cp_print_value_fields_rtti, cp_print_value): Remove.
8305 (cp_print_static_field): Update.
8306 * c-valprint.c (c_val_print_array, c_val_print_ptr)
8307 (c_val_print_struct, c_val_print_union, c_val_print_int)
8308 (c_val_print_memberptr, c_val_print): Remove.
8309 * c-lang.h (c_val_print_array, cp_print_value_fields)
8310 (cp_print_value_fields_rtti): Don't declare.
8311 * c-lang.c (c_language_defn, cplus_language_defn)
8312 (asm_language_defn, minimal_language_defn): Update.
8313 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
8314 (ada_val_print_enum): Take a struct value.
8315 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
8316 (ada_val_print): Remove.
8317 (ada_value_print_1): Update.
8318 (printable_val_type): Remove.
8319 * ada-lang.h (ada_val_print): Don't declare.
8320 * ada-lang.c (ada_language_defn): Update.
8321
8322 2020-03-13 Tom Tromey <tom@tromey.com>
8323
8324 * valprint.c (do_val_print): Update.
8325 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
8326 a struct value.
8327 (value_to_value_object_no_release): Declare.
8328 * python/py-value.c (value_to_value_object_no_release): New
8329 function.
8330 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
8331 struct value.
8332 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
8333 function.
8334 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
8335 a struct value.
8336 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
8337 Declare.
8338 (gdbscm_apply_val_pretty_printer): Take a struct value.
8339 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
8340 value.
8341 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
8342 value.
8343 * extension-priv.h (struct extension_language_ops)
8344 <apply_val_pretty_printer>: Take a struct value.
8345 * cp-valprint.c (cp_print_value): Create a struct value.
8346 (cp_print_value): Update.
8347
8348 2020-03-13 Tom Tromey <tom@tromey.com>
8349
8350 * ada-valprint.c (print_field_values): Call common_val_print.
8351
8352 2020-03-13 Tom Tromey <tom@tromey.com>
8353
8354 * ada-valprint.c (val_print_packed_array_elements): Remove
8355 bitoffset and val parameters. Call common_val_print.
8356 (ada_val_print_string): Remove offset, address, and original_value
8357 parameters.
8358 (ada_val_print_array): Update.
8359 (ada_value_print_array): New function.
8360 (ada_value_print_1): Call it.
8361
8362 2020-03-13 Tom Tromey <tom@tromey.com>
8363
8364 * ada-valprint.c (ada_value_print): Use common_val_print.
8365
8366 2020-03-13 Tom Tromey <tom@tromey.com>
8367
8368 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
8369
8370 2020-03-13 Tom Tromey <tom@tromey.com>
8371
8372 * ada-valprint.c (ada_value_print_num): New function.
8373 (ada_value_print_1): Use it.
8374
8375 2020-03-13 Tom Tromey <tom@tromey.com>
8376
8377 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8378
8379 2020-03-13 Tom Tromey <tom@tromey.com>
8380
8381 * ada-valprint.c (ada_value_print_ptr): New function.
8382 (ada_value_print_1): Use it.
8383
8384 2020-03-13 Tom Tromey <tom@tromey.com>
8385
8386 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8387 call common_val_print.
8388 (ada_val_print_1): Update.
8389 (ada_value_print_1): New function.
8390 (ada_value_print_inner): Rewrite.
8391
8392 2020-03-13 Tom Tromey <tom@tromey.com>
8393
8394 * cp-valprint.c (cp_print_value_fields): Update.
8395 (cp_print_value): New function.
8396
8397 2020-03-13 Tom Tromey <tom@tromey.com>
8398
8399 * m2-valprint.c (m2_value_print_inner): Use
8400 cp_print_value_fields.
8401 * cp-valprint.c (cp_print_value_fields): New function.
8402 * c-valprint.c (c_value_print_struct): New function.
8403 (c_value_print_inner): Use c_value_print_struct.
8404 * c-lang.h (cp_print_value_fields): Declare.
8405
8406 2020-03-13 Tom Tromey <tom@tromey.com>
8407
8408 * c-valprint.c (c_value_print_array): New function.
8409 (c_value_print_inner): Use it.
8410
8411 2020-03-13 Tom Tromey <tom@tromey.com>
8412
8413 * c-valprint.c (c_value_print_memberptr): New function.
8414 (c_value_print_inner): Use it.
8415
8416 2020-03-13 Tom Tromey <tom@tromey.com>
8417
8418 * c-valprint.c (c_value_print_int): New function.
8419 (c_value_print_inner): Use it.
8420
8421 2020-03-13 Tom Tromey <tom@tromey.com>
8422
8423 * c-valprint.c (c_value_print_ptr): New function.
8424 (c_value_print_inner): Use it.
8425
8426 2020-03-13 Tom Tromey <tom@tromey.com>
8427
8428 * c-valprint.c (c_value_print_inner): Rewrite.
8429
8430 2020-03-13 Tom Tromey <tom@tromey.com>
8431
8432 * valprint.c (generic_value_print_complex): New function.
8433 (generic_value_print): Use it.
8434
8435 2020-03-13 Tom Tromey <tom@tromey.com>
8436
8437 * valprint.c (generic_val_print_float): Don't call
8438 val_print_scalar_formatted.
8439 (generic_val_print, generic_value_print): Update.
8440
8441 2020-03-13 Tom Tromey <tom@tromey.com>
8442
8443 * valprint.c (generic_value_print_char): New function
8444 (generic_value_print): Use it.
8445
8446 2020-03-13 Tom Tromey <tom@tromey.com>
8447
8448 * valprint.c (generic_value_print_int): New function.
8449 (generic_value_print): Use it.
8450
8451 2020-03-13 Tom Tromey <tom@tromey.com>
8452
8453 * valprint.c (generic_value_print_bool): New function.
8454 (generic_value_print): Use it.
8455
8456 2020-03-13 Tom Tromey <tom@tromey.com>
8457
8458 * valprint.c (generic_val_print_func): Simplify.
8459 (generic_val_print, generic_value_print): Update.
8460
8461 2020-03-13 Tom Tromey <tom@tromey.com>
8462
8463 * valprint.c (generic_val_print_flags): Remove.
8464 (generic_val_print, generic_value_print): Update.
8465 (val_print_type_code_flags): Add original_value parameter.
8466
8467 2020-03-13 Tom Tromey <tom@tromey.com>
8468
8469 * valprint.c (generic_val_print): Update.
8470 (generic_value_print): Update.
8471 * valprint.c (generic_val_print_enum): Don't call
8472 val_print_scalar_formatted.
8473
8474 2020-03-13 Tom Tromey <tom@tromey.com>
8475
8476 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8477 * valprint.c (generic_value_print_ptr): New function.
8478
8479 2020-03-13 Tom Tromey <tom@tromey.com>
8480
8481 * valprint.c (generic_value_print): Rewrite.
8482
8483 2020-03-13 Tom Tromey <tom@tromey.com>
8484
8485 * p-valprint.c (pascal_object_print_value_fields)
8486 (pascal_object_print_value): New functions.
8487
8488 2020-03-13 Tom Tromey <tom@tromey.com>
8489
8490 * p-valprint.c (pascal_value_print_inner): Rewrite.
8491
8492 2020-03-13 Tom Tromey <tom@tromey.com>
8493
8494 * f-valprint.c (f_value_print_innner): Rewrite.
8495
8496 2020-03-13 Tom Tromey <tom@tromey.com>
8497
8498 * m2-valprint.c (m2_print_unbounded_array): New overload.
8499 (m2_print_unbounded_array): Update.
8500 (m2_print_array_contents): Take a struct value.
8501 (m2_value_print_inner): Rewrite.
8502
8503 2020-03-13 Tom Tromey <tom@tromey.com>
8504
8505 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8506 (d_value_print_inner): New function.
8507 * d-lang.h (d_value_print_inner): Declare.
8508 * d-lang.c (d_language_defn): Use d_value_print_inner.
8509
8510 2020-03-13 Tom Tromey <tom@tromey.com>
8511
8512 * go-valprint.c (go_value_print_inner): New function.
8513 * go-lang.h (go_value_print_inner): Declare.
8514 * go-lang.c (go_language_defn): Use go_value_print_inner.
8515
8516 2020-03-13 Tom Tromey <tom@tromey.com>
8517
8518 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8519 API.
8520 (rust_val_print): Rewrite.
8521 (rust_value_print_inner): New function, from rust_val_print.
8522 (rust_language_defn): Use rust_value_print_inner.
8523
8524 2020-03-13 Tom Tromey <tom@tromey.com>
8525
8526 * ada-valprint.c (ada_value_print_inner): New function.
8527 * ada-lang.h (ada_value_print_inner): Declare.
8528 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8529
8530 2020-03-13 Tom Tromey <tom@tromey.com>
8531
8532 * f-valprint.c (f_value_print_innner): New function.
8533 * f-lang.h (f_value_print_innner): Declare.
8534 * f-lang.c (f_language_defn): Use f_value_print_innner.
8535
8536 2020-03-13 Tom Tromey <tom@tromey.com>
8537
8538 * p-valprint.c (pascal_value_print_inner): New function.
8539 * p-lang.h (pascal_value_print_inner): Declare.
8540 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8541
8542 2020-03-13 Tom Tromey <tom@tromey.com>
8543
8544 * m2-valprint.c (m2_value_print_inner): New function.
8545 * m2-lang.h (m2_value_print_inner): Declare.
8546 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8547
8548 2020-03-13 Tom Tromey <tom@tromey.com>
8549
8550 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8551 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8552 * c-valprint.c (c_value_print_inner): New function.
8553 * c-lang.h (c_value_print_inner): Declare.
8554 * c-lang.c (c_language_defn, cplus_language_defn)
8555 (asm_language_defn, minimal_language_defn): Use
8556 c_value_print_inner.
8557
8558 2020-03-13 Tom Tromey <tom@tromey.com>
8559
8560 * p-valprint.c (pascal_object_print_value_fields): Now static.
8561 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8562
8563 2020-03-13 Tom Tromey <tom@tromey.com>
8564
8565 * c-valprint.c (c_val_print_array): Simplify.
8566
8567 2020-03-13 Tom Tromey <tom@tromey.com>
8568
8569 * valprint.c (value_print_array_elements): New function.
8570 * valprint.h (value_print_array_elements): Declare.
8571
8572 2020-03-13 Tom Tromey <tom@tromey.com>
8573
8574 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8575 * mips-tdep.c (mips_print_register): Use
8576 value_print_scalar_formatted.
8577
8578 2020-03-13 Tom Tromey <tom@tromey.com>
8579
8580 * valprint.h (value_print_scalar_formatted): Declare.
8581 * valprint.c (value_print_scalar_formatted): New function.
8582
8583 2020-03-13 Tom Tromey <tom@tromey.com>
8584
8585 * valprint.h (generic_value_print): Declare.
8586 * valprint.c (generic_value_print): New function.
8587
8588 2020-03-13 Tom Tromey <tom@tromey.com>
8589
8590 * valprint.c (do_val_print): Call la_value_print_inner, if
8591 available.
8592 * rust-lang.c (rust_language_defn): Update.
8593 * p-lang.c (pascal_language_defn): Update.
8594 * opencl-lang.c (opencl_language_defn): Update.
8595 * objc-lang.c (objc_language_defn): Update.
8596 * m2-lang.c (m2_language_defn): Update.
8597 * language.h (struct language_defn) <la_value_print_inner>: New
8598 member.
8599 * language.c (unknown_language_defn, auto_language_defn): Update.
8600 * go-lang.c (go_language_defn): Update.
8601 * f-lang.c (f_language_defn): Update.
8602 * d-lang.c (d_language_defn): Update.
8603 * c-lang.c (c_language_defn, cplus_language_defn)
8604 (asm_language_defn, minimal_language_defn): Update.
8605 * ada-lang.c (ada_language_defn): Update.
8606
8607 2020-03-13 Tom Tromey <tom@tromey.com>
8608
8609 * c-valprint.c (c_value_print): Use common_val_print.
8610
8611 2020-03-13 Tom Tromey <tom@tromey.com>
8612
8613 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8614
8615 2020-03-13 Tom Tromey <tom@tromey.com>
8616
8617 * f-valprint.c (f77_print_array_1, f_val_print): Use
8618 common_val_print.
8619
8620 2020-03-13 Tom Tromey <tom@tromey.com>
8621
8622 * riscv-tdep.c (riscv_print_one_register_info): Use
8623 common_val_print.
8624
8625 2020-03-13 Tom Tromey <tom@tromey.com>
8626
8627 * mi/mi-main.c (output_register): Use common_val_print.
8628
8629 2020-03-13 Tom Tromey <tom@tromey.com>
8630
8631 * infcmd.c (default_print_one_register_info): Use
8632 common_val_print.
8633
8634 2020-03-13 Tom Tromey <tom@tromey.com>
8635
8636 * valprint.h (common_val_print_checked): Declare.
8637 * valprint.c (common_val_print_checked): New function.
8638 * stack.c (print_frame_arg): Use common_val_print_checked.
8639
8640 2020-03-13 Tom Tromey <tom@tromey.com>
8641
8642 * valprint.c (do_val_print): New function, from val_print.
8643 (val_print): Use do_val_print.
8644 (common_val_print): Use do_val_print.
8645
8646 2020-03-13 Tom Tromey <tom@tromey.com>
8647
8648 * valprint.c (value_print): Use scoped_value_mark.
8649
8650 2020-03-13 Tom de Vries <tdevries@suse.de>
8651
8652 PR symtab/25646
8653 * psymtab.c (partial_symtab::partial_symtab): Don't set
8654 globals_offset and statics_offset. Push element onto
8655 current_global_psymbols and current_static_psymbols stacks.
8656 (concat): New function.
8657 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8658 element from current_global_psymbols and current_static_psymbols
8659 stacks. Concat popped elements to global_psymbols and
8660 static_symbols.
8661 (add_psymbol_to_list): Use current_global_psymbols and
8662 current_static_psymbols stacks.
8663 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8664 current_static_psymbols fields.
8665
8666 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8667
8668 * corelow.c (sniff_core_bfd): Remove.
8669 (class core_target) <m_core_vec>: Remove.
8670 (core_target::core_target): Update.
8671 (core_file_fns): Remove.
8672 (deprecated_add_core_fns): Remove.
8673 (default_core_sniffer): Remove.
8674 (sniff_core_bfd): Remove.
8675 (default_check_format): Remove.
8676 (gdb_check_format): Remove.
8677 (core_target_open): Update.
8678 (core_target::get_core_register_section): Update.
8679 (get_core_registers_cb): Update.
8680 (core_target::fetch_registers): Update.
8681 * gdbcore.h (struct core_fns): Remove.
8682 (deprecated_add_core_fns): Remove.
8683 (default_core_sniffer): Remove.
8684 (default_check_format): Remove.
8685
8686 2020-03-12 Tom Tromey <tom@tromey.com>
8687
8688 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8689 CORE_ADDR.
8690 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8691
8692 2020-03-12 Tom Tromey <tom@tromey.com>
8693
8694 * remote.c (remote_target::download_tracepoint)
8695 (remote_target::enable_tracepoint)
8696 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8697 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8698 sprintf_vma.
8699
8700 2020-03-12 Tom Tromey <tom@tromey.com>
8701
8702 * symfile-mem.c: Update CORE_ADDR size assert.
8703
8704 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8705
8706 * selftest.m4: Move to gdbsupport/.
8707 * acinclude.m4: Update path to selftest.m4.
8708
8709 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8710
8711 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8712 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8713 gdbarch-selfselftests.c and selftest-arch.c.
8714 (SUBDIR_UNITTESTS_OBS): Rename to...
8715 (SELFTESTS_OBS): ... this.
8716 (COMMON_SFILES): Remove disasm-selftests.c and
8717 gdbarch-selftests.c.
8718 * configure.ac: Don't add selftest-arch.{c,o} to
8719 CONFIG_{SRCS,OBS}.
8720 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8721 preprocessor conditions.
8722
8723 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8724
8725 * configure.ac: Don't source bfd/development.sh.
8726 * selftest.m4: Modify comment.
8727 * configure: Re-generate.
8728
8729 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8730
8731 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8732 not "true" or "false".
8733 * configure: Re-generate.
8734
8735 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8736
8737 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8738 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8739 renamed to arm_nbsd_supply_gregset.
8740 (fetch_register): Update to call arm_nbsd_supply_gregset.
8741 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8742 (arm_netbsd_nat_target::fetch_registers): Update.
8743 (fetch_elfcore_registers): Removed.
8744 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8745 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8746 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8747 not require NetBSD system headers.
8748 (arm_nbsd_regset): New struct.
8749 (arm_nbsd_iterate_over_regset_sections): New function.
8750 (arm_netbsd_init_abi_common): Updated to call
8751 set_gdbarch_iterate_over_regset_sections.
8752 * arm-nbsd-tdep.h: New file.
8753
8754 2020-03-11 Kevin Buettner <kevinb@redhat.com>
8755
8756 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8757 recursion.
8758
8759 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
8760
8761 * configure: Re-generate.
8762
8763 2020-03-11 Tom Tromey <tromey@adacore.com>
8764
8765 * ada-typeprint.c (print_choices): Fix comment.
8766
8767 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8768
8769 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8770 previous item in the list, when the list has no items.
8771
8772 2020-03-11 Tom de Vries <tdevries@suse.de>
8773
8774 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8775 PROP_LOCLIST handling code.
8776
8777 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8778
8779 * buildsym-legacy.c (record_line): Pass extra parameter to
8780 record_line.
8781 * buildsym.c (buildsym_compunit::record_line): Take an extra
8782 parameter, reduce duplication in the line table, and record the
8783 is_stmt flag in the line table.
8784 * buildsym.h (buildsym_compunit::record_line): Add extra
8785 parameter.
8786 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8787 non-statement lines.
8788 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8789 this to the symtab builder.
8790 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8791 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8792 through to dwarf_record_line_1.
8793 * infrun.c (process_event_stop_test): When stepping, don't stop at
8794 a non-statement instruction, and only refresh the step info when
8795 we land in the middle of a line's range. Also add an extra
8796 comment.
8797 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8798 field.
8799 * record-btrace.c (btrace_find_line_range): Only record lines
8800 marked as is-statement.
8801 * stack.c (frame_show_address): Show the frame address if we are
8802 in a non-statement sal.
8803 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8804 (maintenance_print_one_line_table): Print a header for the is_stmt
8805 column, and include is_stmt information in the output.
8806 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8807 preference to non-statements.
8808 (find_pcs_for_symtab_line): Prefer is-statement entries.
8809 (find_line_common): Likewise.
8810 * symtab.h (struct linetable_entry): Add is_stmt field.
8811 (struct symtab_and_line): Likewise.
8812 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8813 arranging the line table.
8814
8815 2020-03-07 Tom de Vries <tdevries@suse.de>
8816
8817 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8818 DIE.
8819
8820 2020-03-07 Tom Tromey <tom@tromey.com>
8821
8822 * valops.c (value_literal_complex): Remove obsolete comment.
8823 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8824 comment.
8825
8826 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8827
8828 * infrun.h: Forward-declare thread_info.
8829 (set_step_info): Add thread_info parameter, add doc.
8830 * infrun.c (set_step_info): Add thread_info parameter, move doc
8831 to header.
8832 * infrun.c (process_event_stop_test): Pass thread to
8833 set_step_info call.
8834 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8835 set_step_info.
8836 (prepare_one_step): Add thread_info parameter, pass it to
8837 set_step_frame and prepare_one_step (recursive) call.
8838 (step_1): Pass thread to prepare_one_step call.
8839 (step_command_fsm::should_stop): Pass thread to
8840 prepare_one_step.
8841 (until_next_fsm): Pass thread to set_step_frame call.
8842 (finish_command): Pass thread to set_step_info call.
8843
8844 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
8845
8846 * windows-tdep.c (windows_solib_create_inferior_hook):
8847 Check if inferior is running.
8848
8849 2020-03-06 Tom de Vries <tdevries@suse.de>
8850
8851 * NEWS: Fix "the the".
8852 * ctfread.c: Same.
8853
8854 2020-03-06 Tom de Vries <tdevries@suse.de>
8855
8856 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8857
8858 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8859
8860 * .dir-locals.el: Add a comment referencing the other copies of
8861 this file.
8862
8863 2020-03-05 John Baldwin <jhb@FreeBSD.org>
8864
8865 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8866 psargs.
8867
8868 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8869
8870 * .gitattributes: New file.
8871
8872 2020-03-04 Tom Tromey <tom@tromey.com>
8873
8874 * symmisc.c (print_symbol_bcache_statistics)
8875 (print_objfile_statistics): Update.
8876 * symfile.c (allocate_symtab): Use intern.
8877 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8878 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8879 macro_cache>: Remove.
8880 <string_cache>: New member.
8881 (struct objfile) <intern>: New methods.
8882 * elfread.c (elf_symtab_read): Use intern.
8883 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8884 (dwarf2_compute_name, dwarf2_physname)
8885 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8886 names.
8887 (guess_partial_die_structure_name): Update.
8888 (partial_die_info::fixup): Intern name.
8889 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8890 name.
8891 (dwarf2_name): Intern name. Update.
8892 * buildsym.c (buildsym_compunit::get_macro_table): Use
8893 string_cache.
8894
8895 2020-03-04 Tom Tromey <tom@tromey.com>
8896
8897 * jit.c (bfd_open_from_target_memory): Make "target" const.
8898 * corefile.c (gnutarget): Now const.
8899 * gdbcore.h (gnutarget): Now const.
8900
8901 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
8902
8903 * NEWS: Mention support for WOW64 processes.
8904 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8905 (amd64_windows_segment_register_p): Remove static.
8906 (_initialize_amd64_windows_nat): Update.
8907 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8908 * i386-windows-nat.c (context_offset): Update.
8909 (i386_mappings): Rename and remove static.
8910 (i386_windows_segment_register_p): Remove static.
8911 (_initialize_i386_windows_nat): Update.
8912 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8913 (STATUS_WX86_SINGLE_STEP): New macro.
8914 (EnumProcessModulesEx): New macro.
8915 (Wow64SuspendThread): New macro.
8916 (Wow64GetThreadContext): New macro.
8917 (Wow64SetThreadContext): New macro.
8918 (Wow64GetThreadSelectorEntry): New macro.
8919 (windows_set_context_register_offsets): Add static.
8920 (windows_set_segment_register_p): Likewise.
8921 (windows_add_thread): Adapt for WOW64 processes.
8922 (windows_fetch_one_register): Likewise.
8923 (windows_nat_target::fetch_registers): Likewise.
8924 (windows_store_one_register): Likewise.
8925 (display_selector): Likewise.
8926 (display_selectors): Likewise.
8927 (handle_exception): Likewise.
8928 (windows_continue): Likewise.
8929 (windows_nat_target::resume): Likewise.
8930 (windows_add_all_dlls): Likewise.
8931 (do_initial_windows_stuff): Likewise.
8932 (windows_nat_target::attach): Likewise.
8933 (windows_get_exec_module_filename): Likewise.
8934 (windows_nat_target::create_inferior): Likewise.
8935 (windows_xfer_siginfo): Likewise.
8936 (_initialize_loadable): Initialize Wow64SuspendThread,
8937 Wow64GetThreadContext, Wow64SetThreadContext,
8938 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8939 * windows-nat.h (windows_set_context_register_offsets):
8940 Remove declaration.
8941 (windows_set_segment_register_p): Likewise.
8942 (i386_windows_segment_register_p): Add declaration.
8943 (amd64_windows_segment_register_p): Likewise.
8944
8945 2020-03-04 Luis Machado <luis.machado@linaro.org>
8946
8947 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8948 in "info registers" for AArch64/ARM.
8949
8950 The change caused "info registers" to not print GPR's.
8951
8952 gdb/ChangeLog:
8953
8954 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8955
8956 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8957 when reg->group is empty and reggroup is not.
8958
8959 2020-03-03 Tom Tromey <tromey@adacore.com>
8960
8961 * dwarf2/frame.c (struct dwarf2_frame_cache)
8962 <checked_tailcall_bottom, entry_cfa_sp_offset,
8963 entry_cfa_sp_offset_p>: Remove members.
8964 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8965 (dwarf2_frame_prev_register): Don't call
8966 dwarf2_tailcall_sniffer_first.
8967 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8968 * frame-unwind.c (add_unwinder): New fuction.
8969 (frame_unwind_init): Use it. Add tailcall unwinder.
8970
8971 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8972 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8973
8974 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8975 value should be printed as true.
8976
8977 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
8978
8979 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8980 (windows_init_abi): Set and use windows_so_ops.
8981
8982 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8983
8984 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8985 when verifying if dealing with a convenience variable.
8986
8987 2020-03-03 Luis Machado <luis.machado@linaro.org>
8988
8989 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8990
8991 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8992
8993 * infrun.c (gdbarch_supports_displaced_stepping): New.
8994 (use_displaced_stepping): Break up conditions in smaller pieces.
8995 Use gdbarch_supports_displaced_stepping.
8996 (displaced_step_prepare_throw): Use
8997 gdbarch_supports_displaced_stepping.
8998
8999 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9000
9001 * NEWS: Mention new behaviour of the history filename.
9002 * top.c (write_history_p): Add comment.
9003 (show_write_history_p): Add header comment, give a different
9004 message when history writing is on, but the history filename is
9005 empty.
9006 (history_filename): Add comment.
9007 (history_filename_empty): New function.
9008 (show_history_filename): Add header comment, give a different
9009 message when the filename is empty.
9010 (init_history): Compare history_filename against nullptr, and only
9011 read history if the filename is not empty.
9012 (set_history_filename): Add header comment, and only make
9013 non-empty filenames absolute.
9014 (init_main): Make the filename argument to 'set history filename'
9015 optional.
9016
9017 2020-03-02 Christian Biesinger <cbiesinger@google.com>
9018
9019 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
9020 (arm_supply_vfpregset): ...this, and update to use VFP registers.
9021 (fetch_fp_register): Update.
9022 (fetch_fp_regs): Update.
9023 (store_fp_register): Update.
9024 (store_fp_regs): Update.
9025 (arm_netbsd_nat_target::read_description): New function.
9026 (fetch_elfcore_registers): Update.
9027
9028 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9029
9030 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
9031 general_thread if the stop reply is missing a thread-id.
9032 (remote_target::process_stop_reply): Use the first non-exited
9033 thread if the target didn't pass a thread-id.
9034 * infrun.c (do_target_wait): Move call to
9035 switch_to_inferior_no_thread to ....
9036 (do_target_wait_1): ... here.
9037
9038 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
9039
9040 * debuginfod-support.c: Include defs.h first.
9041
9042 2020-02-28 Tom de Vries <tdevries@suse.de>
9043
9044 * symfile.c (set_initial_language): Use default language for lookup.
9045
9046 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
9047
9048 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
9049 reader variable, pass `this` to read_cutu_die_from_dwo.
9050
9051 2020-02-27 Aaron Merey <amerey@redhat.com>
9052
9053 * source.c (open_source_file): Check for nullptr when computing
9054 srcpath.
9055
9056 2020-02-27 Tom Tromey <tromey@adacore.com>
9057
9058 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
9059 member.
9060 (dwarf2_add_field): Don't update nfields.
9061 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
9062
9063 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9064
9065 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
9066 abs.
9067
9068 2020-02-26 Tom Tromey <tom@tromey.com>
9069
9070 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
9071 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
9072 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
9073 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
9074 per_cu_data.
9075
9076 2020-02-26 Tom Tromey <tom@tromey.com>
9077
9078 * dwarf2/index-write.c (psym_index_map): Change type.
9079 (add_address_entry_worker, write_one_signatured_type)
9080 (recursively_count_psymbols, recursively_write_psymbols)
9081 (class debug_names, psyms_seen_size, write_gdbindex)
9082 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
9083
9084 2020-02-26 Aaron Merey <amerey@redhat.com>
9085
9086 * Makefile.in: Handle optional debuginfod support.
9087 * NEWS: Update.
9088 * README: Add --with-debuginfod summary.
9089 * config.in: Regenerate.
9090 * configure: Regenerate.
9091 * configure.ac: Handle optional debuginfod support.
9092 * debuginfod-support.c: debuginfod helper functions.
9093 * debuginfod-support.h: Ditto.
9094 * doc/gdb.texinfo: Add --with-debuginfod to configure options
9095 summary.
9096 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
9097 when a dwz file cannot be found.
9098 * elfread.c (elf_symfile_read): Query debuginfod servers when a
9099 debuginfo file cannot be found.
9100 * source.c (open_source_file): Query debuginfod servers when a
9101 source file cannot be found.
9102 * top.c (print_gdb_configuration): Include
9103 --{with,without}-debuginfod in the output.
9104
9105 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
9106
9107 * thread.c (thr_try_catch_cmd): Print thread name.
9108
9109 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
9110
9111 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
9112 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9113 dwarf2_fetch_die_type_sect_off): Move to...
9114 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9115 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9116 dwarf2_fetch_die_type_sect_off): ... here.
9117 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9118 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9119 dwarf2_fetch_die_type_sect_off): Move doc to header file.
9120
9121 2020-02-26 Tom de Vries <tdevries@suse.de>
9122
9123 PR gdb/25603
9124 * symfile.c (set_initial_language): Exit-early if
9125 language_mode == language_mode_manual.
9126
9127 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9128
9129 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
9130 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
9131 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
9132
9133 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
9134
9135 * gdbtypes.c (create_array_type_with_stride): Handle negative
9136 array strides.
9137 * valarith.c (value_subscripted_rvalue): Likewise.
9138
9139 2020-02-25 Luis Machado <luis.machado@linaro.org>
9140
9141 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
9142
9143 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9144
9145 * loc.h (dwarf2_get_die_type): Move to...
9146 * read.h (dwarf2_get_die_type): ... here.
9147 * read.c (dwarf2_get_die_type): Move doc to header.
9148
9149 2020-02-25 Joel Brobecker <brobecker@adacore.com>
9150
9151 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
9152 'gnulib/Makefile.in' to the list.
9153
9154 2020-02-24 Tom Tromey <tom@tromey.com>
9155
9156 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
9157 Remove.
9158 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
9159 XOBNEWVEC.
9160
9161 2020-02-24 Tom Tromey <tom@tromey.com>
9162
9163 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
9164 New method.
9165 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
9166 (dw2_do_instantiate_symtab, dw2_get_file_names)
9167 (build_type_psymtab_dependencies, load_full_type_unit): Update.
9168
9169 2020-02-24 Tom Tromey <tom@tromey.com>
9170
9171 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
9172 make_scoped_restore.
9173 (dwarf2_psymtab::read_symtab): Don't clear
9174 reading_partial_symbols.
9175
9176 2020-02-24 Tom de Vries <tdevries@suse.de>
9177
9178 PR gdb/25592
9179 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
9180
9181 2020-02-24 Tom de Vries <tdevries@suse.de>
9182
9183 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
9184 commands layout next/prev/regs.
9185
9186 2020-02-22 Tom Tromey <tom@tromey.com>
9187
9188 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
9189 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
9190
9191 2020-02-22 Tom Tromey <tom@tromey.com>
9192
9193 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
9194
9195 2020-02-22 Tom Tromey <tom@tromey.com>
9196
9197 * tui/tui-win.c (_initialize_tui_win): Add usage text.
9198 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
9199 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
9200 * tui/tui.c (_initialize_tui): Add usage text.
9201
9202 2020-02-22 Tom Tromey <tom@tromey.com>
9203
9204 * tui/tui-win.c (tui_set_focus_command)
9205 (tui_set_win_height_command): Use error_no_arg.
9206 (_initialize_tui_win): Update help text.
9207 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
9208
9209 2020-02-22 Tom Tromey <tom@tromey.com>
9210
9211 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
9212 * tui/tui-disasm.h (struct tui_disasm_window)
9213 <display_start_addr>: Declare.
9214 * tui/tui-source.h (struct tui_source_window)
9215 <display_start_addr>: Declare.
9216 * tui/tui-winsource.h (struct tui_source_window_base)
9217 <show_source_line, display_start_addr>: New methods.
9218 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
9219 Rename and move to protected section.
9220 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
9221 (tui_source_window_base::do_erase_source_content): Update.
9222 (tui_source_window_base::show_source_line): Now a method.
9223 (tui_source_window_base::show_source_content)
9224 (tui_source_window_base::tui_source_window_base)
9225 (tui_source_window_base::rerender)
9226 (tui_source_window_base::refill)
9227 (tui_source_window_base::do_scroll_horizontal)
9228 (tui_source_window_base::set_is_exec_point_at)
9229 (tui_source_window_base::update_breakpoint_info)
9230 (tui_source_window_base::update_exec_info): Update.
9231 * tui/tui-source.c (tui_source_window::set_contents)
9232 (tui_source_window::showing_source_p)
9233 (tui_source_window::do_scroll_vertical)
9234 (tui_source_window::location_matches_p)
9235 (tui_source_window::line_is_displayed): Update.
9236 (tui_source_window::display_start_addr): New method.
9237 * tui/tui-disasm.c (tui_disasm_window::set_contents)
9238 (tui_disasm_window::do_scroll_vertical)
9239 (tui_disasm_window::location_matches_p): Update.
9240 (tui_disasm_window::display_start_addr): New method.
9241
9242 2020-02-22 Tom Tromey <tom@tromey.com>
9243
9244 * NEWS: Add entry for gdb.register_window_type.
9245 * tui/tui-layout.h (window_factory): New typedef.
9246 (tui_register_window): Declare.
9247 * tui/tui-layout.c (saved_tui_windows): New global.
9248 (tui_apply_current_layout): Use it.
9249 (tui_register_window): New function.
9250 * python/python.c (do_start_initialization): Call
9251 gdbpy_initialize_tui.
9252 (python_GdbMethods): Add "register_window_type" function.
9253 * python/python-internal.h (gdbpy_register_tui_window)
9254 (gdbpy_initialize_tui): Declare.
9255 * python/py-tui.c: New file.
9256 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
9257
9258 2020-02-22 Tom Tromey <tom@tromey.com>
9259
9260 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
9261
9262 2020-02-22 Tom Tromey <tom@tromey.com>
9263
9264 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
9265 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
9266 * tui/tui-data.c (tui_set_win_with_focus): Remove.
9267 (tui_set_win_focus_to): Move from tui-win.c.
9268
9269 2020-02-22 Tom Tromey <tom@tromey.com>
9270
9271 * tui/tui-layout.c (make_standard_window, get_locator_window): New
9272 functions.
9273 (known_window_types): New global.
9274 (tui_get_window_by_name): Reimplement.
9275 (initialize_known_windows): New function.
9276 (validate_window_name): Rewrite.
9277 (_initialize_tui_layout): Call initialize_known_windows.
9278
9279 2020-02-22 Tom Tromey <tom@tromey.com>
9280
9281 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
9282 Remove constants.
9283 * tui/tui-winsource.h (struct tui_source_window_base)
9284 <tui_source_window_base>: Remove parameter.
9285 * tui/tui-winsource.c
9286 (tui_source_window_base::tui_source_window_base): Remove
9287 parameter.
9288 (tui_source_window_base::refill): Update.
9289 * tui/tui-stack.h (struct tui_locator_window)
9290 <tui_locator_window>: Update.
9291 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
9292 Default the constructor.
9293 * tui/tui-regs.h (struct tui_data_item_window)
9294 <tui_data_item_window>: Default the constructor.
9295 (struct tui_data_window) <tui_data_window>: Likewise.
9296 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
9297 Default the constructor.
9298 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
9299 Default the constructor.
9300 <type>: Remove.
9301 (struct tui_win_info) <tui_win_info>: Default the constructor.
9302 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
9303 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
9304 Default the constructor.
9305
9306 2020-02-22 Tom Tromey <tom@tromey.com>
9307
9308 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
9309 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
9310 * tui/tui-win.c (tui_resize_all): Don't call
9311 tui_delete_invisible_windows.
9312 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
9313 done.
9314 (tui_set_layout): Update.
9315 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
9316 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
9317 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
9318
9319 2020-02-22 Tom Tromey <tom@tromey.com>
9320
9321 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
9322 correctly.
9323
9324 2020-02-22 Tom Tromey <tom@tromey.com>
9325
9326 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
9327
9328 2020-02-22 Tom Tromey <tom@tromey.com>
9329
9330 * tui/tui-winsource.h (struct tui_source_window_iterator)
9331 <inner_iterator>: New etytypedef.
9332 <tui_source_window_iterator>: Take "end" parameter.
9333 <tui_source_window_iterator>: Take iterator.
9334 <operator*, advance>: Update.
9335 <m_iter>: Change type.
9336 <m_end>: New field.
9337 (struct tui_source_windows) <begin, end>: Update.
9338 * tui/tui-layout.c (tui_windows): New global.
9339 (tui_apply_current_layout): Clear tui_windows.
9340 (tui_layout_window::apply): Update tui_windows.
9341 * tui/tui-data.h (tui_windows): Declare.
9342 (all_tui_windows): Now inline function.
9343 (class tui_window_iterator, struct all_tui_windows): Remove.
9344
9345 2020-02-22 Tom Tromey <tom@tromey.com>
9346
9347 PR tui/17850:
9348 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
9349 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
9350 "height" argument.
9351 (class tui_layout_window) <get_sizes>: Likewise.
9352 (class tui_layout_split) <tui_layout_split>: Add "vertical"
9353 argument.
9354 <get_sizes>: Add "height" argument.
9355 <m_vertical>: New field.
9356 * tui/tui-layout.c (tui_layout_split::clone): Update.
9357 (tui_layout_split::get_sizes): Add "height" argument.
9358 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
9359 (tui_new_layout_command): Parse "-horizontal".
9360 (_initialize_tui_layout): Update help string.
9361 (tui_layout_split::specification): Add "-horizontal" when needed.
9362 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
9363 argument.
9364 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
9365 New methods.
9366
9367 2020-02-22 Tom Tromey <tom@tromey.com>
9368
9369 * tui/tui-layout.h (enum tui_adjust_result): New.
9370 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
9371 (class tui_layout_window) <adjust_size>: Return
9372 tui_adjust_result. Rewrite.
9373 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9374 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9375
9376 2020-02-22 Tom Tromey <tom@tromey.com>
9377
9378 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9379 parameter and return types.
9380 (class tui_layout_base) <specification>: Add "depth".
9381 (class tui_layout_window) <specification>: Add "depth".
9382 (class tui_layout_split) <specification>: Add "depth".
9383 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9384 and return types.
9385 (tui_new_layout_command): Parse sub-layouts.
9386 (_initialize_tui_layout): Update help string.
9387 (tui_layout_window::specification): Add "depth".
9388 (add_layout_command): Update.
9389
9390 2020-02-22 Tom Tromey <tom@tromey.com>
9391
9392 * NEWS: Add "tui new-layout" item.
9393 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9394 Add new-layout command to help text.
9395 (validate_window_name): New function.
9396 (tui_new_layout_command): New function.
9397 (_initialize_tui_layout): Register "new-layout".
9398 (tui_layout_window::specification): New method.
9399 (tui_layout_window::specification): New method.
9400 * tui/tui-layout.h (class tui_layout_base) <specification>: New
9401 method.
9402 (class tui_layout_window) <specification>: New method.
9403 (class tui_layout_split) <specification>: New method.
9404
9405 2020-02-22 Tom Tromey <tom@tromey.com>
9406
9407 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9408 * tui/tui-win.c (window_name_completer): Update comment.
9409 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9410 Declare method.
9411 (class tui_layout_window) <replace_window>: Likewise.
9412 (class tui_layout_split) <replace_window>: Likewise.
9413 (tui_set_layout): Don't declare.
9414 (tui_set_initial_layout): Declare function.
9415 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9416 (asm_regs_layout): New globals.
9417 (tui_current_layout, show_layout): Remove.
9418 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9419 (find_layout, tui_apply_layout): New function.
9420 (layout_completer): Remove.
9421 (tui_next_layout): Reimplement.
9422 (tui_next_layout_command): New function.
9423 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9424 (tui_regs_layout): Reimplement.
9425 (tui_regs_layout_command): New function.
9426 (extract_display_start_addr): Rewrite.
9427 (next_layout, prev_layout): Remove.
9428 (tui_layout_window::replace_window): New method.
9429 (tui_layout_split::replace_window): New method.
9430 (destroy_layout): New function.
9431 (layout_list): New global.
9432 (add_layout_command): New function.
9433 (initialize_layouts): Update.
9434 (tui_layout_command): New function.
9435 (_initialize_tui_layout): Install "layout" commands.
9436 * tui/tui-data.h (enum tui_layout_type): Remove.
9437 (tui_current_layout): Don't declare.
9438
9439 2020-02-22 Tom Tromey <tom@tromey.com>
9440
9441 * tui/tui-regs.c (tui_reg_layout): Remove.
9442 (tui_reg_command): Use tui_regs_layout.
9443 * tui/tui-layout.h (tui_reg_command): Declare.
9444 * tui/tui-layout.c (tui_reg_command): New function.
9445
9446 2020-02-22 Tom Tromey <tom@tromey.com>
9447
9448 * tui/tui.c (tui_rl_delete_other_windows): Call
9449 tui_remove_some_windows.
9450 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9451 Declare method.
9452 (class tui_layout_window) <remove_windows>: New method.
9453 (class tui_layout_split) <remove_windows>: Declare.
9454 (tui_remove_some_windows): Declare.
9455 * tui/tui-layout.c (tui_remove_some_windows): New function.
9456 (tui_layout_split::remove_windows): New method.
9457
9458 2020-02-22 Tom Tromey <tom@tromey.com>
9459
9460 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9461 * tui/tui-layout.h (tui_next_layout): Declare.
9462 * tui/tui-layout.c (tui_next_layout): New function.
9463
9464 2020-02-22 Tom Tromey <tom@tromey.com>
9465
9466 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9467 correct coordinates.
9468
9469 2020-02-22 Tom Tromey <tom@tromey.com>
9470
9471 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9472 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9473 DATA_WIN case.
9474
9475 2020-02-22 Tom Tromey <tom@tromey.com>
9476
9477 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9478 TUI_DISASM_WIN, not tui_win_list.
9479
9480 2020-02-22 Tom Tromey <tom@tromey.com>
9481
9482 * valprint.c (generic_val_print_enum_1)
9483 (val_print_type_code_flags): Style member names.
9484 * rust-lang.c (val_print_struct, rust_print_enum)
9485 (rust_print_struct_def, rust_internal_print_type): Style member
9486 names.
9487 * p-valprint.c (pascal_object_print_value_fields): Style member
9488 names. Only call fprintf_symbol_filtered for static members.
9489 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9490 * f-valprint.c (f_val_print): Style member names.
9491 * f-typeprint.c (f_type_print_base): Style member names.
9492 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9493 call fprintf_symbol_filtered for static members.
9494 (cp_print_class_member): Style member names.
9495 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9496 member names.
9497 * ada-valprint.c (ada_print_scalar): Style enum names.
9498 (ada_val_print_enum): Likewise.
9499 * ada-typeprint.c (print_enum_type): Style enum names.
9500
9501 2020-02-21 Tom Tromey <tom@tromey.com>
9502
9503 * psympriv.h (struct partial_symtab): Update comment.
9504
9505 2020-02-21 Tom Tromey <tromey@adacore.com>
9506
9507 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9508 type is CORE_ADDR.
9509
9510 2020-02-21 Tom de Vries <tdevries@suse.de>
9511
9512 PR gdb/25534
9513 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9514 if dependencies[i]->user != NULL.
9515
9516 2020-02-21 Ali Tamur <tamur@google.com>
9517
9518 * dwarf2/read.c (dwarf2_name): Add null check.
9519
9520 2020-02-20 Tom Tromey <tom@tromey.com>
9521
9522 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9523 ">=", in binary search.
9524 (dwarf2_find_containing_comp_unit): New overload.
9525 (run_test): New self-test.
9526 (_initialize_dwarf2_read): Register new test.
9527
9528 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
9529
9530 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9531 * riscv-tdep.h: Likewise.
9532 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9533 rv32-only CSR.
9534 * features/riscv/64bit-csr.xml: Regenerated.
9535
9536 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9537 Tom Tromey <tom@tromey.com>
9538
9539 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9540 of 'fputc_unfiltered'.
9541 (putchar_unfiltered): Call 'fputc_unfiltered'.
9542 (fputc_unfiltered): Call 'fputs_unfiltered'.
9543
9544 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9545
9546 * config.in: Regenerate.
9547 * configure: Regenerate.
9548 * configure.ac: Add --with-python-libdir option.
9549 * main.c: Use WITH_PYTHON_LIBDIR.
9550
9551 2020-02-19 Tom Tromey <tom@tromey.com>
9552
9553 * symtab.c (general_symbol_info::compute_and_set_names): Use
9554 obstack_strndup. Simplify call to symbol_set_demangled_name.
9555
9556 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
9557
9558 * dwarf2/read.c (allocate_signatured_type_table,
9559 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9560 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9561 Remove objfile parameter, update all callers.
9562
9563 2020-02-19 Doug Evans <dje@google.com>
9564
9565 PR rust/25535
9566 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9567 rust_enum_variant calculation.
9568
9569 2020-02-19 Tom Tromey <tromey@adacore.com>
9570
9571 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9572
9573 2020-02-19 Tom Tromey <tromey@adacore.com>
9574
9575 * ada-lang.c (cache_symbol): Use obstack_strdup.
9576
9577 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9578
9579 * configure: Regenerate.
9580
9581 2020-02-19 Tom Tromey <tromey@adacore.com>
9582
9583 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9584 NULL check.
9585
9586 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
9587
9588 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9589
9590 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9591
9592 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9593 if GDBSERVER is not defined.
9594 (riscv_tdesc_cache): Likewise, also store const target_desc.
9595 (STATIC_IN_GDB): Define.
9596 (riscv_create_target_description): Update declaration with
9597 STATIC_IN_GDB.
9598 (riscv_lookup_target_description): New function, only define if
9599 GDBSERVER is not defined.
9600 * arch/riscv.h (riscv_create_target_description): Declare only
9601 when GDBSERVER is defined.
9602 (riscv_lookup_target_description): New declaration when GDBSERVER
9603 is not defined.
9604 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9605 (riscv_linux_read_features): ...this, and return
9606 riscv_gdbarch_features instead of target_desc.
9607 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9608 (riscv_linux_read_description): Rename to...
9609 (riscv_linux_read_features): ...this.
9610 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9611 Update to use riscv_gdbarch_features and
9612 riscv_lookup_target_description.
9613 * riscv-tdep.c (riscv_find_default_target_description): Use
9614 riscv_lookup_target_description instead of
9615 riscv_create_target_description.
9616
9617 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9618
9619 * valprint.c (generic_val_print_enum_1): When printing a flag
9620 enum with value 0 and there is no enumerator with value 0, print
9621 just "0" instead of "(unknown: 0x0)".
9622
9623 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9624
9625 * valprint.c (generic_val_print_enum_1): Print unknown part of
9626 flag enum in hex.
9627
9628 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9629
9630 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9631 flag enums to contain duplicate enumerators.
9632 * valprint.c (generic_val_print_enum_1): Update comment.
9633
9634 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9635
9636 * dwarf2/read.c: Include "count-one-bits.h".
9637 (update_enumeration_type_from_children): If an enumerator has
9638 multiple bits set, don't treat the enumeration as a "flag enum".
9639 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9640 of flag enums have 0 or 1 bit set.
9641
9642 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9643
9644 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9645 conversion.
9646 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9647 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9648 * i386-tdep.c (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-18 Simon Marchi <simon.marchi@efficios.com>
9653
9654 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9655
9656 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9657
9658 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9659 displaced_step_closure_up.
9660 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9661 (struct displaced_step_closure_up):
9662 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9663 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9664 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9665 Likewise.
9666 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9667 * gdbarch.c, gdbarch.h: Re-generate.
9668 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9669 displaced_step_closure_up.
9670 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9671 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9672 * infrun.h (displaced_step_closure_up): New type alias.
9673 (struct displaced_step_inferior_state) <step_closure>: Change
9674 type to displaced_step_closure_up.
9675 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9676 displaced_step_closure_up.
9677 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9678
9679 2020-02-14 Tom Tromey <tom@tromey.com>
9680
9681 * minidebug.c (gnu_debug_key): New global.
9682 (find_separate_debug_file_in_section): Use it.
9683
9684 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9685
9686 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9687 std::unique_ptr.
9688 * gdbarch.c: Re-generate.
9689 * gdbarch.h: Re-generate.
9690 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9691 change.
9692 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9693 type to std::unique_ptr.
9694 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9695 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9696 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9697 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9698 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9699 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9700 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9701 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9702 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9703
9704 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9705
9706 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9707 std::unique_ptr.
9708 (displaced_step_clear): Rename to...
9709 (displaced_step_reset): ... this. Just call displaced->reset ().
9710 (displaced_step_clear_cleanup): Rename to...
9711 (displaced_step_reset_cleanup): ... this.
9712 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9713 (displaced_step_fixup): Likewise.
9714 (resume_1): Likewise.
9715 (handle_inferior_event): Restore child's memory before calling
9716 displaced_step_fixup on the parent.
9717 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9718 to std::unique_ptr.
9719 <step_closure>: Change type to std::unique_ptr.
9720
9721 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9722
9723 * arm-tdep.c: Include count-one-bits.h.
9724 (cleanup_block_store_pc): Use count_one_bits.
9725 (cleanup_block_load_pc): Use count_one_bits.
9726 (arm_copy_block_xfer): Use count_one_bits.
9727 (thumb2_copy_block_xfer): Use count_one_bits.
9728 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9729 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9730 (thumb_get_next_pcs_raw): Use count_one_bits.
9731 (arm_get_next_pcs_raw): Use count_one_bits_l.
9732 * arch/arm.c (bitcount): Remove.
9733 * arch/arm.h (bitcount): Remove.
9734
9735 2020-02-14 Tom Tromey <tromey@adacore.com>
9736
9737 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9738 Update.
9739 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9740 * dwarf2/loc.c (call_site_find_chain_1): Return
9741 unique_xmalloc_ptr.
9742 (call_site_find_chain): Likewise.
9743
9744 2020-02-14 Richard Biener <rguenther@suse.de>
9745
9746 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9747 on expression with division operators.
9748
9749 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9750
9751 * MAINTAINERS (Write After Approval): Adding myself.
9752
9753 2020-02-12 Tom Tromey <tom@tromey.com>
9754
9755 * event-loop.c (event_data, gdb_event, event_handler_func):
9756 Remove.
9757
9758 2020-02-12 Tom Tromey <tom@tromey.com>
9759
9760 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9761 (dwarf2_frame_objfile_data): Add comment.
9762 (find_comp_unit, set_comp_unit): New functions.
9763 (dwarf2_frame_find_fde): Use find_comp_unit.
9764 (dwarf2_build_frame_info): Use set_comp_unit.
9765
9766 2020-02-12 Tom Tromey <tom@tromey.com>
9767
9768 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9769 (comp_unit): Don't initialize objfile.
9770 (execute_cfa_program): Add text_offset parameter.
9771 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9772 (dwarf2_frame_cache): Update.
9773 (dwarf2_build_frame_info): Don't set "objfile" member.
9774
9775 2020-02-12 Tom Tromey <tom@tromey.com>
9776
9777 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9778 (decode_frame_entry): Likewise.
9779 (dwarf2_build_frame_info): Update.
9780
9781 2020-02-12 Tom Tromey <tom@tromey.com>
9782
9783 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9784 (decode_frame_entry_1): Use the comp_unit obstack.
9785
9786 2020-02-12 Tom Tromey <tom@tromey.com>
9787
9788 * dwarf2/frame.c (struct comp_unit): Add initializers and
9789 constructor.
9790 (dwarf2_frame_objfile_data): Store a comp_unit.
9791 (dwarf2_frame_find_fde): Update.
9792 (dwarf2_build_frame_info): Use "new".
9793
9794 2020-02-12 Tom Tromey <tom@tromey.com>
9795
9796 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9797 (dwarf2_fde_table): Typedef for std::vector.
9798 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9799 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9800 (decode_frame_entry): Update.
9801 (dwarf2_build_frame_info): Use "new".
9802
9803 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9804
9805 * arm-tdep.c (arm_gdbarch_init): Update.
9806 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9807 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9808 have_neon, is_m>: Change to bool.
9809
9810 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9811
9812 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9813
9814 2020-02-12 Tom Tromey <tom@tromey.com>
9815
9816 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9817
9818 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
9819
9820 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9821 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9822
9823 2020-02-11 Tom Tromey <tom@tromey.com>
9824
9825 * psymtab.h: Update comment.
9826
9827 2020-02-11 Tom Tromey <tom@tromey.com>
9828
9829 * gdb_obstack.h (struct auto_obstack): Use
9830 DISABLE_COPY_AND_ASSIGN.
9831
9832 2020-02-11 Tom Tromey <tom@tromey.com>
9833
9834 * dwarf2/frame.h (struct objfile): Don't forward declare.
9835
9836 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9837
9838 * cris-tdep.c (cris_supply_gregset): Change signature to match
9839 what struct regset expects.
9840 (cris_regset): New struct.
9841 (fetch_core_registers): Remove.
9842 (cris_iterate_over_regset_sections): New function.
9843 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9844 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9845
9846 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9847
9848 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9849 registers.
9850
9851 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9852
9853 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9854
9855 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9856
9857 * configure: Re-generate.
9858
9859 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9860
9861 * configure: Re-generate.
9862
9863 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9864
9865 * acinclude: Update warning.m4 path.
9866 * warning.m4: Move to gdbsupport.
9867
9868 2020-02-11 Tom Tromey <tromey@adacore.com>
9869
9870 * remote.c (remote_console_output): Update.
9871 * printcmd.c (printf_command): Update.
9872 * event-loop.c (gdb_wait_for_event): Update.
9873 * linux-nat.c (sigchld_handler): Update.
9874 * remote-sim.c (gdb_os_write_stdout): Update.
9875 (gdb_os_flush_stdout): Update.
9876 (gdb_os_flush_stderr): Update.
9877 (gdb_os_write_stderr): Update.
9878 * exceptions.c (print_exception): Update.
9879 * remote-fileio.c (remote_fileio_func_read): Update.
9880 (remote_fileio_func_write): Update.
9881 * tui/tui.c (tui_enable): Update.
9882 * tui/tui-interp.c (tui_interp::init): Update.
9883 * utils.c (init_page_info): Update.
9884 (putchar_unfiltered, fputc_unfiltered): Update.
9885 (gdb_flush): Update.
9886 (emit_style_escape): Update.
9887 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9888 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9889 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9890 (stderr_file::write): Update.
9891 (stderr_file::puts): Update.
9892 * ui-file.h (ui_file_isatty, ui_file_write)
9893 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9894 (ui_file_puts): Don't declare.
9895
9896 2020-02-10 Tom de Vries <tdevries@suse.de>
9897
9898 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9899 sentinel to char *.
9900
9901 2020-02-09 Tom de Vries <tdevries@suse.de>
9902
9903 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9904 filename if it matches "<artificial>".
9905
9906 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9907
9908 * windows-tdep.c (struct enum_value_name): New struct.
9909 (create_enum): New function.
9910 (windows_get_siginfo_type): Create and use enum types.
9911
9912 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9913
9914 * NEWS: Mention $_siginfo support for Windows.
9915 * windows-nat.c (handle_exception): Set siginfo_er.
9916 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9917 (windows_xfer_siginfo): New function.
9918 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9919 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9920 (init_windows_gdbarch_data): New function.
9921 (get_windows_gdbarch_data): New function.
9922 (windows_get_siginfo_type): New function.
9923 (windows_init_abi): Register windows_get_siginfo_type.
9924 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9925
9926 2020-02-08 Tom Tromey <tom@tromey.com>
9927
9928 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9929 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9930 <keep>: Declare method.
9931 <m_keep>: Remove member.
9932 <~cutu_reader>: Remove.
9933 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9934 (cutu_reader::cutu_reader): Update.
9935 (cutu_reader::keep): Rename from ~cutu_reader.
9936 (process_psymtab_comp_unit, build_type_psymtabs_1)
9937 (process_skeletonless_type_unit, load_partial_comp_unit)
9938 (load_full_comp_unit, dwarf2_read_addr_index)
9939 (read_signatured_type): Update.
9940
9941 2020-02-08 Tom Tromey <tom@tromey.com>
9942
9943 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9944 "want_partial_unit" parameter.
9945 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9946 Inline check for DW_TAG_partial_unit.
9947 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9948
9949 2020-02-08 Tom Tromey <tom@tromey.com>
9950
9951 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9952 read.c.
9953 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9954 read.c.
9955
9956 2020-02-08 Tom Tromey <tom@tromey.com>
9957
9958 * dwarf2/read.c (read_address): Move to comp-unit.c.
9959 (dwarf2_rnglists_process, dwarf2_ranges_process)
9960 (read_attribute_value, dwarf_decode_lines_1)
9961 (var_decode_location, decode_locdesc): Update.
9962 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9963 read.c. Remove "cu" parameter.
9964 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9965 method.
9966
9967 2020-02-08 Tom Tromey <tom@tromey.com>
9968
9969 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9970 (read_indirect_line_string): Update.
9971 * dwarf2/comp-unit.c (read_offset): Remove.
9972 (read_comp_unit_head): Update.
9973 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9974 method.
9975 (read_offset): Don't declare.
9976
9977 2020-02-08 Tom Tromey <tom@tromey.com>
9978
9979 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9980 * dwarf2/read.c (struct comp_unit_head): Move to
9981 dwarf2/comp-unit.h.
9982 (enum class rcuh_kind): Move to comp-unit.h.
9983 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9984 (read_comp_unit_head, error_check_comp_unit_head)
9985 (read_and_check_comp_unit_head): Move to comp-unit.c.
9986 (read_offset, dwarf_unit_type_name): Likewise.
9987 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9988 (cutu_reader::cutu_reader, read_call_site_scope)
9989 (find_partial_die, follow_die_offset): Update.
9990 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9991
9992 2020-02-08 Tom Tromey <tom@tromey.com>
9993
9994 * dwarf2/read.c (read_offset_1): Move to leb.c.
9995 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9996 (dwarf_decode_macro_bytes): Update.
9997 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9998 * dwarf2/leb.h (read_offset): Declare.
9999
10000 2020-02-08 Tom Tromey <tom@tromey.com>
10001
10002 * dwarf2/read.c (dwarf2_section_size): Remove.
10003 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
10004 Update.
10005 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
10006
10007 2020-02-08 Tom Tromey <tom@tromey.com>
10008
10009 * dwarf2/read.c (read_initial_length): Move to leb.c.
10010 * dwarf2/leb.h (read_initial_length): Declare.
10011 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
10012 handle_nonstd parameter.
10013 * dwarf2/frame.c (read_initial_length): Remove.
10014 (decode_frame_entry_1): Update.
10015
10016 2020-02-08 Tom Tromey <tom@tromey.com>
10017
10018 * dwarf2/loc.c (dwarf2_find_location_expression)
10019 (dwarf_evaluate_loc_desc::get_tls_address)
10020 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
10021 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
10022 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
10023 (dwarf2_compile_property_to_c)
10024 (dwarf2_loc_desc_get_symbol_read_needs)
10025 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
10026 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
10027 (loclist_describe_location, loclist_tracepoint_var_ref)
10028 (loclist_generate_c_location): Update.
10029 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
10030 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
10031 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
10032 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
10033 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
10034 (dwarf2_per_cu_data::addr_size)
10035 (dwarf2_per_cu_data::ref_addr_size)
10036 (dwarf2_per_cu_data::text_offset)
10037 (dwarf2_per_cu_data::addr_type): Now methods.
10038 (per_cu_header_read_in): Make per_cu "const".
10039 (dwarf2_version): Remove.
10040 (dwarf2_per_cu_data::int_type): Now a method.
10041 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
10042 (set_die_type, read_array_type, read_subrange_index_type)
10043 (read_tag_string_type, read_subrange_type): Update.
10044 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
10045 offset_size, ref_addr_size, text_offset, addr_type, version,
10046 objfile, int_type, addr_sized_int_type>: Declare methods.
10047
10048 2020-02-08 Tom Tromey <tom@tromey.com>
10049
10050 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
10051 Move earlier.
10052
10053 2020-02-08 Tom Tromey <tom@tromey.com>
10054
10055 * dwarf2/read.h (dwarf_line_debug): Declare.
10056 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
10057 * dwarf2/read.c: Move line_header code to new files.
10058 (dwarf_line_debug): No longer static.
10059 * dwarf2/line-header.c: New file.
10060 * dwarf2/line-header.h: New file.
10061
10062 2020-02-08 Tom Tromey <tom@tromey.com>
10063
10064 * dwarf2/read.c (struct line_header) <file_full_name,
10065 file_file_name>: Return unique_xmalloc_ptr.
10066 (line_header::file_file_name): Update.
10067 (line_header::file_full_name): Update.
10068 (dw2_get_file_names_reader): Update.
10069 (macro_start_file): Update.
10070
10071 2020-02-08 Tom Tromey <tom@tromey.com>
10072
10073 * dwarf2/read.c (struct line_header) <file_full_name,
10074 file_file_name>: Declare methods.
10075 (dw2_get_file_names_reader): Update.
10076 (file_file_name): Now a method.
10077 (file_full_name): Likewise.
10078 (macro_start_file): Update.
10079
10080 2020-02-08 Tom Tromey <tom@tromey.com>
10081
10082 * dwarf2/read.c (dwarf_always_disassemble)
10083 (show_dwarf_always_disassemble): Move to loc.c.
10084 (_initialize_dwarf2_read): Move "always-disassemble" registration
10085 to loc.c.
10086 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
10087 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
10088 static.
10089 (show_dwarf_always_disassemble): Move from read.c.
10090 (_initialize_dwarf2loc): Move always-disassemble from read.c.
10091
10092 2020-02-08 Tom Tromey <tom@tromey.com>
10093
10094 * dwarf2/read.c (~dwarf2_per_objfile): Update.
10095 (create_quick_file_names_table): Return htab_up.
10096 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
10097 Update.
10098 * dwarf2/read.h (struct dwarf2_per_objfile)
10099 <quick_file_names_table>: Now htab_up.
10100
10101 2020-02-08 Tom Tromey <tom@tromey.com>
10102
10103 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
10104
10105 2020-02-08 Tom Tromey <tom@tromey.com>
10106
10107 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
10108 Rewrite.
10109 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
10110 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
10111 (abbrev_table::abbrev_table): No longer inline.
10112 (ABBREV_HASH_SIZE): Remove.
10113 (abbrev_table::m_abbrevs): Now an htab_up.
10114
10115 2020-02-08 Tom Tromey <tom@tromey.com>
10116
10117 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
10118 (cutu_reader): Update.
10119 (build_type_psymtabs_1): Update.
10120 * dwarf2/abbrev.c (abbrev_table::read): Rename.
10121 (abbrev_table::alloc_abbrev): Update.
10122 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
10123 (abbrev_table::read): New static method, renamed from
10124 abbrev_table_read_table.
10125 (abbrev_table::alloc_abbrev)
10126 (abbrev_table::add_abbrev): Now private.
10127 (abbrev_table::abbrev_table): Now private.
10128 (abbrev_table::m_abbrev_obstack): Now private. Rename.
10129
10130 2020-02-08 Tom Tromey <tom@tromey.com>
10131
10132 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
10133 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
10134 htab_up.
10135
10136 2020-02-08 Tom Tromey <tom@tromey.com>
10137
10138 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
10139 htab_up.
10140 (lookup_dwo_unit_in_dwp): Update.
10141 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
10142 on obstack.
10143
10144 2020-02-08 Tom Tromey <tom@tromey.com>
10145
10146 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
10147 obstack.
10148
10149 2020-02-08 Tom Tromey <tom@tromey.com>
10150
10151 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
10152 line_header_hash.
10153 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
10154 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
10155 Change type to htab_up.
10156
10157 2020-02-08 Tom Tromey <tom@tromey.com>
10158
10159 * dwarf2/read.c (allocate_type_unit_groups_table): Return
10160 htab_up. Don't allocate on obstack.
10161 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
10162 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
10163 Change type to htab_up.
10164
10165 2020-02-08 Tom Tromey <tom@tromey.com>
10166
10167 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
10168 Change type to htab_up.
10169 * dwarf2/read.c (create_signatured_type_table_from_index)
10170 (create_signatured_type_table_from_debug_names)
10171 (create_all_type_units, add_type_unit)
10172 (lookup_dwo_signatured_type, lookup_signatured_type)
10173 (process_skeletonless_type_unit): Update.
10174 (create_debug_type_hash_table, create_debug_types_hash_table):
10175 Change type of types_htab.
10176 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
10177 htab_up. Don't allocate on obstack.
10178 (create_cus_hash_table): Change type of cus_htab parameter.
10179 (struct dwo_file) <cus, tus>: Now htab_up.
10180 (lookup_dwo_signatured_type, lookup_dwo_cutu)
10181 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
10182 (queue_and_load_all_dwo_tus): Update.
10183 * dwarf2/index-write.c (write_gdbindex): Update.
10184 (write_debug_names): Update.
10185
10186 2020-02-08 Tom Tromey <tom@tromey.com>
10187
10188 * dwarf2/read.h (struct dwarf2_queue_item): Move from
10189 dwarf2/read.c. Remove "next" member. Add constructor ntad
10190 destructor.
10191 (struct dwarf2_per_objfile) <queue>: New member.
10192 * dwarf2/read.c (struct dwarf2_queue_item): Move to
10193 dwarf2/read.h.
10194 (dwarf2_queue, dwarf2_queue_tail): Remove.
10195 (class dwarf2_queue_guard): Add parameter to constructor. Use
10196 DISABLE_COPY_AND_ASSIGN.
10197 <m_per_objfile>: New member.
10198 <~dwarf2_queue_guard>: Rewrite.
10199 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
10200 Update.
10201 (~dwarf2_queue_item): New.
10202
10203 2020-02-08 Tom Tromey <tom@tromey.com>
10204
10205 * dwarf2/read.c (struct die_info) <has_children>: New member.
10206 (dw2_get_file_names_reader): Remove has_children.
10207 (dw2_get_file_names): Update.
10208 (read_cutu_die_from_dwo): Remove has_children.
10209 (cutu_reader::init_tu_and_read_dwo_dies)
10210 (cutu_reader::cutu_reader): Update.
10211 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
10212 Remove has_children.
10213 (build_type_psymtabs_1, process_skeletonless_type_unit)
10214 (load_partial_comp_unit, load_full_comp_unit): Update.
10215 (create_dwo_cu_reader): Remove has_children.
10216 (create_cus_hash_table, read_die_and_children): Update.
10217 (read_full_die_1,read_full_die): Remove has_children.
10218 (read_signatured_type): Update.
10219 (class cutu_reader) <has_children>: Remove.
10220
10221 2020-02-08 Tom Tromey <tom@tromey.com>
10222
10223 * dwarf2/expr.c: Rename from dwarf2expr.c.
10224 * dwarf2/expr.h: Rename from dwarf2expr.h.
10225 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
10226 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
10227 * dwarf2/frame.c: Rename from dwarf2-frame.c.
10228 * dwarf2/frame.h: Rename from dwarf2-frame.h.
10229 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
10230 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
10231 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
10232 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
10233 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
10234 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
10235 * dwarf2/loc.c: Rename from dwarf2loc.c.
10236 * dwarf2/loc.h: Rename from dwarf2loc.h.
10237 * dwarf2/read.c: Rename from dwarf2read.c.
10238 * dwarf2/read.h: Rename from dwarf2read.h.
10239 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
10240 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
10241 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
10242 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
10243 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
10244 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
10245 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
10246 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
10247 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
10248 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
10249 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
10250 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
10251 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
10252 Update.
10253 * Makefile.in (COMMON_SFILES): Update.
10254 (HFILES_NO_SRCDIR): Update.
10255
10256 2020-02-08 Tom Tromey <tom@tromey.com>
10257
10258 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
10259 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
10260
10261 2020-02-08 Tom Tromey <tom@tromey.com>
10262
10263 * dwarf2read.h (struct die_info): Don't declare.
10264
10265 2020-02-08 Tom Tromey <tom@tromey.com>
10266
10267 * dwarf2read.h (die_info_ptr): Remove typedef.
10268
10269 2020-02-08 Tom Tromey <tom@tromey.com>
10270
10271 * dwarf2read.c (read_call_site_scope)
10272 (handle_data_member_location, dwarf2_add_member_fn)
10273 (mark_common_block_symbol_computed, read_common_block)
10274 (attr_to_dynamic_prop, partial_die_info::read)
10275 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
10276 (dwarf2_symbol_mark_computed, set_die_type): Update.
10277 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
10278 method.
10279 (attr_form_is_block): Don't declare.
10280 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
10281
10282 2020-02-08 Tom Tromey <tom@tromey.com>
10283
10284 * dwarf2read.c (dwarf2_find_base_address, )
10285 (read_call_site_scope, rust_containing_type)
10286 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
10287 (handle_data_member_location, dwarf2_add_member_fn)
10288 (get_alignment, read_structure_type, process_structure_scope)
10289 (mark_common_block_symbol_computed, read_common_block)
10290 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
10291 (partial_die_info::read, read_attribute_value, new_symbol)
10292 (lookup_die_type, dwarf2_get_ref_die_offset)
10293 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
10294 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
10295 (dwarf2_symbol_mark_computed): Update.
10296 * dwarf2/attribute.h (struct attribute) <value_as_address,
10297 form_is_section_offset, form_is_constant, form_is_ref>: Declare
10298 methods.
10299 (value_as_address, attr_form_is_section_offset)
10300 (attr_form_is_constant, attr_form_is_ref): Don't declare.
10301 * dwarf2/attribute.c (attribute::value_as_address)
10302 (attribute::form_is_section_offset, attribute::form_is_constant)
10303 (attribute::form_is_ref): Now methods.
10304
10305 2020-02-08 Tom Tromey <tom@tromey.com>
10306
10307 * dwarf2read.c (struct attribute, DW_STRING)
10308 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
10309 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
10310 (attr_form_is_block, attr_form_is_section_offset)
10311 (attr_form_is_constant, attr_form_is_ref): Move.
10312 * dwarf2/attribute.h: New file.
10313 * dwarf2/attribute.c: New file, from dwarf2read.c.
10314 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
10315
10316 2020-02-08 Tom Tromey <tom@tromey.com>
10317
10318 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
10319 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
10320 Move.
10321 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
10322 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
10323 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
10324 abbrev.c.
10325 * dwarf2/abbrev.h: New file.
10326 * dwarf2/abbrev.c: New file, from dwarf2read.c.
10327 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
10328
10329 2020-02-08 Tom Tromey <tom@tromey.com>
10330
10331 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
10332 (dwarf2_section_size, dwarf2_get_section_info)
10333 (create_signatured_type_table_from_debug_names)
10334 (create_addrmap_from_aranges, read_debug_names_from_section)
10335 (get_gdb_index_contents_from_section, read_comp_unit_head)
10336 (error_check_comp_unit_head, read_abbrev_offset)
10337 (create_debug_type_hash_table, init_cu_die_reader)
10338 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
10339 (read_comp_units_from_section, create_cus_hash_table)
10340 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10341 (create_dwp_v2_section, dwarf2_rnglists_process)
10342 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
10343 (abbrev_table_read_table, read_indirect_string_at_offset_from)
10344 (read_indirect_string_from_dwz, read_addr_index_1)
10345 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
10346 (dwarf_decode_macro_bytes, dwarf_decode_macros)
10347 (fill_in_loclist_baton): Update.
10348 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
10349 get_containing_section, get_bfd_owner, get_bfd_section,
10350 get_file_name, get_id, get_flags, empty, read>: Declare methods.
10351 (dwarf2_read_section, get_section_name, get_section_file_name)
10352 (get_containing_section, get_section_bfd_owner)
10353 (get_section_bfd_section, get_section_name, get_section_file_name)
10354 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
10355 declare.
10356 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
10357 (dwarf2_section_info::get_bfd_owner)
10358 (dwarf2_section_info::get_bfd_section)
10359 (dwarf2_section_info::get_name)
10360 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
10361 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
10362 (dwarf2_section_info::read): Now methods.
10363 * dwarf-index-write.c (class debug_names): Update.
10364
10365 2020-02-08 Tom Tromey <tom@tromey.com>
10366
10367 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
10368 Move to dwarf2/section.h.
10369 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
10370 (get_section_bfd_section, get_section_name)
10371 (get_section_file_name, get_section_id, get_section_flags)
10372 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
10373 dwarf2/section.c.
10374 * dwarf2/section.h: New file.
10375 * dwarf2/section.c: New file, from dwarf2read.c.
10376 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10377
10378 2020-02-08 Tom Tromey <tom@tromey.com>
10379
10380 * dwarf2read.h (read_unsigned_leb128): Don't declare.
10381 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10382 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10383 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10384 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10385 * dwarf2/leb.h: New file, from dwarf2read.c.
10386 * dwarf2/leb.c: New file, from dwarf2read.c.
10387 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10388 Remove.
10389 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10390 (COMMON_SFILES): Add dwarf2/leb.c.
10391
10392 2020-02-08 Joel Brobecker <brobecker@adacore.com>
10393
10394 GDB 9.1 released.
10395
10396 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10397
10398 PR gdb/25190:
10399 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10400 * gdb/remote.c (remote_console_output): Update.
10401 * gdb/ui-file.c (fputs_unfiltered): Rename to...
10402 (ui_file_puts): ...this.
10403 * gdb/ui-file.h (ui_file_puts): Add declaration.
10404 * gdb/utils.c (emit_style_escape): Update.
10405 (flush_wrap_buffer): Update.
10406 (fputs_maybe_filtered): Update.
10407 (fputs_unfiltered): Add function.
10408
10409 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10410
10411 * gdb/event-loop.c (gdb_wait_for_event): Update.
10412 * gdb/printcmd.c (printf_command): Update.
10413 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10414 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10415 (gdb_os_flush_stderr): Update.
10416 * gdb/remote.c (remote_console_output): Update.
10417 * gdb/ui-file.c (gdb_flush): Rename to...
10418 (ui_file_flush): ...this.
10419 (stderr_file::write): Update.
10420 (stderr_file::puts): Update.
10421 * gdb/ui-file.h (gdb_flush): Rename to...
10422 (ui_file_flush): ...this.
10423 * gdb/utils.c (gdb_flush): Add function.
10424 * gdb/utils.h (gdb_flush): Add declaration.
10425
10426 2020-02-07 Tom Tromey <tromey@adacore.com>
10427
10428 PR breakpoints/24915:
10429 * source.c (find_and_open_source): Do not check basenames_may_differ.
10430
10431 2020-02-07 Tom Tromey <tom@tromey.com>
10432
10433 * README: Update gdbserver documentation.
10434 * gdbserver: Move to top level.
10435 * configure.tgt (build_gdbserver): Remove.
10436 * configure.ac: Remove --enable-gdbserver.
10437 * configure: Rebuild.
10438 * Makefile.in (distclean): Don't mention gdbserver.
10439
10440 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10441
10442 * source-cache.c (source_cache::ensure): Surround
10443 get_plain_source_lines with a try/catch.
10444 (source_cache::get_line_charpos): Get rid of try/catch
10445 and only check for the return value of "ensure".
10446 * tui/tui-source.c (tui_source_window::set_contents):
10447 Simplify "nlines" calculation.
10448
10449 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10450
10451 * MAINTAINERS (Write After Approval): Add myself.
10452
10453 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10454
10455 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10456 function call.
10457
10458 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10459
10460 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10461
10462 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
10463
10464 * nat/riscv-linux-tdesc.h: New file.
10465 * nat/riscv-linux-tdesc.c: New file, taking code from...
10466 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10467 ... here.
10468 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10469 NATDEPFILES.
10470
10471 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10472
10473 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10474 we don't set the fake simulator ptid to the null_ptid.
10475
10476 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
10477
10478 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10479 * gdbthread.h (class thread_info) <resumed>: Likewise.
10480 * infrun.c (resume_1): Likewise.
10481 (proceed): Likewise.
10482 (infrun_thread_stop_requested): Likewise.
10483 (stop_all_threads): Likewise.
10484 (handle_inferior_event): Likewise.
10485 (restart_threads): Likewise.
10486 (finish_step_over): Likewise.
10487 (keep_going_stepped_thread): Likewise.
10488 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10489 (linux_handle_extended_wait): Likewise.
10490 * record-btrace.c (get_thread_current_frame_id): Likewise.
10491 * record-full.c (record_full_wait_1): Likewise.
10492 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10493 * target.c (target_resume): Likewise.
10494 * thread.c (set_running_thread): Likewise.
10495
10496 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10497
10498 * f-valprint.c (f77_print_array_1): Changed datatype of index
10499 variable to LONGEST from int to enable it to contain bound
10500 values correctly.
10501
10502 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
10503
10504 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10505 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10506 offsets according to FLEN determined.
10507 (riscv_linux_nat_target::read_description): Determine FLEN
10508 dynamically.
10509 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10510 according to FLEN determined.
10511 (riscv_linux_nat_target::store_registers): Likewise.
10512
10513 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10514
10515 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10516 when reg->group is empty and reggroup is not.
10517
10518 2020-01-31 Tom Tromey <tromey@adacore.com>
10519
10520 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10521 Call beneath target's mourn_inferior after unpushing.
10522
10523 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10524
10525 PR tui/9765
10526 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10527 have enough lines to fill the screen, still return the lowest
10528 address we found.
10529
10530 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10531
10532 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10533 '-', '<', and '>' commands.
10534
10535 2020-01-29 Pedro Alves <palves@redhat.com>
10536 Sergio Durigan Junior <sergiodj@redhat.com>
10537
10538 * infcmd.c (construct_inferior_arguments): Assert that
10539 'argc' is greater than 0.
10540
10541 2020-01-29 Luis Machado <luis.machado@linaro.org>
10542
10543 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10544 (BRK_INSN_MASK): Define to 0xd4200000.
10545 (aarch64_program_breakpoint_here_p): New function.
10546 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10547 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10548 breakpoint.c.
10549 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10550 breakpoint.h
10551 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10552 call gdbarch_program_breakpoint_here_p.
10553 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10554 default_program_breakpoint_here_p, changed return type to bool and
10555 simplified.
10556 * breakpoint.h (program_breakpoint_here): Moved prototype to
10557 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10558 return type to bool.
10559 * gdbarch.c: Regenerate.
10560 * gdbarch.h: Regenerate.
10561 * gdbarch.sh (program_breakpoint_here_p): New method.
10562 * infrun.c (handle_signal_stop): Call
10563 gdbarch_program_breakpoint_here_p.
10564
10565 2020-01-26 Tom Tromey <tom@tromey.com>
10566
10567 * ctfread.c (struct ctf_fp_info): Reindent.
10568 (_initialize_ctfread): Remove.
10569
10570 2020-01-26 Tom Tromey <tom@tromey.com>
10571
10572 * psymtab.c (partial_map_expand_apply)
10573 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10574 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10575 (psym_print_stats, psym_expand_symtabs_for_function)
10576 (psym_map_symbol_filenames, psym_map_matching_symbols)
10577 (psym_expand_symtabs_matching)
10578 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10579 (maintenance_check_psymtabs): Use new methods.
10580 * psympriv.h (struct partial_symtab) <readin_p,
10581 get_compunit_symtab>: New methods.
10582 <readin, compunit_symtab>: Remove members.
10583 (struct standard_psymtab): New.
10584 (struct legacy_psymtab): Derive from standard_psymtab.
10585 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10586 standard_psymtab.
10587 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10588
10589 2020-01-26 Tom Tromey <tom@tromey.com>
10590
10591 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10592 read_dependencies. Add assert.
10593 * psymtab.c (partial_symtab::read_dependencies): New method.
10594 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10595 method.
10596 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10597 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10598 read_dependencies.
10599 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10600 Add assert.
10601
10602 2020-01-26 Tom Tromey <tom@tromey.com>
10603
10604 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10605 Call expand_psymtab.
10606 (xcoff_read_symtab): Call expand_psymtab.
10607 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10608 legacy_expand_psymtab.
10609 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10610 method.
10611 (struct legacy_psymtab) <expand_psymtab>: Implement.
10612 <legacy_expand_psymtab>: New member.
10613 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10614 (parse_partial_symbols): Set legacy_expand_psymtab.
10615 (psymtab_to_symtab_1): Change argument order. Call
10616 expand_psymtab.
10617 (new_psymtab): Set legacy_expand_psymtab.
10618 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10619 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10620 expand_psymtab.
10621 (dwarf2_psymtab::expand_psymtab): Rename from
10622 psymtab_to_symtab_1. Call expand_psymtab.
10623 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10624 (dbx_end_psymtab): Likewise.
10625 (dbx_psymtab_to_symtab_1): Change argument order. Call
10626 expand_psymtab.
10627 (dbx_read_symtab): Call expand_psymtab.
10628 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10629 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10630 (ctf_psymtab::read_symtab): Call expand_psymtab.
10631
10632 2020-01-26 Tom Tromey <tom@tromey.com>
10633
10634 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10635 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10636 messages.
10637 * mdebugread.c (mdebug_read_symtab): Remove prints.
10638 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10639 assert.
10640 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10641
10642 2020-01-26 Tom Tromey <tom@tromey.com>
10643
10644 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10645 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10646 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10647 legacy_symtab.
10648 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10649 * psymtab.c (psymtab_to_symtab): Call method.
10650 (dump_psymtab): Update.
10651 * psympriv.h (struct partial_symtab): Add virtual destructor.
10652 <read_symtab>: New method.
10653 (struct legacy_symtab): New.
10654 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10655 (struct pst_map) <pst>: Now a legacy_psymtab.
10656 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10657 (new_psymtab): Use legacy_psymtab.
10658 * dwarf2read.h (struct dwarf2_psymtab): New.
10659 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10660 * dwarf2read.c (dwarf2_create_include_psymtab)
10661 (dwarf2_build_include_psymtabs, create_type_unit_group)
10662 (create_partial_symtab, process_psymtab_comp_unit_reader)
10663 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10664 (set_partial_user): Use dwarf2_psymtab.
10665 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10666 (psymtab_to_symtab_1, process_full_comp_unit)
10667 (process_full_type_unit, dwarf2_ranges_read)
10668 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10669 (dwarf_decode_lines): Use dwarf2_psymtab.
10670 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10671 (add_address_entry_worker, write_one_signatured_type)
10672 (recursively_count_psymbols, recursively_write_psymbols)
10673 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10674 (write_debug_names): Likewise.
10675 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10676 <pst>: Now a legacy_psymtab.
10677 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10678 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10679 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10680 * ctfread.c (struct ctf_psymtab): New.
10681 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10682 ctf_psymtab.
10683 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10684 (create_partial_symtab): Return a ctf_psymtab.
10685 (scan_partial_symbols): Update.
10686
10687 2020-01-26 Tom Tromey <tom@tromey.com>
10688
10689 * xcoffread.c (xcoff_start_psymtab): Use new.
10690 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10691 renamed from start_psymtab_common.
10692 * psympriv.h (struct partial_symtab): Add new constructor.
10693 (start_psymtab_common): Don't declare.
10694 * mdebugread.c (parse_partial_symbols): Use new.
10695 * dwarf2read.c (create_partial_symtab): Use new.
10696 * dbxread.c (start_psymtab): Use new.
10697 * ctfread.c (create_partial_symtab): Use new.
10698
10699 2020-01-26 Tom Tromey <tom@tromey.com>
10700
10701 * xcoffread.c (xcoff_end_psymtab): Use new.
10702 * psymtab.c (start_psymtab_common): Use new.
10703 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10704 Update.
10705 * psympriv.h (struct partial_symtab): Add parameters to
10706 constructor. Don't inline.
10707 (allocate_psymtab): Don't declare.
10708 * mdebugread.c (new_psymtab): Use new.
10709 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10710 * dbxread.c (dbx_end_psymtab): Use new.
10711
10712 2020-01-26 Tom Tromey <tom@tromey.com>
10713
10714 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10715 allocate_psymtab. Update documentation.
10716 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10717 allocate_psymtab. Do not use new.
10718 (allocate_psymtab): Use new. Update.
10719
10720 2020-01-26 Tom Tromey <tom@tromey.com>
10721
10722 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10723 * psymtab.c (psym_print_stats): Update.
10724 * psympriv.h (struct partial_symtab) <readin,
10725 psymtabs_addrmap_supported, anonymous>: Now bool.
10726 * mdebugread.c (psymtab_to_symtab_1): Update.
10727 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10728 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10729 (process_full_comp_unit, process_full_type_unit): Update.
10730 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10731 * ctfread.c (psymtab_to_symtab): Update.
10732
10733 2020-01-26 Tom Tromey <tom@tromey.com>
10734
10735 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10736 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10737 * psymtab.c (psymtab_storage): Delete psymtabs.
10738 (psymtab_storage::allocate_psymtab): Use new.
10739 (psymtab_storage::discard_psymtab): Use delete.
10740 * psympriv.h (struct partial_symtab): Add constructor and
10741 initializers.
10742
10743 2020-01-26 Tom Tromey <tom@tromey.com>
10744
10745 * machoread.c: Do not include psympriv.h.
10746
10747 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10748
10749 * NEWS: Mention the new option and the set/show commands.
10750
10751 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10752
10753 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10754 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10755 (validate_exec_file): New variables, enums, functions.
10756 (exec_file_locate_attach, print_section_info): Style the filenames.
10757 (_initialize_exec): Install show_exec_file_mismatch_command and
10758 set_exec_file_mismatch_command.
10759 * gdbcore.h (validate_exec_file): Declare.
10760 * infcmd.c (attach_command): Call validate_exec_file.
10761 * remote.c ( remote_target::remote_add_inferior): Likewise.
10762
10763 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10764
10765 * frame.c (find_frame_sal): Move call to get_next_frame into more
10766 inner scope.
10767 * inline-frame.c (inilne_state) <inline_state>: Update argument
10768 types.
10769 (inilne_state) <skipped_symbol>: Rename to...
10770 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10771 (skip_inline_frames): Build vector of skipped symbols and use this
10772 to reate the inline_state.
10773 (inline_skipped_symbol): Add a comment and some assertions, fetch
10774 skipped symbol from the list.
10775
10776 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10777
10778 * buildsym.c (lte_is_less_than): Delete.
10779 (buildsym_compunit::end_symtab_with_blockvector): Create local
10780 lambda function to sort line table entries, and use
10781 std::stable_sort instead of std::sort.
10782 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10783 markers when looking for a previous line.
10784
10785 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10786
10787 * dwarf2read.c (lnp_state_machine::record_line): Include
10788 end_sequence parameter in debug print out. Record the line if we
10789 are at an end_sequence marker even if it's not the start of a
10790 statement.
10791 * symmisc.c (maintenance_print_one_line_table): Print end of
10792 sequence markers with 'END' not '0'.
10793
10794 2020-01-24 Pedro Alves <palves@redhat.com>
10795
10796 PR gdb/25410
10797 * thread.c (scoped_restore_current_thread::restore): Use
10798 switch_to_inferior_no_thread.
10799 * exec.c: Include "progspace-and-thread.h".
10800 (add_target_sections, remove_target_sections):
10801 scoped_restore_current_pspace_and_thread instead of
10802 scoped_restore_current_thread.
10803 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10804 and aspace to the inferior before calling clone_program_space.
10805 Remove stale comment.
10806
10807 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10808
10809 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10810 (arm_netbsd_nat_target::fetch_registers): ...this.
10811 (arm_nbsd_nat_target::store_registers): Rename to...
10812 (arm_netbsd_nat_target::store_registers): ...this.
10813
10814 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10815
10816 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10817 register_t.
10818
10819 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10820
10821 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10822 Update comment.
10823 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10824 Likewise.
10825 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10826 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10827 the correct replacement (iterate_over_regset_sections).
10828 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10829 Update comment.
10830
10831 2020-01-24 Graham Markall <graham.markall@embecosm.com>
10832
10833 PR gdb/23718
10834 * gdb/python/python.c (execute_gdb_command): Call
10835 async_enable_stdin in catch block.
10836
10837 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10838
10839 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10840 SWITCH_THRU_ALL_UIS.
10841
10842 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10843
10844 PR tui/9765
10845 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10846 comment, add extra parameter, and update to store previous symbol
10847 when appropriate.
10848 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10849 add extra parameter.
10850 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10851 remove unneeded parameter, add try/catch around gdb_print_insn,
10852 rewrite to add items to asm_lines vector.
10853 (tui_find_backward_disassembly_start_address): New function.
10854 (tui_find_disassembly_address): Updated throughout.
10855 (tui_disasm_window::set_contents): Update for changes to
10856 tui_disassemble.
10857 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10858 number of lines to scroll.
10859
10860 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10861
10862 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10863 (SECT_OFF_DATA): Likewise.
10864 (SECT_OFF_RODATA): Likewise.
10865 (SECT_OFF_TEXT): Likewise.
10866 (SECT_OFF_BSS): Likewise.
10867 (struct objfile) <text_section_offset, data_section_offset>: New
10868 methods.
10869 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10870 objfile::text_section_offset.
10871 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10872 * coffread.c (coff_symtab_read): Likewise.
10873 (enter_linenos): Likewise.
10874 (process_coff_symbol): Likewise.
10875 * ctfread.c (get_objfile_text_range): Likewise.
10876 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10877 Use objfile::data_section_offset.
10878 * dwarf2-frame.c (execute_cfa_program): Use
10879 objfile::text_section_offset.
10880 (dwarf2_frame_find_fde): Likewise.
10881 * dwarf2read.c (create_addrmap_from_index): Likewise.
10882 (create_addrmap_from_aranges): Likewise.
10883 (dw2_find_pc_sect_compunit_symtab): Likewise.
10884 (process_psymtab_comp_unit_reader): Likewise.
10885 (add_partial_symbol): Likewise.
10886 (add_partial_subprogram): Likewise.
10887 (process_full_comp_unit): Likewise.
10888 (read_file_scope): Likewise.
10889 (read_func_scope): Likewise.
10890 (read_lexical_block_scope): Likewise.
10891 (read_call_site_scope): Likewise.
10892 (dwarf2_rnglists_process): Likewise.
10893 (dwarf2_ranges_process): Likewise.
10894 (dwarf2_ranges_read): Likewise.
10895 (dwarf_decode_lines_1): Likewise.
10896 (new_symbol): Likewise.
10897 (dwarf2_fetch_die_loc_sect_off): Likewise.
10898 (dwarf2_per_cu_text_offset): Likewise.
10899 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10900 * hppa-tdep.c (read_unwind_info): Likewise.
10901 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10902 * psympriv.h (struct partial_symtab): Likewise.
10903 * psymtab.c (find_pc_sect_psymtab): Likewise.
10904 * solib-svr4.c (enable_break): Likewise.
10905 * stap-probe.c (relocate_address): Use
10906 objfile::data_section_offset.
10907 * xcoffread.c (enter_line_range): Use
10908 objfile::text_section_offset.
10909 (read_xcoff_symtab): Likewise.
10910
10911 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10912
10913 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10914 declaration to narrower scopes.
10915
10916 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10917
10918 * darwin-nat.h (struct darwin_exception_msg, enum
10919 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10920 Move up.
10921 (class darwin_nat_target) <wait_1, check_new_threads,
10922 decode_exception_message, decode_message, stop_inferior,
10923 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10924 * darwin-nat.c (darwin_check_new_threads): Rename to...
10925 (darwin_nat_target::check_new_threads): ... this.
10926 (darwin_suspend_inferior_it): Remove.
10927 (darwin_decode_exception_message): Rename to...
10928 (darwin_nat_target::decode_exception_message): ... this.
10929 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10930 (darwin_decode_message): Rename to...
10931 (darwin_nat_target::decode_message): ... this.
10932 (cancel_breakpoint): Rename to...
10933 (darwin_nat_target::cancel_breakpoint): ... this.
10934 (darwin_wait): Rename to...
10935 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10936 instead of iterate_over_inferiors.
10937 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10938 (darwin_stop_inferior): Rename to...
10939 (darwin_nat_target::stop_inferior): ... this.
10940 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10941 (darwin_init_thread_list): Rename to...
10942 (darwin_nat_target::init_thread_list): ... this.
10943 (darwin_ptrace_him): Rename to...
10944 (darwin_nat_target::ptrace_him): ... this.
10945 (darwin_nat_target::create_inferior): Pass lambda function to
10946 fork_inferior.
10947 (darwin_nat_target::detach): Call stop_inferior instead of
10948 darwin_stop_inferior.
10949 * fork-inferior.h (fork_inferior): Change init_trace_fun
10950 parameter to gdb::function_view.
10951 * fork-inferior.c (fork_inferior): Likewise.
10952
10953 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
10954
10955 * i386-cygwin-tdep.c (core_process_module_section): Update.
10956 * windows-nat.c (struct lm_info_windows): Add text_offset.
10957 (windows_xfer_shared_libraries): Update.
10958 * windows-tdep.c (windows_xfer_shared_library):
10959 Add text_offset_cached argument.
10960 * windows-tdep.h (windows_xfer_shared_library): Update.
10961
10962 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10963
10964 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10965
10966 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10967
10968 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10969 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10970 replace with range-based for.
10971 (gdbsim_interrupt_inferior): Remove.
10972 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10973 with a range-based for. Inline code from
10974 gdbsim_interrupt_inferior.
10975
10976 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10977
10978 * infrun.c (proceed): Fix indentation.
10979
10980 2020-01-21 Tom Tromey <tromey@adacore.com>
10981
10982 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10983 * python/python.c (python_extension_ops): Update.
10984 (gdbpy_colorize): New function.
10985 * python/lib/gdb/__init__.py (colorize): New function.
10986 * extension.h (ext_lang_colorize): Declare.
10987 * extension.c (ext_lang_colorize): New function.
10988 * extension-priv.h (struct extension_language_ops) <colorize>: New
10989 member.
10990 * cli/cli-style.c (_initialize_cli_style): Update help text.
10991
10992 2020-01-21 Luis Machado <luis.machado@linaro.org>
10993
10994 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10995 <cond>: Change type to bool.
10996 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10997 (aarch64_displaced_step_cb): Likewise.
10998 (aarch64_displaced_step_tb): Likewise.
10999
11000 2020-01-21 Luis Machado <luis.machado@linaro.org>
11001
11002 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
11003 output.
11004
11005 2020-01-21 Luis Machado <luis.machado@linaro.org>
11006
11007 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
11008 <pc_adjust>: Adjust the documentation.
11009 (aarch64_displaced_step_fixup): Check if PC really moved before
11010 adjusting it.
11011
11012 2020-01-19 Tom Tromey <tom@tromey.com>
11013
11014 * disasm.c (~gdb_disassembler): New destructor.
11015 (gdb_buffered_insn_length): Call disassemble_free_target.
11016 * disasm.h (class gdb_disassembler): Declare destructor. Use
11017 DISABLE_COPY_AND_ASSIGN.
11018
11019 2020-01-19 Tom Tromey <tom@tromey.com>
11020
11021 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
11022 (die_reader_func_ftype): Remove.
11023 (cutu_reader): New class.
11024 (dw2_get_file_names_reader): Remove "data" parameter.
11025 (dw2_get_file_names): Use cutu_reader.
11026 (create_debug_type_hash_table): Update.
11027 (read_cutu_die_from_dwo): Update comment.
11028 (lookup_dwo_unit): Add dwo_name parameter.
11029 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
11030 die_reader_func_ftype and data parameters.
11031 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
11032 Remove die_reader_func_ftype and data parameters.
11033 (~cutu_reader): New; from init_cutu_and_read_dies.
11034 (cutu_reader::cutu_reader): Rename from
11035 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
11036 and data parameters.
11037 (init_cutu_and_read_dies_simple): Remove.
11038 (struct process_psymtab_comp_unit_data): Remove.
11039 (process_psymtab_comp_unit_reader): Remove data parameter; add
11040 want_partial_unit and pretend_language parameters.
11041 (process_psymtab_comp_unit): Use cutu_reader.
11042 (build_type_psymtabs_reader): Remove data parameter.
11043 (build_type_psymtabs_1): Use cutu_reader.
11044 (process_skeletonless_type_unit): Likewise.
11045 (load_partial_comp_unit_reader): Remove.
11046 (load_partial_comp_unit): Use cutu_reader.
11047 (load_full_comp_unit_reader): Remove.
11048 (load_full_comp_unit): Use cutu_reader.
11049 (struct create_dwo_cu_data): Remove.
11050 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
11051 dwo_unit parameters.
11052 (create_cus_hash_table): Use cutu_reader.
11053 (struct dwarf2_read_addr_index_data): Remove.
11054 (dwarf2_read_addr_index_reader): Remove.
11055 (dwarf2_read_addr_index): Use cutu_reader.
11056 (read_signatured_type_reader): Remove.
11057 (read_signatured_type): Use cutu_reader.
11058
11059 2020-01-19 Tom Tromey <tom@tromey.com>
11060
11061 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
11062 * tui/tui-wingeneral.h (class tui_suppress_output): New.
11063 (tui_wrefresh): Declare.
11064 * tui/tui-wingeneral.c (suppress_output): New global.
11065 (tui_suppress_output, ~tui_suppress_output): New constructor and
11066 destructor.
11067 (tui_wrefresh): New function.
11068 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
11069 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
11070 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
11071 method.
11072 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
11073 tui_wrefresh.
11074 (tui_data_window::no_refresh): New method.
11075 (tui_data_item_window::refresh_window): Call tui_wrefresh.
11076 (tui_reg_command): Use tui_suppress_output
11077 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
11078 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
11079 method.
11080 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
11081
11082 2020-01-19 Tom Tromey <tom@tromey.com>
11083
11084 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11085 Handle case where symtab is null.
11086
11087 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
11088
11089 * linux-fork.c (one_fork_p): Simplify.
11090
11091 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11092
11093 * top.c (struct qt_args): Remove.
11094 (kill_or_detach): Change return type to void, replace `void *`
11095 parameter with a proper one.
11096 (print_inferior_quit_action): Likewise.
11097 (quit_confirm): Use range-based for loop to iterate over inferiors.
11098 (quit_force): Likewise.
11099
11100 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11101
11102 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
11103 `void *` parameter with proper parameters.
11104 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
11105 (print_one_inferior): Change return type to void, replace `void *`
11106 parameter with proper parameters.
11107 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
11108 inferiors.
11109 (get_other_inferior): Remove.
11110 (mi_cmd_remove_inferior): Use range-based loop to iterate over
11111 inferiors.
11112
11113 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11114
11115 * mi/mi-interp.c (report_initial_inferior): Remove.
11116 (mi_interp::init): Use range-based for to iterate over inferiors.
11117
11118 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11119
11120 * python/py-inferior.c (build_inferior_list): Remove.
11121 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
11122
11123 2020-01-16 Christian Biesinger <cbiesinger@google.com>
11124
11125 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
11126 (btrace_stitch_trace): Likewise.
11127 * charset.c (intermediate_encoding): Likewise (vaild).
11128 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
11129 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
11130 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
11131
11132 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
11133
11134 * windows-tdep.c (windows_get_tlb_type):
11135 Add rtl_user_process_parameters type.
11136
11137 2020-01-16 Pedro Alves <palves@redhat.com>
11138 Norbert Lange <nolange79@gmail.com>
11139
11140 PR build/24805
11141 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
11142 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
11143 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
11144 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
11145 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
11146 (ps_plog): Redeclare exported functions with default visibility.
11147
11148 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
11149
11150 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
11151 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
11152
11153 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
11154
11155 * infcmd.c (post_create_inferior): Use get_thread_regcache
11156 instead of get_current_regcache.
11157
11158 2020-01-14 Tom Tromey <tom@tromey.com>
11159
11160 PR symtab/12535:
11161 * python/python.c (gdbpy_decode_line): Treat empty string the same
11162 as no argument.
11163
11164 2020-01-14 Tom Tromey <tom@tromey.com>
11165
11166 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
11167
11168 2020-01-14 Tom Tromey <tom@tromey.com>
11169
11170 * nat/linux-btrace.c: Don't include <config.h>.
11171 * nat/linux-ptrace.c: Don't include <config.h>.
11172 * nat/x86-linux-dregs.c: Don't include <config.h>.
11173
11174 2020-01-14 Tom Tromey <tom@tromey.com>
11175
11176 * configure: Rebuild.
11177 * configure.ac: Move many checks to ../gdbsupport/common.m4.
11178
11179 2020-01-14 Tom Tromey <tom@tromey.com>
11180
11181 * nat/x86-linux-dregs.c: Include configh.h.
11182 * nat/linux-ptrace.c: Include configh.h.
11183 * nat/linux-btrace.c: Include configh.h.
11184 * defs.h: Include config.h, bfd.h.
11185 * configure.ac: Don't source common.host.
11186 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
11187 * configure: Rebuild.
11188 * acinclude.m4: Update path.
11189 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
11190 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
11191 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
11192 (CLIBS): Add LIBSUPPORT.
11193 (CDEPS): Likewise.
11194 (COMMON_SFILES): Remove gdbsupport files.
11195 (HFILES_NO_SRCDIR): Likewise.
11196 (stamp-version): Update path to create-version.sh.
11197 (ALLDEPFILES): Remove gdbsupport files.
11198
11199 2020-01-14 Tom Tromey <tom@tromey.com>
11200
11201 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
11202 USE_WIN32API when needed.
11203 * configure.ac (USE_WIN32API): Don't define.
11204 (WIN32LIBS): Use WIN32APILIBS.
11205 * configure: Rebuild.
11206
11207 2020-01-14 Tom Tromey <tom@tromey.com>
11208
11209 * configure: Rebuild.
11210 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
11211
11212 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
11213
11214 * skip.c (skip_function_command): Make skip w/o arguments use the
11215 name of the inlined function if pc is inside any inlined function.
11216
11217 2020-01-14 Luis Machado <luis.machado@linaro.org>
11218
11219 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
11220 * infrun.c (resume_1): Likewise.
11221 (handle_inferior_event): Remove stale comment.
11222 * linux-nat.c (linux_nat_target::resume): Update comments.
11223 (save_stop_reason): Likewise.
11224 (linux_nat_filter_event): Likewise.
11225 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
11226
11227 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11228
11229 * elfread.c (record_minimal_symbol): Set section index to 0 for
11230 non-allocatable sections.
11231
11232
11233 2020-01-13 Ali Tamur <tamur@google.com>
11234
11235 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
11236 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
11237 to gdb::optional. Update comments.
11238 (dwo_file): Update comments.
11239 (read_attribute): Update API to take an additional out parameter,
11240 need_reprocess. This is used to mark attributes that need other
11241 attributes (e.g. str_offsets_base) for correct computation which may not
11242 have been read yet.
11243 (read_attribute_reprocess): New function declaration.
11244 (read_addr_index): Likewise.
11245 (read_dwo_str_index): Likewise.
11246 (read_stub_str_index): Likewise.
11247 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
11248 (lookup_addr_base): New function definition.
11249 (lookup_ranges_base): Likewise.
11250 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
11251 lookup_ranges_base.
11252 (init_cutu_and_read_dies): Update comments.
11253 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
11254 unit. This is used to inherit parent's str_offsets_base and addr_base.
11255 Update comments.
11256 (init_cutu_and_read_dies_simple): Reflect API changes.
11257 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
11258 (create_cus_hash_table): Change API to take parent compile unit.
11259 Reflect API changes.
11260 (open_and_init_dwo_file): Reflect API changes.
11261 (dwarf2_get_pc_bounds): Update comments.
11262 (dwarf2_record_block_ranges): Likewise.
11263 (read_full_die_1): Change implementation to reprocess attributes that
11264 need str_offsets_base and addr_base.
11265 (partial_die_info::read): Likewise.
11266 (read_attribute_reprocess): New function definition.
11267 (read_attribute_value): Change API to take an additional out parameter,
11268 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
11269 when a non-dwo compile unit has index based attributes.
11270 (read_attribute): Reflect API changes.
11271 (read_addr_index_1): Reflect API changes. Update comments.
11272 (dwarf2_read_addr_index_data): Reflect API changes.
11273 (dwarf2_read_addr_index): Likewise.
11274 (read_str_index): Change API and implementation. This becomes a helper
11275 to be used by the new string index related methods. Update error
11276 message and comments.
11277 (read_dwo_str_index): New function definition.
11278 (read_stub_str_index): Likewise.
11279 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
11280 * symfile.h (dwarf2_debug_sections): Likewise.
11281 * xcoffread.c (dwarf2_debug_sections): Likewise.
11282
11283 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11284
11285 * gdbcore.h (struct core_fns) <core_read_registers>: Change
11286 core_reg_sect type to gdb_byte *.
11287 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
11288 * cris-tdep.c (fetch_core_registers): Likewise.
11289 * corelow.c (core_target::get_core_register_section): Change
11290 type of `contents` to gdb::byte_vector.
11291
11292 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11293
11294 * tui/tui-wingeneral.c (box_win): Position the title in the center
11295 of the border.
11296
11297 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11298
11299 * corelow.c (core_target::get_core_register_section): Use
11300 std::vector instead of alloca.
11301
11302 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11303
11304 * warning.m4: Add -Wmissing-declarations to build_warnings.
11305 * configure: Re-generate.
11306
11307 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11308
11309 * python/python.c (init__gdb_module): Add declaration.
11310
11311 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11312
11313 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
11314 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
11315 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
11316 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
11317 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
11318 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
11319 * ada-exp.y (_initialize_ada_exp): Add declaration.
11320 * ada-lang.c (_initialize_ada_language): Add declaration.
11321 * ada-tasks.c (_initialize_tasks): Add declaration.
11322 * agent.c (_initialize_agent): Add declaration.
11323 * aix-thread.c (_initialize_aix_thread): Add declaration.
11324 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
11325 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
11326 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
11327 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
11328 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
11329 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
11330 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
11331 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
11332 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
11333 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
11334 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
11335 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
11336 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
11337 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
11338 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
11339 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
11340 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
11341 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
11342 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
11343 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
11344 * annotate.c (_initialize_annotate): Add declaration.
11345 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
11346 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
11347 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
11348 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
11349 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
11350 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
11351 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
11352 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
11353 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
11354 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
11355 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
11356 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
11357 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
11358 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
11359 * auto-load.c (_initialize_auto_load): Add declaration.
11360 * auxv.c (_initialize_auxv): Add declaration.
11361 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
11362 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
11363 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
11364 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
11365 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
11366 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
11367 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
11368 * breakpoint.c (_initialize_breakpoint): Add declaration.
11369 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
11370 * btrace.c (_initialize_btrace): Add declaration.
11371 * charset.c (_initialize_charset): Add declaration.
11372 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
11373 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11374 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11375 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11376 * cli/cli-script.c (_initialize_cli_script): Add declaration.
11377 * cli/cli-style.c (_initialize_cli_style): Add declaration.
11378 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11379 * coffread.c (_initialize_coffread): Add declaration.
11380 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11381 * compile/compile.c (_initialize_compile): Add declaration.
11382 * complaints.c (_initialize_complaints): Add declaration.
11383 * completer.c (_initialize_completer): Add declaration.
11384 * copying.c (_initialize_copying): Add declaration.
11385 * corefile.c (_initialize_core): Add declaration.
11386 * corelow.c (_initialize_corelow): Add declaration.
11387 * cp-abi.c (_initialize_cp_abi): Add declaration.
11388 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11389 * cp-support.c (_initialize_cp_support): Add declaration.
11390 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11391 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11392 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11393 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11394 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11395 * ctfread.c (_initialize_ctfread): Add declaration.
11396 * d-lang.c (_initialize_d_language): Add declaration.
11397 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11398 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11399 * dbxread.c (_initialize_dbxread): Add declaration.
11400 * dcache.c (_initialize_dcache): Add declaration.
11401 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11402 * disasm.c (_initialize_disasm): Add declaration.
11403 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11404 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11405 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11406 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11407 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11408 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11409 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11410 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11411 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11412 * elfread.c (_initialize_elfread): Add declaration.
11413 * exec.c (_initialize_exec): Add declaration.
11414 * extension.c (_initialize_extension): Add declaration.
11415 * f-lang.c (_initialize_f_language): Add declaration.
11416 * f-valprint.c (_initialize_f_valprint): Add declaration.
11417 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11418 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11419 * filesystem.c (_initialize_filesystem): Add declaration.
11420 * findcmd.c (_initialize_mem_search): Add declaration.
11421 * findvar.c (_initialize_findvar): Add declaration.
11422 * fork-child.c (_initialize_fork_child): Add declaration.
11423 * frame-base.c (_initialize_frame_base): Add declaration.
11424 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11425 * frame.c (_initialize_frame): Add declaration.
11426 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11427 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11428 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11429 * gcore.c (_initialize_gcore): Add declaration.
11430 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11431 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11432 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11433 * gdbarch.c (_initialize_gdbarch): Add declaration.
11434 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11435 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11436 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11437 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11438 * go-lang.c (_initialize_go_language): Add declaration.
11439 * go32-nat.c (_initialize_go32_nat): Add declaration.
11440 * guile/guile.c (_initialize_guile): Add declaration.
11441 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11442 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11443 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11444 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11445 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11446 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11447 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11448 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11449 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11450 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11451 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11452 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11453 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11454 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11455 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11456 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11457 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11458 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11459 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11460 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11461 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11462 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11463 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11464 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11465 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11466 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11467 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11468 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11469 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11470 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11471 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11472 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11473 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11474 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11475 * infcall.c (_initialize_infcall): Add declaration.
11476 * infcmd.c (_initialize_infcmd): Add declaration.
11477 * inflow.c (_initialize_inflow): Add declaration.
11478 * infrun.c (_initialize_infrun): Add declaration.
11479 * interps.c (_initialize_interpreter): Add declaration.
11480 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11481 * jit.c (_initialize_jit): Add declaration.
11482 * language.c (_initialize_language): Add declaration.
11483 * linux-fork.c (_initialize_linux_fork): Add declaration.
11484 * linux-nat.c (_initialize_linux_nat): Add declaration.
11485 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11486 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11487 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11488 * m2-lang.c (_initialize_m2_language): Add declaration.
11489 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11490 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11491 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11492 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11493 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11494 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11495 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11496 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11497 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11498 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11499 * machoread.c (_initialize_machoread): Add declaration.
11500 * macrocmd.c (_initialize_macrocmd): Add declaration.
11501 * macroscope.c (_initialize_macroscope): Add declaration.
11502 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11503 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11504 * maint.c (_initialize_maint_cmds): Add declaration.
11505 * mdebugread.c (_initialize_mdebugread): Add declaration.
11506 * memattr.c (_initialize_mem): Add declaration.
11507 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11508 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11509 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11510 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11511 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11512 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11513 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11514 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11515 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11516 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11517 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11518 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11519 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11520 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11521 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11522 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11523 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11524 * mipsread.c (_initialize_mipsread): Add declaration.
11525 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11526 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11527 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11528 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11529 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11530 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11531 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11532 * nto-procfs.c (_initialize_procfs): Add declaration.
11533 * objc-lang.c (_initialize_objc_language): Add declaration.
11534 * observable.c (_initialize_observer): Add declaration.
11535 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11536 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11537 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11538 * osabi.c (_initialize_gdb_osabi): Add declaration.
11539 * osdata.c (_initialize_osdata): Add declaration.
11540 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11541 * parse.c (_initialize_parse): Add declaration.
11542 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11543 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11544 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11545 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11546 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11547 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11548 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11549 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11550 * printcmd.c (_initialize_printcmd): Add declaration.
11551 * probe.c (_initialize_probe): Add declaration.
11552 * proc-api.c (_initialize_proc_api): Add declaration.
11553 * proc-events.c (_initialize_proc_events): Add declaration.
11554 * proc-service.c (_initialize_proc_service): Add declaration.
11555 * procfs.c (_initialize_procfs): Add declaration.
11556 * producer.c (_initialize_producer): Add declaration.
11557 * psymtab.c (_initialize_psymtab): Add declaration.
11558 * python/python.c (_initialize_python): Add declaration.
11559 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11560 * record-btrace.c (_initialize_record_btrace): Add declaration.
11561 * record-full.c (_initialize_record_full): Add declaration.
11562 * record.c (_initialize_record): Add declaration.
11563 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11564 * regcache.c (_initialize_regcache): Add declaration.
11565 * reggroups.c (_initialize_reggroup): Add declaration.
11566 * remote-notif.c (_initialize_notif): Add declaration.
11567 * remote-sim.c (_initialize_remote_sim): Add declaration.
11568 * remote.c (_initialize_remote): Add declaration.
11569 * reverse.c (_initialize_reverse): Add declaration.
11570 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11571 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11572 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11573 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11574 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11575 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11576 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11577 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11578 Add declaration.
11579 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11580 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11581 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11582 * rust-exp.y (_initialize_rust_exp): Add declaration.
11583 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11584 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11585 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11586 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11587 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11588 * score-tdep.c (_initialize_score_tdep): Add declaration.
11589 * ser-go32.c (_initialize_ser_dos): Add declaration.
11590 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11591 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11592 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11593 * ser-uds.c (_initialize_ser_socket): Add declaration.
11594 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11595 * serial.c (_initialize_serial): Add declaration.
11596 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11597 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11598 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11599 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11600 * skip.c (_initialize_step_skip): Add declaration.
11601 * sol-thread.c (_initialize_sol_thread): Add declaration.
11602 * solib-aix.c (_initialize_solib_aix): Add declaration.
11603 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11604 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11605 * solib-frv.c (_initialize_frv_solib): Add declaration.
11606 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11607 * solib-target.c (_initialize_solib_target): Add declaration.
11608 * solib.c (_initialize_solib): Add declaration.
11609 * source-cache.c (_initialize_source_cache): Add declaration.
11610 * source.c (_initialize_source): Add declaration.
11611 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11612 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11613 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11614 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11615 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11616 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11617 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11618 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11619 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11620 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11621 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11622 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11623 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11624 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11625 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11626 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11627 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11628 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11629 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11630 * stabsread.c (_initialize_stabsread): Add declaration.
11631 * stack.c (_initialize_stack): Add declaration.
11632 * stap-probe.c (_initialize_stap_probe): Add declaration.
11633 * std-regs.c (_initialize_frame_reg): Add declaration.
11634 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11635 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11636 * symfile.c (_initialize_symfile): Add declaration.
11637 * symmisc.c (_initialize_symmisc): Add declaration.
11638 * symtab.c (_initialize_symtab): Add declaration.
11639 * target.c (_initialize_target): Add declaration.
11640 * target-connection.c (_initialize_target_connection): Add
11641 declaration.
11642 * target-dcache.c (_initialize_target_dcache): Add declaration.
11643 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11644 * thread.c (_initialize_thread): Add declaration.
11645 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11646 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11647 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11648 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11649 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11650 * tracectf.c (_initialize_ctf): Add declaration.
11651 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11652 * tracefile.c (_initialize_tracefile): Add declaration.
11653 * tracepoint.c (_initialize_tracepoint): Add declaration.
11654 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11655 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11656 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11657 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11658 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11659 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11660 * tui/tui.c (_initialize_tui): Add declaration.
11661 * typeprint.c (_initialize_typeprint): Add declaration.
11662 * ui-style.c (_initialize_ui_style): Add declaration.
11663 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11664 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11665 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11666 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11667 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11668 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11669 * unittests/filtered_iterator-selftests.c
11670 (_initialize_filtered_iterator_selftests): Add declaration.
11671 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11672 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11673 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11674 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11675 * unittests/main-thread-selftests.c
11676 (_initialize_main_thread_selftests): Add declaration.
11677 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11678 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11679 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11680 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11681 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11682 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11683 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11684 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11685 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11686 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11687 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11688 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11689 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11690 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11691 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11692 declaration.
11693 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11694 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11695 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11696 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11697 * user-regs.c (_initialize_user_regs): Add declaration.
11698 * utils.c (_initialize_utils): Add declaration.
11699 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11700 * valops.c (_initialize_valops): Add declaration.
11701 * valprint.c (_initialize_valprint): Add declaration.
11702 * value.c (_initialize_values): Add declaration.
11703 * varobj.c (_initialize_varobj): Add declaration.
11704 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11705 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11706 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11707 * windows-nat.c (_initialize_windows_nat): Add declaration.
11708 (_initialize_check_for_gdb_ini): Add declaration.
11709 (_initialize_loadable): Add declaration.
11710 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11711 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11712 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11713 * xcoffread.c (_initialize_xcoffread): Add declaration.
11714 * xml-support.c (_initialize_xml_support): Add declaration.
11715 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11716 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11717 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11718 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11719
11720 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11721
11722 * regformats/regdat.sh: Generate declaration for init function.
11723
11724 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11725
11726 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11727 up.
11728 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11729 close_one_inferior>: New methods.
11730 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11731 pass down target to find_inferior_pid.
11732 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11733 Pass down target to find_inferior_ptid.
11734 (gdbsim_target::create_inferior): Pass down target to
11735 add_thread_silent.
11736 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11737 target down to find_inferior_ptid and switch_to_thread.
11738 (gdbsim_target::close): Update to call close_one_inferior.
11739 (struct resume_data): Remove.
11740 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11741 directly, rather than through a void pointer.
11742 (gdbsim_target::resume): Update to call resume_one_inferior.
11743
11744 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11745
11746 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11747
11748 2020-01-12 Pedro Alves <palves@redhat.com>
11749
11750 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11751 directly for the current inferior instead of
11752 discard_all_inferiors.
11753 (discard_all_inferiors): Delete.
11754
11755 2020-01-11 Tom Tromey <tom@tromey.com>
11756
11757 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11758 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11759 deprecated_safe_get_selected_frame.
11760
11761 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11762
11763 * inferior.c (print_inferior): Switch inferior before printing it.
11764
11765 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11766 Pedro Alves <palves@redhat.com>
11767
11768 * progspace-and-thread.c (switch_to_program_space_and_thread):
11769 Assert there's an inferior for PSPACE. Use
11770 switch_to_inferior_no_thread to switch the inferior too.
11771 * progspace.c (program_space::~program_space): Call
11772 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11773 (program_space::free_all_objfiles): Don't call clear_symtab_users
11774 here.
11775 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11776
11777 2020-01-10 Pedro Alves <palves@redhat.com>
11778
11779 * NEWS: Mention multi-target debugging, "info connections", and
11780 "add-inferior -no-connection".
11781
11782 2020-01-10 Pedro Alves <palves@redhat.com>
11783
11784 * infrun.c: Include "target-connection.h".
11785 (check_multi_target_resumption): New.
11786 (proceed): Call it.
11787 * target-connection.c (make_target_connection_string): Make
11788 extern.
11789 * target-connection.h (make_target_connection_string): Declare.
11790
11791 2020-01-10 Pedro Alves <palves@redhat.com>
11792
11793 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11794 * inferior.c (uiout_field_connection): New function.
11795 (print_inferior): Add new "connection-id" column.
11796 (add_inferior_command): Show connection number/string of added
11797 inferior.
11798 * process-stratum-target.h
11799 (process_stratum_target::connection_string): New virtual method.
11800 (process_stratum_target::connection_number): New field.
11801 * remote.c (remote_target::connection_string): New override.
11802 * target-connection.c: New file.
11803 * target-connection.h: New file.
11804 * target.c (decref_target): Remove process_stratum targets from
11805 the connection list.
11806 (target_stack::push): Add process_stratum targets to the
11807 connection list.
11808
11809 2020-01-10 Pedro Alves <palves@redhat.com>
11810
11811 Revert:
11812 2016-04-12 Pedro Alves <palves@redhat.com>
11813 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11814 Remove references to name.
11815 * serial.h (struct serial) <name>: Delete.
11816
11817 2020-01-10 Pedro Alves <palves@redhat.com>
11818
11819 * gdbarch-selftests.c (register_to_value_test): Remove "target
11820 already pushed" check.
11821
11822 2020-01-10 Pedro Alves <palves@redhat.com>
11823 John Baldwin <jhb@FreeBSD.org>
11824
11825 * aarch64-linux-nat.c
11826 (aarch64_linux_nat_target::thread_architecture): Adjust.
11827 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11828 (task_command_1): Likewise.
11829 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11830 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11831 (aix_thread_target::store_registers)
11832 (aix_thread_target::thread_alive): Adjust.
11833 * amd64-fbsd-tdep.c: Include "inferior.h".
11834 (amd64fbsd_get_thread_local_address): Pass down target.
11835 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11836 thread's gdbarch instead of target_gdbarch.
11837 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11838 get_last_target_status.
11839 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11840 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11841 inferiors.
11842 (update_inserted_breakpoint_locations): Skip if inferiors with no
11843 execution.
11844 (update_global_location_list): When handling moribund locations,
11845 find representative inferior for location's pspace, and use thread
11846 count of its process_stratum target.
11847 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11848 * bsd-uthread.c (bsd_uthread_target::wait): Use
11849 as_process_stratum_target and adjust thread_change_ptid and
11850 add_thread calls.
11851 (bsd_uthread_target::update_thread_list): Use
11852 as_process_stratum_target and adjust find_thread_ptid,
11853 thread_change_ptid and add_thread calls.
11854 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11855 find_thread_ptid call.
11856 * corelow.c (add_to_thread_list): Adjust add_thread call.
11857 (core_target_open): Adjust add_thread_silent and thread_count
11858 calls.
11859 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11860 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11861 * event-top.c (async_disconnect): Pop targets from all inferiors.
11862 * exec.c (add_target_sections): Push exec target on all inferiors
11863 sharing the program space.
11864 (remove_target_sections): Remove the exec target from all
11865 inferiors sharing the program space.
11866 (exec_on_vfork): New.
11867 * exec.h (exec_on_vfork): Declare.
11868 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11869 Pass it down.
11870 (fbsd_nat_target::update_thread_list): Adjust.
11871 (fbsd_nat_target::resume): Adjust.
11872 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11873 down.
11874 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11875 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11876 get_thread_arch_regcache call.
11877 * fork-child.c (gdb_startup_inferior): Pass target down to
11878 startup_inferior and set_executing.
11879 * gdbthread.h (struct process_stratum_target): Forward declare.
11880 (add_thread, add_thread_silent, add_thread_with_info)
11881 (in_thread_list): Add process_stratum_target parameter.
11882 (find_thread_ptid(inferior*, ptid_t)): New overload.
11883 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11884 parameter.
11885 (all_threads()): Delete overload.
11886 (all_threads, all_non_exited_threads): Add process_stratum_target
11887 parameter.
11888 (all_threads_safe): Use brace initialization.
11889 (thread_count): Add process_stratum_target parameter.
11890 (set_resumed, set_running, set_stop_requested, set_executing)
11891 (threads_are_executing, finish_thread_state): Add
11892 process_stratum_target parameter.
11893 (switch_to_thread): Use is_current_thread.
11894 * i386-fbsd-tdep.c: Include "inferior.h".
11895 (i386fbsd_get_thread_local_address): Pass down target.
11896 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11897 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11898 have_inferiors check.
11899 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11900 (inf_ptrace_target::attach): Adjust.
11901 * infcall.c (run_inferior_call): Adjust.
11902 * infcmd.c (run_command_1): Pass target to
11903 scoped_finish_thread_state.
11904 (proceed_thread_callback): Skip inferiors with no execution.
11905 (continue_command): Rename 'all_threads' local to avoid hiding
11906 'all_threads' function. Adjust get_last_target_status call.
11907 (prepare_one_step): Adjust set_running call.
11908 (signal_command): Use user_visible_resume_target. Compare thread
11909 pointers instead of inferior_ptid.
11910 (info_program_command): Adjust to pass down target.
11911 (attach_command): Mark target's 'thread_executing' flag.
11912 (stop_current_target_threads_ns): New, factored out from ...
11913 (interrupt_target_1): ... this. Switch inferior before making
11914 target calls.
11915 * inferior-iter.h
11916 (struct all_inferiors_iterator, struct all_inferiors_range)
11917 (struct all_inferiors_safe_range)
11918 (struct all_non_exited_inferiors_range): Filter on
11919 process_stratum_target too. Remove explicit.
11920 * inferior.c (inferior::inferior): Push dummy target on target
11921 stack.
11922 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11923 Add process_stratum_target parameter, and pass it down.
11924 (have_live_inferiors): Adjust.
11925 (switch_to_inferior_and_push_target): New.
11926 (add_inferior_command, clone_inferior_command): Handle
11927 "-no-connection" parameter. Use
11928 switch_to_inferior_and_push_target.
11929 (_initialize_inferior): Mention "-no-connection" option in
11930 the help of "add-inferior" and "clone-inferior" commands.
11931 * inferior.h: Include "process-stratum-target.h".
11932 (interrupt_target_1): Use bool.
11933 (struct inferior) <push_target, unpush_target, target_is_pushed,
11934 find_target_beneath, top_target, process_target, target_at,
11935 m_stack>: New.
11936 (discard_all_inferiors): Delete.
11937 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11938 (all_inferiors, all_non_exited_inferiors): Add
11939 process_stratum_target parameter.
11940 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11941 (target_last_proc_target): New global.
11942 (follow_fork_inferior): Push target on new inferior. Pass target
11943 to add_thread_silent. Call exec_on_vfork. Handle target's
11944 reference count.
11945 (follow_fork): Adjust get_last_target_status call. Also consider
11946 target.
11947 (follow_exec): Push target on new inferior.
11948 (struct execution_control_state) <target>: New field.
11949 (user_visible_resume_target): New.
11950 (do_target_resume): Call target_async.
11951 (resume_1): Set target's threads_executing flag. Consider resume
11952 target.
11953 (commit_resume_all_targets): New.
11954 (proceed): Also consider resume target. Skip threads of inferiors
11955 with no execution. Commit resumtion in all targets.
11956 (start_remote): Pass current inferior to wait_for_inferior.
11957 (infrun_thread_stop_requested): Consider target as well. Pass
11958 thread_info pointer to clear_inline_frame_state instead of ptid.
11959 (infrun_thread_thread_exit): Consider target as well.
11960 (random_pending_event_thread): New inferior parameter. Use it.
11961 (do_target_wait): Rename to ...
11962 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11963 down.
11964 (threads_are_resumed_pending_p, do_target_wait): New.
11965 (prepare_for_detach): Adjust calls.
11966 (wait_for_inferior): New inferior parameter. Handle it. Use
11967 do_target_wait_1 instead of do_target_wait.
11968 (fetch_inferior_event): Adjust. Switch to representative
11969 inferior. Pass target down.
11970 (set_last_target_status): Add process_stratum_target parameter.
11971 Save target in global.
11972 (get_last_target_status): Add process_stratum_target parameter and
11973 handle it.
11974 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11975 (context_switch): Check inferior_ptid == null_ptid before calling
11976 inferior_thread().
11977 (get_inferior_stop_soon): Pass down target.
11978 (wait_one): Rename to ...
11979 (poll_one_curr_target): ... this.
11980 (struct wait_one_event): New.
11981 (wait_one): New.
11982 (stop_all_threads): Adjust.
11983 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11984 event's target.
11985 (switch_back_to_stepped_thread): Also consider target.
11986 (print_stop_event): Update.
11987 (normal_stop): Update. Also consider the resume target.
11988 * infrun.h (wait_for_inferior): Remove declaration.
11989 (user_visible_resume_target): New declaration.
11990 (get_last_target_status, set_last_target_status): New
11991 process_stratum_target parameter.
11992 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11993 process_stratum_target parameter, and use it.
11994 (clear_inline_frame_state (thread_info*)): New.
11995 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11996 process_stratum_target parameter.
11997 (clear_inline_frame_state (thread_info*)): Declare.
11998 * linux-fork.c (delete_checkpoint_command): Pass target down to
11999 find_thread_ptid.
12000 (checkpoint_command): Adjust.
12001 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
12002 instead of just tweaking inferior_ptid.
12003 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
12004 (exit_lwp): Pass target down to find_thread_ptid.
12005 (attach_proc_task_lwp_callback): Pass target down to
12006 add_thread/set_running/set_executing.
12007 (linux_nat_target::attach): Pass target down to
12008 thread_change_ptid.
12009 (get_detach_signal): Pass target down to find_thread_ptid.
12010 Consider last target status's target.
12011 (linux_resume_one_lwp_throw, resume_lwp)
12012 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
12013 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
12014 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
12015 (linux_nat_target::async_wait_fd): New.
12016 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
12017 target down.
12018 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
12019 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
12020 * linux-thread-db.c (struct thread_db_info::process_target): New
12021 field.
12022 (add_thread_db_info): Save target.
12023 (get_thread_db_info): New process_stratum_target parameter. Also
12024 match target.
12025 (delete_thread_db_info): New process_stratum_target parameter.
12026 Also match target.
12027 (thread_from_lwp): Adjust to pass down target.
12028 (thread_db_notice_clone): Pass down target.
12029 (check_thread_db_callback): Pass down target.
12030 (try_thread_db_load_1): Always push the thread_db target.
12031 (try_thread_db_load, record_thread): Pass target down.
12032 (thread_db_target::detach): Pass target down. Always unpush the
12033 thread_db target.
12034 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
12035 target down. Always unpush the thread_db target.
12036 (find_new_threads_callback, thread_db_find_new_threads_2)
12037 (thread_db_target::update_thread_list): Pass target down.
12038 (thread_db_target::pid_to_str): Pass current inferior down.
12039 (thread_db_target::get_thread_local_address): Pass target down.
12040 (thread_db_target::resume, maintenance_check_libthread_db): Pass
12041 target down.
12042 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
12043 * procfs.c (procfs_target::procfs_init_inferior): Declare.
12044 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
12045 (procfs_init_inferior): Rename to ...
12046 (procfs_target::procfs_init_inferior): ... this and adjust.
12047 (procfs_target::create_inferior, procfs_notice_thread)
12048 (procfs_do_thread_registers): Adjust.
12049 * ppc-fbsd-tdep.c: Include "inferior.h".
12050 (ppcfbsd_get_thread_local_address): Pass down target.
12051 * proc-service.c (ps_xfer_memory): Switch current inferior and
12052 program space as well.
12053 (get_ps_regcache): Pass target down.
12054 * process-stratum-target.c
12055 (process_stratum_target::thread_address_space)
12056 (process_stratum_target::thread_architecture): Pass target down.
12057 * process-stratum-target.h
12058 (process_stratum_target::threads_executing): New field.
12059 (as_process_stratum_target): New.
12060 * ravenscar-thread.c
12061 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
12062 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
12063 down.
12064 * record-btrace.c (record_btrace_target::info_record): Adjust.
12065 (record_btrace_target::record_method)
12066 (record_btrace_target::record_is_replaying)
12067 (record_btrace_target::fetch_registers)
12068 (get_thread_current_frame_id, record_btrace_target::resume)
12069 (record_btrace_target::wait, record_btrace_target::stop): Pass
12070 target down.
12071 * record-full.c (record_full_wait_1): Switch to event thread.
12072 Pass target down.
12073 * regcache.c (regcache::regcache)
12074 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
12075 process_stratum_target parameter and handle it.
12076 (current_thread_target): New global.
12077 (get_thread_regcache): Add process_stratum_target parameter and
12078 handle it. Switch inferior before calling target method.
12079 (get_thread_regcache): Pass target down.
12080 (get_thread_regcache_for_ptid): Pass target down.
12081 (registers_changed_ptid): Add process_stratum_target parameter and
12082 handle it.
12083 (registers_changed_thread, registers_changed): Pass target down.
12084 (test_get_thread_arch_aspace_regcache): New.
12085 (current_regcache_test): Define a couple local test_target_ops
12086 instances and use them for testing.
12087 (readwrite_regcache): Pass process_stratum_target parameter.
12088 (cooked_read_test, cooked_write_test): Pass mock_target down.
12089 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
12090 (get_thread_arch_aspace_regcache): Add process_stratum_target
12091 parameter.
12092 (regcache::target): New method.
12093 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
12094 (regcache::registers_changed_ptid): Add process_stratum_target
12095 parameter.
12096 (regcache::m_target): New field.
12097 (registers_changed_ptid): Add process_stratum_target parameter.
12098 * remote.c (remote_state::supports_vCont_probed): New field.
12099 (remote_target::async_wait_fd): New method.
12100 (remote_unpush_and_throw): Add remote_target parameter.
12101 (get_current_remote_target): Adjust.
12102 (remote_target::remote_add_inferior): Push target.
12103 (remote_target::remote_add_thread)
12104 (remote_target::remote_notice_new_inferior)
12105 (get_remote_thread_info): Pass target down.
12106 (remote_target::update_thread_list): Skip threads of inferiors
12107 bound to other targets. (remote_target::close): Don't discard
12108 inferiors. (remote_target::add_current_inferior_and_thread)
12109 (remote_target::process_initial_stop_replies)
12110 (remote_target::start_remote)
12111 (remote_target::remote_serial_quit_handler): Pass down target.
12112 (remote_target::remote_unpush_target): New remote_target
12113 parameter. Unpush the target from all inferiors.
12114 (remote_target::remote_unpush_and_throw): New remote_target
12115 parameter. Pass it down.
12116 (remote_target::open_1): Check whether the current inferior has
12117 execution instead of checking whether any inferior is live. Pass
12118 target down.
12119 (remote_target::remote_detach_1): Pass down target. Use
12120 remote_unpush_target.
12121 (extended_remote_target::attach): Pass down target.
12122 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
12123 (remote_target::append_resumption): Pass down target.
12124 (remote_target::append_pending_thread_resumptions)
12125 (remote_target::remote_resume_with_hc, remote_target::resume)
12126 (remote_target::commit_resume): Pass down target.
12127 (remote_target::remote_stop_ns): Check supports_vCont_probed.
12128 (remote_target::interrupt_query)
12129 (remote_target::remove_new_fork_children)
12130 (remote_target::check_pending_events_prevent_wildcard_vcont)
12131 (remote_target::remote_parse_stop_reply)
12132 (remote_target::process_stop_reply): Pass down target.
12133 (first_remote_resumed_thread): New remote_target parameter. Pass
12134 it down.
12135 (remote_target::wait_as): Pass down target.
12136 (unpush_and_perror): New remote_target parameter. Pass it down.
12137 (remote_target::readchar, remote_target::remote_serial_write)
12138 (remote_target::getpkt_or_notif_sane_1)
12139 (remote_target::kill_new_fork_children, remote_target::kill): Pass
12140 down target.
12141 (remote_target::mourn_inferior): Pass down target. Use
12142 remote_unpush_target.
12143 (remote_target::core_of_thread)
12144 (remote_target::remote_btrace_maybe_reopen): Pass down target.
12145 (remote_target::pid_to_exec_file)
12146 (remote_target::thread_handle_to_thread_info): Pass down target.
12147 (remote_target::async_wait_fd): New.
12148 * riscv-fbsd-tdep.c: Include "inferior.h".
12149 (riscv_fbsd_get_thread_local_address): Pass down target.
12150 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
12151 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
12152 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
12153 Adjust.
12154 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
12155 * solib-svr4.c (enable_break): Pass down target.
12156 * spu-multiarch.c (parse_spufs_run): Pass down target.
12157 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
12158 * target-delegates.c: Regenerate.
12159 * target.c (g_target_stack): Delete.
12160 (current_top_target): Return the current inferior's top target.
12161 (target_has_execution_1): Refer to the passed-in inferior's top
12162 target.
12163 (target_supports_terminal_ours): Check whether the initial
12164 inferior was already created.
12165 (decref_target): New.
12166 (target_stack::push): Incref/decref the target.
12167 (push_target, push_target, unpush_target): Adjust.
12168 (target_stack::unpush): Defref target.
12169 (target_is_pushed): Return bool. Adjust to refer to the current
12170 inferior's target stack.
12171 (dispose_inferior): Delete, and inline parts ...
12172 (target_preopen): ... here. Only dispose of the current inferior.
12173 (target_detach): Hold strong target reference while detaching.
12174 Pass target down.
12175 (target_thread_name): Add assertion.
12176 (target_resume): Pass down target.
12177 (target_ops::beneath, find_target_at): Adjust to refer to the
12178 current inferior's target stack.
12179 (get_dummy_target): New.
12180 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
12181 has a thread running.
12182 (initialize_targets): Rename to ...
12183 (_initialize_target): ... this.
12184 * target.h: Include "gdbsupport/refcounted-object.h".
12185 (struct target_ops): Inherit refcounted_object.
12186 (target_ops::shortname, target_ops::longname): Make const.
12187 (target_ops::async_wait_fd): New method.
12188 (decref_target): Declare.
12189 (struct target_ops_ref_policy): New.
12190 (target_ops_ref): New typedef.
12191 (get_dummy_target): Declare function.
12192 (target_is_pushed): Return bool.
12193 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
12194 (all_matching_threads_iterator::all_matching_threads_iterator):
12195 Handle filter target.
12196 * thread-iter.h (struct all_matching_threads_iterator, struct
12197 all_matching_threads_range, class all_non_exited_threads_range):
12198 Filter by target too. Remove explicit.
12199 * thread.c (threads_executing): Delete.
12200 (inferior_thread): Pass down current inferior.
12201 (clear_thread_inferior_resources): Pass down thread pointer
12202 instead of ptid_t.
12203 (add_thread_silent, add_thread_with_info, add_thread): Add
12204 process_stratum_target parameter. Use it for thread and inferior
12205 searches.
12206 (is_current_thread): New.
12207 (thread_info::deletable): Use it.
12208 (find_thread_ptid, thread_count, in_thread_list)
12209 (thread_change_ptid, set_resumed, set_running): New
12210 process_stratum_target parameter. Pass it down.
12211 (set_executing): New process_stratum_target parameter. Pass it
12212 down. Adjust reference to 'threads_executing'.
12213 (threads_are_executing): New process_stratum_target parameter.
12214 Adjust reference to 'threads_executing'.
12215 (set_stop_requested, finish_thread_state): New
12216 process_stratum_target parameter. Pass it down.
12217 (switch_to_thread): Also match inferior.
12218 (switch_to_thread): New process_stratum_target parameter. Pass it
12219 down.
12220 (update_threads_executing): Reimplement.
12221 * top.c (quit_force): Pop targets from all inferior.
12222 (gdb_init): Don't call initialize_targets.
12223 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
12224 Declare.
12225 (windows_add_thread, windows_delete_thread): Adjust.
12226 (get_windows_debug_event): Rename to ...
12227 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
12228 * tracefile-tfile.c (tfile_target_open): Pass down target.
12229 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
12230 Forward declare.
12231 (switch_to_thread): Add process_stratum_target parameter.
12232 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
12233 parameter. Use it.
12234 (mi_on_resume): Pass target down.
12235 * nat/fork-inferior.c (startup_inferior): Add
12236 process_stratum_target parameter. Pass it down.
12237 * nat/fork-inferior.h (startup_inferior): Add
12238 process_stratum_target parameter.
12239 * python/py-threadevent.c (py_get_event_thread): Pass target down.
12240
12241 2020-01-10 Pedro Alves <palves@redhat.com>
12242
12243 * remote.c (remote_target::start_remote): Don't set inferior_ptid
12244 directly. Instead find the first thread in the thread list and
12245 use switch_to_thread.
12246
12247 2020-01-10 Pedro Alves <palves@redhat.com>
12248
12249 * remote.c (remote_target::remote_add_inferior): Don't bind a
12250 process to the current inferior if the current inferior is already
12251 bound to a process.
12252
12253 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12254 Pedro Alves <palves@redhat.com>
12255
12256 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
12257 If no process is specified, return null_ptid instead of
12258 inferior_ptid.
12259 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
12260 TARGET_WAITKIND_SIGNALLED with no pid.
12261
12262 2020-01-10 Pedro Alves <palves@redhat.com>
12263
12264 * remote.c (first_remote_resumed_thread): New.
12265 (remote_target::wait_as): Use it as default event_ptid instead of
12266 inferior_ptid.
12267
12268 2020-01-10 Pedro Alves <palves@redhat.com>
12269
12270 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
12271
12272 2020-01-10 Pedro Alves <palves@redhat.com>
12273
12274 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
12275 not -1.
12276
12277 2020-01-10 Pedro Alves <palves@redhat.com>
12278
12279 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
12280 ptid to get_last_target_status.
12281 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
12282 ptid to get_last_target_status.
12283 * infcmd.c (continue_command): Don't pass a target_waitstatus to
12284 get_last_target_status.
12285 (info_program_command): Don't pass a target_waitstatus to
12286 get_last_target_status.
12287 * infrun.c (init_wait_for_inferior): Use
12288 nullify_last_target_wait_ptid.
12289 (get_last_target_status): Handle nullptr arguments.
12290 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
12291 (print_stop_event): Don't pass a ptid to get_last_target_status.
12292 (normal_stop): Don't pass a ptid to get_last_target_status.
12293 * infrun.h (get_last_target_status, set_last_target_status): Move
12294 comments here and update.
12295 (nullify_last_target_wait_ptid): Declare.
12296 * linux-fork.c (fork_load_infrun_state): Remove local extern
12297 declaration of nullify_last_target_wait_ptid.
12298 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
12299 to get_last_target_status.
12300
12301 2020-01-10 Pedro Alves <palves@redhat.com>
12302
12303 * gdbthread.h (scoped_restore_current_thread)
12304 <dont_restore, restore, m_dont_restore>: Declare.
12305 * thread.c (thread_alive): Add assertion. Return bool.
12306 (switch_to_thread_if_alive): New.
12307 (prune_threads): Switch inferior/thread.
12308 (print_thread_info_1): Switch thread before calling target methods.
12309 (scoped_restore_current_thread::restore): New, factored out from
12310 ...
12311 (scoped_restore_current_thread::~scoped_restore_current_thread):
12312 ... this.
12313 (scoped_restore_current_thread::scoped_restore_current_thread):
12314 Add assertion.
12315 (thread_apply_all_command, thread_select): Use
12316 switch_to_thread_if_alive.
12317 * infrun.c (proceed, restart_threads, handle_signal_stop)
12318 (switch_back_to_stepped_thread): Switch current thread before
12319 calling target methods.
12320
12321 2020-01-10 Pedro Alves <palves@redhat.com>
12322
12323 * inferior.c (switch_to_inferior_no_thread): New function,
12324 factored out from ...
12325 (inferior_command): ... here.
12326 * inferior.h (switch_to_inferior_no_thread): Declare.
12327 * mi/mi-main.c (run_one_inferior): Use
12328 switch_to_inferior_no_thread.
12329
12330 2020-01-10 Pedro Alves <palves@redhat.com>
12331
12332 * infcmd.c (kill_command): Remove dead code.
12333
12334 2020-01-10 Pedro Alves <palves@redhat.com>
12335
12336 * remote.c (remote_target::mourn_inferior): No longer check
12337 whether the target is running.
12338
12339 2020-01-10 Pedro Alves <palves@redhat.com>
12340
12341 * corelow.c (core_target::has_execution): Change parameter type to
12342 inferior pointer.
12343 * inferior.c (number_of_live_inferiors): Use
12344 inferior::has_execution instead of target_has_execution_1.
12345 * inferior.h (inferior::has_execution): New.
12346 * linux-thread-db.c (thread_db_target::update_thread_list): Use
12347 inferior::has_execution instead of target_has_execution_1.
12348 * process-stratum-target.c
12349 (process_stratum_target::has_execution): Change parameter type to
12350 inferior pointer. Check the inferior's PID instead of
12351 inferior_ptid.
12352 * process-stratum-target.h
12353 (process_stratum_target::has_execution): Change parameter type to
12354 inferior pointer.
12355 * record-full.c (record_full_core_target::has_execution): Change
12356 parameter type to inferior pointer.
12357 * target.c (target_has_execution_1): Change parameter type to
12358 inferior pointer.
12359 (target_has_execution_current): Adjust.
12360 * target.h (target_ops::has_execution): Change parameter type to
12361 inferior pointer.
12362 (target_has_execution_1): Change parameter type to inferior
12363 pointer. Change return type to bool.
12364 * tracefile.h (tracefile_target::has_execution): Change parameter
12365 type to inferior pointer.
12366
12367 2020-01-10 Pedro Alves <palves@redhat.com>
12368
12369 * exceptions.c (print_flush): Remove current_top_target() check.
12370
12371 2020-01-10 Pedro Alves <palves@redhat.com>
12372
12373 * remote.c (show_remote_exec_file): Show the current inferior's
12374 exec-file instead of the command variable's value.
12375
12376 2020-01-10 Pedro Alves <palves@redhat.com>
12377
12378 * record-full.c (record_full_resume_ptid): New global.
12379 (record_full_target::resume): Set it.
12380 (record_full_wait_1): Use record_full_resume_ptid instead of
12381 inferior_ptid.
12382
12383 2020-01-10 Pedro Alves <palves@redhat.com>
12384
12385 * gdbthread.h (scoped_restore_current_thread)
12386 <dont_restore, restore, m_dont_restore>: Declare.
12387 * thread.c (thread_alive): Add assertion. Return bool.
12388 (switch_to_thread_if_alive): New.
12389 (prune_threads): Switch inferior/thread.
12390 (print_thread_info_1): Switch thread before calling target methods.
12391 (scoped_restore_current_thread::restore): New, factored out from
12392 ...
12393 (scoped_restore_current_thread::~scoped_restore_current_thread):
12394 ... this.
12395 (scoped_restore_current_thread::scoped_restore_current_thread):
12396 Add assertion.
12397 (thread_apply_all_command, thread_select): Use
12398 switch_to_thread_if_alive.
12399
12400 2020-01-10 George Barrett <bob@bob131.so>
12401
12402 * stap-probe.c (stap_modify_semaphore): Don't check for null
12403 semaphores.
12404 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12405 for null semaphores.
12406
12407 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12408
12409 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12410 all source windows, and maintain horizontal scroll status while
12411 doing so.
12412
12413 2020-01-09 Tom Tromey <tom@tromey.com>
12414
12415 PR tui/18932:
12416 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12417 update_source_window, not print_source_lines.
12418
12419 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12420
12421 * tui/tui.c (tui_enable): Register tui hooks after calling
12422 tui_display_main.
12423
12424 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12425
12426 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12427
12428 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
12429
12430 * thread.c (print_thread_info_1): Fix indentation.
12431
12432 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12433
12434 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12435 unique_xmalloc_ptr outside the if to always free the demangled name.
12436
12437 2020-01-08 Tom Tromey <tromey@adacore.com>
12438
12439 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12440 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12441 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12442 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12443 Remove.
12444 (section_offsets): New typedef.
12445 * symtab.c (fixup_section, get_msymbol_address): Update.
12446 * symmisc.c (dump_msymbols): Update.
12447 * symfile.h (relative_addr_info_to_section_offsets)
12448 (symfile_map_offsets_to_segments): Update.
12449 * symfile.c (build_section_addr_info_from_objfile)
12450 (init_objfile_sect_indices): Update.
12451 (struct place_section_arg): Change type of "offsets".
12452 (place_section): Update.
12453 (relative_addr_info_to_section_offsets): Change type of
12454 "section_offsets". Remove "num_sections" parameter.
12455 (default_symfile_offsets, syms_from_objfile_1)
12456 (set_objfile_default_section_offset): Update.
12457 (reread_symbols): No need to preserve section offsets by hand.
12458 (symfile_map_offsets_to_segments): Change type of "offsets".
12459 * stap-probe.c (relocate_address): Update.
12460 * stabsread.h (process_one_symbol): Update.
12461 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12462 (solib_target_relocate_section_addresses): Update.
12463 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12464 Update.
12465 * solib-frv.c (frv_relocate_main_executable): Update.
12466 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12467 * solib-aix.c (solib_aix_get_section_offsets): Change return
12468 type.
12469 (solib_aix_solib_create_inferior_hook): Update.
12470 * remote.c (remote_target::get_offsets): Update.
12471 * psymtab.c (find_pc_sect_psymtab): Update.
12472 * psympriv.h (struct partial_symbol) <address, text_low,
12473 text_high>: Update.
12474 * objfiles.h (obj_section_offset): Update.
12475 (struct objfile) <section_offsets>: Change type.
12476 <num_sections>: Remove.
12477 (objfile_relocate): Update.
12478 * objfiles.c (entry_point_address_query): Update
12479 (relocate_one_symbol): Change type of "section_offsets".
12480 (objfile_relocate1, objfile_relocate1): Change type of
12481 "new_offsets".
12482 (objfile_rebase1): Update.
12483 * mipsread.c (mipscoff_symfile_read): Update.
12484 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12485 parameter.
12486 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12487 (parse_external, psymtab_to_symtab_1): Update.
12488 * machoread.c (macho_symfile_offsets): Update.
12489 * ia64-tdep.c (ia64_find_unwind_table): Update.
12490 * hppa-tdep.c (read_unwind_info): Update.
12491 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12492 * dwarf2read.c (create_addrmap_from_index)
12493 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12494 (process_psymtab_comp_unit_reader, add_partial_symbol)
12495 (add_partial_subprogram, process_full_comp_unit)
12496 (read_file_scope, read_func_scope, read_lexical_block_scope)
12497 (read_call_site_scope, dwarf2_rnglists_process)
12498 (dwarf2_ranges_process, dwarf2_ranges_read)
12499 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12500 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12501 Update.
12502 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12503 Update.
12504 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12505 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12506 (process_one_symbol): Change type of "section_offsets".
12507 * ctfread.c (get_objfile_text_range): Update.
12508 * coffread.c (coff_symtab_read, enter_linenos)
12509 (process_coff_symbol): Update.
12510 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12511 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12512
12513 2020-01-08 Tom Tromey <tromey@adacore.com>
12514
12515 * dwarf2read.c (parse_macro_definition): Use std::string.
12516 (parse_macro_definition): Likewise.
12517
12518 2020-01-08 Tom Tromey <tromey@adacore.com>
12519
12520 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12521 (ATTR_ALLOC_CHUNK): Remove.
12522
12523 2020-01-08 Tom Tromey <tromey@adacore.com>
12524
12525 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12526
12527 2020-01-08 Tom Tromey <tromey@adacore.com>
12528
12529 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12530 (dwarf2_compute_name, open_dwo_file): Likewise.
12531 (process_enumeration_scope): Use std::vector.
12532 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12533 (partial_die_info::fixup, dwarf2_start_subfile)
12534 (guess_full_die_structure_name, dwarf2_name): Likewise.
12535 (determine_prefix): Update.
12536 (guess_full_die_structure_name): Make return type const.
12537 (partial_die_full_name): Return unique_xmalloc_ptr.
12538 (DW_FIELD_ALLOC_CHUNK): Remove.
12539
12540 2020-01-07 Tom Tromey <tromey@adacore.com>
12541
12542 PR build/24937:
12543 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12544
12545 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12546
12547 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12548
12549 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12550
12551 * stack.c (print_frame_info): Move disassemble_next_line code
12552 inside source_print block.
12553
12554 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12555
12556 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12557 gdb/signals.h, as we are now using native signal symbols.
12558
12559 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12560
12561 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12562 overflow by an early check of content vs threshold.
12563 * tui/tui-source.c (tui_source_window::line_is_displayed):
12564 Likewise.
12565
12566 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12567
12568 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12569
12570 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12571
12572 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12573 export table if no section contains it's RVA.
12574
12575 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12576
12577 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12578
12579 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
12580
12581 * source.c (print_source_lines_base): Set last_line_listed.
12582
12583 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12584
12585 * tui/tui-disasm.c: Remove trailing spaces.
12586
12587 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12588 Pedro Alves <palves@redhat.com>
12589
12590 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12591 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12592 (windows_gdb_signal_to_target): New function, uses the above
12593 enumeration to convert GDB internal signal codes to equivalent
12594 Windows codes.
12595 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12596 * windows-nat.c: Include "gdb_wait.h".
12597 (get_windows_debug_event): Extract the fatal exception from the
12598 exit status and convert to the equivalent Posix signal number.
12599 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12600 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12601 * gdbsupport/gdb_wait.c: New file, implements
12602 windows_status_to_termsig.
12603 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12604 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12605
12606 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12607
12608 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12609 show_layout.
12610
12611 2020-01-05 Luis Machado <luis.machado@linaro.org>
12612
12613 * aarch64-linux-nat.c
12614 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12615 and bfd_mach_aarch64.
12616
12617 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12618
12619 * ui-file.c (stdio_file::can_emit_style_escape)
12620 (tee_file::can_emit_style_escape): Ensure style is used also on
12621 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12622 to gdb_stdout.
12623 * main.c (set_gdb_data_directory): Use file style to output the
12624 warning that the given pathname is not a directory.
12625 * top.c (show_history_filename, gdb_safe_append_history)
12626 (show_gdb_datadir): Use file style.
12627
12628 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12629
12630 * solib-target.c (struct lm_info_target):
12631 Change offsets to be a unique_xmalloc_ptr.
12632 (solib_target_relocate_section_addresses): Update.
12633
12634 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12635
12636 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12637
12638 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12639
12640 * MAINTAINERS (Write After Approval): Add myself.
12641
12642 2020-01-02 Luis Machado <luis.machado@linaro.org>
12643
12644 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12645 Cell BE architecture.
12646 * target.h (struct target_ops) <thread_architecture>: Likewise.
12647
12648 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12649
12650 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12651
12652 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12653
12654 * MAINTAINERS (Write After Approval): Add myself.
12655
12656 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12657
12658 * gdbarch.sh: Update copyright year range of generated files.
12659
12660 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12661
12662 Update copyright year range in all GDB files.
12663
12664 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12665
12666 * copyright.py: Convert to Python 3.
12667
12668 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12669
12670 * copyright.py: Adapt after move of gnulib directory from gdb
12671 directory to toplevel directory.
12672
12673 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12674
12675 * copyright.py (main): Exit if run from the wrong directory.
12676
12677 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12678
12679 * top.c (print_gdb_version): Change copyright year to 2020.
12680
12681 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12682
12683 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
12684
12685 For older changes see ChangeLog-2019.
12686 \f
12687 Local Variables:
12688 mode: change-log
12689 left-margin: 8
12690 fill-column: 74
12691 version-control: never
12692 coding: utf-8
12693 End: