gdb: remove TYPE_VARARGS
[binutils-gdb.git] / gdb / ChangeLog
1 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2
3 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4 uses with type::has_varargs.
5
6 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
7
8 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
9 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
10 use type::set_has_varargs.
11
12 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
13
14 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
15 uses with type::is_prototyped.
16
17 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
18
19 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
20 New methods.
21 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
22 call sites to use type::set_is_prototyped.
23
24 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
25
26 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
27 uses with type::target_is_stub.
28
29 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
30
31 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
32 New methods.
33 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
34 sites to use type::set_target_is_stub.
35
36 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
37
38 * gdbtypes.h (TYPE_STUB): Remove, replace all
39 uses with type::is_stub.
40
41 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
42
43 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
44 (TYPE_STUB): Use type::is_stub, change all write call sites to
45 use type::set_is_stub.
46
47 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
48
49 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
50 type::has_no_signedness.
51
52 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
53
54 * gdbtypes.h (struct type) <has_no_signedness,
55 set_has_no_signedness>: New methods.
56 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
57 call sites to use type::set_has_no_signedness.
58
59 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
60
61 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
62 type::is_unsigned.
63
64 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
65
66 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
67 methods.
68 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
69 sites to use type::set_is_unsigned.
70
71 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
72 Adam Renquinha <arenquinha@cimeq.qc.ca>
73
74 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
75 pointer and stack frame offset when unwinding.
76
77 2020-09-13 Pedro Alves <pedro@palves.net>
78
79 * NEWS: Document "-break-insert --qualified".
80 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
81
82 2020-09-13 Pedro Alves <pedro@palves.net>
83
84 * linespec.c (classify_mtype, compare_msyms): Delete.
85 (search_minsyms_for_name): Remove classification logic. Instead
86 filter out trampoline symbols if we also found an external
87 function of the same name.
88
89 2020-09-13 Joel Brobecker <brobecker@adacore.com>
90
91 * NEWS: Create a new section for the next release branch.
92 Rename the section of the current branch, now that it has
93 been cut.
94
95 2020-09-13 Joel Brobecker <brobecker@adacore.com>
96
97 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
98 * version.in: Bump version to 11.0.50.DATE-git.
99
100 2020-09-12 Joel Brobecker <brobecker@adacore.com>
101
102 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
103
104 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
105 Felix Willgerodt <Felix.Willgerodt@intel.com>
106
107 * gdbarch.sh: Added bfloat16 type.
108 * gdbarch.c: Regenerated.
109 * gdbarch.h: Regenerated.
110 * gdbtypes.c (floatformats_bfloat16): New struct.
111 (gdbtypes_post_init): Add builtin_bfloat16.
112 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
113 (floatformats_bfloat16): New struct.
114 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
115 (i386_ymm_type): Add field "v16_bfloat16"
116 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
117 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
118 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
119 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
120 * features/i386/64bit-avx512.xml: Add bfloat16 type.
121 * features/i386/64bit-avx512.c: Regenerated.
122 * features/i386/64bit-sse.xml: Add bfloat16 type.
123 * features/i386/64bit-sse.c: Regenerated.
124
125 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
126
127 * i386-tdep.c (i386_zmm_type): Fix field names.
128 (i386_ymm_type): Fix field names.
129
130 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
131
132 * breakpoint.c: Fix typo in the help message of the
133 "set breakpoint condition-evaluation" command.
134
135 2020-09-10 Kamil Rytarowski <n54@gmx.com>
136
137 * nbsd-nat.c: Include "nat/netbsd-nat.h".
138 * (nbsd_nat_target::pid_to_exec_file)
139 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
140 (nbsd_nat_target::post_startup_inferior)
141 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
142 (nbsd_add_threads): Switch local code to common gdb/nat functions.
143 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
144 * (nbsd_thread_lister): Remove.
145
146 2020-09-10 Kamil Rytarowski <n54@gmx.com>
147
148 * fork-inferior.c (startup_inferior): Avoid double free.
149
150 2020-09-10 Kamil Rytarowski <n54@gmx.com>
151
152 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
153 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
154
155 2020-09-10 Kamil Rytarowski <n54@gmx.com>
156
157 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
158 * netbsd-nat.c: Include <sys/ptrace.h>.
159 * (netbsd_nat::enable_proc_events): Add.
160
161 2020-09-10 Kamil Rytarowski <n54@gmx.com>
162
163 * netbsd-nat.h: Include "gdbsupport/function-view.h".
164 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
165 (netbsd_nat::for_each_thread): Add.
166 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
167 "gdbsupport/common-debug.h".
168 * (netbsd_nat::netbsd_thread_lister)
169 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
170 (netbsd_nat::for_each_thread): Add.
171
172 2020-09-10 Kamil Rytarowski <n54@gmx.com>
173
174 * netbsd-nat.h: Include <unistd.h>.
175 * (netbsd_nat::pid_to_exec_file): Add.
176 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
177 * (netbsd_nat::pid_to_exec_file) Add.
178
179 2020-09-10 Kamil Rytarowski <n54@gmx.com>
180
181 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
182
183 2020-09-10 Kamil Rytarowski <n54@gmx.com>
184
185 * netbsd-nat.h: New file.
186 * netbsd-nat.c: Likewise.
187
188 2020-09-09 Tom Tromey <tromey@adacore.com>
189
190 * ada-lang.c (remove_extra_symbols): Do not increment when
191 removing an element
192
193 2020-09-08 Tom Tromey <tromey@adacore.com>
194
195 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
196
197 2020-09-08 Tom Tromey <tromey@adacore.com>
198
199 PR win32/25302:
200 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
201 (gdb_bfd_init_data): New function.
202 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
203
204 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
205
206 * infrun.c (fetch_inferior_event): Use
207 `switch_to_target_no_thread` to switch the target.
208
209 2020-09-06 Tom Tromey <tom@tromey.com>
210
211 * symfile.h (dwarf2_free_objfile): Don't declare.
212
213 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
214
215 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
216 to match 16 byte real/complex type generated by Flang compiler.
217
218 2020-09-03 Tom de Vries <tdevries@suse.de>
219
220 PR breakpoint/26546
221 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
222 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
223
224 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
225
226 * maint.c (index_digits): New function.
227 (struct maint_print_section_data): Remove.
228 (print_bfd_section_info): Remove print_data parameter, add arg
229 and index_digits.
230 (print_objfile_section_info): Likewise.
231 (print_bfd_section_info_maybe_relocated): Likewise (plus
232 objfile).
233 (maintenance_info_sections): Adjust calls.
234
235 2020-09-02 Tom Tromey <tromey@adacore.com>
236
237 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
238 for null pointers.
239 (ada_varobj_adjust_for_child_access): Special-case null pointers.
240
241 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
242
243 * bcache.h (struct bcache) <insert>: Change type of `added` to
244 pointer to bool.
245 * bcache.c (bcache::insert): Likewise.
246 * gdbtypes.c (check_types_worklist): Adjust.
247 * psymtab.c (add_psymbol_to_bcache): Adjust.
248
249 2020-08-31 Kevin Buettner <kevinb@redhat.com>
250
251 * corelow.c (unordered_set): Include.
252 (class core_target): Add field 'm_core_unavailable_mappings'.
253 (core_target::build_file_mappings): Print only one warning
254 per inaccessible file. Add unavailable/broken mappings
255 to m_core_unavailable_mappings.
256 (core_target::xfer_partial): Call...
257 (core_target::xfer_memory_via_mappings): New method.
258
259 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
260
261 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
262 type to bool.
263
264 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
265
266 * dwarf2/read.c (struct field_info): Fix indentation.
267
268 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
269
270 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
271 ordering in comment.
272 * frame.c (frame_id_eq): Fix indentation.
273
274 2020-08-31 Scott Linder <scott@scottlinder.com>
275 Simon Marchi <simon.marchi@efficios.com>
276
277 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
278 inline frame ids in outer frame.
279
280 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
281
282 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
283 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
284 (outer_frame_id): Use FID_STACK_OUTER instead of
285 FID_STACK_INVALID.
286 (frame_id_p): Don't check for outer_frame_id.
287
288 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
289
290 * frame-unwind.c (frame_unwind_got_optimized): Don't set
291 regnum/frame in value. Call allocate_value_lazy.
292 * frame.c (frame_unwind_register_value): Use
293 val_print_not_saved.
294
295 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
296
297 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
298
299 2020-08-29 Pedro Alves <pedro@palves.net>
300
301 * progspace.c (print_program_space): Use all_inferiors. Switch to
302 the inferior before calling target_pid_to_str.
303
304 2020-08-28 Tom Tromey <tom@tromey.com>
305
306 * xcoffread.c (xcoff_end_psymtab): Update comment.
307 * dbxread.c (dbx_end_psymtab): Update comment.
308
309 2020-08-28 Tom de Vries <tdevries@suse.de>
310
311 PR breakpoint/26544
312 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
313 event_location.
314 (create_breakpoint): Same.
315 (base_breakpoint_decode_location): Same.
316 (bkpt_create_sals_from_location): Same.
317 (bkpt_decode_location): Same.
318 (bkpt_probe_create_sals_from_location): Same.
319 (bkpt_probe_decode_location): Same.
320 (tracepoint_create_sals_from_location): Same.
321 (tracepoint_decode_location): Same.
322 (tracepoint_probe_decode_location): Same.
323 (strace_marker_create_sals_from_location): Same.
324 (strace_marker_decode_location): Same.
325 (create_sals_from_location_default): Same.
326 (decode_location_default): Same.
327 * breakpoint.h (struct breakpoint_ops): Same.
328 (create_breakpoint): Same.
329 * linespec.h (decode_line_full): Same.
330 * linespec.c (decode_line_full): Same. Throw error if
331 result.size () == 0.
332
333 2020-08-27 Pedro Alves <pedro@palves.net>
334
335 PR gdb/26524
336 * breakpoint.c (until_break_fsm) <location_breakpoint,
337 caller_breakpoint>: Delete fields.
338 <breakpoints>: New field.
339 <until_break_fsm>: Adjust to save a breakpoint vector instead of
340 two individual breakpoints.
341 (until_break_fsm::should_stop): Loop over breakpoints in the
342 breakpoint vector.
343 (until_break_fsm::clean_up): Adjust to clear the breakpoints
344 vector.
345 (until_break_command): Handle location expanding into multiple
346 sals.
347
348 2020-08-27 Pedro Alves <pedro@palves.net>
349
350 PR gdb/26523
351 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
352 bp_until breakpoints user-specified locations. Update intro
353 comment.
354
355 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
356
357 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
358 gdb_bfd_sections): New.
359 * maint.c (print_bfd_section_info): Change param type to
360 maint_print_section_data.
361 (print_objfile_section_info): Likewise.
362 (print_bfd_section_info_maybe_relocated): Likewise.
363 (maintenance_info_sections): Use gdb_bfd_sections.
364
365 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
366
367 * MAINTAINERS: Add ARC target and maintainer.
368
369 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
370
371 * configure.tgt: ARC support for GNU/Linux.
372 * Makefile.in (ALL_TARGET_OBJS): Likewise.
373 * arc-linux-tdep.c: New file.
374 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
375 * arc-tdep.c (arc_write_pc): Use it.
376
377 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
378
379 * arc-tdep.c (arc_check_for_hardware_loop): New.
380 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
381
382 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
383
384 * arc-tdep.h: Include "gdbarch.h".
385
386 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
387
388 * arch/arc.h
389 (arc_gdbarch_features): New class to stir the selection of target XML.
390 (arc_create_target_description): Use FEATURES to choose XML target.
391 (arc_lookup_target_description): Use arc_create_target_description
392 to create _new_ target descriptions or return the already created
393 ones if the FEATURES is the same.
394 * arch/arc.c: Implementation of prototypes described above.
395 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
396 (arc_gdbarch_features_init): Initialize the FEATURES struct.
397 * arc-tdep.c (*_feature_name): Make feature names consistent.
398 (arc_register_feature): A new struct to hold information about
399 registers of a particular target/feature.
400 (arc_check_tdesc_feature): Check if XML provides registers in
401 compliance with ARC_REGISTER_FEATURE structs.
402 (arc_update_acc_reg_names): Add aliases for r58 and r59.
403 (determine_*_reg_feature_set): Which feature name to look for.
404 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
405 (mach_type_to_arc_isa): Convert from a set of binutils machine types
406 to expected ISA enums to be used in arc_gdbarch_features structs.
407 * features/Makefile (FEATURE_XMLFILES): Add new files.
408 * gdb/features/arc/v1-aux.c: New file.
409 * gdb/features/arc/v1-aux.xml: Likewise.
410 * gdb/features/arc/v1-core.c: Likewise.
411 * gdb/features/arc/v1-core.xml: Likewise.
412 * gdb/features/arc/v2-aux.c: Likewise.
413 * gdb/features/arc/v2-aux.xml: Likewise.
414 * gdb/features/arc/v2-core.c: Likewise.
415 * gdb/features/arc/v2-core.xml: Likewise.
416 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
417
418 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
419 Andrew Burgess <andrew.burgess@embecosm.com>
420
421 PR m2/26372
422 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
423 an assert. Remove single element array indexing pattern as the
424 MULTI_SUBSCRIPT support will handle this case too.
425
426 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
427
428 * value.h (valprint_check_validity): Move declaration from
429 here...
430 * valprint.h (valprint_check_validity): ... to here.
431
432 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
433
434 * debug.h: New file.
435 * debug.c (debug_prefixed_vprintf): New function.
436 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
437 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
438
439 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
440
441 * infrun.h (infrun_debug_printf_1): New function declaration.
442 (infrun_debug_printf): New macro.
443 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
444 throughout.
445 (infrun_debug_printf): New function.
446 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
447 (handle_jit_event): Likewise.
448
449 2020-08-21 Mark Wielaard <mark@klomp.org>
450
451 * ada-lex.l: Extend register warnings diagnostics comment for g++.
452
453 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
454
455 * frame.c (enum class frame_id_status): New.
456 (struct frame_info) <this_id::p>: Change type to frame_id_status.
457 (fprintf_frame): Update.
458 (compute_frame_id): Set frame id status to "computing" on entry.
459 Set it back to "not_computed" on failure and to "computed" on
460 success.
461 (get_frame_id): Assert the frame id is not being computed.
462 (create_sentinel_frame): Use frame_id_status::COMPUTED.
463 (create_new_frame): Likewise.
464 (frame_cleanup_after_sniffer): Update assert.
465
466 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
467
468 * regcache.c (pid_ptid_regcache_map): New type.
469 (target_ptid_regcache_map): Remove.
470 (target_pid_ptid_regcache_map): New type.
471 (regcaches): Change type to target_pid_ptid_regcache_map.
472 (get_thread_arch_aspace_regcache): Update.
473 (regcache_thread_ptid_changed): Update, handle pid-like ptid
474 case.
475 (regcaches_size): Update.
476 (regcache_count): Update.
477 (registers_changed_ptid_target_pid_test): New.
478 (_initialize_regcache): Register new test.
479
480 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
481
482 * regcache.c (regcache_count): New.
483 (struct regcache_test_data): New.
484 (regcache_test_data_up): New.
485 (populate_regcaches_for_test): New.
486 (regcaches_test): Remove.
487 (get_thread_arch_aspace_regcache_test): New.
488 (registers_changed_ptid_all_test): New.
489 (registers_changed_ptid_target_test): New.
490 (registers_changed_ptid_target_ptid_test): New.
491 (regcache_thread_ptid_changed): Remove regcache_count lambda.
492 (_initialize_regcache): Register new tests.
493
494 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
495
496 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
497 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
498 gdbarch and aspace parameter. Use current inferior's aspace.
499 Validate regcache's arch value.
500 (regcaches_test): Update.
501
502 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
503
504 * regcache.c (regcaches_test): Call registers_changed.
505
506 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
507
508 * infrun.c (process_event_stop_test): Fix typo "breapoint".
509
510 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
511
512 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
513 to find the end of prologue for flang compiled binaries.
514 * arm-tdep.c (arm_skip_prologue): Likewise.
515 * i386-tdep.c (i386_skip_prologue): Likewise.
516 * producer.c (producer_is_llvm): New function.
517 (producer_parsing_tests): Added new tests for clang/flang.
518 * producer.h (producer_is_llvm): New declaration.
519
520 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
521
522 * linux-nat.c (linux_nat_debug_printf): New function.
523 (linux_nat_debug_printf_1): New macro. Use throughout the file.
524
525 2020-08-18 Aaron Merey <amerey@redhat.com>
526
527 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
528 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
529 (CLIBS): Add DEBUGINFOD_LIBS.
530
531 2020-08-17 Sergei Trofimovich <siarheit@google.com>
532
533 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
534 'gdbarch_num_regs'.
535
536 2020-08-17 Tom Tromey <tromey@adacore.com>
537
538 * ada-varobj.c (ada_varobj_decode_var): Handle case where
539 ada_get_decoded_value returns NULL.
540
541 2020-08-17 Tom Tromey <tromey@adacore.com>
542
543 * python/py-inferior.c (infpy_search_memory): Use
544 gdb_py_object_from_ulongest.
545 * python/py-infevents.c (create_inferior_call_event_object)
546 (create_memory_changed_event_object): Use
547 gdb_py_object_from_ulongest.
548 * python/py-linetable.c (ltpy_entry_get_pc): Use
549 gdb_py_object_from_ulongest.
550
551 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
552
553 * loc.c (class symbol_needs_eval_context): Fix indentation.
554
555 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
556
557 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
558 bool.
559
560 2020-08-17 Tom de Vries <tdevries@suse.de>
561
562 PR gdb/26393
563 * gdbtypes.c (dump_dynamic_prop): New function.
564 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
565
566 2020-08-15 Tom de Vries <tdevries@suse.de>
567
568 PR backtrace/26390
569 * stack.c (print_frame_args): Temporarily set the selected
570 frame to FRAME while printing the frame's arguments.
571
572 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
573
574 PR breakpoints/26385
575 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
576 Always clear watchpoint with PTRACE_SET_DEBUGREG.
577
578 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
579
580 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
581 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
582 and >= to check return value instead of == -1 and != -1.
583
584 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
585
586 * utils.h (class gdb_argv) <as_array_view>: New method.
587 * utils.c (gdb_argv_as_array_view_test): New.
588 (_initialize_utils): Register selftest.
589 * maint.c (maintenance_selftest): Use the new method.
590
591 2020-08-13 Kamil Rytarowski <n54@gmx.com>
592
593 * target.h (supports_dumpcore, dumpcore): New
594 function declarations.
595 * target.c (supports_dumpcore, dumpcore): New
596 functions.
597 * target-delegates.c: Rebuild.
598 * gcore.c (gcore_command): Use target_supports_dumpcore ()
599 and target_dumpcore ().
600
601 2020-08-13 Aaron Merey <amerey@redhat.com>
602
603 * debuginfod-support.c: Replace global variables with user_data.
604
605 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
606
607 * maint.c (maintenance_selftest): Split args and pass array_view
608 to run_tests.
609
610 2020-08-12 Luis Machado <luis.machado@linaro.org>
611
612 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
613 type's length.
614 Use %s and pulongest to print the length.
615
616 2020-08-12 Pedro Alves <palves@redhat.com>
617
618 * NEWS: Move "Multi-target debugging support" item to the
619 "Changes since GDB 9" section.
620
621 2020-08-12 Pedro Alves <palves@redhat.com>
622
623 PR gdb/26336
624 * progspace.c (program_space::remove_objfile): Invalidate the
625 frame cache.
626
627 2020-08-11 Tom de Vries <tdevries@suse.de>
628
629 * MAINTAINERS: Mark ms1 as deleted.
630
631 2020-08-10 Luis Machado <luis.machado@linaro.org>
632
633 PR gdb/26310
634
635 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
636 act accordingly.
637 (aarch64_analyze_prologue_test): Add more unit tests to exercise
638 movz/str/stur/stp skipping behavior.
639
640 2020-08-10 Luis Machado <luis.machado@linaro.org>
641
642 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
643 struct user_sve_header instead of struct sve_context.
644
645 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
646
647 * read.h (dwarf2_fetch_die_loc_sect_off,
648 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
649 `void *` parameter with function_view.
650 * read.c (dwarf2_fetch_die_loc_sect_off,
651 dwarf2_fetch_die_loc_cu_off): Likewise.
652 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
653 (per_cu_dwarf_call): Adjust.
654 (get_frame_address_in_block_wrapper): Remove.
655 (indirect_synthetic_pointer): Adjust.
656 (get_ax_pc): Remove.
657 (dwarf2_compile_expr_to_ax): Adjust.
658
659 2020-08-08 Tom de Vries <tdevries@suse.de>
660
661 PR build/26344
662 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
663 constructor.
664 * regcache.c (get_thread_arch_aspace_regcache): Same.
665
666 2020-08-07 Tom Tromey <tromey@adacore.com>
667
668 * ravenscar-thread.c
669 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
670 New method.
671 (ravenscar_thread_target::wait): Check
672 runtime_initialized.
673 (ravenscar_thread_target::prepare_to_store)
674 (ravenscar_thread_target::stopped_by_sw_breakpoint)
675 (ravenscar_thread_target::stopped_by_hw_breakpoint)
676 (ravenscar_thread_target::stopped_by_watchpoint)
677 (ravenscar_thread_target::stopped_data_address)
678 (ravenscar_thread_target::core_of_thread): Use
679 scoped_restore_current_thread and
680 set_base_thread_from_ravenscar_task.
681
682 2020-08-07 Tom Tromey <tromey@adacore.com>
683
684 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
685
686 2020-08-07 Tom Tromey <tromey@adacore.com>
687
688 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
689 update_inferior_ptid before update_thread_list.
690 (temporarily_change_regcache_ptid): New class.
691 (ravenscar_thread_target::fetch_registers)
692 (ravenscar_thread_target::store_registers)
693 (ravenscar_thread_target::prepare_to_store): Use base thread when
694 forwarding operation.
695
696 2020-08-07 Tom Tromey <tromey@adacore.com>
697
698 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
699 "is_pid" case.
700
701 2020-08-07 Tom Tromey <tromey@adacore.com>
702
703 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
704 New methods.
705 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
706 first.
707 (ravenscar_thread_target::add_thread): Rename from
708 ravenscar_add_thread.
709 (ravenscar_thread_target::update_thread_list): Use a lambda.
710 (ravenscar_thread_target::xfer_partial): New method.
711
712 2020-08-07 Tom Tromey <tromey@adacore.com>
713
714 * ada-lang.h (ada_task_list_iterator_ftype): Now a
715 gdb::function_view.
716 (iterate_over_live_ada_tasks): Change type of argument.
717 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
718 of argument.
719
720 2020-08-07 Tom Tromey <tromey@adacore.com>
721
722 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
723 Remove.
724 (ravenscar_thread_target::extra_thread_info): Remove.
725 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
726 defer to target beneath for non-Ravenscar threads.
727
728 2020-08-07 Tom Tromey <tromey@adacore.com>
729
730 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
731 get_base_thread_from_ravenscar_task>: Now methods.
732 <m_cpu_map>: New member.
733 (ravenscar_thread_target::get_thread_base_cpu): Rename from
734 ravenscar_get_thread_base_cpu. Check m_cpu_map.
735 (ravenscar_thread_target::task_is_currently_active): Update.
736 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
737 Now a method.
738 (ravenscar_thread_target::add_active_thread): Put initial thread
739 into the m_cpu_map.
740
741 2020-08-07 Tom Tromey <tromey@adacore.com>
742
743 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
744 event_ptid.
745
746 2020-08-07 Tom Tromey <tromey@adacore.com>
747
748 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
749 runtime_initialized.
750
751 2020-08-07 Tom Tromey <tromey@adacore.com>
752
753 * ravenscar-thread.c (ravenscar_thread_target): Don't call
754 add_active_thread.
755 (ravenscar_thread_target::add_active_thread): Now public.
756 (ravenscar_inferior_created): Call add_active_thread after pushing
757 the target.
758
759 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
760
761 * regcache.c (ptid_regcache_map): New type.
762 (target_ptid_regcache_map): New type.
763 (regcaches): Change type to target_ptid_regcache_map.
764 (get_thread_arch_aspace_regcache): Update to regcaches' new
765 type.
766 (regcache_thread_ptid_changed): Likewise.
767 (registers_changed_ptid): Likewise.
768 (regcaches_size): Likewise.
769 (regcaches_test): Update.
770 (regcache_thread_ptid_changed): Update.
771 * regcache.h (regcache_up): New type.
772 * gdbsupport/ptid.h (hash_ptid): New struct.
773
774 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
775
776 * observable.h (thread_ptid_changed): Add parameter
777 `process_stratum_target *`.
778 * infrun.c (infrun_thread_ptid_changed): Add parameter
779 `process_stratum_target *` and use it.
780 (selftests): New namespace.
781 (infrun_thread_ptid_changed): New function.
782 (_initialize_infrun): Register selftest.
783 * regcache.c (regcache_thread_ptid_changed): Add parameter
784 `process_stratum_target *` and use it.
785 (regcache_thread_ptid_changed): New function.
786 (_initialize_regcache): Register selftest.
787 * thread.c (thread_change_ptid): Pass target to
788 thread_ptid_changed observable.
789
790 2020-08-06 Caroline Tice <cmtice@google.com>
791
792 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
793 (struct dwp_sections): Update field comments. Add loclists and
794 rnglists fields.
795 (struct virtual_v2_dwo_sections): Rename struct to
796 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
797 size & offset fields for loclists and rnglists.
798 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
799 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
800 skipping dummy type units.
801 (create_dwp_hash_table): Update the large comment above the function to
802 discuss Version 5 DWP files as well, with references. Update all the
803 version checks in the function to check for version 5 as well. Add new
804 section at the end to create dwp hash table for version 5.
805 (create_dwp_v2_section): Rename function to
806 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
807 Add V5 to error message text.
808 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
809 into calls to create_dwp_v2_or_v5_section.
810 (create_dwo_unit_in_dwp_v5): New function.
811 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
812 check for version2; add else clause to handle version 5.
813 (open_and_init_dwo_file): Add code to check dwarf version & only call
814 create_debug_types_hash_table (with sections.types) if version is not 5;
815 else call create_debug_type_hash_table, with sections.info.
816 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
817 version 5.
818 (dwarf2_locate_v5_dwp_sections): New function.
819 (open_and_init_dwp_file): Add else-if clause for version 5 to call
820 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
821
822 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
823
824 * regcache.h (class regcache): Remove friend
825 registers_changed_ptid.
826 <regcache_thread_ptid_changed>: Remove.
827 <regcaches>: Remove.
828 * regcache.c (regcache::regcaches): Rename to...
829 (regcaches): ... this. Make static.
830 (get_thread_arch_aspace_regcache): Update.
831 (regcache::regcache_thread_ptid_changed): Rename to...
832 (regcache_thread_ptid_changed): ... this. Update.
833 (class regcache_access): Remove.
834 (regcaches_test): Update.
835 (_initialize_regcache): Update.
836 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
837 <forward_list>.
838
839 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
840
841 * regcache.h (class regcache) <current_regcache>: Rename to...
842 <regcaches>: ... this. Move doc here.
843 * regcache.c (regcache::current_regcache) Rename to...
844 (regcache::regcaches): ... this. Move doc to header.
845 (get_thread_arch_aspace_regcache): Update.
846 (regcache::regcache_thread_ptid_changed): Update.
847 (registers_changed_ptid): Update.
848 (class regcache_access) <current_regcache_size>: Rename to...
849 <regcaches_size>: ... this.
850 (current_regcache_test): Rename to...
851 (regcaches_test): ... this.
852 (_initialize_regcache): Update.
853
854 2020-08-06 Victor Collod <vcollod@nvidia.com>
855
856 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
857
858 2020-08-05 Kevin Buettner <kevinb@redhat.com>
859
860 * corelow.c (core_target::build_file_mappings): Don't output
861 null pathname in warning.
862
863 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
864
865 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
866 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
867 gdb.dwarf2/dw2-single-line-discriminators.exp,
868 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
869
870 2020-08-05 Tom Tromey <tromey@adacore.com>
871
872 PR rust/26197:
873 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
874 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
875 Fix off-by-one and type size errors in ordinary case.
876
877 2020-08-05 Tom de Vries <tdevries@suse.de>
878
879 * gdbtypes.c (type_not_allocated, type_not_associated): Use
880 "prop->const_val () == 0" instead of "prop->const_val () != 0".
881
882 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
883
884 * frame.h (frame_id_p): Return bool.
885 (frame_id_artificial_p): Return bool.
886 (frame_id_eq): Return bool.
887 (has_stack_frames): Return bool.
888 (get_selected_frame): Fix typo in comment.
889 (get_frame_pc_if_available): Return bool.
890 (get_frame_address_in_block_if_available): Return bool.
891 (get_frame_func_if_available): Return bool.
892 (read_frame_register_unsigned): Return bool.
893 (get_frame_register_bytes): Return bool.
894 (safe_frame_unwind_memory): Return bool.
895 (deprecated_frame_register_read): Return bool.
896 (frame_unwinder_is): Return bool.
897 * frame.c (struct frame_info) <prev_arch::p>: Change type to
898 bool.
899 <this_id::p>: Likewise.
900 <prev_p>: Likewise.
901 (frame_stash_add): Return bool.
902 (get_frame_id): Use bool.
903 (frame_id_build_special) Use bool.
904 (frame_id_build_unavailable_stack): Use bool.
905 (frame_id_build): Use bool.
906 (frame_id_p): Return bool, use true/false instead of 1/0.
907 (frame_id_artificial_p): Likewise.
908 (frame_id_eq): Likewise.
909 (frame_id_inner): Likewise.
910 (get_frame_func_if_available): Likewise.
911 (read_frame_register_unsigned): Likewise.
912 (deprecated_frame_register_read): Likewise.
913 (get_frame_register_bytes): Likewise.
914 (has_stack_frames): Likewise.
915 (inside_main_func): Likewise.
916 (inside_entry_func): Likewise.
917 (get_frame_pc_if_available): Likewise.
918 (get_frame_address_in_block_if_available): Likewise.
919 (frame_unwinder_is): Likewise.
920 (safe_frame_unwind_memory): Likewise.
921 (frame_unwind_arch): Likewise.
922
923 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
924
925 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
926 type to cached_copy_status.
927 (fprintf_frame): Adjust.
928 (get_frame_func_if_available): Adjust.
929 (frame_cleanup_after_sniffer): Adjust.
930
931 2020-08-04 Mark Wielaard <mark@klomp.org>
932
933 * MAINTAINERS (Write After Approval): Update email address.
934
935 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
936
937 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
938 dynamic_prop::const_val.
939
940 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
941
942 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
943 dynamic_prop::kind.
944
945 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
946
947 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
948
949 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
950
951 * configure.tgt: Set gdb_sim for bpf-*-* targets.
952
953 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
954 Jose E. Marchesi <jose.marchesi@oracle.com>
955
956 * configure.tgt: Add entry for bpf-*-*.
957 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
958 (ALLDEPFILES): Add bpf-tdep.c.
959 * bpf-tdep.c: New file.
960 * MAINTAINERS: Add bpf target and maintainer.
961 * NEWS: Mention the support for the new target.
962
963 2020-08-04 Tom de Vries <tdevries@suse.de>
964
965 PR symtab/23270
966 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
967 Error.
968
969 2020-08-03 John Baldwin <jhb@FreeBSD.org>
970
971 * syscalls/freebsd.xml: Regenerate.
972
973 2020-08-03 John Baldwin <jhb@FreeBSD.org>
974
975 * syscalls/update-freebsd.sh: Fix usage and year range.
976
977 2020-08-03 Tom de Vries <tdevries@suse.de>
978
979 PR symtab/26333
980 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
981 DW_LNE_lo_user/DW_LNE_hi_user range.
982
983 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
984
985 PR ada/26318
986 * ada-lang.c (ada_modulus): Return 0 if property is not of const
987 kind.
988
989 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
990
991 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
992
993 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
994
995 * breakpoint.c (set_breakpoint_condition): Update the condition
996 expressions after checking that the input condition string parses
997 successfully and does not contain junk at the end.
998
999 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1000
1001 * breakpoint.c (set_breakpoint_condition): Update the
1002 condition string after parsing the new condition successfully.
1003
1004 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1005
1006 * proc-api.c (_STRUCTURED_PROC): Don't define.
1007 * proc-events.c: Likewise.
1008 * proc-flags.c: Likewise.
1009 * proc-why.c: Likewise.
1010 * procfs.c: Likewise.
1011
1012 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
1013 * configure, config.in: Regenerate.
1014
1015 2020-07-30 Tom de Vries <tdevries@suse.de>
1016
1017 PR build/26320
1018 * ui-style.h (struct ui_file_style::color): Wrap m_value and
1019 m_red/m_green/m_blue in a union.
1020
1021 2020-07-29 Tom de Vries <tdevries@suse.de>
1022
1023 PR tdep/26280
1024 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
1025
1026 2020-07-28 Tom Tromey <tromey@adacore.com>
1027
1028 PR symtab/26270:
1029 * symtab.h (find_pc_partial_function_sym): Declare.
1030 * cli/cli-cmds.c (disassemble_command): Use
1031 find_pc_partial_function_sym. Check asm_demangle.
1032 * blockframe.c (cache_pc_function_sym): New global.
1033 (cache_pc_function_name): Remove.
1034 (clear_pc_function_cache): Update.
1035 (find_pc_partial_function_sym): New function, from
1036 find_pc_partial_function.
1037 (find_pc_partial_function): Rewrite using
1038 find_pc_partial_function_sym.
1039
1040 2020-07-28 Tom Tromey <tromey@adacore.com>
1041
1042 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
1043 help. Add usage.
1044
1045 2020-07-28 Tom Tromey <tromey@adacore.com>
1046
1047 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
1048 <DW_OP_GNU_variable_value>: Cast to address type.
1049
1050 2020-07-28 Kamil Rytarowski <n54@gmx.com>
1051
1052 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
1053 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
1054 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
1055 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
1056 (nbsd_get_siginfo_type): New.
1057 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
1058 (_initialize_nbsd_tdep): New.
1059
1060 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1061
1062 PR binutils/26301
1063 * configure: Regenerated.
1064
1065 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1066
1067 PR binutils/26301
1068 * configure: Regenerated.
1069
1070 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1071
1072 * python/py-frame.c: Remove 'user-regs.h' include.
1073 (frapy_read_register): Rewrite to make use of
1074 gdbpy_parse_register_id.
1075 * python/py-registers.c (gdbpy_parse_register_id): New function,
1076 moved here from python/py-unwind.c. Updated the return type, and
1077 also accepts register descriptor objects.
1078 * python/py-unwind.c: Remove 'user-regs.h' include.
1079 (pyuw_parse_register_id): Moved to python/py-registers.c.
1080 (unwind_infopy_add_saved_register): Update to use
1081 gdbpy_parse_register_id.
1082 (pending_framepy_read_register): Likewise.
1083 * python/python-internal.h (gdbpy_parse_register_id): Declare.
1084
1085 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1086
1087 * python/py-registers.c: Add 'user-regs.h' include.
1088 (register_descriptor_iter_find): New function.
1089 (register_descriptor_iterator_object_methods): New static global
1090 methods array.
1091 (register_descriptor_iterator_object_type): Add pointer to methods
1092 array.
1093
1094 2020-07-27 John Baldwin <jhb@FreeBSD.org>
1095
1096 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
1097 for all architectures on FreeBSD 11.3 and later.
1098
1099 2020-07-27 Tom Tromey <tromey@adacore.com>
1100
1101 * gcore.h (load_corefile): Don't declare.
1102
1103 2020-07-27 Tom de Vries <tdevries@suse.de>
1104
1105 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
1106 * config.in: Regenerate.
1107 * configure: Regenerate.
1108
1109 2020-07-26 Eli Zaretskii <eliz@gnu.org>
1110
1111 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
1112 ws2tcpip.h. When checking whether socklen_t type is defined, use
1113 ws2tcpip.h if it is available and sys/socket.h isn't.
1114 * configure: Regenerate.
1115 * config.in: Regenerate.
1116
1117 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
1118
1119 PR fortran/23051
1120 PR fortran/26139
1121 * valops.c (value_ind): Pass address to
1122 readjust_indirect_value_type.
1123 * value.c (readjust_indirect_value_type): Make parameter
1124 non-const, and add extra address parameter. Resolve original type
1125 before using it.
1126 * value.h (readjust_indirect_value_type): Update function
1127 signature and comment.
1128
1129 2020-07-25 Tom de Vries <tdevries@suse.de>
1130
1131 PR symtab/26243
1132 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
1133 entries.
1134
1135 2020-07-24 Aaron Merey <amerey@redhat.com>
1136
1137 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
1138 * configure: Rebuild.
1139
1140 2020-07-23 Kevin Buettner <kevinb@redhat.com>
1141
1142 PR corefiles/26294
1143 * corelow.c (_initialize_corelow): Add period to help text
1144 for "maintenance print core-file-backed-mappings".
1145
1146 2020-07-23 Pedro Alves <pedro@palves.net>
1147
1148 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
1149 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
1150 meanwhile.
1151 * frame.c (frame_cache_generation, get_frame_cache_generation):
1152 New.
1153 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
1154 (get_prev_frame_if_no_cycle): On exception, don't touch
1155 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
1156 * frame.h (get_frame_cache_generation): Declare.
1157
1158 2020-07-23 Tom de Vries <tdevries@suse.de>
1159
1160 PR tui/26282
1161 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
1162 New default constructor.
1163
1164 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
1165
1166 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
1167 exclude non-statement entries.
1168
1169 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1170
1171 * NEWS (New commands): Mention new command
1172 "maintenance print core-file-backed-mappings".
1173
1174 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1175
1176 * corelow.c (gdbcmd.h): Include.
1177 (core_target::info_proc_mappings): New method.
1178 (get_current_core_target): New function.
1179 (maintenance_print_core_file_backed_mappings): New function.
1180 (_initialize_corelow): Add core-file-backed-mappings to
1181 "maint print" commands.
1182
1183 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1184
1185 * linux-tdep.c (dump_note_entry_p): New function.
1186 (linux_dump_mapping_p_ftype): New typedef.
1187 (linux_find_memory_regions_full): Add new parameter,
1188 should_dump_mapping_p.
1189 (linux_find_memory_regions): Adjust call to
1190 linux_find_memory_regions_full.
1191 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
1192 call to linux_find_memory_regions_full.
1193
1194 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1195
1196 * corelow.c (solist.h, unordered_map): Include.
1197 (class core_target): Add field m_core_file_mappings and
1198 method build_file_mappings.
1199 (core_target::core_target): Call build_file_mappings.
1200 (core_target::~core_target): Free memory associated with
1201 m_core_file_mappings.
1202 (core_target::build_file_mappings): New method.
1203 (core_target::xfer_partial): Use m_core_file_mappings
1204 for memory transfers.
1205 * linux-tdep.c (linux_read_core_file_mappings): New
1206 function.
1207 (linux_core_info_proc_mappings): Rewrite to use
1208 linux_read_core_file_mappings.
1209 (linux_init_abi): Register linux_read_core_file_mappings.
1210
1211 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1212
1213 * arch-utils.c (default_read_core_file_mappings): New function.
1214 * arch-utils.c (default_read_core_file_mappings): Declare.
1215 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
1216 * gdbarch.h, gdbarch.c: Regenerate.
1217
1218 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1219
1220 PR corefiles/25631
1221 * corelow.c (core_target:xfer_partial): Revise
1222 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
1223 case after first checking the stratum beneath the core
1224 target.
1225 (has_all_memory): Return true.
1226 * target.c (raw_memory_xfer_partial): Revise comment
1227 regarding use of has_all_memory.
1228
1229 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1230
1231 * exec.h (section_table_xfer_memory): Revise declaration,
1232 replacing section name parameter with an optional callback
1233 predicate.
1234 * exec.c (section_table_xfer_memory): Likewise.
1235 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
1236 of section_table_xfer_memory.
1237
1238 2020-07-22 Tom Tromey <tromey@adacore.com>
1239
1240 * mi/mi-cmd-stack.c (list_args_or_locals): Use
1241 lookup_symbol_search_name.
1242
1243 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1244
1245 * python/py-registers.c (gdbpy_register_object_data_init): Remove
1246 redundant local variable.
1247 (gdbpy_get_register_descriptor): Extract descriptor vector as a
1248 reference, not pointer, update code accordingly.
1249
1250 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1251 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1252
1253 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
1254 * jit.c (jit_breakpoint_re_set_internal): Use the
1255 `skip_jit_symbol_lookup` field.
1256
1257 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1258 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1259
1260 * jit.c (jit_read_descriptor): Define the descriptor address once,
1261 use twice.
1262 (jit_breakpoint_deleted): Move the declaration of the loop variable
1263 `iter` into the loop header.
1264 (jit_breakpoint_re_set_internal): Move the declaration of the local
1265 variable `objf_data` to the first point of definition.
1266 (jit_event_handler): Move the declaration of local variables
1267 `code_entry`, `entry_addr`, and `objf` to their first point of use.
1268 Rename `objf` to `jited`.
1269
1270 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1271
1272 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
1273 Remove.
1274 * jit.c (get_jiter_objfile_data): Update.
1275
1276 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1277 Simon Marchi <simon.marchi@polymtl.ca>
1278
1279 * jit.c (struct jit_program_space_data): Remove.
1280 (jit_program_space_key): Remove.
1281 (jiter_objfile_data::~jiter_objfile_data): Remove program space
1282 stuff.
1283 (get_jit_program_space_data): Remove.
1284 (jit_breakpoint_deleted): Iterate on all of the program space's
1285 objfiles.
1286 (jit_inferior_init): Likewise.
1287 (jit_breakpoint_re_set_internal): Likewise. Also change return
1288 type to void.
1289 (jit_breakpoint_re_set): Pass current_program_space to
1290 jit_breakpoint_re_set_internal.
1291
1292 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1293
1294 * jit.h (struct jiter_objfile_data) <cached_code_address,
1295 jit_breakpoint>: Move to here from ...
1296 * jit.c (jit_program_space_data): ... here.
1297 (jiter_objfile_data::~jiter_objfile_data): Update.
1298 (jit_breakpoint_deleted): Update.
1299 (jit_breakpoint_re_set_internal): Update.
1300
1301 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1302
1303 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
1304 checks.
1305 (jit_read_descriptor): Remove NULL check.
1306 (jit_event_handler): Add an assertion.
1307
1308 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1309
1310 * jit.h (struct jit_objfile_data): Split into...
1311 (struct jiter_objfile_data): ... this ...
1312 (struct jited_objfile_data): ... and this.
1313 * objfiles.h (struct objfile) <jit_data>: Remove.
1314 <jiter_data, jited_data>: New fields.
1315 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
1316 (jiter_objfile_data::~jiter_objfile_data): ... this.
1317 (get_jit_objfile_data): Rename to ...
1318 (get_jiter_objfile_data): ... this.
1319 (add_objfile_entry): Update.
1320 (jit_read_descriptor): Use get_jiter_objfile_data.
1321 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
1322 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
1323 (jit_inferior_exit_hook): Use objfile's jited_data field.
1324
1325 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1326
1327 * jit.h: Forward-declare `struct minimal_symbol`.
1328 (struct jit_objfile_data): Migrate to here from jit.c; also add a
1329 constructor, destructor, and an objfile* field.
1330 * jit.c (jit_objfile_data): Remove.
1331 (struct jit_objfile_data): Migrate from here to jit.h.
1332 (jit_objfile_data::~jit_objfile_data): New destructor
1333 implementation with code moved from free_objfile_data.
1334 (free_objfile_data): Delete.
1335 (get_jit_objfile_data): Update to use the jit_data field of objfile.
1336 (jit_find_objf_with_entry_addr): Ditto.
1337 (jit_inferior_exit_hook): Ditto.
1338 (_initialize_jit): Remove the call to
1339 register_objfile_data_with_cleanup.
1340 * objfiles.h (struct objfile) <jit_data>: New field.
1341
1342 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1343
1344 * jit.h: Forward-declare `struct objfile`.
1345 (jit_event_handler): Add a second parameter, the JITer objfile.
1346 * jit.c (jit_read_descriptor): Change the signature to take the
1347 JITer objfile as an argument instead of the jit_program_space_data.
1348 (jit_inferior_init): Update the call to jit_read_descriptor.
1349 (jit_event_handler): Use the new JITer objfile argument when calling
1350 jit_read_descriptor.
1351 * breakpoint.c (handle_jit_event): Update the call to
1352 jit_event_handler to pass the JITer objfile.
1353
1354 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1355
1356 * gdbarch.c: Regenerate.
1357 * gdbarch.h: Regenerate.
1358 * gdbarch.sh (handle_segmentation_fault): Remove method.
1359 * infrun.c (handle_segmentation_fault): Remove.
1360 (print_signal_received_reason): Remove call to
1361 handle_segmentation_fault.
1362
1363 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1364
1365 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1366 Rename to sparc64_linux_report_signal_info and add siggnal
1367 argument.
1368 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
1369 instead of sparc64_linux_handle_segmentation_fault.
1370
1371 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1372
1373 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
1374 i386_linux_report_signal_info instead of
1375 i386_linux_handle_segmentation_fault.
1376 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
1377 to i386_linux_report_signal_info and add siggnal argument.
1378 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
1379 of i386_linux_handle_segmentation_fault.
1380 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
1381 to i386_linux_report_signal_info and add siggnal argument.
1382
1383 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1384
1385 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1386 hook if present.
1387
1388 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1389
1390 * gdbarch.c: Regenerate.
1391 * gdbarch.h: Regenerate.
1392 * gdbarch.sh (report_signal_info): New method.
1393 * infrun.c (print_signal_received_reason): Invoke gdbarch
1394 report_signal_info hook if present.
1395
1396 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1397
1398 * python/py-registers.c : Add 'unordered_map' include.
1399 (gdbpy_new_reggroup): Renamed to...
1400 (gdbpy_get_reggroup): ...this. Update to only create register
1401 group descriptors when needed.
1402 (gdbpy_reggroup_iter_next): Update.
1403
1404 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1405
1406 * python/py-registers.c (gdbpy_register_object_data): New static
1407 global.
1408 (gdbpy_register_object_data_init): New function.
1409 (gdbpy_new_register_descriptor): Renamed to...
1410 (gdbpy_get_register_descriptor): ...this, and update to reuse
1411 existing register descriptors where possible.
1412 (gdbpy_register_descriptor_iter_next): Update.
1413 (gdbpy_initialize_registers): Register new gdbarch data.
1414
1415 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
1416
1417 * linux-nat.c (stopped_pids): Make static.
1418
1419 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1420
1421 PR ada/26235
1422 * gdbtypes.c (ada_discrete_type_low_bound,
1423 ada_discrete_type_high_bound): Handle undefined bounds.
1424
1425 2020-07-21 Kamil Rytarowski <n54@gmx.com>
1426
1427 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1428 declaration.
1429 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1430 function.
1431
1432 2020-07-20 John Baldwin <jhb@FreeBSD.org>
1433
1434 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1435 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1436 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1437 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1438 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1439 method.
1440
1441 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1442
1443 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1444 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1445 which are deprecated in Guile 3.0.
1446 * configure.ac (try_guile_versions): Add "guile-3.0".
1447 * configure (try_guile_versions): Regenerate.
1448 * NEWS: Update entry.
1449
1450 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1451 Doug Evans <dje@google.com>
1452
1453 PR gdb/21104
1454 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1455 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1456 USING_GUILE_BEFORE_2_2.
1457 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1458 Change type to 'scm_t_port_type *'.
1459 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1460 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1461 parameter and honor it. Update callers.
1462 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1463 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1464 functions.
1465 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1466 USING_GUILE_BEFORE_2_2.
1467 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1468 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1469 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1470 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1471 and 'SCM_PORT_TYPE'.
1472 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1473 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1474 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1475 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1476 [!USING_GUILE_BEFORE_2_2]: New functions.
1477 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1478 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1479 'gdbscm_memory_port_read'.
1480 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1481 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1482 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1483 function.
1484 (ioscm_init_memory_port): Remove.
1485 (ioscm_init_memory_port_stream): New function
1486 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1487 function.
1488 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1489 Return scm_from_uint (0).
1490 (gdbscm_set_memory_port_read_buffer_size_x)
1491 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1492 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1493 Return scm_from_uint (0).
1494 (gdbscm_set_memory_port_write_buffer_size_x)
1495 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1496 * configure.ac (try_guile_versions): Add "guile-2.2".
1497 * configure: Regenerate.
1498 * NEWS: Add entry.
1499
1500 2020-07-18 Tom Tromey <tom@tromey.com>
1501
1502 * linux-nat.c (linux_multi_process): Remove.
1503 (linux_nat_target::supports_multi_process): Return true.
1504
1505 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1506
1507 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1508 (riscv_lookup_target_description): Return pointer out of
1509 unique_ptr.
1510 * target-descriptions.c (allocate_target_description): Add
1511 comment.
1512 (target_desc_deleter::operator()): Likewise.
1513 * target-descriptions.h (struct target_desc_deleter): Moved to
1514 gdbsupport/tdesc.h.
1515 (target_desc_up): Likewise.
1516
1517 2020-07-17 Tom Tromey <tromey@adacore.com>
1518
1519 * linux-nat.c (linux_nat_target::supports_non_stop)
1520 (linux_nat_target::always_non_stop_p): Use "true".
1521 (linux_nat_target::supports_disable_randomization): Use "true" and
1522 "false".
1523
1524 2020-07-16 Caroline Tice <cmtice@google.com>
1525
1526 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1527 (RNGLIST_HEADER_SIZE64): New constant definition.
1528 (struct dwop_section_names): Add rnglists_dwo.
1529 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1530 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1531 (struct dwo_sections): Add rnglists field.
1532 (read_attribut_reprocess): Add tag parameter.
1533 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1534 (cu_debug_rnglists_section): New function (decl & definition).
1535 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1536 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1537 die whose range is being checked; get rnglist section from
1538 cu_debug_rnglists_section, to get from either objfile or dwo file as
1539 appropriate. Add cases for DW_RLE_base_addressx,
1540 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1541 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1542 test inside if-condition and updating complaint message.
1543 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1544 dwarf2_rnglists_process.
1545 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1546 dwarf2_ranges_process.
1547 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1548 need_ranges_base and update comment appropriately. Also pass die tag
1549 to dwarf2_ranges_read.
1550 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1551 need_ranges_base and update comment appropriately. Also pass die tag
1552 to dwarf2_ranges_process.
1553 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1554 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1555 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1556 need_ranges_base and update comment appropriately. Also pass die tag
1557 to read_attribute_reprocess and dwarf2_ranges_read.
1558 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1559 and update function comment appropriately.
1560 (read_loclist_index): Call read_loclists_rnglists_header instead of
1561 read_loclist_header.
1562 (read_rnglist_index): New function.
1563 (read_attribute_reprocess): Add tag parameter. Add code for
1564 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1565 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1566
1567 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1568
1569 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1570 being resolved.
1571
1572 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1573
1574 * arch-utils.c (show_architecture): Update formatting of messages.
1575
1576 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1577
1578 * gdbtypes.h (struct type) <bounds>: Handle array and string
1579 types.
1580 * ada-lang.c (assign_aggregate): Use type::bounds on
1581 array/string type.
1582 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1583 * c-varobj.c (c_number_of_children): Likewise.
1584 (c_describe_child): Likewise.
1585 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1586 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1587 (f_type_print_base): Likewise.
1588 * f-valprint.c (f77_array_offset_tbl): Likewise.
1589 (f77_get_upperbound): Likewise.
1590 (f77_print_array_1): Likewise.
1591 * guile/scm-type.c (gdbscm_type_range): Likewise.
1592 * m2-typeprint.c (m2_array): Likewise.
1593 (m2_is_long_set_of_type): Likewise.
1594 * m2-valprint.c (get_long_set_bounds): Likewise.
1595 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1596 * python/py-type.c (typy_range): Likewise.
1597 * rust-lang.c (rust_internal_print_type): Likewise.
1598 * type-stack.c (type_stack::follow_types): Likewise.
1599 * valarith.c (value_subscripted_rvalue): Likewise.
1600 * valops.c (value_cast): Likewise.
1601
1602 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1603
1604 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1605 callers to use the equivalent accessor methods.
1606
1607 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1608
1609 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1610 (struct type) <bit_stride>: New method.
1611 (TYPE_BIT_STRIDE): Remove.
1612 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1613
1614 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1615
1616 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1617 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1618 callers to use the equivalent accessor methods instead.
1619
1620 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1621
1622 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1623 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1624 callers to use the equivalent accessor methods instead.
1625
1626 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1627
1628 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1629 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1630 to use dynamic_prop::kind.
1631
1632 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1633
1634 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1635 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1636 to get the bound property's kind and check against
1637 PROP_UNDEFINED.
1638
1639 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1640
1641 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1642 all callers to use type::range_bounds followed by
1643 dynamic_prop::{low,high}.
1644
1645 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1646
1647 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1648 const_val, set_const_val, baton, set_locexpr, set_loclist,
1649 set_addr_offset, variant_parts, set_variant_parts,
1650 original_type, set_original_type>: New methods.
1651 <kind>: Rename to...
1652 <m_kind>: ... this. Update all users to use the new methods
1653 instead.
1654 <data>: Rename to...
1655 <m_data>: ... this. Update all users to use the new methods
1656 instead.
1657
1658 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1659
1660 * gdbtypes.c (get_discrete_bounds): Return failure if
1661 the range type's bounds are not both defined and constant
1662 values.
1663 (get_array_bounds): Update comment. Remove undefined bound check.
1664
1665 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1666
1667 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1668 the type::bounds method directly.
1669
1670 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1671
1672 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1673 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1674 are used to set the range type's bounds to use set_bounds.
1675
1676 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1677
1678 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1679
1680 2020-07-10 Pedro Alves <pedro@palves.net>
1681
1682 * gdbthread.h (inferior_ref): Define.
1683 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1684 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1685 * thread.c
1686 (scoped_restore_current_thread::restore):
1687 Adjust to gdb::ref_ptr.
1688 (scoped_restore_current_thread::~scoped_restore_current_thread):
1689 Remove manual decref handling.
1690 (scoped_restore_current_thread::scoped_restore_current_thread):
1691 Adjust to use
1692 inferior_ref::new_reference/thread_info_ref::new_reference.
1693 Incref the thread before calling get_frame_id instead of after.
1694 Let TARGET_CLOSE_ERROR propagate.
1695
1696 2020-07-10 Pedro Alves <pedro@palves.net>
1697
1698 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1699 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1700 NOT_AVAILABLE_ERROR.
1701 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1702 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1703
1704 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1705 Pedro Alves <pedro@palves.net>
1706
1707 PR gdb/26199
1708 * infrun.c (threads_are_resumed_pending_p): Delete.
1709 (do_target_wait): Remove threads_are_executing and
1710 threads_are_resumed_pending_p checks from the inferior_matches
1711 lambda. Update comments.
1712
1713 2020-07-10 Pedro Alves <pedro@palves.net>
1714
1715 PR gdb/26199
1716 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1717 executing threads.
1718
1719 2020-07-10 Pedro Alves <pedro@palves.net>
1720
1721 PR gdb/26199
1722 * infrun.c (handle_no_resumed): Handle multiple targets.
1723
1724 2020-07-10 Pedro Alves <pedro@palves.net>
1725
1726 PR gdb/26199
1727 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1728 target_is_async_p.
1729
1730 2020-07-10 Pedro Alves <pedro@palves.net>
1731
1732 PR gdb/26199
1733 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1734 threads, not all threads.
1735
1736 2020-07-10 Pedro Alves <pedro@palves.net>
1737
1738 PR gdb/26199
1739 * remote.c (remote_target::open_1): Pass remote target pointer as
1740 data to create_async_event_handler.
1741 (remote_async_inferior_event_handler): Mark async event handler
1742 before returning if the remote target still has either pending
1743 events or unacknowledged notifications.
1744
1745 2020-07-10 John Baldwin <jhb@FreeBSD.org>
1746
1747 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1748 declaration.
1749 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1750 function.
1751
1752 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1753
1754 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1755 inferior_ptid.
1756
1757 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1758
1759 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1760 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1761 AT_FREEBSD_PS_STRINGS.
1762
1763 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
1764
1765 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1766 of debugfile path on Windows.
1767
1768 2020-07-08 John Baldwin <jhb@FreeBSD.org>
1769
1770 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1771 argument to 'data'.
1772
1773 2020-07-08 Tom Tromey <tromey@adacore.com>
1774
1775 * ada-lang.c (ada_exception_message_1): Use read_memory.
1776
1777 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1778
1779 PR python/22748
1780 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1781 special handling for inline frames.
1782 * findvar.c (value_of_register_lazy): Skip inline frames when
1783 creating lazy register values.
1784 * frame.c (frame_id_computed_p): Delete definition.
1785 * frame.h (frame_id_computed_p): Delete declaration.
1786
1787 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1788
1789 * NEWS: Mention additions to Python API.
1790 * python/py-arch.c (archpy_register_groups): New function.
1791 (arch_object_methods): Add 'register_groups' method.
1792 * python/py-registers.c (reggroup_iterator_object): New struct.
1793 (reggroup_object): New struct.
1794 (gdbpy_new_reggroup): New function.
1795 (gdbpy_reggroup_to_string): New function.
1796 (gdbpy_reggroup_name): New function.
1797 (gdbpy_reggroup_iter): New function.
1798 (gdbpy_reggroup_iter_next): New function.
1799 (gdbpy_new_reggroup_iterator): New function
1800 (gdbpy_initialize_registers): Register new types.
1801 (reggroup_iterator_object_type): Define new Python type.
1802 (gdbpy_reggroup_getset): New static global.
1803 (reggroup_object_type): Define new Python type.
1804 * python/python-internal.h
1805
1806 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1807
1808 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1809 * python/py-arch.c (archpy_registers): New function.
1810 (arch_object_methods): Add 'registers' method.
1811 * python/py-registers.c: New file.
1812 * python/python-internal.h
1813 (gdbpy_new_register_descriptor_iterator): Declare.
1814 (gdbpy_initialize_registers): Declare.
1815 * python/python.c (do_start_initialization): Call
1816 gdbpy_initialize_registers.
1817 * NEWS: Mention additions to the Python API.
1818
1819 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1820
1821 * NEWS: Mention new Python API method.
1822 * python/py-unwind.c (pending_framepy_architecture): New function.
1823 (pending_frame_object_methods): Add architecture method.
1824
1825 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1826
1827 * gdbarch.c: Regenerate.
1828 * gdbarch.h: Regenerate.
1829 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1830 (gdbarch_data): Use internal_error for the case where
1831 deprecated_set_gdbarch_data was originally needed.
1832 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1833 and use passed in obstack.
1834 (libunwind_frame_set_descr): Should no longer get back NULL from
1835 gdbarch_data.
1836 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1837 type.
1838 * user-regs.c (user_regs_init): Update parameters, and use passed
1839 in obstack.
1840 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1841 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1842
1843 2020-07-06 Tom de Vries <tdevries@suse.de>
1844
1845 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1846 End-Of-Sequence in lte_is_less_than.
1847 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1848 "gdb: Don't reorder line table entries too much when sorting".
1849
1850 2020-07-06 Tom de Vries <tdevries@suse.de>
1851
1852 PR tui/26205
1853 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1854
1855 2020-07-05 Tom de Vries <tdevries@suse.de>
1856
1857 PR build/26187
1858 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1859 std::uncaught_exceptions instead of deprecated
1860 std::uncaught_exception.
1861
1862 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1863
1864 * macroexp.h (macro_stringify): Return
1865 gdb::unique_xmalloc_ptr<char>.
1866 * macroexp.c (macro_stringify): Likewise.
1867 * macrotab.c (fixup_definition): Update.
1868
1869 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1870
1871 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1872 (lex_one_token): Update.
1873 * macroexp.c (struct macro_buffer) <release>: Return
1874 gdb::unique_xmalloc_ptr<char>.
1875 (macro_stringify): Update.
1876 (macro_expand): Update.
1877 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1878 * macroexp.h (macro_expand_next): Likewise.
1879
1880 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
1881
1882 * macroexp.h (macro_lookup_ftype): Remove.
1883 (macro_expand, macro_expand_once, macro_expand_next): Remove
1884 lookup function parameters, add scope parameter.
1885 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1886 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1887 * macroscope.h (standard_macro_lookup): Change parameter type
1888 to macro_scope.
1889 * macroscope.c (standard_macro_lookup): Likewise.
1890 * c-exp.y (lex_one_token): Update.
1891 * macrocmd.c (macro_expand_command): Likewise.
1892 (macro_expand_once_command): Likewise.
1893
1894 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1895
1896 * inf-loop.c (inferior_event_handler): Remove client_data param.
1897 * inf-loop.h (inferior_event_handler): Likewise.
1898 * infcmd.c (step_1): Adjust.
1899 * infrun.c (proceed): Adjust.
1900 (fetch_inferior_event): Remove client_data param.
1901 (infrun_async_inferior_event_handler): Adjust.
1902 * infrun.h (fetch_inferior_event): Remove `void *` param.
1903 * linux-nat.c (handle_target_event): Adjust.
1904 * record-btrace.c (record_btrace_handle_async_inferior_event):
1905 Adjust.
1906 * record-full.c (record_full_async_inferior_event_handler):
1907 Adjust.
1908 * remote.c (remote_async_inferior_event_handler): Adjust.
1909
1910 2020-07-01 Tom Tromey <tom@tromey.com>
1911
1912 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1913 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1914
1915 2020-07-01 Tom Tromey <tom@tromey.com>
1916
1917 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1918 tui_gen_win_info.
1919 (tui_win_info::make_window): Merge with
1920 tui_gen_win_info::make_window.
1921 (tui_win_info::make_visible): Move from tui_gen_win_info.
1922 * tui/tui-win.c (tui_win_info::max_width): Move from
1923 tui_gen_win_info.
1924 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1925 type.
1926 <window_factory>: Likewise.
1927 * tui/tui-layout.c (tui_win_info::resize): Move from
1928 tui_gen_win_info.
1929 (make_standard_window): Change return type.
1930 (get_locator_window, tui_get_window_by_name): Likewise.
1931 (tui_layout_window::apply): Remove a cast.
1932 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1933 (struct tui_win_info): Merge with tui_gen_win_info.
1934 (struct tui_gen_win_info): Remove.
1935
1936 2020-07-01 Tom Tromey <tom@tromey.com>
1937
1938 * tui/tui-stack.h (struct tui_locator_window): Derive from
1939 tui_win_info.
1940 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1941 <can_box>: New method.
1942
1943 2020-07-01 Tom Tromey <tom@tromey.com>
1944
1945 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1946
1947 2020-07-01 Tom Tromey <tom@tromey.com>
1948
1949 * tui/tui-regs.c (tui_data_window::display_registers_from)
1950 (tui_data_window::display_registers_from)
1951 (tui_data_window::first_data_item_displayed)
1952 (tui_data_window::delete_data_content_windows): Update.
1953 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1954 Remove.
1955 (tui_data_window::check_register_values): Update.
1956 (tui_data_item_window::rerender): Add parameters. Update.
1957 (tui_data_item_window::refresh_window): Remove.
1958 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1959 virtual.
1960 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1961 tui_gen_win_info.
1962 <refresh_window, max_height, min_height>: Remove.
1963 <rerender>: Add parameters.
1964 <x, y, visible>: New members.
1965 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1966 <m_item_width>: New member.
1967
1968 2020-07-01 Tom Tromey <tom@tromey.com>
1969
1970 * tui/tui-regs.c (tui_data_window::show_register_group)
1971 (tui_data_window::check_register_values): Update.
1972 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1973 from item_no.
1974
1975 2020-07-01 Tom Tromey <tom@tromey.com>
1976
1977 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1978 useless "if".
1979
1980 2020-07-01 Tom Tromey <tom@tromey.com>
1981
1982 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1983 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1984
1985 2020-07-01 Tom Tromey <tom@tromey.com>
1986
1987 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1988 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1989 (struct tui_line_or_address): Move from tui-data.h.
1990 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1991 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1992 (tui_cmd_window, tui_source_window_base, tui_source_window)
1993 (tui_disasm_window): Don't declare.
1994 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1995 to tui-winsource.h.
1996 (SINGLE_KEY): Move to tui-stack.c.
1997
1998 2020-07-01 Tom Tromey <tom@tromey.com>
1999
2000 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
2001 std::string.
2002 * tui/tui-regs.c (class tab_expansion_file): New.
2003 (tab_expansion_file::write): New method.
2004 (tui_register_format): Change return type. Use
2005 tab_expansion_file.
2006 (tui_get_register, tui_data_window::display_registers_from)
2007 (tui_data_item_window::rerender): Update.
2008 * tui/tui-io.h (tui_expand_tabs): Don't declare.
2009 * tui/tui-io.c (tui_expand_tabs): Remove.
2010
2011 2020-07-01 Tom Tromey <tom@tromey.com>
2012
2013 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
2014
2015 2020-07-01 Fangrui Song <maskray@google.com>
2016
2017 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
2018
2019 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2020
2021 * dwarf2/read.c (set_die_type): Removed conditions to restrict
2022 forms for DW_AT_associated and DW_AT_allocated attributes,
2023 which is already checked in function attr_to_dynamic_prop.
2024
2025 2020-06-30 Tom Tromey <tromey@adacore.com>
2026
2027 * dwarf2/read.c (quirk_rust_enum): Correctly call
2028 alloc_rust_variant for default-less enum.
2029
2030 2020-06-30 Tom Tromey <tromey@adacore.com>
2031
2032 PR build/26183:
2033 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
2034 gdb::to_string.
2035
2036 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
2037
2038 * gdbarch.sh (displaced_step_copy_insn): Update doc.
2039 * gdbarch.h: Re-generate.
2040
2041 2020-06-28 Tom Tromey <tom@tromey.com>
2042
2043 * command.h (cmd_types): Remove.
2044 (cmd_type): Don't declare.
2045 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
2046 typedef.
2047 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
2048 * cli/cli-decode.c (cmd_type): Remove.
2049
2050 2020-06-27 Pedro Alves <palves@redhat.com>
2051
2052 * fork-child.c (prefork_hook): Adjust.
2053 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
2054 Delete.
2055 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
2056 * inferior.c (inferior::set_tty, inferior::tty): New methods.
2057 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
2058 Remove declarations.
2059 (struct inferior) <set_tty, tty>: New methods.
2060 (struct inferior) <terminal>: Rename to ...
2061 (struct inferior) <m_terminal>: ... this and make private.
2062 * main.c (captured_main_1): Adjust.
2063 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
2064 (mi_cmd_inferior_tty_show): Adjust.
2065 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
2066 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
2067
2068 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
2069
2070 * configure.ac: Add --enable-libctf: handle --disable-static
2071 properly.
2072 * acinclude.m4: sinclude ../config/enable.m4.
2073 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
2074 (LIBCTF): Substitute in.
2075 (CTF_DEPS): New, likewise.
2076 (CLIBS): libctf needs symbols from libbfd: move earlier.
2077 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
2078 flags.
2079 * ctfread.c: Surround in ENABLE_LIBCTF.
2080 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
2081 * configure: Regenerate.
2082 * config.in: Likewise.
2083
2084 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
2085
2086 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
2087
2088 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
2089
2090 * inferior.h (struct inferior) <terminal>: Change type to
2091 gdb::unique_xmalloc_ptr<char>.
2092 * inferior.c (inferior::~inferior): Don't free inf->terminal.
2093 * infcmd.c (set_inferior_io_terminal): Don't free terminal
2094 field, adjust to unique pointer.
2095 (get_inferior_io_terminal): Adjust to unique pointer.
2096
2097 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2098
2099 * riscv-tdep.c (riscv_print_registers_info): Loop over all
2100 registers, not just the known core set of registers.
2101
2102 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2103
2104 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
2105 fflags, frm, and fcsr registers.
2106 (riscv_register_reggroup_p): Remove unknown CSRs from save and
2107 restore groups.
2108 (riscv_tdesc_unknown_reg): New function.
2109 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
2110 tdesc_use_registers.
2111 * riscv-tdep.h (struct gdbarch_tdep): Add
2112 unknown_csrs_first_regnum, unknown_csrs_count,
2113 duplicate_fflags_regnum, duplicate_frm_regnum, and
2114 duplicate_fcsr_regnum fields.
2115
2116 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2117
2118 * target-descriptions.c (tdesc_use_registers): Add new parameter a
2119 callback, use the callback (when not null) to help number unknown
2120 registers.
2121 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
2122 (tdesc_use_registers): Add extra parameter to declaration.
2123
2124 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2125
2126 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
2127 in the file.
2128 (class riscv_pending_register_alias): Likewise.
2129 (riscv_register_feature::register_info): Change 'required_p' field
2130 to 'required', and change its type. Add 'check' member function.
2131 (riscv_register_feature::register_info::check): Define new member
2132 function.
2133 (riscv_xreg_feature): Change initialisation of 'required' field.
2134 (riscv_freg_feature): Likewise.
2135 (riscv_virtual_feature): Likewise.
2136 (riscv_csr_feature): Likewise.
2137 (riscv_check_tdesc_feature): Take extra parameter, the csr
2138 tdesc_feature, rewrite the function to use the new
2139 riscv_register_feature::register_info::check function.
2140 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
2141
2142 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2143
2144 * features/Makefile: Remove all references to the deleted files
2145 below.
2146 * features/riscv/32bit-csr.c: Deleted.
2147 * features/riscv/32bit-csr.xml: Deleted.
2148 * features/riscv/64bit-csr.c: Deleted.
2149 * features/riscv/64bit-csr.xml: Deleted.
2150 * features/riscv/rebuild-csr-xml.sh: Deleted.
2151
2152 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2153
2154 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
2155 whitespace error for declaration of names member variable.
2156 (struct riscv_register_feature): Add new prefer_first_name member
2157 variable, and fix whitespace error in declaration of registers.
2158 (riscv_xreg_feature): Initialize prefer_first_name field.
2159 (riscv_freg_feature): Likewise.
2160 (riscv_virtual_feature): Likewise.
2161 (riscv_csr_feature): Likewise.
2162 (riscv_register_name): Expand on comments. Remove register name
2163 modifications for CSR and virtual registers.
2164
2165 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2166
2167 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
2168 errors.
2169
2170 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2171
2172 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
2173 riscv-opc.h.
2174 (class riscv_pending_register_alias): New class.
2175 (riscv_check_tdesc_feature): Take vector of pending aliases and
2176 populate it as appropriate.
2177 (riscv_setup_register_aliases): Delete.
2178 (riscv_gdbarch_init): Create vector of pending aliases and pass it
2179 to riscv_check_tdesc_feature in all cases. Use the vector to
2180 create the register aliases.
2181
2182 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2183
2184 * sol2-tdep.c (sol2_static_transform_name): Remove.
2185 (sol2_init_abi): Don't register it.
2186 * gdbarch.sh (static_transform_name): Remove.
2187 * gdbarch.c, gdbarch.h: Regenerate.
2188
2189 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
2190 gdbarch_static_transform_name.
2191 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
2192 * stabsread.c (define_symbol) <'X'>: Remove.
2193 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
2194 handling.
2195 <'V'>: Likewise.
2196 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
2197 <'S'>: Remove call to gdbarch_static_transform_name.
2198
2199 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2200
2201 * procfs.c (procfs_pre_trace): New function.
2202 (procfs_target::create_inferior): Pass it to fork_inferior.
2203
2204 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2205
2206 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
2207 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
2208 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
2209 sol2-tdep.o, sparc-sol2-tdep.o.
2210 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
2211 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
2212 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
2213 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
2214
2215 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2216
2217 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
2218 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
2219 Call sol2_init_abi.
2220 Remove calls to set_gdbarch_skip_solib_resolver,
2221 set_gdbarch_core_pid_to_str.
2222 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
2223 (i386_sol2_static_transform_name): Remove.
2224 (i386_sol2_init_abi): Call sol2_init_abi.
2225 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2226 set_gdbarch_static_transform_name,
2227 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2228 Use sol2_sigtramp_p.
2229 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
2230 (sol2_sigtramp_p): New function.
2231 (sol2_static_transform_name): New function.
2232 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
2233 (sol2_init_abi): New function.
2234 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
2235 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
2236 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
2237 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
2238 (sparc_sol2_static_transform_name): Remove.
2239 (sparc32_sol2_init_abi): Call sol2_init_abi.
2240 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2241 set_gdbarch_static_transform_name,
2242 set_gdbarch_skip_solib_resolver,
2243 set_gdbarch_core_pid_to_str.
2244 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
2245 (sparc_sol2_static_transform_name): Remove
2246 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
2247 call sol2_sigtramp_p.
2248 (sparc64_sol2_init_abi): Call sol2_init_abi.
2249 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2250 set_gdbarch_static_transform_name,
2251 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2252
2253 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2254
2255 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
2256 * exec.c (validate_exec_file): If from_tty, set both
2257 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
2258 * symfile.c (symbol_file_add_with_addrs): if always_confirm
2259 and from_tty, unconditionally ask a confirmation.
2260
2261 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2262
2263 * target-descriptions.c (tdesc_architecture_name): Protect against
2264 NULL pointer dereference.
2265 (maint_print_xml_tdesc_cmd): New function.
2266 (_initialize_target_descriptions): Register new 'maint print
2267 xml-tdesc' command and give it the filename completer.
2268 * NEWS: Mention new 'maint print xml-tdesc' command.
2269
2270 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2271
2272 * target-descriptions.c (class tdesc_compatible_info): New class.
2273 (struct target_desc): Change type of compatible vector.
2274 (tdesc_compatible_p): Update for change in type of
2275 target_desc::compatible.
2276 (tdesc_compatible_info_list): New function.
2277 (tdesc_compatible_info_arch_name): New function.
2278 (tdesc_add_compatible): Update for change in type of
2279 target_desc::compatible.
2280 (print_c_tdesc::visit_pre): Likewise.
2281
2282 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2283
2284 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
2285 whitespace to underscore.
2286 (maint_print_c_tdesc_cmd): Use fake filename for target
2287 descriptions that came from the target.
2288 (_initialize_target_descriptions): Add filename command completion
2289 for 'maint print c-tdesc'.
2290
2291 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2292
2293 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
2294 lines.
2295
2296 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2297
2298 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
2299 lines.
2300 (dwarf2_find_location_expression): Likewise.
2301 (call_site_parameter_matches): Likewise.
2302 (dwarf2_compile_expr_to_ax): Likewise.
2303 (disassemble_dwarf_expression): Likewise.
2304 (loclist_describe_location): Likewise.
2305
2306 2020-06-23 Pedro Alves <palves@redhat.com>
2307
2308 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
2309 progspace-and-thread.h. Include scoped-mock-context.h instead.
2310 (register_to_value_test): Use scoped_mock_context.
2311 * regcache.c: Include "scoped-mock-context.h".
2312 (cooked_read_test): Don't error out if a target is already pushed.
2313 Use scoped_mock_context. Adjust.
2314 * scoped-mock-context.h: New file.
2315
2316 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2317
2318 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
2319 initializer.
2320 (ada_language::is_string_type_p): New member function.
2321 * c-lang.c (c_language_data): Delete la_is_string_type_p
2322 initializer.
2323 (cplus_language_data): Likewise.
2324 (asm_language_data): Likewise.
2325 (minimal_language_data): Likewise.
2326 * d-lang.c (d_language_data): Likewise.
2327 * f-lang.c (f_is_string_type_p): Delete function, implementation
2328 moved to f_language::is_string_type_p.
2329 (f_language_data): Delete la_is_string_type_p initializer.
2330 (f_language::is_string_type_p): New member function,
2331 implementation from f_is_string_type_p.
2332 * go-lang.c (go_is_string_type_p): Delete function, implementation
2333 moved to go_language::is_string_type_p.
2334 (go_language_data): Delete la_is_string_type_p initializer.
2335 (go_language::is_string_type_p): New member function,
2336 implementation from go_is_string_type_p.
2337 * language.c (language_defn::is_string_type_p): Define new member
2338 function.
2339 (default_is_string_type_p): Make static, add comment copied from
2340 header file.
2341 (unknown_language_data): Delete la_is_string_type_p initializer.
2342 (unknown_language::is_string_type_p): New member function.
2343 (auto_language_data): Delete la_is_string_type_p initializer.
2344 (auto_language::is_string_type_p): New member function.
2345 * language.h (language_data): Delete la_is_string_type_p field.
2346 (language_defn::is_string_type_p): Declare new function.
2347 (default_is_string_type_p): Delete desclaration, move comment to
2348 definition.
2349 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
2350 moved to m2_language::is_string_type_p.
2351 (m2_language_data): Delete la_is_string_type_p initializer.
2352 (m2_language::is_string_type_p): New member function,
2353 implementation from m2_is_string_type_p.
2354 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
2355 initializer.
2356 * opencl-lang.c (opencl_language_data): Likewise.
2357 * p-lang.c (pascal_is_string_type_p): Delete function,
2358 implementation moved to pascal_language::is_string_type_p.
2359 (pascal_language_data): Delete la_is_string_type_p initializer.
2360 (pascal_language::is_string_type_p): New member function,
2361 implementation from pascal_is_string_type_p.
2362 * rust-lang.c (rust_is_string_type_p): Delete function,
2363 implementation moved to rust_language::is_string_type_p.
2364 (rust_language_data): Delete la_is_string_type_p initializer.
2365 (rust_language::is_string_type_p): New member function,
2366 implementation from rust_is_string_type_p.
2367 * valprint.c (val_print_scalar_or_string_type_p): Update call to
2368 is_string_type_p.
2369
2370 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2371
2372 * ada-lang.c (ada_language_data): Delete la_print_typedef
2373 initializer.
2374 (ada_language::print_typedef): New member function.
2375 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
2376 (cplus_language_data): Likewise.
2377 (asm_language_data): Likewise.
2378 (minimal_language_data): Likewise.
2379 * d-lang.c (d_language_data): Likewise.
2380 * f-lang.c (f_language_data): Likewise.
2381 (f_language::print_typedef): New member function.
2382 * go-lang.c (go_language_data): Delete la_print_typedef
2383 initializer.
2384 * language.c (language_defn::print_typedef): Define member
2385 function.
2386 (unknown_language_data): Delete la_print_typedef initializer.
2387 (unknown_language::print_typedef): New member function.
2388 (auto_language_data): Delete la_print_typedef initializer.
2389 (auto_language::print_typedef): New member function.
2390 * language.h (language_data): Delete la_print_typedef field.
2391 (language_defn::print_typedef): Declare new member function.
2392 (LA_PRINT_TYPEDEF): Update call to print_typedef.
2393 (default_print_typedef): Delete declaration.
2394 * m2-lang.c (m2_language_data): Delete la_print_typedef
2395 initializer.
2396 (m2_language::print_typedef): New member function.
2397 * objc-lang.c (objc_language_data): Delete la_print_typedef
2398 initializer.
2399 * opencl-lang.c (opencl_language_data): Likewise.
2400 * p-lang.c (pascal_language_data): Likewise.
2401 (pascal_language::print_typedef): New member function.
2402 * rust-lang.c (rust_print_typedef): Delete function,
2403 implementation moved to rust_language::print_typedef.
2404 (rust_language): Delete la_print_typedef initializer.
2405 (rust_language::print_typedef): New member function,
2406 implementation from rust_print_typedef.
2407 * typeprint.c (default_print_typedef): Delete.
2408
2409 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2410
2411 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2412 (ada_language::printstr): New member function.
2413 * c-lang.c (c_language_data): Delete la_printstr initializer.
2414 (cplus_language_data): Likewise.
2415 (asm_language_data): Likewise.
2416 (minimal_language_data): Likewise.
2417 * d-lang.c (d_language_data): Likewise.
2418 * f-lang.c (f_printstr): Rename to f_language::printstr.
2419 (f_language_data): Delete la_printstr initializer.
2420 (f_language::printstr): New member function, implementation from
2421 f_printstr.
2422 * go-lang.c (go_language_data): Delete la_printstr initializer.
2423 * language.c (language_defn::printstr): Define new member
2424 function.
2425 (unk_lang_printstr): Delete.
2426 (unknown_language_data): Delete la_printstr initializer.
2427 (unknown_language::printstr): New member function.
2428 (auto_language_data): Delete la_printstr initializer.
2429 (auto_language::printstr): New member function.
2430 * language.h (language_data): Delete la_printstr field.
2431 (language_defn::printstr): Declare new member function.
2432 (LA_PRINT_STRING): Update call to printstr.
2433 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2434 (m2_language_data): Delete la_printstr initializer.
2435 (m2_language::printstr): New member function, implementation from
2436 m2_printstr.
2437 * objc-lang.c (objc_language_data): Delete la_printstr
2438 initializer.
2439 * opencl-lang.c (opencl_language_data): Likewise.
2440 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2441 (pascal_language_data): Delete la_printstr initializer.
2442 (pascal_language::printstr): New member function, implementation
2443 from pascal_printstr.
2444 * p-lang.h (pascal_printstr): Delete declaration.
2445 * rust-lang.c (rust_printstr): Update header comment.
2446 (rust_language_data): Delete la_printstr initializer.
2447 (rust_language::printstr): New member function.
2448
2449 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2450
2451 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2452 (ada_language::printchar): New member function.
2453 * c-lang.c (c_language_data): Delete la_printchar initializer.
2454 (cplus_language_data): Likewise.
2455 (asm_language_data): Likewise.
2456 (minimal_language_data): Likewise.
2457 * d-lang.c (d_language_data): Likewise.
2458 * f-lang.c (f_printchar): Rename to f_language::printchar.
2459 (f_language_data): Delete la_printchar initializer.
2460 (f_language::printchar): New member function, implementation from
2461 f_printchar.
2462 * go-lang.c (go_language_data): Delete la_printchar initializer.
2463 * language.c (unk_lang_printchar): Delete.
2464 (language_defn::printchar): Define new member function.
2465 (unknown_language_data): Delete la_printchar initializer.
2466 (unknown_language::printchar): New member function.
2467 (auto_language_data): Delete la_printchar initializer.
2468 (auto_language::printchar): New member function.
2469 * language.h (language_data): Delete la_printchar field.
2470 (language_defn::printchar): Declare new member function.
2471 (LA_PRINT_CHAR): Update call to printchar.
2472 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2473 (m2_language::printchar): New member function.
2474 * objc-lang.c (objc_language_data): Delete la_printchar
2475 initializer.
2476 * opencl-lang.c (opencl_language_data): Likewise.
2477 * p-lang.c (pascal_language_data): Delete la_printchar
2478 initializer.
2479 (pascal_language::printchar): New member function.
2480 * rust-lang.c (rust_printchar): Rename to
2481 rust_language::printchar.
2482 (rust_language_data): Delete la_printchar initializer.
2483 (rust_language::printchar): New member function, implementation
2484 from rust_printchar.
2485
2486 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2487
2488 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2489 (ada_language_data): Delete la_emitchar initializer.
2490 (ada_language::emitchar): New member function, implementation from
2491 emit_char.
2492 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2493 (cplus_language_data): Likewise.
2494 (asm_language_data): Likewise.
2495 (minimal_language_data): Likewise.
2496 * d-lang.c (d_language_data): Likewise.
2497 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2498 (f_language_data): Delete la_emitchar initializer.
2499 (f_language::emitchar): New member function, implementation from
2500 f_emit_char.
2501 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2502 * language.c (unk_lang_emit_char): Delete.
2503 (language_defn::emitchar): New member function definition.
2504 (unknown_language_data): Delete la_emitchar initializer.
2505 (unknown_language::emitchar): New member function.
2506 (auto_language_data): Delete la_emitchar initializer.
2507 (auto_language::emitchar): New member function.
2508 * language.h (language_data): Delete la_emitchar field.
2509 (language_defn::emitchar): New member field declaration.
2510 (LA_EMIT_CHAR): Update call to emitchar.
2511 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2512 (m2_language_data): Delete la_emitchar initializer.
2513 (m2_language::emitchar): New member function, implementation from
2514 m2_emit_char.
2515 * objc-lang.c (objc_language_data): Delete la_emitchar
2516 initializer.
2517 * opencl-lang.c (opencl_language_data): Likewise.
2518 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2519 (pascal_language_data): Delete la_emitchar initializer.
2520 (pascal_language::emitchar): New member function, implementation
2521 from pascal_emit_char.
2522 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2523 (rust_language_data): Delete la_emitchar initializer.
2524 (rust_language::emitchar): New member function, implementation
2525 from rust_emitchar.
2526
2527 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2528
2529 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2530 (ada_language_data): Delete la_post_parser initializer.
2531 (ada_language::post_parser): New member function.
2532 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2533 (cplus_language_data): Likewise.
2534 (asm_language_data): Likewise.
2535 (minimal_language_data): Likewise.
2536 * d-lang.c (d_language_data): Likewise.
2537 * f-lang.c (f_language_data): Likewise.
2538 * go-lang.c (go_language_data): Likewise.
2539 * language.c (unknown_language_data): Likewise.
2540 (auto_language_data): Likewise.
2541 * language.h (language_data): Delete la_post_parser field.
2542 (language_defn::post_parser): New member function.
2543 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2544 * objc-lang.c (objc_language_data): Likewise.
2545 * opencl-lang.c (opencl_language_data): Likewise.
2546 * p-lang.c (pascal_language_data): Likewise.
2547 * parse.c (parse_exp_in_context): Update call to post_parser.
2548 (null_post_parser): Delete definition.
2549 * parser-defs.h (null_post_parser): Delete declaration.
2550 * rust-lang.c (rust_language_data): Delete la_post_parser
2551 initializer.
2552
2553 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2554
2555 * ada-lang.c (parse): Rename to ada_language::parser.
2556 (ada_language_data): Delete la_parser initializer.
2557 (ada_language::parser): New member function, implementation from
2558 parse.
2559 * c-lang.c (c_language_data): Delete la_parser initializer.
2560 (cplus_language_data): Likewise.
2561 (asm_language_data): Likewise.
2562 (minimal_language_data): Likewise.
2563 * d-lang.c (d_language_data): Likewise.
2564 (d_language::parser): New member function.
2565 * f-lang.c (f_language_data): Delete la_parser initializer.
2566 (f_language::parser): New member function.
2567 * go-lang.c (go_language_data): Delete la_parser initializer.
2568 (go_language::parser): New member function.
2569 * language.c (unk_lang_parser): Delete.
2570 (language_defn::parser): Define new member function.
2571 (unknown_language_data): Delete la_parser initializer.
2572 (unknown_language::parser): New member function.
2573 (auto_language_data): Delete la_parser initializer.
2574 (auto_language::parser): New member function.
2575 * language.h (language_data): Delete la_parser field.
2576 (language_defn::parser): Declare new member function.
2577 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2578 (m2_language::parser): New member function.
2579 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2580 * opencl-lang.c (opencl_language_data): Likewise.
2581 * p-lang.c (pascal_language_data): Likewise.
2582 (pascal_language::parser): New member function.
2583 * parse.c (parse_exp_in_context): Update call to parser.
2584 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2585 (rust_language::parser): New member function.
2586
2587 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2588
2589 * top.c (print_gdb_configuration): Print --with-python-libdir
2590 configuration value.
2591
2592 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2593
2594 * NEWS: Mention change to the alias command.
2595
2596 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2597
2598 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2599 (alias_command_completer)
2600 (make_alias_options_def_group): New functions.
2601 (alias_opts, alias_option_defs): New struct and array.
2602 (alias_usage_error): Update usage.
2603 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2604 Use option framework.
2605 (_initialize_cli_cmds): Update alias command help.
2606 Update aliases command help.
2607 (show_user):
2608 Add NULL for new default_args lookup_cmd argument.
2609 (valid_command_p): Rename to validate_aliased_command.
2610 Add NULL for new default_args lookup_cmd argument. Verify that the
2611 aliased_command has no default args.
2612 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2613 (lookup_cmd_1, lookup_cmd): New argument default_args.
2614 (add_alias_cmd):
2615 Add NULL for new default_args lookup_cmd argument.
2616 (print_help_for_command): Show default args under the layout
2617 alias some_alias = some_aliased_cmd some_alias_default_arg.
2618 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2619 xfree default_args in destructor.
2620 * cli/cli-script.c (process_next_line, do_define_command):
2621 Add NULL for new default_args lookup_cmd argument.
2622 * command.h: Declare new default_args argument in lookup_cmd
2623 and lookup_cmd_1.
2624 * completer.c (complete_line_internal_1):
2625 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2626 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2627 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2628 Likewise.
2629 * infcmd.c (_initialize_infcmd): Likewise.
2630 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2631 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2632 * python/py-param.c (add_setshow_generic): Likewise.
2633 * remote.c (_initialize_remote): Likewise.
2634 * top.c (execute_command): Prepend default_args if command has some.
2635 (set_verbose):
2636 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2637 * tracepoint.c (validate_actionline, encode_actions_1):
2638 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2639
2640 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2641
2642 * jit.c (jit_read_descriptor): Use bool as the return type.
2643 (jit_breakpoint_re_set_internal): Use bool as the return type.
2644 Invert the return value logic; return true if the jit breakpoint
2645 has been successfully initialized.
2646 (jit_inferior_init): Update the call to
2647 jit_breakpoint_re_set_internal.
2648
2649 2020-06-22 Pedro Alves <palves@redhat.com>
2650
2651 PR gdb/25939
2652 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2653 Use the current inferior instead. Don't return
2654 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2655 wait again.
2656 * sol-thread.c (sol_thread_target::wait): Don't reference
2657 inferior_ptid.
2658 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2659 (sol_update_thread_list_callback): Use the current inferior's pid
2660 instead of inferior_ptid.
2661
2662 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2663
2664 * procfs.c: Cleanup many comments.
2665
2666 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2667 (AFTER_WATCHFLAG): Replace by value.
2668
2669 (MAIN_PROC_NAME_FORMAT): Inline ...
2670 (create_procinfo): ... here.
2671
2672 (procfs_debug_inferior): Remove SYS_exec handling.
2673 (syscall_is_exec): Likewise.
2674 (procfs_set_exec_trap): Likewise.
2675
2676 (syscall_is_lwp_exit): Inline in callers.
2677 (syscall_is_exit): Likewise.
2678 (syscall_is_exec): Likewise.
2679 (syscall_is_lwp_create): Likewise.
2680
2681 (invalidate_cache): Remove #if 0 code.
2682
2683 (make_signal_thread_runnable): Remove.
2684 (procfs_target::resume): Remove #if 0 code.
2685
2686 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2687
2688 PR gdb/25939
2689 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2690 call ...
2691 (procfs_target::create_inferior): ... here.
2692
2693 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2694
2695 * exec.c (validate_exec_file): Ensure the build-id is up to
2696 date by calling reopen_exec_file (that checks file timestamp
2697 to decide to re-read the file).
2698
2699 2020-06-18 Pedro Alves <palves@redhat.com>
2700
2701 PR gdb/25412
2702 * gdbthread.h (delete_thread, delete_thread_silent)
2703 (find_thread_ptid): Update comments.
2704 * thread.c (current_thread_): New global.
2705 (is_current_thread): Move higher, and reimplement.
2706 (inferior_thread): Reimplement.
2707 (set_thread_exited): Use bool. Add assertions.
2708 (add_thread_silent): Simplify thread-reuse handling by always
2709 calling delete_thread.
2710 (delete_thread): Remove intro comment.
2711 (find_thread_ptid): Skip exited threads.
2712 (switch_to_thread_no_regs): Write to current_thread_.
2713 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2714 INFERIOR_PTID. Clear current_thread_.
2715
2716 2020-06-18 Pedro Alves <palves@redhat.com>
2717
2718 * aix-thread.c (pd_update): Use switch_to_thread.
2719
2720 2020-06-18 Pedro Alves <palves@redhat.com>
2721
2722 * ravenscar-thread.c (ravenscar_thread_target): Update.
2723 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2724 (ravenscar_thread_target::add_active_thread): ... this. Don't
2725 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2726 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2727
2728 2020-06-18 Pedro Alves <palves@redhat.com>
2729
2730 * nat/windows-nat.c (current_windows_thread): Remove.
2731 * nat/windows-nat.h (current_windows_thread): Remove.
2732 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2733 Adjust.
2734 (display_selectors): Adjust to fetch the current
2735 windows_thread_info based on inferior_ptid.
2736 (fake_create_process): No longer write to current_windows_thread.
2737 (windows_nat_target::get_windows_debug_event):
2738 Don't set inferior_ptid or current_windows_thread.
2739 (windows_nat_target::wait): Adjust to not rely on
2740 current_windows_thread.
2741 (do_initial_windows_stuff): Now a method of windows_nat_target.
2742 Switch to the last_ptid thread.
2743 (windows_nat_target::attach): Adjust.
2744 (windows_nat_target::detach): Use switch_to_no_thread instead of
2745 writing to inferior_ptid directly.
2746 (windows_nat_target::create_inferior): Adjust.
2747
2748 2020-06-18 Pedro Alves <palves@redhat.com>
2749
2750 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2751
2752 2020-06-18 Pedro Alves <palves@redhat.com>
2753
2754 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2755 after creating it, instead of writing to inferior_ptid. Don't
2756 write to inferior_ptid.
2757
2758 2020-06-18 Pedro Alves <palves@redhat.com>
2759
2760 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2761
2762 2020-06-18 Pedro Alves <palves@redhat.com>
2763
2764 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2765 it, instead of writing to inferior_ptid.
2766
2767 2020-06-18 Pedro Alves <palves@redhat.com>
2768
2769 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2770 to inferior_ptid.
2771
2772 2020-06-18 Pedro Alves <palves@redhat.com>
2773
2774 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2775 instead of writing to inferior_ptid directly.
2776
2777 2020-06-18 Pedro Alves <palves@redhat.com>
2778
2779 * corelow.c (core_target::close): Use switch_to_no_thread instead
2780 of writing to inferior_ptid directly.
2781 (add_to_thread_list, core_target_open): Use switch_to_thread
2782 instead of writing to inferior_ptid directly.
2783
2784 2020-06-18 Pedro Alves <palves@redhat.com>
2785
2786 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2787 inferior_ptid.
2788 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2789 inferior_ptid.
2790 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2791 inferior_ptid directly.
2792 (darwin_nat_target::init_thread_list): Switch to thread, instead
2793 of writing to inferior_ptid.
2794 (darwin_nat_target::attach): Don't write to inferior_ptid.
2795 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2796
2797 2020-06-18 Pedro Alves <palves@redhat.com>
2798
2799 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2800 thread.
2801 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2802 Instead use switch_to_thread.
2803 (gnu_nat_target::detach): Use switch_to_no_thread
2804 instead of writing to inferior_ptid directly. Used passed-in
2805 inferior instead of looking up the inferior by pid.
2806
2807 2020-06-18 Pedro Alves <palves@redhat.com>
2808
2809 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2810 inferior_ptid.
2811
2812 2020-06-18 Pedro Alves <palves@redhat.com>
2813
2814 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2815 inferior_ptid.
2816 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2817 thread.
2818 (nto_procfs_target::detach): Avoid referencing
2819 inferior_ptid. Use switch_to_no_thread instead of writing to
2820 inferior_ptid directly.
2821 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2822 instead of writing to inferior_ptid directly.
2823 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2824 to thread.
2825
2826 2020-06-18 Pedro Alves <palves@redhat.com>
2827
2828 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2829 after creating it, instead of writing to inferior_ptid.
2830 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2831 to inferior_ptid directly.
2832 (gdbsim_target::wait): Don't write to inferior_ptid.
2833
2834 2020-06-18 Pedro Alves <palves@redhat.com>
2835
2836 * remote.c (remote_target::remote_notice_new_inferior): Use
2837 switch_to_thread instead of writing to inferior_ptid directly.
2838 (remote_target::add_current_inferior_and_thread): Use
2839 switch_to_no_thread instead of writing to inferior_ptid directly.
2840 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2841 and switch_to_thread instead of using set_current_inferior or
2842 writing to inferior_ptid directly.
2843
2844 2020-06-18 Pedro Alves <palves@redhat.com>
2845
2846 * tracectf.c (ctf_target_open): Switch to added thread instead of
2847 writing to inferior_ptid directly.
2848 (ctf_target::close): Use switch_to_no_thread instead of writing to
2849 inferior_ptid directly.
2850
2851 2020-06-18 Pedro Alves <palves@redhat.com>
2852
2853 * tracefile-tfile.c (tfile_target_open): Don't write to
2854 inferior_ptid directly, instead switch to added thread.
2855 (tfile_target::close): Use switch_to_no_thread instead of writing
2856 to inferior_ptid directly.
2857
2858 2020-06-18 Pedro Alves <palves@redhat.com>
2859
2860 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2861 (procfs_target::detach): Use switch_to_no_thread
2862 instead of writing to inferior_ptid directly.
2863 (do_attach): Change return type to void. Switch to the added
2864 thread.
2865 (procfs_target::create_inferior): Switch to the added thread.
2866 (procfs_do_thread_registers): Don't write to inferior_ptid.
2867
2868 2020-06-18 Pedro Alves <palves@redhat.com>
2869
2870 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2871 of writing to inferior_ptid.
2872 (scoped_restore_exited_inferior): Delete.
2873 (handle_vfork_child_exec_or_exit): Simplify using
2874 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2875 instead of writing to inferior_ptid.
2876 (THREAD_STOPPED_BY): Delete.
2877 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2878 (thread_stopped_by_hw_breakpoint): Delete.
2879 (save_waitstatus): Use
2880 scoped_restore_current_thread+switch_to_thread, and call
2881 target_stopped_by_watchpoint instead of
2882 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2883 instead of thread_stopped_by_sw_breakpoint, and
2884 target_stopped_by_hw_breakpoint instead of
2885 thread_stopped_by_hw_breakpoint.
2886 (handle_inferior_event)
2887 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2888 inferior_ptid directly, nor
2889 set_current_inferior/set_current_program_space. Use
2890 switch_to_thread / switch_to_inferior_no_thread instead.
2891
2892 2020-06-18 Pedro Alves <palves@redhat.com>
2893
2894 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2895 instead of writing to inferior_ptid.
2896
2897 2020-06-18 Pedro Alves <palves@redhat.com>
2898
2899 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2900 added thread.
2901 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2902 to the added thread.
2903 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2904 instead of writing to inferior_ptid.
2905
2906 2020-06-18 Pedro Alves <palves@redhat.com>
2907
2908 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2909 (register_to_value_test): Mock a program_space too. Heap-allocate
2910 the address space. Don't write to inferior_ptid. Use
2911 switch_to_thread instead.
2912
2913 2020-06-18 Pedro Alves <palves@redhat.com>
2914
2915 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2916 Delete.
2917 (find_signalled_thread()): New, factored out from
2918 linux_make_corefile_notes and adjusted to handle exited threads.
2919 (linux_make_corefile_notes): Adjust to use the new
2920 find_signalled_thread.
2921
2922 2020-06-18 Pedro Alves <palves@redhat.com>
2923
2924 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2925 of saving/restoring inferior_ptid.
2926
2927 2020-06-17 Tom Tromey <tom@tromey.com>
2928
2929 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2930 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2931 declare.
2932 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2933
2934 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
2935
2936 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2937 of partial symtabs.
2938
2939 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2940
2941 * regformats/reg-arm.dat: Remove.
2942 * regformats/reg-bfin.dat: Remove.
2943 * regformats/reg-cris.dat: Remove.
2944 * regformats/reg-crisv32.dat: Remove.
2945 * regformats/reg-m32r.dat: Remove.
2946 * regformats/reg-tilegx.dat: Remove.
2947 * regformats/reg-tilegx32.dat: Remove.
2948
2949 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2950
2951 * features/Makefile (WHICH): Remove arm files.
2952 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2953 * regformats/arm/arm-with-neon.dat: Remove.
2954 * regformats/arm/arm-with-vfpv2.dat: Remove.
2955 * regformats/arm/arm-with-vfpv3.dat: Remove.
2956
2957 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2958
2959 * features/Makefile (XMLTOC): Remove rx.xml.
2960
2961 2020-06-17 Pedro Alves <palves@redhat.com>
2962
2963 * gdbthread.h (thread_control_state) <trap_expected> Update
2964 comments.
2965
2966 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2967
2968 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2969 ada_language::lookup_symbol_nonlocal.
2970 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2971 (ada_language::lookup_symbol_nonlocal): New member function,
2972 implementation from ada_lookup_symbol_nonlocal.
2973 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2974 initializer.
2975 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2976 initializer.
2977 (cplus_language::lookup_symbol_nonlocal): New member function.
2978 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2979 (minimal_language_data) Likewise.
2980 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2981 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2982 initializer.
2983 (d_language::lookup_symbol_nonlocal): New member function.
2984 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2985 initializer.
2986 (f_language::lookup_symbol_nonlocal): New member function.
2987 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2988 initializer.
2989 * language.c (unknown_language_data): Likewise.
2990 (auto_language_data): Likewise.
2991 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2992 field.
2993 (language_defn::lookup_symbol_nonlocal): New member function.
2994 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2995 initializer.
2996 * objc-lang.c (objc_language_data): Likewise.
2997 * opencl-lang.c (opencl_language_data): Likewise.
2998 * p-lang.c (pascal_language_data): Likewise.
2999 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
3000 rust_language::lookup_symbol_nonlocal.
3001 (rust_language_data): Delete la_lookup_symbol_nonlocal
3002 initializer.
3003 (rust_language::lookup_symbol_nonlocal): New member function,
3004 implementation from rust_lookup_symbol_nonlocal.
3005 * symtab.c (lookup_symbol_aux): Update call to
3006 lookup_symbol_nonlocal.
3007 (basic_lookup_symbol_nonlocal): Rename to...
3008 (language_defn::lookup_symbol_nonlocal): ...this, and update
3009 header comment. Remove language_defn parameter, and replace with
3010 uses of `this'.
3011 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
3012
3013 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3014
3015 * ada-lang.c (ada_language_data): Delete la_value_print_inner
3016 initializer.
3017 (ada_language::value_print_inner): New member function.
3018 * c-lang.c (c_language_data): Delete la_value_print_inner
3019 initializer.
3020 (cplus_language_data): Likewise.
3021 (asm_language_data): Likewise.
3022 (minimal_language_data): Likewise.
3023 * d-lang.c (d_language_data): Likewise.
3024 (d_language::value_print_inner): New member function.
3025 * f-lang.c (f_language_data): Delete la_value_print_inner
3026 initializer.
3027 (f_language::value_print_inner): New member function.
3028 * f-lang.h (f_value_print_innner): Rename to...
3029 (f_value_print_inner): ...this (note spelling of 'inner').
3030 * f-valprint.c (f_value_print_innner): Rename to...
3031 (f_value_print_inner): ...this (note spelling of 'inner').
3032 * go-lang.c (go_language_data): Delete la_value_print_inner
3033 initializer.
3034 (go_language::value_print_inner): New member function.
3035 * language.c (language_defn::value_print_inner): Define new member
3036 function.
3037 (unk_lang_value_print_inner): Delete.
3038 (unknown_language_data): Delete la_value_print_inner initializer.
3039 (unknown_language::value_print_inner): New member function.
3040 (auto_language_data): Delete la_value_print_inner initializer.
3041 (auto_language::value_print_inner): New member function.
3042 * language.h (language_data): Delete la_value_print_inner field.
3043 (language_defn::value_print_inner): Delcare new member function.
3044 * m2-lang.c (m2_language_data): Delete la_value_print_inner
3045 initializer.
3046 (m2_language::value_print_inner): New member function.
3047 * objc-lang.c (objc_language_data): Delete la_value_print_inner
3048 initializer.
3049 * opencl-lang.c (opencl_language_data): Likewise.
3050 * p-lang.c (pascal_language_data): Likewise.
3051 (pascal_language::value_print_inner): New member function.
3052 * rust-lang.c (rust_language_data): Delete la_value_print_inner
3053 initializer.
3054 (rust_language::value_print_inner): New member function.
3055 * valprint.c (do_val_print): Update call to value_print_inner.
3056
3057 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3058
3059 * ada-lang.c (ada_language_data): Delete la_value_print
3060 initializer.
3061 (ada_language::value_print): New member function.
3062 * c-lang.c (c_language_data): Delete la_value_print initializer.
3063 (cplus_language_data): Likewise.
3064 (asm_language_data): Likewise.
3065 (minimal_language_data): Likewise.
3066 * d-lang.c (d_language_data): Likewise.
3067 * f-lang.c (f_language_data): Likewise.
3068 * go-lang.c (go_language_data): Likewise.
3069 * language.c (unk_lang_value_print): Delete.
3070 (language_defn::value_print): Define new member function.
3071 (unknown_language_data): Delete la_value_print initializer.
3072 (unknown_language::value_print): New member function.
3073 (auto_language_data): Delete la_value_print initializer.
3074 (auto_language::value_print): New member function.
3075 * language.h (language_data): Delete la_value_print field.
3076 (language_defn::value_print): Declare new member function.
3077 (LA_VALUE_PRINT): Update call to value_print.
3078 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
3079 * objc-lang.c (objc_language_data): Likewise.
3080 * opencl-lang.c (opencl_language_data): Likewise.
3081 * p-lang.c (pascal_language_data): Likewise.
3082 (pascal_language::value_print): New member function.
3083 * rust-lang.c (rust_language_data): Delete la_value_print
3084 initializer.
3085
3086 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3087
3088 * ada-lang.c (ada_watch_location_expression): Rename to
3089 ada_language::watch_location_expression.
3090 (ada_language_data): Delete la_watch_location_expression
3091 initializer.
3092 (ada_language::watch_location_expression): New member function,
3093 implementation from ada_watch_location_expression.
3094 * breakpoint.c (watch_command_1): Update call to
3095 watch_location_expression.
3096 * c-lang.c (c_watch_location_expression): Rename to
3097 language_defn::watch_location_expression.
3098 (c_language_data): Delete la_watch_location_expression
3099 initializer.
3100 (cplus_language_data): Likewise.
3101 (asm_language_data): Likewise.
3102 (minimal_language_data): Likewise.
3103 * c-lang.h (c_watch_location_expression): Delete declaration.
3104 * d-lang.c (d_language_data): Delete la_watch_location_expression
3105 initializer.
3106 * f-lang.c (f_language_data): Likewise.
3107 * go-lang.c (go_language_data): Likewise.
3108 * language.c (language_defn::watch_location_expression): Member
3109 function implementation from c_watch_location_expression.
3110 (unknown_language_data): Delete la_watch_location_expression
3111 initializer.
3112 (auto_language_data): Likewise.
3113 * language.h (language_data): Delete la_watch_location_expression
3114 field.
3115 (language_defn::watch_location_expression): Declare new member
3116 function.
3117 * m2-lang.c (m2_language_data): Delete
3118 la_watch_location_expression initializer.
3119 * objc-lang.c (objc_language_data): Likewise.
3120 * opencl-lang.c (opencl_language_data): Likewise.
3121 * p-lang.c (pascal_language_data): Likewise.
3122 * rust-lang.c (rust_watch_location_expression): Rename to
3123 rust_language::watch_location_expression.
3124 (rust_language_data): Delete la_watch_location_expression
3125 initializer.
3126 (rust_language::watch_location_expression): New member function,
3127 implementation from rust_watch_location_expression.
3128
3129 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3130
3131 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
3132 ada_language::collect_symbol_completion_matches.
3133 (ada_language_data): Delete la_collect_symbol_completion_matches
3134 initializer.
3135 (ada_language::collect_symbol_completion_matches): New member
3136 function, implementation from
3137 ada_collect_symbol_completion_matches.
3138 * c-lang.c (c_language_data): Delete
3139 la_collect_symbol_completion_matches initializer.
3140 (cplus_language_data): Likewise.
3141 (asm_language_data): Likewise.
3142 (minimal_language_data): Likewise.
3143 * d-lang.c (d_language_data): Likewise.
3144 * f-lang.c (f_collect_symbol_completion_matches): Rename to
3145 f_language::collect_symbol_completion_matches.
3146 (f_language_data): Delete la_collect_symbol_completion_matches
3147 initializer.
3148 (f_language::collect_symbol_completion_matches) New member
3149 function, implementation from f_collect_symbol_completion_matches.
3150 * go-lang.c (go_language_data): Delete
3151 la_collect_symbol_completion_matches initializer.
3152 * language.c (unknown_language_data): Likewise.
3153 (auto_language_data): Likewise.
3154 * language.h (language_data): Delete
3155 la_collect_symbol_completion_matches field.
3156 (language_defn::collect_symbol_completion_matches): New member
3157 function.
3158 * m2-lang.c (m2_language_data): Delete
3159 la_collect_symbol_completion_matches initializer.
3160 * objc-lang.c (objc_language_data): Likewise.
3161 * opencl-lang.c (opencl_language_data): Likewise.
3162 * p-lang.c (pascal_language_data): Likewise.
3163 * rust-lang.c (rust_language_data): Likewise.
3164 * symtab.c (default_collect_symbol_completion_matches): Delete.
3165 (collect_symbol_completion_matches): Update call to
3166 collect_symbol_completion_matches.
3167 (collect_symbol_completion_matches_type): Likewise.
3168 * symtab.h (default_collect_symbol_completion_matches): Delete
3169 declaration.
3170
3171 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3172
3173 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
3174 (ada_language_data): Delete la_word_break_characters initializer.
3175 (ada_language::word_break_characters): New member function.
3176 * c-lang.c (c_language_data): Delete la_word_break_characters
3177 initializer.
3178 (cplus_language_data): Likewise.
3179 (asm_language_data): Likewise.
3180 (minimal_language_data): Likewise.
3181 * completer.c: Update global comment.
3182 (advance_to_expression_complete_word_point): Update call to
3183 word_break_characters.
3184 (complete_files_symbols): Likewise.
3185 (complete_line_internal_1): Likewise.
3186 (default_completer_handle_brkchars): Likewise.
3187 (skip_quoted_chars): Likewise.
3188 * d-lang.c (d_language_data): Delete la_word_break_characters
3189 initializer.
3190 * f-lang.c (f_word_break_characters): Delete.
3191 (f_language_data): Delete la_word_break_characters initializer.
3192 (f_language::word_break_characters): New member function.
3193 * go-lang.c (go_language_data): Delete la_word_break_characters
3194 initializer.
3195 * language.c (unknown_language_data): Likewise.
3196 (auto_language_data): Likewise.
3197 * language.h (default_word_break_characters): Move declaration to
3198 earlier in the file.
3199 (language_data): Delete la_word_break_characters field.
3200 (language_defn::word_break_characters): New member function.
3201 * m2-lang.c (m2_language_data): Delete la_word_break_characters
3202 initializer.
3203 * objc-lang.c (objc_language_data): Likewise.
3204 * opencl-lang.c (opencl_language_data): Likewise.
3205 * p-lang.c (pascal_language_data): Likewise.
3206 * rust-lang.c (rust_language_data): Likewise.
3207
3208 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3209
3210 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
3211 (ada_language_data): Delete la_get_symbol_name_matcher
3212 initializer.
3213 (language_defn::get_symbol_name_matcher_inner): New member
3214 function.
3215 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
3216 initializer.
3217 (cplus_language_data): Likewise.
3218 (cplus_language::get_symbol_name_matcher_inner): New member
3219 function.
3220 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
3221 (minimal_language_data): Likewise.
3222 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
3223 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
3224 initializer.
3225 * dictionary.c (iter_match_first_hashed): Update call to
3226 get_symbol_name_matcher.
3227 (iter_match_next_hashed): Likewise.
3228 (iter_match_next_linear): Likewise.
3229 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
3230 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
3231 initializer.
3232 (f_language::get_symbol_name_matcher_inner): New member function.
3233 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
3234 initializer.
3235 * language.c (default_symbol_name_matcher): Update header comment,
3236 make static.
3237 (language_defn::get_symbol_name_matcher): New definition.
3238 (language_defn::get_symbol_name_matcher_inner): Likewise.
3239 (get_symbol_name_matcher): Delete.
3240 (unknown_language_data): Delete la_get_symbol_name_matcher
3241 initializer.
3242 (auto_language_data): Likewise.
3243 * language.h (language_data): Delete la_get_symbol_name_matcher
3244 field.
3245 (language_defn::get_symbol_name_matcher): New member function.
3246 (language_defn::get_symbol_name_matcher_inner): Likewise.
3247 (default_symbol_name_matcher): Delete declaration.
3248 * linespec.c (find_methods): Update call to
3249 get_symbol_name_matcher.
3250 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
3251 initializer.
3252 * minsyms.c (lookup_minimal_symbol): Update call to
3253 get_symbol_name_matcher.
3254 (iterate_over_minimal_symbols): Likewise.
3255 * objc-lang.c (objc_language_data): Delete
3256 la_get_symbol_name_matcher initializer.
3257 * opencl-lang.c (opencl_language_data): Likewise.
3258 * p-lang.c (pascal_language_data): Likewise.
3259 * psymtab.c (psymbol_name_matches): Update call to
3260 get_symbol_name_matcher.
3261 * rust-lang.c (rust_language_data): Delete
3262 la_get_symbol_name_matcher initializer.
3263 * symtab.c (symbol_matches_search_name): Update call to
3264 get_symbol_name_matcher.
3265 (compare_symbol_name): Likewise.
3266
3267 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3268
3269 * ada-lang.c (ada_language_data): Delete la_compute_program
3270 initializer.
3271 * c-lang.c (c_language_data): Likewise.
3272 (c_language::compute_program): New member function.
3273 (cplus_language_data): Delete la_compute_program initializer.
3274 (cplus_language::compute_program): New member function.
3275 (asm_language_data): Delete la_compute_program initializer.
3276 (minimal_language_data): Likewise.
3277 * c-lang.h (c_compute_program): Update comment.
3278 (cplus_compute_program): Likewise.
3279 * compile/compile-c-support.c (c_compute_program): Likewise.
3280 (cplus_compute_program): Likewise.
3281 * compile/compile.c (compile_to_object): Update call to
3282 la_compute_program.
3283 * d-lang.c (d_language_data): Delete la_compute_program
3284 initializer.
3285 * f-lang.c (f_language_data): Likewise.
3286 * go-lang.c (go_language_data): Likewise.
3287 * language.c (unknown_language_data): Likewise.
3288 (auto_language_data): Likewise.
3289 * language.h (language_data): Delete la_compute_program field.
3290 (language_defn::compute_program): New member function.
3291 * m2-lang.c (m2_language_data): Delete la_compute_program
3292 initializer.
3293 * objc-lang.c (objc_language_data): Likewise.
3294 * opencl-lang.c (opencl_language_data): Likewise.
3295 * p-lang.c (pascal_language_data): Likewise.
3296 * rust-lang.c (rust_language_data): Likewise.
3297
3298 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3299
3300 * ada-lang.c (ada_language_data) Delete
3301 la_class_name_from_physname initializer.
3302 * c-lang.c (c_language_data): Likewise.
3303 (cplus_language_data): Likewise.
3304 (cplus_language::class_name_from_physname): New member function.
3305 (asm_language_data): Delete la_class_name_from_physname
3306 initializer.
3307 (minimal_language_data): Likewise.
3308 * d-lang.c (d_language_data): Likewise.
3309 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
3310 method on language_defn class.
3311 (guess_full_die_structure_name): Likewise.
3312 * f-lang.c (f_language_data): Delete la_class_name_from_physname
3313 initializer.
3314 * go-lang.c (go_language_data): Likewise.
3315 * language.c (language_class_name_from_physname): Delete.
3316 (unk_lang_class_name): Delete.
3317 (unknown_language_data): Delete la_class_name_from_physname
3318 initializer.
3319 (auto_language_data): Likewise.
3320 * language.h (language_data): Delete la_class_name_from_physname
3321 field.
3322 (language_defn::class_name_from_physname): New function.
3323 (language_class_name_from_physname): Delete declaration.
3324 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
3325 initializer.
3326 * objc-lang.c (objc_language_data): Likewise.
3327 * opencl-lang.c (opencl_language_data): Likewise.
3328 * p-lang.c (pascal_language_data): Likewise.
3329 * rust-lang.c (rust_language_data): Likewise.
3330
3331 2020-06-16 Tom Tromey <tom@tromey.com>
3332
3333 * tui/tui-data.h (STATUS_NAME): New macro.
3334 * tui/tui-layout.c (tui_remove_some_windows)
3335 (initialize_known_windows, tui_register_window)
3336 (tui_layout_split::remove_windows, initialize_layouts)
3337 (tui_new_layout_command): Don't use hard-coded window names.
3338
3339 2020-06-16 Tom Tromey <tom@tromey.com>
3340
3341 PR tui/25348:
3342 * tui/tui.c (tui_ensure_readline_initialized): Rename from
3343 tui_initialize_readline. Only run once. Call rl_initialize.
3344 * tui/tui.h (tui_ensure_readline_initialized): Rename from
3345 tui_initialize_readline.
3346 * tui/tui-io.c (tui_setup_io): Call
3347 tui_ensure_readline_initialized.
3348 * tui/tui-interp.c (tui_interp::init): Update.
3349
3350 2020-06-16 Tom Tromey <tom@tromey.com>
3351
3352 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
3353 Also preserve the status window.
3354
3355 2020-06-16 Tom Tromey <tom@tromey.com>
3356
3357 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
3358 where m_window==nullptr.
3359
3360 2020-06-15 Tom Tromey <tromey@adacore.com>
3361
3362 * windows-nat.c (windows_nat::handle_output_debug_string):
3363 Update.
3364 (windows_nat::handle_ms_vc_exception): Update.
3365 * target.h (target_read_string): Change API.
3366 * target.c (target_read_string): Change API.
3367 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
3368 Update.
3369 * solib-frv.c (frv_current_sos): Update.
3370 * solib-dsbt.c (dsbt_current_sos): Update.
3371 * solib-darwin.c (darwin_current_sos): Update.
3372 * linux-thread-db.c (inferior_has_bug): Update.
3373 * expprint.c (print_subexp_standard): Update.
3374 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
3375 (ada_exception_message_1): Update.
3376
3377 2020-06-15 Tom Tromey <tromey@adacore.com>
3378
3379 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
3380
3381 2020-06-15 Tom Tromey <tromey@adacore.com>
3382
3383 * valprint.c (read_string): Update comment.
3384 * target.c (MIN): Remove.
3385 (target_read_string): Rewrite.
3386
3387 2020-06-15 Tom Tromey <tromey@adacore.com>
3388
3389 * corefile.c (read_memory_string): Remove.
3390 * ada-valprint.c (ada_value_print_ptr): Update.
3391 * ada-lang.h (ada_tag_name): Change return type.
3392 * ada-lang.c (type_from_tag): Update.
3393 (ada_tag_name_from_tsd): Change return type. Use
3394 target_read_string.
3395 (ada_tag_name): Likewise.
3396 * gdbcore.h (read_memory_string): Don't declare.
3397
3398 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
3399
3400 * symtab.c (rbreak_command): Ignore Windows drive colon.
3401
3402 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
3403
3404 * NEWS: Mention removed GDBserver host support.
3405
3406 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
3407
3408 * features/riscv/rebuild-csr-xml.sh: Updated.
3409
3410 2020-06-11 Tom Tromey <tom@tromey.com>
3411
3412 PR gdb/18318:
3413 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3414
3415 2020-06-09 Jonny Grant <jg@jguk.org>
3416 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3417
3418 * main.c (captured_main_1): Don't print new line after help.
3419 (print_gdb_help): add mailing list and IRC channel information
3420 to --help. Add new lines between items in the footer. Remove
3421 quotes around bug url.
3422
3423 2020-06-11 Keith Seitz <keiths@redhat.com>
3424
3425 PR gdb/21356
3426 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3427 Resolve typedefs for type length calculations.
3428
3429 2020-06-10 Tom de Vries <tdevries@suse.de>
3430
3431 PR ada/24713
3432 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3433 (write_psymbols): Enable .gdb_index for ada.
3434 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3435 ada.
3436
3437 2020-06-10 Tom de Vries <tdevries@suse.de>
3438
3439 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3440 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3441 namei" instead of "const char *name" argument.
3442 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3443 dw2_symtab_iter_init.
3444
3445 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3446
3447 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3448 to use type::field and field::type instead.
3449
3450 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3451
3452 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3453 to use field::type instead.
3454
3455 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3456
3457 * gdbtypes.h (struct field) <type, set_type>: New methods.
3458 Rename `type` field to...
3459 <m_type>: ... this. Change references throughout to use type or
3460 set_type methods.
3461 (FIELD_TYPE): Use field::type. Change call sites that modify
3462 the field's type to use field::set_type instead.
3463
3464 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3465
3466 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3467 to use type::index_type instead.
3468
3469 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3470
3471 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3472 methods.
3473 (TYPE_INDEX_TYPE): Use type::index_type.
3474 * gdbtypes.c (create_array_type_with_stride): Likewise.
3475
3476 2020-06-07 Tom Tromey <tom@tromey.com>
3477
3478 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3479 parameter.
3480 (generic_value_print): Update.
3481
3482 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3483
3484 Revert commit 982a38f60b0.
3485 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3486
3487 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3488
3489 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3490 avoid use after free.
3491
3492 2020-06-05 Tom de Vries <tdevries@suse.de>
3493
3494 * NEWS: Fix typos.
3495
3496 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
3497
3498 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3499 the per_bfd object.
3500 (dwarf2_read_debug_names): Likewise.
3501 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3502 object when re-using a per_bfd object with an index.
3503
3504 2020-06-03 Tom de Vries <tdevries@suse.de>
3505
3506 PR symtab/26046
3507 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3508 children for C++.
3509 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3510 DW_TAG_subprogram.
3511
3512 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3513
3514 * ada-lang.c (ada_language_data): Delete skip_trampoline
3515 initializer.
3516 * c-lang.c (c_language_data): Likewise.
3517 (cplus_language_data): Likewise.
3518 (cplus_language::skip_trampoline): New member function.
3519 (asm_language_data): Delete skip_trampoline initializer.
3520 (minimal_language_data): Likewise.
3521 * d-lang.c (d_language_data): Likewise.
3522 * f-lang.c (f_language_data): Likewise.
3523 * go-lang.c (go_language_data): Likewise.
3524 * language.c (unk_lang_trampoline): Delete function.
3525 (skip_language_trampoline): Update.
3526 (unknown_language_data): Delete skip_trampoline initializer.
3527 (auto_language_data): Likewise.
3528 * language.h (language_data): Delete skip_trampoline field.
3529 (language_defn::skip_trampoline): New function.
3530 * m2-lang.c (m2_language_data): Delete skip_trampoline
3531 initializer.
3532 * objc-lang.c (objc_skip_trampoline): Delete function, move
3533 implementation to objc_language::skip_trampoline.
3534 (objc_language_data): Delete skip_trampoline initializer.
3535 (objc_language::skip_trampoline): New member function with
3536 implementation from objc_skip_trampoline.
3537 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3538 initializer.
3539 * p-lang.c (pascal_language_data): Likewise.
3540 * rust-lang.c (rust_language_data): Likewise.
3541
3542 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3543
3544 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3545 (ada_language::demangle): New member function.
3546 * c-lang.c (c_language_data): Delete la_demangle initializer.
3547 (cplus_language_data): Delete la_demangle initializer.
3548 (cplus_language::demangle): New member function.
3549 (asm_language_data): Delete la_demangle initializer.
3550 (minimal_language_data): Delete la_demangle initializer.
3551 * d-lang.c (d_language_data): Delete la_demangle initializer.
3552 (d_language::demangle): New member function.
3553 * f-lang.c (f_language_data): Delete la_demangle initializer.
3554 (f_language::demangle): New member function.
3555 * go-lang.c (go_language_data): Delete la_demangle initializer.
3556 (go_language::demangle): New member function.
3557 * language.c (language_demangle): Update.
3558 (unk_lang_demangle): Delete.
3559 (unknown_language_data): Delete la_demangle initializer.
3560 (unknown_language::demangle): New member function.
3561 (auto_language_data): Delete la_demangle initializer.
3562 (auto_language::demangle): New member function.
3563 * language.h (language_data): Delete la_demangle field.
3564 (language_defn::demangle): New function.
3565 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3566 * objc-lang.c (objc_language_data): Delete la_demangle
3567 initializer.
3568 (objc_language::demangle): New member function.
3569 * opencl-lang.c (opencl_language_data): Delete la_demangle
3570 initializer.
3571 * p-lang.c (pascal_language_data): Likewise.
3572 * rust-lang.c (rust_language_data): Likewise.
3573 (rust_language::demangle): New member function.
3574
3575 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3576
3577 * ada-lang.c (ada_language_data): Delete la_print_type
3578 initializer.
3579 (ada_language::print_type): New member function.
3580 * c-lang.c (c_language_data): Delete la_print_type initializer.
3581 (c_language::print_type): New member function.
3582 (cplus_language_data): Delete la_print_type initializer.
3583 (cplus_language::print_type): New member function.
3584 (asm_language_data): Delete la_print_type initializer.
3585 (asm_language::print_type): New member function.
3586 (minimal_language_data): Delete la_print_type initializer.
3587 (minimal_language::print_type): New member function.
3588 * d-lang.c (d_language_data): Delete la_print_type initializer.
3589 (d_language::print_type): New member function.
3590 * f-lang.c (f_language_data): Delete la_print_type initializer.
3591 (f_language::print_type): New member function.
3592 * go-lang.c (go_language_data): Delete la_print_type initializer.
3593 (go_language::print_type): New member function.
3594 * language.c (unk_lang_print_type): Delete.
3595 (unknown_language_data): Delete la_print_type initializer.
3596 (unknown_language::print_type): New member function.
3597 (auto_language_data): Delete la_print_type initializer.
3598 (auto_language::print_type): New member function.
3599 * language.h (language_data): Delete la_print_type field.
3600 (language_defn::print_type): New function.
3601 (LA_PRINT_TYPE): Update.
3602 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3603 (m2_language::print_type): New member function.
3604 * objc-lang.c (objc_language_data): Delete la_print_type
3605 initializer.
3606 (objc_language::print_type): New member function.
3607 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3608 to opencl_language::print_type.
3609 (opencl_language_data): Delete la_print_type initializer.
3610 (opencl_language::print_type): New member function, implementation
3611 from opencl_print_type.
3612 * p-lang.c (pascal_language_data): Delete la_print_type
3613 initializer.
3614 (pascal_language::print_type): New member function.
3615 * rust-lang.c (rust_print_type): Delete, implementation moved to
3616 rust_language::print_type.
3617 (rust_language_data): Delete la_print_type initializer.
3618 (rust_language::print_type): New member function, implementation
3619 from rust_print_type.
3620
3621 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3622
3623 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3624 implementation moves to...
3625 (ada_language::sniff_from_mangled_name): ...here. Update return
3626 type.
3627 (ada_language_data): Delete la_sniff_from_mangled_name
3628 initializer.
3629 * c-lang.c (c_language_data): Likewise.
3630 (cplus_language_data): Likewise.
3631 (cplus_language::sniff_from_mangled_name): New member function,
3632 implementation taken from gdb_sniff_from_mangled_name.
3633 (asm_language_data): Delete la_sniff_from_mangled_name
3634 initializer.
3635 (minimal_language_data): Likewise.
3636 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3637 implementation moves to cplus_language::sniff_from_mangled_name.
3638 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3639 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3640 moves to...
3641 (d_language::sniff_from_mangled_name): ...here.
3642 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3643 * f-lang.c (f_language_data): Likewise.
3644 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3645 moves to...
3646 (go_language::sniff_from_mangled_name): ...here.
3647 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3648 * language.c (language_sniff_from_mangled_name): Delete.
3649 (unknown_language_data): Delete la_sniff_from_mangled_name
3650 initializer.
3651 (auto_language_data): Likewise.
3652 * language.h (language_data): Delete la_sniff_from_mangled_name
3653 field.
3654 (language_defn::sniff_from_mangled_name): New function.
3655 (language_sniff_from_mangled_name): Delete declaration.
3656 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3657 field.
3658 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3659 implementation moves to...
3660 (objc_language::sniff_from_mangled_name): ...here.
3661 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3662 * opencl-lang.c (opencl_language_data): Likewise.
3663 * p-lang.c (pascal_language_data): Likewise.
3664 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3665 implementation moves to...
3666 (rust_language::sniff_from_mangled_name): ...here.
3667 (rust_language_data): Delete la_sniff_from_mangled_name
3668 initializer.
3669 * symtab.c (symbol_find_demangled_name): Call
3670 sniff_from_mangled_name member function.
3671
3672 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3673
3674 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3675 initializer.
3676 * c-lang.c (c_language_data): Likewise.
3677 (cplus_language_data): Likewise.
3678 (cplus_language::search_name_hash): New member function.
3679 (asm_language_data): Delete la_search_name_hash initializer.
3680 (minimal_language_data): Likewise.
3681 * d-lang.c (d_language_data): Likewise.
3682 * dictionary.c (default_search_name_hash): Rename to...
3683 (language_defn::search_name_hash): ...this.
3684 * f-lang.c (f_language_data): Likewise.
3685 (f_language::search_name_hash): New member function.
3686 * go-lang.c (go_language_data): Delete la_search_name_hash
3687 initializer.
3688 * language.c (unknown_language_data): Likewise.
3689 (auto_language_data): Likewise.
3690 * language.h (struct language_data): Delete la_search_name_hash
3691 field.
3692 (language_defn::search_name_hash): Declare new member function.
3693 (default_search_name_hash): Delete declaration.
3694 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3695 initializer.
3696 * objc-lang.c (objc_language_data): Likewise.
3697 * opencl-lang.c (opencl_language_data): Likewise.
3698 * p-lang.c (pascal_language_data): Likewise.
3699 * rust-lang.c (rust_language_data): Likewise.
3700 * symtab.c (search_name_hash): Update call.
3701
3702 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3703
3704 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3705 initializer.
3706 * c-lang.c (class compile_instance): Declare.
3707 (c_language_data): Delete la_get_compile_instance initializer.
3708 (c_language::get_compile_instance): New member function.
3709 (cplus_language_data): Delete la_get_compile_instance initializer.
3710 (cplus_language::get_compile_instance): New member function.
3711 (asm_language_data): Delete la_get_compile_instance initializer.
3712 (minimal_language_data): Likewise.
3713 * c-lang.h (c_get_compile_context): Update comment.
3714 (cplus_get_compile_context): Update comment.
3715 * compile/compile.c (compile_to_object): Update calls, don't rely
3716 on function pointer being NULL.
3717 * d-lang.c (d_language_data): Delete la_get_compile_instance
3718 initializer.
3719 * f-lang.c (f_language_data): Likewise.
3720 * go-lang.c (go_language_data): Likewise.
3721 * language.c (unknown_language_data): Likewise.
3722 (auto_language_data): Likewise.
3723 * language.h (language_data): Delete la_get_compile_instance field.
3724 (language_defn::get_compile_instance): New member function.
3725 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3726 initializer.
3727 * objc-lang.c (objc_language_data): Likewise.
3728 * opencl-lang.c (opencl_language_data): Likewise.
3729 * p-lang.c (pascal_language_data): Likewise.
3730 * rust-lang.c (rust_language_data): Likewise.
3731
3732 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3733
3734 * ada-lang.c (ada_add_all_symbols): Update comment.
3735 (ada_iterate_over_symbols): Delete, move implementation to...
3736 (ada_language::iterate_over_symbols): ...here, a new member
3737 function, rewrite to use range based for loop.
3738 (ada_language_data): Delete la_iterate_over_symbols initializer.
3739 * c-lang.c (c_language_data): Likewise.
3740 (cplus_language_data): Likewise.
3741 (asm_language_data): Likewise.
3742 (minimal_language_data): Likewise.
3743 * d-lang.c (d_language_data): Likewise.
3744 * f-lang.c (f_language_data): Likewise.
3745 * go-lang.c (go_language_data): Likewise.
3746 * language.c (unknown_language_data): Likewise.
3747 (auto_language_data): Likewise.
3748 * language.h (language_data): Delete la_iterate_over_symbols field.
3749 (language_defn::iterate_over_symbols): New member function.
3750 (LA_ITERATE_OVER_SYMBOLS): Update.
3751 * linespec.c (iterate_over_all_matching_symtabs): Update.
3752 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3753 initializer.
3754 * objc-lang.c (objc_language_data): Likewise.
3755 * opencl-lang.c (opencl_language_data): Likewise.
3756 * p-lang.c (pascal_language_data): Likewise.
3757 * rust-lang.c (rust_language_data): Likewise.
3758
3759 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3760
3761 * ada-lang.c (ada_language_data): Delete
3762 la_lookup_transparent_type initializer.
3763 * c-lang.c (c_language_data): Likewise.
3764 (cplus_language_data): Likewise.
3765 (cplus_language::lookup_transparent_type): New member function.
3766 (asm_language_data): Delete la_lookup_transparent_type
3767 initializer.
3768 (minimal_language_data): Likewise.
3769 * d-lang.c (d_language_data): Likewise.
3770 * f-lang.c (f_language_data): Likewise.
3771 * go-lang.c (go_language_data): Likewise.
3772 * language.c (unknown_language_data): Likewise.
3773 (auto_language_data): Likewise.
3774 * language.h (struct language_data): Delete
3775 la_lookup_transparent_type field.
3776 (language_defn::lookup_transparent_type): New member function.
3777 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3778 initializer.
3779 * objc-lang.c (objc_language_data): Likewise.
3780 * opencl-lang.c (opencl_language_data): Likewise.
3781 * p-lang.c (pascal_language_data): Likewise.
3782 * rust-lang.c (rust_language_data): Likewise.
3783 * symtab.c (symbol_matches_domain): Update call.
3784
3785 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3786
3787 * ada-lang.c (ada_language_arch_info): Delete function, move
3788 implementation to...
3789 (ada_language::language_arch_info): ...here, a new member
3790 function.
3791 (ada_language_data): Delete la_language_arch_info.
3792 * c-lang.c (c_language_data): Likewise.
3793 (c_language::language_arch_info): New member function.
3794 (cplus_language_arch_info): Delete function, move
3795 implementation to...
3796 (cplus_language::language_arch_info): ...here, a new member
3797 function.
3798 (cplus_language_data): Delete la_language_arch_info.
3799 (asm_language_data): Likewise.
3800 (asm_language::language_arch_info): New member function.
3801 (minimal_language_data): Delete la_language_arch_info.
3802 (minimal_language::language_arch_info): New member function.
3803 * d-lang.c (d_language_arch_info): Delete function, move
3804 implementation to...
3805 (d_language::language_arch_info): ...here, a new member
3806 function.
3807 (d_language_data): Delete la_language_arch_info.
3808 * f-lang.c (f_language_arch_info): Delete function, move
3809 implementation to...
3810 (f_language::language_arch_info): ...here, a new member
3811 function.
3812 (f_language_data): Delete la_language_arch_info.
3813 * go-lang.c (go_language_arch_info): Delete function, move
3814 implementation to...
3815 (go_language::language_arch_info): ...here, a new member
3816 function.
3817 (go_language_data): Delete la_language_arch_info.
3818 * language.c (unknown_language_data): Likewise.
3819 (unknown_language::language_arch_info): New member function.
3820 (auto_language_data): Delete la_language_arch_info.
3821 (auto_language::language_arch_info): New member function.
3822 (language_gdbarch_post_init): Update call to
3823 la_language_arch_info.
3824 * language.h (language_data): Delete la_language_arch_info
3825 function pointer.
3826 (language_defn::language_arch_info): New function.
3827 * m2-lang.c (m2_language_arch_info): Delete function, move
3828 implementation to...
3829 (m2_language::language_arch_info): ...here, a new member
3830 function.
3831 (m2_language_data): Delete la_language_arch_info.
3832 * objc-lang.c (objc_language_arch_info): Delete function, move
3833 implementation to...
3834 (objc_language::language_arch_info): ...here, a new member
3835 function.
3836 (objc_language_data): Delete la_language_arch_info.
3837 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3838 implementation to...
3839 (opencl_language::language_arch_info): ...here, a new member
3840 function.
3841 (opencl_language_data): Delete la_language_arch_info.
3842 * p-lang.c (pascal_language_arch_info): Delete function, move
3843 implementation to...
3844 (pascal_language::language_arch_info): ...here, a new member
3845 function.
3846 (pascal_language_data): Delete la_language_arch_info.
3847 * rust-lang.c (rust_language_arch_info): Delete function, move
3848 implementation to...
3849 (rust_language::language_arch_info): ...here, a new member
3850 function.
3851 (rust_language_data): Delete la_language_arch_info.
3852
3853 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3854
3855 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3856 initializer.
3857 * c-lang.c (c_language_data): Likewise.
3858 (cplus_language_data): Likewise.
3859 (cplus_language::pass_by_reference_info): New method.
3860 (asm_language_data): Delete la_pass_by_reference initializer.
3861 (minimal_language_data): Likewise.
3862 * cp-abi.c (cp_pass_by_reference): Remove use of
3863 default_pass_by_reference.
3864 * d-lang.c (d_language_data): Likewise.
3865 * f-lang.c (f_language_data): Likewise.
3866 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3867 default_pass_by_reference.
3868 * go-lang.c (go_language_data): Likewise.
3869 * language.c (language_pass_by_reference): Update.
3870 (default_pass_by_reference): Delete.
3871 (unknown_language_data): Delete la_pass_by_reference
3872 initializer.
3873 (auto_language_data): Likewise.
3874 * language.h (struct language_data): Delete la_pass_by_reference
3875 field.
3876 (language_defn::pass_by_reference_info): New member function.
3877 (default_pass_by_reference): Delete declaration.
3878 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3879 initializer.
3880 * objc-lang.c (objc_language_data): Likewise.
3881 * opencl-lang.c (opencl_language_data): Likewise.
3882 * p-lang.c (pascal_language_data): Likewise.
3883 * rust-lang.c (rust_language_data): Likewise.
3884
3885 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3886
3887 * ada-lang.c (ada_read_var_value): Delete function, move
3888 implementation to...
3889 (ada_language::read_var_value): ...here.
3890 (ada_language_data): Delete la_read_var_value initializer.
3891 * c-lang.c (c_language_data): Likewise.
3892 (cplus_language_data): Likewise.
3893 (minimal_language_data): Likewise.
3894 * d-lang.c (d_language_data): Likewise.
3895 * f-lang.c (f_language_data): Likewise.
3896 * findvar.c (default_read_var_value): Rename to...
3897 (language_defn::read_var_value): ...this.
3898 * findvar.c (read_var_value): Update header comment, and change to
3899 call member function instead of function pointer.
3900 * go-lang.c (go_language_data): Likewise.
3901 * language.c (unknown_language_data): Delete la_read_var_value
3902 initializer.
3903 (auto_language_data): Likewise.
3904 * language.h (struct language_data): Delete la_read_var_value
3905 field.
3906 (language_defn::read_var_value): New member function.
3907 (default_read_var_value): Delete declaration.
3908 * m2-lang.c (m2_language_data): Delete la_read_var_value
3909 initializer.
3910 * objc-lang.c (objc_language_data): Likewise.
3911 * opencl-lang.c (opencl_language_data): Likewise.
3912 * p-lang.c (pascal_language_data): Likewise.
3913 * rust-lang.c (rust_language_data): Likewise.
3914 * value.h (default_read_var_value): Delete declaration.
3915
3916 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3917
3918 * ada-lang.c (ada_print_array_index): Delete function, move
3919 implementation to...
3920 (ada_language::print_array_index): ...here.
3921 (ada_language_data): Delete la_print_array_index initializer.
3922 * c-lang.c (c_language_data): Likewise.
3923 (cplus_language_data): Likewise.
3924 (minimal_language_data): Likewise.
3925 * d-lang.c (d_language_data): Likewise.
3926 * f-lang.c (f_language_data): Likewise.
3927 * go-lang.c (go_language_data): Likewise.
3928 * language.c (default_print_array_index): Delete function, move
3929 implementation to...
3930 (language_defn::print_array_index): ...here.
3931 (unknown_language_data): Delete la_print_array_index initializer.
3932 (auto_language_data): Likewise.
3933 * language.h (struct language_data): Delete la_print_array_index
3934 field.
3935 (language_defn::print_array_index): New member function.
3936 (LA_PRINT_ARRAY_INDEX): Update.
3937 (default_print_array_index): Delete declaration.
3938 * m2-lang.c (m2_language_data): Delete la_print_array_index
3939 initializer.
3940 * objc-lang.c (objc_language_data): Likewise.
3941 * opencl-lang.c (opencl_language_data): Likewise.
3942 * p-lang.c (pascal_language_data): Likewise.
3943 * rust-lang.c (rust_language_data): Likewise.
3944
3945 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3946
3947 * gdb/ada-lang.c (ada_language_defn): Convert to...
3948 (ada_language_data): ...this.
3949 (class ada_language): New class.
3950 (ada_language_defn): New static global.
3951 * gdb/c-lang.c (c_language_defn): Convert to...
3952 (c_language_data): ...this.
3953 (class c_language): New class.
3954 (c_language_defn): New static global.
3955 (cplus_language_defn): Convert to...
3956 (cplus_language_data): ...this.
3957 (class cplus_language): New class.
3958 (cplus_language_defn): New static global.
3959 (asm_language_defn): Convert to...
3960 (asm_language_data): ...this.
3961 (class asm_language): New class.
3962 (asm_language_defn): New static global.
3963 (minimal_language_defn): Convert to...
3964 (minimal_language_data): ...this.
3965 (class minimal_language): New class.
3966 (minimal_language_defn): New static global.
3967 * gdb/d-lang.c (d_language_defn): Convert to...
3968 (d_language_data): ...this.
3969 (class d_language): New class.
3970 (d_language_defn): New static global.
3971 * gdb/f-lang.c (f_language_defn): Convert to...
3972 (f_language_data): ...this.
3973 (class f_language): New class.
3974 (f_language_defn): New static global.
3975 * gdb/go-lang.c (go_language_defn): Convert to...
3976 (go_language_data): ...this.
3977 (class go_language): New class.
3978 (go_language_defn): New static global.
3979 * gdb/language.c (unknown_language_defn): Remove declaration.
3980 (current_language): Initialize to nullptr, real initialization is
3981 moved to _initialize_language.
3982 (languages): Delete global.
3983 (language_defn::languages): Define.
3984 (set_language_command): Use language_defn::languages.
3985 (set_language): Likewise.
3986 (range_error): Likewise.
3987 (language_enum): Likewise.
3988 (language_def): Likewise.
3989 (add_set_language_command): Use language_def::languages for the
3990 language list, and language_def to lookup language pointers.
3991 (skip_language_trampoline): Use language_defn::languages.
3992 (unknown_language_defn): Convert to...
3993 (unknown_language_data): ...this.
3994 (class unknown_language): New class.
3995 (unknown_language_defn): New static global.
3996 (auto_language_defn): Convert to...
3997 (auto_language_data): ...this.
3998 (class auto_language): New class.
3999 (auto_language_defn): New static global.
4000 (language_gdbarch_post_init): Use language_defn::languages.
4001 (_initialize_language): Initialize current_language.
4002 * gdb/language.h (struct language_defn): Rename to...
4003 (struct language_data): ...this.
4004 (struct language_defn): New.
4005 (auto_language_defn): Delete.
4006 (unknown_language_defn): Delete.
4007 (minimal_language_defn): Delete.
4008 (ada_language_defn): Delete.
4009 (asm_language_defn): Delete.
4010 (c_language_defn): Delete.
4011 (cplus_language_defn): Delete.
4012 (d_language_defn): Delete.
4013 (f_language_defn): Delete.
4014 (go_language_defn): Delete.
4015 (m2_language_defn): Delete.
4016 (objc_language_defn): Delete.
4017 (opencl_language_defn): Delete.
4018 (pascal_language_defn): Delete.
4019 (rust_language_defn): Delete.
4020 * gdb/m2-lang.c (m2_language_defn): Convert to...
4021 (m2_language_data): ...this.
4022 (class m2_language): New class.
4023 (m2_language_defn): New static global.
4024 * gdb/objc-lang.c (objc_language_defn): Convert to...
4025 (objc_language_data): ...this.
4026 (class objc_language): New class.
4027 (objc_language_defn): New static global.
4028 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
4029 (opencl_language_data): ...this.
4030 (class opencl_language): New class.
4031 (opencl_language_defn): New static global.
4032 * gdb/p-lang.c (pascal_language_defn): Convert to...
4033 (pascal_language_data): ...this.
4034 (class pascal_language): New class.
4035 (pascal_language_defn): New static global.
4036 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
4037 language pointer, update comment format.
4038 * gdb/rust-lang.c (rust_language_defn): Convert to...
4039 (rust_language_data): ...this.
4040 (class rust_language): New class.
4041 (rust_language_defn): New static global.
4042
4043 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
4044
4045 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
4046 member variable.
4047 <m_stmt_at_address>: New member variable.
4048 (lnp_state_machine::record_line): Don't record some lines, update
4049 tracking of is_stmt at the same address.
4050 (lnp_state_machine::lnp_state_machine): Initialise new member
4051 variables.
4052
4053 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4054
4055 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
4056 "-include gnu-nat-mig.h".
4057 * gnu-nat-mig.h: New file.
4058 * gnu-nat.c: Include "gnu-nat-mig.h".
4059 (exc_server, msg_reply_server, notify_server,
4060 process_reply_server): Remove declarations.
4061
4062 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4063
4064 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
4065 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
4066 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
4067 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
4068 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
4069 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
4070 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
4071 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
4072 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
4073 to gnu_nat_target class.
4074 * gnu-nat.c: Likewise.
4075 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
4076 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
4077 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
4078 object.
4079 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
4080 instead of `gnu_target'.
4081
4082 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4083
4084 * i386-gnu-tdep.c: Include "gdbcore.h"
4085 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
4086 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
4087 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
4088 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
4089 i386_gnu_sigcontext_addr): New functions
4090 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
4091 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
4092 tdep.
4093
4094 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4095
4096 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
4097 before fork_inferior call. Avoid calling it if target_is_pushed returns
4098 true.
4099
4100 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4101
4102 * gnu-nat.h (gnu_target): New variable declaration.
4103 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
4104 gnu_target.
4105 * gnu-nat.c (gnu_target): New variable.
4106 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
4107 add_thread_silent, and add_thread calls.
4108 (gnu_nat_target::create_inferior): Pass gnu_target to
4109 add_thread_silent, thread_change_ptid call.
4110 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
4111 call.
4112
4113 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4114
4115 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
4116 (gnu_nat_target::find_memory_regions): Remove unused
4117 `old_address' variable.
4118
4119 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4120
4121 * gnu-nat.c: Include "gdbarch.h".
4122
4123 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4124
4125 * reply_mig_hack.awk (Error return): Cast function through
4126 void *, to bypass compiler function call check.
4127
4128 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4129
4130 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
4131 $(srcdir)/reply_mig_hack.awk.
4132
4133 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4134
4135 * gnu-nat.h (gnu_debug_flag): Set type to bool.
4136
4137 2020-05-30 Jonny Grant <jg@jguk.org>
4138
4139 * configure.ac (ACX_BUGURL): change bug URL to https.
4140
4141 2020-05-30 Pedro Alves <palves@redhat.com>
4142
4143 * cp-support.c (replace_typedefs_template): New.
4144 (replace_typedefs_qualified_name): Handle
4145 DEMANGLE_COMPONENT_TEMPLATE.
4146
4147 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
4148
4149 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
4150 dwarf2/index-cache.h, dwarf2/index-write.c,
4151 dwarf2/index-write.h, dwarf2/line-header.c,
4152 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
4153 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
4154 variables and fields from `dwarf2_per_objfile` to just
4155 `per_objfile` throughout.
4156
4157 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
4158
4159 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4160 <push_dwarf_reg_entry_value>: Add comment.
4161
4162 2020-05-28 Kevin Buettner <kevinb@redhat.com>
4163 Keith Seitz <keiths@redhat.com>
4164
4165 * python/python.c (do_start_initialization): Call PyEval_SaveThread
4166 instead of PyEval_ReleaseLock.
4167 (class gdbpy_gil): Move to earlier in file.
4168 (finalize_python): Set gdb_python_initialized.
4169 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
4170 when not initialized.
4171
4172 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
4173
4174 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4175 <push_dwarf_reg_entry_value>: Remove assert. Override
4176 per_objfile with caller_per_objfile.
4177
4178 2020-05-28 Tom de Vries <tdevries@suse.de>
4179
4180 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
4181 PR gold/15646 workaround to symbol kind "type".
4182
4183 2020-05-27 Tom Tromey <tromey@adacore.com>
4184
4185 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
4186
4187 2020-05-27 Tom Tromey <tromey@adacore.com>
4188
4189 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
4190 Use htab_find_with_hash.
4191 <add_abbrev>: Remove "abbrev_number" parameter.
4192 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
4193 "abbrev_number" parameter. Use htab_find_slot_with_hash.
4194 (hash_abbrev): Add comment.
4195 (abbrev_table::lookup_abbrev): Move to header file.
4196 (abbrev_table::read): Update.
4197
4198 2020-05-27 Tom Tromey <tromey@adacore.com>
4199
4200 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
4201 method.
4202 <canonical_name>: New member.
4203 <raw_name>: Rename from "name".
4204 (partial_die_info): Initialize canonical_name.
4205 (scan_partial_symbols): Check raw_name.
4206 (partial_die_parent_scope, partial_die_full_name)
4207 (add_partial_symbol, add_partial_subprogram)
4208 (add_partial_enumeration, load_partial_dies): Use "name" method.
4209 (partial_die_info::name): New method.
4210 (partial_die_info::read, guess_partial_die_structure_name)
4211 (partial_die_info::fixup): Update.
4212
4213 2020-05-27 Tom Tromey <tromey@adacore.com>
4214
4215 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
4216 <get_ref_die_offset>: Inline.
4217 <get_ref_die_offset_complaint>: New method.
4218 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
4219 (attribute::get_ref_die_offset_complaint): Rename from
4220 get_ref_die_offset. Just issue complaint.
4221
4222 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4223
4224 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
4225
4226 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4227
4228 * exec.c (exec_file_attach): Use errno value of first openp failure.
4229
4230 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4231
4232 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
4233 Don't close thread handle.
4234
4235 2020-05-27 Tom Tromey <tom@tromey.com>
4236 Simon Marchi <simon.marchi@efficios.com>
4237
4238 * objfiles.h (struct objfile) <partial_symtabs>: Now a
4239 shared_ptr.
4240 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
4241 member.
4242 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
4243 dwarf2_per_bfd_objfile_data_key>: New globals.
4244 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
4245 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
4246 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
4247 shared.
4248 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
4249 short-circuit when sharing.
4250 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
4251 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
4252
4253 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4254
4255 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
4256 to...
4257 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
4258 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
4259
4260 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4261
4262 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
4263 build_name_components, find_name_components_bounds>:
4264 Add per_objfile parameter.
4265 (struct mapped_index) <symbol_name_at>: Likewise.
4266 (struct mapped_debug_names): Remove constructor.
4267 <dwarf2_per_objfile>: Remove field.
4268 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
4269 (mapped_index_base::find_name_components_bounds,
4270 mapped_index_base::build_name_components,
4271 dw2_expand_symtabs_matching_symbol): Likewise.
4272 (class mock_mapped_index) <symbol_name_at>: Likewise.
4273 (check_match): Likewise.
4274 (check_find_bounds_finds): Likewise.
4275 (test_mapped_index_find_name_component_bounds): Update.
4276 (CHECK_MATCH): Update.
4277 (dw2_expand_symtabs_matching): Update.
4278 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
4279 per_objfile parameter.
4280 <find_vec_in_debug_names>: Likewise.
4281 <m_per_objfile>: New field.
4282 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
4283 parameter.
4284 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
4285 (dw2_debug_names_iterator::next): Update.
4286 (dw2_debug_names_lookup_symbol): Update.
4287 (dw2_debug_names_expand_symtabs_for_function): Update.
4288 (dw2_debug_names_map_matching_symbols): Update.
4289 (dw2_debug_names_expand_symtabs_matching): Update.
4290 (dwarf2_read_debug_names): Update.
4291
4292 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4293
4294 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
4295 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
4296 move to dwarf2_per_objfile.
4297 <read_in_chain>: Remove.
4298 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
4299 remove_all_cus, age_comp_units>: New methods.
4300 <m_dwarf2_cus>: New member.
4301 (struct dwarf2_per_cu_data) <cu>: Remove.
4302 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
4303 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
4304 moved to methods of dwarf2_per_objfile.
4305 (dwarf2_clear_marks): Remove.
4306 (dwarf2_queue_item::~dwarf2_queue_item): Update.
4307 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
4308 (dwarf2_per_bfd::free_cached_comp_units): Remove.
4309 (dwarf2_per_objfile::remove_all_cus): New.
4310 (class free_cached_comp_units) <~free_cached_comp_units>:
4311 Update.
4312 (load_cu): Update.
4313 (dw2_do_instantiate_symtab): Adjust.
4314 (fill_in_sig_entry_from_dwo_entry): Adjust.
4315 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4316 (cutu_reader::cutu_reader): Likewise.
4317 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
4318 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
4319 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
4320 and dwarf2_per_objfile::age_comp_units.
4321 (load_partial_comp_unit): Update.
4322 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
4323 (process_queue): Likewise.
4324 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
4325 backlink.
4326 (dwarf2_read_addr_index): Likewise.
4327 (follow_die_offset): Likewise.
4328 (dwarf2_fetch_die_loc_sect_off): Likewise.
4329 (dwarf2_fetch_constant_bytes): Likewise.
4330 (dwarf2_fetch_die_type_sect_off): Likewise.
4331 (follow_die_sig_1): Likewise.
4332 (load_full_type_unit): Likewise.
4333 (read_signatured_type): Likewise.
4334 (dwarf2_cu::dwarf2_cu): Don't set cu field.
4335 (dwarf2_cu::~dwarf2_cu): Remove.
4336 (dwarf2_per_objfile::get_cu): New.
4337 (dwarf2_per_objfile::set_cu): New.
4338 (age_cached_comp_units): Rename to...
4339 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
4340 to std::unordered_map.
4341 (free_one_cached_comp_unit): Rename to...
4342 (dwarf2_per_objfile::remove_cu): ... this. Adjust
4343 to std::unordered_map.
4344 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
4345 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
4346 a dwarf2_per_objfile in data.
4347 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
4348 (dwarf2_clear_marks): Remove.
4349
4350 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4351
4352 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
4353 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
4354 (init_tu_and_read_dwo_dies): Likewise.
4355 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
4356 (cutu_reader::cutu_reader): Likewise.
4357 (load_partial_comp_unit): Likewise.
4358 (process_psymtab_comp_unit): Update.
4359 (build_type_psymtabs_1): Update.
4360 (process_skeletonless_type_unit): Update.
4361 (load_full_comp_unit): Update.
4362 (find_partial_die): Update.
4363 (dwarf2_read_addr_index): Update.
4364 (read_signatured_type): Update.
4365
4366 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4367
4368 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
4369 m_header_read_in>: New fields.
4370 <get_header>: New method.
4371 * dwarf2/read.c (per_cu_header_read_in): Remove.
4372 (dwarf2_per_cu_data::get_header): New.
4373 (dwarf2_per_cu_data::addr_size): Update.
4374 (dwarf2_per_cu_data::offset_size): Update.
4375 (dwarf2_per_cu_data::ref_addr_size): Update.
4376
4377 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4378
4379 * dwarf2/read.c (load_cu): Return dwarf2_cu.
4380 (dw2_do_instantiate_symtab): Update.
4381 (queue_and_load_all_dwo_tus): Change parameter from
4382 dwarf2_per_cu_data to dwarf2_cu.
4383 (dwarf2_fetch_die_loc_sect_off): Update.
4384 (dwarf2_fetch_constant_bytes): Update.
4385 (dwarf2_fetch_die_type_sect_off): Update.
4386
4387 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4388
4389 * dwarf2/read.c (process_full_comp_unit,
4390 process_full_type_unit): Remove per_cu, per_objfile paramters.
4391 Add dwarf2_cu parameter.
4392 (process_queue): Update.
4393
4394 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4395
4396 * dwarf2/read.c (create_cu_from_index_list): Replace
4397 dwarf2_per_objfile parameter with dwarf2_per_bfd.
4398 (create_cus_from_index_list): Likewise.
4399 (create_cus_from_index): Likewise.
4400 (create_signatured_type_table_from_index): Likewise.
4401 (create_cus_from_debug_names_list): Likewise.
4402 (create_cus_from_debug_names): Likewise.
4403 (dwarf2_read_gdb_index): Update.
4404 (dwarf2_read_debug_names): Update.
4405
4406 2020-05-27 Tom Tromey <tom@tromey.com>
4407 Simon Marchi <simon.marchi@efficios.com>
4408
4409 * dwarf2/read.h (struct dwarf2_per_objfile)
4410 <get_type_for_signatured_type, set_type_for_signatured_type>:
4411 New methods.
4412 <m_type_map>: New member.
4413 (struct signatured_type) <type>: Remove.
4414 * dwarf2/read.c
4415 (dwarf2_per_objfile::get_type_for_signatured_type,
4416 dwarf2_per_objfile::set_type_for_signatured_type): New.
4417 (get_signatured_type): Use new methods.
4418
4419 2020-05-27 Tom Tromey <tom@tromey.com>
4420 Simon Marchi <simon.marchi@efficios.com>
4421
4422 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4423 (struct dwarf2_per_objfile) <type_units>: New member.
4424 <get_type_unit_group_unshareable>: New method.
4425 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4426 num_symtabs, symtabs>: Remove; move to
4427 type_unit_group_unshareable.
4428 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4429 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4430 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4431
4432 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4433
4434 * dwarf2/read.h (struct dwarf2_per_cu_data):
4435 <dwarf2_per_objfile>: Remove.
4436 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4437 dwarf2_per_objfile.
4438 (create_signatured_type_table_from_index): Likewise.
4439 (create_signatured_type_table_from_debug_names): Likewise.
4440 (create_debug_type_hash_table): Likewise.
4441 (fill_in_sig_entry_from_dwo_entry): Likewise.
4442 (create_type_unit_group): Likewise.
4443 (read_comp_units_from_section): Likewise.
4444 (create_cus_hash_table): Likewise.
4445
4446 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4447
4448 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4449 dwarf2_per_cu_data::dwarf2_per_objfile.
4450 (compute_compunit_symtab_includes): Likewise.
4451 (dwarf2_cu::start_symtab): Likewise.
4452
4453 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4454
4455 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4456 parameter.
4457 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4458 (read_namespace_alias): Update.
4459 (lookup_die_type): Update.
4460 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4461 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4462 Update.
4463 (disassemble_dwarf_expression): Update.
4464
4465 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4466
4467 * dwarf2/read.h (struct dwarf2_queue_item): Add
4468 dwarf2_per_objfile parameter, assign new parameter.
4469 <per_objfile>: New field.
4470 * dwarf2/read.c (free_one_cached_comp_unit): Add
4471 dwarf2_per_objfile parameter.
4472 (queue_comp_unit): Likewise.
4473 (dw2_do_instantiate_symtab): Update.
4474 (process_psymtab_comp_unit): Update.
4475 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4476 (process_imported_unit_die): Update.
4477 (queue_and_load_dwo_tu): Update.
4478 (follow_die_offset): Update.
4479 (follow_die_sig_1): Update.
4480
4481 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4482
4483 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4484 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4485 (read_call_site_scope): Assign per_objfile.
4486 (dwarf2_per_cu_data::objfile): Remove.
4487 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4488 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4489 dwarf2_per_objfile parameter.
4490 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4491 dwarf2_per_objfile parameter.
4492 (dwarf_expr_reg_to_entry_parameter): Add output
4493 dwarf2_per_objfile parameter.
4494 (locexpr_get_frame_base): Update.
4495 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4496 <push_dwarf_reg_entry_value>: Update.
4497 <call_site_to_target_addr>: Update.
4498 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4499 parameter.
4500 (value_of_dwarf_reg_entry): Update.
4501 (rw_pieced_value): Update.
4502 (indirect_synthetic_pointer): Update.
4503 (dwarf2_evaluate_property): Update.
4504 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4505 parameter.
4506 (locexpr_read_variable): Update.
4507 (locexpr_get_symbol_read_needs): Update.
4508 (loclist_read_variable): Update.
4509
4510 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4511
4512 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4513 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4514 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4515 parameter.
4516 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4517 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4518 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4519 parameter.
4520 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4521 sect_variable_value): Add dwarf2_per_objfile parameter.
4522 (class dwarf_evaluate_loc_desc) <dwarf_call,
4523 dwarf_variable_value>: Update.
4524 (fetch_const_value_from_synthetic_pointer): Add
4525 dwarf2_per_objfile parameter.
4526 (fetch_const_value_from_synthetic_pointer): Update.
4527 (coerced_pieced_ref): Update.
4528 (class symbol_needs_eval_context) <dwarf_call,
4529 dwarf_variable_value>: Update.
4530 (dwarf2_compile_expr_to_ax): Update.
4531
4532 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4533
4534 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4535 parameter.
4536 (dwarf2_evaluate_loc_desc_full): Update.
4537
4538 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4539
4540 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4541 parameter.
4542 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4543 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4544 dwarf2_per_objfile parameter.
4545 (decode_debug_loc_dwo_addresses): Likewise.
4546 (dwarf2_find_location_expression): Update.
4547 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4548 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4549 parameter.
4550 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4551 parameter.
4552 (locexpr_describe_location_1): Likewise.
4553 (locexpr_describe_location): Update.
4554
4555 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4556
4557 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4558 Remove.
4559 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4560 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4561 (dwarf2_compile_property_to_c): Update.
4562 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4563 use text offset from objfile.
4564 (locexpr_tracepoint_var_ref): Update.
4565 (locexpr_generate_c_location): Update.
4566 (loclist_describe_location): Update.
4567 (loclist_tracepoint_var_ref): Update.
4568 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4569 dwarf2_per_objfile parameter.
4570 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4571 use text offset from objfile.
4572 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4573
4574 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4575
4576 * dwarf2/expr.h (struct dwarf_expr_context)
4577 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4578 <offset>: Remove.
4579 <per_objfile>: New member.
4580 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4581 dwarf2_per_objfile parameter. Don't set offset, set
4582 per_objfile.
4583 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4584 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4585 a dwarf2_per_objfile object instead of an offset.
4586 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4587 constructor.
4588 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4589 to dwarf2_expr_executor constructor. Don't set offset.
4590 (dwarf2_fetch_cfa_info): Update.
4591 (struct dwarf2_frame_cache) <text_offset>: Remove.
4592 <per_objfile>: New field.
4593 (dwarf2_frame_cache): Update.
4594 (dwarf2_frame_prev_register): Update.
4595 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4596 <dwarf_evaluate_loc_desc>: Add constructor.
4597 (dwarf2_evaluate_loc_desc_full): Update.
4598 (dwarf2_locexpr_baton_eval): Update.
4599 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4600 Add constructor.
4601 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4602
4603 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4604
4605 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4606 addr_sized_int_type>: Move to dwarf2_cu.
4607 <int_type>: Move to dwarf2_per_objfile.
4608 (struct dwarf2_per_objfile) <int_type>: Move here.
4609 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4610 addr_sized_int_type>: Move here.
4611 (read_func_scope): Update.
4612 (read_array_type): Update.
4613 (read_tag_string_type): Update.
4614 (attr_to_dynamic_prop): Update.
4615 (dwarf2_per_cu_data::int_type): Rename to...
4616 (dwarf2_per_objfile::int_type): ... this.
4617 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4618 (dwarf2_cu::addr_sized_int_type): ... this.
4619 (read_subrange_type): Update.
4620 (dwarf2_per_cu_data::addr_type): Rename to...
4621 (dwarf2_cu::addr_type): ... this.
4622 (set_die_type): Update.
4623
4624 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4625
4626 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4627 data through per_cu->cu.
4628
4629 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4630
4631 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4632 dwarf2_per_cu_data parameter fo dwarf2_cu.
4633 (lookup_dwo_type_unit): Likewise.
4634 (read_cutu_die_from_dwo): Likewise.
4635 (lookup_dwo_unit): Likewise.
4636 (open_and_init_dwo_file): Likewise.
4637 (lookup_dwo_cutu): Likewise.
4638 (lookup_dwo_comp_unit): Likewise.
4639 (lookup_dwo_type_unit): Likewise.
4640 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4641 (cutu_reader::cutu_reader): Update.
4642
4643 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4644
4645 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4646 parameter.
4647 (process_full_type_unit): Likewise.
4648 (process_queue): Update.
4649
4650 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4651
4652 * dwarf2/read.c (recursively_compute_inclusions): Add
4653 dwarf2_per_objfile parameter.
4654 (compute_compunit_symtab_includes): Likewise.
4655 (process_cu_includes): Update.
4656
4657 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4658
4659 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4660 parameter.
4661 (create_type_unit_group): Update.
4662 (process_psymtab_comp_unit_reader): Update.
4663 (build_type_psymtabs_reader): Update.
4664
4665 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4666
4667 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4668 object through m_this_cu->cu.
4669
4670 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4671
4672 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4673 the info parameter.
4674 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4675
4676 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4677
4678 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4679 per_objfile parameter.
4680 (load_full_type_unit): Add per_objfile parameter.
4681 (read_signatured_type): Likewise.
4682 (load_full_comp_unit): Likewise.
4683 (load_cu): Likewise.
4684 (dw2_do_instantiate_symtab): Likewise.
4685 (dw2_get_file_names): Likewise.
4686 (dw2_map_symtabs_matching_filename): Update.
4687 (dw_expand_symtabs_matching_file_matcher): Update.
4688 (dw2_map_symbol_filenames): Update.
4689 (process_psymtab_comp_unit): Add per_objfile parameter.
4690 (build_type_psymtabs_1): Update.
4691 (process_skeletonless_type_unit): Update.
4692 (dwarf2_build_psymtabs_hard): Update.
4693 (load_partial_comp_unit): Add per_objfile parameter.
4694 (scan_partial_symbols): Update.
4695 (load_full_comp_unit): Add per_objfile parameter.
4696 (process_imported_unit_die): Update.
4697 (create_cus_hash_table): Update.
4698 (find_partial_die): Update.
4699 (dwarf2_read_addr_index): Update.
4700 (follow_die_offset): Update.
4701 (dwarf2_fetch_die_loc_sect_off): Update.
4702 (dwarf2_fetch_constant_bytes): Update.
4703 (dwarf2_fetch_die_type_sect_off): Update.
4704 (follow_die_sig_1): Update.
4705 (load_full_type_unit): Add per_objfile parameter.
4706 (read_signatured_type): Likewise.
4707
4708 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4709
4710 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4711 of objfile_name.
4712
4713 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4714
4715 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4716 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4717 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4718 field.
4719 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4720 (create_cus_from_index): Update.
4721 (dwarf2_read_gdb_index): Update.
4722 (create_cus_from_debug_names): Update.
4723 (dwarf2_read_debug_names): Update.
4724 (get_abbrev_section_for_cu): Update.
4725 (create_all_comp_units): Update.
4726 (read_attribute_value): Update.
4727 (get_debug_line_section): Update.
4728 * dwarf2/index-cache.c (index_cache::store): Update.
4729 * dwarf2/index-write.c (save_gdb_index_command): Update.
4730 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4731
4732 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4733
4734 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4735 member.
4736 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4737 dwarf2_per_cu_data::per_bfd.
4738 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4739 (create_type_unit_group): Likewise.
4740 (queue_comp_unit): Remove reference to
4741 per_cu->dwarf2_per_objfile.
4742 (maybe_queue_comp_unit): Likewise.
4743 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4744 (create_cus_hash_table): Assign new field.
4745
4746 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4747
4748 * dwarf2/read.c: Replace
4749 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4750 dwarf2_cu->per_objfile throughout.
4751
4752 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4753
4754 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4755 parameter, don't use per_cu->dwarf2_per_objfile.
4756 (dw2_instantiate_symtab): Likewise.
4757 (dw2_find_last_source_symtab): Update.
4758 (dw2_map_expand_apply): Update.
4759 (dw2_lookup_symbol): Update.
4760 (dw2_expand_symtabs_for_function): Update.
4761 (dw2_expand_all_symtabs): Update.
4762 (dw2_expand_symtabs_with_fullname): Update.
4763 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4764 don't use per_cu->dwarf2_per_objfile.
4765 (dw2_expand_marked_cus): Update.
4766 (dw2_find_pc_sect_compunit_symtab): Update.
4767 (dw2_debug_names_lookup_symbol): Update.
4768 (dw2_debug_names_expand_symtabs_for_function): Update.
4769 (dw2_debug_names_map_matching_symbols): Update.
4770 (dwarf2_psymtab::expand_psymtab): Update.
4771
4772 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4773
4774 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4775 <per_objfile>: New member.
4776 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4777 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4778 call to dwarf2_cu.
4779 (cutu_reader::cutu_reader): Update.
4780 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4781
4782 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4783
4784 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4785 struct dwarf2_per_objfile.
4786 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4787 dwarf2_per_bfd.
4788 * dwarf2/read.c (set_die_type): Update.
4789 (get_die_type_at_offset): Update.
4790
4791 2020-05-27 Tom Tromey <tom@tromey.com>
4792 Simon Marchi <simon.marchi@efficios.com>
4793
4794 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4795 method.
4796 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4797 get_symtab, set_symtab>: New methods.
4798 <m_symtabs>: New field.
4799 (struct dwarf2_psymtab): Derive from partial_symtab.
4800 <readin_p, get_compunit_symtab>: Declare methods.
4801 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4802 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4803 New methods.
4804 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4805 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4806 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4807 (dw2_symtab_iter_next, dw2_print_stats)
4808 (dw2_expand_symtabs_with_fullname)
4809 (dw2_expand_symtabs_matching_one)
4810 (dw_expand_symtabs_matching_file_matcher)
4811 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4812 (dw2_debug_names_iterator::next)
4813 (dw2_debug_names_map_matching_symbols)
4814 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4815 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4816 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4817 New methods.
4818 (get_compunit_symtab, process_full_comp_unit)
4819 (process_full_type_unit): Update.
4820 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4821
4822 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4823
4824 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4825 then introduce a new dwarf2_per_objfile type.
4826 <read_line_string>: Move to the new dwarf2_per_objfile type.
4827 <objfile>: Likewise.
4828 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4829 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4830 dwarf2_per_objfile->per_bfd.
4831 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4832 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4833 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4834 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4835 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4836 (dwarf2_per_objfile::locate_sections): Rename to...
4837 (dwarf2_per_bfd::locate_sections): ... this.
4838 (dwarf2_per_objfile::get_cutu): Rename to...
4839 (dwarf2_per_bfd::get_cutu): ... this.
4840 (dwarf2_per_objfile::get_cu): Rename to...
4841 (dwarf2_per_bfd::get_cu): ... this.
4842 (dwarf2_per_objfile::get_tu): Rename to...
4843 (dwarf2_per_bfd::get_tu): ... this.
4844 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4845 (dwarf2_per_bfd::allocate_per_cu): ... this.
4846 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4847 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4848 (get_gdb_index_contents_ftype): Change parameter from
4849 dwarf2_per_objfile to dwarf2_per_bfd.
4850 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4851 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4852
4853 2020-05-27 Tom Tromey <tom@tromey.com>
4854 Simon Marchi <simon.marchi@efficios.com>
4855
4856 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4857 (allocate_piece_closure): Set "per_objfile" member.
4858 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4859 (locexpr_describe_location, loclist_describe_location): Use new
4860 member.
4861 * dwarf2/read.c (read_call_site_scope)
4862 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4863 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4864 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4865 handle_data_member_location): Set per_objfile member.
4866 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4867 member.
4868 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4869
4870 2020-05-27 Tom Tromey <tom@tromey.com>
4871
4872 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4873 allocate_signatured_type>: Declare new methods.
4874 <m_num_psymtabs>: New member.
4875 (struct dwarf2_per_cu_data) <index>: New member.
4876 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4877 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4878 (create_cu_from_index_list): Use allocate_per_cu.
4879 (create_signatured_type_table_from_index)
4880 (create_signatured_type_table_from_debug_names)
4881 (create_debug_type_hash_table, add_type_unit)
4882 (read_comp_units_from_section): Use allocate_signatured_type.
4883
4884 2020-05-27 Tom Tromey <tom@tromey.com>
4885
4886 * psymtab.c (partial_map_expand_apply)
4887 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4888 (psym_lookup_global_symbol_language)
4889 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4890 (psym_print_stats, psym_expand_symtabs_for_function)
4891 (psym_map_symbol_filenames, psym_map_matching_symbols)
4892 (psym_expand_symtabs_matching)
4893 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4894 (maintenance_check_psymtabs): Update.
4895 * psympriv.h (struct partial_symtab) <readin_p,
4896 get_compunit_symtab>: Add objfile parameter.
4897 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4898 Likewise.
4899 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4900 get_compunit_symtab>: Likewise.
4901 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4902
4903 2020-05-27 Tom Tromey <tom@tromey.com>
4904
4905 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4906 member.
4907 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4908 (create_cu_from_index_list)
4909 (create_signatured_type_table_from_index)
4910 (create_signatured_type_table_from_debug_names)
4911 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4912 (dwarf2_create_include_psymtab)
4913 (create_debug_type_hash_table, add_type_unit)
4914 (create_type_unit_group, read_comp_units_from_section)
4915 (dwarf2_compute_name, create_cus_hash_table)
4916 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4917 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4918 obstack.
4919 (dw2_get_real_path): Likewise. Change argument to
4920 dwarf2_per_objfile.
4921
4922 2020-05-27 Luis Machado <luis.machado@linaro.org>
4923
4924 PR tdep/26000
4925 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4926 for ldrd (immediate).
4927
4928 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4929
4930 * command.h: Add comment giving the name of class_tui.
4931 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4932 create the fake command for the help for class_tui.
4933
4934 2020-05-26 Tom Tromey <tromey@adacore.com>
4935
4936 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4937 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4938 (val_atr): New function.
4939 (value_val_atr): Use it.
4940 * ada-valprint.c (print_optional_low_bound): Change low bound
4941 handling for enums.
4942 (val_print_packed_array_elements): Don't call discrete_position.
4943 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4944 discrete_position for enum types.
4945 * language.c (default_print_array_index): Change type.
4946 * language.h (struct language_defn) <la_print_array_index>: Add
4947 index_type parameter, change type of index_value.
4948 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4949 (default_print_array_index): Update.
4950 * valprint.c (maybe_print_array_index): Don't call
4951 value_from_longest. Update.
4952 (value_print_array_elements): Don't call discrete_position.
4953
4954 2020-05-26 Tom Tromey <tromey@adacore.com>
4955
4956 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4957 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4958
4959 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4960
4961 PR gdb/13519
4962 * avr-tdep.c (avr_integer_to_address): Return data or code
4963 address accordingly to the second 'type' argument of the
4964 function.
4965
4966 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4967
4968 * infcmd.c, inferior.h: (construct_inferior_arguments):
4969 Moved function from here to gdbsupport/common-inferior.{h,cc}
4970
4971 2020-05-23 Tom Tromey <tom@tromey.com>
4972
4973 Revert commit eca1f90c:
4974 * NEWS: Remove entry for completion styling.
4975 * completer.c (_rl_completion_prefix_display_length): Move
4976 declaration later.
4977 (gdb_fnprint): Revert.
4978 (gdb_display_match_list_1): Likewise.
4979 * cli/cli-style.c (completion_prefix_style)
4980 (completion_difference_style, completion_suffix_style): Remove.
4981 (_initialize_cli_style): Revert.
4982 * cli/cli-style.h (completion_prefix_style)
4983 (completion_difference_style, completion_suffix_style): Don't
4984 declare.
4985
4986 2020-05-24 Pedro Alves <palves@redhat.com>
4987
4988 * symtab.c (completion_list_add_name): Return boolean indication
4989 of whether the symbol matched.
4990 (completion_list_add_symbol): Don't try to remove C++ aliases if
4991 the symbol didn't match in the first place.
4992 * symtab.h (completion_list_add_name): Return bool.
4993
4994 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4995
4996 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4997 type::field.
4998
4999 2020-05-23 Joel Brobecker <brobecker@adacore.com>
5000
5001 GDB 9.2 released.
5002
5003 2020-05-23 Tom Tromey <tom@tromey.com>
5004
5005 * NEWS: Add entry for completion styling.
5006 * completer.c (_rl_completion_prefix_display_length): Move
5007 declaration earlier.
5008 (gdb_fnprint): Use completion_style.
5009 (gdb_display_match_list_1): Likewise.
5010 * cli/cli-style.c (completion_prefix_style)
5011 (completion_difference_style, completion_suffix_style): New
5012 globals.
5013 (_initialize_cli_style): Register new globals.
5014 * cli/cli-style.h (completion_prefix_style)
5015 (completion_difference_style, completion_suffix_style): Declare.
5016
5017 2020-05-23 Pedro Alves <palves@redhat.com>
5018
5019 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
5020 (parse_escape): Use ISDIGIT instead of isdigit.
5021 (puts_debug): Use gdb_isprint instead of isprint.
5022 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
5023 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
5024 ISSPACE instead of isspace.
5025 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
5026 instead of isspace.
5027 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
5028 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
5029 instead of isxdigit and ISDIGIT instead of isdigit.
5030
5031 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5032
5033 * gdbtypes.h (struct type) <field>: New method.
5034 (TYPE_FIELDS): Remove, replace all uses with either type::fields
5035 or type::field.
5036
5037 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5038
5039 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
5040 (TYPE_FIELDS): Use type::fields. Change all call sites that
5041 modify the propery to use type::set_fields instead.
5042
5043 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5044
5045 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
5046 type::num_fields instead.
5047
5048 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5049
5050 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
5051 methods.
5052 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
5053 that modify the number of fields to use type::set_num_fields
5054 instead.
5055
5056 2020-05-22 Tom Tromey <tromey@adacore.com>
5057
5058 * compile/compile-object-load.h (munmap_list_free): Don't
5059 declare.
5060
5061 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
5062
5063 * annotate.c (annotate_source_line): Update return type, add call
5064 to update current symtab and line.
5065 * annotate.h (annotate_source_line): Update return type, and
5066 extend header comment.
5067 * source.c (info_line_command): Check annotation_level before
5068 calling annotate_source_line.
5069 * stack.c (print_frame_info): If calling annotate_source_line
5070 returns true, then don't print any other source line information.
5071
5072 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
5073
5074 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
5075
5076 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
5077
5078 * coffread.c (patch_type): Remove NULL check before xfree.
5079 * corefile.c (set_gnutarget): Likewise.
5080 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
5081 * exec.c (build_section_table): Likewise.
5082 * remote.c (remote_target::pass_signals): Likewise.
5083 * utils.c (n_spaces): Likewise.
5084 * cli/cli-script.c (document_command): Likewise.
5085 * i386-windows-tdep.c (core_process_module_section): Likewise.
5086 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
5087
5088 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
5089
5090 * symfile.c (reread_symbols): Clear objfile's section_offsets
5091 vector and section indices, re-compute them by calling
5092 sym_offsets.
5093
5094 2020-05-20 Tom Tromey <tromey@adacore.com>
5095
5096 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
5097 (desc_one_bound, desc_index_type): Compute field name.
5098
5099 2020-05-20 Tom de Vries <tdevries@suse.de>
5100
5101 PR symtab/25833
5102 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
5103
5104 2020-05-20 Alan Modra <amodra@gmail.com>
5105
5106 PR 25993
5107 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
5108 bfd_set_filename.
5109 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
5110 passed to bfd_set_filename.
5111 * symfile-mem.c (add_vsyscall_page): Likewise for string
5112 passed to symbol_file_add_from_memory.
5113 (symbol_file_add_from_memory): Make name param a const char* and
5114 don't strdup.
5115
5116 2020-05-20 Alan Modra <amodra@gmail.com>
5117
5118 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
5119 rather than accessing bfd->filename directly.
5120 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
5121 and use bfd_section_name.
5122 * dwarf2/frame.c (decode_frame_entry): Likewise.
5123 * exec.c (exec_set_section_address): Likewise.
5124 * solib-aix.c (solib_aix_bfd_open): Likewise.
5125 * stap-probe.c (get_stap_base_address): Likewise.
5126 * symfile.c (reread_symbols): Likewise.
5127
5128 2020-05-19 Tom Tromey <tromey@adacore.com>
5129
5130 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
5131
5132 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5133
5134 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
5135
5136 2020-05-19 Pedro Alves <palves@redhat.com>
5137
5138 * NEWS (set exec-file-mismatch): Adjust entry.
5139 * exec.c: Include "build-id.h".
5140 (validate_exec_file): Try to match build IDs instead of filenames.
5141 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
5142 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
5143 and pass down 'warn_if_slow'.
5144 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
5145 gdb_bfd_open_closure to pass it down.
5146 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
5147
5148 2020-05-19 Pedro Alves <palves@redhat.com>
5149
5150 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
5151 * target.c (target_fileio_open_1): Rename to target_fileio_open
5152 and make extern. Use bool.
5153 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
5154 (target_fileio_read_alloc_1): Adjust.
5155 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
5156 (target_fileio_open_warn_if_slow): Delete declaration.
5157
5158 2020-05-19 Pedro Alves <palves@redhat.com>
5159
5160 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
5161 Adjust all callers.
5162
5163 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
5164
5165 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
5166 whether disp is negative.
5167
5168 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5169
5170 * symfile.h (struct symfile_segment_data)
5171 <~symfile_segment_data>: Remove.
5172 <segment_info>: Change to std::vector.
5173 * symfile.c (default_symfile_segments): Update.
5174 * elfread.c (elf_symfile_segments): Update.
5175
5176 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5177
5178 * symfile.h (struct symfile_segment_data) <struct segment>: New.
5179 <segments>: New.
5180 <segment_bases, segment_sizes>: Remove.
5181 * symfile.c (default_symfile_segments): Update.
5182 * elfread.c (elf_symfile_segments): Update.
5183 * remote.c (remote_target::get_offsets): Update.
5184 * solib-target.c (solib_target_relocate_section_addresses):
5185 Update.
5186
5187 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5188
5189 * symfile.h (struct symfile_segment_data): Initialize fields.
5190 <~symfile_segment_data>: Add.
5191 (symfile_segment_data_up): New.
5192 (struct sym_fns) <sym_segments>: Return a
5193 symfile_segment_data_up.
5194 (default_symfile_segments): Return a symfile_segment_data_up.
5195 (free_symfile_segment_data): Remove.
5196 (get_symfile_segment_data): Return a symfile_segment_data_up.
5197 * symfile.c (default_symfile_segments): Likewise.
5198 (get_symfile_segment_data): Likewise.
5199 (free_symfile_segment_data): Remove.
5200 (symfile_find_segment_sections): Update.
5201 * elfread.c (elf_symfile_segments): Return a
5202 symfile_segment_data_up.
5203 * remote.c (remote_target::get_offsets): Update.
5204 * solib-target.c (solib_target_relocate_section_addresses):
5205 Update.
5206 * symfile-debug.c (debug_sym_segments): Return a
5207 symfile_segment_data_up.
5208
5209 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5210
5211 PR build/25981
5212 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
5213 Hardcode register numbers.
5214
5215 PR build/25981
5216 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
5217 procfs_find_LDT_entry): Remove.
5218 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
5219 procfs_find_LDT_entry): Remove.
5220 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
5221 Remove.
5222
5223 2020-05-17 Pedro Alves <palves@redhat.com>
5224 Andrew Burgess <andrew.burgess@embecosm.com>
5225 Keno Fischer <keno@juliacomputing.com>
5226
5227 PR gdb/25741
5228 * breakpoint.c (build_target_condition_list): Update comments.
5229 (build_target_command_list): Update comments and skip matching
5230 locations.
5231 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
5232 a separate function. Simplify "set breakpoint auto-hw off"
5233 handling.
5234 (insert_breakpoints): Update comment.
5235 (tracepoint_locations_match): New parameter. For breakpoints,
5236 compare location types too, if the caller wants to.
5237 (handle_automatic_hardware_breakpoints): New functions.
5238 (bp_location_is_less_than): Also sort by location type and
5239 hardware breakpoint length.
5240 (update_global_location_list): Handle "set breakpoint auto-hw on"
5241 here.
5242 (update_breakpoint_locations): Ask breakpoint_locations_match to
5243 ignore location types.
5244
5245 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5246
5247 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
5248 type::name instead.
5249
5250 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5251
5252 * gdbtypes.h (struct type) <name, set_name>: New methods.
5253 (TYPE_CODE): Use type::name. Change all call sites used to set
5254 the name to use type::set_name instead.
5255
5256 2020-05-16 Tom Tromey <tom@tromey.com>
5257
5258 * top.c (quit_force): Update.
5259 * infrun.c (handle_no_resumed): Update.
5260 * top.h (all_uis): New function.
5261 (ALL_UIS): Remove.
5262
5263 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5264
5265 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
5266
5267 2020-05-16 Pedro Alves <palves@redhat.com>
5268
5269 * ia64-linux-nat.c
5270 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
5271 Declare method.
5272 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
5273
5274 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
5275
5276 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
5277 (sparc64_adi_info): Likewise.
5278
5279 2020-05-15 Tom Tromey <tom@tromey.com>
5280
5281 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
5282 block_objfile.
5283 (lookup_objfile_from_block): Remove.
5284 (lookup_symbol_in_block, lookup_symbol_in_static_block)
5285 (lookup_global_symbol): Use block_objfile.
5286 * symtab.h (lookup_objfile_from_block): Don't declare.
5287 * printcmd.c (clear_dangling_display_expressions): Use
5288 block_objfile.
5289 * parse.c (operator_check_standard): Use block_objfile.
5290
5291 2020-05-15 Tom Tromey <tom@tromey.com>
5292
5293 * language.c (language_alloc_type_symbol): Set
5294 SYMBOL_SECTION.
5295 * symtab.c (initialize_objfile_symbol): Remove.
5296 (allocate_symbol): Remove.
5297 (allocate_template_symbol): Remove.
5298 * dwarf2/read.c (fixup_go_packaging): Use "new".
5299 (new_symbol): Use "new".
5300 (read_variable): Don't call initialize_objfile_symbol. Use
5301 "new".
5302 (read_func_scope): Use "new".
5303 * xcoffread.c (process_xcoff_symbol): Don't call
5304 initialize_objfile_symbol.
5305 (SYMBOL_DUP): Remove.
5306 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
5307 "new".
5308 * symtab.h (allocate_symbol, initialize_objfile_symbol)
5309 (allocate_template_symbol): Don't declare.
5310 (struct symbol): Add copy constructor. Change defaults.
5311 * jit.c (finalize_symtab): Use "new".
5312 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
5313 Use "new".
5314 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5315 (common_block_end): Use "new".
5316 * mdebugread.c (parse_symbol): Use "new".
5317 (new_symbol): Likewise.
5318
5319 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5320
5321 * NEWS: Mention changes to help and apropos.
5322
5323 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5324
5325 * command.h (enum command_class): Improve comments, document
5326 that class_alias is for user-defined aliases, give the class
5327 name for each class, remove unused class_xdb.
5328 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
5329 * breakpoint.c (_initialize_breakpoint): Replace class_alias
5330 by a precise class.
5331 * infcmd.c (_initialize_infcmd): Likewise.
5332 * reverse.c (_initialize_reverse): Likewise.
5333 * stack.c (_initialize_stack): Likewise.
5334 * symfile.c (_initialize_symfile): Likewise.
5335 * tracepoint.c (_initialize_tracepoint): Likewise.
5336
5337 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5338
5339 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
5340 when their aliased command is traversed.
5341 (help_cmd): Add fput_command_names_styled call to
5342 output command name and aliases when command has an alias.
5343
5344 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5345
5346 * cli/cli-decode.h (help_cmd_list): Remove declaration.
5347 * cli/cli-decode.c (help_cmd_list): Declare as static,
5348 remove prefix argument, use bool for recurse arg, rework to show the aliases of
5349 a command together with the command.
5350 (fput_command_name_styled, fput_command_names_styled): New functions.
5351 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
5352 fput_command_name_styled.
5353 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
5354 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
5355
5356 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5357
5358 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
5359 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
5360 * command.h (cmd_show_list): Likewise.
5361 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
5362 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
5363
5364 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5365
5366 * unittests/command-def-selftests.c (traverse_command_structure):
5367 Verify all commands of a list have the same prefix command and
5368 that only the top cmdlist commands have a null prefix.
5369
5370 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5371
5372 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
5373 as prefix, not one of its aliases.
5374 (set_cmd_prefix): Remove.
5375 (do_add_cmd): Centralize the setting of the prefix of a command, when
5376 command is defined after its full chain of prefix commands.
5377 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
5378 (add_setshow_cmd_full): Likewise.
5379 (update_prefix_field_of_prefixed_commands): New function.
5380 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
5381 update_prefix_field_of_prefixed_commands.
5382 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
5383 addresses of remote_set_cmdlist and remote_show_cmdlist given
5384 as argument, not the address of an argument.
5385 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5386 * gdb/remote.c (_initialize_remote): Likewise.
5387
5388 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5389
5390 * cli/cli-cmds.c (alias_command): Check for an existing alias
5391 using lookup_cmd_composition, as valid_command_p is too strict
5392 and forbids aliases that are the prefix of an existing alias
5393 or command.
5394 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5395 command is properly recognised as a valid command.
5396
5397 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5398
5399 * unittests/help-doc-selftests.c: Rename to
5400 unittests/command-def-selftests.c
5401 * unittests/command-def-selftests.c (help_doc_tests): Update some
5402 comments.
5403 (command_structure_tests, traverse_command_structure): New namespace
5404 and function.
5405 (command_structure_invariants_tests): New function.
5406 (_initialize_command_def_selftests) Renamed from
5407 _initialize_help_doc_selftests, register command_structure_invariants
5408 selftest.
5409
5410 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5411
5412 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5413 an alias of 'show'.
5414
5415 2020-05-15 Joel Brobecker <brobecker@adacore.com>
5416
5417 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5418 ada_is_fixed_point_type. Update all callers.
5419 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5420 all callers.
5421 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5422 Update all callers.
5423 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5424 print_fixed_point_type. Update all callers.
5425 * ada-valprint.c (ada_value_print_num): Replace call to
5426 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5427
5428 2020-05-14 Kevin Buettner <kevinb@redhat.com>
5429
5430 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5431 processors.
5432 (cpu_supports_bts): Add CV_AMD case.
5433
5434 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5435 Simon Marchi <simon.marchi@efficios.com>
5436
5437 * infrun.c (stop_all_threads): Collect multiple wait events at
5438 each pass.
5439
5440 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5441
5442 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5443 type::code instead.
5444
5445 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5446
5447 * gdbtypes.h (struct type) <code, set_code>: New methods.
5448 (TYPE_CODE): Use type::code. Change all call sites used to set
5449 the code to use type::set_code instead.
5450
5451 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5452 Tom de Vries <tdevries@suse.de>
5453 Pedro Alves <palves@redhat.com>
5454
5455 PR threads/25478
5456 * infrun.c (stop_all_threads): Do NOT ignore
5457 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5458 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5459 received.
5460 (handle_no_resumed): Remove code handling a live inferior with no
5461 threads.
5462 * remote.c (has_single_non_exited_thread): New.
5463 (remote_target::update_thread_list): Do not delete a thread if is
5464 the last thread of the process.
5465 * thread.c (thread_select): Call delete_exited_threads instead of
5466 prune_threads.
5467
5468 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5469
5470 * infrun.c (stop_all_threads): Enable/disable thread events of all
5471 targets. Move a debug message denoting the end of the function
5472 into the SCOPED_EXIT block.
5473
5474 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5475
5476 * process-stratum-target.h: Include <set>.
5477 (all_non_exited_process_targets, switch_to_target_no_thread): New
5478 function declarations.
5479 * process-stratum-target.c (all_non_exited_process_targets)
5480 (switch_to_target_no_thread): New function implementations.
5481
5482 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5483
5484 * infrun.c (handle_inferior_event): Extract out a piece of code
5485 into...
5486 (mark_non_executing_threads): ...this new function.
5487
5488 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5489
5490 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5491 use.
5492
5493 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5494
5495 * regcache.c (regcache_read_pc_protected): New function
5496 implementation that returns 0 if the PC cannot read via
5497 'regcache_read_pc'.
5498 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5499 instead of 'regcache_read_pc'.
5500 (keep_going_pass_signal): Ditto.
5501
5502 2020-05-13 Tom Tromey <tromey@adacore.com>
5503
5504 * ada-lang.c (align_value): Remove.
5505 (ada_template_to_fixed_record_type_1): Use align_up.
5506
5507 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5508
5509 * async-event.c: Update the copyright year.
5510 * async-event.h: Update the copyright year.
5511
5512 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
5513
5514 * objfiles.h (is_addr_in_objfile,
5515 shared_objfile_contains_address_p): Return bool.
5516 * objfile.c (is_addr_in_objfile,
5517 shared_objfile_contains_address_p): Return bool.
5518
5519 2020-05-11 Tom Tromey <tromey@adacore.com>
5520
5521 * cli/cli-cmds.c (info_command): Restore.
5522 (_initialize_cli_cmds): Use add_prefix_command for "info".
5523 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5524
5525 2020-05-11 Tom Tromey <tromey@adacore.com>
5526
5527 * ada-lang.c (ada_value_primitive_field): Now public.
5528 * ada-lang.h (ada_value_primitive_field): Declare.
5529 * ada-valprint.c (print_field_values): Use
5530 ada_value_primitive_field for wrapper fields.
5531
5532 2020-05-11 Tom de Vries <tdevries@suse.de>
5533
5534 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5535 MODULE_DOMAIN.
5536
5537 2020-05-11 Tom de Vries <tdevries@suse.de>
5538
5539 PR symtab/25941
5540 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5541 with length 0, if not gdb-produced.
5542 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5543
5544 2020-05-09 Tom de Vries <tdevries@suse.de>
5545
5546 PR gdb/25955
5547 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5548 calculation.
5549
5550 2020-05-09 Tom Tromey <tom@tromey.com>
5551
5552 * top.c (server_command): Now bool.
5553 * top.h (server_command): Now bool.
5554
5555 2020-05-08 Tom Tromey <tromey@adacore.com>
5556
5557 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5558 already being processed.
5559
5560 2020-05-08 Tom Tromey <tom@tromey.com>
5561
5562 * printcmd.c (struct display) <next>: Remove.
5563 <display>: New constructor.
5564 <exp_string>: Now a std::string.
5565 <enabled_p>: Now a bool.
5566 (display_number): Move definition earlier.
5567 (displays): Rename from display_chain. Now a std::vector.
5568 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5569 (display_command): Update.
5570 (do_one_display, disable_display)
5571 (enable_disable_display_command, do_enable_disable_display):
5572 Update.
5573 (free_display): Remove.
5574 (clear_displays): Rewrite.
5575 (delete_display): Update.
5576 (map_display_numbers): Use function_view. Remove "data"
5577 parameter. Update.
5578 (do_delete_display): Remove.
5579 (undisplay_command): Update.
5580 (do_one_display, do_displays, disable_display)
5581 (info_display_command): Update.
5582 (do_enable_disable_display): Remove.
5583 (enable_disable_display_command)
5584 (clear_dangling_display_expressions): Update.
5585
5586 2020-05-08 Tom Tromey <tom@tromey.com>
5587
5588 * symtab.c (set_symbol_cache_size)
5589 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5590 (maintenance_print_symbol_cache_statistics): Update.
5591 * symmisc.c (print_symbol_bcache_statistics)
5592 (print_objfile_statistics, maintenance_print_objfiles)
5593 (maintenance_info_symtabs, maintenance_check_symtabs)
5594 (maintenance_expand_symtabs, maintenance_info_line_tables):
5595 Update.
5596 * symfile-debug.c (set_debug_symfile): Update.
5597 * source.c (forget_cached_source_info): Update.
5598 * python/python.c (gdbpy_progspaces): Update.
5599 * psymtab.c (maintenance_info_psymtabs): Update.
5600 * probe.c (parse_probes): Update.
5601 * linespec.c (iterate_over_all_matching_symtabs)
5602 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5603 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5604 * exec.c (exec_target::close): Update.
5605 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5606 * breakpoint.c (print_one_breakpoint_location)
5607 (create_longjmp_master_breakpoint)
5608 (create_std_terminate_master_breakpoint): Update.
5609 * progspace.c (program_spaces): Now a std::vector.
5610 (maybe_new_address_space): Update.
5611 (add_program_space): Remove.
5612 (program_space::program_space): Update.
5613 (remove_program_space): Update.
5614 (number_of_program_spaces): Remove.
5615 (print_program_space, update_address_spaces): Update.
5616 * progspace.h (program_spaces): Change type.
5617 (ALL_PSPACES): Remove.
5618 (number_of_program_spaces): Don't declare.
5619 (struct program_space) <next>: Remove.
5620
5621 2020-05-08 Tom Tromey <tom@tromey.com>
5622
5623 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5624 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5625 (enable_break): Update.
5626 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5627 (frv_fdpic_find_canonical_descriptor): Update.
5628 (frv_fetch_objfile_link_map): Update.
5629 * progspace.c (program_space::free_all_objfiles): Update.
5630 (program_space::solibs): New method.
5631 * progspace.h (struct program_space) <solibs>: New method.
5632 * solist.h (master_so_list): Don't declare.
5633 (ALL_SO_LIBS): Remove.
5634 * solib.h (so_list_head): Remove.
5635 (update_solib_list): Update comment.
5636 * solib.c (master_so_list): Remove.
5637 (solib_used, update_solib_list, solib_add)
5638 (info_sharedlibrary_command, clear_solib)
5639 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5640
5641 2020-05-08 Tom Tromey <tom@tromey.com>
5642
5643 * extension.c (extension_languages): Now a std::array.
5644 (ALL_EXTENSION_LANGUAGES): Remove.
5645 (get_ext_lang_defn, get_ext_lang_of_file)
5646 (eval_ext_lang_from_control_command): Update.
5647 (finish_ext_lang_initialization)
5648 (auto_load_ext_lang_scripts_for_objfile)
5649 (ext_lang_type_printers::ext_lang_type_printers)
5650 (apply_ext_lang_type_printers)
5651 (ext_lang_type_printers::~ext_lang_type_printers)
5652 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5653 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5654 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5655 (get_matching_xmethod_workers, ext_lang_colorize)
5656 (ext_lang_before_prompt): Update.
5657 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5658
5659 2020-05-08 Tom Tromey <tom@tromey.com>
5660
5661 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5662 overload.
5663 <swap_string, m_string>: Remove.
5664 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5665 Update.
5666 * stabsread.c (define_symbol, read_type): Update.
5667 * linespec.c (find_linespec_symbols): Update.
5668 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5669 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5670 * dbxread.c (read_dbx_symtab): Update.
5671 * cp-support.h (cp_canonicalize_string_full)
5672 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5673 Return unique_xmalloc_ptr.
5674 * cp-support.c (inspect_type): Update.
5675 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5676 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5677 Likewise.
5678 * c-typeprint.c (print_name_maybe_canonical): Update.
5679 * break-catch-throw.c (check_status_exception_catchpoint):
5680 Update.
5681
5682 2020-05-08 Tom de Vries <tdevries@suse.de>
5683
5684 * infrun.c (follow_fork): Copy current_line and current_symtab to
5685 child thread.
5686
5687 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5688
5689 * async-event.c (struct async_signal_handler, struct
5690 async_event_handler): Reformat, remove typedef.
5691
5692 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5693
5694 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5695 access thistype->main_type->dyn_prop_list directly.
5696
5697 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5698
5699 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5700 (remove_dyn_prop): Remove. Update all users to use
5701 type::remove_dyn_prop.
5702 * gdbtypes.c (remove_dyn_prop): Rename to...
5703 (type::remove_dyn_prop): ... this.
5704
5705 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5706
5707 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5708 (add_dyn_prop): Remove. Update all users to use
5709 type::add_dyn_prop.
5710 * gdbtypes.c (add_dyn_prop): Rename to...
5711 (type::add_dyn_prop): ... this.
5712
5713 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5714
5715 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5716 (get_dyn_prop): Remove. Update all users to use
5717 type::dyn_prop.
5718 * gdbtypes.c (get_dyn_prop): Rename to...
5719 (type::dyn_prop): ... this.
5720
5721 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5722
5723 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5724
5725 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5726
5727 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5728 instruction, skip it if it's there.
5729
5730 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
5731
5732 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5733
5734 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
5735
5736 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5737 * gdbtypes.c (recursive_dump_type): Remove use of
5738 TYPE_INCOMPLETE.
5739
5740 2020-05-03 Tom Tromey <tom@tromey.com>
5741
5742 * breakpoint.c (catch_command, tcatch_command): Remove.
5743 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5744 add_show_prefix_cmd.
5745 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5746 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5747 Remove.
5748 (add_internal_problem_command): Use add_basic_prefix_cmd,
5749 add_show_prefix_cmd.
5750 * mips-tdep.c (set_mipsfpu_command): Remove.
5751 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5752 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5753 (_initialize_index_cache): Use add_basic_prefix_cmd.
5754 * memattr.c (dummy_cmd): Remove.
5755 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5756 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5757 (_initialize_tui_win): Use add_basic_prefix_cmd,
5758 add_show_prefix_cmd.
5759 * cli/cli-logging.c (set_logging_command): Remove.
5760 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5761 add_show_prefix_cmd.
5762 (show_logging_command): Remove.
5763 * target.c (target_command): Remove.
5764 (add_target): Use add_basic_prefix_cmd.
5765
5766 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
5767
5768 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5769
5770 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5771
5772 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5773 info_command.
5774
5775 2020-04-30 Kamil Rytarowski <n54@gmx.com>
5776
5777 * nbsd-nat.c (nbsd_enable_proc_events)
5778 (nbsd_nat_target::post_startup_inferior): Add.
5779 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5780 (nbsd_nat_target::update_thread_list): Rewrite.
5781 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5782 "PTRACE_LWP_CREATE".
5783 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5784
5785 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5786
5787 * stack.c (_initialize_stack): Remove duplicated creation
5788 of "frame" command and "f" alias.
5789
5790 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5791
5792 PR gdb/18706
5793 * gdbtypes.c (check_typedef): Calculate size of array of
5794 stubbed type.
5795
5796 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5797
5798 PR gdb/15559
5799 * i386-tdep.c (i386_push_dummy_call): Call
5800 i386_thiscall_push_dummy_call.
5801 (i386_thiscall_push_dummy_call): New function.
5802 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5803 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5804 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5805
5806 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5807
5808 * gdbarch.sh (do_read): Add shellcheck disable directive for
5809 warning SC2162.
5810
5811 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5812
5813 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5814 "referenced but not assigned" warning.
5815
5816 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5817
5818 * gdbarch.sh: Remove code that sets fallbackdefault.
5819
5820 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5821
5822 * gdbarch.sh: Use shell operators && and || instead of
5823 -a and -o.
5824
5825 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5826
5827 * gdbarch.sh: Use $(...) instead of `...`.
5828
5829 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5830
5831 * gdbarch.sh: Use double quotes around variables.
5832
5833 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5834
5835 * gdbarch.sh: Use %s with printf, instead of variables in the
5836 format string.
5837
5838 2020-04-29 Tom Tromey <tromey@adacore.com>
5839
5840 PR ada/25875:
5841 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5842 type fields here.
5843 (read_enumeration_type): Call
5844 update_enumeration_type_from_children later. Update comments.
5845 (process_enumeration_scope): Don't create type fields.
5846
5847 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5848
5849 * nbsd-tdep.c: Include "xml-syscall.h".
5850 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5851
5852 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5853
5854 * nbsd-nat.c: Include "sys/wait.h".
5855 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5856 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5857 (nbsd_nat_target::remove_exec_catchpoint)
5858 (nbsd_nat_target::set_syscall_catchpoint): Add.
5859 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5860 (nbsd_nat_target::insert_exec_catchpoint)
5861 (nbsd_nat_target::remove_exec_catchpoint)
5862 (nbsd_nat_target::set_syscall_catchpoint): Add.
5863 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5864 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5865 `nbsd_get_syscall_number'.
5866
5867 2020-04-29 Tom Tromey <tom@tromey.com>
5868
5869 * stack.c (print_block_frame_labels): Remove.
5870
5871 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
5872
5873 PR gdb/17320
5874 * ada-valprint.c (val_print_packed_array_elements): Move array
5875 end bracket to new line.
5876 (ada_val_print_string): Remove extra spaces before first array
5877 element.
5878 * c-valprint.c (c_value_print_array): Likewise.
5879 * m2-valprint.c (m2_print_array_contents): Likewise.
5880 (m2_value_print_inner): Likewise.
5881 * p-valprint.c (pascal_value_print_inner): Likewise.
5882 * valprint.c (generic_val_print_array): Likewise.
5883 (value_print_array_elements): Move first array element and array
5884 end bracket to new line.
5885
5886 2020-04-29 Tom de Vries <tdevries@suse.de>
5887
5888 PR symtab/25889
5889 * linespec.c (find_method): Fix ix calculation.
5890
5891 2020-04-28 Kamil Rytarowski <n54@gmx.com>
5892
5893 * syscalls/update-netbsd.sh: New file.
5894 * syscalls/netbsd.xml: Regenerate.
5895 * data-directory/Makefile.in: Register `netbsd.xml' in
5896 `SYSCALLS_FILES'.
5897
5898 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5899
5900 * syscalls/update-freebsd.sh: Add double quotes.
5901
5902 2020-04-28 Tom Tromey <tom@tromey.com>
5903
5904 * NEWS: Update.
5905 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5906 (cmdpy_init): Allow class_tui.
5907
5908 2020-04-28 Mark Williams <mark@myosotissp.com>
5909
5910 PR gdb/24480
5911 * dwarf2read.c: Add missing assingments to list_in_scope when
5912 start_symtab was already called.
5913
5914 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5915
5916 PR gdb/25881
5917 * dwarf2/read.c (offset_map_type): Use
5918 gdb:hash_enum<sect_offset> as hash function.
5919
5920 2020-04-28 Tom de Vries <tdevries@suse.de>
5921
5922 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5923 with DW_AT_signature.
5924
5925 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
5926
5927 * configure.ac: Remove check for fs_base/gs_base in
5928 user_regs_struct.
5929 * configure: Re-generate.
5930 * config.in: Re-generate.
5931 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5932 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5933 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5934
5935 2020-04-27 Luis Machado <luis.machado@linaro.org>
5936
5937 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5938 problematic inline frame unwinding situation.
5939 * frame.c (frame_id_computed_p): New function.
5940 * frame.h (frame_id_computed_p): New prototype.
5941
5942 2020-04-26 Tom Tromey <tom@tromey.com>
5943
5944 * command.h (enum command_class) <class_pseudo>: Remove.
5945
5946 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5947
5948 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5949 and whitespace.
5950
5951 2020-04-25 Kamil Rytarowski <n54@gmx.com>
5952
5953 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5954 `PT_GET_PROCESS_STATE' block.
5955
5956 2020-04-24 Tom Tromey <tom@tromey.com>
5957
5958 * symtab.h (symbol_get_demangled_name): Don't declare.
5959 * symtab.c (symbol_get_demangled_name): Remove.
5960 (general_symbol_info::natural_name)
5961 (general_symbol_info::demangled_name): Update.
5962
5963 2020-04-24 Tom Tromey <tom@tromey.com>
5964
5965 PR rust/25025:
5966 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5967
5968 2020-04-24 Tom Tromey <tom@tromey.com>
5969
5970 PR symtab/12707:
5971 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5972 exists.
5973 (new_symbol): Likewise.
5974 * compile/compile-object-load.c (get_out_value_type): Use
5975 symbol_matches_search_name.
5976
5977 2020-04-24 Tom Tromey <tom@tromey.com>
5978
5979 * dwarf2/read.c (add_partial_symbol): Do not call
5980 compute_and_set_names.
5981
5982 2020-04-24 Tom Tromey <tom@tromey.com>
5983
5984 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5985 overload.
5986
5987 2020-04-24 Tom Tromey <tom@tromey.com>
5988
5989 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5990 (add_psymbol_to_list): New overload. Make old overload call new
5991 one.
5992 * psympriv.h (add_psymbol_to_list): New overload.
5993
5994 2020-04-24 Tom Tromey <tom@tromey.com>
5995
5996 * dwarf2/read.c (partial_die_info::read) <case
5997 DW_AT_linkage_name>: Use value_as_string.
5998 (dwarf2_string_attr): Use value_as_string.
5999 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
6000 method.
6001 * dwarf2/attribute.c (attribute::value_as_string): New method.
6002
6003 2020-04-24 Tom Tromey <tom@tromey.com>
6004
6005 * symtab.c (general_symbol_info::natural_name)
6006 (general_symbol_info::demangled_name): Check for language_rust.
6007
6008 2020-04-24 Tom Tromey <tom@tromey.com>
6009
6010 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
6011 (dwarf2_physname): ... from here.
6012 (partial_die_info::read): Add Rust "{" hack.
6013
6014 2020-04-24 Tom Tromey <tom@tromey.com>
6015
6016 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
6017 method.
6018 (symbol_set_demangled_name): Don't declare.
6019 * symtab.c (general_symbol_info::set_demangled_name): Rename from
6020 symbol_set_demangled_name.
6021 (general_symbol_info::set_language)
6022 (general_symbol_info::compute_and_set_names): Update.
6023 * minsyms.c (minimal_symbol_reader::install): Update.
6024 * dwarf2/read.c (new_symbol): Update.
6025
6026 2020-04-24 Tom Tromey <tromey@adacore.com>
6027
6028 PR python/23662:
6029 * python/py-type.c (convert_field): Handle
6030 FIELD_LOC_KIND_DWARF_BLOCK.
6031 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
6032 (typy_get_dynamic): Nw function.
6033 (type_object_getset): Add "dynamic".
6034 * NEWS: Add entry.
6035
6036 2020-04-24 Tom Tromey <tromey@adacore.com>
6037
6038 * ada-typeprint.c (print_choices, print_variant_part)
6039 (print_record_field_types_dynamic): New functions.
6040 (print_record_field_types): Use print_record_field_types_dynamic.
6041
6042 2020-04-24 Tom Tromey <tromey@adacore.com>
6043
6044 * dwarf2/read.c (handle_data_member_location): New overload.
6045 (dwarf2_add_field): Use it.
6046 (decode_locdesc): Add "computed" parameter. Update comment.
6047 * gdbtypes.c (is_dynamic_type_internal): Also look for
6048 FIELD_LOC_KIND_DWARF_BLOCK.
6049 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
6050 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
6051 virtual base classes.
6052 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
6053 FIELD_LOC_KIND_DWARF_BLOCK.
6054
6055 2020-04-24 Tom Tromey <tromey@adacore.com>
6056
6057 * dwarf2/read.c (read_structure_type): Handle dynamic length.
6058 * gdbtypes.c (is_dynamic_type_internal): Check
6059 TYPE_HAS_DYNAMIC_LENGTH.
6060 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
6061 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
6062 New macros.
6063 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
6064 constant.
6065
6066 2020-04-24 Tom Tromey <tromey@adacore.com>
6067
6068 * dwarf2/read.c (struct variant_field): Rewrite.
6069 (struct variant_part_builder): New.
6070 (struct nextfield): Remove "variant" field. Add "offset".
6071 (struct field_info): Add "current_variant_part" and
6072 "variant_parts".
6073 (alloc_discriminant_info): Remove.
6074 (alloc_rust_variant): New function.
6075 (quirk_rust_enum): Update.
6076 (dwarf2_add_field): Set "offset" member. Don't handle
6077 DW_TAG_variant_part.
6078 (offset_map_type): New typedef.
6079 (convert_variant_range, create_one_variant)
6080 (create_one_variant_part, create_variant_parts)
6081 (add_variant_property): New functions.
6082 (dwarf2_attach_fields_to_type): Call add_variant_property.
6083 (read_structure_type): Don't handle DW_TAG_variant_part.
6084 (handle_variant_part, handle_variant): New functions.
6085 (handle_struct_member_die): Use them.
6086 (process_structure_scope): Don't handle variant parts.
6087 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
6088 (struct discriminant_info): Remove.
6089 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
6090 (struct main_type) <flag_discriminated_union>: Remove.
6091 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
6092 (rust_enum_variant): Return int. Remove "contents". Rewrite.
6093 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
6094 Update.
6095 * valops.c (value_union_variant): Remove.
6096 * value.h (value_union_variant): Don't declare.
6097
6098 2020-04-24 Tom Tromey <tromey@adacore.com>
6099
6100 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
6101 (ada_value_primitive_packed_val): Update.
6102 * ada-valprint.c (ada_value_print_1): Update.
6103 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
6104 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
6105 just an address. Use evaluate_for_locexpr_baton.
6106 (dwarf2_evaluate_property): Update.
6107 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
6108 array_view.
6109 * findvar.c (default_read_var_value): Update.
6110 * gdbtypes.c (compute_variant_fields_inner)
6111 (resolve_dynamic_type_internal): Update.
6112 (resolve_dynamic_type): Change type of valaddr parameter.
6113 * gdbtypes.h (resolve_dynamic_type): Update.
6114 * valarith.c (value_subscripted_rvalue): Update.
6115 * value.c (value_from_contents_and_address): Update.
6116
6117 2020-04-24 Tom Tromey <tromey@adacore.com>
6118
6119 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
6120 "push_initial_value" parameter.
6121 (dwarf2_evaluate_property): Likewise.
6122 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
6123
6124 2020-04-24 Tom Tromey <tromey@adacore.com>
6125
6126 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
6127 (variant::matches, compute_variant_fields_recurse)
6128 (compute_variant_fields_inner, compute_variant_fields): New
6129 functions.
6130 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
6131 Use resolved_type after type is made.
6132 (operator==): Add new cases.
6133 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
6134 (struct discriminant_range, struct variant, struct variant_part):
6135 New.
6136 (union dynamic_prop_data) <variant_parts, original_type>: New
6137 members.
6138 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
6139 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
6140 constants.
6141 * value.c (unpack_bits_as_long): Now public.
6142 * value.h (unpack_bits_as_long): Declare.
6143
6144 2020-04-24 Tom Tromey <tromey@adacore.com>
6145
6146 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
6147 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
6148
6149 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
6150
6151 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
6152
6153 2020-04-24 Kamil Rytarowski <n54@gmx.com>
6154
6155 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
6156 (remove_fork_catchpoint, post_startup_inferior)
6157 (post_attach): Move...
6158 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
6159 (remove_fork_catchpoint, post_startup_inferior)
6160 (post_attach): ...here.
6161 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
6162 (remove_fork_catchpoint, post_startup_inferior)
6163 (post_attach): Move...
6164 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
6165 (remove_fork_catchpoint, post_startup_inferior)
6166 (post_attach): ...here.
6167
6168 2020-04-24 Tom Tromey <tromey@adacore.com>
6169
6170 * nat/windows-nat.h (struct windows_thread_info)
6171 <pc_adjusted>: New member.
6172 * windows-nat.c (windows_fetch_one_register): Check
6173 pc_adjusted.
6174 (windows_nat_target::get_windows_debug_event)
6175 (windows_nat_target::wait): Set pc_adjusted.
6176
6177 2020-04-24 Tom de Vries <tdevries@suse.de>
6178
6179 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
6180 Run gdb-add-index inside temp dir.
6181
6182 2020-04-23 Tom Tromey <tromey@adacore.com>
6183
6184 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
6185 in loop.
6186
6187 2020-04-23 Luis Machado <luis.machado@linaro.org>
6188
6189 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
6190 get_frame_register instead of gdbarch_unwind_pc.
6191
6192 2020-04-23 Tom de Vries <tdevries@suse.de>
6193
6194 * symtab.c (lookup_global_symbol): Prefer def over decl.
6195
6196 2020-04-23 Tom de Vries <tdevries@suse.de>
6197
6198 PR symtab/25807
6199 * block.c (best_symbol, better_symbol): Promote to external.
6200 * block.h (best_symbol, better_symbol): Declare.
6201 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
6202 decl.
6203
6204 2020-04-23 Tom Tromey <tromey@adacore.com>
6205
6206 PR ada/25837:
6207 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
6208 "const char *", not a "const std::string &".
6209 <name_and_matcher::operator==>: Update.
6210 * unittests/lookup_name_info-selftests.c: Change type of
6211 "result".
6212
6213 2020-04-23 Tom Tromey <tom@tromey.com>
6214
6215 * inferior.h (iterate_over_inferiors): Don't declare.
6216 * inferior.c (iterate_over_inferiors): Remove.
6217 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
6218 Remove.
6219 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
6220 use iterate_over_inferiors.
6221 (darwin_resume_inferior_it)
6222 (struct resume_inferior_threads_param)
6223 (darwin_resume_inferior_threads_it): Remove.
6224 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
6225
6226 2020-04-23 Tom de Vries <tdevries@suse.de>
6227
6228 * blockframe.c (find_pc_partial_function): Use
6229 find_pc_sect_compunit_symtab rather than
6230 objfile->sf->qf->find_pc_sect_compunit_symtab.
6231
6232 2020-04-22 Tom de Vries <tdevries@suse.de>
6233
6234 PR symtab/25764
6235 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
6236 in psymtabs.
6237
6238 2020-04-22 Tom de Vries <tdevries@suse.de>
6239
6240 PR symtab/25801
6241 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
6242 symtabs.
6243
6244 2020-04-22 Tom de Vries <tdevries@suse.de>
6245
6246 PR symtab/25700
6247 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
6248 CU if already created.
6249
6250 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6251
6252 * infrun.c (displaced_step_fixup): Switch to the event_thread
6253 before calling displaced_step_restore, not after.
6254
6255 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6256
6257 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
6258 its inferior is not recorded by us.
6259 (record_btrace_target_open): Replace call to
6260 all_non_exited_threads () with call to current_inferior
6261 ()->non_exited_threads ().
6262 (record_btrace_target::stop_recording): Likewise.
6263 (record_btrace_target::close): Likewise.
6264 (record_btrace_target::wait): Likewise.
6265 (record_btrace_target::record_stop_replaying): Likewise.
6266
6267 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6268
6269 * btrace.c (btrace_enable): Throw an error on double enables and
6270 when enabling recording fails.
6271 (btrace_disable): Throw an error if the thread is not recorded.
6272
6273 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6274
6275 * record-btrace.c (record_btrace_target::fetch_registers): Forward
6276 request if we do not have a thread_info.
6277
6278 2020-04-21 Tom de Vries <tdevries@suse.de>
6279
6280 PR gdb/25471
6281 * thread.c
6282 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
6283 exception in get_frame_id.
6284
6285 2020-04-20 Tom Tromey <tromey@adacore.com>
6286
6287 * python/python.c (struct gdbpy_event): Mark move constructor as
6288 noexcept.
6289 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
6290 constructor as noexcept.
6291 * completer.h (struct completion_result): Mark move constructor as
6292 noexcept.
6293 * completer.c (completion_result::completion_result): Use
6294 initialization style. Don't call reset_match_list.
6295
6296 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
6297
6298 * MAINTAINERS (Write After Approval): Add myself.
6299
6300 2020-04-18 Tom Tromey <tom@tromey.com>
6301
6302 * windows-tdep.c (init_w32_command_list)
6303 (w32_prefix_command_valid): Restore.
6304 (_initialize_windows_tdep): Call init_w32_command_list.
6305
6306 2020-04-18 Tom Tromey <tom@tromey.com>
6307
6308 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
6309 * value.c (value_fn_field): Update.
6310 * valops.c (find_function_in_inferior)
6311 (value_allocate_space_in_inferior): Update.
6312 * tui/tui-winsource.c (tui_update_source_windows_with_line):
6313 Update.
6314 * tui/tui-source.c (tui_source_window::set_contents): Update.
6315 * symtab.c (lookup_global_or_static_symbol)
6316 (find_function_start_sal_1, skip_prologue_sal)
6317 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
6318 * symmisc.c (dump_msymbols, dump_symtab_1)
6319 (maintenance_print_one_line_table): Update.
6320 * symfile.c (init_entry_point_info, section_is_mapped)
6321 (list_overlays_command, simple_read_overlay_table)
6322 (simple_overlay_update_1): Update.
6323 * stap-probe.c (handle_stap_probe): Update.
6324 * stabsread.c (dbx_init_float_type, define_symbol)
6325 (read_one_struct_field, read_enum_type, read_range_type): Update.
6326 * source.c (info_line_command): Update.
6327 * python/python.c (gdbpy_source_objfile_script)
6328 (gdbpy_execute_objfile_script): Update.
6329 * python/py-type.c (save_objfile_types): Update.
6330 * python/py-objfile.c (py_free_objfile): Update.
6331 * python/py-inferior.c (python_new_objfile): Update.
6332 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
6333 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
6334 (maintenance_check_psymtabs): Update.
6335 * printcmd.c (info_address_command): Update.
6336 * objfiles.h (struct objfile) <arch>: New method, from
6337 get_objfile_arch.
6338 (get_objfile_arch): Don't declare.
6339 * objfiles.c (get_objfile_arch): Remove.
6340 (filter_overlapping_sections): Update.
6341 * minsyms.c (msymbol_is_function): Update.
6342 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
6343 (output_nondebug_symbol): Update.
6344 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
6345 (mdebug_expand_psymtab): Update.
6346 * machoread.c (macho_add_oso_symfile): Update.
6347 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
6348 Update.
6349 * linux-fork.c (checkpoint_command): Update.
6350 * linespec.c (convert_linespec_to_sals): Update.
6351 * jit.c (finalize_symtab): Update.
6352 * infrun.c (insert_exception_resume_from_probe): Update.
6353 * ia64-tdep.c (ia64_find_unwind_table): Update.
6354 * hppa-tdep.c (internalize_unwinds): Update.
6355 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
6356 Update.
6357 * gcore.c (call_target_sbrk): Update.
6358 * elfread.c (record_minimal_symbol, elf_symtab_read)
6359 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
6360 (elf_gnu_ifunc_resolve_by_got): Update.
6361 * dwarf2/read.c (create_addrmap_from_index)
6362 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6363 (read_debug_names_from_section)
6364 (process_psymtab_comp_unit_reader, add_partial_symbol)
6365 (add_partial_subprogram, process_full_comp_unit)
6366 (read_file_scope, read_func_scope, read_lexical_block_scope)
6367 (read_call_site_scope, dwarf2_ranges_read)
6368 (dwarf2_record_block_ranges, dwarf2_add_field)
6369 (mark_common_block_symbol_computed, read_tag_pointer_type)
6370 (read_tag_string_type, dwarf2_init_float_type)
6371 (dwarf2_init_complex_target_type, read_base_type)
6372 (partial_die_info::read, partial_die_info::read)
6373 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
6374 (dwarf2_fetch_die_loc_sect_off): Update.
6375 * dwarf2/loc.c (dwarf2_find_location_expression)
6376 (class dwarf_evaluate_loc_desc, rw_pieced_value)
6377 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
6378 (dwarf2_loc_desc_get_symbol_read_needs)
6379 (locexpr_describe_location_piece, locexpr_describe_location_1)
6380 (loclist_describe_location): Update.
6381 * dwarf2/index-write.c (write_debug_names): Update.
6382 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
6383 * dtrace-probe.c (dtrace_process_dof): Update.
6384 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6385 (process_one_symbol): Update.
6386 * ctfread.c (ctf_init_float_type, read_base_type): Update.
6387 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6388 (coff_read_enum_type): Update.
6389 * cli/cli-cmds.c (edit_command, list_command): Update.
6390 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6391 * breakpoint.c (create_overlay_event_breakpoint)
6392 (create_longjmp_master_breakpoint)
6393 (create_std_terminate_master_breakpoint)
6394 (create_exception_master_breakpoint, get_sal_arch): Update.
6395 * block.c (block_gdbarch): Update.
6396 * annotate.c (annotate_source_line): Update.
6397
6398 2020-04-17 Tom Tromey <tromey@adacore.com>
6399
6400 * auto-load.c (show_auto_load_cmd): Remove.
6401 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6402 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6403 (maintenance_print_arc_command): Remove.
6404 * tui/tui-win.c (tui_command): Remove.
6405 (tui_get_cmd_list): Use add_basic_prefix_cmd.
6406 * tui/tui-layout.c (tui_layout_command): Remove.
6407 (_initialize_tui_layout): Use add_basic_prefix_cmd.
6408 * python/python.c (user_set_python, user_show_python): Remove.
6409 (_initialize_python): Use add_basic_prefix_cmd,
6410 add_show_prefix_cmd.
6411 * guile/guile.c (set_guile_command, show_guile_command): Remove.
6412 (install_gdb_commands): Use add_basic_prefix_cmd,
6413 add_show_prefix_cmd.
6414 (info_guile_command): Remove.
6415 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6416 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6417 add_show_prefix_cmd.
6418 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6419 Remove do_set and do_show parameters.
6420 * cli/cli-style.c (set_style, show_style): Remove.
6421 (_initialize_cli_style): Use add_basic_prefix_cmd,
6422 add_show_prefix_cmd.
6423 (cli_style_option::add_setshow_commands): Remove do_set and
6424 do_show parameters.
6425 (cli_style_option::add_setshow_commands): Use
6426 add_basic_prefix_cmd, add_show_prefix_cmd.
6427 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6428 (set_style_name): Remove.
6429 * cli/cli-dump.c (dump_command, append_command): Remove.
6430 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6431 (tekhex_dump_command, binary_dump_command)
6432 (binary_append_command): Remove.
6433 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6434 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6435 (init_w32_command_list): Remove; move into ...
6436 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6437 * valprint.c (set_print, show_print, set_print_raw)
6438 (show_print_raw): Remove.
6439 (_initialize_valprint): Use add_basic_prefix_cmd,
6440 add_show_prefix_cmd.
6441 * typeprint.c (set_print_type, show_print_type): Remove.
6442 (_initialize_typeprint): Use add_basic_prefix_cmd,
6443 add_show_prefix_cmd.
6444 * record.c (set_record_command, show_record_command): Remove.
6445 (_initialize_record): Use add_basic_prefix_cmd,
6446 add_show_prefix_cmd.
6447 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6448 add_show_prefix_cmd.
6449 (info_command, show_command, set_debug, show_debug): Remove.
6450 * top.h (set_history, show_history): Don't declare.
6451 * top.c (set_history, show_history): Remove.
6452 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6453 (unset_tdesc_cmd): Remove.
6454 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6455 add_show_prefix_cmd.
6456 * symtab.c (info_module_command): Remove.
6457 (_initialize_symtab): Use add_basic_prefix_cmd.
6458 * symfile.c (overlay_command): Remove.
6459 (_initialize_symfile): Use add_basic_prefix_cmd.
6460 * sparc64-tdep.c (info_adi_command): Remove.
6461 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6462 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6463 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6464 add_show_prefix_cmd.
6465 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6466 (_initialize_serial): Use add_basic_prefix_cmd,
6467 add_show_prefix_cmd.
6468 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6469 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6470 add_show_prefix_cmd.
6471 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6472 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6473 add_show_prefix_cmd.
6474 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6475 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6476 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6477 add_show_prefix_cmd.
6478 * remote.c (remote_command, set_remote_cmd): Remove.
6479 (_initialize_remote): Use add_basic_prefix_cmd.
6480 * record-full.c (set_record_full_command)
6481 (show_record_full_command): Remove.
6482 (_initialize_record_full): Use add_basic_prefix_cmd,
6483 add_show_prefix_cmd.
6484 * record-btrace.c (cmd_set_record_btrace)
6485 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6486 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6487 (cmd_show_record_btrace_pt): Remove.
6488 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6489 add_show_prefix_cmd.
6490 * ravenscar-thread.c (set_ravenscar_command)
6491 (show_ravenscar_command): Remove.
6492 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6493 add_show_prefix_cmd.
6494 * mips-tdep.c (show_mips_command, set_mips_command)
6495 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6496 add_show_prefix_cmd.
6497 * maint.c (maintenance_command, maintenance_info_command)
6498 (maintenance_check_command, maintenance_print_command)
6499 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6500 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6501 add_show_prefix_cmd.
6502 (show_per_command_cmd): Remove.
6503 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6504 Remove.
6505 (maintenance_show_test_settings_cmd): Remove.
6506 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6507 add_show_prefix_cmd.
6508 * maint-test-options.c (maintenance_test_options_command):
6509 Remove.
6510 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6511 * macrocmd.c (macro_command): Remove
6512 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6513 * language.c (set_check, show_check): Remove.
6514 (_initialize_language): Use add_basic_prefix_cmd,
6515 add_show_prefix_cmd.
6516 * infcmd.c (unset_command): Remove.
6517 (_initialize_infcmd): Use add_basic_prefix_cmd.
6518 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6519 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6520 add_show_prefix_cmd.
6521 * go32-nat.c (go32_info_dos_command): Remove.
6522 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6523 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6524 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6525 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6526 (_initialize_frame): Use add_basic_prefix_cmd,
6527 add_show_prefix_cmd.
6528 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6529 (_initialize_dcache): Use add_basic_prefix_cmd,
6530 add_show_prefix_cmd.
6531 * cp-support.c (maint_cplus_command): Remove.
6532 (_initialize_cp_support): Use add_basic_prefix_cmd.
6533 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6534 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6535 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6536 add_basic_prefix_cmd, add_show_prefix_cmd.
6537 * breakpoint.c (save_command): Remove.
6538 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6539 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6540 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6541 add_show_prefix_cmd.
6542 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6543 (set_ada_command, show_ada_command): Remove.
6544 (_initialize_ada_language): Use add_basic_prefix_cmd,
6545 add_show_prefix_cmd.
6546 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6547
6548 2020-04-16 Kamil Rytarowski <n54@gmx.com>
6549
6550 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6551 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6552
6553 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6554
6555 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6556 warning messages.
6557
6558 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6559
6560 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6561 import table is not at beginning of .idata section.
6562
6563 2020-04-16 Pedro Alves <palves@redhat.com>
6564
6565 * inferior.c (delete_inferior): Use delete operator directly
6566 instead of delete_program_space.
6567 * progspace.c (add_program_space): New, factored out from
6568 program_space::program_space.
6569 (remove_program_space): New, factored out from
6570 delete_program_space.
6571 (program_space::program_space): Remove intro comment. Rewrite.
6572 (program_space::~program_space): Remove intro comment. Call
6573 remove_program_space.
6574 (delete_program_space): Delete.
6575 * progspace.h (program_space::program_space): Make explicit. Move
6576 intro comment here, adjusted.
6577 (program_space::~program_space): Move intro comment here,
6578 adjusted.
6579 (delete_program_space): Remove.
6580
6581 2020-04-16 Tom Tromey <tromey@adacore.com>
6582
6583 * windows-nat.c (windows_nat::handle_access_violation): New
6584 function.
6585 * nat/windows-nat.h (handle_access_violation): Declare.
6586 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6587 windows-nat.c. Call handle_access_violation.
6588
6589 2020-04-16 Tom de Vries <tdevries@suse.de>
6590
6591 PR symtab/25791
6592 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6593 CUs without psymtab.
6594
6595 2020-04-16 Kevin Buettner <kevinb@redhat.com>
6596
6597 * python/python.c (do_start_initialization): Don't call
6598 PyEval_InitThreads for Python 3.9 and beyond.
6599
6600 2020-04-15 Kamil Rytarowski <n54@gmx.com>
6601
6602 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6603 thread functions.
6604 (obsd_nat_target::wait): Likewise.
6605
6606 2020-04-15 Tom Tromey <tromey@adacore.com>
6607
6608 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6609 (DEBUG_EXCEPT): Use debug_printf.
6610
6611 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6612
6613 * completer.c (class completion_tracker::completion_hash_entry)
6614 <hash_name>: New member function.
6615 (completion_tracker::discard_completions): New callback to hash a
6616 completion_hash_entry, pass this to htab_create_alloc.
6617
6618 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6619
6620 * windows-nat.c (windows_make_so): Warn rather than stopping with
6621 an error if realpath() fails.
6622
6623 2020-04-14 Kamil Rytarowski <n54@gmx.com>
6624
6625 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6626 (nbsd_nat_target::info_proc): Add do_status.
6627
6628 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6629 Tom de Vries <tdevries@suse.de>
6630
6631 PR symtab/25718
6632 * psympriv.h (struct partial_symtab::read_symtab)
6633 (struct partial_symtab::expand_psymtab)
6634 (struct partial_symtab::read_dependencies): Update comments.
6635 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6636 read_symtab for includer.
6637 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6638 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6639 (struct dwarf2_include_psymtab::m_readin): Remove.
6640 (struct dwarf2_include_psymtab::includer): New member function.
6641 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6642
6643 2020-04-14 Tom de Vries <tdevries@suse.de>
6644
6645 PR symtab/25720
6646 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6647 with NULL symbol_matcher and lookup_name.
6648 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6649 and lookup_name.
6650 * dwarf2/read.c (dw2_expand_symtabs_matching)
6651 (dw2_debug_names_expand_symtabs_matching): Same.
6652 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6653 Make lookup_name a pointer. Update comment.
6654 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6655 lookup_name being a pointer.
6656 * symfile.c (expand_symtabs_matching): Same.
6657 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6658 * linespec.c (iterate_over_all_matching_symtabs): Same.
6659
6660 2020-04-13 Tom Tromey <tom@tromey.com>
6661
6662 * run-on-main-thread.c: Update include.
6663 * unittests/main-thread-selftests.c: Update include.
6664 * tui/tui-win.c: Update include.
6665 * tui/tui-io.c: Update include.
6666 * tui/tui-interp.c: Update include.
6667 * tui/tui-hooks.c: Update include.
6668 * top.h: Update include.
6669 * top.c: Update include.
6670 * ser-base.c: Update include.
6671 * remote.c: Update include.
6672 * remote-notif.c: Update include.
6673 * remote-fileio.c: Update include.
6674 * record-full.c: Update include.
6675 * record-btrace.c: Update include.
6676 * python/python.c: Update include.
6677 * posix-hdep.c: Update include.
6678 * mingw-hdep.c: Update include.
6679 * mi/mi-main.c: Update include.
6680 * mi/mi-interp.c: Update include.
6681 * main.c: Update include.
6682 * linux-nat.c: Update include.
6683 * interps.c: Update include.
6684 * infrun.c: Update include.
6685 * inf-loop.c: Update include.
6686 * event-top.c: Update include.
6687 * event-loop.c: Move to ../gdbsupport/.
6688 * event-loop.h: Move to ../gdbsupport/.
6689 * async-event.h: Update include.
6690 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6691
6692 2020-04-13 Tom Tromey <tom@tromey.com>
6693
6694 * tui/tui-win.c: Include async-event.h.
6695 * remote.c: Include async-event.h.
6696 * remote-notif.c: Include async-event.h.
6697 * record-full.c: Include async-event.h.
6698 * record-btrace.c: Include async-event.h.
6699 * infrun.c: Include async-event.h.
6700 * event-top.c: Include async-event.h.
6701 * event-loop.h: Move some declarations to async-event.h.
6702 * event-loop.c: Don't include ser-event.h or top.h. Move some
6703 code to async-event.c.
6704 * async-event.h: New file.
6705 * async-event.c: New file.
6706 * Makefile.in (COMMON_SFILES): Add async-event.c.
6707 (HFILES_NO_SRCDIR): Add async-event.h.
6708
6709 2020-04-13 Tom Tromey <tom@tromey.com>
6710
6711 * utils.c (flush_streams): New function.
6712 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6713
6714 2020-04-13 Tom Tromey <tom@tromey.com>
6715
6716 * event-loop.c (handle_file_event): Use warning, not
6717 printf_unfiltered.
6718
6719 2020-04-13 Tom Tromey <tom@tromey.com>
6720
6721 * event-loop.c: Include <chrono>.
6722
6723 2020-04-13 Tom Tromey <tom@tromey.com>
6724
6725 * gdb_select.h: Move to ../gdbsupport/.
6726 * event-loop.c: Update include path.
6727 * top.c: Update include path.
6728 * ser-base.c: Update include path.
6729 * ui-file.c: Update include path.
6730 * ser-tcp.c: Update include path.
6731 * guile/scm-ports.c: Update include path.
6732 * posix-hdep.c: Update include path.
6733 * ser-unix.c: Update include path.
6734 * gdb_usleep.c: Update include path.
6735 * mingw-hdep.c: Update include path.
6736 * inflow.c: Update include path.
6737 * infrun.c: Update include path.
6738 * event-top.c: Update include path.
6739
6740 2020-04-13 Tom Tromey <tom@tromey.com>
6741
6742 * configure: Rebuild.
6743 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6744
6745 2020-04-13 Tom Tromey <tom@tromey.com>
6746
6747 * event-loop.h (start_event_loop): Don't declare.
6748 * event-loop.c (start_event_loop): Move...
6749 * main.c (start_event_loop): ...here. Now static.
6750
6751 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6752
6753 * MAINTAINERS: Update my email address.
6754
6755 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6756
6757 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6758 IP_ALL.
6759
6760 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6761
6762 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
6763 (nbsd_nat_target::info_proc): Add do_cmdline.
6764
6765 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6766
6767 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
6768 (nbsd_nat_target::info_proc): Add do_cwd.
6769
6770 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6771
6772 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6773
6774 2020-04-11 Kamil Rytarowski <n54@gmx.com>
6775
6776 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6777 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6778 (nbsd_nat_target::info_proc): New functions.
6779 * nbsd-nat.c (kinfo_get_vmmap): New function.
6780 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6781 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6782 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6783 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6784 functions.
6785 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6786 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6787 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6788 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6789 (KINFO_VME_FLAG_GROWS_DOWN): New.
6790
6791 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6792
6793 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6794 bit shift.
6795
6796 2020-04-10 Tom Tromey <tromey@adacore.com>
6797
6798 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6799
6800 2020-04-10 Tom Tromey <tromey@adacore.com>
6801
6802 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6803 separate debug files.
6804
6805 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
6806
6807 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6808 Move to...
6809 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6810 ... here.
6811 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6812 Check for STATUS_WX86_BREAKPOINT.
6813 (windows_nat_target::wait): Same.
6814
6815 2020-04-10 Tom de Vries <tdevries@suse.de>
6816
6817 PR cli/25808
6818 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6819
6820 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6821
6822 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6823 (Write After Approval): Remove Tom de Vries.
6824
6825 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6826
6827 revert partially:
6828 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6829
6830 * buildsym.c (record_line): Fix undefined behavior and preserve
6831 lines at eof.
6832
6833 2020-04-09 Kamil Rytarowski <n54@gmx.com>
6834
6835 * auxv.h (svr4_auxv_parse): New.
6836 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6837 and generic_auxv_parse.
6838 (svr4_auxv_parse): Add.
6839 * obsd-tdep.c: Include "auxv.h".
6840 (obsd_auxv_parse): Remove.
6841 (obsd_init_abi): Remove comment.
6842 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6843 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6844 * nbsd-tdep.c: Include "auxv.h".
6845 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6846
6847 2020-04-08 Tom Tromey <tromey@adacore.com>
6848
6849 * nat/windows-nat.h (last_wait_event): Don't declare.
6850 (wait_for_debug_event): Update comment.
6851 * nat/windows-nat.c (last_wait_event): Now static.
6852
6853 2020-04-08 Tom Tromey <tromey@adacore.com>
6854
6855 * windows-nat.c (wait_for_debug_event): Move to
6856 nat/windows-nat.c.
6857 * nat/windows-nat.h (wait_for_debug_event): Declare.
6858 * nat/windows-nat.c (wait_for_debug_event): Move from
6859 windows-nat.c. No longer static.
6860
6861 2020-04-08 Tom Tromey <tromey@adacore.com>
6862
6863 * windows-nat.c (get_windows_debug_event): Use
6864 fetch_pending_stop.
6865 * nat/windows-nat.h (fetch_pending_stop): Declare.
6866 * nat/windows-nat.c (fetch_pending_stop): New function.
6867
6868 2020-04-08 Tom Tromey <tromey@adacore.com>
6869
6870 * windows-nat.c (windows_continue): Use matching_pending_stop and
6871 continue_last_debug_event.
6872 * nat/windows-nat.h (matching_pending_stop)
6873 (continue_last_debug_event): Declare.
6874 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6875 (matching_pending_stop, continue_last_debug_event): New
6876 functions.
6877
6878 2020-04-08 Tom Tromey <tromey@adacore.com>
6879
6880 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6881 (handle_exception_result): Move to nat/windows-nat.h.
6882 (DEBUG_EXCEPTION_SIMPLE): Remove.
6883 (windows_nat::handle_ms_vc_exception): New function.
6884 (handle_exception): Move to nat/windows-nat.c.
6885 (get_windows_debug_event): Update.
6886 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6887 nat/windows-nat.c.
6888 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6889 (handle_exception_result): Move from windows-nat.c.
6890 (handle_exception): Declare.
6891 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6892 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6893 windows-nat.c.
6894
6895 2020-04-08 Tom Tromey <tromey@adacore.com>
6896
6897 * windows-nat.c (exception_count, event_count): Remove.
6898 (handle_exception, get_windows_debug_event)
6899 (do_initial_windows_stuff): Update.
6900
6901 2020-04-08 Tom Tromey <tromey@adacore.com>
6902
6903 * windows-nat.c (windows_nat::handle_load_dll)
6904 (windows_nat::handle_unload_dll): Rename. No longer static.
6905 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6906 Declare.
6907
6908 2020-04-08 Tom Tromey <tromey@adacore.com>
6909
6910 * complaints.h (stop_whining): Declare at top-level.
6911 (complaint): Don't declare stop_whining.
6912
6913 2020-04-08 Tom Tromey <tromey@adacore.com>
6914
6915 * windows-nat.c (windows_nat::handle_output_debug_string):
6916 Rename. No longer static.
6917 * nat/windows-nat.h (handle_output_debug_string): Declare.
6918
6919 2020-04-08 Tom Tromey <tromey@adacore.com>
6920
6921 * windows-nat.c (current_process_handle, current_process_id)
6922 (main_thread_id, last_sig, current_event, last_wait_event)
6923 (current_windows_thread, desired_stop_thread_id, pending_stops)
6924 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6925 (display_selectors, fake_create_process)
6926 (get_windows_debug_event): Update.
6927 * nat/windows-nat.h (current_process_handle, current_process_id)
6928 (main_thread_id, last_sig, current_event, last_wait_event)
6929 (current_windows_thread, desired_stop_thread_id, pending_stops)
6930 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6931 * nat/windows-nat.c (current_process_handle, current_process_id)
6932 (main_thread_id, last_sig, current_event, last_wait_event)
6933 (current_windows_thread, desired_stop_thread_id, pending_stops)
6934 (siginfo_er): New globals. Move from windows-nat.c.
6935
6936 2020-04-08 Tom Tromey <tromey@adacore.com>
6937
6938 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6939 (handle_load_dll): Update.
6940 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6941
6942 2020-04-08 Tom Tromey <tromey@adacore.com>
6943
6944 * windows-nat.c (enum thread_disposition_type): Move to
6945 nat/windows-nat.h.
6946 (windows_nat::thread_rec): Rename from thread_rec. No longer
6947 static.
6948 (windows_add_thread, windows_nat_target::fetch_registers)
6949 (windows_nat_target::store_registers, handle_exception)
6950 (windows_nat_target::resume, get_windows_debug_event)
6951 (windows_nat_target::get_tib_address)
6952 (windows_nat_target::thread_name)
6953 (windows_nat_target::thread_alive): Update.
6954 * nat/windows-nat.h (enum thread_disposition_type): Move from
6955 windows-nat.c.
6956 (thread_rec): Declare.
6957
6958 2020-04-08 Tom Tromey <tromey@adacore.com>
6959
6960 * windows-nat.c: Add "using namespace".
6961 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6962 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6963
6964 2020-04-08 Tom Tromey <tromey@adacore.com>
6965
6966 * nat/windows-nat.h (struct windows_thread_info): Declare
6967 destructor.
6968 * nat/windows-nat.c (~windows_thread_info): New.
6969
6970 2020-04-08 Tom Tromey <tromey@adacore.com>
6971
6972 PR gdb/22992
6973 * windows-nat.c (current_event): Update comment.
6974 (last_wait_event, desired_stop_thread_id): New globals.
6975 (struct pending_stop): New.
6976 (pending_stops): New global.
6977 (windows_nat_target) <stopped_by_sw_breakpoint>
6978 <supports_stopped_by_sw_breakpoint>: New methods.
6979 (windows_fetch_one_register): Add assertions. Adjust PC.
6980 (windows_continue): Handle pending stops. Suspend other threads
6981 when stepping. Use last_wait_event
6982 (wait_for_debug_event): New function.
6983 (get_windows_debug_event): Use wait_for_debug_event. Handle
6984 pending stops. Queue spurious stops.
6985 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6986 (windows_nat_target::kill): Use wait_for_debug_event.
6987 * nat/windows-nat.h (struct windows_thread_info)
6988 <stopped_at_software_breakpoint>: New field.
6989 * nat/windows-nat.c (windows_thread_info::resume): Clear
6990 stopped_at_software_breakpoint.
6991
6992 2020-04-08 Tom Tromey <tromey@adacore.com>
6993
6994 * windows-nat.c (enum thread_disposition_type): New.
6995 (thread_rec): Replace "get_context" parameter with "disposition";
6996 change type.
6997 (windows_add_thread, windows_nat_target::fetch_registers)
6998 (windows_nat_target::store_registers, handle_exception)
6999 (windows_nat_target::resume, get_windows_debug_event)
7000 (windows_nat_target::get_tib_address)
7001 (windows_nat_target::thread_name)
7002 (windows_nat_target::thread_alive): Update.
7003
7004 2020-04-08 Tom Tromey <tromey@adacore.com>
7005
7006 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
7007 (windows_continue): Use windows_continue::resume.
7008 * nat/windows-nat.h (struct windows_thread_info) <suspend,
7009 resume>: Declare new methods.
7010 * nat/windows-nat.c: New file.
7011 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
7012
7013 2020-04-08 Tom Tromey <tromey@adacore.com>
7014
7015 * windows-nat.c (windows_add_thread, windows_delete_thread)
7016 (windows_nat_target::fetch_registers)
7017 (windows_nat_target::store_registers, fake_create_process)
7018 (windows_nat_target::resume, windows_nat_target::resume)
7019 (get_windows_debug_event, windows_nat_target::wait)
7020 (windows_nat_target::pid_to_str)
7021 (windows_nat_target::get_tib_address)
7022 (windows_nat_target::get_ada_task_ptid)
7023 (windows_nat_target::thread_name)
7024 (windows_nat_target::thread_alive): Use lwp, not tid.
7025
7026 2020-04-08 Tom Tromey <tromey@adacore.com>
7027
7028 * windows-nat.c (handle_exception)
7029 (windows_nat_target::thread_name): Update.
7030 * nat/windows-nat.h (windows_thread_info): Remove destructor.
7031 <name>: Now unique_xmalloc_ptr.
7032
7033 2020-04-08 Tom Tromey <tromey@adacore.com>
7034
7035 * windows-nat.c (thread_rec)
7036 (windows_nat_target::fetch_registers): Update.
7037 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
7038 Update comment.
7039 <debug_registers_changed, reload_context>: Now bool.
7040
7041 2020-04-08 Tom Tromey <tromey@adacore.com>
7042
7043 * windows-nat.c (windows_add_thread): Use new.
7044 (windows_init_thread_list, windows_delete_thread): Use delete.
7045 (get_windows_debug_event): Update.
7046 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
7047 destructor, and initializers.
7048
7049 2020-04-08 Tom Tromey <tromey@adacore.com>
7050
7051 * windows-nat.c (struct windows_thread_info): Remove.
7052 * nat/windows-nat.h: New file.
7053
7054 2020-04-08 Tom Tromey <tromey@adacore.com>
7055
7056 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
7057 (thread_rec, windows_add_thread, windows_delete_thread)
7058 (windows_continue): Update.
7059
7060 2020-04-08 Tom Tromey <tromey@adacore.com>
7061
7062 * windows-nat.c (struct windows_thread_info): Remove typedef.
7063 (thread_head): Remove.
7064 (thread_list): New global.
7065 (thread_rec, windows_add_thread, windows_init_thread_list)
7066 (windows_delete_thread, windows_continue): Update.
7067
7068 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7069
7070 * windows-tdep.h (windows_init_abi): Add comment.
7071 (cygwin_init_abi): New declaration.
7072 * windows-tdep.c: Split signal enumeration in two, one for
7073 Windows and one for Cygwin.
7074 (windows_gdb_signal_to_target): Only deal with signal of the
7075 Windows OS ABI.
7076 (cygwin_gdb_signal_to_target): New function.
7077 (windows_init_abi): Rename to windows_init_abi_common, don't set
7078 gdb_signal_to_target gdbarch method. Add new new function with
7079 this name.
7080 (cygwin_init_abi): New function.
7081 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
7082 comment. Don't call windows_init_abi.
7083 (amd64_windows_init_abi): Add comment, call windows_init_abi.
7084 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
7085 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
7086 i386_windows_init_abi_common, don't call windows_init_abi. Add
7087 a new function of this name.
7088 (i386_cygwin_init_abi): New function.
7089 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
7090 OS ABI Cygwin.
7091
7092 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7093
7094 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
7095 parameter.c.
7096 (dwarf2_read_gdb_index): Update.
7097
7098 2020-04-07 Kamil Rytarowski <n54@gmx.com>
7099
7100 * nbsd-tdep.c: Include "objfiles.h".
7101 (nbsd_skip_solib_resolver): New.
7102 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
7103
7104 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7105
7106 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
7107 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
7108 with DW_LLE_base_addressx are being emitted in DWARFv5.
7109 Add the newly added kind DW_LOC_OFFSET_PAIR also.
7110 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
7111 unsigned integer.
7112
7113 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7114
7115 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
7116 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
7117 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
7118 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
7119 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
7120 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
7121 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
7122
7123
7124 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7125
7126 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
7127 (read_loclist_index): New function definition.
7128 (lookup_loclist_base): New function definition.
7129 (read_loclist_header): New function definition.
7130 (dwarf2_cu): Add loclist_base and loclist_header field.
7131 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
7132 (read_full_die_1): Read the value of DW_AT_loclists_base.
7133 (read_attribute_reprocess): Handle DW_FORM_loclistx.
7134 (read_attribute_value): Handle DW_FORM_loclistx.
7135 (skip_one_die): Handle DW_FORM_loclistx.
7136 (loclist_header): New structure declaration.
7137 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
7138
7139 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7140
7141 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
7142 constructor. Remove `addr` parameter from other constructor and
7143 add `per_cu` parameter.
7144 * dwarf2/read.c (create_partial_symtab): Update.
7145
7146 2020-04-07 Tom de Vries <tdevries@suse.de>
7147
7148 PR symtab/25796
7149 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
7150 (partial_die_info::fixup): Inherit has_const_value.
7151
7152 2020-04-07 Tom de Vries <tdevries@suse.de>
7153
7154 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
7155 symbols without address.
7156
7157 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7158
7159 * nbsd-nat.h (struct thread_info): Add forward declaration.
7160 (nbsd_nat_target::thread_alive): Add.
7161 (nbsd_nat_target::thread_name): Likewise.
7162 (nbsd_nat_target::update_thread_list): Likewise.
7163 (update_thread_list::post_attach): Likewise.
7164 (post_attach::pid_to_str): Likewise.
7165 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
7166 (nbsd_thread_lister): Add.
7167 (nbsd_nat_target::thread_alive): Likewise.
7168 (nbsd_nat_target::thread_name): Likewise.
7169 (nbsd_add_threads): Likewise.
7170 (update_thread_list::post_attach): Likewise.
7171 (nbsd_nat_target::update_thread_list): Likewise.
7172 (post_attach::pid_to_str): Likewise.
7173
7174 2020-04-06 Tom Tromey <tromey@adacore.com>
7175
7176 * ada-valprint.c (print_variant_part): Extract the variant field.
7177 (print_field_values): Use the field as the outer value when
7178 recursing.
7179
7180 2020-04-06 Tom Tromey <tromey@adacore.com>
7181
7182 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
7183 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
7184 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
7185 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
7186 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
7187
7188 2020-04-06 Tom Tromey <tromey@adacore.com>
7189
7190 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
7191 TYPE_CODE_ERROR.
7192
7193 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7194
7195 * nbsd-tdep.c: Include "gdbarch.h".
7196 Define enum with NetBSD signal numbers.
7197 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
7198 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
7199 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
7200 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
7201 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
7202 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
7203 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
7204 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
7205 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
7206 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7207 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7208 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
7209
7210 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
7211
7212 PR gdb/25325
7213 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
7214
7215 2020-04-03 Tom Tromey <tromey@adacore.com>
7216
7217 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
7218 Read constant block.
7219
7220 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7221
7222 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
7223 (gdb_bfd_get_full_section_contents): New declaration.
7224 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
7225 * windows-tdep.c (is_linked_with_cygwin_dll): Use
7226 gdb_bfd_get_full_section_contents.
7227
7228 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7229
7230 * exec.c (build_section_table): Replace internal_error with
7231 gdb_assert.
7232 (section_table_xfer_memory_partial): Likewise.
7233 * mdebugread.c (parse_partial_symbols): Likewise.
7234 * psymtab.c (lookup_partial_symbol): Likewise.
7235 * utils.c (wrap_here): Likewise.
7236
7237 2020-04-02 Tom Tromey <tromey@adacore.com>
7238
7239 * f-lang.c (build_fortran_types): Use arch_type to initialize
7240 builtin_complex_s32 in the TYPE_CODE_ERROR case.
7241
7242 2020-04-02 Tom Tromey <tromey@adacore.com>
7243
7244 * dwarf2/read.c (partial_die_info::read): Do not create a vector
7245 of attributes.
7246
7247 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
7248 Bernd Edlinger <bernd.edlinger@hotmail.de>
7249 Tom Tromey <tromey@adacore.com>
7250
7251 * buildsym.c (buildsym_compunit::record_line): Remove
7252 deduplication code.
7253
7254 2020-04-02 Tom de Vries <tdevries@suse.de>
7255
7256 PR ada/24671
7257 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
7258
7259 2020-04-02 Tom de Vries <tdevries@suse.de>
7260
7261 * dwarf2/read.c (dwarf2_gdb_index_functions,
7262 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
7263 NULL.
7264 * psymtab.c (psym_lookup_global_symbol_language): New function.
7265 (psym_functions): Init psym_lookup_global_symbol_language with
7266 psym_lookup_global_symbol_language.
7267 * symfile-debug.c (debug_sym_quick_functions): Init
7268 lookup_global_symbol_language with NULL.
7269 * symfile.c (set_initial_language): Remove fixme comment.
7270 * symfile.h (struct quick_symbol_functions): Add
7271 lookup_global_symbol_language.
7272 * symtab.c (find_quick_global_symbol_language): New function.
7273 (find_main_name): Use find_quick_global_symbol_language.
7274
7275 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
7276
7277 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
7278
7279 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7280
7281 * buildsym.c (record_line): Fix undefined behavior and preserve
7282 lines at eof.
7283
7284 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7285
7286 * buildsym.c (record_line): Fix the resizing condition.
7287
7288 2020-04-01 Tom Tromey <tom@tromey.com>
7289
7290 * value.h (value_literal_complex): Add comment.
7291 * valops.c (value_literal_complex): Refer to value.h.
7292
7293 2020-04-01 Tom Tromey <tom@tromey.com>
7294
7295 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
7296 (scalar_type): New rule, from typebase.
7297 (typebase): Use scalar_type. Recognize complex types.
7298 (field_name): Handle FLOAT_KEYWORD.
7299 (ident_tokens): Add _Complex and __complex__.
7300
7301 2020-04-01 Tom Tromey <tom@tromey.com>
7302
7303 PR exp/25299:
7304 * valarith.c (promotion_type, complex_binop): New functions.
7305 (scalar_binop): Handle complex numbers. Use promotion_type.
7306 (value_pos, value_neg, value_complement): Handle complex numbers.
7307
7308 2020-04-01 Tom Tromey <tom@tromey.com>
7309
7310 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
7311 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
7312 (parse_number): Handle complex numbers.
7313
7314 2020-04-01 Tom Tromey <tom@tromey.com>
7315
7316 * c-valprint.c (c_decorations): Change complex suffix to "i".
7317
7318 2020-04-01 Tom Tromey <tom@tromey.com>
7319
7320 * valprint.c (generic_value_print_complex): Use accessors.
7321 * value.h (value_real_part, value_imaginary_part): Declare.
7322 * valops.c (value_real_part, value_imaginary_part): New
7323 functions.
7324 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
7325
7326 2020-04-01 Tom Tromey <tom@tromey.com>
7327
7328 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
7329 (read_range_type): Update.
7330 * mdebugread.c (basic_type): Update.
7331 * go-lang.c (build_go_types): Use init_complex_type.
7332 * gdbtypes.h (struct main_type) <complex_type>: New member.
7333 (init_complex_type): Update.
7334 (arch_complex_type): Don't declare.
7335 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
7336 Make name if none given. Use alloc_type_copy. Look for cached
7337 complex type.
7338 (arch_complex_type): Remove.
7339 (gdbtypes_post_init): Use init_complex_type.
7340 * f-lang.c (build_fortran_types): Use init_complex_type.
7341 * dwarf2/read.c (read_base_type): Update.
7342 * d-lang.c (build_d_types): Use init_complex_type.
7343 * ctfread.c (read_base_type): Update.
7344
7345 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7346
7347 * infrun.c (stop_all_threads): Update assertion, plus when
7348 stopping threads, take into account that we might be trying
7349 to stop an all-stop target.
7350 (stop_waiting): Call 'stop_all_threads' if there exists a
7351 non-stop target.
7352
7353 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7354
7355 * target.h (exists_non_stop_target): New function declaration.
7356 * target.c (exists_non_stop_target): New function.
7357
7358 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
7359
7360 PR gdb/24789
7361 * eval.c (is_integral_or_integral_reference): New function.
7362 (evaluate_subexp_standard): Allow integer references in
7363 pointer arithmetic.
7364
7365 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7366
7367 * remote.c (remote_target::remote_parse_stop_reply): Remove the
7368 check for no ptid in the stop reply when the target is non-stop.
7369
7370 2020-04-01 Tom Tromey <tromey@adacore.com>
7371
7372 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
7373 "name" parameter to rvalue reference. Initialize m_name_holder.
7374 <lookup_name_info>: New overloads.
7375 <name>: Return gdb::string_view.
7376 <c_str>: New method.
7377 <make_ignore_params>: Update.
7378 <search_name_hash>: Update.
7379 <language_lookup_name>: Return const char *.
7380 <m_name>: Change type.
7381 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
7382 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
7383 (lookup_name_info::match_any): Update.
7384 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7385 Update.
7386 * minsyms.c (linkage_name_str): Update.
7387 * language.c (default_symbol_name_matcher): Update.
7388 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7389 Update.
7390 * ada-lang.c (ada_fold_name): Change parameter to string_view.
7391 (ada_lookup_name_info::ada_lookup_name_info): Update.
7392 (literal_symbol_name_matcher): Update.
7393
7394 2020-04-01 Tom Tromey <tromey@adacore.com>
7395
7396 * psymtab.c (psymtab_search_name): Remove function.
7397 (psym_lookup_symbol): Create search name and lookup name here.
7398 (lookup_partial_symbol): Remove "name" parameter; add
7399 lookup_name.
7400 (psym_expand_symtabs_for_function): Update.
7401
7402 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
7403
7404 PR tui/25597:
7405 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7406
7407 2020-03-31 Tom Tromey <tromey@adacore.com>
7408
7409 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7410 memcpy.
7411
7412 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
7413
7414 * features/riscv/32bit-csr.xml: Regenerated.
7415 * features/riscv/64bit-csr.xml: Regenerated.
7416
7417 2020-03-30 Tom Tromey <tromey@adacore.com>
7418
7419 * ada-valprint.c (print_variant_part): Update.
7420 * ada-lang.h (ada_which_variant_applies): Update.
7421 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7422 outer_valaddr parameters; replace with "outer" value parameter.
7423 (to_fixed_variant_branch_type): Update.
7424
7425 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7426
7427 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7428 <list>. Remove inclusion of observable.h.
7429 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7430 (struct arch_lwp_info): New struct.
7431 (class ppc_linux_dreg_interface): New class.
7432 (struct ppc_linux_process_info): New struct.
7433 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7434 <low_new_clone, low_forget_process, low_prepare_to_resume>
7435 <copy_thread_dreg_state, mark_thread_stale>
7436 <mark_debug_registers_changed, register_hw_breakpoint>
7437 <clear_hw_breakpoint, register_wp, clear_wp>
7438 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7439 <num_memory_accesses, get_trigger_type>
7440 <create_watchpoint_request, hwdebug_point_cmp>
7441 <init_arch_lwp_info, get_arch_lwp_info>
7442 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7443 methods.
7444 <struct ptid_hash>: New inner struct.
7445 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7446 members.
7447 (saved_dabr_value, hwdebug_info, max_slots_number)
7448 (struct hw_break_tuple, struct thread_points, ppc_threads)
7449 (have_ptrace_hwdebug_interface)
7450 (hwdebug_find_thread_points_by_tid)
7451 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7452 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7453 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7454 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7455 use m_dreg_interface.
7456 (hwdebug_point_cmp): Change to...
7457 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7458 reference arguments instead of pointers.
7459 (ppc_linux_nat_target::ranged_break_num_registers): Use
7460 m_dreg_interface.
7461 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7462 m_dreg_interface. Call register_hw_breakpoint.
7463 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7464 m_dreg_interface. Call clear_hw_breakpoint.
7465 (get_trigger_type): Change to...
7466 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7467 comment.
7468 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7469 use m_dreg_interface. Call register_hw_breakpoint.
7470 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7471 use m_dreg_interface. Call clear_hw_breakpoint.
7472 (can_use_watchpoint_cond_accel): Change to...
7473 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7474 method. Update comment, use m_dreg_interface and
7475 m_process_info.
7476 (calculate_dvc): Change to...
7477 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7478 m_dreg_interface.
7479 (num_memory_accesses): Change to...
7480 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7481 (check_condition): Change to...
7482 (ppc_linux_nat_target::check_condition): ...this method.
7483 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7484 comment, use m_dreg_interface.
7485 (create_watchpoint_request): Change to...
7486 (ppc_linux_nat_target::create_watchpoint_request): ...this
7487 method. Use m_dreg_interface.
7488 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7489 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7490 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7491 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7492 (ppc_linux_nat_target::low_forget_process)
7493 (ppc_linux_nat_target::low_new_fork)
7494 (ppc_linux_nat_target::low_new_clone)
7495 (ppc_linux_nat_target::low_delete_thread)
7496 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7497 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7498 only call mark_thread_stale.
7499 (ppc_linux_thread_exit): Remove.
7500 (ppc_linux_nat_target::stopped_data_address): Change to...
7501 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7502 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7503 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7504 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7505 comment. Call low_stopped_data_address.
7506 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7507 m_dreg_interface.
7508 (ppc_linux_nat_target::masked_watch_num_registers): Use
7509 m_dreg_interface.
7510 (ppc_linux_nat_target::copy_thread_dreg_state)
7511 (ppc_linux_nat_target::mark_thread_stale)
7512 (ppc_linux_nat_target::mark_debug_registers_changed)
7513 (ppc_linux_nat_target::register_hw_breakpoint)
7514 (ppc_linux_nat_target::clear_hw_breakpoint)
7515 (ppc_linux_nat_target::register_wp)
7516 (ppc_linux_nat_target::clear_wp)
7517 (ppc_linux_nat_target::init_arch_lwp_info)
7518 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7519 (_initialize_ppc_linux_nat): Remove observer callback.
7520
7521 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7522
7523 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7524 (ppc_linux_nat_target::auxv_parse)
7525 (ppc_linux_nat_target::read_description)
7526 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7527 Move up.
7528
7529 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7530
7531 * linux-nat.h (low_new_clone): New method.
7532 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7533
7534 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7535
7536 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7537 (dbx_expand_psymtab): ... this.
7538 (start_psymtab): Update.
7539 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7540 (mdebug_expand_psymtab): ... this.
7541 (parse_partial_symbols): Update.
7542 (new_psymtab): Update.
7543 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7544 (xcoff_expand_psymtab): ... this.
7545 (xcoff_start_psymtab): Update.
7546
7547 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7548
7549 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7550 <expand_dependencies>: ... this.
7551 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7552 (partial_symtab::expand_dependencies): ... this.
7553 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7554 Update.
7555 (dwarf2_psymtab::expand_psymtab): Update.
7556 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7557 * mdebugread.c (psymtab_to_symtab_1): Update.
7558 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7559
7560 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7561
7562 * psympriv.h (discard_psymtab): Remove.
7563 * dbxread.c (dbx_end_psymtab): Update.
7564 * xcoffread.c (xcoff_end_psymtab): Update.
7565
7566 2020-03-28 Tom Tromey <tom@tromey.com>
7567
7568 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7569 comment.
7570
7571 2020-03-28 Tom Tromey <tom@tromey.com>
7572
7573 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7574
7575 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
7576
7577 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7578
7579 2020-03-26 John Baldwin <jhb@FreeBSD.org>
7580
7581 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7582
7583 2020-03-26 Tom Tromey <tom@tromey.com>
7584
7585 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7586 (mark_common_block_symbol_computed, read_tag_string_type)
7587 (attr_to_dynamic_prop, read_subrange_type): Update.
7588 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7589 to be methods on struct attribute.
7590 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7591 (read_call_site_scope, partial_die_info::read)
7592 (partial_die_info::read, lookup_die_type, follow_die_ref):
7593 Update.
7594 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7595 from dwarf2_get_ref_die_offset.
7596 (attribute::constant_value): New method, from
7597 dwarf2_get_attr_constant_value.
7598 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7599 Declare method.
7600 <constant_value>: New method.
7601
7602 2020-03-26 Tom Tromey <tom@tromey.com>
7603
7604 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7605 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7606 (dwarf_type_encoding_name): Move to stringify.c.
7607 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7608 * dwarf2/stringify.c: New file.
7609 * dwarf2/stringify.h: New file.
7610
7611 2020-03-26 Tom Tromey <tom@tromey.com>
7612
7613 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7614 Rewrite.
7615
7616 2020-03-26 Tom Tromey <tom@tromey.com>
7617
7618 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7619 methods.
7620 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7621 (lookup_ranges_base): Likewise.
7622 (read_cutu_die_from_dwo, read_full_die_1): Update.
7623
7624 2020-03-26 Tom Tromey <tom@tromey.com>
7625
7626 * dwarf2/read.c (read_import_statement, read_file_scope)
7627 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7628 (read_lexical_block_scope, read_call_site_scope)
7629 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7630 (handle_struct_member_die, process_structure_scope)
7631 (update_enumeration_type_from_children)
7632 (process_enumeration_scope, read_array_type, read_common_block)
7633 (read_namespace, read_module, read_subroutine_type): Update.
7634 (sibling_die): Remove.
7635
7636 2020-03-26 Tom Tromey <tom@tromey.com>
7637
7638 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7639 (build_type_psymtabs_reader, read_structure_type)
7640 (read_enumeration_type, read_full_die_1): Update.
7641 (dwarf2_attr_no_follow): Move to die.h.
7642 * dwarf2/die.h (struct die_info) <attr>: New method.
7643
7644 2020-03-26 Tom Tromey <tom@tromey.com>
7645
7646 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7647 <base_address>: Now an optional.
7648 (dwarf2_find_base_address, dwarf2_rnglists_process)
7649 (dwarf2_ranges_process, fill_in_loclist_baton)
7650 (dwarf2_symbol_mark_computed): Update.
7651
7652 2020-03-26 Tom Tromey <tom@tromey.com>
7653
7654 * dwarf2/read.c (struct die_info): Move to die.h.
7655 * dwarf2/die.h: New file.
7656
7657 2020-03-26 Tom Tromey <tom@tromey.com>
7658
7659 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7660 * dwarf2/read.c
7661 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7662 Move to line-header.c.
7663 (read_checked_initial_length_and_offset, read_formatted_entries):
7664 Likewise.
7665 (dwarf_decode_line_header): Split into two.
7666 * dwarf2/line-header.c
7667 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7668 Move from read.c.
7669 (read_checked_initial_length_and_offset, read_formatted_entries):
7670 Likewise.
7671 (dwarf_decode_line_header): New function, split from read.c.
7672
7673 2020-03-26 Tom Tromey <tom@tromey.com>
7674
7675 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7676 Declare method.
7677 * dwarf2/read.c (read_attribute_value): Update.
7678 (dwarf2_per_objfile::read_line_string): Rename from
7679 read_indirect_line_string.
7680 (read_formatted_entries): Update.
7681
7682 2020-03-26 Tom Tromey <tom@tromey.com>
7683
7684 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7685 variable.
7686
7687 2020-03-26 Tom Tromey <tom@tromey.com>
7688
7689 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7690 const.
7691 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7692 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7693 parameter const.
7694
7695 2020-03-26 Tom Tromey <tom@tromey.com>
7696
7697 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7698 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7699 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7700 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7701
7702 2020-03-26 Tom Tromey <tom@tromey.com>
7703
7704 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7705 file_names_size, file_full_name, file_file_name>: Use const.
7706 <file_name_at, file_names>: Add const overload.
7707 * dwarf2/line-header.c (line_header::file_file_name)
7708 (line_header::file_full_name): Update.
7709
7710 2020-03-26 Tom Tromey <tom@tromey.com>
7711
7712 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7713 (macro_start_file, consume_improper_spaces)
7714 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7715 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7716 (dwarf_decode_macros): Move to macro.c.
7717 * dwarf2/macro.c: New file.
7718 * dwarf2/macro.h: New file.
7719 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7720
7721 2020-03-26 Tom Tromey <tom@tromey.com>
7722
7723 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7724 method.
7725 * dwarf2/section.c: New method. From
7726 read_indirect_string_at_offset_from.
7727 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7728 (read_indirect_string_at_offset_from): Move to section.c.
7729 (read_indirect_string_at_offset): Rewrite.
7730 (read_indirect_line_string_at_offset): Remove.
7731 (read_indirect_string, read_indirect_line_string)
7732 (dwarf_decode_macro_bytes): Update.
7733
7734 2020-03-26 Tom Tromey <tom@tromey.com>
7735
7736 * dwarf2/section.h (struct dwarf2_section_info)
7737 <overload_complaint>: Declare.
7738 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7739 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7740 Rename from dwarf2_section_buffer_overflow_complaint.
7741 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7742 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7743
7744 2020-03-26 Tom Tromey <tom@tromey.com>
7745
7746 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7747 Declare.
7748 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7749 Move from read.c.
7750 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7751 to section.c.
7752
7753 2020-03-26 Tom Tromey <tom@tromey.com>
7754
7755 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7756
7757 2020-03-26 Tom Tromey <tom@tromey.com>
7758
7759 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7760 "builder".
7761 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7762 parameter.
7763 (dwarf_decode_macros): Update.
7764
7765 2020-03-26 Tom Tromey <tom@tromey.com>
7766
7767 * dwarf2/read.c (read_attribute_value): Update.
7768 (read_indirect_string_from_dwz): Move to dwz.c; change into
7769 method.
7770 (dwarf_decode_macro_bytes): Update.
7771 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7772 * dwarf2/dwz.c: New file.
7773 * Makefile.in (COMMON_SFILES): Add dwz.c.
7774
7775 2020-03-26 Tom Tromey <tom@tromey.com>
7776
7777 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7778 * dwarf2/read.c: Add include.
7779 * dwarf2/index-write.c: Add include.
7780 * dwarf2/index-cache.c: Add include.
7781 * dwarf2/dwz.h: New file.
7782
7783 2020-03-25 Tom Tromey <tom@tromey.com>
7784
7785 * compile/compile-object-load.c (get_out_value_type): Mention
7786 correct symbol name in error message.
7787
7788 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
7789
7790 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7791
7792 2020-03-25 Tom de Vries <tdevries@suse.de>
7793
7794 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7795 * symmisc.c (dump_symtab_1): Print user and includes fields.
7796 (maintenance_info_symtabs): Same.
7797
7798 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7799
7800 PR gdb/25534
7801 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7802 (riscv_regcache_cooked_write): New function.
7803 (riscv_push_dummy_call): Use new function.
7804 (riscv_return_value): Likewise.
7805
7806 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7807
7808 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7809 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7810 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7811 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7812 * infrun.c (follow_fork): Likewise.
7813 (follow_fork_inferior): Likewise.
7814 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7815 * linux-nat.h (class linux_nat_target): Likewise.
7816 * remote.c (class remote_target) <follow_fork>: Likewise.
7817 (remote_target::follow_fork): Likewise.
7818 * target-delegates.c: Re-generate.
7819 * target.c (default_follow_fork): Likewise.
7820 (target_follow_fork): Likewise.
7821 * target.h (struct target_ops) <follow_fork>: Likewise.
7822 (target_follow_fork): Likewise.
7823
7824 2020-03-24 Tom de Vries <tdevries@suse.de>
7825
7826 * psymtab.c (maintenance_info_psymtabs): Print user field.
7827
7828 2020-03-20 Tom Tromey <tromey@adacore.com>
7829
7830 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7831 const.
7832 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7833 const.
7834
7835 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
7836
7837 * ptrace.m4: Don't check for ptrace declaration.
7838 * config.in: Re-generate.
7839 * configure: Re-generate.
7840 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7841 not defined.
7842
7843 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7844
7845 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7846 `PTRACE_TYPE_RET'.
7847 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7848 * sparc-nat.c (gdb_ptrace): Likewise.
7849 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7850
7851 2020-03-20 Tom Tromey <tromey@adacore.com>
7852
7853 * c-exp.y (lex_one_token): Fix assert.
7854
7855 2020-03-20 Tom Tromey <tromey@adacore.com>
7856
7857 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7858 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7859 strncpy call.
7860
7861 2020-03-20 Tom Tromey <tromey@adacore.com>
7862
7863 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7864
7865 2020-03-20 Tom Tromey <tromey@adacore.com>
7866
7867 * ada-valprint.c (print_variant_part): Remove parameters; switch
7868 to value-based API.
7869 (print_field_values): Likewise.
7870 (ada_val_print_struct_union): Likewise.
7871 (ada_value_print_1): Update.
7872
7873 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7874
7875 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7876 nbsd_nat_target instead of inf_ptrace_target.
7877 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7878 nbsd_nat_target.
7879
7880 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7881
7882 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7883 it to the ptrace call.
7884 * (store_registers): Likewise.
7885
7886 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7887
7888 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7889 it to the ptrace call.
7890 * (store_registers): Likewise.
7891
7892 2020-03-19 Luis Machado <luis.machado@linaro.org>
7893
7894 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7895 valid, fetch vg value from ptrace.
7896
7897 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7898 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7899 * inf-ptrace.c: Likewise.
7900 * (gdb_ptrace): Add.
7901 * (inf_ptrace_target::resume): Update.
7902 * (inf_ptrace_target::xfer_partial): Likewise.
7903 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7904 * (inf_ptrace_peek_poke): Update.
7905
7906 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7907
7908 * x86-bsd-nat.c (gdb_ptrace): New.
7909 * (x86bsd_dr_set): Add new argument `ptid'.
7910 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7911 x86bsd_dr_set_addr): Update.
7912
7913 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7914
7915 * remote.c (remote_target::process_stop_reply): Handle events for
7916 all threads differently.
7917
7918 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7919
7920 * completer.c (completion_tracker::remove_completion): Define new
7921 function.
7922 * completer.h (completion_tracker::remove_completion): Declare new
7923 function.
7924 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7925 when adding a C++ function symbol.
7926
7927 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7928
7929 * completer.c (completion_tracker::completion_hash_entry): Define
7930 new class.
7931 (advance_to_filename_complete_word_point): Call
7932 recompute_lowest_common_denominator.
7933 (completion_tracker::completion_tracker): Call discard_completions
7934 to setup the hash table.
7935 (completion_tracker::discard_completions): Allow for being called
7936 from the constructor, pass new equal function, and element deleter
7937 when constructing the hash table. Initialise new class member
7938 variables.
7939 (completion_tracker::maybe_add_completion): Remove use of
7940 m_entries_vec, and store more information into m_entries_hash.
7941 (completion_tracker::recompute_lcd_visitor): New function, most
7942 content taken from...
7943 (completion_tracker::recompute_lowest_common_denominator):
7944 ...here, this now just visits each item in the hash calling the
7945 above visitor.
7946 (completion_tracker::build_completion_result): Remove use of
7947 m_entries_vec, call recompute_lowest_common_denominator.
7948 * completer.h (completion_tracker::have_completions): Remove use
7949 of m_entries_vec.
7950 (completion_tracker::completion_hash_entry): Declare new class.
7951 (completion_tracker::recompute_lowest_common_denominator): Change
7952 function signature.
7953 (completion_tracker::recompute_lcd_visitor): Declare new function.
7954 (completion_tracker::m_entries_vec): Delete.
7955 (completion_tracker::m_entries_hash): Initialize to NULL.
7956 (completion_tracker::m_lowest_common_denominator_valid): New
7957 member variable.
7958 (completion_tracker::m_lowest_common_denominator_max_length): New
7959 member variable.
7960
7961 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7962
7963 * regformats/regdef.h: Put reg in gdb namespace.
7964
7965 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7966
7967 * i386-bsd-nat.c (gdb_ptrace): New.
7968 * (i386bsd_fetch_inferior_registers,
7969 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7970 * (i386bsd_fetch_inferior_registers,
7971 i386bsd_store_inferior_registers) Use gdb_ptrace.
7972
7973 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7974
7975 * amd64-bsd-nat.c (gdb_ptrace): New.
7976 * (amd64bsd_fetch_inferior_registers,
7977 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7978 * (amd64bsd_fetch_inferior_registers,
7979 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7980
7981 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7982
7983 * user-regs.c (user_reg::read): Rename to...
7984 (user_reg::xread): ...this.
7985 * (append_user_reg): Rename argument `read' to `xread'.
7986 * (user_reg_add_builtin): Likewise.
7987 * (user_reg_add): Likewise.
7988 * (value_of_user_reg): Likewise.
7989
7990 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7991
7992 * sparc-nat.c (gdb_ptrace): New.
7993 * sparc-nat.c (sparc_fetch_inferior_registers)
7994 (sparc_store_inferior_registers) Remove obsolete comment.
7995 * sparc-nat.c (sparc_fetch_inferior_registers)
7996 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7997 * sparc-nat.c (sparc_fetch_inferior_registers)
7998 (sparc_store_inferior_registers) Use gdb_ptrace.
7999
8000 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8001
8002 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
8003 it to the ptrace call.
8004 * sh-nbsd-nat.c (store_registers): Likewise.
8005
8006 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8007
8008 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
8009 nbsd_nat_target instead of inf_ptrace_target.
8010 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8011 nbsd_nat_target.
8012
8013 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8014
8015 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
8016
8017 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8018
8019 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
8020 <sys/sysctl.h>.
8021 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
8022
8023 2020-03-17 Tom de Vries <tdevries@suse.de>
8024
8025 PR gdb/23710
8026 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
8027 fields.
8028 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
8029 fields.
8030 (process_imported_unit_die): Skip import of c++ CUs.
8031
8032 2020-03-16 Tom Tromey <tom@tromey.com>
8033
8034 * p-valprint.c (pascal_object_print_value): Initialize
8035 base_value.
8036
8037 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
8038 Shahab Vahedi <shahab@synopsys.com>
8039
8040 * Makefile.in: Add arch/arc.o
8041 * configure.tgt: Likewise.
8042 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
8043 (_initialize_arc_tdep): Don't initialize old target descriptions.
8044 (arc_read_description): New function to cache target descriptions.
8045 * arc-tdep.h (arc_read_description): Add proto type.
8046 * arch/arc.c: New file.
8047 * arch/arc.h: Likewise.
8048 * features/Makefile: Replace old target descriptions with new.
8049 * features/arc-arcompact.c: Remove.
8050 * features/arc-arcompact.xml: Likewise.
8051 * features/arc-v2.c: Likewise
8052 * features/arc-v2.xml: Likewise
8053 * features/arc/aux-arcompact.xml: New file.
8054 * features/arc/aux-v2.xml: Likewise.
8055 * features/arc/core-arcompact.xml: Likewise.
8056 * features/arc/core-v2.xml: Likewise.
8057 * features/arc/aux-arcompact.c: Generate.
8058 * features/arc/aux-v2.c: Likewise.
8059 * features/arc/core-arcompact.c: Likewise.
8060 * features/arc/core-v2.c: Likewise.
8061 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
8062
8063 2020-03-16 Tom Tromey <tromey@adacore.com>
8064
8065 PR gdb/25663:
8066 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
8067 putting value into bcache.
8068
8069 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8070
8071 PR gdb/21500
8072 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
8073 to...
8074 (amd64_windows_init_abi_common): ... this. Don't set size of
8075 long type.
8076 (amd64_windows_init_abi): New function.
8077 (amd64_cygwin_init_abi): New function.
8078 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
8079 the Cygwin OS ABI.
8080 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
8081 comment.
8082
8083 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8084
8085 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
8086 * windows-tdep.c (CYGWIN_DLL_NAME): New.
8087 (pe_import_directory_entry): New struct type.
8088 (is_linked_with_cygwin_dll): New function.
8089 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
8090 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
8091 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
8092
8093 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8094
8095 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
8096 i386_cygwin_core_osabi_sniffer.
8097
8098 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8099
8100 * i386-cygwin-tdep.c: Rename to...
8101 * i386-windows-tdep.c: ... this.
8102 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
8103 i386-windows-tdep.c.
8104 * configure.tgt: Likewise.
8105
8106 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8107
8108 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
8109 * osabi.c (gdb_osabi_names): Add "Windows".
8110 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
8111 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
8112 (i386_cygwin_core_osabi_sniffer): New function, extracted from
8113 i386_cygwin_osabi_sniffer.
8114 (_initialize_i386_cygwin_tdep): Register OS ABI
8115 GDB_OSABI_WINDOWS for i386.
8116 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
8117 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
8118 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
8119 for x86-64.
8120 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
8121 when the target matches '*-*-mingw*'.
8122
8123 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8124
8125 * defs.h (enum gdb_osabi): Move to...
8126 * osabi.h (enum gdb_osabi): ... here.
8127 * gdbarch.sh: Include osabi.h in gdbarch.h.
8128 * gdbarch.h: Re-generate.
8129
8130 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8131
8132 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
8133 function.
8134 (_initialize_amd64_windows_tdep): Register osabi sniffer.
8135
8136 2020-03-14 Tom Tromey <tom@tromey.com>
8137
8138 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
8139 for C++.
8140 (c_type_print_modifier): Likewise. Add "language" parameter.
8141 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
8142 (c_type_print_base_1): Update.
8143 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
8144 constants.
8145 * type-stack.c (type_stack::insert): Handle tp_atomic and
8146 tp_restrict.
8147 (type_stack::follow_type_instance_flags): Likewise.
8148 (type_stack::follow_types): Likewise. Merge type-following code.
8149 * c-exp.y (RESTRICT, ATOMIC): New tokens.
8150 (space_identifier, cv_with_space_id)
8151 (const_or_volatile_or_space_identifier_noopt)
8152 (const_or_volatile_or_space_identifier): Remove.
8153 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
8154 rules.
8155 (ptr_operator, typebase): Update.
8156 (enum token_flag) <FLAG_C>: New constant.
8157 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
8158 "_Atomic".
8159 (lex_one_token): Handle FLAG_C.
8160
8161 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8162
8163 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
8164 it to the ptrace call.
8165 * m68k-bsd-nat.c (store_registers): Likewise.
8166
8167 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8168
8169 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
8170 gdb_byte *.
8171 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
8172 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
8173 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
8174
8175 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8176
8177 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
8178 nbsd_nat_target instead of inf_ptrace_target.
8179 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8180 nbsd_nat_target.
8181
8182 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8183
8184 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
8185 register_t.
8186
8187 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8188
8189 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
8190 it to the ptrace call.
8191 * alpha-bsd-nat.c (store_registers): Likewise.
8192
8193 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8194
8195 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
8196 includes.
8197 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
8198 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
8199 fill_fpregset): Likewise.
8200
8201 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8202
8203 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
8204 nbsd_nat_target instead of inf_ptrace_target.
8205 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8206 nbsd_nat_target.
8207
8208 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8209
8210 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
8211 register_t.
8212
8213 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8214
8215 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
8216 it to the ptrace call.
8217 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
8218 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
8219 * arm-nbsd-nat.c (store_register): Likewise.
8220 * arm-nbsd-nat.c (store_regs): Likewise.
8221 * arm-nbsd-nat.c (store_fp_register): Likewise.
8222 * arm-nbsd-nat.c (store_fp_regs): Likewise.
8223
8224 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8225
8226 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
8227 nbsd_nat_target instead of inf_ptrace_target.
8228 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8229 nbsd_nat_target.
8230
8231 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8232
8233 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
8234 it to the ptrace call.
8235 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
8236
8237 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8238
8239 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
8240 it to the ptrace call.
8241 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
8242
8243 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8244
8245 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
8246 gdb_byte *.
8247 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
8248
8249 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8250
8251 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
8252 instead of inf_ptrace_target.
8253 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8254 nbsd_nat_target.
8255
8256 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8257
8258 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8259 register_t.
8260
8261 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8262
8263 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8264 register_t.
8265
8266 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8267
8268 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
8269 register_t.
8270
8271 2020-03-13 Tom Tromey <tom@tromey.com>
8272
8273 * value.h (val_print): Don't declare.
8274 * valprint.h (val_print_array_elements)
8275 (val_print_scalar_formatted, generic_val_print): Don't declare.
8276 * valprint.c (generic_val_print_array): Take a struct value.
8277 (generic_val_print_ptr, generic_val_print_memberptr)
8278 (generic_val_print_bool, generic_val_print_int)
8279 (generic_val_print_char, generic_val_print_complex)
8280 (generic_val_print): Remove.
8281 (generic_value_print): Update.
8282 (do_val_print): Remove unused parameters. Don't call
8283 la_val_print.
8284 (val_print): Remove.
8285 (common_val_print): Update. Don't call value_check_printable.
8286 (val_print_scalar_formatted, val_print_array_elements): Remove.
8287 * rust-lang.c (rust_val_print): Remove.
8288 (rust_language_defn): Update.
8289 * p-valprint.c (pascal_val_print): Remove.
8290 (pascal_value_print_inner): Update.
8291 (pascal_object_print_val_fields, pascal_object_print_val):
8292 Remove.
8293 (pascal_object_print_static_field): Update.
8294 * p-lang.h (pascal_val_print): Don't declare.
8295 * p-lang.c (pascal_language_defn): Update.
8296 * opencl-lang.c (opencl_language_defn): Update.
8297 * objc-lang.c (objc_language_defn): Update.
8298 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
8299 * m2-lang.h (m2_val_print): Don't declare.
8300 * m2-lang.c (m2_language_defn): Update.
8301 * language.h (struct language_defn) <la_val_print>: Remove.
8302 * language.c (unk_lang_value_print_inner): Rename. Change
8303 argument types.
8304 (unknown_language_defn, auto_language_defn): Update.
8305 * go-valprint.c (go_val_print): Remove.
8306 * go-lang.h (go_val_print): Don't declare.
8307 * go-lang.c (go_language_defn): Update.
8308 * f-valprint.c (f_val_print): Remove.
8309 * f-lang.h (f_value_print): Don't declare.
8310 * f-lang.c (f_language_defn): Update.
8311 * d-valprint.c (d_val_print): Remove.
8312 * d-lang.h (d_value_print): Don't declare.
8313 * d-lang.c (d_language_defn): Update.
8314 * cp-valprint.c (cp_print_value_fields)
8315 (cp_print_value_fields_rtti, cp_print_value): Remove.
8316 (cp_print_static_field): Update.
8317 * c-valprint.c (c_val_print_array, c_val_print_ptr)
8318 (c_val_print_struct, c_val_print_union, c_val_print_int)
8319 (c_val_print_memberptr, c_val_print): Remove.
8320 * c-lang.h (c_val_print_array, cp_print_value_fields)
8321 (cp_print_value_fields_rtti): Don't declare.
8322 * c-lang.c (c_language_defn, cplus_language_defn)
8323 (asm_language_defn, minimal_language_defn): Update.
8324 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
8325 (ada_val_print_enum): Take a struct value.
8326 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
8327 (ada_val_print): Remove.
8328 (ada_value_print_1): Update.
8329 (printable_val_type): Remove.
8330 * ada-lang.h (ada_val_print): Don't declare.
8331 * ada-lang.c (ada_language_defn): Update.
8332
8333 2020-03-13 Tom Tromey <tom@tromey.com>
8334
8335 * valprint.c (do_val_print): Update.
8336 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
8337 a struct value.
8338 (value_to_value_object_no_release): Declare.
8339 * python/py-value.c (value_to_value_object_no_release): New
8340 function.
8341 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
8342 struct value.
8343 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
8344 function.
8345 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
8346 a struct value.
8347 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
8348 Declare.
8349 (gdbscm_apply_val_pretty_printer): Take a struct value.
8350 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
8351 value.
8352 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
8353 value.
8354 * extension-priv.h (struct extension_language_ops)
8355 <apply_val_pretty_printer>: Take a struct value.
8356 * cp-valprint.c (cp_print_value): Create a struct value.
8357 (cp_print_value): Update.
8358
8359 2020-03-13 Tom Tromey <tom@tromey.com>
8360
8361 * ada-valprint.c (print_field_values): Call common_val_print.
8362
8363 2020-03-13 Tom Tromey <tom@tromey.com>
8364
8365 * ada-valprint.c (val_print_packed_array_elements): Remove
8366 bitoffset and val parameters. Call common_val_print.
8367 (ada_val_print_string): Remove offset, address, and original_value
8368 parameters.
8369 (ada_val_print_array): Update.
8370 (ada_value_print_array): New function.
8371 (ada_value_print_1): Call it.
8372
8373 2020-03-13 Tom Tromey <tom@tromey.com>
8374
8375 * ada-valprint.c (ada_value_print): Use common_val_print.
8376
8377 2020-03-13 Tom Tromey <tom@tromey.com>
8378
8379 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
8380
8381 2020-03-13 Tom Tromey <tom@tromey.com>
8382
8383 * ada-valprint.c (ada_value_print_num): New function.
8384 (ada_value_print_1): Use it.
8385
8386 2020-03-13 Tom Tromey <tom@tromey.com>
8387
8388 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8389
8390 2020-03-13 Tom Tromey <tom@tromey.com>
8391
8392 * ada-valprint.c (ada_value_print_ptr): New function.
8393 (ada_value_print_1): Use it.
8394
8395 2020-03-13 Tom Tromey <tom@tromey.com>
8396
8397 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8398 call common_val_print.
8399 (ada_val_print_1): Update.
8400 (ada_value_print_1): New function.
8401 (ada_value_print_inner): Rewrite.
8402
8403 2020-03-13 Tom Tromey <tom@tromey.com>
8404
8405 * cp-valprint.c (cp_print_value_fields): Update.
8406 (cp_print_value): New function.
8407
8408 2020-03-13 Tom Tromey <tom@tromey.com>
8409
8410 * m2-valprint.c (m2_value_print_inner): Use
8411 cp_print_value_fields.
8412 * cp-valprint.c (cp_print_value_fields): New function.
8413 * c-valprint.c (c_value_print_struct): New function.
8414 (c_value_print_inner): Use c_value_print_struct.
8415 * c-lang.h (cp_print_value_fields): Declare.
8416
8417 2020-03-13 Tom Tromey <tom@tromey.com>
8418
8419 * c-valprint.c (c_value_print_array): New function.
8420 (c_value_print_inner): Use it.
8421
8422 2020-03-13 Tom Tromey <tom@tromey.com>
8423
8424 * c-valprint.c (c_value_print_memberptr): New function.
8425 (c_value_print_inner): Use it.
8426
8427 2020-03-13 Tom Tromey <tom@tromey.com>
8428
8429 * c-valprint.c (c_value_print_int): New function.
8430 (c_value_print_inner): Use it.
8431
8432 2020-03-13 Tom Tromey <tom@tromey.com>
8433
8434 * c-valprint.c (c_value_print_ptr): New function.
8435 (c_value_print_inner): Use it.
8436
8437 2020-03-13 Tom Tromey <tom@tromey.com>
8438
8439 * c-valprint.c (c_value_print_inner): Rewrite.
8440
8441 2020-03-13 Tom Tromey <tom@tromey.com>
8442
8443 * valprint.c (generic_value_print_complex): New function.
8444 (generic_value_print): Use it.
8445
8446 2020-03-13 Tom Tromey <tom@tromey.com>
8447
8448 * valprint.c (generic_val_print_float): Don't call
8449 val_print_scalar_formatted.
8450 (generic_val_print, generic_value_print): Update.
8451
8452 2020-03-13 Tom Tromey <tom@tromey.com>
8453
8454 * valprint.c (generic_value_print_char): New function
8455 (generic_value_print): Use it.
8456
8457 2020-03-13 Tom Tromey <tom@tromey.com>
8458
8459 * valprint.c (generic_value_print_int): New function.
8460 (generic_value_print): Use it.
8461
8462 2020-03-13 Tom Tromey <tom@tromey.com>
8463
8464 * valprint.c (generic_value_print_bool): New function.
8465 (generic_value_print): Use it.
8466
8467 2020-03-13 Tom Tromey <tom@tromey.com>
8468
8469 * valprint.c (generic_val_print_func): Simplify.
8470 (generic_val_print, generic_value_print): Update.
8471
8472 2020-03-13 Tom Tromey <tom@tromey.com>
8473
8474 * valprint.c (generic_val_print_flags): Remove.
8475 (generic_val_print, generic_value_print): Update.
8476 (val_print_type_code_flags): Add original_value parameter.
8477
8478 2020-03-13 Tom Tromey <tom@tromey.com>
8479
8480 * valprint.c (generic_val_print): Update.
8481 (generic_value_print): Update.
8482 * valprint.c (generic_val_print_enum): Don't call
8483 val_print_scalar_formatted.
8484
8485 2020-03-13 Tom Tromey <tom@tromey.com>
8486
8487 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8488 * valprint.c (generic_value_print_ptr): New function.
8489
8490 2020-03-13 Tom Tromey <tom@tromey.com>
8491
8492 * valprint.c (generic_value_print): Rewrite.
8493
8494 2020-03-13 Tom Tromey <tom@tromey.com>
8495
8496 * p-valprint.c (pascal_object_print_value_fields)
8497 (pascal_object_print_value): New functions.
8498
8499 2020-03-13 Tom Tromey <tom@tromey.com>
8500
8501 * p-valprint.c (pascal_value_print_inner): Rewrite.
8502
8503 2020-03-13 Tom Tromey <tom@tromey.com>
8504
8505 * f-valprint.c (f_value_print_innner): Rewrite.
8506
8507 2020-03-13 Tom Tromey <tom@tromey.com>
8508
8509 * m2-valprint.c (m2_print_unbounded_array): New overload.
8510 (m2_print_unbounded_array): Update.
8511 (m2_print_array_contents): Take a struct value.
8512 (m2_value_print_inner): Rewrite.
8513
8514 2020-03-13 Tom Tromey <tom@tromey.com>
8515
8516 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8517 (d_value_print_inner): New function.
8518 * d-lang.h (d_value_print_inner): Declare.
8519 * d-lang.c (d_language_defn): Use d_value_print_inner.
8520
8521 2020-03-13 Tom Tromey <tom@tromey.com>
8522
8523 * go-valprint.c (go_value_print_inner): New function.
8524 * go-lang.h (go_value_print_inner): Declare.
8525 * go-lang.c (go_language_defn): Use go_value_print_inner.
8526
8527 2020-03-13 Tom Tromey <tom@tromey.com>
8528
8529 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8530 API.
8531 (rust_val_print): Rewrite.
8532 (rust_value_print_inner): New function, from rust_val_print.
8533 (rust_language_defn): Use rust_value_print_inner.
8534
8535 2020-03-13 Tom Tromey <tom@tromey.com>
8536
8537 * ada-valprint.c (ada_value_print_inner): New function.
8538 * ada-lang.h (ada_value_print_inner): Declare.
8539 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8540
8541 2020-03-13 Tom Tromey <tom@tromey.com>
8542
8543 * f-valprint.c (f_value_print_innner): New function.
8544 * f-lang.h (f_value_print_innner): Declare.
8545 * f-lang.c (f_language_defn): Use f_value_print_innner.
8546
8547 2020-03-13 Tom Tromey <tom@tromey.com>
8548
8549 * p-valprint.c (pascal_value_print_inner): New function.
8550 * p-lang.h (pascal_value_print_inner): Declare.
8551 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8552
8553 2020-03-13 Tom Tromey <tom@tromey.com>
8554
8555 * m2-valprint.c (m2_value_print_inner): New function.
8556 * m2-lang.h (m2_value_print_inner): Declare.
8557 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8558
8559 2020-03-13 Tom Tromey <tom@tromey.com>
8560
8561 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8562 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8563 * c-valprint.c (c_value_print_inner): New function.
8564 * c-lang.h (c_value_print_inner): Declare.
8565 * c-lang.c (c_language_defn, cplus_language_defn)
8566 (asm_language_defn, minimal_language_defn): Use
8567 c_value_print_inner.
8568
8569 2020-03-13 Tom Tromey <tom@tromey.com>
8570
8571 * p-valprint.c (pascal_object_print_value_fields): Now static.
8572 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8573
8574 2020-03-13 Tom Tromey <tom@tromey.com>
8575
8576 * c-valprint.c (c_val_print_array): Simplify.
8577
8578 2020-03-13 Tom Tromey <tom@tromey.com>
8579
8580 * valprint.c (value_print_array_elements): New function.
8581 * valprint.h (value_print_array_elements): Declare.
8582
8583 2020-03-13 Tom Tromey <tom@tromey.com>
8584
8585 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8586 * mips-tdep.c (mips_print_register): Use
8587 value_print_scalar_formatted.
8588
8589 2020-03-13 Tom Tromey <tom@tromey.com>
8590
8591 * valprint.h (value_print_scalar_formatted): Declare.
8592 * valprint.c (value_print_scalar_formatted): New function.
8593
8594 2020-03-13 Tom Tromey <tom@tromey.com>
8595
8596 * valprint.h (generic_value_print): Declare.
8597 * valprint.c (generic_value_print): New function.
8598
8599 2020-03-13 Tom Tromey <tom@tromey.com>
8600
8601 * valprint.c (do_val_print): Call la_value_print_inner, if
8602 available.
8603 * rust-lang.c (rust_language_defn): Update.
8604 * p-lang.c (pascal_language_defn): Update.
8605 * opencl-lang.c (opencl_language_defn): Update.
8606 * objc-lang.c (objc_language_defn): Update.
8607 * m2-lang.c (m2_language_defn): Update.
8608 * language.h (struct language_defn) <la_value_print_inner>: New
8609 member.
8610 * language.c (unknown_language_defn, auto_language_defn): Update.
8611 * go-lang.c (go_language_defn): Update.
8612 * f-lang.c (f_language_defn): Update.
8613 * d-lang.c (d_language_defn): Update.
8614 * c-lang.c (c_language_defn, cplus_language_defn)
8615 (asm_language_defn, minimal_language_defn): Update.
8616 * ada-lang.c (ada_language_defn): Update.
8617
8618 2020-03-13 Tom Tromey <tom@tromey.com>
8619
8620 * c-valprint.c (c_value_print): Use common_val_print.
8621
8622 2020-03-13 Tom Tromey <tom@tromey.com>
8623
8624 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8625
8626 2020-03-13 Tom Tromey <tom@tromey.com>
8627
8628 * f-valprint.c (f77_print_array_1, f_val_print): Use
8629 common_val_print.
8630
8631 2020-03-13 Tom Tromey <tom@tromey.com>
8632
8633 * riscv-tdep.c (riscv_print_one_register_info): Use
8634 common_val_print.
8635
8636 2020-03-13 Tom Tromey <tom@tromey.com>
8637
8638 * mi/mi-main.c (output_register): Use common_val_print.
8639
8640 2020-03-13 Tom Tromey <tom@tromey.com>
8641
8642 * infcmd.c (default_print_one_register_info): Use
8643 common_val_print.
8644
8645 2020-03-13 Tom Tromey <tom@tromey.com>
8646
8647 * valprint.h (common_val_print_checked): Declare.
8648 * valprint.c (common_val_print_checked): New function.
8649 * stack.c (print_frame_arg): Use common_val_print_checked.
8650
8651 2020-03-13 Tom Tromey <tom@tromey.com>
8652
8653 * valprint.c (do_val_print): New function, from val_print.
8654 (val_print): Use do_val_print.
8655 (common_val_print): Use do_val_print.
8656
8657 2020-03-13 Tom Tromey <tom@tromey.com>
8658
8659 * valprint.c (value_print): Use scoped_value_mark.
8660
8661 2020-03-13 Tom de Vries <tdevries@suse.de>
8662
8663 PR symtab/25646
8664 * psymtab.c (partial_symtab::partial_symtab): Don't set
8665 globals_offset and statics_offset. Push element onto
8666 current_global_psymbols and current_static_psymbols stacks.
8667 (concat): New function.
8668 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8669 element from current_global_psymbols and current_static_psymbols
8670 stacks. Concat popped elements to global_psymbols and
8671 static_symbols.
8672 (add_psymbol_to_list): Use current_global_psymbols and
8673 current_static_psymbols stacks.
8674 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8675 current_static_psymbols fields.
8676
8677 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8678
8679 * corelow.c (sniff_core_bfd): Remove.
8680 (class core_target) <m_core_vec>: Remove.
8681 (core_target::core_target): Update.
8682 (core_file_fns): Remove.
8683 (deprecated_add_core_fns): Remove.
8684 (default_core_sniffer): Remove.
8685 (sniff_core_bfd): Remove.
8686 (default_check_format): Remove.
8687 (gdb_check_format): Remove.
8688 (core_target_open): Update.
8689 (core_target::get_core_register_section): Update.
8690 (get_core_registers_cb): Update.
8691 (core_target::fetch_registers): Update.
8692 * gdbcore.h (struct core_fns): Remove.
8693 (deprecated_add_core_fns): Remove.
8694 (default_core_sniffer): Remove.
8695 (default_check_format): Remove.
8696
8697 2020-03-12 Tom Tromey <tom@tromey.com>
8698
8699 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8700 CORE_ADDR.
8701 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8702
8703 2020-03-12 Tom Tromey <tom@tromey.com>
8704
8705 * remote.c (remote_target::download_tracepoint)
8706 (remote_target::enable_tracepoint)
8707 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8708 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8709 sprintf_vma.
8710
8711 2020-03-12 Tom Tromey <tom@tromey.com>
8712
8713 * symfile-mem.c: Update CORE_ADDR size assert.
8714
8715 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8716
8717 * selftest.m4: Move to gdbsupport/.
8718 * acinclude.m4: Update path to selftest.m4.
8719
8720 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8721
8722 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8723 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8724 gdbarch-selfselftests.c and selftest-arch.c.
8725 (SUBDIR_UNITTESTS_OBS): Rename to...
8726 (SELFTESTS_OBS): ... this.
8727 (COMMON_SFILES): Remove disasm-selftests.c and
8728 gdbarch-selftests.c.
8729 * configure.ac: Don't add selftest-arch.{c,o} to
8730 CONFIG_{SRCS,OBS}.
8731 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8732 preprocessor conditions.
8733
8734 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8735
8736 * configure.ac: Don't source bfd/development.sh.
8737 * selftest.m4: Modify comment.
8738 * configure: Re-generate.
8739
8740 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8741
8742 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8743 not "true" or "false".
8744 * configure: Re-generate.
8745
8746 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8747
8748 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8749 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8750 renamed to arm_nbsd_supply_gregset.
8751 (fetch_register): Update to call arm_nbsd_supply_gregset.
8752 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8753 (arm_netbsd_nat_target::fetch_registers): Update.
8754 (fetch_elfcore_registers): Removed.
8755 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8756 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8757 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8758 not require NetBSD system headers.
8759 (arm_nbsd_regset): New struct.
8760 (arm_nbsd_iterate_over_regset_sections): New function.
8761 (arm_netbsd_init_abi_common): Updated to call
8762 set_gdbarch_iterate_over_regset_sections.
8763 * arm-nbsd-tdep.h: New file.
8764
8765 2020-03-11 Kevin Buettner <kevinb@redhat.com>
8766
8767 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8768 recursion.
8769
8770 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
8771
8772 * configure: Re-generate.
8773
8774 2020-03-11 Tom Tromey <tromey@adacore.com>
8775
8776 * ada-typeprint.c (print_choices): Fix comment.
8777
8778 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8779
8780 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8781 previous item in the list, when the list has no items.
8782
8783 2020-03-11 Tom de Vries <tdevries@suse.de>
8784
8785 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8786 PROP_LOCLIST handling code.
8787
8788 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8789
8790 * buildsym-legacy.c (record_line): Pass extra parameter to
8791 record_line.
8792 * buildsym.c (buildsym_compunit::record_line): Take an extra
8793 parameter, reduce duplication in the line table, and record the
8794 is_stmt flag in the line table.
8795 * buildsym.h (buildsym_compunit::record_line): Add extra
8796 parameter.
8797 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8798 non-statement lines.
8799 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8800 this to the symtab builder.
8801 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8802 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8803 through to dwarf_record_line_1.
8804 * infrun.c (process_event_stop_test): When stepping, don't stop at
8805 a non-statement instruction, and only refresh the step info when
8806 we land in the middle of a line's range. Also add an extra
8807 comment.
8808 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8809 field.
8810 * record-btrace.c (btrace_find_line_range): Only record lines
8811 marked as is-statement.
8812 * stack.c (frame_show_address): Show the frame address if we are
8813 in a non-statement sal.
8814 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8815 (maintenance_print_one_line_table): Print a header for the is_stmt
8816 column, and include is_stmt information in the output.
8817 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8818 preference to non-statements.
8819 (find_pcs_for_symtab_line): Prefer is-statement entries.
8820 (find_line_common): Likewise.
8821 * symtab.h (struct linetable_entry): Add is_stmt field.
8822 (struct symtab_and_line): Likewise.
8823 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8824 arranging the line table.
8825
8826 2020-03-07 Tom de Vries <tdevries@suse.de>
8827
8828 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8829 DIE.
8830
8831 2020-03-07 Tom Tromey <tom@tromey.com>
8832
8833 * valops.c (value_literal_complex): Remove obsolete comment.
8834 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8835 comment.
8836
8837 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8838
8839 * infrun.h: Forward-declare thread_info.
8840 (set_step_info): Add thread_info parameter, add doc.
8841 * infrun.c (set_step_info): Add thread_info parameter, move doc
8842 to header.
8843 * infrun.c (process_event_stop_test): Pass thread to
8844 set_step_info call.
8845 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8846 set_step_info.
8847 (prepare_one_step): Add thread_info parameter, pass it to
8848 set_step_frame and prepare_one_step (recursive) call.
8849 (step_1): Pass thread to prepare_one_step call.
8850 (step_command_fsm::should_stop): Pass thread to
8851 prepare_one_step.
8852 (until_next_fsm): Pass thread to set_step_frame call.
8853 (finish_command): Pass thread to set_step_info call.
8854
8855 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
8856
8857 * windows-tdep.c (windows_solib_create_inferior_hook):
8858 Check if inferior is running.
8859
8860 2020-03-06 Tom de Vries <tdevries@suse.de>
8861
8862 * NEWS: Fix "the the".
8863 * ctfread.c: Same.
8864
8865 2020-03-06 Tom de Vries <tdevries@suse.de>
8866
8867 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8868
8869 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8870
8871 * .dir-locals.el: Add a comment referencing the other copies of
8872 this file.
8873
8874 2020-03-05 John Baldwin <jhb@FreeBSD.org>
8875
8876 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8877 psargs.
8878
8879 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8880
8881 * .gitattributes: New file.
8882
8883 2020-03-04 Tom Tromey <tom@tromey.com>
8884
8885 * symmisc.c (print_symbol_bcache_statistics)
8886 (print_objfile_statistics): Update.
8887 * symfile.c (allocate_symtab): Use intern.
8888 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8889 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8890 macro_cache>: Remove.
8891 <string_cache>: New member.
8892 (struct objfile) <intern>: New methods.
8893 * elfread.c (elf_symtab_read): Use intern.
8894 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8895 (dwarf2_compute_name, dwarf2_physname)
8896 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8897 names.
8898 (guess_partial_die_structure_name): Update.
8899 (partial_die_info::fixup): Intern name.
8900 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8901 name.
8902 (dwarf2_name): Intern name. Update.
8903 * buildsym.c (buildsym_compunit::get_macro_table): Use
8904 string_cache.
8905
8906 2020-03-04 Tom Tromey <tom@tromey.com>
8907
8908 * jit.c (bfd_open_from_target_memory): Make "target" const.
8909 * corefile.c (gnutarget): Now const.
8910 * gdbcore.h (gnutarget): Now const.
8911
8912 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
8913
8914 * NEWS: Mention support for WOW64 processes.
8915 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8916 (amd64_windows_segment_register_p): Remove static.
8917 (_initialize_amd64_windows_nat): Update.
8918 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8919 * i386-windows-nat.c (context_offset): Update.
8920 (i386_mappings): Rename and remove static.
8921 (i386_windows_segment_register_p): Remove static.
8922 (_initialize_i386_windows_nat): Update.
8923 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8924 (STATUS_WX86_SINGLE_STEP): New macro.
8925 (EnumProcessModulesEx): New macro.
8926 (Wow64SuspendThread): New macro.
8927 (Wow64GetThreadContext): New macro.
8928 (Wow64SetThreadContext): New macro.
8929 (Wow64GetThreadSelectorEntry): New macro.
8930 (windows_set_context_register_offsets): Add static.
8931 (windows_set_segment_register_p): Likewise.
8932 (windows_add_thread): Adapt for WOW64 processes.
8933 (windows_fetch_one_register): Likewise.
8934 (windows_nat_target::fetch_registers): Likewise.
8935 (windows_store_one_register): Likewise.
8936 (display_selector): Likewise.
8937 (display_selectors): Likewise.
8938 (handle_exception): Likewise.
8939 (windows_continue): Likewise.
8940 (windows_nat_target::resume): Likewise.
8941 (windows_add_all_dlls): Likewise.
8942 (do_initial_windows_stuff): Likewise.
8943 (windows_nat_target::attach): Likewise.
8944 (windows_get_exec_module_filename): Likewise.
8945 (windows_nat_target::create_inferior): Likewise.
8946 (windows_xfer_siginfo): Likewise.
8947 (_initialize_loadable): Initialize Wow64SuspendThread,
8948 Wow64GetThreadContext, Wow64SetThreadContext,
8949 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8950 * windows-nat.h (windows_set_context_register_offsets):
8951 Remove declaration.
8952 (windows_set_segment_register_p): Likewise.
8953 (i386_windows_segment_register_p): Add declaration.
8954 (amd64_windows_segment_register_p): Likewise.
8955
8956 2020-03-04 Luis Machado <luis.machado@linaro.org>
8957
8958 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8959 in "info registers" for AArch64/ARM.
8960
8961 The change caused "info registers" to not print GPR's.
8962
8963 gdb/ChangeLog:
8964
8965 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8966
8967 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8968 when reg->group is empty and reggroup is not.
8969
8970 2020-03-03 Tom Tromey <tromey@adacore.com>
8971
8972 * dwarf2/frame.c (struct dwarf2_frame_cache)
8973 <checked_tailcall_bottom, entry_cfa_sp_offset,
8974 entry_cfa_sp_offset_p>: Remove members.
8975 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8976 (dwarf2_frame_prev_register): Don't call
8977 dwarf2_tailcall_sniffer_first.
8978 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8979 * frame-unwind.c (add_unwinder): New fuction.
8980 (frame_unwind_init): Use it. Add tailcall unwinder.
8981
8982 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8983 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8984
8985 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8986 value should be printed as true.
8987
8988 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
8989
8990 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8991 (windows_init_abi): Set and use windows_so_ops.
8992
8993 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8994
8995 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8996 when verifying if dealing with a convenience variable.
8997
8998 2020-03-03 Luis Machado <luis.machado@linaro.org>
8999
9000 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
9001
9002 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9003
9004 * infrun.c (gdbarch_supports_displaced_stepping): New.
9005 (use_displaced_stepping): Break up conditions in smaller pieces.
9006 Use gdbarch_supports_displaced_stepping.
9007 (displaced_step_prepare_throw): Use
9008 gdbarch_supports_displaced_stepping.
9009
9010 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9011
9012 * NEWS: Mention new behaviour of the history filename.
9013 * top.c (write_history_p): Add comment.
9014 (show_write_history_p): Add header comment, give a different
9015 message when history writing is on, but the history filename is
9016 empty.
9017 (history_filename): Add comment.
9018 (history_filename_empty): New function.
9019 (show_history_filename): Add header comment, give a different
9020 message when the filename is empty.
9021 (init_history): Compare history_filename against nullptr, and only
9022 read history if the filename is not empty.
9023 (set_history_filename): Add header comment, and only make
9024 non-empty filenames absolute.
9025 (init_main): Make the filename argument to 'set history filename'
9026 optional.
9027
9028 2020-03-02 Christian Biesinger <cbiesinger@google.com>
9029
9030 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
9031 (arm_supply_vfpregset): ...this, and update to use VFP registers.
9032 (fetch_fp_register): Update.
9033 (fetch_fp_regs): Update.
9034 (store_fp_register): Update.
9035 (store_fp_regs): Update.
9036 (arm_netbsd_nat_target::read_description): New function.
9037 (fetch_elfcore_registers): Update.
9038
9039 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9040
9041 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
9042 general_thread if the stop reply is missing a thread-id.
9043 (remote_target::process_stop_reply): Use the first non-exited
9044 thread if the target didn't pass a thread-id.
9045 * infrun.c (do_target_wait): Move call to
9046 switch_to_inferior_no_thread to ....
9047 (do_target_wait_1): ... here.
9048
9049 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
9050
9051 * debuginfod-support.c: Include defs.h first.
9052
9053 2020-02-28 Tom de Vries <tdevries@suse.de>
9054
9055 * symfile.c (set_initial_language): Use default language for lookup.
9056
9057 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
9058
9059 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
9060 reader variable, pass `this` to read_cutu_die_from_dwo.
9061
9062 2020-02-27 Aaron Merey <amerey@redhat.com>
9063
9064 * source.c (open_source_file): Check for nullptr when computing
9065 srcpath.
9066
9067 2020-02-27 Tom Tromey <tromey@adacore.com>
9068
9069 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
9070 member.
9071 (dwarf2_add_field): Don't update nfields.
9072 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
9073
9074 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9075
9076 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
9077 abs.
9078
9079 2020-02-26 Tom Tromey <tom@tromey.com>
9080
9081 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
9082 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
9083 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
9084 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
9085 per_cu_data.
9086
9087 2020-02-26 Tom Tromey <tom@tromey.com>
9088
9089 * dwarf2/index-write.c (psym_index_map): Change type.
9090 (add_address_entry_worker, write_one_signatured_type)
9091 (recursively_count_psymbols, recursively_write_psymbols)
9092 (class debug_names, psyms_seen_size, write_gdbindex)
9093 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
9094
9095 2020-02-26 Aaron Merey <amerey@redhat.com>
9096
9097 * Makefile.in: Handle optional debuginfod support.
9098 * NEWS: Update.
9099 * README: Add --with-debuginfod summary.
9100 * config.in: Regenerate.
9101 * configure: Regenerate.
9102 * configure.ac: Handle optional debuginfod support.
9103 * debuginfod-support.c: debuginfod helper functions.
9104 * debuginfod-support.h: Ditto.
9105 * doc/gdb.texinfo: Add --with-debuginfod to configure options
9106 summary.
9107 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
9108 when a dwz file cannot be found.
9109 * elfread.c (elf_symfile_read): Query debuginfod servers when a
9110 debuginfo file cannot be found.
9111 * source.c (open_source_file): Query debuginfod servers when a
9112 source file cannot be found.
9113 * top.c (print_gdb_configuration): Include
9114 --{with,without}-debuginfod in the output.
9115
9116 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
9117
9118 * thread.c (thr_try_catch_cmd): Print thread name.
9119
9120 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
9121
9122 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
9123 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9124 dwarf2_fetch_die_type_sect_off): Move to...
9125 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9126 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9127 dwarf2_fetch_die_type_sect_off): ... here.
9128 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9129 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9130 dwarf2_fetch_die_type_sect_off): Move doc to header file.
9131
9132 2020-02-26 Tom de Vries <tdevries@suse.de>
9133
9134 PR gdb/25603
9135 * symfile.c (set_initial_language): Exit-early if
9136 language_mode == language_mode_manual.
9137
9138 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9139
9140 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
9141 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
9142 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
9143
9144 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
9145
9146 * gdbtypes.c (create_array_type_with_stride): Handle negative
9147 array strides.
9148 * valarith.c (value_subscripted_rvalue): Likewise.
9149
9150 2020-02-25 Luis Machado <luis.machado@linaro.org>
9151
9152 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
9153
9154 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9155
9156 * loc.h (dwarf2_get_die_type): Move to...
9157 * read.h (dwarf2_get_die_type): ... here.
9158 * read.c (dwarf2_get_die_type): Move doc to header.
9159
9160 2020-02-25 Joel Brobecker <brobecker@adacore.com>
9161
9162 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
9163 'gnulib/Makefile.in' to the list.
9164
9165 2020-02-24 Tom Tromey <tom@tromey.com>
9166
9167 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
9168 Remove.
9169 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
9170 XOBNEWVEC.
9171
9172 2020-02-24 Tom Tromey <tom@tromey.com>
9173
9174 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
9175 New method.
9176 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
9177 (dw2_do_instantiate_symtab, dw2_get_file_names)
9178 (build_type_psymtab_dependencies, load_full_type_unit): Update.
9179
9180 2020-02-24 Tom Tromey <tom@tromey.com>
9181
9182 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
9183 make_scoped_restore.
9184 (dwarf2_psymtab::read_symtab): Don't clear
9185 reading_partial_symbols.
9186
9187 2020-02-24 Tom de Vries <tdevries@suse.de>
9188
9189 PR gdb/25592
9190 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
9191
9192 2020-02-24 Tom de Vries <tdevries@suse.de>
9193
9194 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
9195 commands layout next/prev/regs.
9196
9197 2020-02-22 Tom Tromey <tom@tromey.com>
9198
9199 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
9200 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
9201
9202 2020-02-22 Tom Tromey <tom@tromey.com>
9203
9204 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
9205
9206 2020-02-22 Tom Tromey <tom@tromey.com>
9207
9208 * tui/tui-win.c (_initialize_tui_win): Add usage text.
9209 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
9210 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
9211 * tui/tui.c (_initialize_tui): Add usage text.
9212
9213 2020-02-22 Tom Tromey <tom@tromey.com>
9214
9215 * tui/tui-win.c (tui_set_focus_command)
9216 (tui_set_win_height_command): Use error_no_arg.
9217 (_initialize_tui_win): Update help text.
9218 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
9219
9220 2020-02-22 Tom Tromey <tom@tromey.com>
9221
9222 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
9223 * tui/tui-disasm.h (struct tui_disasm_window)
9224 <display_start_addr>: Declare.
9225 * tui/tui-source.h (struct tui_source_window)
9226 <display_start_addr>: Declare.
9227 * tui/tui-winsource.h (struct tui_source_window_base)
9228 <show_source_line, display_start_addr>: New methods.
9229 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
9230 Rename and move to protected section.
9231 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
9232 (tui_source_window_base::do_erase_source_content): Update.
9233 (tui_source_window_base::show_source_line): Now a method.
9234 (tui_source_window_base::show_source_content)
9235 (tui_source_window_base::tui_source_window_base)
9236 (tui_source_window_base::rerender)
9237 (tui_source_window_base::refill)
9238 (tui_source_window_base::do_scroll_horizontal)
9239 (tui_source_window_base::set_is_exec_point_at)
9240 (tui_source_window_base::update_breakpoint_info)
9241 (tui_source_window_base::update_exec_info): Update.
9242 * tui/tui-source.c (tui_source_window::set_contents)
9243 (tui_source_window::showing_source_p)
9244 (tui_source_window::do_scroll_vertical)
9245 (tui_source_window::location_matches_p)
9246 (tui_source_window::line_is_displayed): Update.
9247 (tui_source_window::display_start_addr): New method.
9248 * tui/tui-disasm.c (tui_disasm_window::set_contents)
9249 (tui_disasm_window::do_scroll_vertical)
9250 (tui_disasm_window::location_matches_p): Update.
9251 (tui_disasm_window::display_start_addr): New method.
9252
9253 2020-02-22 Tom Tromey <tom@tromey.com>
9254
9255 * NEWS: Add entry for gdb.register_window_type.
9256 * tui/tui-layout.h (window_factory): New typedef.
9257 (tui_register_window): Declare.
9258 * tui/tui-layout.c (saved_tui_windows): New global.
9259 (tui_apply_current_layout): Use it.
9260 (tui_register_window): New function.
9261 * python/python.c (do_start_initialization): Call
9262 gdbpy_initialize_tui.
9263 (python_GdbMethods): Add "register_window_type" function.
9264 * python/python-internal.h (gdbpy_register_tui_window)
9265 (gdbpy_initialize_tui): Declare.
9266 * python/py-tui.c: New file.
9267 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
9268
9269 2020-02-22 Tom Tromey <tom@tromey.com>
9270
9271 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
9272
9273 2020-02-22 Tom Tromey <tom@tromey.com>
9274
9275 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
9276 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
9277 * tui/tui-data.c (tui_set_win_with_focus): Remove.
9278 (tui_set_win_focus_to): Move from tui-win.c.
9279
9280 2020-02-22 Tom Tromey <tom@tromey.com>
9281
9282 * tui/tui-layout.c (make_standard_window, get_locator_window): New
9283 functions.
9284 (known_window_types): New global.
9285 (tui_get_window_by_name): Reimplement.
9286 (initialize_known_windows): New function.
9287 (validate_window_name): Rewrite.
9288 (_initialize_tui_layout): Call initialize_known_windows.
9289
9290 2020-02-22 Tom Tromey <tom@tromey.com>
9291
9292 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
9293 Remove constants.
9294 * tui/tui-winsource.h (struct tui_source_window_base)
9295 <tui_source_window_base>: Remove parameter.
9296 * tui/tui-winsource.c
9297 (tui_source_window_base::tui_source_window_base): Remove
9298 parameter.
9299 (tui_source_window_base::refill): Update.
9300 * tui/tui-stack.h (struct tui_locator_window)
9301 <tui_locator_window>: Update.
9302 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
9303 Default the constructor.
9304 * tui/tui-regs.h (struct tui_data_item_window)
9305 <tui_data_item_window>: Default the constructor.
9306 (struct tui_data_window) <tui_data_window>: Likewise.
9307 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
9308 Default the constructor.
9309 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
9310 Default the constructor.
9311 <type>: Remove.
9312 (struct tui_win_info) <tui_win_info>: Default the constructor.
9313 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
9314 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
9315 Default the constructor.
9316
9317 2020-02-22 Tom Tromey <tom@tromey.com>
9318
9319 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
9320 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
9321 * tui/tui-win.c (tui_resize_all): Don't call
9322 tui_delete_invisible_windows.
9323 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
9324 done.
9325 (tui_set_layout): Update.
9326 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
9327 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
9328 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
9329
9330 2020-02-22 Tom Tromey <tom@tromey.com>
9331
9332 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
9333 correctly.
9334
9335 2020-02-22 Tom Tromey <tom@tromey.com>
9336
9337 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
9338
9339 2020-02-22 Tom Tromey <tom@tromey.com>
9340
9341 * tui/tui-winsource.h (struct tui_source_window_iterator)
9342 <inner_iterator>: New etytypedef.
9343 <tui_source_window_iterator>: Take "end" parameter.
9344 <tui_source_window_iterator>: Take iterator.
9345 <operator*, advance>: Update.
9346 <m_iter>: Change type.
9347 <m_end>: New field.
9348 (struct tui_source_windows) <begin, end>: Update.
9349 * tui/tui-layout.c (tui_windows): New global.
9350 (tui_apply_current_layout): Clear tui_windows.
9351 (tui_layout_window::apply): Update tui_windows.
9352 * tui/tui-data.h (tui_windows): Declare.
9353 (all_tui_windows): Now inline function.
9354 (class tui_window_iterator, struct all_tui_windows): Remove.
9355
9356 2020-02-22 Tom Tromey <tom@tromey.com>
9357
9358 PR tui/17850:
9359 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
9360 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
9361 "height" argument.
9362 (class tui_layout_window) <get_sizes>: Likewise.
9363 (class tui_layout_split) <tui_layout_split>: Add "vertical"
9364 argument.
9365 <get_sizes>: Add "height" argument.
9366 <m_vertical>: New field.
9367 * tui/tui-layout.c (tui_layout_split::clone): Update.
9368 (tui_layout_split::get_sizes): Add "height" argument.
9369 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
9370 (tui_new_layout_command): Parse "-horizontal".
9371 (_initialize_tui_layout): Update help string.
9372 (tui_layout_split::specification): Add "-horizontal" when needed.
9373 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
9374 argument.
9375 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
9376 New methods.
9377
9378 2020-02-22 Tom Tromey <tom@tromey.com>
9379
9380 * tui/tui-layout.h (enum tui_adjust_result): New.
9381 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
9382 (class tui_layout_window) <adjust_size>: Return
9383 tui_adjust_result. Rewrite.
9384 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9385 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9386
9387 2020-02-22 Tom Tromey <tom@tromey.com>
9388
9389 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9390 parameter and return types.
9391 (class tui_layout_base) <specification>: Add "depth".
9392 (class tui_layout_window) <specification>: Add "depth".
9393 (class tui_layout_split) <specification>: Add "depth".
9394 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9395 and return types.
9396 (tui_new_layout_command): Parse sub-layouts.
9397 (_initialize_tui_layout): Update help string.
9398 (tui_layout_window::specification): Add "depth".
9399 (add_layout_command): Update.
9400
9401 2020-02-22 Tom Tromey <tom@tromey.com>
9402
9403 * NEWS: Add "tui new-layout" item.
9404 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9405 Add new-layout command to help text.
9406 (validate_window_name): New function.
9407 (tui_new_layout_command): New function.
9408 (_initialize_tui_layout): Register "new-layout".
9409 (tui_layout_window::specification): New method.
9410 (tui_layout_window::specification): New method.
9411 * tui/tui-layout.h (class tui_layout_base) <specification>: New
9412 method.
9413 (class tui_layout_window) <specification>: New method.
9414 (class tui_layout_split) <specification>: New method.
9415
9416 2020-02-22 Tom Tromey <tom@tromey.com>
9417
9418 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9419 * tui/tui-win.c (window_name_completer): Update comment.
9420 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9421 Declare method.
9422 (class tui_layout_window) <replace_window>: Likewise.
9423 (class tui_layout_split) <replace_window>: Likewise.
9424 (tui_set_layout): Don't declare.
9425 (tui_set_initial_layout): Declare function.
9426 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9427 (asm_regs_layout): New globals.
9428 (tui_current_layout, show_layout): Remove.
9429 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9430 (find_layout, tui_apply_layout): New function.
9431 (layout_completer): Remove.
9432 (tui_next_layout): Reimplement.
9433 (tui_next_layout_command): New function.
9434 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9435 (tui_regs_layout): Reimplement.
9436 (tui_regs_layout_command): New function.
9437 (extract_display_start_addr): Rewrite.
9438 (next_layout, prev_layout): Remove.
9439 (tui_layout_window::replace_window): New method.
9440 (tui_layout_split::replace_window): New method.
9441 (destroy_layout): New function.
9442 (layout_list): New global.
9443 (add_layout_command): New function.
9444 (initialize_layouts): Update.
9445 (tui_layout_command): New function.
9446 (_initialize_tui_layout): Install "layout" commands.
9447 * tui/tui-data.h (enum tui_layout_type): Remove.
9448 (tui_current_layout): Don't declare.
9449
9450 2020-02-22 Tom Tromey <tom@tromey.com>
9451
9452 * tui/tui-regs.c (tui_reg_layout): Remove.
9453 (tui_reg_command): Use tui_regs_layout.
9454 * tui/tui-layout.h (tui_reg_command): Declare.
9455 * tui/tui-layout.c (tui_reg_command): New function.
9456
9457 2020-02-22 Tom Tromey <tom@tromey.com>
9458
9459 * tui/tui.c (tui_rl_delete_other_windows): Call
9460 tui_remove_some_windows.
9461 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9462 Declare method.
9463 (class tui_layout_window) <remove_windows>: New method.
9464 (class tui_layout_split) <remove_windows>: Declare.
9465 (tui_remove_some_windows): Declare.
9466 * tui/tui-layout.c (tui_remove_some_windows): New function.
9467 (tui_layout_split::remove_windows): New method.
9468
9469 2020-02-22 Tom Tromey <tom@tromey.com>
9470
9471 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9472 * tui/tui-layout.h (tui_next_layout): Declare.
9473 * tui/tui-layout.c (tui_next_layout): New function.
9474
9475 2020-02-22 Tom Tromey <tom@tromey.com>
9476
9477 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9478 correct coordinates.
9479
9480 2020-02-22 Tom Tromey <tom@tromey.com>
9481
9482 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9483 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9484 DATA_WIN case.
9485
9486 2020-02-22 Tom Tromey <tom@tromey.com>
9487
9488 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9489 TUI_DISASM_WIN, not tui_win_list.
9490
9491 2020-02-22 Tom Tromey <tom@tromey.com>
9492
9493 * valprint.c (generic_val_print_enum_1)
9494 (val_print_type_code_flags): Style member names.
9495 * rust-lang.c (val_print_struct, rust_print_enum)
9496 (rust_print_struct_def, rust_internal_print_type): Style member
9497 names.
9498 * p-valprint.c (pascal_object_print_value_fields): Style member
9499 names. Only call fprintf_symbol_filtered for static members.
9500 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9501 * f-valprint.c (f_val_print): Style member names.
9502 * f-typeprint.c (f_type_print_base): Style member names.
9503 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9504 call fprintf_symbol_filtered for static members.
9505 (cp_print_class_member): Style member names.
9506 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9507 member names.
9508 * ada-valprint.c (ada_print_scalar): Style enum names.
9509 (ada_val_print_enum): Likewise.
9510 * ada-typeprint.c (print_enum_type): Style enum names.
9511
9512 2020-02-21 Tom Tromey <tom@tromey.com>
9513
9514 * psympriv.h (struct partial_symtab): Update comment.
9515
9516 2020-02-21 Tom Tromey <tromey@adacore.com>
9517
9518 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9519 type is CORE_ADDR.
9520
9521 2020-02-21 Tom de Vries <tdevries@suse.de>
9522
9523 PR gdb/25534
9524 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9525 if dependencies[i]->user != NULL.
9526
9527 2020-02-21 Ali Tamur <tamur@google.com>
9528
9529 * dwarf2/read.c (dwarf2_name): Add null check.
9530
9531 2020-02-20 Tom Tromey <tom@tromey.com>
9532
9533 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9534 ">=", in binary search.
9535 (dwarf2_find_containing_comp_unit): New overload.
9536 (run_test): New self-test.
9537 (_initialize_dwarf2_read): Register new test.
9538
9539 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
9540
9541 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9542 * riscv-tdep.h: Likewise.
9543 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9544 rv32-only CSR.
9545 * features/riscv/64bit-csr.xml: Regenerated.
9546
9547 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9548 Tom Tromey <tom@tromey.com>
9549
9550 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9551 of 'fputc_unfiltered'.
9552 (putchar_unfiltered): Call 'fputc_unfiltered'.
9553 (fputc_unfiltered): Call 'fputs_unfiltered'.
9554
9555 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9556
9557 * config.in: Regenerate.
9558 * configure: Regenerate.
9559 * configure.ac: Add --with-python-libdir option.
9560 * main.c: Use WITH_PYTHON_LIBDIR.
9561
9562 2020-02-19 Tom Tromey <tom@tromey.com>
9563
9564 * symtab.c (general_symbol_info::compute_and_set_names): Use
9565 obstack_strndup. Simplify call to symbol_set_demangled_name.
9566
9567 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
9568
9569 * dwarf2/read.c (allocate_signatured_type_table,
9570 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9571 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9572 Remove objfile parameter, update all callers.
9573
9574 2020-02-19 Doug Evans <dje@google.com>
9575
9576 PR rust/25535
9577 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9578 rust_enum_variant calculation.
9579
9580 2020-02-19 Tom Tromey <tromey@adacore.com>
9581
9582 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9583
9584 2020-02-19 Tom Tromey <tromey@adacore.com>
9585
9586 * ada-lang.c (cache_symbol): Use obstack_strdup.
9587
9588 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9589
9590 * configure: Regenerate.
9591
9592 2020-02-19 Tom Tromey <tromey@adacore.com>
9593
9594 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9595 NULL check.
9596
9597 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
9598
9599 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9600
9601 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9602
9603 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9604 if GDBSERVER is not defined.
9605 (riscv_tdesc_cache): Likewise, also store const target_desc.
9606 (STATIC_IN_GDB): Define.
9607 (riscv_create_target_description): Update declaration with
9608 STATIC_IN_GDB.
9609 (riscv_lookup_target_description): New function, only define if
9610 GDBSERVER is not defined.
9611 * arch/riscv.h (riscv_create_target_description): Declare only
9612 when GDBSERVER is defined.
9613 (riscv_lookup_target_description): New declaration when GDBSERVER
9614 is not defined.
9615 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9616 (riscv_linux_read_features): ...this, and return
9617 riscv_gdbarch_features instead of target_desc.
9618 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9619 (riscv_linux_read_description): Rename to...
9620 (riscv_linux_read_features): ...this.
9621 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9622 Update to use riscv_gdbarch_features and
9623 riscv_lookup_target_description.
9624 * riscv-tdep.c (riscv_find_default_target_description): Use
9625 riscv_lookup_target_description instead of
9626 riscv_create_target_description.
9627
9628 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9629
9630 * valprint.c (generic_val_print_enum_1): When printing a flag
9631 enum with value 0 and there is no enumerator with value 0, print
9632 just "0" instead of "(unknown: 0x0)".
9633
9634 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9635
9636 * valprint.c (generic_val_print_enum_1): Print unknown part of
9637 flag enum in hex.
9638
9639 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9640
9641 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9642 flag enums to contain duplicate enumerators.
9643 * valprint.c (generic_val_print_enum_1): Update comment.
9644
9645 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9646
9647 * dwarf2/read.c: Include "count-one-bits.h".
9648 (update_enumeration_type_from_children): If an enumerator has
9649 multiple bits set, don't treat the enumeration as a "flag enum".
9650 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9651 of flag enums have 0 or 1 bit set.
9652
9653 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9654
9655 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9656 conversion.
9657 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9658 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9659 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9660 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9661 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9662
9663 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9664
9665 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9666
9667 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9668
9669 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9670 displaced_step_closure_up.
9671 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9672 (struct displaced_step_closure_up):
9673 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9674 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9675 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9676 Likewise.
9677 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9678 * gdbarch.c, gdbarch.h: Re-generate.
9679 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9680 displaced_step_closure_up.
9681 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9682 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9683 * infrun.h (displaced_step_closure_up): New type alias.
9684 (struct displaced_step_inferior_state) <step_closure>: Change
9685 type to displaced_step_closure_up.
9686 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9687 displaced_step_closure_up.
9688 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9689
9690 2020-02-14 Tom Tromey <tom@tromey.com>
9691
9692 * minidebug.c (gnu_debug_key): New global.
9693 (find_separate_debug_file_in_section): Use it.
9694
9695 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9696
9697 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9698 std::unique_ptr.
9699 * gdbarch.c: Re-generate.
9700 * gdbarch.h: Re-generate.
9701 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9702 change.
9703 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9704 type to std::unique_ptr.
9705 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9706 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9707 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9708 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9709 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9710 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9711 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9712 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9713 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9714
9715 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9716
9717 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9718 std::unique_ptr.
9719 (displaced_step_clear): Rename to...
9720 (displaced_step_reset): ... this. Just call displaced->reset ().
9721 (displaced_step_clear_cleanup): Rename to...
9722 (displaced_step_reset_cleanup): ... this.
9723 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9724 (displaced_step_fixup): Likewise.
9725 (resume_1): Likewise.
9726 (handle_inferior_event): Restore child's memory before calling
9727 displaced_step_fixup on the parent.
9728 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9729 to std::unique_ptr.
9730 <step_closure>: Change type to std::unique_ptr.
9731
9732 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9733
9734 * arm-tdep.c: Include count-one-bits.h.
9735 (cleanup_block_store_pc): Use count_one_bits.
9736 (cleanup_block_load_pc): Use count_one_bits.
9737 (arm_copy_block_xfer): Use count_one_bits.
9738 (thumb2_copy_block_xfer): Use count_one_bits.
9739 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9740 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9741 (thumb_get_next_pcs_raw): Use count_one_bits.
9742 (arm_get_next_pcs_raw): Use count_one_bits_l.
9743 * arch/arm.c (bitcount): Remove.
9744 * arch/arm.h (bitcount): Remove.
9745
9746 2020-02-14 Tom Tromey <tromey@adacore.com>
9747
9748 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9749 Update.
9750 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9751 * dwarf2/loc.c (call_site_find_chain_1): Return
9752 unique_xmalloc_ptr.
9753 (call_site_find_chain): Likewise.
9754
9755 2020-02-14 Richard Biener <rguenther@suse.de>
9756
9757 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9758 on expression with division operators.
9759
9760 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9761
9762 * MAINTAINERS (Write After Approval): Adding myself.
9763
9764 2020-02-12 Tom Tromey <tom@tromey.com>
9765
9766 * event-loop.c (event_data, gdb_event, event_handler_func):
9767 Remove.
9768
9769 2020-02-12 Tom Tromey <tom@tromey.com>
9770
9771 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9772 (dwarf2_frame_objfile_data): Add comment.
9773 (find_comp_unit, set_comp_unit): New functions.
9774 (dwarf2_frame_find_fde): Use find_comp_unit.
9775 (dwarf2_build_frame_info): Use set_comp_unit.
9776
9777 2020-02-12 Tom Tromey <tom@tromey.com>
9778
9779 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9780 (comp_unit): Don't initialize objfile.
9781 (execute_cfa_program): Add text_offset parameter.
9782 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9783 (dwarf2_frame_cache): Update.
9784 (dwarf2_build_frame_info): Don't set "objfile" member.
9785
9786 2020-02-12 Tom Tromey <tom@tromey.com>
9787
9788 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9789 (decode_frame_entry): Likewise.
9790 (dwarf2_build_frame_info): Update.
9791
9792 2020-02-12 Tom Tromey <tom@tromey.com>
9793
9794 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9795 (decode_frame_entry_1): Use the comp_unit obstack.
9796
9797 2020-02-12 Tom Tromey <tom@tromey.com>
9798
9799 * dwarf2/frame.c (struct comp_unit): Add initializers and
9800 constructor.
9801 (dwarf2_frame_objfile_data): Store a comp_unit.
9802 (dwarf2_frame_find_fde): Update.
9803 (dwarf2_build_frame_info): Use "new".
9804
9805 2020-02-12 Tom Tromey <tom@tromey.com>
9806
9807 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9808 (dwarf2_fde_table): Typedef for std::vector.
9809 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9810 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9811 (decode_frame_entry): Update.
9812 (dwarf2_build_frame_info): Use "new".
9813
9814 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9815
9816 * arm-tdep.c (arm_gdbarch_init): Update.
9817 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9818 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9819 have_neon, is_m>: Change to bool.
9820
9821 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9822
9823 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9824
9825 2020-02-12 Tom Tromey <tom@tromey.com>
9826
9827 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9828
9829 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
9830
9831 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9832 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9833
9834 2020-02-11 Tom Tromey <tom@tromey.com>
9835
9836 * psymtab.h: Update comment.
9837
9838 2020-02-11 Tom Tromey <tom@tromey.com>
9839
9840 * gdb_obstack.h (struct auto_obstack): Use
9841 DISABLE_COPY_AND_ASSIGN.
9842
9843 2020-02-11 Tom Tromey <tom@tromey.com>
9844
9845 * dwarf2/frame.h (struct objfile): Don't forward declare.
9846
9847 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9848
9849 * cris-tdep.c (cris_supply_gregset): Change signature to match
9850 what struct regset expects.
9851 (cris_regset): New struct.
9852 (fetch_core_registers): Remove.
9853 (cris_iterate_over_regset_sections): New function.
9854 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9855 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9856
9857 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9858
9859 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9860 registers.
9861
9862 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9863
9864 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9865
9866 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9867
9868 * configure: Re-generate.
9869
9870 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9871
9872 * configure: Re-generate.
9873
9874 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9875
9876 * acinclude: Update warning.m4 path.
9877 * warning.m4: Move to gdbsupport.
9878
9879 2020-02-11 Tom Tromey <tromey@adacore.com>
9880
9881 * remote.c (remote_console_output): Update.
9882 * printcmd.c (printf_command): Update.
9883 * event-loop.c (gdb_wait_for_event): Update.
9884 * linux-nat.c (sigchld_handler): Update.
9885 * remote-sim.c (gdb_os_write_stdout): Update.
9886 (gdb_os_flush_stdout): Update.
9887 (gdb_os_flush_stderr): Update.
9888 (gdb_os_write_stderr): Update.
9889 * exceptions.c (print_exception): Update.
9890 * remote-fileio.c (remote_fileio_func_read): Update.
9891 (remote_fileio_func_write): Update.
9892 * tui/tui.c (tui_enable): Update.
9893 * tui/tui-interp.c (tui_interp::init): Update.
9894 * utils.c (init_page_info): Update.
9895 (putchar_unfiltered, fputc_unfiltered): Update.
9896 (gdb_flush): Update.
9897 (emit_style_escape): Update.
9898 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9899 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9900 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9901 (stderr_file::write): Update.
9902 (stderr_file::puts): Update.
9903 * ui-file.h (ui_file_isatty, ui_file_write)
9904 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9905 (ui_file_puts): Don't declare.
9906
9907 2020-02-10 Tom de Vries <tdevries@suse.de>
9908
9909 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9910 sentinel to char *.
9911
9912 2020-02-09 Tom de Vries <tdevries@suse.de>
9913
9914 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9915 filename if it matches "<artificial>".
9916
9917 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9918
9919 * windows-tdep.c (struct enum_value_name): New struct.
9920 (create_enum): New function.
9921 (windows_get_siginfo_type): Create and use enum types.
9922
9923 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9924
9925 * NEWS: Mention $_siginfo support for Windows.
9926 * windows-nat.c (handle_exception): Set siginfo_er.
9927 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9928 (windows_xfer_siginfo): New function.
9929 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9930 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9931 (init_windows_gdbarch_data): New function.
9932 (get_windows_gdbarch_data): New function.
9933 (windows_get_siginfo_type): New function.
9934 (windows_init_abi): Register windows_get_siginfo_type.
9935 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9936
9937 2020-02-08 Tom Tromey <tom@tromey.com>
9938
9939 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9940 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9941 <keep>: Declare method.
9942 <m_keep>: Remove member.
9943 <~cutu_reader>: Remove.
9944 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9945 (cutu_reader::cutu_reader): Update.
9946 (cutu_reader::keep): Rename from ~cutu_reader.
9947 (process_psymtab_comp_unit, build_type_psymtabs_1)
9948 (process_skeletonless_type_unit, load_partial_comp_unit)
9949 (load_full_comp_unit, dwarf2_read_addr_index)
9950 (read_signatured_type): Update.
9951
9952 2020-02-08 Tom Tromey <tom@tromey.com>
9953
9954 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9955 "want_partial_unit" parameter.
9956 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9957 Inline check for DW_TAG_partial_unit.
9958 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9959
9960 2020-02-08 Tom Tromey <tom@tromey.com>
9961
9962 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9963 read.c.
9964 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9965 read.c.
9966
9967 2020-02-08 Tom Tromey <tom@tromey.com>
9968
9969 * dwarf2/read.c (read_address): Move to comp-unit.c.
9970 (dwarf2_rnglists_process, dwarf2_ranges_process)
9971 (read_attribute_value, dwarf_decode_lines_1)
9972 (var_decode_location, decode_locdesc): Update.
9973 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9974 read.c. Remove "cu" parameter.
9975 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9976 method.
9977
9978 2020-02-08 Tom Tromey <tom@tromey.com>
9979
9980 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9981 (read_indirect_line_string): Update.
9982 * dwarf2/comp-unit.c (read_offset): Remove.
9983 (read_comp_unit_head): Update.
9984 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9985 method.
9986 (read_offset): Don't declare.
9987
9988 2020-02-08 Tom Tromey <tom@tromey.com>
9989
9990 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9991 * dwarf2/read.c (struct comp_unit_head): Move to
9992 dwarf2/comp-unit.h.
9993 (enum class rcuh_kind): Move to comp-unit.h.
9994 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9995 (read_comp_unit_head, error_check_comp_unit_head)
9996 (read_and_check_comp_unit_head): Move to comp-unit.c.
9997 (read_offset, dwarf_unit_type_name): Likewise.
9998 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9999 (cutu_reader::cutu_reader, read_call_site_scope)
10000 (find_partial_die, follow_die_offset): Update.
10001 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
10002
10003 2020-02-08 Tom Tromey <tom@tromey.com>
10004
10005 * dwarf2/read.c (read_offset_1): Move to leb.c.
10006 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
10007 (dwarf_decode_macro_bytes): Update.
10008 * dwarf2/leb.c (read_offset): Rename; move from read.c.
10009 * dwarf2/leb.h (read_offset): Declare.
10010
10011 2020-02-08 Tom Tromey <tom@tromey.com>
10012
10013 * dwarf2/read.c (dwarf2_section_size): Remove.
10014 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
10015 Update.
10016 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
10017
10018 2020-02-08 Tom Tromey <tom@tromey.com>
10019
10020 * dwarf2/read.c (read_initial_length): Move to leb.c.
10021 * dwarf2/leb.h (read_initial_length): Declare.
10022 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
10023 handle_nonstd parameter.
10024 * dwarf2/frame.c (read_initial_length): Remove.
10025 (decode_frame_entry_1): Update.
10026
10027 2020-02-08 Tom Tromey <tom@tromey.com>
10028
10029 * dwarf2/loc.c (dwarf2_find_location_expression)
10030 (dwarf_evaluate_loc_desc::get_tls_address)
10031 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
10032 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
10033 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
10034 (dwarf2_compile_property_to_c)
10035 (dwarf2_loc_desc_get_symbol_read_needs)
10036 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
10037 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
10038 (loclist_describe_location, loclist_tracepoint_var_ref)
10039 (loclist_generate_c_location): Update.
10040 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
10041 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
10042 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
10043 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
10044 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
10045 (dwarf2_per_cu_data::addr_size)
10046 (dwarf2_per_cu_data::ref_addr_size)
10047 (dwarf2_per_cu_data::text_offset)
10048 (dwarf2_per_cu_data::addr_type): Now methods.
10049 (per_cu_header_read_in): Make per_cu "const".
10050 (dwarf2_version): Remove.
10051 (dwarf2_per_cu_data::int_type): Now a method.
10052 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
10053 (set_die_type, read_array_type, read_subrange_index_type)
10054 (read_tag_string_type, read_subrange_type): Update.
10055 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
10056 offset_size, ref_addr_size, text_offset, addr_type, version,
10057 objfile, int_type, addr_sized_int_type>: Declare methods.
10058
10059 2020-02-08 Tom Tromey <tom@tromey.com>
10060
10061 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
10062 Move earlier.
10063
10064 2020-02-08 Tom Tromey <tom@tromey.com>
10065
10066 * dwarf2/read.h (dwarf_line_debug): Declare.
10067 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
10068 * dwarf2/read.c: Move line_header code to new files.
10069 (dwarf_line_debug): No longer static.
10070 * dwarf2/line-header.c: New file.
10071 * dwarf2/line-header.h: New file.
10072
10073 2020-02-08 Tom Tromey <tom@tromey.com>
10074
10075 * dwarf2/read.c (struct line_header) <file_full_name,
10076 file_file_name>: Return unique_xmalloc_ptr.
10077 (line_header::file_file_name): Update.
10078 (line_header::file_full_name): Update.
10079 (dw2_get_file_names_reader): Update.
10080 (macro_start_file): Update.
10081
10082 2020-02-08 Tom Tromey <tom@tromey.com>
10083
10084 * dwarf2/read.c (struct line_header) <file_full_name,
10085 file_file_name>: Declare methods.
10086 (dw2_get_file_names_reader): Update.
10087 (file_file_name): Now a method.
10088 (file_full_name): Likewise.
10089 (macro_start_file): Update.
10090
10091 2020-02-08 Tom Tromey <tom@tromey.com>
10092
10093 * dwarf2/read.c (dwarf_always_disassemble)
10094 (show_dwarf_always_disassemble): Move to loc.c.
10095 (_initialize_dwarf2_read): Move "always-disassemble" registration
10096 to loc.c.
10097 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
10098 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
10099 static.
10100 (show_dwarf_always_disassemble): Move from read.c.
10101 (_initialize_dwarf2loc): Move always-disassemble from read.c.
10102
10103 2020-02-08 Tom Tromey <tom@tromey.com>
10104
10105 * dwarf2/read.c (~dwarf2_per_objfile): Update.
10106 (create_quick_file_names_table): Return htab_up.
10107 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
10108 Update.
10109 * dwarf2/read.h (struct dwarf2_per_objfile)
10110 <quick_file_names_table>: Now htab_up.
10111
10112 2020-02-08 Tom Tromey <tom@tromey.com>
10113
10114 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
10115
10116 2020-02-08 Tom Tromey <tom@tromey.com>
10117
10118 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
10119 Rewrite.
10120 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
10121 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
10122 (abbrev_table::abbrev_table): No longer inline.
10123 (ABBREV_HASH_SIZE): Remove.
10124 (abbrev_table::m_abbrevs): Now an htab_up.
10125
10126 2020-02-08 Tom Tromey <tom@tromey.com>
10127
10128 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
10129 (cutu_reader): Update.
10130 (build_type_psymtabs_1): Update.
10131 * dwarf2/abbrev.c (abbrev_table::read): Rename.
10132 (abbrev_table::alloc_abbrev): Update.
10133 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
10134 (abbrev_table::read): New static method, renamed from
10135 abbrev_table_read_table.
10136 (abbrev_table::alloc_abbrev)
10137 (abbrev_table::add_abbrev): Now private.
10138 (abbrev_table::abbrev_table): Now private.
10139 (abbrev_table::m_abbrev_obstack): Now private. Rename.
10140
10141 2020-02-08 Tom Tromey <tom@tromey.com>
10142
10143 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
10144 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
10145 htab_up.
10146
10147 2020-02-08 Tom Tromey <tom@tromey.com>
10148
10149 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
10150 htab_up.
10151 (lookup_dwo_unit_in_dwp): Update.
10152 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
10153 on obstack.
10154
10155 2020-02-08 Tom Tromey <tom@tromey.com>
10156
10157 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
10158 obstack.
10159
10160 2020-02-08 Tom Tromey <tom@tromey.com>
10161
10162 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
10163 line_header_hash.
10164 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
10165 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
10166 Change type to htab_up.
10167
10168 2020-02-08 Tom Tromey <tom@tromey.com>
10169
10170 * dwarf2/read.c (allocate_type_unit_groups_table): Return
10171 htab_up. Don't allocate on obstack.
10172 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
10173 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
10174 Change type to htab_up.
10175
10176 2020-02-08 Tom Tromey <tom@tromey.com>
10177
10178 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
10179 Change type to htab_up.
10180 * dwarf2/read.c (create_signatured_type_table_from_index)
10181 (create_signatured_type_table_from_debug_names)
10182 (create_all_type_units, add_type_unit)
10183 (lookup_dwo_signatured_type, lookup_signatured_type)
10184 (process_skeletonless_type_unit): Update.
10185 (create_debug_type_hash_table, create_debug_types_hash_table):
10186 Change type of types_htab.
10187 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
10188 htab_up. Don't allocate on obstack.
10189 (create_cus_hash_table): Change type of cus_htab parameter.
10190 (struct dwo_file) <cus, tus>: Now htab_up.
10191 (lookup_dwo_signatured_type, lookup_dwo_cutu)
10192 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
10193 (queue_and_load_all_dwo_tus): Update.
10194 * dwarf2/index-write.c (write_gdbindex): Update.
10195 (write_debug_names): Update.
10196
10197 2020-02-08 Tom Tromey <tom@tromey.com>
10198
10199 * dwarf2/read.h (struct dwarf2_queue_item): Move from
10200 dwarf2/read.c. Remove "next" member. Add constructor ntad
10201 destructor.
10202 (struct dwarf2_per_objfile) <queue>: New member.
10203 * dwarf2/read.c (struct dwarf2_queue_item): Move to
10204 dwarf2/read.h.
10205 (dwarf2_queue, dwarf2_queue_tail): Remove.
10206 (class dwarf2_queue_guard): Add parameter to constructor. Use
10207 DISABLE_COPY_AND_ASSIGN.
10208 <m_per_objfile>: New member.
10209 <~dwarf2_queue_guard>: Rewrite.
10210 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
10211 Update.
10212 (~dwarf2_queue_item): New.
10213
10214 2020-02-08 Tom Tromey <tom@tromey.com>
10215
10216 * dwarf2/read.c (struct die_info) <has_children>: New member.
10217 (dw2_get_file_names_reader): Remove has_children.
10218 (dw2_get_file_names): Update.
10219 (read_cutu_die_from_dwo): Remove has_children.
10220 (cutu_reader::init_tu_and_read_dwo_dies)
10221 (cutu_reader::cutu_reader): Update.
10222 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
10223 Remove has_children.
10224 (build_type_psymtabs_1, process_skeletonless_type_unit)
10225 (load_partial_comp_unit, load_full_comp_unit): Update.
10226 (create_dwo_cu_reader): Remove has_children.
10227 (create_cus_hash_table, read_die_and_children): Update.
10228 (read_full_die_1,read_full_die): Remove has_children.
10229 (read_signatured_type): Update.
10230 (class cutu_reader) <has_children>: Remove.
10231
10232 2020-02-08 Tom Tromey <tom@tromey.com>
10233
10234 * dwarf2/expr.c: Rename from dwarf2expr.c.
10235 * dwarf2/expr.h: Rename from dwarf2expr.h.
10236 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
10237 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
10238 * dwarf2/frame.c: Rename from dwarf2-frame.c.
10239 * dwarf2/frame.h: Rename from dwarf2-frame.h.
10240 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
10241 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
10242 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
10243 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
10244 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
10245 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
10246 * dwarf2/loc.c: Rename from dwarf2loc.c.
10247 * dwarf2/loc.h: Rename from dwarf2loc.h.
10248 * dwarf2/read.c: Rename from dwarf2read.c.
10249 * dwarf2/read.h: Rename from dwarf2read.h.
10250 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
10251 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
10252 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
10253 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
10254 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
10255 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
10256 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
10257 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
10258 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
10259 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
10260 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
10261 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
10262 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
10263 Update.
10264 * Makefile.in (COMMON_SFILES): Update.
10265 (HFILES_NO_SRCDIR): Update.
10266
10267 2020-02-08 Tom Tromey <tom@tromey.com>
10268
10269 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
10270 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
10271
10272 2020-02-08 Tom Tromey <tom@tromey.com>
10273
10274 * dwarf2read.h (struct die_info): Don't declare.
10275
10276 2020-02-08 Tom Tromey <tom@tromey.com>
10277
10278 * dwarf2read.h (die_info_ptr): Remove typedef.
10279
10280 2020-02-08 Tom Tromey <tom@tromey.com>
10281
10282 * dwarf2read.c (read_call_site_scope)
10283 (handle_data_member_location, dwarf2_add_member_fn)
10284 (mark_common_block_symbol_computed, read_common_block)
10285 (attr_to_dynamic_prop, partial_die_info::read)
10286 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
10287 (dwarf2_symbol_mark_computed, set_die_type): Update.
10288 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
10289 method.
10290 (attr_form_is_block): Don't declare.
10291 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
10292
10293 2020-02-08 Tom Tromey <tom@tromey.com>
10294
10295 * dwarf2read.c (dwarf2_find_base_address, )
10296 (read_call_site_scope, rust_containing_type)
10297 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
10298 (handle_data_member_location, dwarf2_add_member_fn)
10299 (get_alignment, read_structure_type, process_structure_scope)
10300 (mark_common_block_symbol_computed, read_common_block)
10301 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
10302 (partial_die_info::read, read_attribute_value, new_symbol)
10303 (lookup_die_type, dwarf2_get_ref_die_offset)
10304 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
10305 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
10306 (dwarf2_symbol_mark_computed): Update.
10307 * dwarf2/attribute.h (struct attribute) <value_as_address,
10308 form_is_section_offset, form_is_constant, form_is_ref>: Declare
10309 methods.
10310 (value_as_address, attr_form_is_section_offset)
10311 (attr_form_is_constant, attr_form_is_ref): Don't declare.
10312 * dwarf2/attribute.c (attribute::value_as_address)
10313 (attribute::form_is_section_offset, attribute::form_is_constant)
10314 (attribute::form_is_ref): Now methods.
10315
10316 2020-02-08 Tom Tromey <tom@tromey.com>
10317
10318 * dwarf2read.c (struct attribute, DW_STRING)
10319 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
10320 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
10321 (attr_form_is_block, attr_form_is_section_offset)
10322 (attr_form_is_constant, attr_form_is_ref): Move.
10323 * dwarf2/attribute.h: New file.
10324 * dwarf2/attribute.c: New file, from dwarf2read.c.
10325 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
10326
10327 2020-02-08 Tom Tromey <tom@tromey.com>
10328
10329 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
10330 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
10331 Move.
10332 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
10333 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
10334 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
10335 abbrev.c.
10336 * dwarf2/abbrev.h: New file.
10337 * dwarf2/abbrev.c: New file, from dwarf2read.c.
10338 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
10339
10340 2020-02-08 Tom Tromey <tom@tromey.com>
10341
10342 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
10343 (dwarf2_section_size, dwarf2_get_section_info)
10344 (create_signatured_type_table_from_debug_names)
10345 (create_addrmap_from_aranges, read_debug_names_from_section)
10346 (get_gdb_index_contents_from_section, read_comp_unit_head)
10347 (error_check_comp_unit_head, read_abbrev_offset)
10348 (create_debug_type_hash_table, init_cu_die_reader)
10349 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
10350 (read_comp_units_from_section, create_cus_hash_table)
10351 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10352 (create_dwp_v2_section, dwarf2_rnglists_process)
10353 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
10354 (abbrev_table_read_table, read_indirect_string_at_offset_from)
10355 (read_indirect_string_from_dwz, read_addr_index_1)
10356 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
10357 (dwarf_decode_macro_bytes, dwarf_decode_macros)
10358 (fill_in_loclist_baton): Update.
10359 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
10360 get_containing_section, get_bfd_owner, get_bfd_section,
10361 get_file_name, get_id, get_flags, empty, read>: Declare methods.
10362 (dwarf2_read_section, get_section_name, get_section_file_name)
10363 (get_containing_section, get_section_bfd_owner)
10364 (get_section_bfd_section, get_section_name, get_section_file_name)
10365 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
10366 declare.
10367 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
10368 (dwarf2_section_info::get_bfd_owner)
10369 (dwarf2_section_info::get_bfd_section)
10370 (dwarf2_section_info::get_name)
10371 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
10372 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
10373 (dwarf2_section_info::read): Now methods.
10374 * dwarf-index-write.c (class debug_names): Update.
10375
10376 2020-02-08 Tom Tromey <tom@tromey.com>
10377
10378 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
10379 Move to dwarf2/section.h.
10380 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
10381 (get_section_bfd_section, get_section_name)
10382 (get_section_file_name, get_section_id, get_section_flags)
10383 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
10384 dwarf2/section.c.
10385 * dwarf2/section.h: New file.
10386 * dwarf2/section.c: New file, from dwarf2read.c.
10387 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10388
10389 2020-02-08 Tom Tromey <tom@tromey.com>
10390
10391 * dwarf2read.h (read_unsigned_leb128): Don't declare.
10392 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10393 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10394 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10395 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10396 * dwarf2/leb.h: New file, from dwarf2read.c.
10397 * dwarf2/leb.c: New file, from dwarf2read.c.
10398 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10399 Remove.
10400 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10401 (COMMON_SFILES): Add dwarf2/leb.c.
10402
10403 2020-02-08 Joel Brobecker <brobecker@adacore.com>
10404
10405 GDB 9.1 released.
10406
10407 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10408
10409 PR gdb/25190:
10410 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10411 * gdb/remote.c (remote_console_output): Update.
10412 * gdb/ui-file.c (fputs_unfiltered): Rename to...
10413 (ui_file_puts): ...this.
10414 * gdb/ui-file.h (ui_file_puts): Add declaration.
10415 * gdb/utils.c (emit_style_escape): Update.
10416 (flush_wrap_buffer): Update.
10417 (fputs_maybe_filtered): Update.
10418 (fputs_unfiltered): Add function.
10419
10420 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10421
10422 * gdb/event-loop.c (gdb_wait_for_event): Update.
10423 * gdb/printcmd.c (printf_command): Update.
10424 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10425 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10426 (gdb_os_flush_stderr): Update.
10427 * gdb/remote.c (remote_console_output): Update.
10428 * gdb/ui-file.c (gdb_flush): Rename to...
10429 (ui_file_flush): ...this.
10430 (stderr_file::write): Update.
10431 (stderr_file::puts): Update.
10432 * gdb/ui-file.h (gdb_flush): Rename to...
10433 (ui_file_flush): ...this.
10434 * gdb/utils.c (gdb_flush): Add function.
10435 * gdb/utils.h (gdb_flush): Add declaration.
10436
10437 2020-02-07 Tom Tromey <tromey@adacore.com>
10438
10439 PR breakpoints/24915:
10440 * source.c (find_and_open_source): Do not check basenames_may_differ.
10441
10442 2020-02-07 Tom Tromey <tom@tromey.com>
10443
10444 * README: Update gdbserver documentation.
10445 * gdbserver: Move to top level.
10446 * configure.tgt (build_gdbserver): Remove.
10447 * configure.ac: Remove --enable-gdbserver.
10448 * configure: Rebuild.
10449 * Makefile.in (distclean): Don't mention gdbserver.
10450
10451 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10452
10453 * source-cache.c (source_cache::ensure): Surround
10454 get_plain_source_lines with a try/catch.
10455 (source_cache::get_line_charpos): Get rid of try/catch
10456 and only check for the return value of "ensure".
10457 * tui/tui-source.c (tui_source_window::set_contents):
10458 Simplify "nlines" calculation.
10459
10460 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10461
10462 * MAINTAINERS (Write After Approval): Add myself.
10463
10464 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10465
10466 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10467 function call.
10468
10469 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10470
10471 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10472
10473 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
10474
10475 * nat/riscv-linux-tdesc.h: New file.
10476 * nat/riscv-linux-tdesc.c: New file, taking code from...
10477 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10478 ... here.
10479 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10480 NATDEPFILES.
10481
10482 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10483
10484 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10485 we don't set the fake simulator ptid to the null_ptid.
10486
10487 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
10488
10489 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10490 * gdbthread.h (class thread_info) <resumed>: Likewise.
10491 * infrun.c (resume_1): Likewise.
10492 (proceed): Likewise.
10493 (infrun_thread_stop_requested): Likewise.
10494 (stop_all_threads): Likewise.
10495 (handle_inferior_event): Likewise.
10496 (restart_threads): Likewise.
10497 (finish_step_over): Likewise.
10498 (keep_going_stepped_thread): Likewise.
10499 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10500 (linux_handle_extended_wait): Likewise.
10501 * record-btrace.c (get_thread_current_frame_id): Likewise.
10502 * record-full.c (record_full_wait_1): Likewise.
10503 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10504 * target.c (target_resume): Likewise.
10505 * thread.c (set_running_thread): Likewise.
10506
10507 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10508
10509 * f-valprint.c (f77_print_array_1): Changed datatype of index
10510 variable to LONGEST from int to enable it to contain bound
10511 values correctly.
10512
10513 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
10514
10515 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10516 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10517 offsets according to FLEN determined.
10518 (riscv_linux_nat_target::read_description): Determine FLEN
10519 dynamically.
10520 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10521 according to FLEN determined.
10522 (riscv_linux_nat_target::store_registers): Likewise.
10523
10524 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10525
10526 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10527 when reg->group is empty and reggroup is not.
10528
10529 2020-01-31 Tom Tromey <tromey@adacore.com>
10530
10531 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10532 Call beneath target's mourn_inferior after unpushing.
10533
10534 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10535
10536 PR tui/9765
10537 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10538 have enough lines to fill the screen, still return the lowest
10539 address we found.
10540
10541 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10542
10543 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10544 '-', '<', and '>' commands.
10545
10546 2020-01-29 Pedro Alves <palves@redhat.com>
10547 Sergio Durigan Junior <sergiodj@redhat.com>
10548
10549 * infcmd.c (construct_inferior_arguments): Assert that
10550 'argc' is greater than 0.
10551
10552 2020-01-29 Luis Machado <luis.machado@linaro.org>
10553
10554 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10555 (BRK_INSN_MASK): Define to 0xd4200000.
10556 (aarch64_program_breakpoint_here_p): New function.
10557 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10558 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10559 breakpoint.c.
10560 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10561 breakpoint.h
10562 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10563 call gdbarch_program_breakpoint_here_p.
10564 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10565 default_program_breakpoint_here_p, changed return type to bool and
10566 simplified.
10567 * breakpoint.h (program_breakpoint_here): Moved prototype to
10568 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10569 return type to bool.
10570 * gdbarch.c: Regenerate.
10571 * gdbarch.h: Regenerate.
10572 * gdbarch.sh (program_breakpoint_here_p): New method.
10573 * infrun.c (handle_signal_stop): Call
10574 gdbarch_program_breakpoint_here_p.
10575
10576 2020-01-26 Tom Tromey <tom@tromey.com>
10577
10578 * ctfread.c (struct ctf_fp_info): Reindent.
10579 (_initialize_ctfread): Remove.
10580
10581 2020-01-26 Tom Tromey <tom@tromey.com>
10582
10583 * psymtab.c (partial_map_expand_apply)
10584 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10585 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10586 (psym_print_stats, psym_expand_symtabs_for_function)
10587 (psym_map_symbol_filenames, psym_map_matching_symbols)
10588 (psym_expand_symtabs_matching)
10589 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10590 (maintenance_check_psymtabs): Use new methods.
10591 * psympriv.h (struct partial_symtab) <readin_p,
10592 get_compunit_symtab>: New methods.
10593 <readin, compunit_symtab>: Remove members.
10594 (struct standard_psymtab): New.
10595 (struct legacy_psymtab): Derive from standard_psymtab.
10596 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10597 standard_psymtab.
10598 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10599
10600 2020-01-26 Tom Tromey <tom@tromey.com>
10601
10602 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10603 read_dependencies. Add assert.
10604 * psymtab.c (partial_symtab::read_dependencies): New method.
10605 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10606 method.
10607 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10608 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10609 read_dependencies.
10610 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10611 Add assert.
10612
10613 2020-01-26 Tom Tromey <tom@tromey.com>
10614
10615 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10616 Call expand_psymtab.
10617 (xcoff_read_symtab): Call expand_psymtab.
10618 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10619 legacy_expand_psymtab.
10620 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10621 method.
10622 (struct legacy_psymtab) <expand_psymtab>: Implement.
10623 <legacy_expand_psymtab>: New member.
10624 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10625 (parse_partial_symbols): Set legacy_expand_psymtab.
10626 (psymtab_to_symtab_1): Change argument order. Call
10627 expand_psymtab.
10628 (new_psymtab): Set legacy_expand_psymtab.
10629 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10630 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10631 expand_psymtab.
10632 (dwarf2_psymtab::expand_psymtab): Rename from
10633 psymtab_to_symtab_1. Call expand_psymtab.
10634 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10635 (dbx_end_psymtab): Likewise.
10636 (dbx_psymtab_to_symtab_1): Change argument order. Call
10637 expand_psymtab.
10638 (dbx_read_symtab): Call expand_psymtab.
10639 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10640 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10641 (ctf_psymtab::read_symtab): Call expand_psymtab.
10642
10643 2020-01-26 Tom Tromey <tom@tromey.com>
10644
10645 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10646 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10647 messages.
10648 * mdebugread.c (mdebug_read_symtab): Remove prints.
10649 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10650 assert.
10651 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10652
10653 2020-01-26 Tom Tromey <tom@tromey.com>
10654
10655 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10656 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10657 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10658 legacy_symtab.
10659 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10660 * psymtab.c (psymtab_to_symtab): Call method.
10661 (dump_psymtab): Update.
10662 * psympriv.h (struct partial_symtab): Add virtual destructor.
10663 <read_symtab>: New method.
10664 (struct legacy_symtab): New.
10665 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10666 (struct pst_map) <pst>: Now a legacy_psymtab.
10667 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10668 (new_psymtab): Use legacy_psymtab.
10669 * dwarf2read.h (struct dwarf2_psymtab): New.
10670 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10671 * dwarf2read.c (dwarf2_create_include_psymtab)
10672 (dwarf2_build_include_psymtabs, create_type_unit_group)
10673 (create_partial_symtab, process_psymtab_comp_unit_reader)
10674 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10675 (set_partial_user): Use dwarf2_psymtab.
10676 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10677 (psymtab_to_symtab_1, process_full_comp_unit)
10678 (process_full_type_unit, dwarf2_ranges_read)
10679 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10680 (dwarf_decode_lines): Use dwarf2_psymtab.
10681 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10682 (add_address_entry_worker, write_one_signatured_type)
10683 (recursively_count_psymbols, recursively_write_psymbols)
10684 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10685 (write_debug_names): Likewise.
10686 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10687 <pst>: Now a legacy_psymtab.
10688 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10689 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10690 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10691 * ctfread.c (struct ctf_psymtab): New.
10692 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10693 ctf_psymtab.
10694 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10695 (create_partial_symtab): Return a ctf_psymtab.
10696 (scan_partial_symbols): Update.
10697
10698 2020-01-26 Tom Tromey <tom@tromey.com>
10699
10700 * xcoffread.c (xcoff_start_psymtab): Use new.
10701 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10702 renamed from start_psymtab_common.
10703 * psympriv.h (struct partial_symtab): Add new constructor.
10704 (start_psymtab_common): Don't declare.
10705 * mdebugread.c (parse_partial_symbols): Use new.
10706 * dwarf2read.c (create_partial_symtab): Use new.
10707 * dbxread.c (start_psymtab): Use new.
10708 * ctfread.c (create_partial_symtab): Use new.
10709
10710 2020-01-26 Tom Tromey <tom@tromey.com>
10711
10712 * xcoffread.c (xcoff_end_psymtab): Use new.
10713 * psymtab.c (start_psymtab_common): Use new.
10714 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10715 Update.
10716 * psympriv.h (struct partial_symtab): Add parameters to
10717 constructor. Don't inline.
10718 (allocate_psymtab): Don't declare.
10719 * mdebugread.c (new_psymtab): Use new.
10720 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10721 * dbxread.c (dbx_end_psymtab): Use new.
10722
10723 2020-01-26 Tom Tromey <tom@tromey.com>
10724
10725 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10726 allocate_psymtab. Update documentation.
10727 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10728 allocate_psymtab. Do not use new.
10729 (allocate_psymtab): Use new. Update.
10730
10731 2020-01-26 Tom Tromey <tom@tromey.com>
10732
10733 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10734 * psymtab.c (psym_print_stats): Update.
10735 * psympriv.h (struct partial_symtab) <readin,
10736 psymtabs_addrmap_supported, anonymous>: Now bool.
10737 * mdebugread.c (psymtab_to_symtab_1): Update.
10738 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10739 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10740 (process_full_comp_unit, process_full_type_unit): Update.
10741 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10742 * ctfread.c (psymtab_to_symtab): Update.
10743
10744 2020-01-26 Tom Tromey <tom@tromey.com>
10745
10746 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10747 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10748 * psymtab.c (psymtab_storage): Delete psymtabs.
10749 (psymtab_storage::allocate_psymtab): Use new.
10750 (psymtab_storage::discard_psymtab): Use delete.
10751 * psympriv.h (struct partial_symtab): Add constructor and
10752 initializers.
10753
10754 2020-01-26 Tom Tromey <tom@tromey.com>
10755
10756 * machoread.c: Do not include psympriv.h.
10757
10758 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10759
10760 * NEWS: Mention the new option and the set/show commands.
10761
10762 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10763
10764 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10765 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10766 (validate_exec_file): New variables, enums, functions.
10767 (exec_file_locate_attach, print_section_info): Style the filenames.
10768 (_initialize_exec): Install show_exec_file_mismatch_command and
10769 set_exec_file_mismatch_command.
10770 * gdbcore.h (validate_exec_file): Declare.
10771 * infcmd.c (attach_command): Call validate_exec_file.
10772 * remote.c ( remote_target::remote_add_inferior): Likewise.
10773
10774 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10775
10776 * frame.c (find_frame_sal): Move call to get_next_frame into more
10777 inner scope.
10778 * inline-frame.c (inilne_state) <inline_state>: Update argument
10779 types.
10780 (inilne_state) <skipped_symbol>: Rename to...
10781 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10782 (skip_inline_frames): Build vector of skipped symbols and use this
10783 to reate the inline_state.
10784 (inline_skipped_symbol): Add a comment and some assertions, fetch
10785 skipped symbol from the list.
10786
10787 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10788
10789 * buildsym.c (lte_is_less_than): Delete.
10790 (buildsym_compunit::end_symtab_with_blockvector): Create local
10791 lambda function to sort line table entries, and use
10792 std::stable_sort instead of std::sort.
10793 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10794 markers when looking for a previous line.
10795
10796 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10797
10798 * dwarf2read.c (lnp_state_machine::record_line): Include
10799 end_sequence parameter in debug print out. Record the line if we
10800 are at an end_sequence marker even if it's not the start of a
10801 statement.
10802 * symmisc.c (maintenance_print_one_line_table): Print end of
10803 sequence markers with 'END' not '0'.
10804
10805 2020-01-24 Pedro Alves <palves@redhat.com>
10806
10807 PR gdb/25410
10808 * thread.c (scoped_restore_current_thread::restore): Use
10809 switch_to_inferior_no_thread.
10810 * exec.c: Include "progspace-and-thread.h".
10811 (add_target_sections, remove_target_sections):
10812 scoped_restore_current_pspace_and_thread instead of
10813 scoped_restore_current_thread.
10814 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10815 and aspace to the inferior before calling clone_program_space.
10816 Remove stale comment.
10817
10818 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10819
10820 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10821 (arm_netbsd_nat_target::fetch_registers): ...this.
10822 (arm_nbsd_nat_target::store_registers): Rename to...
10823 (arm_netbsd_nat_target::store_registers): ...this.
10824
10825 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10826
10827 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10828 register_t.
10829
10830 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10831
10832 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10833 Update comment.
10834 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10835 Likewise.
10836 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10837 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10838 the correct replacement (iterate_over_regset_sections).
10839 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10840 Update comment.
10841
10842 2020-01-24 Graham Markall <graham.markall@embecosm.com>
10843
10844 PR gdb/23718
10845 * gdb/python/python.c (execute_gdb_command): Call
10846 async_enable_stdin in catch block.
10847
10848 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10849
10850 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10851 SWITCH_THRU_ALL_UIS.
10852
10853 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10854
10855 PR tui/9765
10856 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10857 comment, add extra parameter, and update to store previous symbol
10858 when appropriate.
10859 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10860 add extra parameter.
10861 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10862 remove unneeded parameter, add try/catch around gdb_print_insn,
10863 rewrite to add items to asm_lines vector.
10864 (tui_find_backward_disassembly_start_address): New function.
10865 (tui_find_disassembly_address): Updated throughout.
10866 (tui_disasm_window::set_contents): Update for changes to
10867 tui_disassemble.
10868 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10869 number of lines to scroll.
10870
10871 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10872
10873 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10874 (SECT_OFF_DATA): Likewise.
10875 (SECT_OFF_RODATA): Likewise.
10876 (SECT_OFF_TEXT): Likewise.
10877 (SECT_OFF_BSS): Likewise.
10878 (struct objfile) <text_section_offset, data_section_offset>: New
10879 methods.
10880 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10881 objfile::text_section_offset.
10882 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10883 * coffread.c (coff_symtab_read): Likewise.
10884 (enter_linenos): Likewise.
10885 (process_coff_symbol): Likewise.
10886 * ctfread.c (get_objfile_text_range): Likewise.
10887 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10888 Use objfile::data_section_offset.
10889 * dwarf2-frame.c (execute_cfa_program): Use
10890 objfile::text_section_offset.
10891 (dwarf2_frame_find_fde): Likewise.
10892 * dwarf2read.c (create_addrmap_from_index): Likewise.
10893 (create_addrmap_from_aranges): Likewise.
10894 (dw2_find_pc_sect_compunit_symtab): Likewise.
10895 (process_psymtab_comp_unit_reader): Likewise.
10896 (add_partial_symbol): Likewise.
10897 (add_partial_subprogram): Likewise.
10898 (process_full_comp_unit): Likewise.
10899 (read_file_scope): Likewise.
10900 (read_func_scope): Likewise.
10901 (read_lexical_block_scope): Likewise.
10902 (read_call_site_scope): Likewise.
10903 (dwarf2_rnglists_process): Likewise.
10904 (dwarf2_ranges_process): Likewise.
10905 (dwarf2_ranges_read): Likewise.
10906 (dwarf_decode_lines_1): Likewise.
10907 (new_symbol): Likewise.
10908 (dwarf2_fetch_die_loc_sect_off): Likewise.
10909 (dwarf2_per_cu_text_offset): Likewise.
10910 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10911 * hppa-tdep.c (read_unwind_info): Likewise.
10912 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10913 * psympriv.h (struct partial_symtab): Likewise.
10914 * psymtab.c (find_pc_sect_psymtab): Likewise.
10915 * solib-svr4.c (enable_break): Likewise.
10916 * stap-probe.c (relocate_address): Use
10917 objfile::data_section_offset.
10918 * xcoffread.c (enter_line_range): Use
10919 objfile::text_section_offset.
10920 (read_xcoff_symtab): Likewise.
10921
10922 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10923
10924 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10925 declaration to narrower scopes.
10926
10927 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10928
10929 * darwin-nat.h (struct darwin_exception_msg, enum
10930 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10931 Move up.
10932 (class darwin_nat_target) <wait_1, check_new_threads,
10933 decode_exception_message, decode_message, stop_inferior,
10934 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10935 * darwin-nat.c (darwin_check_new_threads): Rename to...
10936 (darwin_nat_target::check_new_threads): ... this.
10937 (darwin_suspend_inferior_it): Remove.
10938 (darwin_decode_exception_message): Rename to...
10939 (darwin_nat_target::decode_exception_message): ... this.
10940 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10941 (darwin_decode_message): Rename to...
10942 (darwin_nat_target::decode_message): ... this.
10943 (cancel_breakpoint): Rename to...
10944 (darwin_nat_target::cancel_breakpoint): ... this.
10945 (darwin_wait): Rename to...
10946 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10947 instead of iterate_over_inferiors.
10948 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10949 (darwin_stop_inferior): Rename to...
10950 (darwin_nat_target::stop_inferior): ... this.
10951 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10952 (darwin_init_thread_list): Rename to...
10953 (darwin_nat_target::init_thread_list): ... this.
10954 (darwin_ptrace_him): Rename to...
10955 (darwin_nat_target::ptrace_him): ... this.
10956 (darwin_nat_target::create_inferior): Pass lambda function to
10957 fork_inferior.
10958 (darwin_nat_target::detach): Call stop_inferior instead of
10959 darwin_stop_inferior.
10960 * fork-inferior.h (fork_inferior): Change init_trace_fun
10961 parameter to gdb::function_view.
10962 * fork-inferior.c (fork_inferior): Likewise.
10963
10964 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
10965
10966 * i386-cygwin-tdep.c (core_process_module_section): Update.
10967 * windows-nat.c (struct lm_info_windows): Add text_offset.
10968 (windows_xfer_shared_libraries): Update.
10969 * windows-tdep.c (windows_xfer_shared_library):
10970 Add text_offset_cached argument.
10971 * windows-tdep.h (windows_xfer_shared_library): Update.
10972
10973 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10974
10975 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10976
10977 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10978
10979 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10980 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10981 replace with range-based for.
10982 (gdbsim_interrupt_inferior): Remove.
10983 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10984 with a range-based for. Inline code from
10985 gdbsim_interrupt_inferior.
10986
10987 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10988
10989 * infrun.c (proceed): Fix indentation.
10990
10991 2020-01-21 Tom Tromey <tromey@adacore.com>
10992
10993 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10994 * python/python.c (python_extension_ops): Update.
10995 (gdbpy_colorize): New function.
10996 * python/lib/gdb/__init__.py (colorize): New function.
10997 * extension.h (ext_lang_colorize): Declare.
10998 * extension.c (ext_lang_colorize): New function.
10999 * extension-priv.h (struct extension_language_ops) <colorize>: New
11000 member.
11001 * cli/cli-style.c (_initialize_cli_style): Update help text.
11002
11003 2020-01-21 Luis Machado <luis.machado@linaro.org>
11004
11005 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
11006 <cond>: Change type to bool.
11007 (aarch64_displaced_step_b_cond): Update cond to use bool type.
11008 (aarch64_displaced_step_cb): Likewise.
11009 (aarch64_displaced_step_tb): Likewise.
11010
11011 2020-01-21 Luis Machado <luis.machado@linaro.org>
11012
11013 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
11014 output.
11015
11016 2020-01-21 Luis Machado <luis.machado@linaro.org>
11017
11018 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
11019 <pc_adjust>: Adjust the documentation.
11020 (aarch64_displaced_step_fixup): Check if PC really moved before
11021 adjusting it.
11022
11023 2020-01-19 Tom Tromey <tom@tromey.com>
11024
11025 * disasm.c (~gdb_disassembler): New destructor.
11026 (gdb_buffered_insn_length): Call disassemble_free_target.
11027 * disasm.h (class gdb_disassembler): Declare destructor. Use
11028 DISABLE_COPY_AND_ASSIGN.
11029
11030 2020-01-19 Tom Tromey <tom@tromey.com>
11031
11032 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
11033 (die_reader_func_ftype): Remove.
11034 (cutu_reader): New class.
11035 (dw2_get_file_names_reader): Remove "data" parameter.
11036 (dw2_get_file_names): Use cutu_reader.
11037 (create_debug_type_hash_table): Update.
11038 (read_cutu_die_from_dwo): Update comment.
11039 (lookup_dwo_unit): Add dwo_name parameter.
11040 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
11041 die_reader_func_ftype and data parameters.
11042 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
11043 Remove die_reader_func_ftype and data parameters.
11044 (~cutu_reader): New; from init_cutu_and_read_dies.
11045 (cutu_reader::cutu_reader): Rename from
11046 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
11047 and data parameters.
11048 (init_cutu_and_read_dies_simple): Remove.
11049 (struct process_psymtab_comp_unit_data): Remove.
11050 (process_psymtab_comp_unit_reader): Remove data parameter; add
11051 want_partial_unit and pretend_language parameters.
11052 (process_psymtab_comp_unit): Use cutu_reader.
11053 (build_type_psymtabs_reader): Remove data parameter.
11054 (build_type_psymtabs_1): Use cutu_reader.
11055 (process_skeletonless_type_unit): Likewise.
11056 (load_partial_comp_unit_reader): Remove.
11057 (load_partial_comp_unit): Use cutu_reader.
11058 (load_full_comp_unit_reader): Remove.
11059 (load_full_comp_unit): Use cutu_reader.
11060 (struct create_dwo_cu_data): Remove.
11061 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
11062 dwo_unit parameters.
11063 (create_cus_hash_table): Use cutu_reader.
11064 (struct dwarf2_read_addr_index_data): Remove.
11065 (dwarf2_read_addr_index_reader): Remove.
11066 (dwarf2_read_addr_index): Use cutu_reader.
11067 (read_signatured_type_reader): Remove.
11068 (read_signatured_type): Use cutu_reader.
11069
11070 2020-01-19 Tom Tromey <tom@tromey.com>
11071
11072 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
11073 * tui/tui-wingeneral.h (class tui_suppress_output): New.
11074 (tui_wrefresh): Declare.
11075 * tui/tui-wingeneral.c (suppress_output): New global.
11076 (tui_suppress_output, ~tui_suppress_output): New constructor and
11077 destructor.
11078 (tui_wrefresh): New function.
11079 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
11080 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
11081 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
11082 method.
11083 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
11084 tui_wrefresh.
11085 (tui_data_window::no_refresh): New method.
11086 (tui_data_item_window::refresh_window): Call tui_wrefresh.
11087 (tui_reg_command): Use tui_suppress_output
11088 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
11089 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
11090 method.
11091 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
11092
11093 2020-01-19 Tom Tromey <tom@tromey.com>
11094
11095 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11096 Handle case where symtab is null.
11097
11098 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
11099
11100 * linux-fork.c (one_fork_p): Simplify.
11101
11102 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11103
11104 * top.c (struct qt_args): Remove.
11105 (kill_or_detach): Change return type to void, replace `void *`
11106 parameter with a proper one.
11107 (print_inferior_quit_action): Likewise.
11108 (quit_confirm): Use range-based for loop to iterate over inferiors.
11109 (quit_force): Likewise.
11110
11111 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11112
11113 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
11114 `void *` parameter with proper parameters.
11115 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
11116 (print_one_inferior): Change return type to void, replace `void *`
11117 parameter with proper parameters.
11118 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
11119 inferiors.
11120 (get_other_inferior): Remove.
11121 (mi_cmd_remove_inferior): Use range-based loop to iterate over
11122 inferiors.
11123
11124 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11125
11126 * mi/mi-interp.c (report_initial_inferior): Remove.
11127 (mi_interp::init): Use range-based for to iterate over inferiors.
11128
11129 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11130
11131 * python/py-inferior.c (build_inferior_list): Remove.
11132 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
11133
11134 2020-01-16 Christian Biesinger <cbiesinger@google.com>
11135
11136 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
11137 (btrace_stitch_trace): Likewise.
11138 * charset.c (intermediate_encoding): Likewise (vaild).
11139 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
11140 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
11141 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
11142
11143 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
11144
11145 * windows-tdep.c (windows_get_tlb_type):
11146 Add rtl_user_process_parameters type.
11147
11148 2020-01-16 Pedro Alves <palves@redhat.com>
11149 Norbert Lange <nolange79@gmail.com>
11150
11151 PR build/24805
11152 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
11153 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
11154 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
11155 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
11156 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
11157 (ps_plog): Redeclare exported functions with default visibility.
11158
11159 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
11160
11161 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
11162 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
11163
11164 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
11165
11166 * infcmd.c (post_create_inferior): Use get_thread_regcache
11167 instead of get_current_regcache.
11168
11169 2020-01-14 Tom Tromey <tom@tromey.com>
11170
11171 PR symtab/12535:
11172 * python/python.c (gdbpy_decode_line): Treat empty string the same
11173 as no argument.
11174
11175 2020-01-14 Tom Tromey <tom@tromey.com>
11176
11177 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
11178
11179 2020-01-14 Tom Tromey <tom@tromey.com>
11180
11181 * nat/linux-btrace.c: Don't include <config.h>.
11182 * nat/linux-ptrace.c: Don't include <config.h>.
11183 * nat/x86-linux-dregs.c: Don't include <config.h>.
11184
11185 2020-01-14 Tom Tromey <tom@tromey.com>
11186
11187 * configure: Rebuild.
11188 * configure.ac: Move many checks to ../gdbsupport/common.m4.
11189
11190 2020-01-14 Tom Tromey <tom@tromey.com>
11191
11192 * nat/x86-linux-dregs.c: Include configh.h.
11193 * nat/linux-ptrace.c: Include configh.h.
11194 * nat/linux-btrace.c: Include configh.h.
11195 * defs.h: Include config.h, bfd.h.
11196 * configure.ac: Don't source common.host.
11197 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
11198 * configure: Rebuild.
11199 * acinclude.m4: Update path.
11200 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
11201 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
11202 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
11203 (CLIBS): Add LIBSUPPORT.
11204 (CDEPS): Likewise.
11205 (COMMON_SFILES): Remove gdbsupport files.
11206 (HFILES_NO_SRCDIR): Likewise.
11207 (stamp-version): Update path to create-version.sh.
11208 (ALLDEPFILES): Remove gdbsupport files.
11209
11210 2020-01-14 Tom Tromey <tom@tromey.com>
11211
11212 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
11213 USE_WIN32API when needed.
11214 * configure.ac (USE_WIN32API): Don't define.
11215 (WIN32LIBS): Use WIN32APILIBS.
11216 * configure: Rebuild.
11217
11218 2020-01-14 Tom Tromey <tom@tromey.com>
11219
11220 * configure: Rebuild.
11221 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
11222
11223 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
11224
11225 * skip.c (skip_function_command): Make skip w/o arguments use the
11226 name of the inlined function if pc is inside any inlined function.
11227
11228 2020-01-14 Luis Machado <luis.machado@linaro.org>
11229
11230 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
11231 * infrun.c (resume_1): Likewise.
11232 (handle_inferior_event): Remove stale comment.
11233 * linux-nat.c (linux_nat_target::resume): Update comments.
11234 (save_stop_reason): Likewise.
11235 (linux_nat_filter_event): Likewise.
11236 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
11237
11238 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11239
11240 * elfread.c (record_minimal_symbol): Set section index to 0 for
11241 non-allocatable sections.
11242
11243
11244 2020-01-13 Ali Tamur <tamur@google.com>
11245
11246 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
11247 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
11248 to gdb::optional. Update comments.
11249 (dwo_file): Update comments.
11250 (read_attribute): Update API to take an additional out parameter,
11251 need_reprocess. This is used to mark attributes that need other
11252 attributes (e.g. str_offsets_base) for correct computation which may not
11253 have been read yet.
11254 (read_attribute_reprocess): New function declaration.
11255 (read_addr_index): Likewise.
11256 (read_dwo_str_index): Likewise.
11257 (read_stub_str_index): Likewise.
11258 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
11259 (lookup_addr_base): New function definition.
11260 (lookup_ranges_base): Likewise.
11261 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
11262 lookup_ranges_base.
11263 (init_cutu_and_read_dies): Update comments.
11264 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
11265 unit. This is used to inherit parent's str_offsets_base and addr_base.
11266 Update comments.
11267 (init_cutu_and_read_dies_simple): Reflect API changes.
11268 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
11269 (create_cus_hash_table): Change API to take parent compile unit.
11270 Reflect API changes.
11271 (open_and_init_dwo_file): Reflect API changes.
11272 (dwarf2_get_pc_bounds): Update comments.
11273 (dwarf2_record_block_ranges): Likewise.
11274 (read_full_die_1): Change implementation to reprocess attributes that
11275 need str_offsets_base and addr_base.
11276 (partial_die_info::read): Likewise.
11277 (read_attribute_reprocess): New function definition.
11278 (read_attribute_value): Change API to take an additional out parameter,
11279 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
11280 when a non-dwo compile unit has index based attributes.
11281 (read_attribute): Reflect API changes.
11282 (read_addr_index_1): Reflect API changes. Update comments.
11283 (dwarf2_read_addr_index_data): Reflect API changes.
11284 (dwarf2_read_addr_index): Likewise.
11285 (read_str_index): Change API and implementation. This becomes a helper
11286 to be used by the new string index related methods. Update error
11287 message and comments.
11288 (read_dwo_str_index): New function definition.
11289 (read_stub_str_index): Likewise.
11290 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
11291 * symfile.h (dwarf2_debug_sections): Likewise.
11292 * xcoffread.c (dwarf2_debug_sections): Likewise.
11293
11294 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11295
11296 * gdbcore.h (struct core_fns) <core_read_registers>: Change
11297 core_reg_sect type to gdb_byte *.
11298 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
11299 * cris-tdep.c (fetch_core_registers): Likewise.
11300 * corelow.c (core_target::get_core_register_section): Change
11301 type of `contents` to gdb::byte_vector.
11302
11303 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11304
11305 * tui/tui-wingeneral.c (box_win): Position the title in the center
11306 of the border.
11307
11308 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11309
11310 * corelow.c (core_target::get_core_register_section): Use
11311 std::vector instead of alloca.
11312
11313 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11314
11315 * warning.m4: Add -Wmissing-declarations to build_warnings.
11316 * configure: Re-generate.
11317
11318 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11319
11320 * python/python.c (init__gdb_module): Add declaration.
11321
11322 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11323
11324 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
11325 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
11326 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
11327 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
11328 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
11329 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
11330 * ada-exp.y (_initialize_ada_exp): Add declaration.
11331 * ada-lang.c (_initialize_ada_language): Add declaration.
11332 * ada-tasks.c (_initialize_tasks): Add declaration.
11333 * agent.c (_initialize_agent): Add declaration.
11334 * aix-thread.c (_initialize_aix_thread): Add declaration.
11335 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
11336 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
11337 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
11338 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
11339 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
11340 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
11341 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
11342 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
11343 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
11344 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
11345 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
11346 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
11347 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
11348 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
11349 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
11350 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
11351 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
11352 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
11353 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
11354 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
11355 * annotate.c (_initialize_annotate): Add declaration.
11356 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
11357 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
11358 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
11359 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
11360 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
11361 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
11362 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
11363 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
11364 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
11365 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
11366 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
11367 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
11368 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
11369 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
11370 * auto-load.c (_initialize_auto_load): Add declaration.
11371 * auxv.c (_initialize_auxv): Add declaration.
11372 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
11373 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
11374 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
11375 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
11376 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
11377 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
11378 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
11379 * breakpoint.c (_initialize_breakpoint): Add declaration.
11380 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
11381 * btrace.c (_initialize_btrace): Add declaration.
11382 * charset.c (_initialize_charset): Add declaration.
11383 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
11384 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11385 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11386 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11387 * cli/cli-script.c (_initialize_cli_script): Add declaration.
11388 * cli/cli-style.c (_initialize_cli_style): Add declaration.
11389 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11390 * coffread.c (_initialize_coffread): Add declaration.
11391 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11392 * compile/compile.c (_initialize_compile): Add declaration.
11393 * complaints.c (_initialize_complaints): Add declaration.
11394 * completer.c (_initialize_completer): Add declaration.
11395 * copying.c (_initialize_copying): Add declaration.
11396 * corefile.c (_initialize_core): Add declaration.
11397 * corelow.c (_initialize_corelow): Add declaration.
11398 * cp-abi.c (_initialize_cp_abi): Add declaration.
11399 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11400 * cp-support.c (_initialize_cp_support): Add declaration.
11401 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11402 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11403 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11404 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11405 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11406 * ctfread.c (_initialize_ctfread): Add declaration.
11407 * d-lang.c (_initialize_d_language): Add declaration.
11408 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11409 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11410 * dbxread.c (_initialize_dbxread): Add declaration.
11411 * dcache.c (_initialize_dcache): Add declaration.
11412 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11413 * disasm.c (_initialize_disasm): Add declaration.
11414 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11415 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11416 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11417 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11418 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11419 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11420 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11421 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11422 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11423 * elfread.c (_initialize_elfread): Add declaration.
11424 * exec.c (_initialize_exec): Add declaration.
11425 * extension.c (_initialize_extension): Add declaration.
11426 * f-lang.c (_initialize_f_language): Add declaration.
11427 * f-valprint.c (_initialize_f_valprint): Add declaration.
11428 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11429 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11430 * filesystem.c (_initialize_filesystem): Add declaration.
11431 * findcmd.c (_initialize_mem_search): Add declaration.
11432 * findvar.c (_initialize_findvar): Add declaration.
11433 * fork-child.c (_initialize_fork_child): Add declaration.
11434 * frame-base.c (_initialize_frame_base): Add declaration.
11435 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11436 * frame.c (_initialize_frame): Add declaration.
11437 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11438 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11439 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11440 * gcore.c (_initialize_gcore): Add declaration.
11441 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11442 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11443 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11444 * gdbarch.c (_initialize_gdbarch): Add declaration.
11445 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11446 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11447 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11448 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11449 * go-lang.c (_initialize_go_language): Add declaration.
11450 * go32-nat.c (_initialize_go32_nat): Add declaration.
11451 * guile/guile.c (_initialize_guile): Add declaration.
11452 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11453 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11454 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11455 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11456 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11457 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11458 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11459 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11460 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11461 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11462 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11463 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11464 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11465 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11466 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11467 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11468 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11469 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11470 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11471 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11472 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11473 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11474 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11475 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11476 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11477 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11478 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11479 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11480 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11481 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11482 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11483 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11484 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11485 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11486 * infcall.c (_initialize_infcall): Add declaration.
11487 * infcmd.c (_initialize_infcmd): Add declaration.
11488 * inflow.c (_initialize_inflow): Add declaration.
11489 * infrun.c (_initialize_infrun): Add declaration.
11490 * interps.c (_initialize_interpreter): Add declaration.
11491 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11492 * jit.c (_initialize_jit): Add declaration.
11493 * language.c (_initialize_language): Add declaration.
11494 * linux-fork.c (_initialize_linux_fork): Add declaration.
11495 * linux-nat.c (_initialize_linux_nat): Add declaration.
11496 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11497 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11498 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11499 * m2-lang.c (_initialize_m2_language): Add declaration.
11500 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11501 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11502 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11503 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11504 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11505 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11506 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11507 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11508 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11509 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11510 * machoread.c (_initialize_machoread): Add declaration.
11511 * macrocmd.c (_initialize_macrocmd): Add declaration.
11512 * macroscope.c (_initialize_macroscope): Add declaration.
11513 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11514 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11515 * maint.c (_initialize_maint_cmds): Add declaration.
11516 * mdebugread.c (_initialize_mdebugread): Add declaration.
11517 * memattr.c (_initialize_mem): Add declaration.
11518 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11519 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11520 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11521 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11522 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11523 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11524 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11525 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11526 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11527 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11528 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11529 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11530 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11531 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11532 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11533 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11534 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11535 * mipsread.c (_initialize_mipsread): Add declaration.
11536 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11537 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11538 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11539 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11540 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11541 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11542 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11543 * nto-procfs.c (_initialize_procfs): Add declaration.
11544 * objc-lang.c (_initialize_objc_language): Add declaration.
11545 * observable.c (_initialize_observer): Add declaration.
11546 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11547 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11548 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11549 * osabi.c (_initialize_gdb_osabi): Add declaration.
11550 * osdata.c (_initialize_osdata): Add declaration.
11551 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11552 * parse.c (_initialize_parse): Add declaration.
11553 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11554 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11555 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11556 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11557 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11558 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11559 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11560 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11561 * printcmd.c (_initialize_printcmd): Add declaration.
11562 * probe.c (_initialize_probe): Add declaration.
11563 * proc-api.c (_initialize_proc_api): Add declaration.
11564 * proc-events.c (_initialize_proc_events): Add declaration.
11565 * proc-service.c (_initialize_proc_service): Add declaration.
11566 * procfs.c (_initialize_procfs): Add declaration.
11567 * producer.c (_initialize_producer): Add declaration.
11568 * psymtab.c (_initialize_psymtab): Add declaration.
11569 * python/python.c (_initialize_python): Add declaration.
11570 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11571 * record-btrace.c (_initialize_record_btrace): Add declaration.
11572 * record-full.c (_initialize_record_full): Add declaration.
11573 * record.c (_initialize_record): Add declaration.
11574 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11575 * regcache.c (_initialize_regcache): Add declaration.
11576 * reggroups.c (_initialize_reggroup): Add declaration.
11577 * remote-notif.c (_initialize_notif): Add declaration.
11578 * remote-sim.c (_initialize_remote_sim): Add declaration.
11579 * remote.c (_initialize_remote): Add declaration.
11580 * reverse.c (_initialize_reverse): Add declaration.
11581 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11582 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11583 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11584 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11585 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11586 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11587 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11588 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11589 Add declaration.
11590 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11591 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11592 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11593 * rust-exp.y (_initialize_rust_exp): Add declaration.
11594 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11595 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11596 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11597 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11598 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11599 * score-tdep.c (_initialize_score_tdep): Add declaration.
11600 * ser-go32.c (_initialize_ser_dos): Add declaration.
11601 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11602 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11603 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11604 * ser-uds.c (_initialize_ser_socket): Add declaration.
11605 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11606 * serial.c (_initialize_serial): Add declaration.
11607 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11608 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11609 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11610 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11611 * skip.c (_initialize_step_skip): Add declaration.
11612 * sol-thread.c (_initialize_sol_thread): Add declaration.
11613 * solib-aix.c (_initialize_solib_aix): Add declaration.
11614 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11615 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11616 * solib-frv.c (_initialize_frv_solib): Add declaration.
11617 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11618 * solib-target.c (_initialize_solib_target): Add declaration.
11619 * solib.c (_initialize_solib): Add declaration.
11620 * source-cache.c (_initialize_source_cache): Add declaration.
11621 * source.c (_initialize_source): Add declaration.
11622 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11623 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11624 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11625 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11626 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11627 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11628 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11629 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11630 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11631 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11632 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11633 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11634 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11635 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11636 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11637 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11638 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11639 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11640 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11641 * stabsread.c (_initialize_stabsread): Add declaration.
11642 * stack.c (_initialize_stack): Add declaration.
11643 * stap-probe.c (_initialize_stap_probe): Add declaration.
11644 * std-regs.c (_initialize_frame_reg): Add declaration.
11645 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11646 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11647 * symfile.c (_initialize_symfile): Add declaration.
11648 * symmisc.c (_initialize_symmisc): Add declaration.
11649 * symtab.c (_initialize_symtab): Add declaration.
11650 * target.c (_initialize_target): Add declaration.
11651 * target-connection.c (_initialize_target_connection): Add
11652 declaration.
11653 * target-dcache.c (_initialize_target_dcache): Add declaration.
11654 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11655 * thread.c (_initialize_thread): Add declaration.
11656 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11657 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11658 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11659 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11660 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11661 * tracectf.c (_initialize_ctf): Add declaration.
11662 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11663 * tracefile.c (_initialize_tracefile): Add declaration.
11664 * tracepoint.c (_initialize_tracepoint): Add declaration.
11665 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11666 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11667 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11668 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11669 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11670 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11671 * tui/tui.c (_initialize_tui): Add declaration.
11672 * typeprint.c (_initialize_typeprint): Add declaration.
11673 * ui-style.c (_initialize_ui_style): Add declaration.
11674 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11675 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11676 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11677 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11678 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11679 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11680 * unittests/filtered_iterator-selftests.c
11681 (_initialize_filtered_iterator_selftests): Add declaration.
11682 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11683 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11684 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11685 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11686 * unittests/main-thread-selftests.c
11687 (_initialize_main_thread_selftests): Add declaration.
11688 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11689 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11690 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11691 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11692 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11693 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11694 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11695 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11696 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11697 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11698 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11699 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11700 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11701 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11702 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11703 declaration.
11704 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11705 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11706 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11707 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11708 * user-regs.c (_initialize_user_regs): Add declaration.
11709 * utils.c (_initialize_utils): Add declaration.
11710 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11711 * valops.c (_initialize_valops): Add declaration.
11712 * valprint.c (_initialize_valprint): Add declaration.
11713 * value.c (_initialize_values): Add declaration.
11714 * varobj.c (_initialize_varobj): Add declaration.
11715 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11716 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11717 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11718 * windows-nat.c (_initialize_windows_nat): Add declaration.
11719 (_initialize_check_for_gdb_ini): Add declaration.
11720 (_initialize_loadable): Add declaration.
11721 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11722 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11723 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11724 * xcoffread.c (_initialize_xcoffread): Add declaration.
11725 * xml-support.c (_initialize_xml_support): Add declaration.
11726 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11727 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11728 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11729 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11730
11731 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11732
11733 * regformats/regdat.sh: Generate declaration for init function.
11734
11735 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11736
11737 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11738 up.
11739 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11740 close_one_inferior>: New methods.
11741 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11742 pass down target to find_inferior_pid.
11743 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11744 Pass down target to find_inferior_ptid.
11745 (gdbsim_target::create_inferior): Pass down target to
11746 add_thread_silent.
11747 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11748 target down to find_inferior_ptid and switch_to_thread.
11749 (gdbsim_target::close): Update to call close_one_inferior.
11750 (struct resume_data): Remove.
11751 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11752 directly, rather than through a void pointer.
11753 (gdbsim_target::resume): Update to call resume_one_inferior.
11754
11755 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11756
11757 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11758
11759 2020-01-12 Pedro Alves <palves@redhat.com>
11760
11761 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11762 directly for the current inferior instead of
11763 discard_all_inferiors.
11764 (discard_all_inferiors): Delete.
11765
11766 2020-01-11 Tom Tromey <tom@tromey.com>
11767
11768 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11769 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11770 deprecated_safe_get_selected_frame.
11771
11772 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11773
11774 * inferior.c (print_inferior): Switch inferior before printing it.
11775
11776 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11777 Pedro Alves <palves@redhat.com>
11778
11779 * progspace-and-thread.c (switch_to_program_space_and_thread):
11780 Assert there's an inferior for PSPACE. Use
11781 switch_to_inferior_no_thread to switch the inferior too.
11782 * progspace.c (program_space::~program_space): Call
11783 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11784 (program_space::free_all_objfiles): Don't call clear_symtab_users
11785 here.
11786 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11787
11788 2020-01-10 Pedro Alves <palves@redhat.com>
11789
11790 * NEWS: Mention multi-target debugging, "info connections", and
11791 "add-inferior -no-connection".
11792
11793 2020-01-10 Pedro Alves <palves@redhat.com>
11794
11795 * infrun.c: Include "target-connection.h".
11796 (check_multi_target_resumption): New.
11797 (proceed): Call it.
11798 * target-connection.c (make_target_connection_string): Make
11799 extern.
11800 * target-connection.h (make_target_connection_string): Declare.
11801
11802 2020-01-10 Pedro Alves <palves@redhat.com>
11803
11804 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11805 * inferior.c (uiout_field_connection): New function.
11806 (print_inferior): Add new "connection-id" column.
11807 (add_inferior_command): Show connection number/string of added
11808 inferior.
11809 * process-stratum-target.h
11810 (process_stratum_target::connection_string): New virtual method.
11811 (process_stratum_target::connection_number): New field.
11812 * remote.c (remote_target::connection_string): New override.
11813 * target-connection.c: New file.
11814 * target-connection.h: New file.
11815 * target.c (decref_target): Remove process_stratum targets from
11816 the connection list.
11817 (target_stack::push): Add process_stratum targets to the
11818 connection list.
11819
11820 2020-01-10 Pedro Alves <palves@redhat.com>
11821
11822 Revert:
11823 2016-04-12 Pedro Alves <palves@redhat.com>
11824 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11825 Remove references to name.
11826 * serial.h (struct serial) <name>: Delete.
11827
11828 2020-01-10 Pedro Alves <palves@redhat.com>
11829
11830 * gdbarch-selftests.c (register_to_value_test): Remove "target
11831 already pushed" check.
11832
11833 2020-01-10 Pedro Alves <palves@redhat.com>
11834 John Baldwin <jhb@FreeBSD.org>
11835
11836 * aarch64-linux-nat.c
11837 (aarch64_linux_nat_target::thread_architecture): Adjust.
11838 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11839 (task_command_1): Likewise.
11840 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11841 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11842 (aix_thread_target::store_registers)
11843 (aix_thread_target::thread_alive): Adjust.
11844 * amd64-fbsd-tdep.c: Include "inferior.h".
11845 (amd64fbsd_get_thread_local_address): Pass down target.
11846 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11847 thread's gdbarch instead of target_gdbarch.
11848 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11849 get_last_target_status.
11850 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11851 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11852 inferiors.
11853 (update_inserted_breakpoint_locations): Skip if inferiors with no
11854 execution.
11855 (update_global_location_list): When handling moribund locations,
11856 find representative inferior for location's pspace, and use thread
11857 count of its process_stratum target.
11858 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11859 * bsd-uthread.c (bsd_uthread_target::wait): Use
11860 as_process_stratum_target and adjust thread_change_ptid and
11861 add_thread calls.
11862 (bsd_uthread_target::update_thread_list): Use
11863 as_process_stratum_target and adjust find_thread_ptid,
11864 thread_change_ptid and add_thread calls.
11865 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11866 find_thread_ptid call.
11867 * corelow.c (add_to_thread_list): Adjust add_thread call.
11868 (core_target_open): Adjust add_thread_silent and thread_count
11869 calls.
11870 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11871 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11872 * event-top.c (async_disconnect): Pop targets from all inferiors.
11873 * exec.c (add_target_sections): Push exec target on all inferiors
11874 sharing the program space.
11875 (remove_target_sections): Remove the exec target from all
11876 inferiors sharing the program space.
11877 (exec_on_vfork): New.
11878 * exec.h (exec_on_vfork): Declare.
11879 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11880 Pass it down.
11881 (fbsd_nat_target::update_thread_list): Adjust.
11882 (fbsd_nat_target::resume): Adjust.
11883 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11884 down.
11885 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11886 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11887 get_thread_arch_regcache call.
11888 * fork-child.c (gdb_startup_inferior): Pass target down to
11889 startup_inferior and set_executing.
11890 * gdbthread.h (struct process_stratum_target): Forward declare.
11891 (add_thread, add_thread_silent, add_thread_with_info)
11892 (in_thread_list): Add process_stratum_target parameter.
11893 (find_thread_ptid(inferior*, ptid_t)): New overload.
11894 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11895 parameter.
11896 (all_threads()): Delete overload.
11897 (all_threads, all_non_exited_threads): Add process_stratum_target
11898 parameter.
11899 (all_threads_safe): Use brace initialization.
11900 (thread_count): Add process_stratum_target parameter.
11901 (set_resumed, set_running, set_stop_requested, set_executing)
11902 (threads_are_executing, finish_thread_state): Add
11903 process_stratum_target parameter.
11904 (switch_to_thread): Use is_current_thread.
11905 * i386-fbsd-tdep.c: Include "inferior.h".
11906 (i386fbsd_get_thread_local_address): Pass down target.
11907 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11908 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11909 have_inferiors check.
11910 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11911 (inf_ptrace_target::attach): Adjust.
11912 * infcall.c (run_inferior_call): Adjust.
11913 * infcmd.c (run_command_1): Pass target to
11914 scoped_finish_thread_state.
11915 (proceed_thread_callback): Skip inferiors with no execution.
11916 (continue_command): Rename 'all_threads' local to avoid hiding
11917 'all_threads' function. Adjust get_last_target_status call.
11918 (prepare_one_step): Adjust set_running call.
11919 (signal_command): Use user_visible_resume_target. Compare thread
11920 pointers instead of inferior_ptid.
11921 (info_program_command): Adjust to pass down target.
11922 (attach_command): Mark target's 'thread_executing' flag.
11923 (stop_current_target_threads_ns): New, factored out from ...
11924 (interrupt_target_1): ... this. Switch inferior before making
11925 target calls.
11926 * inferior-iter.h
11927 (struct all_inferiors_iterator, struct all_inferiors_range)
11928 (struct all_inferiors_safe_range)
11929 (struct all_non_exited_inferiors_range): Filter on
11930 process_stratum_target too. Remove explicit.
11931 * inferior.c (inferior::inferior): Push dummy target on target
11932 stack.
11933 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11934 Add process_stratum_target parameter, and pass it down.
11935 (have_live_inferiors): Adjust.
11936 (switch_to_inferior_and_push_target): New.
11937 (add_inferior_command, clone_inferior_command): Handle
11938 "-no-connection" parameter. Use
11939 switch_to_inferior_and_push_target.
11940 (_initialize_inferior): Mention "-no-connection" option in
11941 the help of "add-inferior" and "clone-inferior" commands.
11942 * inferior.h: Include "process-stratum-target.h".
11943 (interrupt_target_1): Use bool.
11944 (struct inferior) <push_target, unpush_target, target_is_pushed,
11945 find_target_beneath, top_target, process_target, target_at,
11946 m_stack>: New.
11947 (discard_all_inferiors): Delete.
11948 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11949 (all_inferiors, all_non_exited_inferiors): Add
11950 process_stratum_target parameter.
11951 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11952 (target_last_proc_target): New global.
11953 (follow_fork_inferior): Push target on new inferior. Pass target
11954 to add_thread_silent. Call exec_on_vfork. Handle target's
11955 reference count.
11956 (follow_fork): Adjust get_last_target_status call. Also consider
11957 target.
11958 (follow_exec): Push target on new inferior.
11959 (struct execution_control_state) <target>: New field.
11960 (user_visible_resume_target): New.
11961 (do_target_resume): Call target_async.
11962 (resume_1): Set target's threads_executing flag. Consider resume
11963 target.
11964 (commit_resume_all_targets): New.
11965 (proceed): Also consider resume target. Skip threads of inferiors
11966 with no execution. Commit resumtion in all targets.
11967 (start_remote): Pass current inferior to wait_for_inferior.
11968 (infrun_thread_stop_requested): Consider target as well. Pass
11969 thread_info pointer to clear_inline_frame_state instead of ptid.
11970 (infrun_thread_thread_exit): Consider target as well.
11971 (random_pending_event_thread): New inferior parameter. Use it.
11972 (do_target_wait): Rename to ...
11973 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11974 down.
11975 (threads_are_resumed_pending_p, do_target_wait): New.
11976 (prepare_for_detach): Adjust calls.
11977 (wait_for_inferior): New inferior parameter. Handle it. Use
11978 do_target_wait_1 instead of do_target_wait.
11979 (fetch_inferior_event): Adjust. Switch to representative
11980 inferior. Pass target down.
11981 (set_last_target_status): Add process_stratum_target parameter.
11982 Save target in global.
11983 (get_last_target_status): Add process_stratum_target parameter and
11984 handle it.
11985 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11986 (context_switch): Check inferior_ptid == null_ptid before calling
11987 inferior_thread().
11988 (get_inferior_stop_soon): Pass down target.
11989 (wait_one): Rename to ...
11990 (poll_one_curr_target): ... this.
11991 (struct wait_one_event): New.
11992 (wait_one): New.
11993 (stop_all_threads): Adjust.
11994 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11995 event's target.
11996 (switch_back_to_stepped_thread): Also consider target.
11997 (print_stop_event): Update.
11998 (normal_stop): Update. Also consider the resume target.
11999 * infrun.h (wait_for_inferior): Remove declaration.
12000 (user_visible_resume_target): New declaration.
12001 (get_last_target_status, set_last_target_status): New
12002 process_stratum_target parameter.
12003 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12004 process_stratum_target parameter, and use it.
12005 (clear_inline_frame_state (thread_info*)): New.
12006 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12007 process_stratum_target parameter.
12008 (clear_inline_frame_state (thread_info*)): Declare.
12009 * linux-fork.c (delete_checkpoint_command): Pass target down to
12010 find_thread_ptid.
12011 (checkpoint_command): Adjust.
12012 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
12013 instead of just tweaking inferior_ptid.
12014 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
12015 (exit_lwp): Pass target down to find_thread_ptid.
12016 (attach_proc_task_lwp_callback): Pass target down to
12017 add_thread/set_running/set_executing.
12018 (linux_nat_target::attach): Pass target down to
12019 thread_change_ptid.
12020 (get_detach_signal): Pass target down to find_thread_ptid.
12021 Consider last target status's target.
12022 (linux_resume_one_lwp_throw, resume_lwp)
12023 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
12024 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
12025 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
12026 (linux_nat_target::async_wait_fd): New.
12027 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
12028 target down.
12029 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
12030 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
12031 * linux-thread-db.c (struct thread_db_info::process_target): New
12032 field.
12033 (add_thread_db_info): Save target.
12034 (get_thread_db_info): New process_stratum_target parameter. Also
12035 match target.
12036 (delete_thread_db_info): New process_stratum_target parameter.
12037 Also match target.
12038 (thread_from_lwp): Adjust to pass down target.
12039 (thread_db_notice_clone): Pass down target.
12040 (check_thread_db_callback): Pass down target.
12041 (try_thread_db_load_1): Always push the thread_db target.
12042 (try_thread_db_load, record_thread): Pass target down.
12043 (thread_db_target::detach): Pass target down. Always unpush the
12044 thread_db target.
12045 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
12046 target down. Always unpush the thread_db target.
12047 (find_new_threads_callback, thread_db_find_new_threads_2)
12048 (thread_db_target::update_thread_list): Pass target down.
12049 (thread_db_target::pid_to_str): Pass current inferior down.
12050 (thread_db_target::get_thread_local_address): Pass target down.
12051 (thread_db_target::resume, maintenance_check_libthread_db): Pass
12052 target down.
12053 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
12054 * procfs.c (procfs_target::procfs_init_inferior): Declare.
12055 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
12056 (procfs_init_inferior): Rename to ...
12057 (procfs_target::procfs_init_inferior): ... this and adjust.
12058 (procfs_target::create_inferior, procfs_notice_thread)
12059 (procfs_do_thread_registers): Adjust.
12060 * ppc-fbsd-tdep.c: Include "inferior.h".
12061 (ppcfbsd_get_thread_local_address): Pass down target.
12062 * proc-service.c (ps_xfer_memory): Switch current inferior and
12063 program space as well.
12064 (get_ps_regcache): Pass target down.
12065 * process-stratum-target.c
12066 (process_stratum_target::thread_address_space)
12067 (process_stratum_target::thread_architecture): Pass target down.
12068 * process-stratum-target.h
12069 (process_stratum_target::threads_executing): New field.
12070 (as_process_stratum_target): New.
12071 * ravenscar-thread.c
12072 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
12073 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
12074 down.
12075 * record-btrace.c (record_btrace_target::info_record): Adjust.
12076 (record_btrace_target::record_method)
12077 (record_btrace_target::record_is_replaying)
12078 (record_btrace_target::fetch_registers)
12079 (get_thread_current_frame_id, record_btrace_target::resume)
12080 (record_btrace_target::wait, record_btrace_target::stop): Pass
12081 target down.
12082 * record-full.c (record_full_wait_1): Switch to event thread.
12083 Pass target down.
12084 * regcache.c (regcache::regcache)
12085 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
12086 process_stratum_target parameter and handle it.
12087 (current_thread_target): New global.
12088 (get_thread_regcache): Add process_stratum_target parameter and
12089 handle it. Switch inferior before calling target method.
12090 (get_thread_regcache): Pass target down.
12091 (get_thread_regcache_for_ptid): Pass target down.
12092 (registers_changed_ptid): Add process_stratum_target parameter and
12093 handle it.
12094 (registers_changed_thread, registers_changed): Pass target down.
12095 (test_get_thread_arch_aspace_regcache): New.
12096 (current_regcache_test): Define a couple local test_target_ops
12097 instances and use them for testing.
12098 (readwrite_regcache): Pass process_stratum_target parameter.
12099 (cooked_read_test, cooked_write_test): Pass mock_target down.
12100 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
12101 (get_thread_arch_aspace_regcache): Add process_stratum_target
12102 parameter.
12103 (regcache::target): New method.
12104 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
12105 (regcache::registers_changed_ptid): Add process_stratum_target
12106 parameter.
12107 (regcache::m_target): New field.
12108 (registers_changed_ptid): Add process_stratum_target parameter.
12109 * remote.c (remote_state::supports_vCont_probed): New field.
12110 (remote_target::async_wait_fd): New method.
12111 (remote_unpush_and_throw): Add remote_target parameter.
12112 (get_current_remote_target): Adjust.
12113 (remote_target::remote_add_inferior): Push target.
12114 (remote_target::remote_add_thread)
12115 (remote_target::remote_notice_new_inferior)
12116 (get_remote_thread_info): Pass target down.
12117 (remote_target::update_thread_list): Skip threads of inferiors
12118 bound to other targets. (remote_target::close): Don't discard
12119 inferiors. (remote_target::add_current_inferior_and_thread)
12120 (remote_target::process_initial_stop_replies)
12121 (remote_target::start_remote)
12122 (remote_target::remote_serial_quit_handler): Pass down target.
12123 (remote_target::remote_unpush_target): New remote_target
12124 parameter. Unpush the target from all inferiors.
12125 (remote_target::remote_unpush_and_throw): New remote_target
12126 parameter. Pass it down.
12127 (remote_target::open_1): Check whether the current inferior has
12128 execution instead of checking whether any inferior is live. Pass
12129 target down.
12130 (remote_target::remote_detach_1): Pass down target. Use
12131 remote_unpush_target.
12132 (extended_remote_target::attach): Pass down target.
12133 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
12134 (remote_target::append_resumption): Pass down target.
12135 (remote_target::append_pending_thread_resumptions)
12136 (remote_target::remote_resume_with_hc, remote_target::resume)
12137 (remote_target::commit_resume): Pass down target.
12138 (remote_target::remote_stop_ns): Check supports_vCont_probed.
12139 (remote_target::interrupt_query)
12140 (remote_target::remove_new_fork_children)
12141 (remote_target::check_pending_events_prevent_wildcard_vcont)
12142 (remote_target::remote_parse_stop_reply)
12143 (remote_target::process_stop_reply): Pass down target.
12144 (first_remote_resumed_thread): New remote_target parameter. Pass
12145 it down.
12146 (remote_target::wait_as): Pass down target.
12147 (unpush_and_perror): New remote_target parameter. Pass it down.
12148 (remote_target::readchar, remote_target::remote_serial_write)
12149 (remote_target::getpkt_or_notif_sane_1)
12150 (remote_target::kill_new_fork_children, remote_target::kill): Pass
12151 down target.
12152 (remote_target::mourn_inferior): Pass down target. Use
12153 remote_unpush_target.
12154 (remote_target::core_of_thread)
12155 (remote_target::remote_btrace_maybe_reopen): Pass down target.
12156 (remote_target::pid_to_exec_file)
12157 (remote_target::thread_handle_to_thread_info): Pass down target.
12158 (remote_target::async_wait_fd): New.
12159 * riscv-fbsd-tdep.c: Include "inferior.h".
12160 (riscv_fbsd_get_thread_local_address): Pass down target.
12161 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
12162 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
12163 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
12164 Adjust.
12165 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
12166 * solib-svr4.c (enable_break): Pass down target.
12167 * spu-multiarch.c (parse_spufs_run): Pass down target.
12168 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
12169 * target-delegates.c: Regenerate.
12170 * target.c (g_target_stack): Delete.
12171 (current_top_target): Return the current inferior's top target.
12172 (target_has_execution_1): Refer to the passed-in inferior's top
12173 target.
12174 (target_supports_terminal_ours): Check whether the initial
12175 inferior was already created.
12176 (decref_target): New.
12177 (target_stack::push): Incref/decref the target.
12178 (push_target, push_target, unpush_target): Adjust.
12179 (target_stack::unpush): Defref target.
12180 (target_is_pushed): Return bool. Adjust to refer to the current
12181 inferior's target stack.
12182 (dispose_inferior): Delete, and inline parts ...
12183 (target_preopen): ... here. Only dispose of the current inferior.
12184 (target_detach): Hold strong target reference while detaching.
12185 Pass target down.
12186 (target_thread_name): Add assertion.
12187 (target_resume): Pass down target.
12188 (target_ops::beneath, find_target_at): Adjust to refer to the
12189 current inferior's target stack.
12190 (get_dummy_target): New.
12191 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
12192 has a thread running.
12193 (initialize_targets): Rename to ...
12194 (_initialize_target): ... this.
12195 * target.h: Include "gdbsupport/refcounted-object.h".
12196 (struct target_ops): Inherit refcounted_object.
12197 (target_ops::shortname, target_ops::longname): Make const.
12198 (target_ops::async_wait_fd): New method.
12199 (decref_target): Declare.
12200 (struct target_ops_ref_policy): New.
12201 (target_ops_ref): New typedef.
12202 (get_dummy_target): Declare function.
12203 (target_is_pushed): Return bool.
12204 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
12205 (all_matching_threads_iterator::all_matching_threads_iterator):
12206 Handle filter target.
12207 * thread-iter.h (struct all_matching_threads_iterator, struct
12208 all_matching_threads_range, class all_non_exited_threads_range):
12209 Filter by target too. Remove explicit.
12210 * thread.c (threads_executing): Delete.
12211 (inferior_thread): Pass down current inferior.
12212 (clear_thread_inferior_resources): Pass down thread pointer
12213 instead of ptid_t.
12214 (add_thread_silent, add_thread_with_info, add_thread): Add
12215 process_stratum_target parameter. Use it for thread and inferior
12216 searches.
12217 (is_current_thread): New.
12218 (thread_info::deletable): Use it.
12219 (find_thread_ptid, thread_count, in_thread_list)
12220 (thread_change_ptid, set_resumed, set_running): New
12221 process_stratum_target parameter. Pass it down.
12222 (set_executing): New process_stratum_target parameter. Pass it
12223 down. Adjust reference to 'threads_executing'.
12224 (threads_are_executing): New process_stratum_target parameter.
12225 Adjust reference to 'threads_executing'.
12226 (set_stop_requested, finish_thread_state): New
12227 process_stratum_target parameter. Pass it down.
12228 (switch_to_thread): Also match inferior.
12229 (switch_to_thread): New process_stratum_target parameter. Pass it
12230 down.
12231 (update_threads_executing): Reimplement.
12232 * top.c (quit_force): Pop targets from all inferior.
12233 (gdb_init): Don't call initialize_targets.
12234 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
12235 Declare.
12236 (windows_add_thread, windows_delete_thread): Adjust.
12237 (get_windows_debug_event): Rename to ...
12238 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
12239 * tracefile-tfile.c (tfile_target_open): Pass down target.
12240 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
12241 Forward declare.
12242 (switch_to_thread): Add process_stratum_target parameter.
12243 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
12244 parameter. Use it.
12245 (mi_on_resume): Pass target down.
12246 * nat/fork-inferior.c (startup_inferior): Add
12247 process_stratum_target parameter. Pass it down.
12248 * nat/fork-inferior.h (startup_inferior): Add
12249 process_stratum_target parameter.
12250 * python/py-threadevent.c (py_get_event_thread): Pass target down.
12251
12252 2020-01-10 Pedro Alves <palves@redhat.com>
12253
12254 * remote.c (remote_target::start_remote): Don't set inferior_ptid
12255 directly. Instead find the first thread in the thread list and
12256 use switch_to_thread.
12257
12258 2020-01-10 Pedro Alves <palves@redhat.com>
12259
12260 * remote.c (remote_target::remote_add_inferior): Don't bind a
12261 process to the current inferior if the current inferior is already
12262 bound to a process.
12263
12264 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12265 Pedro Alves <palves@redhat.com>
12266
12267 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
12268 If no process is specified, return null_ptid instead of
12269 inferior_ptid.
12270 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
12271 TARGET_WAITKIND_SIGNALLED with no pid.
12272
12273 2020-01-10 Pedro Alves <palves@redhat.com>
12274
12275 * remote.c (first_remote_resumed_thread): New.
12276 (remote_target::wait_as): Use it as default event_ptid instead of
12277 inferior_ptid.
12278
12279 2020-01-10 Pedro Alves <palves@redhat.com>
12280
12281 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
12282
12283 2020-01-10 Pedro Alves <palves@redhat.com>
12284
12285 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
12286 not -1.
12287
12288 2020-01-10 Pedro Alves <palves@redhat.com>
12289
12290 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
12291 ptid to get_last_target_status.
12292 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
12293 ptid to get_last_target_status.
12294 * infcmd.c (continue_command): Don't pass a target_waitstatus to
12295 get_last_target_status.
12296 (info_program_command): Don't pass a target_waitstatus to
12297 get_last_target_status.
12298 * infrun.c (init_wait_for_inferior): Use
12299 nullify_last_target_wait_ptid.
12300 (get_last_target_status): Handle nullptr arguments.
12301 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
12302 (print_stop_event): Don't pass a ptid to get_last_target_status.
12303 (normal_stop): Don't pass a ptid to get_last_target_status.
12304 * infrun.h (get_last_target_status, set_last_target_status): Move
12305 comments here and update.
12306 (nullify_last_target_wait_ptid): Declare.
12307 * linux-fork.c (fork_load_infrun_state): Remove local extern
12308 declaration of nullify_last_target_wait_ptid.
12309 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
12310 to get_last_target_status.
12311
12312 2020-01-10 Pedro Alves <palves@redhat.com>
12313
12314 * gdbthread.h (scoped_restore_current_thread)
12315 <dont_restore, restore, m_dont_restore>: Declare.
12316 * thread.c (thread_alive): Add assertion. Return bool.
12317 (switch_to_thread_if_alive): New.
12318 (prune_threads): Switch inferior/thread.
12319 (print_thread_info_1): Switch thread before calling target methods.
12320 (scoped_restore_current_thread::restore): New, factored out from
12321 ...
12322 (scoped_restore_current_thread::~scoped_restore_current_thread):
12323 ... this.
12324 (scoped_restore_current_thread::scoped_restore_current_thread):
12325 Add assertion.
12326 (thread_apply_all_command, thread_select): Use
12327 switch_to_thread_if_alive.
12328 * infrun.c (proceed, restart_threads, handle_signal_stop)
12329 (switch_back_to_stepped_thread): Switch current thread before
12330 calling target methods.
12331
12332 2020-01-10 Pedro Alves <palves@redhat.com>
12333
12334 * inferior.c (switch_to_inferior_no_thread): New function,
12335 factored out from ...
12336 (inferior_command): ... here.
12337 * inferior.h (switch_to_inferior_no_thread): Declare.
12338 * mi/mi-main.c (run_one_inferior): Use
12339 switch_to_inferior_no_thread.
12340
12341 2020-01-10 Pedro Alves <palves@redhat.com>
12342
12343 * infcmd.c (kill_command): Remove dead code.
12344
12345 2020-01-10 Pedro Alves <palves@redhat.com>
12346
12347 * remote.c (remote_target::mourn_inferior): No longer check
12348 whether the target is running.
12349
12350 2020-01-10 Pedro Alves <palves@redhat.com>
12351
12352 * corelow.c (core_target::has_execution): Change parameter type to
12353 inferior pointer.
12354 * inferior.c (number_of_live_inferiors): Use
12355 inferior::has_execution instead of target_has_execution_1.
12356 * inferior.h (inferior::has_execution): New.
12357 * linux-thread-db.c (thread_db_target::update_thread_list): Use
12358 inferior::has_execution instead of target_has_execution_1.
12359 * process-stratum-target.c
12360 (process_stratum_target::has_execution): Change parameter type to
12361 inferior pointer. Check the inferior's PID instead of
12362 inferior_ptid.
12363 * process-stratum-target.h
12364 (process_stratum_target::has_execution): Change parameter type to
12365 inferior pointer.
12366 * record-full.c (record_full_core_target::has_execution): Change
12367 parameter type to inferior pointer.
12368 * target.c (target_has_execution_1): Change parameter type to
12369 inferior pointer.
12370 (target_has_execution_current): Adjust.
12371 * target.h (target_ops::has_execution): Change parameter type to
12372 inferior pointer.
12373 (target_has_execution_1): Change parameter type to inferior
12374 pointer. Change return type to bool.
12375 * tracefile.h (tracefile_target::has_execution): Change parameter
12376 type to inferior pointer.
12377
12378 2020-01-10 Pedro Alves <palves@redhat.com>
12379
12380 * exceptions.c (print_flush): Remove current_top_target() check.
12381
12382 2020-01-10 Pedro Alves <palves@redhat.com>
12383
12384 * remote.c (show_remote_exec_file): Show the current inferior's
12385 exec-file instead of the command variable's value.
12386
12387 2020-01-10 Pedro Alves <palves@redhat.com>
12388
12389 * record-full.c (record_full_resume_ptid): New global.
12390 (record_full_target::resume): Set it.
12391 (record_full_wait_1): Use record_full_resume_ptid instead of
12392 inferior_ptid.
12393
12394 2020-01-10 Pedro Alves <palves@redhat.com>
12395
12396 * gdbthread.h (scoped_restore_current_thread)
12397 <dont_restore, restore, m_dont_restore>: Declare.
12398 * thread.c (thread_alive): Add assertion. Return bool.
12399 (switch_to_thread_if_alive): New.
12400 (prune_threads): Switch inferior/thread.
12401 (print_thread_info_1): Switch thread before calling target methods.
12402 (scoped_restore_current_thread::restore): New, factored out from
12403 ...
12404 (scoped_restore_current_thread::~scoped_restore_current_thread):
12405 ... this.
12406 (scoped_restore_current_thread::scoped_restore_current_thread):
12407 Add assertion.
12408 (thread_apply_all_command, thread_select): Use
12409 switch_to_thread_if_alive.
12410
12411 2020-01-10 George Barrett <bob@bob131.so>
12412
12413 * stap-probe.c (stap_modify_semaphore): Don't check for null
12414 semaphores.
12415 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12416 for null semaphores.
12417
12418 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12419
12420 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12421 all source windows, and maintain horizontal scroll status while
12422 doing so.
12423
12424 2020-01-09 Tom Tromey <tom@tromey.com>
12425
12426 PR tui/18932:
12427 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12428 update_source_window, not print_source_lines.
12429
12430 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12431
12432 * tui/tui.c (tui_enable): Register tui hooks after calling
12433 tui_display_main.
12434
12435 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12436
12437 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12438
12439 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
12440
12441 * thread.c (print_thread_info_1): Fix indentation.
12442
12443 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12444
12445 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12446 unique_xmalloc_ptr outside the if to always free the demangled name.
12447
12448 2020-01-08 Tom Tromey <tromey@adacore.com>
12449
12450 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12451 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12452 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12453 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12454 Remove.
12455 (section_offsets): New typedef.
12456 * symtab.c (fixup_section, get_msymbol_address): Update.
12457 * symmisc.c (dump_msymbols): Update.
12458 * symfile.h (relative_addr_info_to_section_offsets)
12459 (symfile_map_offsets_to_segments): Update.
12460 * symfile.c (build_section_addr_info_from_objfile)
12461 (init_objfile_sect_indices): Update.
12462 (struct place_section_arg): Change type of "offsets".
12463 (place_section): Update.
12464 (relative_addr_info_to_section_offsets): Change type of
12465 "section_offsets". Remove "num_sections" parameter.
12466 (default_symfile_offsets, syms_from_objfile_1)
12467 (set_objfile_default_section_offset): Update.
12468 (reread_symbols): No need to preserve section offsets by hand.
12469 (symfile_map_offsets_to_segments): Change type of "offsets".
12470 * stap-probe.c (relocate_address): Update.
12471 * stabsread.h (process_one_symbol): Update.
12472 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12473 (solib_target_relocate_section_addresses): Update.
12474 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12475 Update.
12476 * solib-frv.c (frv_relocate_main_executable): Update.
12477 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12478 * solib-aix.c (solib_aix_get_section_offsets): Change return
12479 type.
12480 (solib_aix_solib_create_inferior_hook): Update.
12481 * remote.c (remote_target::get_offsets): Update.
12482 * psymtab.c (find_pc_sect_psymtab): Update.
12483 * psympriv.h (struct partial_symbol) <address, text_low,
12484 text_high>: Update.
12485 * objfiles.h (obj_section_offset): Update.
12486 (struct objfile) <section_offsets>: Change type.
12487 <num_sections>: Remove.
12488 (objfile_relocate): Update.
12489 * objfiles.c (entry_point_address_query): Update
12490 (relocate_one_symbol): Change type of "section_offsets".
12491 (objfile_relocate1, objfile_relocate1): Change type of
12492 "new_offsets".
12493 (objfile_rebase1): Update.
12494 * mipsread.c (mipscoff_symfile_read): Update.
12495 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12496 parameter.
12497 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12498 (parse_external, psymtab_to_symtab_1): Update.
12499 * machoread.c (macho_symfile_offsets): Update.
12500 * ia64-tdep.c (ia64_find_unwind_table): Update.
12501 * hppa-tdep.c (read_unwind_info): Update.
12502 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12503 * dwarf2read.c (create_addrmap_from_index)
12504 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12505 (process_psymtab_comp_unit_reader, add_partial_symbol)
12506 (add_partial_subprogram, process_full_comp_unit)
12507 (read_file_scope, read_func_scope, read_lexical_block_scope)
12508 (read_call_site_scope, dwarf2_rnglists_process)
12509 (dwarf2_ranges_process, dwarf2_ranges_read)
12510 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12511 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12512 Update.
12513 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12514 Update.
12515 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12516 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12517 (process_one_symbol): Change type of "section_offsets".
12518 * ctfread.c (get_objfile_text_range): Update.
12519 * coffread.c (coff_symtab_read, enter_linenos)
12520 (process_coff_symbol): Update.
12521 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12522 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12523
12524 2020-01-08 Tom Tromey <tromey@adacore.com>
12525
12526 * dwarf2read.c (parse_macro_definition): Use std::string.
12527 (parse_macro_definition): Likewise.
12528
12529 2020-01-08 Tom Tromey <tromey@adacore.com>
12530
12531 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12532 (ATTR_ALLOC_CHUNK): Remove.
12533
12534 2020-01-08 Tom Tromey <tromey@adacore.com>
12535
12536 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12537
12538 2020-01-08 Tom Tromey <tromey@adacore.com>
12539
12540 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12541 (dwarf2_compute_name, open_dwo_file): Likewise.
12542 (process_enumeration_scope): Use std::vector.
12543 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12544 (partial_die_info::fixup, dwarf2_start_subfile)
12545 (guess_full_die_structure_name, dwarf2_name): Likewise.
12546 (determine_prefix): Update.
12547 (guess_full_die_structure_name): Make return type const.
12548 (partial_die_full_name): Return unique_xmalloc_ptr.
12549 (DW_FIELD_ALLOC_CHUNK): Remove.
12550
12551 2020-01-07 Tom Tromey <tromey@adacore.com>
12552
12553 PR build/24937:
12554 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12555
12556 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12557
12558 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12559
12560 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12561
12562 * stack.c (print_frame_info): Move disassemble_next_line code
12563 inside source_print block.
12564
12565 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12566
12567 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12568 gdb/signals.h, as we are now using native signal symbols.
12569
12570 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12571
12572 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12573 overflow by an early check of content vs threshold.
12574 * tui/tui-source.c (tui_source_window::line_is_displayed):
12575 Likewise.
12576
12577 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12578
12579 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12580
12581 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12582
12583 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12584 export table if no section contains it's RVA.
12585
12586 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12587
12588 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12589
12590 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
12591
12592 * source.c (print_source_lines_base): Set last_line_listed.
12593
12594 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12595
12596 * tui/tui-disasm.c: Remove trailing spaces.
12597
12598 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12599 Pedro Alves <palves@redhat.com>
12600
12601 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12602 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12603 (windows_gdb_signal_to_target): New function, uses the above
12604 enumeration to convert GDB internal signal codes to equivalent
12605 Windows codes.
12606 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12607 * windows-nat.c: Include "gdb_wait.h".
12608 (get_windows_debug_event): Extract the fatal exception from the
12609 exit status and convert to the equivalent Posix signal number.
12610 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12611 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12612 * gdbsupport/gdb_wait.c: New file, implements
12613 windows_status_to_termsig.
12614 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12615 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12616
12617 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12618
12619 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12620 show_layout.
12621
12622 2020-01-05 Luis Machado <luis.machado@linaro.org>
12623
12624 * aarch64-linux-nat.c
12625 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12626 and bfd_mach_aarch64.
12627
12628 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12629
12630 * ui-file.c (stdio_file::can_emit_style_escape)
12631 (tee_file::can_emit_style_escape): Ensure style is used also on
12632 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12633 to gdb_stdout.
12634 * main.c (set_gdb_data_directory): Use file style to output the
12635 warning that the given pathname is not a directory.
12636 * top.c (show_history_filename, gdb_safe_append_history)
12637 (show_gdb_datadir): Use file style.
12638
12639 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12640
12641 * solib-target.c (struct lm_info_target):
12642 Change offsets to be a unique_xmalloc_ptr.
12643 (solib_target_relocate_section_addresses): Update.
12644
12645 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12646
12647 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12648
12649 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12650
12651 * MAINTAINERS (Write After Approval): Add myself.
12652
12653 2020-01-02 Luis Machado <luis.machado@linaro.org>
12654
12655 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12656 Cell BE architecture.
12657 * target.h (struct target_ops) <thread_architecture>: Likewise.
12658
12659 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12660
12661 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12662
12663 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12664
12665 * MAINTAINERS (Write After Approval): Add myself.
12666
12667 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12668
12669 * gdbarch.sh: Update copyright year range of generated files.
12670
12671 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12672
12673 Update copyright year range in all GDB files.
12674
12675 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12676
12677 * copyright.py: Convert to Python 3.
12678
12679 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12680
12681 * copyright.py: Adapt after move of gnulib directory from gdb
12682 directory to toplevel directory.
12683
12684 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12685
12686 * copyright.py (main): Exit if run from the wrong directory.
12687
12688 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12689
12690 * top.c (print_gdb_version): Change copyright year to 2020.
12691
12692 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12693
12694 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
12695
12696 For older changes see ChangeLog-2019.
12697 \f
12698 Local Variables:
12699 mode: change-log
12700 left-margin: 8
12701 fill-column: 74
12702 version-control: never
12703 coding: utf-8
12704 End: