]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
gdb: get jiter objfile from a bound minsym
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
2
3 * breakpoint.c (handle_jit_event): Add an argument, change how
4 `jit_event_handler` is called.
5
6 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
7
8 PR gdb/26642
9 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
10 target can't do async.
11 * target.c (target_wait): Assert that we don't pass
12 TARGET_WNOHANG to a target that can't async.
13
14 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
15
16 * NEWS: Mention ARC support in GDBserver.
17
18 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
19
20 * arc-linux-tdep.h: New file.
21 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
22 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
23 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
24 arc_linux_gregset, arc_linux_v2_regset,
25 arc_linux_iterate_over_regset_sections,
26 arc_linux_core_read_description): Implement.
27 (arc_linux_init_osabi): Set iterate_over_regset_sections.
28 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
29 (arc_gdbarch_features_create): Add.
30 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
31
32 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
33
34 * arch/arc.h: Rename "arc_gdbarch_features" to
35 "arc_arch_features".
36 * arc-tdep.h: Likewise.
37 * arc-tdep.c: Likewise.
38
39 2020-09-28 Gareth Rees <grees@undo.io> (tiny change)
40
41 PR python/26586
42 * cli/cli-script.c (execute_control_commands): don't set
43 instream to nullptr here as this breaks the from_tty argument
44 to gdb.execute in Python.
45 (execute_user_command): set instream to nullptr here instead.
46
47 2020-09-25 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
48
49 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
50 argument.
51
52 2020-09-24 Tom Tromey <tromey@adacore.com>
53
54 PR tui/26638:
55 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
56 method.
57 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
58 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
59 (tui_prev_win): Rewrite.
60
61 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
62
63 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
64 in WOW64 processes as SIGINT.
65 * nat/windows-nat.h: Make wow64_process a shared variable.
66 * windows-nat.c: Remove static wow64_process variable.
67
68 2020-09-18 Victor Collod <vcollod@nvidia.com>
69
70 PR gdb/26635
71 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
72 (i386_analyze_prologue): Call i386_skip_endbr.
73
74 2020-09-18 Pedro Alves <pedro@palves.net>
75
76 PR gdb/26631
77 * thread.c (thread_find_command): Switch inferior before calling
78 target methods.
79
80 2020-09-16 Tom Tromey <tromey@adacore.com>
81
82 PR gdb/26598:
83 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
84
85 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
86 Adam Renquinha <arenquinha@cimeq.qc.ca>
87
88 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
89 pointer and stack frame offset when unwinding.
90
91 2020-09-13 Joel Brobecker <brobecker@adacore.com>
92
93 * version.in: Set GDB version number to 10.0.90.DATE-git.
94
95 2020-09-13 Joel Brobecker <brobecker@adacore.com>
96
97 GDB 10.0.90 released.
98
99 2020-09-13 Joel Brobecker <brobecker@adacore.com>
100
101 * version.in: Set GDB version number to 10.0.90.
102
103 2020-09-13 Joel Brobecker <brobecker@adacore.com>
104
105 * NEWS: Change "Changes since GDB 9" to "Changes in GDB 10".
106
107 2020-09-13 Joel Brobecker <brobecker@adacore.com>
108
109 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
110 * version.in: Bump version to 10.0.90.DATE-git.
111
112 2020-09-12 Joel Brobecker <brobecker@adacore.com>
113
114 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
115
116 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
117 Felix Willgerodt <Felix.Willgerodt@intel.com>
118
119 * gdbarch.sh: Added bfloat16 type.
120 * gdbarch.c: Regenerated.
121 * gdbarch.h: Regenerated.
122 * gdbtypes.c (floatformats_bfloat16): New struct.
123 (gdbtypes_post_init): Add builtin_bfloat16.
124 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
125 (floatformats_bfloat16): New struct.
126 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
127 (i386_ymm_type): Add field "v16_bfloat16"
128 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
129 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
130 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
131 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
132 * features/i386/64bit-avx512.xml: Add bfloat16 type.
133 * features/i386/64bit-avx512.c: Regenerated.
134 * features/i386/64bit-sse.xml: Add bfloat16 type.
135 * features/i386/64bit-sse.c: Regenerated.
136
137 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
138
139 * i386-tdep.c (i386_zmm_type): Fix field names.
140 (i386_ymm_type): Fix field names.
141
142 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
143
144 * breakpoint.c: Fix typo in the help message of the
145 "set breakpoint condition-evaluation" command.
146
147 2020-09-10 Kamil Rytarowski <n54@gmx.com>
148
149 * nbsd-nat.c: Include "nat/netbsd-nat.h".
150 * (nbsd_nat_target::pid_to_exec_file)
151 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
152 (nbsd_nat_target::post_startup_inferior)
153 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
154 (nbsd_add_threads): Switch local code to common gdb/nat functions.
155 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
156 * (nbsd_thread_lister): Remove.
157
158 2020-09-10 Kamil Rytarowski <n54@gmx.com>
159
160 * fork-inferior.c (startup_inferior): Avoid double free.
161
162 2020-09-10 Kamil Rytarowski <n54@gmx.com>
163
164 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
165 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
166
167 2020-09-10 Kamil Rytarowski <n54@gmx.com>
168
169 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
170 * netbsd-nat.c: Include <sys/ptrace.h>.
171 * (netbsd_nat::enable_proc_events): Add.
172
173 2020-09-10 Kamil Rytarowski <n54@gmx.com>
174
175 * netbsd-nat.h: Include "gdbsupport/function-view.h".
176 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
177 (netbsd_nat::for_each_thread): Add.
178 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
179 "gdbsupport/common-debug.h".
180 * (netbsd_nat::netbsd_thread_lister)
181 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
182 (netbsd_nat::for_each_thread): Add.
183
184 2020-09-10 Kamil Rytarowski <n54@gmx.com>
185
186 * netbsd-nat.h: Include <unistd.h>.
187 * (netbsd_nat::pid_to_exec_file): Add.
188 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
189 * (netbsd_nat::pid_to_exec_file) Add.
190
191 2020-09-10 Kamil Rytarowski <n54@gmx.com>
192
193 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
194
195 2020-09-10 Kamil Rytarowski <n54@gmx.com>
196
197 * netbsd-nat.h: New file.
198 * netbsd-nat.c: Likewise.
199
200 2020-09-09 Tom Tromey <tromey@adacore.com>
201
202 * ada-lang.c (remove_extra_symbols): Do not increment when
203 removing an element
204
205 2020-09-08 Tom Tromey <tromey@adacore.com>
206
207 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
208
209 2020-09-08 Tom Tromey <tromey@adacore.com>
210
211 PR win32/25302:
212 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
213 (gdb_bfd_init_data): New function.
214 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
215
216 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
217
218 * infrun.c (fetch_inferior_event): Use
219 `switch_to_target_no_thread` to switch the target.
220
221 2020-09-06 Tom Tromey <tom@tromey.com>
222
223 * symfile.h (dwarf2_free_objfile): Don't declare.
224
225 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
226
227 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
228 to match 16 byte real/complex type generated by Flang compiler.
229
230 2020-09-03 Tom de Vries <tdevries@suse.de>
231
232 PR breakpoint/26546
233 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
234 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
235
236 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
237
238 * maint.c (index_digits): New function.
239 (struct maint_print_section_data): Remove.
240 (print_bfd_section_info): Remove print_data parameter, add arg
241 and index_digits.
242 (print_objfile_section_info): Likewise.
243 (print_bfd_section_info_maybe_relocated): Likewise (plus
244 objfile).
245 (maintenance_info_sections): Adjust calls.
246
247 2020-09-02 Tom Tromey <tromey@adacore.com>
248
249 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
250 for null pointers.
251 (ada_varobj_adjust_for_child_access): Special-case null pointers.
252
253 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
254
255 * bcache.h (struct bcache) <insert>: Change type of `added` to
256 pointer to bool.
257 * bcache.c (bcache::insert): Likewise.
258 * gdbtypes.c (check_types_worklist): Adjust.
259 * psymtab.c (add_psymbol_to_bcache): Adjust.
260
261 2020-08-31 Kevin Buettner <kevinb@redhat.com>
262
263 * corelow.c (unordered_set): Include.
264 (class core_target): Add field 'm_core_unavailable_mappings'.
265 (core_target::build_file_mappings): Print only one warning
266 per inaccessible file. Add unavailable/broken mappings
267 to m_core_unavailable_mappings.
268 (core_target::xfer_partial): Call...
269 (core_target::xfer_memory_via_mappings): New method.
270
271 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
272
273 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
274 type to bool.
275
276 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
277
278 * dwarf2/read.c (struct field_info): Fix indentation.
279
280 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
281
282 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
283 ordering in comment.
284 * frame.c (frame_id_eq): Fix indentation.
285
286 2020-08-31 Scott Linder <scott@scottlinder.com>
287 Simon Marchi <simon.marchi@efficios.com>
288
289 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
290 inline frame ids in outer frame.
291
292 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
293
294 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
295 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
296 (outer_frame_id): Use FID_STACK_OUTER instead of
297 FID_STACK_INVALID.
298 (frame_id_p): Don't check for outer_frame_id.
299
300 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
301
302 * frame-unwind.c (frame_unwind_got_optimized): Don't set
303 regnum/frame in value. Call allocate_value_lazy.
304 * frame.c (frame_unwind_register_value): Use
305 val_print_not_saved.
306
307 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
308
309 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
310
311 2020-08-29 Pedro Alves <pedro@palves.net>
312
313 * progspace.c (print_program_space): Use all_inferiors. Switch to
314 the inferior before calling target_pid_to_str.
315
316 2020-08-28 Tom Tromey <tom@tromey.com>
317
318 * xcoffread.c (xcoff_end_psymtab): Update comment.
319 * dbxread.c (dbx_end_psymtab): Update comment.
320
321 2020-08-28 Tom de Vries <tdevries@suse.de>
322
323 PR breakpoint/26544
324 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
325 event_location.
326 (create_breakpoint): Same.
327 (base_breakpoint_decode_location): Same.
328 (bkpt_create_sals_from_location): Same.
329 (bkpt_decode_location): Same.
330 (bkpt_probe_create_sals_from_location): Same.
331 (bkpt_probe_decode_location): Same.
332 (tracepoint_create_sals_from_location): Same.
333 (tracepoint_decode_location): Same.
334 (tracepoint_probe_decode_location): Same.
335 (strace_marker_create_sals_from_location): Same.
336 (strace_marker_decode_location): Same.
337 (create_sals_from_location_default): Same.
338 (decode_location_default): Same.
339 * breakpoint.h (struct breakpoint_ops): Same.
340 (create_breakpoint): Same.
341 * linespec.h (decode_line_full): Same.
342 * linespec.c (decode_line_full): Same. Throw error if
343 result.size () == 0.
344
345 2020-08-27 Pedro Alves <pedro@palves.net>
346
347 PR gdb/26524
348 * breakpoint.c (until_break_fsm) <location_breakpoint,
349 caller_breakpoint>: Delete fields.
350 <breakpoints>: New field.
351 <until_break_fsm>: Adjust to save a breakpoint vector instead of
352 two individual breakpoints.
353 (until_break_fsm::should_stop): Loop over breakpoints in the
354 breakpoint vector.
355 (until_break_fsm::clean_up): Adjust to clear the breakpoints
356 vector.
357 (until_break_command): Handle location expanding into multiple
358 sals.
359
360 2020-08-27 Pedro Alves <pedro@palves.net>
361
362 PR gdb/26523
363 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
364 bp_until breakpoints user-specified locations. Update intro
365 comment.
366
367 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
368
369 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
370 gdb_bfd_sections): New.
371 * maint.c (print_bfd_section_info): Change param type to
372 maint_print_section_data.
373 (print_objfile_section_info): Likewise.
374 (print_bfd_section_info_maybe_relocated): Likewise.
375 (maintenance_info_sections): Use gdb_bfd_sections.
376
377 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
378
379 * MAINTAINERS: Add ARC target and maintainer.
380
381 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
382
383 * configure.tgt: ARC support for GNU/Linux.
384 * Makefile.in (ALL_TARGET_OBJS): Likewise.
385 * arc-linux-tdep.c: New file.
386 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
387 * arc-tdep.c (arc_write_pc): Use it.
388
389 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
390
391 * arc-tdep.c (arc_check_for_hardware_loop): New.
392 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
393
394 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
395
396 * arc-tdep.h: Include "gdbarch.h".
397
398 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
399
400 * arch/arc.h
401 (arc_gdbarch_features): New class to stir the selection of target XML.
402 (arc_create_target_description): Use FEATURES to choose XML target.
403 (arc_lookup_target_description): Use arc_create_target_description
404 to create _new_ target descriptions or return the already created
405 ones if the FEATURES is the same.
406 * arch/arc.c: Implementation of prototypes described above.
407 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
408 (arc_gdbarch_features_init): Initialize the FEATURES struct.
409 * arc-tdep.c (*_feature_name): Make feature names consistent.
410 (arc_register_feature): A new struct to hold information about
411 registers of a particular target/feature.
412 (arc_check_tdesc_feature): Check if XML provides registers in
413 compliance with ARC_REGISTER_FEATURE structs.
414 (arc_update_acc_reg_names): Add aliases for r58 and r59.
415 (determine_*_reg_feature_set): Which feature name to look for.
416 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
417 (mach_type_to_arc_isa): Convert from a set of binutils machine types
418 to expected ISA enums to be used in arc_gdbarch_features structs.
419 * features/Makefile (FEATURE_XMLFILES): Add new files.
420 * gdb/features/arc/v1-aux.c: New file.
421 * gdb/features/arc/v1-aux.xml: Likewise.
422 * gdb/features/arc/v1-core.c: Likewise.
423 * gdb/features/arc/v1-core.xml: Likewise.
424 * gdb/features/arc/v2-aux.c: Likewise.
425 * gdb/features/arc/v2-aux.xml: Likewise.
426 * gdb/features/arc/v2-core.c: Likewise.
427 * gdb/features/arc/v2-core.xml: Likewise.
428 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
429
430 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
431 Andrew Burgess <andrew.burgess@embecosm.com>
432
433 PR m2/26372
434 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
435 an assert. Remove single element array indexing pattern as the
436 MULTI_SUBSCRIPT support will handle this case too.
437
438 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
439
440 * value.h (valprint_check_validity): Move declaration from
441 here...
442 * valprint.h (valprint_check_validity): ... to here.
443
444 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
445
446 * debug.h: New file.
447 * debug.c (debug_prefixed_vprintf): New function.
448 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
449 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
450
451 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
452
453 * infrun.h (infrun_debug_printf_1): New function declaration.
454 (infrun_debug_printf): New macro.
455 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
456 throughout.
457 (infrun_debug_printf): New function.
458 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
459 (handle_jit_event): Likewise.
460
461 2020-08-21 Mark Wielaard <mark@klomp.org>
462
463 * ada-lex.l: Extend register warnings diagnostics comment for g++.
464
465 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
466
467 * frame.c (enum class frame_id_status): New.
468 (struct frame_info) <this_id::p>: Change type to frame_id_status.
469 (fprintf_frame): Update.
470 (compute_frame_id): Set frame id status to "computing" on entry.
471 Set it back to "not_computed" on failure and to "computed" on
472 success.
473 (get_frame_id): Assert the frame id is not being computed.
474 (create_sentinel_frame): Use frame_id_status::COMPUTED.
475 (create_new_frame): Likewise.
476 (frame_cleanup_after_sniffer): Update assert.
477
478 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
479
480 * regcache.c (pid_ptid_regcache_map): New type.
481 (target_ptid_regcache_map): Remove.
482 (target_pid_ptid_regcache_map): New type.
483 (regcaches): Change type to target_pid_ptid_regcache_map.
484 (get_thread_arch_aspace_regcache): Update.
485 (regcache_thread_ptid_changed): Update, handle pid-like ptid
486 case.
487 (regcaches_size): Update.
488 (regcache_count): Update.
489 (registers_changed_ptid_target_pid_test): New.
490 (_initialize_regcache): Register new test.
491
492 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
493
494 * regcache.c (regcache_count): New.
495 (struct regcache_test_data): New.
496 (regcache_test_data_up): New.
497 (populate_regcaches_for_test): New.
498 (regcaches_test): Remove.
499 (get_thread_arch_aspace_regcache_test): New.
500 (registers_changed_ptid_all_test): New.
501 (registers_changed_ptid_target_test): New.
502 (registers_changed_ptid_target_ptid_test): New.
503 (regcache_thread_ptid_changed): Remove regcache_count lambda.
504 (_initialize_regcache): Register new tests.
505
506 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
507
508 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
509 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
510 gdbarch and aspace parameter. Use current inferior's aspace.
511 Validate regcache's arch value.
512 (regcaches_test): Update.
513
514 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
515
516 * regcache.c (regcaches_test): Call registers_changed.
517
518 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
519
520 * infrun.c (process_event_stop_test): Fix typo "breapoint".
521
522 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
523
524 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
525 to find the end of prologue for flang compiled binaries.
526 * arm-tdep.c (arm_skip_prologue): Likewise.
527 * i386-tdep.c (i386_skip_prologue): Likewise.
528 * producer.c (producer_is_llvm): New function.
529 (producer_parsing_tests): Added new tests for clang/flang.
530 * producer.h (producer_is_llvm): New declaration.
531
532 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
533
534 * linux-nat.c (linux_nat_debug_printf): New function.
535 (linux_nat_debug_printf_1): New macro. Use throughout the file.
536
537 2020-08-18 Aaron Merey <amerey@redhat.com>
538
539 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
540 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
541 (CLIBS): Add DEBUGINFOD_LIBS.
542
543 2020-08-17 Sergei Trofimovich <siarheit@google.com>
544
545 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
546 'gdbarch_num_regs'.
547
548 2020-08-17 Tom Tromey <tromey@adacore.com>
549
550 * ada-varobj.c (ada_varobj_decode_var): Handle case where
551 ada_get_decoded_value returns NULL.
552
553 2020-08-17 Tom Tromey <tromey@adacore.com>
554
555 * python/py-inferior.c (infpy_search_memory): Use
556 gdb_py_object_from_ulongest.
557 * python/py-infevents.c (create_inferior_call_event_object)
558 (create_memory_changed_event_object): Use
559 gdb_py_object_from_ulongest.
560 * python/py-linetable.c (ltpy_entry_get_pc): Use
561 gdb_py_object_from_ulongest.
562
563 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
564
565 * loc.c (class symbol_needs_eval_context): Fix indentation.
566
567 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
568
569 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
570 bool.
571
572 2020-08-17 Tom de Vries <tdevries@suse.de>
573
574 PR gdb/26393
575 * gdbtypes.c (dump_dynamic_prop): New function.
576 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
577
578 2020-08-15 Tom de Vries <tdevries@suse.de>
579
580 PR backtrace/26390
581 * stack.c (print_frame_args): Temporarily set the selected
582 frame to FRAME while printing the frame's arguments.
583
584 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
585
586 PR breakpoints/26385
587 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
588 Always clear watchpoint with PTRACE_SET_DEBUGREG.
589
590 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
591
592 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
593 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
594 and >= to check return value instead of == -1 and != -1.
595
596 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
597
598 * utils.h (class gdb_argv) <as_array_view>: New method.
599 * utils.c (gdb_argv_as_array_view_test): New.
600 (_initialize_utils): Register selftest.
601 * maint.c (maintenance_selftest): Use the new method.
602
603 2020-08-13 Kamil Rytarowski <n54@gmx.com>
604
605 * target.h (supports_dumpcore, dumpcore): New
606 function declarations.
607 * target.c (supports_dumpcore, dumpcore): New
608 functions.
609 * target-delegates.c: Rebuild.
610 * gcore.c (gcore_command): Use target_supports_dumpcore ()
611 and target_dumpcore ().
612
613 2020-08-13 Aaron Merey <amerey@redhat.com>
614
615 * debuginfod-support.c: Replace global variables with user_data.
616
617 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
618
619 * maint.c (maintenance_selftest): Split args and pass array_view
620 to run_tests.
621
622 2020-08-12 Luis Machado <luis.machado@linaro.org>
623
624 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
625 type's length.
626 Use %s and pulongest to print the length.
627
628 2020-08-12 Pedro Alves <palves@redhat.com>
629
630 * NEWS: Move "Multi-target debugging support" item to the
631 "Changes since GDB 9" section.
632
633 2020-08-12 Pedro Alves <palves@redhat.com>
634
635 PR gdb/26336
636 * progspace.c (program_space::remove_objfile): Invalidate the
637 frame cache.
638
639 2020-08-11 Tom de Vries <tdevries@suse.de>
640
641 * MAINTAINERS: Mark ms1 as deleted.
642
643 2020-08-10 Luis Machado <luis.machado@linaro.org>
644
645 PR gdb/26310
646
647 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
648 act accordingly.
649 (aarch64_analyze_prologue_test): Add more unit tests to exercise
650 movz/str/stur/stp skipping behavior.
651
652 2020-08-10 Luis Machado <luis.machado@linaro.org>
653
654 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
655 struct user_sve_header instead of struct sve_context.
656
657 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
658
659 * read.h (dwarf2_fetch_die_loc_sect_off,
660 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
661 `void *` parameter with function_view.
662 * read.c (dwarf2_fetch_die_loc_sect_off,
663 dwarf2_fetch_die_loc_cu_off): Likewise.
664 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
665 (per_cu_dwarf_call): Adjust.
666 (get_frame_address_in_block_wrapper): Remove.
667 (indirect_synthetic_pointer): Adjust.
668 (get_ax_pc): Remove.
669 (dwarf2_compile_expr_to_ax): Adjust.
670
671 2020-08-08 Tom de Vries <tdevries@suse.de>
672
673 PR build/26344
674 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
675 constructor.
676 * regcache.c (get_thread_arch_aspace_regcache): Same.
677
678 2020-08-07 Tom Tromey <tromey@adacore.com>
679
680 * ravenscar-thread.c
681 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
682 New method.
683 (ravenscar_thread_target::wait): Check
684 runtime_initialized.
685 (ravenscar_thread_target::prepare_to_store)
686 (ravenscar_thread_target::stopped_by_sw_breakpoint)
687 (ravenscar_thread_target::stopped_by_hw_breakpoint)
688 (ravenscar_thread_target::stopped_by_watchpoint)
689 (ravenscar_thread_target::stopped_data_address)
690 (ravenscar_thread_target::core_of_thread): Use
691 scoped_restore_current_thread and
692 set_base_thread_from_ravenscar_task.
693
694 2020-08-07 Tom Tromey <tromey@adacore.com>
695
696 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
697
698 2020-08-07 Tom Tromey <tromey@adacore.com>
699
700 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
701 update_inferior_ptid before update_thread_list.
702 (temporarily_change_regcache_ptid): New class.
703 (ravenscar_thread_target::fetch_registers)
704 (ravenscar_thread_target::store_registers)
705 (ravenscar_thread_target::prepare_to_store): Use base thread when
706 forwarding operation.
707
708 2020-08-07 Tom Tromey <tromey@adacore.com>
709
710 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
711 "is_pid" case.
712
713 2020-08-07 Tom Tromey <tromey@adacore.com>
714
715 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
716 New methods.
717 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
718 first.
719 (ravenscar_thread_target::add_thread): Rename from
720 ravenscar_add_thread.
721 (ravenscar_thread_target::update_thread_list): Use a lambda.
722 (ravenscar_thread_target::xfer_partial): New method.
723
724 2020-08-07 Tom Tromey <tromey@adacore.com>
725
726 * ada-lang.h (ada_task_list_iterator_ftype): Now a
727 gdb::function_view.
728 (iterate_over_live_ada_tasks): Change type of argument.
729 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
730 of argument.
731
732 2020-08-07 Tom Tromey <tromey@adacore.com>
733
734 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
735 Remove.
736 (ravenscar_thread_target::extra_thread_info): Remove.
737 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
738 defer to target beneath for non-Ravenscar threads.
739
740 2020-08-07 Tom Tromey <tromey@adacore.com>
741
742 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
743 get_base_thread_from_ravenscar_task>: Now methods.
744 <m_cpu_map>: New member.
745 (ravenscar_thread_target::get_thread_base_cpu): Rename from
746 ravenscar_get_thread_base_cpu. Check m_cpu_map.
747 (ravenscar_thread_target::task_is_currently_active): Update.
748 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
749 Now a method.
750 (ravenscar_thread_target::add_active_thread): Put initial thread
751 into the m_cpu_map.
752
753 2020-08-07 Tom Tromey <tromey@adacore.com>
754
755 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
756 event_ptid.
757
758 2020-08-07 Tom Tromey <tromey@adacore.com>
759
760 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
761 runtime_initialized.
762
763 2020-08-07 Tom Tromey <tromey@adacore.com>
764
765 * ravenscar-thread.c (ravenscar_thread_target): Don't call
766 add_active_thread.
767 (ravenscar_thread_target::add_active_thread): Now public.
768 (ravenscar_inferior_created): Call add_active_thread after pushing
769 the target.
770
771 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
772
773 * regcache.c (ptid_regcache_map): New type.
774 (target_ptid_regcache_map): New type.
775 (regcaches): Change type to target_ptid_regcache_map.
776 (get_thread_arch_aspace_regcache): Update to regcaches' new
777 type.
778 (regcache_thread_ptid_changed): Likewise.
779 (registers_changed_ptid): Likewise.
780 (regcaches_size): Likewise.
781 (regcaches_test): Update.
782 (regcache_thread_ptid_changed): Update.
783 * regcache.h (regcache_up): New type.
784 * gdbsupport/ptid.h (hash_ptid): New struct.
785
786 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
787
788 * observable.h (thread_ptid_changed): Add parameter
789 `process_stratum_target *`.
790 * infrun.c (infrun_thread_ptid_changed): Add parameter
791 `process_stratum_target *` and use it.
792 (selftests): New namespace.
793 (infrun_thread_ptid_changed): New function.
794 (_initialize_infrun): Register selftest.
795 * regcache.c (regcache_thread_ptid_changed): Add parameter
796 `process_stratum_target *` and use it.
797 (regcache_thread_ptid_changed): New function.
798 (_initialize_regcache): Register selftest.
799 * thread.c (thread_change_ptid): Pass target to
800 thread_ptid_changed observable.
801
802 2020-08-06 Caroline Tice <cmtice@google.com>
803
804 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
805 (struct dwp_sections): Update field comments. Add loclists and
806 rnglists fields.
807 (struct virtual_v2_dwo_sections): Rename struct to
808 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
809 size & offset fields for loclists and rnglists.
810 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
811 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
812 skipping dummy type units.
813 (create_dwp_hash_table): Update the large comment above the function to
814 discuss Version 5 DWP files as well, with references. Update all the
815 version checks in the function to check for version 5 as well. Add new
816 section at the end to create dwp hash table for version 5.
817 (create_dwp_v2_section): Rename function to
818 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
819 Add V5 to error message text.
820 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
821 into calls to create_dwp_v2_or_v5_section.
822 (create_dwo_unit_in_dwp_v5): New function.
823 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
824 check for version2; add else clause to handle version 5.
825 (open_and_init_dwo_file): Add code to check dwarf version & only call
826 create_debug_types_hash_table (with sections.types) if version is not 5;
827 else call create_debug_type_hash_table, with sections.info.
828 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
829 version 5.
830 (dwarf2_locate_v5_dwp_sections): New function.
831 (open_and_init_dwp_file): Add else-if clause for version 5 to call
832 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
833
834 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
835
836 * regcache.h (class regcache): Remove friend
837 registers_changed_ptid.
838 <regcache_thread_ptid_changed>: Remove.
839 <regcaches>: Remove.
840 * regcache.c (regcache::regcaches): Rename to...
841 (regcaches): ... this. Make static.
842 (get_thread_arch_aspace_regcache): Update.
843 (regcache::regcache_thread_ptid_changed): Rename to...
844 (regcache_thread_ptid_changed): ... this. Update.
845 (class regcache_access): Remove.
846 (regcaches_test): Update.
847 (_initialize_regcache): Update.
848 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
849 <forward_list>.
850
851 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
852
853 * regcache.h (class regcache) <current_regcache>: Rename to...
854 <regcaches>: ... this. Move doc here.
855 * regcache.c (regcache::current_regcache) Rename to...
856 (regcache::regcaches): ... this. Move doc to header.
857 (get_thread_arch_aspace_regcache): Update.
858 (regcache::regcache_thread_ptid_changed): Update.
859 (registers_changed_ptid): Update.
860 (class regcache_access) <current_regcache_size>: Rename to...
861 <regcaches_size>: ... this.
862 (current_regcache_test): Rename to...
863 (regcaches_test): ... this.
864 (_initialize_regcache): Update.
865
866 2020-08-06 Victor Collod <vcollod@nvidia.com>
867
868 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
869
870 2020-08-05 Kevin Buettner <kevinb@redhat.com>
871
872 * corelow.c (core_target::build_file_mappings): Don't output
873 null pathname in warning.
874
875 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
876
877 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
878 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
879 gdb.dwarf2/dw2-single-line-discriminators.exp,
880 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
881
882 2020-08-05 Tom Tromey <tromey@adacore.com>
883
884 PR rust/26197:
885 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
886 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
887 Fix off-by-one and type size errors in ordinary case.
888
889 2020-08-05 Tom de Vries <tdevries@suse.de>
890
891 * gdbtypes.c (type_not_allocated, type_not_associated): Use
892 "prop->const_val () == 0" instead of "prop->const_val () != 0".
893
894 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
895
896 * frame.h (frame_id_p): Return bool.
897 (frame_id_artificial_p): Return bool.
898 (frame_id_eq): Return bool.
899 (has_stack_frames): Return bool.
900 (get_selected_frame): Fix typo in comment.
901 (get_frame_pc_if_available): Return bool.
902 (get_frame_address_in_block_if_available): Return bool.
903 (get_frame_func_if_available): Return bool.
904 (read_frame_register_unsigned): Return bool.
905 (get_frame_register_bytes): Return bool.
906 (safe_frame_unwind_memory): Return bool.
907 (deprecated_frame_register_read): Return bool.
908 (frame_unwinder_is): Return bool.
909 * frame.c (struct frame_info) <prev_arch::p>: Change type to
910 bool.
911 <this_id::p>: Likewise.
912 <prev_p>: Likewise.
913 (frame_stash_add): Return bool.
914 (get_frame_id): Use bool.
915 (frame_id_build_special) Use bool.
916 (frame_id_build_unavailable_stack): Use bool.
917 (frame_id_build): Use bool.
918 (frame_id_p): Return bool, use true/false instead of 1/0.
919 (frame_id_artificial_p): Likewise.
920 (frame_id_eq): Likewise.
921 (frame_id_inner): Likewise.
922 (get_frame_func_if_available): Likewise.
923 (read_frame_register_unsigned): Likewise.
924 (deprecated_frame_register_read): Likewise.
925 (get_frame_register_bytes): Likewise.
926 (has_stack_frames): Likewise.
927 (inside_main_func): Likewise.
928 (inside_entry_func): Likewise.
929 (get_frame_pc_if_available): Likewise.
930 (get_frame_address_in_block_if_available): Likewise.
931 (frame_unwinder_is): Likewise.
932 (safe_frame_unwind_memory): Likewise.
933 (frame_unwind_arch): Likewise.
934
935 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
936
937 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
938 type to cached_copy_status.
939 (fprintf_frame): Adjust.
940 (get_frame_func_if_available): Adjust.
941 (frame_cleanup_after_sniffer): Adjust.
942
943 2020-08-04 Mark Wielaard <mark@klomp.org>
944
945 * MAINTAINERS (Write After Approval): Update email address.
946
947 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
948
949 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
950 dynamic_prop::const_val.
951
952 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
953
954 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
955 dynamic_prop::kind.
956
957 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
958
959 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
960
961 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
962
963 * configure.tgt: Set gdb_sim for bpf-*-* targets.
964
965 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
966 Jose E. Marchesi <jose.marchesi@oracle.com>
967
968 * configure.tgt: Add entry for bpf-*-*.
969 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
970 (ALLDEPFILES): Add bpf-tdep.c.
971 * bpf-tdep.c: New file.
972 * MAINTAINERS: Add bpf target and maintainer.
973 * NEWS: Mention the support for the new target.
974
975 2020-08-04 Tom de Vries <tdevries@suse.de>
976
977 PR symtab/23270
978 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
979 Error.
980
981 2020-08-03 John Baldwin <jhb@FreeBSD.org>
982
983 * syscalls/freebsd.xml: Regenerate.
984
985 2020-08-03 John Baldwin <jhb@FreeBSD.org>
986
987 * syscalls/update-freebsd.sh: Fix usage and year range.
988
989 2020-08-03 Tom de Vries <tdevries@suse.de>
990
991 PR symtab/26333
992 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
993 DW_LNE_lo_user/DW_LNE_hi_user range.
994
995 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
996
997 PR ada/26318
998 * ada-lang.c (ada_modulus): Return 0 if property is not of const
999 kind.
1000
1001 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1002
1003 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
1004
1005 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1006
1007 * breakpoint.c (set_breakpoint_condition): Update the condition
1008 expressions after checking that the input condition string parses
1009 successfully and does not contain junk at the end.
1010
1011 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1012
1013 * breakpoint.c (set_breakpoint_condition): Update the
1014 condition string after parsing the new condition successfully.
1015
1016 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1017
1018 * proc-api.c (_STRUCTURED_PROC): Don't define.
1019 * proc-events.c: Likewise.
1020 * proc-flags.c: Likewise.
1021 * proc-why.c: Likewise.
1022 * procfs.c: Likewise.
1023
1024 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
1025 * configure, config.in: Regenerate.
1026
1027 2020-07-30 Tom de Vries <tdevries@suse.de>
1028
1029 PR build/26320
1030 * ui-style.h (struct ui_file_style::color): Wrap m_value and
1031 m_red/m_green/m_blue in a union.
1032
1033 2020-07-29 Tom de Vries <tdevries@suse.de>
1034
1035 PR tdep/26280
1036 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
1037
1038 2020-07-28 Tom Tromey <tromey@adacore.com>
1039
1040 PR symtab/26270:
1041 * symtab.h (find_pc_partial_function_sym): Declare.
1042 * cli/cli-cmds.c (disassemble_command): Use
1043 find_pc_partial_function_sym. Check asm_demangle.
1044 * blockframe.c (cache_pc_function_sym): New global.
1045 (cache_pc_function_name): Remove.
1046 (clear_pc_function_cache): Update.
1047 (find_pc_partial_function_sym): New function, from
1048 find_pc_partial_function.
1049 (find_pc_partial_function): Rewrite using
1050 find_pc_partial_function_sym.
1051
1052 2020-07-28 Tom Tromey <tromey@adacore.com>
1053
1054 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
1055 help. Add usage.
1056
1057 2020-07-28 Tom Tromey <tromey@adacore.com>
1058
1059 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
1060 <DW_OP_GNU_variable_value>: Cast to address type.
1061
1062 2020-07-28 Kamil Rytarowski <n54@gmx.com>
1063
1064 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
1065 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
1066 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
1067 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
1068 (nbsd_get_siginfo_type): New.
1069 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
1070 (_initialize_nbsd_tdep): New.
1071
1072 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1073
1074 PR binutils/26301
1075 * configure: Regenerated.
1076
1077 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1078
1079 PR binutils/26301
1080 * configure: Regenerated.
1081
1082 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1083
1084 * python/py-frame.c: Remove 'user-regs.h' include.
1085 (frapy_read_register): Rewrite to make use of
1086 gdbpy_parse_register_id.
1087 * python/py-registers.c (gdbpy_parse_register_id): New function,
1088 moved here from python/py-unwind.c. Updated the return type, and
1089 also accepts register descriptor objects.
1090 * python/py-unwind.c: Remove 'user-regs.h' include.
1091 (pyuw_parse_register_id): Moved to python/py-registers.c.
1092 (unwind_infopy_add_saved_register): Update to use
1093 gdbpy_parse_register_id.
1094 (pending_framepy_read_register): Likewise.
1095 * python/python-internal.h (gdbpy_parse_register_id): Declare.
1096
1097 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1098
1099 * python/py-registers.c: Add 'user-regs.h' include.
1100 (register_descriptor_iter_find): New function.
1101 (register_descriptor_iterator_object_methods): New static global
1102 methods array.
1103 (register_descriptor_iterator_object_type): Add pointer to methods
1104 array.
1105
1106 2020-07-27 John Baldwin <jhb@FreeBSD.org>
1107
1108 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
1109 for all architectures on FreeBSD 11.3 and later.
1110
1111 2020-07-27 Tom Tromey <tromey@adacore.com>
1112
1113 * gcore.h (load_corefile): Don't declare.
1114
1115 2020-07-27 Tom de Vries <tdevries@suse.de>
1116
1117 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
1118 * config.in: Regenerate.
1119 * configure: Regenerate.
1120
1121 2020-07-26 Eli Zaretskii <eliz@gnu.org>
1122
1123 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
1124 ws2tcpip.h. When checking whether socklen_t type is defined, use
1125 ws2tcpip.h if it is available and sys/socket.h isn't.
1126 * configure: Regenerate.
1127 * config.in: Regenerate.
1128
1129 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
1130
1131 PR fortran/23051
1132 PR fortran/26139
1133 * valops.c (value_ind): Pass address to
1134 readjust_indirect_value_type.
1135 * value.c (readjust_indirect_value_type): Make parameter
1136 non-const, and add extra address parameter. Resolve original type
1137 before using it.
1138 * value.h (readjust_indirect_value_type): Update function
1139 signature and comment.
1140
1141 2020-07-25 Tom de Vries <tdevries@suse.de>
1142
1143 PR symtab/26243
1144 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
1145 entries.
1146
1147 2020-07-24 Aaron Merey <amerey@redhat.com>
1148
1149 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
1150 * configure: Rebuild.
1151
1152 2020-07-23 Kevin Buettner <kevinb@redhat.com>
1153
1154 PR corefiles/26294
1155 * corelow.c (_initialize_corelow): Add period to help text
1156 for "maintenance print core-file-backed-mappings".
1157
1158 2020-07-23 Pedro Alves <pedro@palves.net>
1159
1160 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
1161 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
1162 meanwhile.
1163 * frame.c (frame_cache_generation, get_frame_cache_generation):
1164 New.
1165 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
1166 (get_prev_frame_if_no_cycle): On exception, don't touch
1167 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
1168 * frame.h (get_frame_cache_generation): Declare.
1169
1170 2020-07-23 Tom de Vries <tdevries@suse.de>
1171
1172 PR tui/26282
1173 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
1174 New default constructor.
1175
1176 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
1177
1178 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
1179 exclude non-statement entries.
1180
1181 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1182
1183 * NEWS (New commands): Mention new command
1184 "maintenance print core-file-backed-mappings".
1185
1186 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1187
1188 * corelow.c (gdbcmd.h): Include.
1189 (core_target::info_proc_mappings): New method.
1190 (get_current_core_target): New function.
1191 (maintenance_print_core_file_backed_mappings): New function.
1192 (_initialize_corelow): Add core-file-backed-mappings to
1193 "maint print" commands.
1194
1195 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1196
1197 * linux-tdep.c (dump_note_entry_p): New function.
1198 (linux_dump_mapping_p_ftype): New typedef.
1199 (linux_find_memory_regions_full): Add new parameter,
1200 should_dump_mapping_p.
1201 (linux_find_memory_regions): Adjust call to
1202 linux_find_memory_regions_full.
1203 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
1204 call to linux_find_memory_regions_full.
1205
1206 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1207
1208 * corelow.c (solist.h, unordered_map): Include.
1209 (class core_target): Add field m_core_file_mappings and
1210 method build_file_mappings.
1211 (core_target::core_target): Call build_file_mappings.
1212 (core_target::~core_target): Free memory associated with
1213 m_core_file_mappings.
1214 (core_target::build_file_mappings): New method.
1215 (core_target::xfer_partial): Use m_core_file_mappings
1216 for memory transfers.
1217 * linux-tdep.c (linux_read_core_file_mappings): New
1218 function.
1219 (linux_core_info_proc_mappings): Rewrite to use
1220 linux_read_core_file_mappings.
1221 (linux_init_abi): Register linux_read_core_file_mappings.
1222
1223 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1224
1225 * arch-utils.c (default_read_core_file_mappings): New function.
1226 * arch-utils.c (default_read_core_file_mappings): Declare.
1227 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
1228 * gdbarch.h, gdbarch.c: Regenerate.
1229
1230 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1231
1232 PR corefiles/25631
1233 * corelow.c (core_target:xfer_partial): Revise
1234 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
1235 case after first checking the stratum beneath the core
1236 target.
1237 (has_all_memory): Return true.
1238 * target.c (raw_memory_xfer_partial): Revise comment
1239 regarding use of has_all_memory.
1240
1241 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1242
1243 * exec.h (section_table_xfer_memory): Revise declaration,
1244 replacing section name parameter with an optional callback
1245 predicate.
1246 * exec.c (section_table_xfer_memory): Likewise.
1247 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
1248 of section_table_xfer_memory.
1249
1250 2020-07-22 Tom Tromey <tromey@adacore.com>
1251
1252 * mi/mi-cmd-stack.c (list_args_or_locals): Use
1253 lookup_symbol_search_name.
1254
1255 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1256
1257 * python/py-registers.c (gdbpy_register_object_data_init): Remove
1258 redundant local variable.
1259 (gdbpy_get_register_descriptor): Extract descriptor vector as a
1260 reference, not pointer, update code accordingly.
1261
1262 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1263 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1264
1265 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
1266 * jit.c (jit_breakpoint_re_set_internal): Use the
1267 `skip_jit_symbol_lookup` field.
1268
1269 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1270 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1271
1272 * jit.c (jit_read_descriptor): Define the descriptor address once,
1273 use twice.
1274 (jit_breakpoint_deleted): Move the declaration of the loop variable
1275 `iter` into the loop header.
1276 (jit_breakpoint_re_set_internal): Move the declaration of the local
1277 variable `objf_data` to the first point of definition.
1278 (jit_event_handler): Move the declaration of local variables
1279 `code_entry`, `entry_addr`, and `objf` to their first point of use.
1280 Rename `objf` to `jited`.
1281
1282 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1283
1284 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
1285 Remove.
1286 * jit.c (get_jiter_objfile_data): Update.
1287
1288 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1289 Simon Marchi <simon.marchi@polymtl.ca>
1290
1291 * jit.c (struct jit_program_space_data): Remove.
1292 (jit_program_space_key): Remove.
1293 (jiter_objfile_data::~jiter_objfile_data): Remove program space
1294 stuff.
1295 (get_jit_program_space_data): Remove.
1296 (jit_breakpoint_deleted): Iterate on all of the program space's
1297 objfiles.
1298 (jit_inferior_init): Likewise.
1299 (jit_breakpoint_re_set_internal): Likewise. Also change return
1300 type to void.
1301 (jit_breakpoint_re_set): Pass current_program_space to
1302 jit_breakpoint_re_set_internal.
1303
1304 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1305
1306 * jit.h (struct jiter_objfile_data) <cached_code_address,
1307 jit_breakpoint>: Move to here from ...
1308 * jit.c (jit_program_space_data): ... here.
1309 (jiter_objfile_data::~jiter_objfile_data): Update.
1310 (jit_breakpoint_deleted): Update.
1311 (jit_breakpoint_re_set_internal): Update.
1312
1313 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1314
1315 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
1316 checks.
1317 (jit_read_descriptor): Remove NULL check.
1318 (jit_event_handler): Add an assertion.
1319
1320 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1321
1322 * jit.h (struct jit_objfile_data): Split into...
1323 (struct jiter_objfile_data): ... this ...
1324 (struct jited_objfile_data): ... and this.
1325 * objfiles.h (struct objfile) <jit_data>: Remove.
1326 <jiter_data, jited_data>: New fields.
1327 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
1328 (jiter_objfile_data::~jiter_objfile_data): ... this.
1329 (get_jit_objfile_data): Rename to ...
1330 (get_jiter_objfile_data): ... this.
1331 (add_objfile_entry): Update.
1332 (jit_read_descriptor): Use get_jiter_objfile_data.
1333 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
1334 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
1335 (jit_inferior_exit_hook): Use objfile's jited_data field.
1336
1337 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1338
1339 * jit.h: Forward-declare `struct minimal_symbol`.
1340 (struct jit_objfile_data): Migrate to here from jit.c; also add a
1341 constructor, destructor, and an objfile* field.
1342 * jit.c (jit_objfile_data): Remove.
1343 (struct jit_objfile_data): Migrate from here to jit.h.
1344 (jit_objfile_data::~jit_objfile_data): New destructor
1345 implementation with code moved from free_objfile_data.
1346 (free_objfile_data): Delete.
1347 (get_jit_objfile_data): Update to use the jit_data field of objfile.
1348 (jit_find_objf_with_entry_addr): Ditto.
1349 (jit_inferior_exit_hook): Ditto.
1350 (_initialize_jit): Remove the call to
1351 register_objfile_data_with_cleanup.
1352 * objfiles.h (struct objfile) <jit_data>: New field.
1353
1354 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1355
1356 * jit.h: Forward-declare `struct objfile`.
1357 (jit_event_handler): Add a second parameter, the JITer objfile.
1358 * jit.c (jit_read_descriptor): Change the signature to take the
1359 JITer objfile as an argument instead of the jit_program_space_data.
1360 (jit_inferior_init): Update the call to jit_read_descriptor.
1361 (jit_event_handler): Use the new JITer objfile argument when calling
1362 jit_read_descriptor.
1363 * breakpoint.c (handle_jit_event): Update the call to
1364 jit_event_handler to pass the JITer objfile.
1365
1366 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1367
1368 * gdbarch.c: Regenerate.
1369 * gdbarch.h: Regenerate.
1370 * gdbarch.sh (handle_segmentation_fault): Remove method.
1371 * infrun.c (handle_segmentation_fault): Remove.
1372 (print_signal_received_reason): Remove call to
1373 handle_segmentation_fault.
1374
1375 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1376
1377 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1378 Rename to sparc64_linux_report_signal_info and add siggnal
1379 argument.
1380 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
1381 instead of sparc64_linux_handle_segmentation_fault.
1382
1383 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1384
1385 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
1386 i386_linux_report_signal_info instead of
1387 i386_linux_handle_segmentation_fault.
1388 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
1389 to i386_linux_report_signal_info and add siggnal argument.
1390 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
1391 of i386_linux_handle_segmentation_fault.
1392 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
1393 to i386_linux_report_signal_info and add siggnal argument.
1394
1395 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1396
1397 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1398 hook if present.
1399
1400 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1401
1402 * gdbarch.c: Regenerate.
1403 * gdbarch.h: Regenerate.
1404 * gdbarch.sh (report_signal_info): New method.
1405 * infrun.c (print_signal_received_reason): Invoke gdbarch
1406 report_signal_info hook if present.
1407
1408 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1409
1410 * python/py-registers.c : Add 'unordered_map' include.
1411 (gdbpy_new_reggroup): Renamed to...
1412 (gdbpy_get_reggroup): ...this. Update to only create register
1413 group descriptors when needed.
1414 (gdbpy_reggroup_iter_next): Update.
1415
1416 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1417
1418 * python/py-registers.c (gdbpy_register_object_data): New static
1419 global.
1420 (gdbpy_register_object_data_init): New function.
1421 (gdbpy_new_register_descriptor): Renamed to...
1422 (gdbpy_get_register_descriptor): ...this, and update to reuse
1423 existing register descriptors where possible.
1424 (gdbpy_register_descriptor_iter_next): Update.
1425 (gdbpy_initialize_registers): Register new gdbarch data.
1426
1427 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
1428
1429 * linux-nat.c (stopped_pids): Make static.
1430
1431 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1432
1433 PR ada/26235
1434 * gdbtypes.c (ada_discrete_type_low_bound,
1435 ada_discrete_type_high_bound): Handle undefined bounds.
1436
1437 2020-07-21 Kamil Rytarowski <n54@gmx.com>
1438
1439 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1440 declaration.
1441 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1442 function.
1443
1444 2020-07-20 John Baldwin <jhb@FreeBSD.org>
1445
1446 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1447 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1448 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1449 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1450 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1451 method.
1452
1453 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1454
1455 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1456 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1457 which are deprecated in Guile 3.0.
1458 * configure.ac (try_guile_versions): Add "guile-3.0".
1459 * configure (try_guile_versions): Regenerate.
1460 * NEWS: Update entry.
1461
1462 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1463 Doug Evans <dje@google.com>
1464
1465 PR gdb/21104
1466 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1467 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1468 USING_GUILE_BEFORE_2_2.
1469 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1470 Change type to 'scm_t_port_type *'.
1471 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1472 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1473 parameter and honor it. Update callers.
1474 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1475 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1476 functions.
1477 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1478 USING_GUILE_BEFORE_2_2.
1479 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1480 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1481 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1482 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1483 and 'SCM_PORT_TYPE'.
1484 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1485 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1486 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1487 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1488 [!USING_GUILE_BEFORE_2_2]: New functions.
1489 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1490 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1491 'gdbscm_memory_port_read'.
1492 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1493 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1494 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1495 function.
1496 (ioscm_init_memory_port): Remove.
1497 (ioscm_init_memory_port_stream): New function
1498 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1499 function.
1500 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1501 Return scm_from_uint (0).
1502 (gdbscm_set_memory_port_read_buffer_size_x)
1503 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1504 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1505 Return scm_from_uint (0).
1506 (gdbscm_set_memory_port_write_buffer_size_x)
1507 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1508 * configure.ac (try_guile_versions): Add "guile-2.2".
1509 * configure: Regenerate.
1510 * NEWS: Add entry.
1511
1512 2020-07-18 Tom Tromey <tom@tromey.com>
1513
1514 * linux-nat.c (linux_multi_process): Remove.
1515 (linux_nat_target::supports_multi_process): Return true.
1516
1517 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1518
1519 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1520 (riscv_lookup_target_description): Return pointer out of
1521 unique_ptr.
1522 * target-descriptions.c (allocate_target_description): Add
1523 comment.
1524 (target_desc_deleter::operator()): Likewise.
1525 * target-descriptions.h (struct target_desc_deleter): Moved to
1526 gdbsupport/tdesc.h.
1527 (target_desc_up): Likewise.
1528
1529 2020-07-17 Tom Tromey <tromey@adacore.com>
1530
1531 * linux-nat.c (linux_nat_target::supports_non_stop)
1532 (linux_nat_target::always_non_stop_p): Use "true".
1533 (linux_nat_target::supports_disable_randomization): Use "true" and
1534 "false".
1535
1536 2020-07-16 Caroline Tice <cmtice@google.com>
1537
1538 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1539 (RNGLIST_HEADER_SIZE64): New constant definition.
1540 (struct dwop_section_names): Add rnglists_dwo.
1541 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1542 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1543 (struct dwo_sections): Add rnglists field.
1544 (read_attribut_reprocess): Add tag parameter.
1545 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1546 (cu_debug_rnglists_section): New function (decl & definition).
1547 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1548 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1549 die whose range is being checked; get rnglist section from
1550 cu_debug_rnglists_section, to get from either objfile or dwo file as
1551 appropriate. Add cases for DW_RLE_base_addressx,
1552 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1553 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1554 test inside if-condition and updating complaint message.
1555 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1556 dwarf2_rnglists_process.
1557 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1558 dwarf2_ranges_process.
1559 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1560 need_ranges_base and update comment appropriately. Also pass die tag
1561 to dwarf2_ranges_read.
1562 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1563 need_ranges_base and update comment appropriately. Also pass die tag
1564 to dwarf2_ranges_process.
1565 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1566 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1567 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1568 need_ranges_base and update comment appropriately. Also pass die tag
1569 to read_attribute_reprocess and dwarf2_ranges_read.
1570 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1571 and update function comment appropriately.
1572 (read_loclist_index): Call read_loclists_rnglists_header instead of
1573 read_loclist_header.
1574 (read_rnglist_index): New function.
1575 (read_attribute_reprocess): Add tag parameter. Add code for
1576 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1577 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1578
1579 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1580
1581 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1582 being resolved.
1583
1584 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1585
1586 * arch-utils.c (show_architecture): Update formatting of messages.
1587
1588 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1589
1590 * gdbtypes.h (struct type) <bounds>: Handle array and string
1591 types.
1592 * ada-lang.c (assign_aggregate): Use type::bounds on
1593 array/string type.
1594 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1595 * c-varobj.c (c_number_of_children): Likewise.
1596 (c_describe_child): Likewise.
1597 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1598 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1599 (f_type_print_base): Likewise.
1600 * f-valprint.c (f77_array_offset_tbl): Likewise.
1601 (f77_get_upperbound): Likewise.
1602 (f77_print_array_1): Likewise.
1603 * guile/scm-type.c (gdbscm_type_range): Likewise.
1604 * m2-typeprint.c (m2_array): Likewise.
1605 (m2_is_long_set_of_type): Likewise.
1606 * m2-valprint.c (get_long_set_bounds): Likewise.
1607 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1608 * python/py-type.c (typy_range): Likewise.
1609 * rust-lang.c (rust_internal_print_type): Likewise.
1610 * type-stack.c (type_stack::follow_types): Likewise.
1611 * valarith.c (value_subscripted_rvalue): Likewise.
1612 * valops.c (value_cast): Likewise.
1613
1614 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1615
1616 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1617 callers to use the equivalent accessor methods.
1618
1619 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1620
1621 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1622 (struct type) <bit_stride>: New method.
1623 (TYPE_BIT_STRIDE): Remove.
1624 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1625
1626 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1627
1628 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1629 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1630 callers to use the equivalent accessor methods instead.
1631
1632 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1633
1634 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1635 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1636 callers to use the equivalent accessor methods instead.
1637
1638 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1639
1640 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1641 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1642 to use dynamic_prop::kind.
1643
1644 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1645
1646 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1647 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1648 to get the bound property's kind and check against
1649 PROP_UNDEFINED.
1650
1651 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1652
1653 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1654 all callers to use type::range_bounds followed by
1655 dynamic_prop::{low,high}.
1656
1657 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1658
1659 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1660 const_val, set_const_val, baton, set_locexpr, set_loclist,
1661 set_addr_offset, variant_parts, set_variant_parts,
1662 original_type, set_original_type>: New methods.
1663 <kind>: Rename to...
1664 <m_kind>: ... this. Update all users to use the new methods
1665 instead.
1666 <data>: Rename to...
1667 <m_data>: ... this. Update all users to use the new methods
1668 instead.
1669
1670 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1671
1672 * gdbtypes.c (get_discrete_bounds): Return failure if
1673 the range type's bounds are not both defined and constant
1674 values.
1675 (get_array_bounds): Update comment. Remove undefined bound check.
1676
1677 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1678
1679 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1680 the type::bounds method directly.
1681
1682 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1683
1684 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1685 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1686 are used to set the range type's bounds to use set_bounds.
1687
1688 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1689
1690 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1691
1692 2020-07-10 Pedro Alves <pedro@palves.net>
1693
1694 * gdbthread.h (inferior_ref): Define.
1695 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1696 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1697 * thread.c
1698 (scoped_restore_current_thread::restore):
1699 Adjust to gdb::ref_ptr.
1700 (scoped_restore_current_thread::~scoped_restore_current_thread):
1701 Remove manual decref handling.
1702 (scoped_restore_current_thread::scoped_restore_current_thread):
1703 Adjust to use
1704 inferior_ref::new_reference/thread_info_ref::new_reference.
1705 Incref the thread before calling get_frame_id instead of after.
1706 Let TARGET_CLOSE_ERROR propagate.
1707
1708 2020-07-10 Pedro Alves <pedro@palves.net>
1709
1710 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1711 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1712 NOT_AVAILABLE_ERROR.
1713 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1714 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1715
1716 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1717 Pedro Alves <pedro@palves.net>
1718
1719 PR gdb/26199
1720 * infrun.c (threads_are_resumed_pending_p): Delete.
1721 (do_target_wait): Remove threads_are_executing and
1722 threads_are_resumed_pending_p checks from the inferior_matches
1723 lambda. Update comments.
1724
1725 2020-07-10 Pedro Alves <pedro@palves.net>
1726
1727 PR gdb/26199
1728 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1729 executing threads.
1730
1731 2020-07-10 Pedro Alves <pedro@palves.net>
1732
1733 PR gdb/26199
1734 * infrun.c (handle_no_resumed): Handle multiple targets.
1735
1736 2020-07-10 Pedro Alves <pedro@palves.net>
1737
1738 PR gdb/26199
1739 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1740 target_is_async_p.
1741
1742 2020-07-10 Pedro Alves <pedro@palves.net>
1743
1744 PR gdb/26199
1745 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1746 threads, not all threads.
1747
1748 2020-07-10 Pedro Alves <pedro@palves.net>
1749
1750 PR gdb/26199
1751 * remote.c (remote_target::open_1): Pass remote target pointer as
1752 data to create_async_event_handler.
1753 (remote_async_inferior_event_handler): Mark async event handler
1754 before returning if the remote target still has either pending
1755 events or unacknowledged notifications.
1756
1757 2020-07-10 John Baldwin <jhb@FreeBSD.org>
1758
1759 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1760 declaration.
1761 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1762 function.
1763
1764 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1765
1766 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1767 inferior_ptid.
1768
1769 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1770
1771 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1772 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1773 AT_FREEBSD_PS_STRINGS.
1774
1775 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
1776
1777 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1778 of debugfile path on Windows.
1779
1780 2020-07-08 John Baldwin <jhb@FreeBSD.org>
1781
1782 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1783 argument to 'data'.
1784
1785 2020-07-08 Tom Tromey <tromey@adacore.com>
1786
1787 * ada-lang.c (ada_exception_message_1): Use read_memory.
1788
1789 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1790
1791 PR python/22748
1792 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1793 special handling for inline frames.
1794 * findvar.c (value_of_register_lazy): Skip inline frames when
1795 creating lazy register values.
1796 * frame.c (frame_id_computed_p): Delete definition.
1797 * frame.h (frame_id_computed_p): Delete declaration.
1798
1799 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1800
1801 * NEWS: Mention additions to Python API.
1802 * python/py-arch.c (archpy_register_groups): New function.
1803 (arch_object_methods): Add 'register_groups' method.
1804 * python/py-registers.c (reggroup_iterator_object): New struct.
1805 (reggroup_object): New struct.
1806 (gdbpy_new_reggroup): New function.
1807 (gdbpy_reggroup_to_string): New function.
1808 (gdbpy_reggroup_name): New function.
1809 (gdbpy_reggroup_iter): New function.
1810 (gdbpy_reggroup_iter_next): New function.
1811 (gdbpy_new_reggroup_iterator): New function
1812 (gdbpy_initialize_registers): Register new types.
1813 (reggroup_iterator_object_type): Define new Python type.
1814 (gdbpy_reggroup_getset): New static global.
1815 (reggroup_object_type): Define new Python type.
1816 * python/python-internal.h
1817
1818 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1819
1820 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1821 * python/py-arch.c (archpy_registers): New function.
1822 (arch_object_methods): Add 'registers' method.
1823 * python/py-registers.c: New file.
1824 * python/python-internal.h
1825 (gdbpy_new_register_descriptor_iterator): Declare.
1826 (gdbpy_initialize_registers): Declare.
1827 * python/python.c (do_start_initialization): Call
1828 gdbpy_initialize_registers.
1829 * NEWS: Mention additions to the Python API.
1830
1831 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1832
1833 * NEWS: Mention new Python API method.
1834 * python/py-unwind.c (pending_framepy_architecture): New function.
1835 (pending_frame_object_methods): Add architecture method.
1836
1837 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1838
1839 * gdbarch.c: Regenerate.
1840 * gdbarch.h: Regenerate.
1841 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1842 (gdbarch_data): Use internal_error for the case where
1843 deprecated_set_gdbarch_data was originally needed.
1844 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1845 and use passed in obstack.
1846 (libunwind_frame_set_descr): Should no longer get back NULL from
1847 gdbarch_data.
1848 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1849 type.
1850 * user-regs.c (user_regs_init): Update parameters, and use passed
1851 in obstack.
1852 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1853 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1854
1855 2020-07-06 Tom de Vries <tdevries@suse.de>
1856
1857 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1858 End-Of-Sequence in lte_is_less_than.
1859 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1860 "gdb: Don't reorder line table entries too much when sorting".
1861
1862 2020-07-06 Tom de Vries <tdevries@suse.de>
1863
1864 PR tui/26205
1865 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1866
1867 2020-07-05 Tom de Vries <tdevries@suse.de>
1868
1869 PR build/26187
1870 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1871 std::uncaught_exceptions instead of deprecated
1872 std::uncaught_exception.
1873
1874 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1875
1876 * macroexp.h (macro_stringify): Return
1877 gdb::unique_xmalloc_ptr<char>.
1878 * macroexp.c (macro_stringify): Likewise.
1879 * macrotab.c (fixup_definition): Update.
1880
1881 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1882
1883 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1884 (lex_one_token): Update.
1885 * macroexp.c (struct macro_buffer) <release>: Return
1886 gdb::unique_xmalloc_ptr<char>.
1887 (macro_stringify): Update.
1888 (macro_expand): Update.
1889 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1890 * macroexp.h (macro_expand_next): Likewise.
1891
1892 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
1893
1894 * macroexp.h (macro_lookup_ftype): Remove.
1895 (macro_expand, macro_expand_once, macro_expand_next): Remove
1896 lookup function parameters, add scope parameter.
1897 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1898 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1899 * macroscope.h (standard_macro_lookup): Change parameter type
1900 to macro_scope.
1901 * macroscope.c (standard_macro_lookup): Likewise.
1902 * c-exp.y (lex_one_token): Update.
1903 * macrocmd.c (macro_expand_command): Likewise.
1904 (macro_expand_once_command): Likewise.
1905
1906 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1907
1908 * inf-loop.c (inferior_event_handler): Remove client_data param.
1909 * inf-loop.h (inferior_event_handler): Likewise.
1910 * infcmd.c (step_1): Adjust.
1911 * infrun.c (proceed): Adjust.
1912 (fetch_inferior_event): Remove client_data param.
1913 (infrun_async_inferior_event_handler): Adjust.
1914 * infrun.h (fetch_inferior_event): Remove `void *` param.
1915 * linux-nat.c (handle_target_event): Adjust.
1916 * record-btrace.c (record_btrace_handle_async_inferior_event):
1917 Adjust.
1918 * record-full.c (record_full_async_inferior_event_handler):
1919 Adjust.
1920 * remote.c (remote_async_inferior_event_handler): Adjust.
1921
1922 2020-07-01 Tom Tromey <tom@tromey.com>
1923
1924 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1925 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1926
1927 2020-07-01 Tom Tromey <tom@tromey.com>
1928
1929 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1930 tui_gen_win_info.
1931 (tui_win_info::make_window): Merge with
1932 tui_gen_win_info::make_window.
1933 (tui_win_info::make_visible): Move from tui_gen_win_info.
1934 * tui/tui-win.c (tui_win_info::max_width): Move from
1935 tui_gen_win_info.
1936 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1937 type.
1938 <window_factory>: Likewise.
1939 * tui/tui-layout.c (tui_win_info::resize): Move from
1940 tui_gen_win_info.
1941 (make_standard_window): Change return type.
1942 (get_locator_window, tui_get_window_by_name): Likewise.
1943 (tui_layout_window::apply): Remove a cast.
1944 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1945 (struct tui_win_info): Merge with tui_gen_win_info.
1946 (struct tui_gen_win_info): Remove.
1947
1948 2020-07-01 Tom Tromey <tom@tromey.com>
1949
1950 * tui/tui-stack.h (struct tui_locator_window): Derive from
1951 tui_win_info.
1952 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1953 <can_box>: New method.
1954
1955 2020-07-01 Tom Tromey <tom@tromey.com>
1956
1957 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1958
1959 2020-07-01 Tom Tromey <tom@tromey.com>
1960
1961 * tui/tui-regs.c (tui_data_window::display_registers_from)
1962 (tui_data_window::display_registers_from)
1963 (tui_data_window::first_data_item_displayed)
1964 (tui_data_window::delete_data_content_windows): Update.
1965 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1966 Remove.
1967 (tui_data_window::check_register_values): Update.
1968 (tui_data_item_window::rerender): Add parameters. Update.
1969 (tui_data_item_window::refresh_window): Remove.
1970 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1971 virtual.
1972 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1973 tui_gen_win_info.
1974 <refresh_window, max_height, min_height>: Remove.
1975 <rerender>: Add parameters.
1976 <x, y, visible>: New members.
1977 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1978 <m_item_width>: New member.
1979
1980 2020-07-01 Tom Tromey <tom@tromey.com>
1981
1982 * tui/tui-regs.c (tui_data_window::show_register_group)
1983 (tui_data_window::check_register_values): Update.
1984 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1985 from item_no.
1986
1987 2020-07-01 Tom Tromey <tom@tromey.com>
1988
1989 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1990 useless "if".
1991
1992 2020-07-01 Tom Tromey <tom@tromey.com>
1993
1994 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1995 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1996
1997 2020-07-01 Tom Tromey <tom@tromey.com>
1998
1999 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
2000 * tui/tui-winsource.h (enum tui_line_or_address_kind)
2001 (struct tui_line_or_address): Move from tui-data.h.
2002 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
2003 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
2004 (tui_cmd_window, tui_source_window_base, tui_source_window)
2005 (tui_disasm_window): Don't declare.
2006 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
2007 to tui-winsource.h.
2008 (SINGLE_KEY): Move to tui-stack.c.
2009
2010 2020-07-01 Tom Tromey <tom@tromey.com>
2011
2012 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
2013 std::string.
2014 * tui/tui-regs.c (class tab_expansion_file): New.
2015 (tab_expansion_file::write): New method.
2016 (tui_register_format): Change return type. Use
2017 tab_expansion_file.
2018 (tui_get_register, tui_data_window::display_registers_from)
2019 (tui_data_item_window::rerender): Update.
2020 * tui/tui-io.h (tui_expand_tabs): Don't declare.
2021 * tui/tui-io.c (tui_expand_tabs): Remove.
2022
2023 2020-07-01 Tom Tromey <tom@tromey.com>
2024
2025 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
2026
2027 2020-07-01 Fangrui Song <maskray@google.com>
2028
2029 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
2030
2031 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2032
2033 * dwarf2/read.c (set_die_type): Removed conditions to restrict
2034 forms for DW_AT_associated and DW_AT_allocated attributes,
2035 which is already checked in function attr_to_dynamic_prop.
2036
2037 2020-06-30 Tom Tromey <tromey@adacore.com>
2038
2039 * dwarf2/read.c (quirk_rust_enum): Correctly call
2040 alloc_rust_variant for default-less enum.
2041
2042 2020-06-30 Tom Tromey <tromey@adacore.com>
2043
2044 PR build/26183:
2045 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
2046 gdb::to_string.
2047
2048 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
2049
2050 * gdbarch.sh (displaced_step_copy_insn): Update doc.
2051 * gdbarch.h: Re-generate.
2052
2053 2020-06-28 Tom Tromey <tom@tromey.com>
2054
2055 * command.h (cmd_types): Remove.
2056 (cmd_type): Don't declare.
2057 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
2058 typedef.
2059 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
2060 * cli/cli-decode.c (cmd_type): Remove.
2061
2062 2020-06-27 Pedro Alves <palves@redhat.com>
2063
2064 * fork-child.c (prefork_hook): Adjust.
2065 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
2066 Delete.
2067 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
2068 * inferior.c (inferior::set_tty, inferior::tty): New methods.
2069 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
2070 Remove declarations.
2071 (struct inferior) <set_tty, tty>: New methods.
2072 (struct inferior) <terminal>: Rename to ...
2073 (struct inferior) <m_terminal>: ... this and make private.
2074 * main.c (captured_main_1): Adjust.
2075 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
2076 (mi_cmd_inferior_tty_show): Adjust.
2077 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
2078 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
2079
2080 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
2081
2082 * configure.ac: Add --enable-libctf: handle --disable-static
2083 properly.
2084 * acinclude.m4: sinclude ../config/enable.m4.
2085 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
2086 (LIBCTF): Substitute in.
2087 (CTF_DEPS): New, likewise.
2088 (CLIBS): libctf needs symbols from libbfd: move earlier.
2089 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
2090 flags.
2091 * ctfread.c: Surround in ENABLE_LIBCTF.
2092 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
2093 * configure: Regenerate.
2094 * config.in: Likewise.
2095
2096 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
2097
2098 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
2099
2100 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
2101
2102 * inferior.h (struct inferior) <terminal>: Change type to
2103 gdb::unique_xmalloc_ptr<char>.
2104 * inferior.c (inferior::~inferior): Don't free inf->terminal.
2105 * infcmd.c (set_inferior_io_terminal): Don't free terminal
2106 field, adjust to unique pointer.
2107 (get_inferior_io_terminal): Adjust to unique pointer.
2108
2109 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2110
2111 * riscv-tdep.c (riscv_print_registers_info): Loop over all
2112 registers, not just the known core set of registers.
2113
2114 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2115
2116 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
2117 fflags, frm, and fcsr registers.
2118 (riscv_register_reggroup_p): Remove unknown CSRs from save and
2119 restore groups.
2120 (riscv_tdesc_unknown_reg): New function.
2121 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
2122 tdesc_use_registers.
2123 * riscv-tdep.h (struct gdbarch_tdep): Add
2124 unknown_csrs_first_regnum, unknown_csrs_count,
2125 duplicate_fflags_regnum, duplicate_frm_regnum, and
2126 duplicate_fcsr_regnum fields.
2127
2128 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2129
2130 * target-descriptions.c (tdesc_use_registers): Add new parameter a
2131 callback, use the callback (when not null) to help number unknown
2132 registers.
2133 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
2134 (tdesc_use_registers): Add extra parameter to declaration.
2135
2136 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2137
2138 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
2139 in the file.
2140 (class riscv_pending_register_alias): Likewise.
2141 (riscv_register_feature::register_info): Change 'required_p' field
2142 to 'required', and change its type. Add 'check' member function.
2143 (riscv_register_feature::register_info::check): Define new member
2144 function.
2145 (riscv_xreg_feature): Change initialisation of 'required' field.
2146 (riscv_freg_feature): Likewise.
2147 (riscv_virtual_feature): Likewise.
2148 (riscv_csr_feature): Likewise.
2149 (riscv_check_tdesc_feature): Take extra parameter, the csr
2150 tdesc_feature, rewrite the function to use the new
2151 riscv_register_feature::register_info::check function.
2152 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
2153
2154 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2155
2156 * features/Makefile: Remove all references to the deleted files
2157 below.
2158 * features/riscv/32bit-csr.c: Deleted.
2159 * features/riscv/32bit-csr.xml: Deleted.
2160 * features/riscv/64bit-csr.c: Deleted.
2161 * features/riscv/64bit-csr.xml: Deleted.
2162 * features/riscv/rebuild-csr-xml.sh: Deleted.
2163
2164 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2165
2166 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
2167 whitespace error for declaration of names member variable.
2168 (struct riscv_register_feature): Add new prefer_first_name member
2169 variable, and fix whitespace error in declaration of registers.
2170 (riscv_xreg_feature): Initialize prefer_first_name field.
2171 (riscv_freg_feature): Likewise.
2172 (riscv_virtual_feature): Likewise.
2173 (riscv_csr_feature): Likewise.
2174 (riscv_register_name): Expand on comments. Remove register name
2175 modifications for CSR and virtual registers.
2176
2177 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2178
2179 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
2180 errors.
2181
2182 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2183
2184 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
2185 riscv-opc.h.
2186 (class riscv_pending_register_alias): New class.
2187 (riscv_check_tdesc_feature): Take vector of pending aliases and
2188 populate it as appropriate.
2189 (riscv_setup_register_aliases): Delete.
2190 (riscv_gdbarch_init): Create vector of pending aliases and pass it
2191 to riscv_check_tdesc_feature in all cases. Use the vector to
2192 create the register aliases.
2193
2194 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2195
2196 * sol2-tdep.c (sol2_static_transform_name): Remove.
2197 (sol2_init_abi): Don't register it.
2198 * gdbarch.sh (static_transform_name): Remove.
2199 * gdbarch.c, gdbarch.h: Regenerate.
2200
2201 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
2202 gdbarch_static_transform_name.
2203 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
2204 * stabsread.c (define_symbol) <'X'>: Remove.
2205 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
2206 handling.
2207 <'V'>: Likewise.
2208 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
2209 <'S'>: Remove call to gdbarch_static_transform_name.
2210
2211 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2212
2213 * procfs.c (procfs_pre_trace): New function.
2214 (procfs_target::create_inferior): Pass it to fork_inferior.
2215
2216 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2217
2218 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
2219 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
2220 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
2221 sol2-tdep.o, sparc-sol2-tdep.o.
2222 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
2223 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
2224 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
2225 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
2226
2227 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2228
2229 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
2230 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
2231 Call sol2_init_abi.
2232 Remove calls to set_gdbarch_skip_solib_resolver,
2233 set_gdbarch_core_pid_to_str.
2234 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
2235 (i386_sol2_static_transform_name): Remove.
2236 (i386_sol2_init_abi): Call sol2_init_abi.
2237 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2238 set_gdbarch_static_transform_name,
2239 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2240 Use sol2_sigtramp_p.
2241 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
2242 (sol2_sigtramp_p): New function.
2243 (sol2_static_transform_name): New function.
2244 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
2245 (sol2_init_abi): New function.
2246 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
2247 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
2248 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
2249 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
2250 (sparc_sol2_static_transform_name): Remove.
2251 (sparc32_sol2_init_abi): Call sol2_init_abi.
2252 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2253 set_gdbarch_static_transform_name,
2254 set_gdbarch_skip_solib_resolver,
2255 set_gdbarch_core_pid_to_str.
2256 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
2257 (sparc_sol2_static_transform_name): Remove
2258 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
2259 call sol2_sigtramp_p.
2260 (sparc64_sol2_init_abi): Call sol2_init_abi.
2261 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2262 set_gdbarch_static_transform_name,
2263 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2264
2265 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2266
2267 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
2268 * exec.c (validate_exec_file): If from_tty, set both
2269 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
2270 * symfile.c (symbol_file_add_with_addrs): if always_confirm
2271 and from_tty, unconditionally ask a confirmation.
2272
2273 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2274
2275 * target-descriptions.c (tdesc_architecture_name): Protect against
2276 NULL pointer dereference.
2277 (maint_print_xml_tdesc_cmd): New function.
2278 (_initialize_target_descriptions): Register new 'maint print
2279 xml-tdesc' command and give it the filename completer.
2280 * NEWS: Mention new 'maint print xml-tdesc' command.
2281
2282 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2283
2284 * target-descriptions.c (class tdesc_compatible_info): New class.
2285 (struct target_desc): Change type of compatible vector.
2286 (tdesc_compatible_p): Update for change in type of
2287 target_desc::compatible.
2288 (tdesc_compatible_info_list): New function.
2289 (tdesc_compatible_info_arch_name): New function.
2290 (tdesc_add_compatible): Update for change in type of
2291 target_desc::compatible.
2292 (print_c_tdesc::visit_pre): Likewise.
2293
2294 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2295
2296 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
2297 whitespace to underscore.
2298 (maint_print_c_tdesc_cmd): Use fake filename for target
2299 descriptions that came from the target.
2300 (_initialize_target_descriptions): Add filename command completion
2301 for 'maint print c-tdesc'.
2302
2303 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2304
2305 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
2306 lines.
2307
2308 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2309
2310 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
2311 lines.
2312 (dwarf2_find_location_expression): Likewise.
2313 (call_site_parameter_matches): Likewise.
2314 (dwarf2_compile_expr_to_ax): Likewise.
2315 (disassemble_dwarf_expression): Likewise.
2316 (loclist_describe_location): Likewise.
2317
2318 2020-06-23 Pedro Alves <palves@redhat.com>
2319
2320 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
2321 progspace-and-thread.h. Include scoped-mock-context.h instead.
2322 (register_to_value_test): Use scoped_mock_context.
2323 * regcache.c: Include "scoped-mock-context.h".
2324 (cooked_read_test): Don't error out if a target is already pushed.
2325 Use scoped_mock_context. Adjust.
2326 * scoped-mock-context.h: New file.
2327
2328 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2329
2330 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
2331 initializer.
2332 (ada_language::is_string_type_p): New member function.
2333 * c-lang.c (c_language_data): Delete la_is_string_type_p
2334 initializer.
2335 (cplus_language_data): Likewise.
2336 (asm_language_data): Likewise.
2337 (minimal_language_data): Likewise.
2338 * d-lang.c (d_language_data): Likewise.
2339 * f-lang.c (f_is_string_type_p): Delete function, implementation
2340 moved to f_language::is_string_type_p.
2341 (f_language_data): Delete la_is_string_type_p initializer.
2342 (f_language::is_string_type_p): New member function,
2343 implementation from f_is_string_type_p.
2344 * go-lang.c (go_is_string_type_p): Delete function, implementation
2345 moved to go_language::is_string_type_p.
2346 (go_language_data): Delete la_is_string_type_p initializer.
2347 (go_language::is_string_type_p): New member function,
2348 implementation from go_is_string_type_p.
2349 * language.c (language_defn::is_string_type_p): Define new member
2350 function.
2351 (default_is_string_type_p): Make static, add comment copied from
2352 header file.
2353 (unknown_language_data): Delete la_is_string_type_p initializer.
2354 (unknown_language::is_string_type_p): New member function.
2355 (auto_language_data): Delete la_is_string_type_p initializer.
2356 (auto_language::is_string_type_p): New member function.
2357 * language.h (language_data): Delete la_is_string_type_p field.
2358 (language_defn::is_string_type_p): Declare new function.
2359 (default_is_string_type_p): Delete desclaration, move comment to
2360 definition.
2361 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
2362 moved to m2_language::is_string_type_p.
2363 (m2_language_data): Delete la_is_string_type_p initializer.
2364 (m2_language::is_string_type_p): New member function,
2365 implementation from m2_is_string_type_p.
2366 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
2367 initializer.
2368 * opencl-lang.c (opencl_language_data): Likewise.
2369 * p-lang.c (pascal_is_string_type_p): Delete function,
2370 implementation moved to pascal_language::is_string_type_p.
2371 (pascal_language_data): Delete la_is_string_type_p initializer.
2372 (pascal_language::is_string_type_p): New member function,
2373 implementation from pascal_is_string_type_p.
2374 * rust-lang.c (rust_is_string_type_p): Delete function,
2375 implementation moved to rust_language::is_string_type_p.
2376 (rust_language_data): Delete la_is_string_type_p initializer.
2377 (rust_language::is_string_type_p): New member function,
2378 implementation from rust_is_string_type_p.
2379 * valprint.c (val_print_scalar_or_string_type_p): Update call to
2380 is_string_type_p.
2381
2382 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2383
2384 * ada-lang.c (ada_language_data): Delete la_print_typedef
2385 initializer.
2386 (ada_language::print_typedef): New member function.
2387 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
2388 (cplus_language_data): Likewise.
2389 (asm_language_data): Likewise.
2390 (minimal_language_data): Likewise.
2391 * d-lang.c (d_language_data): Likewise.
2392 * f-lang.c (f_language_data): Likewise.
2393 (f_language::print_typedef): New member function.
2394 * go-lang.c (go_language_data): Delete la_print_typedef
2395 initializer.
2396 * language.c (language_defn::print_typedef): Define member
2397 function.
2398 (unknown_language_data): Delete la_print_typedef initializer.
2399 (unknown_language::print_typedef): New member function.
2400 (auto_language_data): Delete la_print_typedef initializer.
2401 (auto_language::print_typedef): New member function.
2402 * language.h (language_data): Delete la_print_typedef field.
2403 (language_defn::print_typedef): Declare new member function.
2404 (LA_PRINT_TYPEDEF): Update call to print_typedef.
2405 (default_print_typedef): Delete declaration.
2406 * m2-lang.c (m2_language_data): Delete la_print_typedef
2407 initializer.
2408 (m2_language::print_typedef): New member function.
2409 * objc-lang.c (objc_language_data): Delete la_print_typedef
2410 initializer.
2411 * opencl-lang.c (opencl_language_data): Likewise.
2412 * p-lang.c (pascal_language_data): Likewise.
2413 (pascal_language::print_typedef): New member function.
2414 * rust-lang.c (rust_print_typedef): Delete function,
2415 implementation moved to rust_language::print_typedef.
2416 (rust_language): Delete la_print_typedef initializer.
2417 (rust_language::print_typedef): New member function,
2418 implementation from rust_print_typedef.
2419 * typeprint.c (default_print_typedef): Delete.
2420
2421 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2422
2423 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2424 (ada_language::printstr): New member function.
2425 * c-lang.c (c_language_data): Delete la_printstr initializer.
2426 (cplus_language_data): Likewise.
2427 (asm_language_data): Likewise.
2428 (minimal_language_data): Likewise.
2429 * d-lang.c (d_language_data): Likewise.
2430 * f-lang.c (f_printstr): Rename to f_language::printstr.
2431 (f_language_data): Delete la_printstr initializer.
2432 (f_language::printstr): New member function, implementation from
2433 f_printstr.
2434 * go-lang.c (go_language_data): Delete la_printstr initializer.
2435 * language.c (language_defn::printstr): Define new member
2436 function.
2437 (unk_lang_printstr): Delete.
2438 (unknown_language_data): Delete la_printstr initializer.
2439 (unknown_language::printstr): New member function.
2440 (auto_language_data): Delete la_printstr initializer.
2441 (auto_language::printstr): New member function.
2442 * language.h (language_data): Delete la_printstr field.
2443 (language_defn::printstr): Declare new member function.
2444 (LA_PRINT_STRING): Update call to printstr.
2445 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2446 (m2_language_data): Delete la_printstr initializer.
2447 (m2_language::printstr): New member function, implementation from
2448 m2_printstr.
2449 * objc-lang.c (objc_language_data): Delete la_printstr
2450 initializer.
2451 * opencl-lang.c (opencl_language_data): Likewise.
2452 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2453 (pascal_language_data): Delete la_printstr initializer.
2454 (pascal_language::printstr): New member function, implementation
2455 from pascal_printstr.
2456 * p-lang.h (pascal_printstr): Delete declaration.
2457 * rust-lang.c (rust_printstr): Update header comment.
2458 (rust_language_data): Delete la_printstr initializer.
2459 (rust_language::printstr): New member function.
2460
2461 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2462
2463 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2464 (ada_language::printchar): New member function.
2465 * c-lang.c (c_language_data): Delete la_printchar initializer.
2466 (cplus_language_data): Likewise.
2467 (asm_language_data): Likewise.
2468 (minimal_language_data): Likewise.
2469 * d-lang.c (d_language_data): Likewise.
2470 * f-lang.c (f_printchar): Rename to f_language::printchar.
2471 (f_language_data): Delete la_printchar initializer.
2472 (f_language::printchar): New member function, implementation from
2473 f_printchar.
2474 * go-lang.c (go_language_data): Delete la_printchar initializer.
2475 * language.c (unk_lang_printchar): Delete.
2476 (language_defn::printchar): Define new member function.
2477 (unknown_language_data): Delete la_printchar initializer.
2478 (unknown_language::printchar): New member function.
2479 (auto_language_data): Delete la_printchar initializer.
2480 (auto_language::printchar): New member function.
2481 * language.h (language_data): Delete la_printchar field.
2482 (language_defn::printchar): Declare new member function.
2483 (LA_PRINT_CHAR): Update call to printchar.
2484 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2485 (m2_language::printchar): New member function.
2486 * objc-lang.c (objc_language_data): Delete la_printchar
2487 initializer.
2488 * opencl-lang.c (opencl_language_data): Likewise.
2489 * p-lang.c (pascal_language_data): Delete la_printchar
2490 initializer.
2491 (pascal_language::printchar): New member function.
2492 * rust-lang.c (rust_printchar): Rename to
2493 rust_language::printchar.
2494 (rust_language_data): Delete la_printchar initializer.
2495 (rust_language::printchar): New member function, implementation
2496 from rust_printchar.
2497
2498 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2499
2500 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2501 (ada_language_data): Delete la_emitchar initializer.
2502 (ada_language::emitchar): New member function, implementation from
2503 emit_char.
2504 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2505 (cplus_language_data): Likewise.
2506 (asm_language_data): Likewise.
2507 (minimal_language_data): Likewise.
2508 * d-lang.c (d_language_data): Likewise.
2509 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2510 (f_language_data): Delete la_emitchar initializer.
2511 (f_language::emitchar): New member function, implementation from
2512 f_emit_char.
2513 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2514 * language.c (unk_lang_emit_char): Delete.
2515 (language_defn::emitchar): New member function definition.
2516 (unknown_language_data): Delete la_emitchar initializer.
2517 (unknown_language::emitchar): New member function.
2518 (auto_language_data): Delete la_emitchar initializer.
2519 (auto_language::emitchar): New member function.
2520 * language.h (language_data): Delete la_emitchar field.
2521 (language_defn::emitchar): New member field declaration.
2522 (LA_EMIT_CHAR): Update call to emitchar.
2523 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2524 (m2_language_data): Delete la_emitchar initializer.
2525 (m2_language::emitchar): New member function, implementation from
2526 m2_emit_char.
2527 * objc-lang.c (objc_language_data): Delete la_emitchar
2528 initializer.
2529 * opencl-lang.c (opencl_language_data): Likewise.
2530 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2531 (pascal_language_data): Delete la_emitchar initializer.
2532 (pascal_language::emitchar): New member function, implementation
2533 from pascal_emit_char.
2534 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2535 (rust_language_data): Delete la_emitchar initializer.
2536 (rust_language::emitchar): New member function, implementation
2537 from rust_emitchar.
2538
2539 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2540
2541 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2542 (ada_language_data): Delete la_post_parser initializer.
2543 (ada_language::post_parser): New member function.
2544 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2545 (cplus_language_data): Likewise.
2546 (asm_language_data): Likewise.
2547 (minimal_language_data): Likewise.
2548 * d-lang.c (d_language_data): Likewise.
2549 * f-lang.c (f_language_data): Likewise.
2550 * go-lang.c (go_language_data): Likewise.
2551 * language.c (unknown_language_data): Likewise.
2552 (auto_language_data): Likewise.
2553 * language.h (language_data): Delete la_post_parser field.
2554 (language_defn::post_parser): New member function.
2555 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2556 * objc-lang.c (objc_language_data): Likewise.
2557 * opencl-lang.c (opencl_language_data): Likewise.
2558 * p-lang.c (pascal_language_data): Likewise.
2559 * parse.c (parse_exp_in_context): Update call to post_parser.
2560 (null_post_parser): Delete definition.
2561 * parser-defs.h (null_post_parser): Delete declaration.
2562 * rust-lang.c (rust_language_data): Delete la_post_parser
2563 initializer.
2564
2565 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2566
2567 * ada-lang.c (parse): Rename to ada_language::parser.
2568 (ada_language_data): Delete la_parser initializer.
2569 (ada_language::parser): New member function, implementation from
2570 parse.
2571 * c-lang.c (c_language_data): Delete la_parser initializer.
2572 (cplus_language_data): Likewise.
2573 (asm_language_data): Likewise.
2574 (minimal_language_data): Likewise.
2575 * d-lang.c (d_language_data): Likewise.
2576 (d_language::parser): New member function.
2577 * f-lang.c (f_language_data): Delete la_parser initializer.
2578 (f_language::parser): New member function.
2579 * go-lang.c (go_language_data): Delete la_parser initializer.
2580 (go_language::parser): New member function.
2581 * language.c (unk_lang_parser): Delete.
2582 (language_defn::parser): Define new member function.
2583 (unknown_language_data): Delete la_parser initializer.
2584 (unknown_language::parser): New member function.
2585 (auto_language_data): Delete la_parser initializer.
2586 (auto_language::parser): New member function.
2587 * language.h (language_data): Delete la_parser field.
2588 (language_defn::parser): Declare new member function.
2589 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2590 (m2_language::parser): New member function.
2591 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2592 * opencl-lang.c (opencl_language_data): Likewise.
2593 * p-lang.c (pascal_language_data): Likewise.
2594 (pascal_language::parser): New member function.
2595 * parse.c (parse_exp_in_context): Update call to parser.
2596 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2597 (rust_language::parser): New member function.
2598
2599 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2600
2601 * top.c (print_gdb_configuration): Print --with-python-libdir
2602 configuration value.
2603
2604 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2605
2606 * NEWS: Mention change to the alias command.
2607
2608 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2609
2610 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2611 (alias_command_completer)
2612 (make_alias_options_def_group): New functions.
2613 (alias_opts, alias_option_defs): New struct and array.
2614 (alias_usage_error): Update usage.
2615 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2616 Use option framework.
2617 (_initialize_cli_cmds): Update alias command help.
2618 Update aliases command help.
2619 (show_user):
2620 Add NULL for new default_args lookup_cmd argument.
2621 (valid_command_p): Rename to validate_aliased_command.
2622 Add NULL for new default_args lookup_cmd argument. Verify that the
2623 aliased_command has no default args.
2624 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2625 (lookup_cmd_1, lookup_cmd): New argument default_args.
2626 (add_alias_cmd):
2627 Add NULL for new default_args lookup_cmd argument.
2628 (print_help_for_command): Show default args under the layout
2629 alias some_alias = some_aliased_cmd some_alias_default_arg.
2630 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2631 xfree default_args in destructor.
2632 * cli/cli-script.c (process_next_line, do_define_command):
2633 Add NULL for new default_args lookup_cmd argument.
2634 * command.h: Declare new default_args argument in lookup_cmd
2635 and lookup_cmd_1.
2636 * completer.c (complete_line_internal_1):
2637 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2638 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2639 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2640 Likewise.
2641 * infcmd.c (_initialize_infcmd): Likewise.
2642 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2643 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2644 * python/py-param.c (add_setshow_generic): Likewise.
2645 * remote.c (_initialize_remote): Likewise.
2646 * top.c (execute_command): Prepend default_args if command has some.
2647 (set_verbose):
2648 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2649 * tracepoint.c (validate_actionline, encode_actions_1):
2650 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2651
2652 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2653
2654 * jit.c (jit_read_descriptor): Use bool as the return type.
2655 (jit_breakpoint_re_set_internal): Use bool as the return type.
2656 Invert the return value logic; return true if the jit breakpoint
2657 has been successfully initialized.
2658 (jit_inferior_init): Update the call to
2659 jit_breakpoint_re_set_internal.
2660
2661 2020-06-22 Pedro Alves <palves@redhat.com>
2662
2663 PR gdb/25939
2664 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2665 Use the current inferior instead. Don't return
2666 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2667 wait again.
2668 * sol-thread.c (sol_thread_target::wait): Don't reference
2669 inferior_ptid.
2670 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2671 (sol_update_thread_list_callback): Use the current inferior's pid
2672 instead of inferior_ptid.
2673
2674 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2675
2676 * procfs.c: Cleanup many comments.
2677
2678 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2679 (AFTER_WATCHFLAG): Replace by value.
2680
2681 (MAIN_PROC_NAME_FORMAT): Inline ...
2682 (create_procinfo): ... here.
2683
2684 (procfs_debug_inferior): Remove SYS_exec handling.
2685 (syscall_is_exec): Likewise.
2686 (procfs_set_exec_trap): Likewise.
2687
2688 (syscall_is_lwp_exit): Inline in callers.
2689 (syscall_is_exit): Likewise.
2690 (syscall_is_exec): Likewise.
2691 (syscall_is_lwp_create): Likewise.
2692
2693 (invalidate_cache): Remove #if 0 code.
2694
2695 (make_signal_thread_runnable): Remove.
2696 (procfs_target::resume): Remove #if 0 code.
2697
2698 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2699
2700 PR gdb/25939
2701 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2702 call ...
2703 (procfs_target::create_inferior): ... here.
2704
2705 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2706
2707 * exec.c (validate_exec_file): Ensure the build-id is up to
2708 date by calling reopen_exec_file (that checks file timestamp
2709 to decide to re-read the file).
2710
2711 2020-06-18 Pedro Alves <palves@redhat.com>
2712
2713 PR gdb/25412
2714 * gdbthread.h (delete_thread, delete_thread_silent)
2715 (find_thread_ptid): Update comments.
2716 * thread.c (current_thread_): New global.
2717 (is_current_thread): Move higher, and reimplement.
2718 (inferior_thread): Reimplement.
2719 (set_thread_exited): Use bool. Add assertions.
2720 (add_thread_silent): Simplify thread-reuse handling by always
2721 calling delete_thread.
2722 (delete_thread): Remove intro comment.
2723 (find_thread_ptid): Skip exited threads.
2724 (switch_to_thread_no_regs): Write to current_thread_.
2725 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2726 INFERIOR_PTID. Clear current_thread_.
2727
2728 2020-06-18 Pedro Alves <palves@redhat.com>
2729
2730 * aix-thread.c (pd_update): Use switch_to_thread.
2731
2732 2020-06-18 Pedro Alves <palves@redhat.com>
2733
2734 * ravenscar-thread.c (ravenscar_thread_target): Update.
2735 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2736 (ravenscar_thread_target::add_active_thread): ... this. Don't
2737 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2738 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2739
2740 2020-06-18 Pedro Alves <palves@redhat.com>
2741
2742 * nat/windows-nat.c (current_windows_thread): Remove.
2743 * nat/windows-nat.h (current_windows_thread): Remove.
2744 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2745 Adjust.
2746 (display_selectors): Adjust to fetch the current
2747 windows_thread_info based on inferior_ptid.
2748 (fake_create_process): No longer write to current_windows_thread.
2749 (windows_nat_target::get_windows_debug_event):
2750 Don't set inferior_ptid or current_windows_thread.
2751 (windows_nat_target::wait): Adjust to not rely on
2752 current_windows_thread.
2753 (do_initial_windows_stuff): Now a method of windows_nat_target.
2754 Switch to the last_ptid thread.
2755 (windows_nat_target::attach): Adjust.
2756 (windows_nat_target::detach): Use switch_to_no_thread instead of
2757 writing to inferior_ptid directly.
2758 (windows_nat_target::create_inferior): Adjust.
2759
2760 2020-06-18 Pedro Alves <palves@redhat.com>
2761
2762 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2763
2764 2020-06-18 Pedro Alves <palves@redhat.com>
2765
2766 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2767 after creating it, instead of writing to inferior_ptid. Don't
2768 write to inferior_ptid.
2769
2770 2020-06-18 Pedro Alves <palves@redhat.com>
2771
2772 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2773
2774 2020-06-18 Pedro Alves <palves@redhat.com>
2775
2776 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2777 it, instead of writing to inferior_ptid.
2778
2779 2020-06-18 Pedro Alves <palves@redhat.com>
2780
2781 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2782 to inferior_ptid.
2783
2784 2020-06-18 Pedro Alves <palves@redhat.com>
2785
2786 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2787 instead of writing to inferior_ptid directly.
2788
2789 2020-06-18 Pedro Alves <palves@redhat.com>
2790
2791 * corelow.c (core_target::close): Use switch_to_no_thread instead
2792 of writing to inferior_ptid directly.
2793 (add_to_thread_list, core_target_open): Use switch_to_thread
2794 instead of writing to inferior_ptid directly.
2795
2796 2020-06-18 Pedro Alves <palves@redhat.com>
2797
2798 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2799 inferior_ptid.
2800 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2801 inferior_ptid.
2802 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2803 inferior_ptid directly.
2804 (darwin_nat_target::init_thread_list): Switch to thread, instead
2805 of writing to inferior_ptid.
2806 (darwin_nat_target::attach): Don't write to inferior_ptid.
2807 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2808
2809 2020-06-18 Pedro Alves <palves@redhat.com>
2810
2811 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2812 thread.
2813 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2814 Instead use switch_to_thread.
2815 (gnu_nat_target::detach): Use switch_to_no_thread
2816 instead of writing to inferior_ptid directly. Used passed-in
2817 inferior instead of looking up the inferior by pid.
2818
2819 2020-06-18 Pedro Alves <palves@redhat.com>
2820
2821 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2822 inferior_ptid.
2823
2824 2020-06-18 Pedro Alves <palves@redhat.com>
2825
2826 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2827 inferior_ptid.
2828 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2829 thread.
2830 (nto_procfs_target::detach): Avoid referencing
2831 inferior_ptid. Use switch_to_no_thread instead of writing to
2832 inferior_ptid directly.
2833 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2834 instead of writing to inferior_ptid directly.
2835 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2836 to thread.
2837
2838 2020-06-18 Pedro Alves <palves@redhat.com>
2839
2840 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2841 after creating it, instead of writing to inferior_ptid.
2842 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2843 to inferior_ptid directly.
2844 (gdbsim_target::wait): Don't write to inferior_ptid.
2845
2846 2020-06-18 Pedro Alves <palves@redhat.com>
2847
2848 * remote.c (remote_target::remote_notice_new_inferior): Use
2849 switch_to_thread instead of writing to inferior_ptid directly.
2850 (remote_target::add_current_inferior_and_thread): Use
2851 switch_to_no_thread instead of writing to inferior_ptid directly.
2852 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2853 and switch_to_thread instead of using set_current_inferior or
2854 writing to inferior_ptid directly.
2855
2856 2020-06-18 Pedro Alves <palves@redhat.com>
2857
2858 * tracectf.c (ctf_target_open): Switch to added thread instead of
2859 writing to inferior_ptid directly.
2860 (ctf_target::close): Use switch_to_no_thread instead of writing to
2861 inferior_ptid directly.
2862
2863 2020-06-18 Pedro Alves <palves@redhat.com>
2864
2865 * tracefile-tfile.c (tfile_target_open): Don't write to
2866 inferior_ptid directly, instead switch to added thread.
2867 (tfile_target::close): Use switch_to_no_thread instead of writing
2868 to inferior_ptid directly.
2869
2870 2020-06-18 Pedro Alves <palves@redhat.com>
2871
2872 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2873 (procfs_target::detach): Use switch_to_no_thread
2874 instead of writing to inferior_ptid directly.
2875 (do_attach): Change return type to void. Switch to the added
2876 thread.
2877 (procfs_target::create_inferior): Switch to the added thread.
2878 (procfs_do_thread_registers): Don't write to inferior_ptid.
2879
2880 2020-06-18 Pedro Alves <palves@redhat.com>
2881
2882 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2883 of writing to inferior_ptid.
2884 (scoped_restore_exited_inferior): Delete.
2885 (handle_vfork_child_exec_or_exit): Simplify using
2886 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2887 instead of writing to inferior_ptid.
2888 (THREAD_STOPPED_BY): Delete.
2889 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2890 (thread_stopped_by_hw_breakpoint): Delete.
2891 (save_waitstatus): Use
2892 scoped_restore_current_thread+switch_to_thread, and call
2893 target_stopped_by_watchpoint instead of
2894 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2895 instead of thread_stopped_by_sw_breakpoint, and
2896 target_stopped_by_hw_breakpoint instead of
2897 thread_stopped_by_hw_breakpoint.
2898 (handle_inferior_event)
2899 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2900 inferior_ptid directly, nor
2901 set_current_inferior/set_current_program_space. Use
2902 switch_to_thread / switch_to_inferior_no_thread instead.
2903
2904 2020-06-18 Pedro Alves <palves@redhat.com>
2905
2906 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2907 instead of writing to inferior_ptid.
2908
2909 2020-06-18 Pedro Alves <palves@redhat.com>
2910
2911 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2912 added thread.
2913 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2914 to the added thread.
2915 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2916 instead of writing to inferior_ptid.
2917
2918 2020-06-18 Pedro Alves <palves@redhat.com>
2919
2920 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2921 (register_to_value_test): Mock a program_space too. Heap-allocate
2922 the address space. Don't write to inferior_ptid. Use
2923 switch_to_thread instead.
2924
2925 2020-06-18 Pedro Alves <palves@redhat.com>
2926
2927 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2928 Delete.
2929 (find_signalled_thread()): New, factored out from
2930 linux_make_corefile_notes and adjusted to handle exited threads.
2931 (linux_make_corefile_notes): Adjust to use the new
2932 find_signalled_thread.
2933
2934 2020-06-18 Pedro Alves <palves@redhat.com>
2935
2936 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2937 of saving/restoring inferior_ptid.
2938
2939 2020-06-17 Tom Tromey <tom@tromey.com>
2940
2941 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2942 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2943 declare.
2944 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2945
2946 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
2947
2948 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2949 of partial symtabs.
2950
2951 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2952
2953 * regformats/reg-arm.dat: Remove.
2954 * regformats/reg-bfin.dat: Remove.
2955 * regformats/reg-cris.dat: Remove.
2956 * regformats/reg-crisv32.dat: Remove.
2957 * regformats/reg-m32r.dat: Remove.
2958 * regformats/reg-tilegx.dat: Remove.
2959 * regformats/reg-tilegx32.dat: Remove.
2960
2961 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2962
2963 * features/Makefile (WHICH): Remove arm files.
2964 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2965 * regformats/arm/arm-with-neon.dat: Remove.
2966 * regformats/arm/arm-with-vfpv2.dat: Remove.
2967 * regformats/arm/arm-with-vfpv3.dat: Remove.
2968
2969 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2970
2971 * features/Makefile (XMLTOC): Remove rx.xml.
2972
2973 2020-06-17 Pedro Alves <palves@redhat.com>
2974
2975 * gdbthread.h (thread_control_state) <trap_expected> Update
2976 comments.
2977
2978 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2979
2980 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2981 ada_language::lookup_symbol_nonlocal.
2982 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2983 (ada_language::lookup_symbol_nonlocal): New member function,
2984 implementation from ada_lookup_symbol_nonlocal.
2985 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2986 initializer.
2987 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2988 initializer.
2989 (cplus_language::lookup_symbol_nonlocal): New member function.
2990 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2991 (minimal_language_data) Likewise.
2992 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2993 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2994 initializer.
2995 (d_language::lookup_symbol_nonlocal): New member function.
2996 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2997 initializer.
2998 (f_language::lookup_symbol_nonlocal): New member function.
2999 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
3000 initializer.
3001 * language.c (unknown_language_data): Likewise.
3002 (auto_language_data): Likewise.
3003 * language.h (language_data): Delete la_lookup_symbol_nonlocal
3004 field.
3005 (language_defn::lookup_symbol_nonlocal): New member function.
3006 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
3007 initializer.
3008 * objc-lang.c (objc_language_data): Likewise.
3009 * opencl-lang.c (opencl_language_data): Likewise.
3010 * p-lang.c (pascal_language_data): Likewise.
3011 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
3012 rust_language::lookup_symbol_nonlocal.
3013 (rust_language_data): Delete la_lookup_symbol_nonlocal
3014 initializer.
3015 (rust_language::lookup_symbol_nonlocal): New member function,
3016 implementation from rust_lookup_symbol_nonlocal.
3017 * symtab.c (lookup_symbol_aux): Update call to
3018 lookup_symbol_nonlocal.
3019 (basic_lookup_symbol_nonlocal): Rename to...
3020 (language_defn::lookup_symbol_nonlocal): ...this, and update
3021 header comment. Remove language_defn parameter, and replace with
3022 uses of `this'.
3023 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
3024
3025 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3026
3027 * ada-lang.c (ada_language_data): Delete la_value_print_inner
3028 initializer.
3029 (ada_language::value_print_inner): New member function.
3030 * c-lang.c (c_language_data): Delete la_value_print_inner
3031 initializer.
3032 (cplus_language_data): Likewise.
3033 (asm_language_data): Likewise.
3034 (minimal_language_data): Likewise.
3035 * d-lang.c (d_language_data): Likewise.
3036 (d_language::value_print_inner): New member function.
3037 * f-lang.c (f_language_data): Delete la_value_print_inner
3038 initializer.
3039 (f_language::value_print_inner): New member function.
3040 * f-lang.h (f_value_print_innner): Rename to...
3041 (f_value_print_inner): ...this (note spelling of 'inner').
3042 * f-valprint.c (f_value_print_innner): Rename to...
3043 (f_value_print_inner): ...this (note spelling of 'inner').
3044 * go-lang.c (go_language_data): Delete la_value_print_inner
3045 initializer.
3046 (go_language::value_print_inner): New member function.
3047 * language.c (language_defn::value_print_inner): Define new member
3048 function.
3049 (unk_lang_value_print_inner): Delete.
3050 (unknown_language_data): Delete la_value_print_inner initializer.
3051 (unknown_language::value_print_inner): New member function.
3052 (auto_language_data): Delete la_value_print_inner initializer.
3053 (auto_language::value_print_inner): New member function.
3054 * language.h (language_data): Delete la_value_print_inner field.
3055 (language_defn::value_print_inner): Delcare new member function.
3056 * m2-lang.c (m2_language_data): Delete la_value_print_inner
3057 initializer.
3058 (m2_language::value_print_inner): New member function.
3059 * objc-lang.c (objc_language_data): Delete la_value_print_inner
3060 initializer.
3061 * opencl-lang.c (opencl_language_data): Likewise.
3062 * p-lang.c (pascal_language_data): Likewise.
3063 (pascal_language::value_print_inner): New member function.
3064 * rust-lang.c (rust_language_data): Delete la_value_print_inner
3065 initializer.
3066 (rust_language::value_print_inner): New member function.
3067 * valprint.c (do_val_print): Update call to value_print_inner.
3068
3069 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3070
3071 * ada-lang.c (ada_language_data): Delete la_value_print
3072 initializer.
3073 (ada_language::value_print): New member function.
3074 * c-lang.c (c_language_data): Delete la_value_print initializer.
3075 (cplus_language_data): Likewise.
3076 (asm_language_data): Likewise.
3077 (minimal_language_data): Likewise.
3078 * d-lang.c (d_language_data): Likewise.
3079 * f-lang.c (f_language_data): Likewise.
3080 * go-lang.c (go_language_data): Likewise.
3081 * language.c (unk_lang_value_print): Delete.
3082 (language_defn::value_print): Define new member function.
3083 (unknown_language_data): Delete la_value_print initializer.
3084 (unknown_language::value_print): New member function.
3085 (auto_language_data): Delete la_value_print initializer.
3086 (auto_language::value_print): New member function.
3087 * language.h (language_data): Delete la_value_print field.
3088 (language_defn::value_print): Declare new member function.
3089 (LA_VALUE_PRINT): Update call to value_print.
3090 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
3091 * objc-lang.c (objc_language_data): Likewise.
3092 * opencl-lang.c (opencl_language_data): Likewise.
3093 * p-lang.c (pascal_language_data): Likewise.
3094 (pascal_language::value_print): New member function.
3095 * rust-lang.c (rust_language_data): Delete la_value_print
3096 initializer.
3097
3098 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3099
3100 * ada-lang.c (ada_watch_location_expression): Rename to
3101 ada_language::watch_location_expression.
3102 (ada_language_data): Delete la_watch_location_expression
3103 initializer.
3104 (ada_language::watch_location_expression): New member function,
3105 implementation from ada_watch_location_expression.
3106 * breakpoint.c (watch_command_1): Update call to
3107 watch_location_expression.
3108 * c-lang.c (c_watch_location_expression): Rename to
3109 language_defn::watch_location_expression.
3110 (c_language_data): Delete la_watch_location_expression
3111 initializer.
3112 (cplus_language_data): Likewise.
3113 (asm_language_data): Likewise.
3114 (minimal_language_data): Likewise.
3115 * c-lang.h (c_watch_location_expression): Delete declaration.
3116 * d-lang.c (d_language_data): Delete la_watch_location_expression
3117 initializer.
3118 * f-lang.c (f_language_data): Likewise.
3119 * go-lang.c (go_language_data): Likewise.
3120 * language.c (language_defn::watch_location_expression): Member
3121 function implementation from c_watch_location_expression.
3122 (unknown_language_data): Delete la_watch_location_expression
3123 initializer.
3124 (auto_language_data): Likewise.
3125 * language.h (language_data): Delete la_watch_location_expression
3126 field.
3127 (language_defn::watch_location_expression): Declare new member
3128 function.
3129 * m2-lang.c (m2_language_data): Delete
3130 la_watch_location_expression initializer.
3131 * objc-lang.c (objc_language_data): Likewise.
3132 * opencl-lang.c (opencl_language_data): Likewise.
3133 * p-lang.c (pascal_language_data): Likewise.
3134 * rust-lang.c (rust_watch_location_expression): Rename to
3135 rust_language::watch_location_expression.
3136 (rust_language_data): Delete la_watch_location_expression
3137 initializer.
3138 (rust_language::watch_location_expression): New member function,
3139 implementation from rust_watch_location_expression.
3140
3141 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3142
3143 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
3144 ada_language::collect_symbol_completion_matches.
3145 (ada_language_data): Delete la_collect_symbol_completion_matches
3146 initializer.
3147 (ada_language::collect_symbol_completion_matches): New member
3148 function, implementation from
3149 ada_collect_symbol_completion_matches.
3150 * c-lang.c (c_language_data): Delete
3151 la_collect_symbol_completion_matches initializer.
3152 (cplus_language_data): Likewise.
3153 (asm_language_data): Likewise.
3154 (minimal_language_data): Likewise.
3155 * d-lang.c (d_language_data): Likewise.
3156 * f-lang.c (f_collect_symbol_completion_matches): Rename to
3157 f_language::collect_symbol_completion_matches.
3158 (f_language_data): Delete la_collect_symbol_completion_matches
3159 initializer.
3160 (f_language::collect_symbol_completion_matches) New member
3161 function, implementation from f_collect_symbol_completion_matches.
3162 * go-lang.c (go_language_data): Delete
3163 la_collect_symbol_completion_matches initializer.
3164 * language.c (unknown_language_data): Likewise.
3165 (auto_language_data): Likewise.
3166 * language.h (language_data): Delete
3167 la_collect_symbol_completion_matches field.
3168 (language_defn::collect_symbol_completion_matches): New member
3169 function.
3170 * m2-lang.c (m2_language_data): Delete
3171 la_collect_symbol_completion_matches initializer.
3172 * objc-lang.c (objc_language_data): Likewise.
3173 * opencl-lang.c (opencl_language_data): Likewise.
3174 * p-lang.c (pascal_language_data): Likewise.
3175 * rust-lang.c (rust_language_data): Likewise.
3176 * symtab.c (default_collect_symbol_completion_matches): Delete.
3177 (collect_symbol_completion_matches): Update call to
3178 collect_symbol_completion_matches.
3179 (collect_symbol_completion_matches_type): Likewise.
3180 * symtab.h (default_collect_symbol_completion_matches): Delete
3181 declaration.
3182
3183 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3184
3185 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
3186 (ada_language_data): Delete la_word_break_characters initializer.
3187 (ada_language::word_break_characters): New member function.
3188 * c-lang.c (c_language_data): Delete la_word_break_characters
3189 initializer.
3190 (cplus_language_data): Likewise.
3191 (asm_language_data): Likewise.
3192 (minimal_language_data): Likewise.
3193 * completer.c: Update global comment.
3194 (advance_to_expression_complete_word_point): Update call to
3195 word_break_characters.
3196 (complete_files_symbols): Likewise.
3197 (complete_line_internal_1): Likewise.
3198 (default_completer_handle_brkchars): Likewise.
3199 (skip_quoted_chars): Likewise.
3200 * d-lang.c (d_language_data): Delete la_word_break_characters
3201 initializer.
3202 * f-lang.c (f_word_break_characters): Delete.
3203 (f_language_data): Delete la_word_break_characters initializer.
3204 (f_language::word_break_characters): New member function.
3205 * go-lang.c (go_language_data): Delete la_word_break_characters
3206 initializer.
3207 * language.c (unknown_language_data): Likewise.
3208 (auto_language_data): Likewise.
3209 * language.h (default_word_break_characters): Move declaration to
3210 earlier in the file.
3211 (language_data): Delete la_word_break_characters field.
3212 (language_defn::word_break_characters): New member function.
3213 * m2-lang.c (m2_language_data): Delete la_word_break_characters
3214 initializer.
3215 * objc-lang.c (objc_language_data): Likewise.
3216 * opencl-lang.c (opencl_language_data): Likewise.
3217 * p-lang.c (pascal_language_data): Likewise.
3218 * rust-lang.c (rust_language_data): Likewise.
3219
3220 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3221
3222 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
3223 (ada_language_data): Delete la_get_symbol_name_matcher
3224 initializer.
3225 (language_defn::get_symbol_name_matcher_inner): New member
3226 function.
3227 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
3228 initializer.
3229 (cplus_language_data): Likewise.
3230 (cplus_language::get_symbol_name_matcher_inner): New member
3231 function.
3232 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
3233 (minimal_language_data): Likewise.
3234 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
3235 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
3236 initializer.
3237 * dictionary.c (iter_match_first_hashed): Update call to
3238 get_symbol_name_matcher.
3239 (iter_match_next_hashed): Likewise.
3240 (iter_match_next_linear): Likewise.
3241 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
3242 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
3243 initializer.
3244 (f_language::get_symbol_name_matcher_inner): New member function.
3245 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
3246 initializer.
3247 * language.c (default_symbol_name_matcher): Update header comment,
3248 make static.
3249 (language_defn::get_symbol_name_matcher): New definition.
3250 (language_defn::get_symbol_name_matcher_inner): Likewise.
3251 (get_symbol_name_matcher): Delete.
3252 (unknown_language_data): Delete la_get_symbol_name_matcher
3253 initializer.
3254 (auto_language_data): Likewise.
3255 * language.h (language_data): Delete la_get_symbol_name_matcher
3256 field.
3257 (language_defn::get_symbol_name_matcher): New member function.
3258 (language_defn::get_symbol_name_matcher_inner): Likewise.
3259 (default_symbol_name_matcher): Delete declaration.
3260 * linespec.c (find_methods): Update call to
3261 get_symbol_name_matcher.
3262 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
3263 initializer.
3264 * minsyms.c (lookup_minimal_symbol): Update call to
3265 get_symbol_name_matcher.
3266 (iterate_over_minimal_symbols): Likewise.
3267 * objc-lang.c (objc_language_data): Delete
3268 la_get_symbol_name_matcher initializer.
3269 * opencl-lang.c (opencl_language_data): Likewise.
3270 * p-lang.c (pascal_language_data): Likewise.
3271 * psymtab.c (psymbol_name_matches): Update call to
3272 get_symbol_name_matcher.
3273 * rust-lang.c (rust_language_data): Delete
3274 la_get_symbol_name_matcher initializer.
3275 * symtab.c (symbol_matches_search_name): Update call to
3276 get_symbol_name_matcher.
3277 (compare_symbol_name): Likewise.
3278
3279 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3280
3281 * ada-lang.c (ada_language_data): Delete la_compute_program
3282 initializer.
3283 * c-lang.c (c_language_data): Likewise.
3284 (c_language::compute_program): New member function.
3285 (cplus_language_data): Delete la_compute_program initializer.
3286 (cplus_language::compute_program): New member function.
3287 (asm_language_data): Delete la_compute_program initializer.
3288 (minimal_language_data): Likewise.
3289 * c-lang.h (c_compute_program): Update comment.
3290 (cplus_compute_program): Likewise.
3291 * compile/compile-c-support.c (c_compute_program): Likewise.
3292 (cplus_compute_program): Likewise.
3293 * compile/compile.c (compile_to_object): Update call to
3294 la_compute_program.
3295 * d-lang.c (d_language_data): Delete la_compute_program
3296 initializer.
3297 * f-lang.c (f_language_data): Likewise.
3298 * go-lang.c (go_language_data): Likewise.
3299 * language.c (unknown_language_data): Likewise.
3300 (auto_language_data): Likewise.
3301 * language.h (language_data): Delete la_compute_program field.
3302 (language_defn::compute_program): New member function.
3303 * m2-lang.c (m2_language_data): Delete la_compute_program
3304 initializer.
3305 * objc-lang.c (objc_language_data): Likewise.
3306 * opencl-lang.c (opencl_language_data): Likewise.
3307 * p-lang.c (pascal_language_data): Likewise.
3308 * rust-lang.c (rust_language_data): Likewise.
3309
3310 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3311
3312 * ada-lang.c (ada_language_data) Delete
3313 la_class_name_from_physname initializer.
3314 * c-lang.c (c_language_data): Likewise.
3315 (cplus_language_data): Likewise.
3316 (cplus_language::class_name_from_physname): New member function.
3317 (asm_language_data): Delete la_class_name_from_physname
3318 initializer.
3319 (minimal_language_data): Likewise.
3320 * d-lang.c (d_language_data): Likewise.
3321 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
3322 method on language_defn class.
3323 (guess_full_die_structure_name): Likewise.
3324 * f-lang.c (f_language_data): Delete la_class_name_from_physname
3325 initializer.
3326 * go-lang.c (go_language_data): Likewise.
3327 * language.c (language_class_name_from_physname): Delete.
3328 (unk_lang_class_name): Delete.
3329 (unknown_language_data): Delete la_class_name_from_physname
3330 initializer.
3331 (auto_language_data): Likewise.
3332 * language.h (language_data): Delete la_class_name_from_physname
3333 field.
3334 (language_defn::class_name_from_physname): New function.
3335 (language_class_name_from_physname): Delete declaration.
3336 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
3337 initializer.
3338 * objc-lang.c (objc_language_data): Likewise.
3339 * opencl-lang.c (opencl_language_data): Likewise.
3340 * p-lang.c (pascal_language_data): Likewise.
3341 * rust-lang.c (rust_language_data): Likewise.
3342
3343 2020-06-16 Tom Tromey <tom@tromey.com>
3344
3345 * tui/tui-data.h (STATUS_NAME): New macro.
3346 * tui/tui-layout.c (tui_remove_some_windows)
3347 (initialize_known_windows, tui_register_window)
3348 (tui_layout_split::remove_windows, initialize_layouts)
3349 (tui_new_layout_command): Don't use hard-coded window names.
3350
3351 2020-06-16 Tom Tromey <tom@tromey.com>
3352
3353 PR tui/25348:
3354 * tui/tui.c (tui_ensure_readline_initialized): Rename from
3355 tui_initialize_readline. Only run once. Call rl_initialize.
3356 * tui/tui.h (tui_ensure_readline_initialized): Rename from
3357 tui_initialize_readline.
3358 * tui/tui-io.c (tui_setup_io): Call
3359 tui_ensure_readline_initialized.
3360 * tui/tui-interp.c (tui_interp::init): Update.
3361
3362 2020-06-16 Tom Tromey <tom@tromey.com>
3363
3364 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
3365 Also preserve the status window.
3366
3367 2020-06-16 Tom Tromey <tom@tromey.com>
3368
3369 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
3370 where m_window==nullptr.
3371
3372 2020-06-15 Tom Tromey <tromey@adacore.com>
3373
3374 * windows-nat.c (windows_nat::handle_output_debug_string):
3375 Update.
3376 (windows_nat::handle_ms_vc_exception): Update.
3377 * target.h (target_read_string): Change API.
3378 * target.c (target_read_string): Change API.
3379 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
3380 Update.
3381 * solib-frv.c (frv_current_sos): Update.
3382 * solib-dsbt.c (dsbt_current_sos): Update.
3383 * solib-darwin.c (darwin_current_sos): Update.
3384 * linux-thread-db.c (inferior_has_bug): Update.
3385 * expprint.c (print_subexp_standard): Update.
3386 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
3387 (ada_exception_message_1): Update.
3388
3389 2020-06-15 Tom Tromey <tromey@adacore.com>
3390
3391 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
3392
3393 2020-06-15 Tom Tromey <tromey@adacore.com>
3394
3395 * valprint.c (read_string): Update comment.
3396 * target.c (MIN): Remove.
3397 (target_read_string): Rewrite.
3398
3399 2020-06-15 Tom Tromey <tromey@adacore.com>
3400
3401 * corefile.c (read_memory_string): Remove.
3402 * ada-valprint.c (ada_value_print_ptr): Update.
3403 * ada-lang.h (ada_tag_name): Change return type.
3404 * ada-lang.c (type_from_tag): Update.
3405 (ada_tag_name_from_tsd): Change return type. Use
3406 target_read_string.
3407 (ada_tag_name): Likewise.
3408 * gdbcore.h (read_memory_string): Don't declare.
3409
3410 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
3411
3412 * symtab.c (rbreak_command): Ignore Windows drive colon.
3413
3414 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
3415
3416 * NEWS: Mention removed GDBserver host support.
3417
3418 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
3419
3420 * features/riscv/rebuild-csr-xml.sh: Updated.
3421
3422 2020-06-11 Tom Tromey <tom@tromey.com>
3423
3424 PR gdb/18318:
3425 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3426
3427 2020-06-09 Jonny Grant <jg@jguk.org>
3428 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3429
3430 * main.c (captured_main_1): Don't print new line after help.
3431 (print_gdb_help): add mailing list and IRC channel information
3432 to --help. Add new lines between items in the footer. Remove
3433 quotes around bug url.
3434
3435 2020-06-11 Keith Seitz <keiths@redhat.com>
3436
3437 PR gdb/21356
3438 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3439 Resolve typedefs for type length calculations.
3440
3441 2020-06-10 Tom de Vries <tdevries@suse.de>
3442
3443 PR ada/24713
3444 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3445 (write_psymbols): Enable .gdb_index for ada.
3446 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3447 ada.
3448
3449 2020-06-10 Tom de Vries <tdevries@suse.de>
3450
3451 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3452 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3453 namei" instead of "const char *name" argument.
3454 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3455 dw2_symtab_iter_init.
3456
3457 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3458
3459 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3460 to use type::field and field::type instead.
3461
3462 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3463
3464 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3465 to use field::type instead.
3466
3467 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3468
3469 * gdbtypes.h (struct field) <type, set_type>: New methods.
3470 Rename `type` field to...
3471 <m_type>: ... this. Change references throughout to use type or
3472 set_type methods.
3473 (FIELD_TYPE): Use field::type. Change call sites that modify
3474 the field's type to use field::set_type instead.
3475
3476 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3477
3478 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3479 to use type::index_type instead.
3480
3481 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3482
3483 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3484 methods.
3485 (TYPE_INDEX_TYPE): Use type::index_type.
3486 * gdbtypes.c (create_array_type_with_stride): Likewise.
3487
3488 2020-06-07 Tom Tromey <tom@tromey.com>
3489
3490 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3491 parameter.
3492 (generic_value_print): Update.
3493
3494 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3495
3496 Revert commit 982a38f60b0.
3497 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3498
3499 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3500
3501 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3502 avoid use after free.
3503
3504 2020-06-05 Tom de Vries <tdevries@suse.de>
3505
3506 * NEWS: Fix typos.
3507
3508 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
3509
3510 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3511 the per_bfd object.
3512 (dwarf2_read_debug_names): Likewise.
3513 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3514 object when re-using a per_bfd object with an index.
3515
3516 2020-06-03 Tom de Vries <tdevries@suse.de>
3517
3518 PR symtab/26046
3519 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3520 children for C++.
3521 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3522 DW_TAG_subprogram.
3523
3524 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3525
3526 * ada-lang.c (ada_language_data): Delete skip_trampoline
3527 initializer.
3528 * c-lang.c (c_language_data): Likewise.
3529 (cplus_language_data): Likewise.
3530 (cplus_language::skip_trampoline): New member function.
3531 (asm_language_data): Delete skip_trampoline initializer.
3532 (minimal_language_data): Likewise.
3533 * d-lang.c (d_language_data): Likewise.
3534 * f-lang.c (f_language_data): Likewise.
3535 * go-lang.c (go_language_data): Likewise.
3536 * language.c (unk_lang_trampoline): Delete function.
3537 (skip_language_trampoline): Update.
3538 (unknown_language_data): Delete skip_trampoline initializer.
3539 (auto_language_data): Likewise.
3540 * language.h (language_data): Delete skip_trampoline field.
3541 (language_defn::skip_trampoline): New function.
3542 * m2-lang.c (m2_language_data): Delete skip_trampoline
3543 initializer.
3544 * objc-lang.c (objc_skip_trampoline): Delete function, move
3545 implementation to objc_language::skip_trampoline.
3546 (objc_language_data): Delete skip_trampoline initializer.
3547 (objc_language::skip_trampoline): New member function with
3548 implementation from objc_skip_trampoline.
3549 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3550 initializer.
3551 * p-lang.c (pascal_language_data): Likewise.
3552 * rust-lang.c (rust_language_data): Likewise.
3553
3554 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3555
3556 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3557 (ada_language::demangle): New member function.
3558 * c-lang.c (c_language_data): Delete la_demangle initializer.
3559 (cplus_language_data): Delete la_demangle initializer.
3560 (cplus_language::demangle): New member function.
3561 (asm_language_data): Delete la_demangle initializer.
3562 (minimal_language_data): Delete la_demangle initializer.
3563 * d-lang.c (d_language_data): Delete la_demangle initializer.
3564 (d_language::demangle): New member function.
3565 * f-lang.c (f_language_data): Delete la_demangle initializer.
3566 (f_language::demangle): New member function.
3567 * go-lang.c (go_language_data): Delete la_demangle initializer.
3568 (go_language::demangle): New member function.
3569 * language.c (language_demangle): Update.
3570 (unk_lang_demangle): Delete.
3571 (unknown_language_data): Delete la_demangle initializer.
3572 (unknown_language::demangle): New member function.
3573 (auto_language_data): Delete la_demangle initializer.
3574 (auto_language::demangle): New member function.
3575 * language.h (language_data): Delete la_demangle field.
3576 (language_defn::demangle): New function.
3577 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3578 * objc-lang.c (objc_language_data): Delete la_demangle
3579 initializer.
3580 (objc_language::demangle): New member function.
3581 * opencl-lang.c (opencl_language_data): Delete la_demangle
3582 initializer.
3583 * p-lang.c (pascal_language_data): Likewise.
3584 * rust-lang.c (rust_language_data): Likewise.
3585 (rust_language::demangle): New member function.
3586
3587 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3588
3589 * ada-lang.c (ada_language_data): Delete la_print_type
3590 initializer.
3591 (ada_language::print_type): New member function.
3592 * c-lang.c (c_language_data): Delete la_print_type initializer.
3593 (c_language::print_type): New member function.
3594 (cplus_language_data): Delete la_print_type initializer.
3595 (cplus_language::print_type): New member function.
3596 (asm_language_data): Delete la_print_type initializer.
3597 (asm_language::print_type): New member function.
3598 (minimal_language_data): Delete la_print_type initializer.
3599 (minimal_language::print_type): New member function.
3600 * d-lang.c (d_language_data): Delete la_print_type initializer.
3601 (d_language::print_type): New member function.
3602 * f-lang.c (f_language_data): Delete la_print_type initializer.
3603 (f_language::print_type): New member function.
3604 * go-lang.c (go_language_data): Delete la_print_type initializer.
3605 (go_language::print_type): New member function.
3606 * language.c (unk_lang_print_type): Delete.
3607 (unknown_language_data): Delete la_print_type initializer.
3608 (unknown_language::print_type): New member function.
3609 (auto_language_data): Delete la_print_type initializer.
3610 (auto_language::print_type): New member function.
3611 * language.h (language_data): Delete la_print_type field.
3612 (language_defn::print_type): New function.
3613 (LA_PRINT_TYPE): Update.
3614 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3615 (m2_language::print_type): New member function.
3616 * objc-lang.c (objc_language_data): Delete la_print_type
3617 initializer.
3618 (objc_language::print_type): New member function.
3619 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3620 to opencl_language::print_type.
3621 (opencl_language_data): Delete la_print_type initializer.
3622 (opencl_language::print_type): New member function, implementation
3623 from opencl_print_type.
3624 * p-lang.c (pascal_language_data): Delete la_print_type
3625 initializer.
3626 (pascal_language::print_type): New member function.
3627 * rust-lang.c (rust_print_type): Delete, implementation moved to
3628 rust_language::print_type.
3629 (rust_language_data): Delete la_print_type initializer.
3630 (rust_language::print_type): New member function, implementation
3631 from rust_print_type.
3632
3633 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3634
3635 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3636 implementation moves to...
3637 (ada_language::sniff_from_mangled_name): ...here. Update return
3638 type.
3639 (ada_language_data): Delete la_sniff_from_mangled_name
3640 initializer.
3641 * c-lang.c (c_language_data): Likewise.
3642 (cplus_language_data): Likewise.
3643 (cplus_language::sniff_from_mangled_name): New member function,
3644 implementation taken from gdb_sniff_from_mangled_name.
3645 (asm_language_data): Delete la_sniff_from_mangled_name
3646 initializer.
3647 (minimal_language_data): Likewise.
3648 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3649 implementation moves to cplus_language::sniff_from_mangled_name.
3650 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3651 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3652 moves to...
3653 (d_language::sniff_from_mangled_name): ...here.
3654 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3655 * f-lang.c (f_language_data): Likewise.
3656 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3657 moves to...
3658 (go_language::sniff_from_mangled_name): ...here.
3659 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3660 * language.c (language_sniff_from_mangled_name): Delete.
3661 (unknown_language_data): Delete la_sniff_from_mangled_name
3662 initializer.
3663 (auto_language_data): Likewise.
3664 * language.h (language_data): Delete la_sniff_from_mangled_name
3665 field.
3666 (language_defn::sniff_from_mangled_name): New function.
3667 (language_sniff_from_mangled_name): Delete declaration.
3668 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3669 field.
3670 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3671 implementation moves to...
3672 (objc_language::sniff_from_mangled_name): ...here.
3673 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3674 * opencl-lang.c (opencl_language_data): Likewise.
3675 * p-lang.c (pascal_language_data): Likewise.
3676 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3677 implementation moves to...
3678 (rust_language::sniff_from_mangled_name): ...here.
3679 (rust_language_data): Delete la_sniff_from_mangled_name
3680 initializer.
3681 * symtab.c (symbol_find_demangled_name): Call
3682 sniff_from_mangled_name member function.
3683
3684 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3685
3686 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3687 initializer.
3688 * c-lang.c (c_language_data): Likewise.
3689 (cplus_language_data): Likewise.
3690 (cplus_language::search_name_hash): New member function.
3691 (asm_language_data): Delete la_search_name_hash initializer.
3692 (minimal_language_data): Likewise.
3693 * d-lang.c (d_language_data): Likewise.
3694 * dictionary.c (default_search_name_hash): Rename to...
3695 (language_defn::search_name_hash): ...this.
3696 * f-lang.c (f_language_data): Likewise.
3697 (f_language::search_name_hash): New member function.
3698 * go-lang.c (go_language_data): Delete la_search_name_hash
3699 initializer.
3700 * language.c (unknown_language_data): Likewise.
3701 (auto_language_data): Likewise.
3702 * language.h (struct language_data): Delete la_search_name_hash
3703 field.
3704 (language_defn::search_name_hash): Declare new member function.
3705 (default_search_name_hash): Delete declaration.
3706 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3707 initializer.
3708 * objc-lang.c (objc_language_data): Likewise.
3709 * opencl-lang.c (opencl_language_data): Likewise.
3710 * p-lang.c (pascal_language_data): Likewise.
3711 * rust-lang.c (rust_language_data): Likewise.
3712 * symtab.c (search_name_hash): Update call.
3713
3714 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3715
3716 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3717 initializer.
3718 * c-lang.c (class compile_instance): Declare.
3719 (c_language_data): Delete la_get_compile_instance initializer.
3720 (c_language::get_compile_instance): New member function.
3721 (cplus_language_data): Delete la_get_compile_instance initializer.
3722 (cplus_language::get_compile_instance): New member function.
3723 (asm_language_data): Delete la_get_compile_instance initializer.
3724 (minimal_language_data): Likewise.
3725 * c-lang.h (c_get_compile_context): Update comment.
3726 (cplus_get_compile_context): Update comment.
3727 * compile/compile.c (compile_to_object): Update calls, don't rely
3728 on function pointer being NULL.
3729 * d-lang.c (d_language_data): Delete la_get_compile_instance
3730 initializer.
3731 * f-lang.c (f_language_data): Likewise.
3732 * go-lang.c (go_language_data): Likewise.
3733 * language.c (unknown_language_data): Likewise.
3734 (auto_language_data): Likewise.
3735 * language.h (language_data): Delete la_get_compile_instance field.
3736 (language_defn::get_compile_instance): New member function.
3737 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3738 initializer.
3739 * objc-lang.c (objc_language_data): Likewise.
3740 * opencl-lang.c (opencl_language_data): Likewise.
3741 * p-lang.c (pascal_language_data): Likewise.
3742 * rust-lang.c (rust_language_data): Likewise.
3743
3744 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3745
3746 * ada-lang.c (ada_add_all_symbols): Update comment.
3747 (ada_iterate_over_symbols): Delete, move implementation to...
3748 (ada_language::iterate_over_symbols): ...here, a new member
3749 function, rewrite to use range based for loop.
3750 (ada_language_data): Delete la_iterate_over_symbols initializer.
3751 * c-lang.c (c_language_data): Likewise.
3752 (cplus_language_data): Likewise.
3753 (asm_language_data): Likewise.
3754 (minimal_language_data): Likewise.
3755 * d-lang.c (d_language_data): Likewise.
3756 * f-lang.c (f_language_data): Likewise.
3757 * go-lang.c (go_language_data): Likewise.
3758 * language.c (unknown_language_data): Likewise.
3759 (auto_language_data): Likewise.
3760 * language.h (language_data): Delete la_iterate_over_symbols field.
3761 (language_defn::iterate_over_symbols): New member function.
3762 (LA_ITERATE_OVER_SYMBOLS): Update.
3763 * linespec.c (iterate_over_all_matching_symtabs): Update.
3764 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3765 initializer.
3766 * objc-lang.c (objc_language_data): Likewise.
3767 * opencl-lang.c (opencl_language_data): Likewise.
3768 * p-lang.c (pascal_language_data): Likewise.
3769 * rust-lang.c (rust_language_data): Likewise.
3770
3771 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3772
3773 * ada-lang.c (ada_language_data): Delete
3774 la_lookup_transparent_type initializer.
3775 * c-lang.c (c_language_data): Likewise.
3776 (cplus_language_data): Likewise.
3777 (cplus_language::lookup_transparent_type): New member function.
3778 (asm_language_data): Delete la_lookup_transparent_type
3779 initializer.
3780 (minimal_language_data): Likewise.
3781 * d-lang.c (d_language_data): Likewise.
3782 * f-lang.c (f_language_data): Likewise.
3783 * go-lang.c (go_language_data): Likewise.
3784 * language.c (unknown_language_data): Likewise.
3785 (auto_language_data): Likewise.
3786 * language.h (struct language_data): Delete
3787 la_lookup_transparent_type field.
3788 (language_defn::lookup_transparent_type): New member function.
3789 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3790 initializer.
3791 * objc-lang.c (objc_language_data): Likewise.
3792 * opencl-lang.c (opencl_language_data): Likewise.
3793 * p-lang.c (pascal_language_data): Likewise.
3794 * rust-lang.c (rust_language_data): Likewise.
3795 * symtab.c (symbol_matches_domain): Update call.
3796
3797 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3798
3799 * ada-lang.c (ada_language_arch_info): Delete function, move
3800 implementation to...
3801 (ada_language::language_arch_info): ...here, a new member
3802 function.
3803 (ada_language_data): Delete la_language_arch_info.
3804 * c-lang.c (c_language_data): Likewise.
3805 (c_language::language_arch_info): New member function.
3806 (cplus_language_arch_info): Delete function, move
3807 implementation to...
3808 (cplus_language::language_arch_info): ...here, a new member
3809 function.
3810 (cplus_language_data): Delete la_language_arch_info.
3811 (asm_language_data): Likewise.
3812 (asm_language::language_arch_info): New member function.
3813 (minimal_language_data): Delete la_language_arch_info.
3814 (minimal_language::language_arch_info): New member function.
3815 * d-lang.c (d_language_arch_info): Delete function, move
3816 implementation to...
3817 (d_language::language_arch_info): ...here, a new member
3818 function.
3819 (d_language_data): Delete la_language_arch_info.
3820 * f-lang.c (f_language_arch_info): Delete function, move
3821 implementation to...
3822 (f_language::language_arch_info): ...here, a new member
3823 function.
3824 (f_language_data): Delete la_language_arch_info.
3825 * go-lang.c (go_language_arch_info): Delete function, move
3826 implementation to...
3827 (go_language::language_arch_info): ...here, a new member
3828 function.
3829 (go_language_data): Delete la_language_arch_info.
3830 * language.c (unknown_language_data): Likewise.
3831 (unknown_language::language_arch_info): New member function.
3832 (auto_language_data): Delete la_language_arch_info.
3833 (auto_language::language_arch_info): New member function.
3834 (language_gdbarch_post_init): Update call to
3835 la_language_arch_info.
3836 * language.h (language_data): Delete la_language_arch_info
3837 function pointer.
3838 (language_defn::language_arch_info): New function.
3839 * m2-lang.c (m2_language_arch_info): Delete function, move
3840 implementation to...
3841 (m2_language::language_arch_info): ...here, a new member
3842 function.
3843 (m2_language_data): Delete la_language_arch_info.
3844 * objc-lang.c (objc_language_arch_info): Delete function, move
3845 implementation to...
3846 (objc_language::language_arch_info): ...here, a new member
3847 function.
3848 (objc_language_data): Delete la_language_arch_info.
3849 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3850 implementation to...
3851 (opencl_language::language_arch_info): ...here, a new member
3852 function.
3853 (opencl_language_data): Delete la_language_arch_info.
3854 * p-lang.c (pascal_language_arch_info): Delete function, move
3855 implementation to...
3856 (pascal_language::language_arch_info): ...here, a new member
3857 function.
3858 (pascal_language_data): Delete la_language_arch_info.
3859 * rust-lang.c (rust_language_arch_info): Delete function, move
3860 implementation to...
3861 (rust_language::language_arch_info): ...here, a new member
3862 function.
3863 (rust_language_data): Delete la_language_arch_info.
3864
3865 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3866
3867 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3868 initializer.
3869 * c-lang.c (c_language_data): Likewise.
3870 (cplus_language_data): Likewise.
3871 (cplus_language::pass_by_reference_info): New method.
3872 (asm_language_data): Delete la_pass_by_reference initializer.
3873 (minimal_language_data): Likewise.
3874 * cp-abi.c (cp_pass_by_reference): Remove use of
3875 default_pass_by_reference.
3876 * d-lang.c (d_language_data): Likewise.
3877 * f-lang.c (f_language_data): Likewise.
3878 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3879 default_pass_by_reference.
3880 * go-lang.c (go_language_data): Likewise.
3881 * language.c (language_pass_by_reference): Update.
3882 (default_pass_by_reference): Delete.
3883 (unknown_language_data): Delete la_pass_by_reference
3884 initializer.
3885 (auto_language_data): Likewise.
3886 * language.h (struct language_data): Delete la_pass_by_reference
3887 field.
3888 (language_defn::pass_by_reference_info): New member function.
3889 (default_pass_by_reference): Delete declaration.
3890 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3891 initializer.
3892 * objc-lang.c (objc_language_data): Likewise.
3893 * opencl-lang.c (opencl_language_data): Likewise.
3894 * p-lang.c (pascal_language_data): Likewise.
3895 * rust-lang.c (rust_language_data): Likewise.
3896
3897 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3898
3899 * ada-lang.c (ada_read_var_value): Delete function, move
3900 implementation to...
3901 (ada_language::read_var_value): ...here.
3902 (ada_language_data): Delete la_read_var_value initializer.
3903 * c-lang.c (c_language_data): Likewise.
3904 (cplus_language_data): Likewise.
3905 (minimal_language_data): Likewise.
3906 * d-lang.c (d_language_data): Likewise.
3907 * f-lang.c (f_language_data): Likewise.
3908 * findvar.c (default_read_var_value): Rename to...
3909 (language_defn::read_var_value): ...this.
3910 * findvar.c (read_var_value): Update header comment, and change to
3911 call member function instead of function pointer.
3912 * go-lang.c (go_language_data): Likewise.
3913 * language.c (unknown_language_data): Delete la_read_var_value
3914 initializer.
3915 (auto_language_data): Likewise.
3916 * language.h (struct language_data): Delete la_read_var_value
3917 field.
3918 (language_defn::read_var_value): New member function.
3919 (default_read_var_value): Delete declaration.
3920 * m2-lang.c (m2_language_data): Delete la_read_var_value
3921 initializer.
3922 * objc-lang.c (objc_language_data): Likewise.
3923 * opencl-lang.c (opencl_language_data): Likewise.
3924 * p-lang.c (pascal_language_data): Likewise.
3925 * rust-lang.c (rust_language_data): Likewise.
3926 * value.h (default_read_var_value): Delete declaration.
3927
3928 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3929
3930 * ada-lang.c (ada_print_array_index): Delete function, move
3931 implementation to...
3932 (ada_language::print_array_index): ...here.
3933 (ada_language_data): Delete la_print_array_index initializer.
3934 * c-lang.c (c_language_data): Likewise.
3935 (cplus_language_data): Likewise.
3936 (minimal_language_data): Likewise.
3937 * d-lang.c (d_language_data): Likewise.
3938 * f-lang.c (f_language_data): Likewise.
3939 * go-lang.c (go_language_data): Likewise.
3940 * language.c (default_print_array_index): Delete function, move
3941 implementation to...
3942 (language_defn::print_array_index): ...here.
3943 (unknown_language_data): Delete la_print_array_index initializer.
3944 (auto_language_data): Likewise.
3945 * language.h (struct language_data): Delete la_print_array_index
3946 field.
3947 (language_defn::print_array_index): New member function.
3948 (LA_PRINT_ARRAY_INDEX): Update.
3949 (default_print_array_index): Delete declaration.
3950 * m2-lang.c (m2_language_data): Delete la_print_array_index
3951 initializer.
3952 * objc-lang.c (objc_language_data): Likewise.
3953 * opencl-lang.c (opencl_language_data): Likewise.
3954 * p-lang.c (pascal_language_data): Likewise.
3955 * rust-lang.c (rust_language_data): Likewise.
3956
3957 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3958
3959 * gdb/ada-lang.c (ada_language_defn): Convert to...
3960 (ada_language_data): ...this.
3961 (class ada_language): New class.
3962 (ada_language_defn): New static global.
3963 * gdb/c-lang.c (c_language_defn): Convert to...
3964 (c_language_data): ...this.
3965 (class c_language): New class.
3966 (c_language_defn): New static global.
3967 (cplus_language_defn): Convert to...
3968 (cplus_language_data): ...this.
3969 (class cplus_language): New class.
3970 (cplus_language_defn): New static global.
3971 (asm_language_defn): Convert to...
3972 (asm_language_data): ...this.
3973 (class asm_language): New class.
3974 (asm_language_defn): New static global.
3975 (minimal_language_defn): Convert to...
3976 (minimal_language_data): ...this.
3977 (class minimal_language): New class.
3978 (minimal_language_defn): New static global.
3979 * gdb/d-lang.c (d_language_defn): Convert to...
3980 (d_language_data): ...this.
3981 (class d_language): New class.
3982 (d_language_defn): New static global.
3983 * gdb/f-lang.c (f_language_defn): Convert to...
3984 (f_language_data): ...this.
3985 (class f_language): New class.
3986 (f_language_defn): New static global.
3987 * gdb/go-lang.c (go_language_defn): Convert to...
3988 (go_language_data): ...this.
3989 (class go_language): New class.
3990 (go_language_defn): New static global.
3991 * gdb/language.c (unknown_language_defn): Remove declaration.
3992 (current_language): Initialize to nullptr, real initialization is
3993 moved to _initialize_language.
3994 (languages): Delete global.
3995 (language_defn::languages): Define.
3996 (set_language_command): Use language_defn::languages.
3997 (set_language): Likewise.
3998 (range_error): Likewise.
3999 (language_enum): Likewise.
4000 (language_def): Likewise.
4001 (add_set_language_command): Use language_def::languages for the
4002 language list, and language_def to lookup language pointers.
4003 (skip_language_trampoline): Use language_defn::languages.
4004 (unknown_language_defn): Convert to...
4005 (unknown_language_data): ...this.
4006 (class unknown_language): New class.
4007 (unknown_language_defn): New static global.
4008 (auto_language_defn): Convert to...
4009 (auto_language_data): ...this.
4010 (class auto_language): New class.
4011 (auto_language_defn): New static global.
4012 (language_gdbarch_post_init): Use language_defn::languages.
4013 (_initialize_language): Initialize current_language.
4014 * gdb/language.h (struct language_defn): Rename to...
4015 (struct language_data): ...this.
4016 (struct language_defn): New.
4017 (auto_language_defn): Delete.
4018 (unknown_language_defn): Delete.
4019 (minimal_language_defn): Delete.
4020 (ada_language_defn): Delete.
4021 (asm_language_defn): Delete.
4022 (c_language_defn): Delete.
4023 (cplus_language_defn): Delete.
4024 (d_language_defn): Delete.
4025 (f_language_defn): Delete.
4026 (go_language_defn): Delete.
4027 (m2_language_defn): Delete.
4028 (objc_language_defn): Delete.
4029 (opencl_language_defn): Delete.
4030 (pascal_language_defn): Delete.
4031 (rust_language_defn): Delete.
4032 * gdb/m2-lang.c (m2_language_defn): Convert to...
4033 (m2_language_data): ...this.
4034 (class m2_language): New class.
4035 (m2_language_defn): New static global.
4036 * gdb/objc-lang.c (objc_language_defn): Convert to...
4037 (objc_language_data): ...this.
4038 (class objc_language): New class.
4039 (objc_language_defn): New static global.
4040 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
4041 (opencl_language_data): ...this.
4042 (class opencl_language): New class.
4043 (opencl_language_defn): New static global.
4044 * gdb/p-lang.c (pascal_language_defn): Convert to...
4045 (pascal_language_data): ...this.
4046 (class pascal_language): New class.
4047 (pascal_language_defn): New static global.
4048 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
4049 language pointer, update comment format.
4050 * gdb/rust-lang.c (rust_language_defn): Convert to...
4051 (rust_language_data): ...this.
4052 (class rust_language): New class.
4053 (rust_language_defn): New static global.
4054
4055 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
4056
4057 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
4058 member variable.
4059 <m_stmt_at_address>: New member variable.
4060 (lnp_state_machine::record_line): Don't record some lines, update
4061 tracking of is_stmt at the same address.
4062 (lnp_state_machine::lnp_state_machine): Initialise new member
4063 variables.
4064
4065 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4066
4067 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
4068 "-include gnu-nat-mig.h".
4069 * gnu-nat-mig.h: New file.
4070 * gnu-nat.c: Include "gnu-nat-mig.h".
4071 (exc_server, msg_reply_server, notify_server,
4072 process_reply_server): Remove declarations.
4073
4074 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4075
4076 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
4077 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
4078 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
4079 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
4080 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
4081 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
4082 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
4083 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
4084 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
4085 to gnu_nat_target class.
4086 * gnu-nat.c: Likewise.
4087 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
4088 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
4089 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
4090 object.
4091 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
4092 instead of `gnu_target'.
4093
4094 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4095
4096 * i386-gnu-tdep.c: Include "gdbcore.h"
4097 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
4098 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
4099 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
4100 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
4101 i386_gnu_sigcontext_addr): New functions
4102 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
4103 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
4104 tdep.
4105
4106 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4107
4108 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
4109 before fork_inferior call. Avoid calling it if target_is_pushed returns
4110 true.
4111
4112 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4113
4114 * gnu-nat.h (gnu_target): New variable declaration.
4115 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
4116 gnu_target.
4117 * gnu-nat.c (gnu_target): New variable.
4118 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
4119 add_thread_silent, and add_thread calls.
4120 (gnu_nat_target::create_inferior): Pass gnu_target to
4121 add_thread_silent, thread_change_ptid call.
4122 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
4123 call.
4124
4125 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4126
4127 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
4128 (gnu_nat_target::find_memory_regions): Remove unused
4129 `old_address' variable.
4130
4131 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4132
4133 * gnu-nat.c: Include "gdbarch.h".
4134
4135 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4136
4137 * reply_mig_hack.awk (Error return): Cast function through
4138 void *, to bypass compiler function call check.
4139
4140 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4141
4142 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
4143 $(srcdir)/reply_mig_hack.awk.
4144
4145 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4146
4147 * gnu-nat.h (gnu_debug_flag): Set type to bool.
4148
4149 2020-05-30 Jonny Grant <jg@jguk.org>
4150
4151 * configure.ac (ACX_BUGURL): change bug URL to https.
4152
4153 2020-05-30 Pedro Alves <palves@redhat.com>
4154
4155 * cp-support.c (replace_typedefs_template): New.
4156 (replace_typedefs_qualified_name): Handle
4157 DEMANGLE_COMPONENT_TEMPLATE.
4158
4159 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
4160
4161 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
4162 dwarf2/index-cache.h, dwarf2/index-write.c,
4163 dwarf2/index-write.h, dwarf2/line-header.c,
4164 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
4165 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
4166 variables and fields from `dwarf2_per_objfile` to just
4167 `per_objfile` throughout.
4168
4169 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
4170
4171 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4172 <push_dwarf_reg_entry_value>: Add comment.
4173
4174 2020-05-28 Kevin Buettner <kevinb@redhat.com>
4175 Keith Seitz <keiths@redhat.com>
4176
4177 * python/python.c (do_start_initialization): Call PyEval_SaveThread
4178 instead of PyEval_ReleaseLock.
4179 (class gdbpy_gil): Move to earlier in file.
4180 (finalize_python): Set gdb_python_initialized.
4181 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
4182 when not initialized.
4183
4184 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
4185
4186 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4187 <push_dwarf_reg_entry_value>: Remove assert. Override
4188 per_objfile with caller_per_objfile.
4189
4190 2020-05-28 Tom de Vries <tdevries@suse.de>
4191
4192 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
4193 PR gold/15646 workaround to symbol kind "type".
4194
4195 2020-05-27 Tom Tromey <tromey@adacore.com>
4196
4197 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
4198
4199 2020-05-27 Tom Tromey <tromey@adacore.com>
4200
4201 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
4202 Use htab_find_with_hash.
4203 <add_abbrev>: Remove "abbrev_number" parameter.
4204 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
4205 "abbrev_number" parameter. Use htab_find_slot_with_hash.
4206 (hash_abbrev): Add comment.
4207 (abbrev_table::lookup_abbrev): Move to header file.
4208 (abbrev_table::read): Update.
4209
4210 2020-05-27 Tom Tromey <tromey@adacore.com>
4211
4212 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
4213 method.
4214 <canonical_name>: New member.
4215 <raw_name>: Rename from "name".
4216 (partial_die_info): Initialize canonical_name.
4217 (scan_partial_symbols): Check raw_name.
4218 (partial_die_parent_scope, partial_die_full_name)
4219 (add_partial_symbol, add_partial_subprogram)
4220 (add_partial_enumeration, load_partial_dies): Use "name" method.
4221 (partial_die_info::name): New method.
4222 (partial_die_info::read, guess_partial_die_structure_name)
4223 (partial_die_info::fixup): Update.
4224
4225 2020-05-27 Tom Tromey <tromey@adacore.com>
4226
4227 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
4228 <get_ref_die_offset>: Inline.
4229 <get_ref_die_offset_complaint>: New method.
4230 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
4231 (attribute::get_ref_die_offset_complaint): Rename from
4232 get_ref_die_offset. Just issue complaint.
4233
4234 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4235
4236 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
4237
4238 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4239
4240 * exec.c (exec_file_attach): Use errno value of first openp failure.
4241
4242 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4243
4244 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
4245 Don't close thread handle.
4246
4247 2020-05-27 Tom Tromey <tom@tromey.com>
4248 Simon Marchi <simon.marchi@efficios.com>
4249
4250 * objfiles.h (struct objfile) <partial_symtabs>: Now a
4251 shared_ptr.
4252 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
4253 member.
4254 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
4255 dwarf2_per_bfd_objfile_data_key>: New globals.
4256 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
4257 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
4258 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
4259 shared.
4260 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
4261 short-circuit when sharing.
4262 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
4263 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
4264
4265 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4266
4267 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
4268 to...
4269 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
4270 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
4271
4272 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4273
4274 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
4275 build_name_components, find_name_components_bounds>:
4276 Add per_objfile parameter.
4277 (struct mapped_index) <symbol_name_at>: Likewise.
4278 (struct mapped_debug_names): Remove constructor.
4279 <dwarf2_per_objfile>: Remove field.
4280 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
4281 (mapped_index_base::find_name_components_bounds,
4282 mapped_index_base::build_name_components,
4283 dw2_expand_symtabs_matching_symbol): Likewise.
4284 (class mock_mapped_index) <symbol_name_at>: Likewise.
4285 (check_match): Likewise.
4286 (check_find_bounds_finds): Likewise.
4287 (test_mapped_index_find_name_component_bounds): Update.
4288 (CHECK_MATCH): Update.
4289 (dw2_expand_symtabs_matching): Update.
4290 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
4291 per_objfile parameter.
4292 <find_vec_in_debug_names>: Likewise.
4293 <m_per_objfile>: New field.
4294 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
4295 parameter.
4296 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
4297 (dw2_debug_names_iterator::next): Update.
4298 (dw2_debug_names_lookup_symbol): Update.
4299 (dw2_debug_names_expand_symtabs_for_function): Update.
4300 (dw2_debug_names_map_matching_symbols): Update.
4301 (dw2_debug_names_expand_symtabs_matching): Update.
4302 (dwarf2_read_debug_names): Update.
4303
4304 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4305
4306 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
4307 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
4308 move to dwarf2_per_objfile.
4309 <read_in_chain>: Remove.
4310 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
4311 remove_all_cus, age_comp_units>: New methods.
4312 <m_dwarf2_cus>: New member.
4313 (struct dwarf2_per_cu_data) <cu>: Remove.
4314 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
4315 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
4316 moved to methods of dwarf2_per_objfile.
4317 (dwarf2_clear_marks): Remove.
4318 (dwarf2_queue_item::~dwarf2_queue_item): Update.
4319 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
4320 (dwarf2_per_bfd::free_cached_comp_units): Remove.
4321 (dwarf2_per_objfile::remove_all_cus): New.
4322 (class free_cached_comp_units) <~free_cached_comp_units>:
4323 Update.
4324 (load_cu): Update.
4325 (dw2_do_instantiate_symtab): Adjust.
4326 (fill_in_sig_entry_from_dwo_entry): Adjust.
4327 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4328 (cutu_reader::cutu_reader): Likewise.
4329 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
4330 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
4331 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
4332 and dwarf2_per_objfile::age_comp_units.
4333 (load_partial_comp_unit): Update.
4334 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
4335 (process_queue): Likewise.
4336 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
4337 backlink.
4338 (dwarf2_read_addr_index): Likewise.
4339 (follow_die_offset): Likewise.
4340 (dwarf2_fetch_die_loc_sect_off): Likewise.
4341 (dwarf2_fetch_constant_bytes): Likewise.
4342 (dwarf2_fetch_die_type_sect_off): Likewise.
4343 (follow_die_sig_1): Likewise.
4344 (load_full_type_unit): Likewise.
4345 (read_signatured_type): Likewise.
4346 (dwarf2_cu::dwarf2_cu): Don't set cu field.
4347 (dwarf2_cu::~dwarf2_cu): Remove.
4348 (dwarf2_per_objfile::get_cu): New.
4349 (dwarf2_per_objfile::set_cu): New.
4350 (age_cached_comp_units): Rename to...
4351 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
4352 to std::unordered_map.
4353 (free_one_cached_comp_unit): Rename to...
4354 (dwarf2_per_objfile::remove_cu): ... this. Adjust
4355 to std::unordered_map.
4356 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
4357 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
4358 a dwarf2_per_objfile in data.
4359 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
4360 (dwarf2_clear_marks): Remove.
4361
4362 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4363
4364 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
4365 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
4366 (init_tu_and_read_dwo_dies): Likewise.
4367 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
4368 (cutu_reader::cutu_reader): Likewise.
4369 (load_partial_comp_unit): Likewise.
4370 (process_psymtab_comp_unit): Update.
4371 (build_type_psymtabs_1): Update.
4372 (process_skeletonless_type_unit): Update.
4373 (load_full_comp_unit): Update.
4374 (find_partial_die): Update.
4375 (dwarf2_read_addr_index): Update.
4376 (read_signatured_type): Update.
4377
4378 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4379
4380 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
4381 m_header_read_in>: New fields.
4382 <get_header>: New method.
4383 * dwarf2/read.c (per_cu_header_read_in): Remove.
4384 (dwarf2_per_cu_data::get_header): New.
4385 (dwarf2_per_cu_data::addr_size): Update.
4386 (dwarf2_per_cu_data::offset_size): Update.
4387 (dwarf2_per_cu_data::ref_addr_size): Update.
4388
4389 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4390
4391 * dwarf2/read.c (load_cu): Return dwarf2_cu.
4392 (dw2_do_instantiate_symtab): Update.
4393 (queue_and_load_all_dwo_tus): Change parameter from
4394 dwarf2_per_cu_data to dwarf2_cu.
4395 (dwarf2_fetch_die_loc_sect_off): Update.
4396 (dwarf2_fetch_constant_bytes): Update.
4397 (dwarf2_fetch_die_type_sect_off): Update.
4398
4399 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4400
4401 * dwarf2/read.c (process_full_comp_unit,
4402 process_full_type_unit): Remove per_cu, per_objfile paramters.
4403 Add dwarf2_cu parameter.
4404 (process_queue): Update.
4405
4406 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4407
4408 * dwarf2/read.c (create_cu_from_index_list): Replace
4409 dwarf2_per_objfile parameter with dwarf2_per_bfd.
4410 (create_cus_from_index_list): Likewise.
4411 (create_cus_from_index): Likewise.
4412 (create_signatured_type_table_from_index): Likewise.
4413 (create_cus_from_debug_names_list): Likewise.
4414 (create_cus_from_debug_names): Likewise.
4415 (dwarf2_read_gdb_index): Update.
4416 (dwarf2_read_debug_names): Update.
4417
4418 2020-05-27 Tom Tromey <tom@tromey.com>
4419 Simon Marchi <simon.marchi@efficios.com>
4420
4421 * dwarf2/read.h (struct dwarf2_per_objfile)
4422 <get_type_for_signatured_type, set_type_for_signatured_type>:
4423 New methods.
4424 <m_type_map>: New member.
4425 (struct signatured_type) <type>: Remove.
4426 * dwarf2/read.c
4427 (dwarf2_per_objfile::get_type_for_signatured_type,
4428 dwarf2_per_objfile::set_type_for_signatured_type): New.
4429 (get_signatured_type): Use new methods.
4430
4431 2020-05-27 Tom Tromey <tom@tromey.com>
4432 Simon Marchi <simon.marchi@efficios.com>
4433
4434 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4435 (struct dwarf2_per_objfile) <type_units>: New member.
4436 <get_type_unit_group_unshareable>: New method.
4437 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4438 num_symtabs, symtabs>: Remove; move to
4439 type_unit_group_unshareable.
4440 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4441 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4442 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4443
4444 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4445
4446 * dwarf2/read.h (struct dwarf2_per_cu_data):
4447 <dwarf2_per_objfile>: Remove.
4448 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4449 dwarf2_per_objfile.
4450 (create_signatured_type_table_from_index): Likewise.
4451 (create_signatured_type_table_from_debug_names): Likewise.
4452 (create_debug_type_hash_table): Likewise.
4453 (fill_in_sig_entry_from_dwo_entry): Likewise.
4454 (create_type_unit_group): Likewise.
4455 (read_comp_units_from_section): Likewise.
4456 (create_cus_hash_table): Likewise.
4457
4458 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4459
4460 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4461 dwarf2_per_cu_data::dwarf2_per_objfile.
4462 (compute_compunit_symtab_includes): Likewise.
4463 (dwarf2_cu::start_symtab): Likewise.
4464
4465 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4466
4467 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4468 parameter.
4469 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4470 (read_namespace_alias): Update.
4471 (lookup_die_type): Update.
4472 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4473 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4474 Update.
4475 (disassemble_dwarf_expression): Update.
4476
4477 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4478
4479 * dwarf2/read.h (struct dwarf2_queue_item): Add
4480 dwarf2_per_objfile parameter, assign new parameter.
4481 <per_objfile>: New field.
4482 * dwarf2/read.c (free_one_cached_comp_unit): Add
4483 dwarf2_per_objfile parameter.
4484 (queue_comp_unit): Likewise.
4485 (dw2_do_instantiate_symtab): Update.
4486 (process_psymtab_comp_unit): Update.
4487 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4488 (process_imported_unit_die): Update.
4489 (queue_and_load_dwo_tu): Update.
4490 (follow_die_offset): Update.
4491 (follow_die_sig_1): Update.
4492
4493 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4494
4495 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4496 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4497 (read_call_site_scope): Assign per_objfile.
4498 (dwarf2_per_cu_data::objfile): Remove.
4499 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4500 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4501 dwarf2_per_objfile parameter.
4502 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4503 dwarf2_per_objfile parameter.
4504 (dwarf_expr_reg_to_entry_parameter): Add output
4505 dwarf2_per_objfile parameter.
4506 (locexpr_get_frame_base): Update.
4507 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4508 <push_dwarf_reg_entry_value>: Update.
4509 <call_site_to_target_addr>: Update.
4510 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4511 parameter.
4512 (value_of_dwarf_reg_entry): Update.
4513 (rw_pieced_value): Update.
4514 (indirect_synthetic_pointer): Update.
4515 (dwarf2_evaluate_property): Update.
4516 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4517 parameter.
4518 (locexpr_read_variable): Update.
4519 (locexpr_get_symbol_read_needs): Update.
4520 (loclist_read_variable): Update.
4521
4522 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4523
4524 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4525 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4526 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4527 parameter.
4528 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4529 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4530 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4531 parameter.
4532 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4533 sect_variable_value): Add dwarf2_per_objfile parameter.
4534 (class dwarf_evaluate_loc_desc) <dwarf_call,
4535 dwarf_variable_value>: Update.
4536 (fetch_const_value_from_synthetic_pointer): Add
4537 dwarf2_per_objfile parameter.
4538 (fetch_const_value_from_synthetic_pointer): Update.
4539 (coerced_pieced_ref): Update.
4540 (class symbol_needs_eval_context) <dwarf_call,
4541 dwarf_variable_value>: Update.
4542 (dwarf2_compile_expr_to_ax): Update.
4543
4544 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4545
4546 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4547 parameter.
4548 (dwarf2_evaluate_loc_desc_full): Update.
4549
4550 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4551
4552 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4553 parameter.
4554 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4555 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4556 dwarf2_per_objfile parameter.
4557 (decode_debug_loc_dwo_addresses): Likewise.
4558 (dwarf2_find_location_expression): Update.
4559 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4560 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4561 parameter.
4562 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4563 parameter.
4564 (locexpr_describe_location_1): Likewise.
4565 (locexpr_describe_location): Update.
4566
4567 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4568
4569 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4570 Remove.
4571 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4572 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4573 (dwarf2_compile_property_to_c): Update.
4574 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4575 use text offset from objfile.
4576 (locexpr_tracepoint_var_ref): Update.
4577 (locexpr_generate_c_location): Update.
4578 (loclist_describe_location): Update.
4579 (loclist_tracepoint_var_ref): Update.
4580 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4581 dwarf2_per_objfile parameter.
4582 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4583 use text offset from objfile.
4584 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4585
4586 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4587
4588 * dwarf2/expr.h (struct dwarf_expr_context)
4589 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4590 <offset>: Remove.
4591 <per_objfile>: New member.
4592 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4593 dwarf2_per_objfile parameter. Don't set offset, set
4594 per_objfile.
4595 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4596 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4597 a dwarf2_per_objfile object instead of an offset.
4598 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4599 constructor.
4600 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4601 to dwarf2_expr_executor constructor. Don't set offset.
4602 (dwarf2_fetch_cfa_info): Update.
4603 (struct dwarf2_frame_cache) <text_offset>: Remove.
4604 <per_objfile>: New field.
4605 (dwarf2_frame_cache): Update.
4606 (dwarf2_frame_prev_register): Update.
4607 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4608 <dwarf_evaluate_loc_desc>: Add constructor.
4609 (dwarf2_evaluate_loc_desc_full): Update.
4610 (dwarf2_locexpr_baton_eval): Update.
4611 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4612 Add constructor.
4613 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4614
4615 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4616
4617 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4618 addr_sized_int_type>: Move to dwarf2_cu.
4619 <int_type>: Move to dwarf2_per_objfile.
4620 (struct dwarf2_per_objfile) <int_type>: Move here.
4621 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4622 addr_sized_int_type>: Move here.
4623 (read_func_scope): Update.
4624 (read_array_type): Update.
4625 (read_tag_string_type): Update.
4626 (attr_to_dynamic_prop): Update.
4627 (dwarf2_per_cu_data::int_type): Rename to...
4628 (dwarf2_per_objfile::int_type): ... this.
4629 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4630 (dwarf2_cu::addr_sized_int_type): ... this.
4631 (read_subrange_type): Update.
4632 (dwarf2_per_cu_data::addr_type): Rename to...
4633 (dwarf2_cu::addr_type): ... this.
4634 (set_die_type): Update.
4635
4636 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4637
4638 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4639 data through per_cu->cu.
4640
4641 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4642
4643 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4644 dwarf2_per_cu_data parameter fo dwarf2_cu.
4645 (lookup_dwo_type_unit): Likewise.
4646 (read_cutu_die_from_dwo): Likewise.
4647 (lookup_dwo_unit): Likewise.
4648 (open_and_init_dwo_file): Likewise.
4649 (lookup_dwo_cutu): Likewise.
4650 (lookup_dwo_comp_unit): Likewise.
4651 (lookup_dwo_type_unit): Likewise.
4652 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4653 (cutu_reader::cutu_reader): Update.
4654
4655 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4656
4657 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4658 parameter.
4659 (process_full_type_unit): Likewise.
4660 (process_queue): Update.
4661
4662 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4663
4664 * dwarf2/read.c (recursively_compute_inclusions): Add
4665 dwarf2_per_objfile parameter.
4666 (compute_compunit_symtab_includes): Likewise.
4667 (process_cu_includes): Update.
4668
4669 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4670
4671 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4672 parameter.
4673 (create_type_unit_group): Update.
4674 (process_psymtab_comp_unit_reader): Update.
4675 (build_type_psymtabs_reader): Update.
4676
4677 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4678
4679 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4680 object through m_this_cu->cu.
4681
4682 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4683
4684 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4685 the info parameter.
4686 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4687
4688 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4689
4690 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4691 per_objfile parameter.
4692 (load_full_type_unit): Add per_objfile parameter.
4693 (read_signatured_type): Likewise.
4694 (load_full_comp_unit): Likewise.
4695 (load_cu): Likewise.
4696 (dw2_do_instantiate_symtab): Likewise.
4697 (dw2_get_file_names): Likewise.
4698 (dw2_map_symtabs_matching_filename): Update.
4699 (dw_expand_symtabs_matching_file_matcher): Update.
4700 (dw2_map_symbol_filenames): Update.
4701 (process_psymtab_comp_unit): Add per_objfile parameter.
4702 (build_type_psymtabs_1): Update.
4703 (process_skeletonless_type_unit): Update.
4704 (dwarf2_build_psymtabs_hard): Update.
4705 (load_partial_comp_unit): Add per_objfile parameter.
4706 (scan_partial_symbols): Update.
4707 (load_full_comp_unit): Add per_objfile parameter.
4708 (process_imported_unit_die): Update.
4709 (create_cus_hash_table): Update.
4710 (find_partial_die): Update.
4711 (dwarf2_read_addr_index): Update.
4712 (follow_die_offset): Update.
4713 (dwarf2_fetch_die_loc_sect_off): Update.
4714 (dwarf2_fetch_constant_bytes): Update.
4715 (dwarf2_fetch_die_type_sect_off): Update.
4716 (follow_die_sig_1): Update.
4717 (load_full_type_unit): Add per_objfile parameter.
4718 (read_signatured_type): Likewise.
4719
4720 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4721
4722 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4723 of objfile_name.
4724
4725 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4726
4727 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4728 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4729 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4730 field.
4731 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4732 (create_cus_from_index): Update.
4733 (dwarf2_read_gdb_index): Update.
4734 (create_cus_from_debug_names): Update.
4735 (dwarf2_read_debug_names): Update.
4736 (get_abbrev_section_for_cu): Update.
4737 (create_all_comp_units): Update.
4738 (read_attribute_value): Update.
4739 (get_debug_line_section): Update.
4740 * dwarf2/index-cache.c (index_cache::store): Update.
4741 * dwarf2/index-write.c (save_gdb_index_command): Update.
4742 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4743
4744 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4745
4746 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4747 member.
4748 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4749 dwarf2_per_cu_data::per_bfd.
4750 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4751 (create_type_unit_group): Likewise.
4752 (queue_comp_unit): Remove reference to
4753 per_cu->dwarf2_per_objfile.
4754 (maybe_queue_comp_unit): Likewise.
4755 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4756 (create_cus_hash_table): Assign new field.
4757
4758 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4759
4760 * dwarf2/read.c: Replace
4761 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4762 dwarf2_cu->per_objfile throughout.
4763
4764 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4765
4766 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4767 parameter, don't use per_cu->dwarf2_per_objfile.
4768 (dw2_instantiate_symtab): Likewise.
4769 (dw2_find_last_source_symtab): Update.
4770 (dw2_map_expand_apply): Update.
4771 (dw2_lookup_symbol): Update.
4772 (dw2_expand_symtabs_for_function): Update.
4773 (dw2_expand_all_symtabs): Update.
4774 (dw2_expand_symtabs_with_fullname): Update.
4775 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4776 don't use per_cu->dwarf2_per_objfile.
4777 (dw2_expand_marked_cus): Update.
4778 (dw2_find_pc_sect_compunit_symtab): Update.
4779 (dw2_debug_names_lookup_symbol): Update.
4780 (dw2_debug_names_expand_symtabs_for_function): Update.
4781 (dw2_debug_names_map_matching_symbols): Update.
4782 (dwarf2_psymtab::expand_psymtab): Update.
4783
4784 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4785
4786 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4787 <per_objfile>: New member.
4788 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4789 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4790 call to dwarf2_cu.
4791 (cutu_reader::cutu_reader): Update.
4792 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4793
4794 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4795
4796 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4797 struct dwarf2_per_objfile.
4798 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4799 dwarf2_per_bfd.
4800 * dwarf2/read.c (set_die_type): Update.
4801 (get_die_type_at_offset): Update.
4802
4803 2020-05-27 Tom Tromey <tom@tromey.com>
4804 Simon Marchi <simon.marchi@efficios.com>
4805
4806 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4807 method.
4808 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4809 get_symtab, set_symtab>: New methods.
4810 <m_symtabs>: New field.
4811 (struct dwarf2_psymtab): Derive from partial_symtab.
4812 <readin_p, get_compunit_symtab>: Declare methods.
4813 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4814 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4815 New methods.
4816 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4817 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4818 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4819 (dw2_symtab_iter_next, dw2_print_stats)
4820 (dw2_expand_symtabs_with_fullname)
4821 (dw2_expand_symtabs_matching_one)
4822 (dw_expand_symtabs_matching_file_matcher)
4823 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4824 (dw2_debug_names_iterator::next)
4825 (dw2_debug_names_map_matching_symbols)
4826 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4827 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4828 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4829 New methods.
4830 (get_compunit_symtab, process_full_comp_unit)
4831 (process_full_type_unit): Update.
4832 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4833
4834 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4835
4836 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4837 then introduce a new dwarf2_per_objfile type.
4838 <read_line_string>: Move to the new dwarf2_per_objfile type.
4839 <objfile>: Likewise.
4840 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4841 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4842 dwarf2_per_objfile->per_bfd.
4843 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4844 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4845 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4846 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4847 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4848 (dwarf2_per_objfile::locate_sections): Rename to...
4849 (dwarf2_per_bfd::locate_sections): ... this.
4850 (dwarf2_per_objfile::get_cutu): Rename to...
4851 (dwarf2_per_bfd::get_cutu): ... this.
4852 (dwarf2_per_objfile::get_cu): Rename to...
4853 (dwarf2_per_bfd::get_cu): ... this.
4854 (dwarf2_per_objfile::get_tu): Rename to...
4855 (dwarf2_per_bfd::get_tu): ... this.
4856 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4857 (dwarf2_per_bfd::allocate_per_cu): ... this.
4858 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4859 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4860 (get_gdb_index_contents_ftype): Change parameter from
4861 dwarf2_per_objfile to dwarf2_per_bfd.
4862 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4863 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4864
4865 2020-05-27 Tom Tromey <tom@tromey.com>
4866 Simon Marchi <simon.marchi@efficios.com>
4867
4868 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4869 (allocate_piece_closure): Set "per_objfile" member.
4870 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4871 (locexpr_describe_location, loclist_describe_location): Use new
4872 member.
4873 * dwarf2/read.c (read_call_site_scope)
4874 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4875 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4876 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4877 handle_data_member_location): Set per_objfile member.
4878 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4879 member.
4880 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4881
4882 2020-05-27 Tom Tromey <tom@tromey.com>
4883
4884 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4885 allocate_signatured_type>: Declare new methods.
4886 <m_num_psymtabs>: New member.
4887 (struct dwarf2_per_cu_data) <index>: New member.
4888 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4889 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4890 (create_cu_from_index_list): Use allocate_per_cu.
4891 (create_signatured_type_table_from_index)
4892 (create_signatured_type_table_from_debug_names)
4893 (create_debug_type_hash_table, add_type_unit)
4894 (read_comp_units_from_section): Use allocate_signatured_type.
4895
4896 2020-05-27 Tom Tromey <tom@tromey.com>
4897
4898 * psymtab.c (partial_map_expand_apply)
4899 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4900 (psym_lookup_global_symbol_language)
4901 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4902 (psym_print_stats, psym_expand_symtabs_for_function)
4903 (psym_map_symbol_filenames, psym_map_matching_symbols)
4904 (psym_expand_symtabs_matching)
4905 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4906 (maintenance_check_psymtabs): Update.
4907 * psympriv.h (struct partial_symtab) <readin_p,
4908 get_compunit_symtab>: Add objfile parameter.
4909 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4910 Likewise.
4911 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4912 get_compunit_symtab>: Likewise.
4913 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4914
4915 2020-05-27 Tom Tromey <tom@tromey.com>
4916
4917 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4918 member.
4919 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4920 (create_cu_from_index_list)
4921 (create_signatured_type_table_from_index)
4922 (create_signatured_type_table_from_debug_names)
4923 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4924 (dwarf2_create_include_psymtab)
4925 (create_debug_type_hash_table, add_type_unit)
4926 (create_type_unit_group, read_comp_units_from_section)
4927 (dwarf2_compute_name, create_cus_hash_table)
4928 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4929 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4930 obstack.
4931 (dw2_get_real_path): Likewise. Change argument to
4932 dwarf2_per_objfile.
4933
4934 2020-05-27 Luis Machado <luis.machado@linaro.org>
4935
4936 PR tdep/26000
4937 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4938 for ldrd (immediate).
4939
4940 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4941
4942 * command.h: Add comment giving the name of class_tui.
4943 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4944 create the fake command for the help for class_tui.
4945
4946 2020-05-26 Tom Tromey <tromey@adacore.com>
4947
4948 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4949 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4950 (val_atr): New function.
4951 (value_val_atr): Use it.
4952 * ada-valprint.c (print_optional_low_bound): Change low bound
4953 handling for enums.
4954 (val_print_packed_array_elements): Don't call discrete_position.
4955 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4956 discrete_position for enum types.
4957 * language.c (default_print_array_index): Change type.
4958 * language.h (struct language_defn) <la_print_array_index>: Add
4959 index_type parameter, change type of index_value.
4960 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4961 (default_print_array_index): Update.
4962 * valprint.c (maybe_print_array_index): Don't call
4963 value_from_longest. Update.
4964 (value_print_array_elements): Don't call discrete_position.
4965
4966 2020-05-26 Tom Tromey <tromey@adacore.com>
4967
4968 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4969 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4970
4971 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4972
4973 PR gdb/13519
4974 * avr-tdep.c (avr_integer_to_address): Return data or code
4975 address accordingly to the second 'type' argument of the
4976 function.
4977
4978 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4979
4980 * infcmd.c, inferior.h: (construct_inferior_arguments):
4981 Moved function from here to gdbsupport/common-inferior.{h,cc}
4982
4983 2020-05-23 Tom Tromey <tom@tromey.com>
4984
4985 Revert commit eca1f90c:
4986 * NEWS: Remove entry for completion styling.
4987 * completer.c (_rl_completion_prefix_display_length): Move
4988 declaration later.
4989 (gdb_fnprint): Revert.
4990 (gdb_display_match_list_1): Likewise.
4991 * cli/cli-style.c (completion_prefix_style)
4992 (completion_difference_style, completion_suffix_style): Remove.
4993 (_initialize_cli_style): Revert.
4994 * cli/cli-style.h (completion_prefix_style)
4995 (completion_difference_style, completion_suffix_style): Don't
4996 declare.
4997
4998 2020-05-24 Pedro Alves <palves@redhat.com>
4999
5000 * symtab.c (completion_list_add_name): Return boolean indication
5001 of whether the symbol matched.
5002 (completion_list_add_symbol): Don't try to remove C++ aliases if
5003 the symbol didn't match in the first place.
5004 * symtab.h (completion_list_add_name): Return bool.
5005
5006 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
5007
5008 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
5009 type::field.
5010
5011 2020-05-23 Joel Brobecker <brobecker@adacore.com>
5012
5013 GDB 9.2 released.
5014
5015 2020-05-23 Tom Tromey <tom@tromey.com>
5016
5017 * NEWS: Add entry for completion styling.
5018 * completer.c (_rl_completion_prefix_display_length): Move
5019 declaration earlier.
5020 (gdb_fnprint): Use completion_style.
5021 (gdb_display_match_list_1): Likewise.
5022 * cli/cli-style.c (completion_prefix_style)
5023 (completion_difference_style, completion_suffix_style): New
5024 globals.
5025 (_initialize_cli_style): Register new globals.
5026 * cli/cli-style.h (completion_prefix_style)
5027 (completion_difference_style, completion_suffix_style): Declare.
5028
5029 2020-05-23 Pedro Alves <palves@redhat.com>
5030
5031 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
5032 (parse_escape): Use ISDIGIT instead of isdigit.
5033 (puts_debug): Use gdb_isprint instead of isprint.
5034 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
5035 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
5036 ISSPACE instead of isspace.
5037 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
5038 instead of isspace.
5039 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
5040 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
5041 instead of isxdigit and ISDIGIT instead of isdigit.
5042
5043 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5044
5045 * gdbtypes.h (struct type) <field>: New method.
5046 (TYPE_FIELDS): Remove, replace all uses with either type::fields
5047 or type::field.
5048
5049 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5050
5051 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
5052 (TYPE_FIELDS): Use type::fields. Change all call sites that
5053 modify the propery to use type::set_fields instead.
5054
5055 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5056
5057 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
5058 type::num_fields instead.
5059
5060 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5061
5062 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
5063 methods.
5064 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
5065 that modify the number of fields to use type::set_num_fields
5066 instead.
5067
5068 2020-05-22 Tom Tromey <tromey@adacore.com>
5069
5070 * compile/compile-object-load.h (munmap_list_free): Don't
5071 declare.
5072
5073 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
5074
5075 * annotate.c (annotate_source_line): Update return type, add call
5076 to update current symtab and line.
5077 * annotate.h (annotate_source_line): Update return type, and
5078 extend header comment.
5079 * source.c (info_line_command): Check annotation_level before
5080 calling annotate_source_line.
5081 * stack.c (print_frame_info): If calling annotate_source_line
5082 returns true, then don't print any other source line information.
5083
5084 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
5085
5086 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
5087
5088 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
5089
5090 * coffread.c (patch_type): Remove NULL check before xfree.
5091 * corefile.c (set_gnutarget): Likewise.
5092 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
5093 * exec.c (build_section_table): Likewise.
5094 * remote.c (remote_target::pass_signals): Likewise.
5095 * utils.c (n_spaces): Likewise.
5096 * cli/cli-script.c (document_command): Likewise.
5097 * i386-windows-tdep.c (core_process_module_section): Likewise.
5098 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
5099
5100 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
5101
5102 * symfile.c (reread_symbols): Clear objfile's section_offsets
5103 vector and section indices, re-compute them by calling
5104 sym_offsets.
5105
5106 2020-05-20 Tom Tromey <tromey@adacore.com>
5107
5108 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
5109 (desc_one_bound, desc_index_type): Compute field name.
5110
5111 2020-05-20 Tom de Vries <tdevries@suse.de>
5112
5113 PR symtab/25833
5114 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
5115
5116 2020-05-20 Alan Modra <amodra@gmail.com>
5117
5118 PR 25993
5119 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
5120 bfd_set_filename.
5121 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
5122 passed to bfd_set_filename.
5123 * symfile-mem.c (add_vsyscall_page): Likewise for string
5124 passed to symbol_file_add_from_memory.
5125 (symbol_file_add_from_memory): Make name param a const char* and
5126 don't strdup.
5127
5128 2020-05-20 Alan Modra <amodra@gmail.com>
5129
5130 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
5131 rather than accessing bfd->filename directly.
5132 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
5133 and use bfd_section_name.
5134 * dwarf2/frame.c (decode_frame_entry): Likewise.
5135 * exec.c (exec_set_section_address): Likewise.
5136 * solib-aix.c (solib_aix_bfd_open): Likewise.
5137 * stap-probe.c (get_stap_base_address): Likewise.
5138 * symfile.c (reread_symbols): Likewise.
5139
5140 2020-05-19 Tom Tromey <tromey@adacore.com>
5141
5142 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
5143
5144 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5145
5146 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
5147
5148 2020-05-19 Pedro Alves <palves@redhat.com>
5149
5150 * NEWS (set exec-file-mismatch): Adjust entry.
5151 * exec.c: Include "build-id.h".
5152 (validate_exec_file): Try to match build IDs instead of filenames.
5153 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
5154 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
5155 and pass down 'warn_if_slow'.
5156 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
5157 gdb_bfd_open_closure to pass it down.
5158 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
5159
5160 2020-05-19 Pedro Alves <palves@redhat.com>
5161
5162 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
5163 * target.c (target_fileio_open_1): Rename to target_fileio_open
5164 and make extern. Use bool.
5165 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
5166 (target_fileio_read_alloc_1): Adjust.
5167 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
5168 (target_fileio_open_warn_if_slow): Delete declaration.
5169
5170 2020-05-19 Pedro Alves <palves@redhat.com>
5171
5172 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
5173 Adjust all callers.
5174
5175 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
5176
5177 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
5178 whether disp is negative.
5179
5180 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5181
5182 * symfile.h (struct symfile_segment_data)
5183 <~symfile_segment_data>: Remove.
5184 <segment_info>: Change to std::vector.
5185 * symfile.c (default_symfile_segments): Update.
5186 * elfread.c (elf_symfile_segments): Update.
5187
5188 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5189
5190 * symfile.h (struct symfile_segment_data) <struct segment>: New.
5191 <segments>: New.
5192 <segment_bases, segment_sizes>: Remove.
5193 * symfile.c (default_symfile_segments): Update.
5194 * elfread.c (elf_symfile_segments): Update.
5195 * remote.c (remote_target::get_offsets): Update.
5196 * solib-target.c (solib_target_relocate_section_addresses):
5197 Update.
5198
5199 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5200
5201 * symfile.h (struct symfile_segment_data): Initialize fields.
5202 <~symfile_segment_data>: Add.
5203 (symfile_segment_data_up): New.
5204 (struct sym_fns) <sym_segments>: Return a
5205 symfile_segment_data_up.
5206 (default_symfile_segments): Return a symfile_segment_data_up.
5207 (free_symfile_segment_data): Remove.
5208 (get_symfile_segment_data): Return a symfile_segment_data_up.
5209 * symfile.c (default_symfile_segments): Likewise.
5210 (get_symfile_segment_data): Likewise.
5211 (free_symfile_segment_data): Remove.
5212 (symfile_find_segment_sections): Update.
5213 * elfread.c (elf_symfile_segments): Return a
5214 symfile_segment_data_up.
5215 * remote.c (remote_target::get_offsets): Update.
5216 * solib-target.c (solib_target_relocate_section_addresses):
5217 Update.
5218 * symfile-debug.c (debug_sym_segments): Return a
5219 symfile_segment_data_up.
5220
5221 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5222
5223 PR build/25981
5224 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
5225 Hardcode register numbers.
5226
5227 PR build/25981
5228 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
5229 procfs_find_LDT_entry): Remove.
5230 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
5231 procfs_find_LDT_entry): Remove.
5232 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
5233 Remove.
5234
5235 2020-05-17 Pedro Alves <palves@redhat.com>
5236 Andrew Burgess <andrew.burgess@embecosm.com>
5237 Keno Fischer <keno@juliacomputing.com>
5238
5239 PR gdb/25741
5240 * breakpoint.c (build_target_condition_list): Update comments.
5241 (build_target_command_list): Update comments and skip matching
5242 locations.
5243 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
5244 a separate function. Simplify "set breakpoint auto-hw off"
5245 handling.
5246 (insert_breakpoints): Update comment.
5247 (tracepoint_locations_match): New parameter. For breakpoints,
5248 compare location types too, if the caller wants to.
5249 (handle_automatic_hardware_breakpoints): New functions.
5250 (bp_location_is_less_than): Also sort by location type and
5251 hardware breakpoint length.
5252 (update_global_location_list): Handle "set breakpoint auto-hw on"
5253 here.
5254 (update_breakpoint_locations): Ask breakpoint_locations_match to
5255 ignore location types.
5256
5257 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5258
5259 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
5260 type::name instead.
5261
5262 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5263
5264 * gdbtypes.h (struct type) <name, set_name>: New methods.
5265 (TYPE_CODE): Use type::name. Change all call sites used to set
5266 the name to use type::set_name instead.
5267
5268 2020-05-16 Tom Tromey <tom@tromey.com>
5269
5270 * top.c (quit_force): Update.
5271 * infrun.c (handle_no_resumed): Update.
5272 * top.h (all_uis): New function.
5273 (ALL_UIS): Remove.
5274
5275 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5276
5277 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
5278
5279 2020-05-16 Pedro Alves <palves@redhat.com>
5280
5281 * ia64-linux-nat.c
5282 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
5283 Declare method.
5284 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
5285
5286 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
5287
5288 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
5289 (sparc64_adi_info): Likewise.
5290
5291 2020-05-15 Tom Tromey <tom@tromey.com>
5292
5293 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
5294 block_objfile.
5295 (lookup_objfile_from_block): Remove.
5296 (lookup_symbol_in_block, lookup_symbol_in_static_block)
5297 (lookup_global_symbol): Use block_objfile.
5298 * symtab.h (lookup_objfile_from_block): Don't declare.
5299 * printcmd.c (clear_dangling_display_expressions): Use
5300 block_objfile.
5301 * parse.c (operator_check_standard): Use block_objfile.
5302
5303 2020-05-15 Tom Tromey <tom@tromey.com>
5304
5305 * language.c (language_alloc_type_symbol): Set
5306 SYMBOL_SECTION.
5307 * symtab.c (initialize_objfile_symbol): Remove.
5308 (allocate_symbol): Remove.
5309 (allocate_template_symbol): Remove.
5310 * dwarf2/read.c (fixup_go_packaging): Use "new".
5311 (new_symbol): Use "new".
5312 (read_variable): Don't call initialize_objfile_symbol. Use
5313 "new".
5314 (read_func_scope): Use "new".
5315 * xcoffread.c (process_xcoff_symbol): Don't call
5316 initialize_objfile_symbol.
5317 (SYMBOL_DUP): Remove.
5318 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
5319 "new".
5320 * symtab.h (allocate_symbol, initialize_objfile_symbol)
5321 (allocate_template_symbol): Don't declare.
5322 (struct symbol): Add copy constructor. Change defaults.
5323 * jit.c (finalize_symtab): Use "new".
5324 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
5325 Use "new".
5326 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5327 (common_block_end): Use "new".
5328 * mdebugread.c (parse_symbol): Use "new".
5329 (new_symbol): Likewise.
5330
5331 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5332
5333 * NEWS: Mention changes to help and apropos.
5334
5335 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5336
5337 * command.h (enum command_class): Improve comments, document
5338 that class_alias is for user-defined aliases, give the class
5339 name for each class, remove unused class_xdb.
5340 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
5341 * breakpoint.c (_initialize_breakpoint): Replace class_alias
5342 by a precise class.
5343 * infcmd.c (_initialize_infcmd): Likewise.
5344 * reverse.c (_initialize_reverse): Likewise.
5345 * stack.c (_initialize_stack): Likewise.
5346 * symfile.c (_initialize_symfile): Likewise.
5347 * tracepoint.c (_initialize_tracepoint): Likewise.
5348
5349 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5350
5351 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
5352 when their aliased command is traversed.
5353 (help_cmd): Add fput_command_names_styled call to
5354 output command name and aliases when command has an alias.
5355
5356 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5357
5358 * cli/cli-decode.h (help_cmd_list): Remove declaration.
5359 * cli/cli-decode.c (help_cmd_list): Declare as static,
5360 remove prefix argument, use bool for recurse arg, rework to show the aliases of
5361 a command together with the command.
5362 (fput_command_name_styled, fput_command_names_styled): New functions.
5363 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
5364 fput_command_name_styled.
5365 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
5366 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
5367
5368 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5369
5370 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
5371 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
5372 * command.h (cmd_show_list): Likewise.
5373 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
5374 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
5375
5376 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5377
5378 * unittests/command-def-selftests.c (traverse_command_structure):
5379 Verify all commands of a list have the same prefix command and
5380 that only the top cmdlist commands have a null prefix.
5381
5382 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5383
5384 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
5385 as prefix, not one of its aliases.
5386 (set_cmd_prefix): Remove.
5387 (do_add_cmd): Centralize the setting of the prefix of a command, when
5388 command is defined after its full chain of prefix commands.
5389 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
5390 (add_setshow_cmd_full): Likewise.
5391 (update_prefix_field_of_prefixed_commands): New function.
5392 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
5393 update_prefix_field_of_prefixed_commands.
5394 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
5395 addresses of remote_set_cmdlist and remote_show_cmdlist given
5396 as argument, not the address of an argument.
5397 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5398 * gdb/remote.c (_initialize_remote): Likewise.
5399
5400 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5401
5402 * cli/cli-cmds.c (alias_command): Check for an existing alias
5403 using lookup_cmd_composition, as valid_command_p is too strict
5404 and forbids aliases that are the prefix of an existing alias
5405 or command.
5406 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5407 command is properly recognised as a valid command.
5408
5409 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5410
5411 * unittests/help-doc-selftests.c: Rename to
5412 unittests/command-def-selftests.c
5413 * unittests/command-def-selftests.c (help_doc_tests): Update some
5414 comments.
5415 (command_structure_tests, traverse_command_structure): New namespace
5416 and function.
5417 (command_structure_invariants_tests): New function.
5418 (_initialize_command_def_selftests) Renamed from
5419 _initialize_help_doc_selftests, register command_structure_invariants
5420 selftest.
5421
5422 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5423
5424 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5425 an alias of 'show'.
5426
5427 2020-05-15 Joel Brobecker <brobecker@adacore.com>
5428
5429 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5430 ada_is_fixed_point_type. Update all callers.
5431 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5432 all callers.
5433 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5434 Update all callers.
5435 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5436 print_fixed_point_type. Update all callers.
5437 * ada-valprint.c (ada_value_print_num): Replace call to
5438 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5439
5440 2020-05-14 Kevin Buettner <kevinb@redhat.com>
5441
5442 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5443 processors.
5444 (cpu_supports_bts): Add CV_AMD case.
5445
5446 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5447 Simon Marchi <simon.marchi@efficios.com>
5448
5449 * infrun.c (stop_all_threads): Collect multiple wait events at
5450 each pass.
5451
5452 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5453
5454 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5455 type::code instead.
5456
5457 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5458
5459 * gdbtypes.h (struct type) <code, set_code>: New methods.
5460 (TYPE_CODE): Use type::code. Change all call sites used to set
5461 the code to use type::set_code instead.
5462
5463 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5464 Tom de Vries <tdevries@suse.de>
5465 Pedro Alves <palves@redhat.com>
5466
5467 PR threads/25478
5468 * infrun.c (stop_all_threads): Do NOT ignore
5469 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5470 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5471 received.
5472 (handle_no_resumed): Remove code handling a live inferior with no
5473 threads.
5474 * remote.c (has_single_non_exited_thread): New.
5475 (remote_target::update_thread_list): Do not delete a thread if is
5476 the last thread of the process.
5477 * thread.c (thread_select): Call delete_exited_threads instead of
5478 prune_threads.
5479
5480 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5481
5482 * infrun.c (stop_all_threads): Enable/disable thread events of all
5483 targets. Move a debug message denoting the end of the function
5484 into the SCOPED_EXIT block.
5485
5486 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5487
5488 * process-stratum-target.h: Include <set>.
5489 (all_non_exited_process_targets, switch_to_target_no_thread): New
5490 function declarations.
5491 * process-stratum-target.c (all_non_exited_process_targets)
5492 (switch_to_target_no_thread): New function implementations.
5493
5494 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5495
5496 * infrun.c (handle_inferior_event): Extract out a piece of code
5497 into...
5498 (mark_non_executing_threads): ...this new function.
5499
5500 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5501
5502 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5503 use.
5504
5505 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5506
5507 * regcache.c (regcache_read_pc_protected): New function
5508 implementation that returns 0 if the PC cannot read via
5509 'regcache_read_pc'.
5510 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5511 instead of 'regcache_read_pc'.
5512 (keep_going_pass_signal): Ditto.
5513
5514 2020-05-13 Tom Tromey <tromey@adacore.com>
5515
5516 * ada-lang.c (align_value): Remove.
5517 (ada_template_to_fixed_record_type_1): Use align_up.
5518
5519 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5520
5521 * async-event.c: Update the copyright year.
5522 * async-event.h: Update the copyright year.
5523
5524 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
5525
5526 * objfiles.h (is_addr_in_objfile,
5527 shared_objfile_contains_address_p): Return bool.
5528 * objfile.c (is_addr_in_objfile,
5529 shared_objfile_contains_address_p): Return bool.
5530
5531 2020-05-11 Tom Tromey <tromey@adacore.com>
5532
5533 * cli/cli-cmds.c (info_command): Restore.
5534 (_initialize_cli_cmds): Use add_prefix_command for "info".
5535 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5536
5537 2020-05-11 Tom Tromey <tromey@adacore.com>
5538
5539 * ada-lang.c (ada_value_primitive_field): Now public.
5540 * ada-lang.h (ada_value_primitive_field): Declare.
5541 * ada-valprint.c (print_field_values): Use
5542 ada_value_primitive_field for wrapper fields.
5543
5544 2020-05-11 Tom de Vries <tdevries@suse.de>
5545
5546 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5547 MODULE_DOMAIN.
5548
5549 2020-05-11 Tom de Vries <tdevries@suse.de>
5550
5551 PR symtab/25941
5552 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5553 with length 0, if not gdb-produced.
5554 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5555
5556 2020-05-09 Tom de Vries <tdevries@suse.de>
5557
5558 PR gdb/25955
5559 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5560 calculation.
5561
5562 2020-05-09 Tom Tromey <tom@tromey.com>
5563
5564 * top.c (server_command): Now bool.
5565 * top.h (server_command): Now bool.
5566
5567 2020-05-08 Tom Tromey <tromey@adacore.com>
5568
5569 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5570 already being processed.
5571
5572 2020-05-08 Tom Tromey <tom@tromey.com>
5573
5574 * printcmd.c (struct display) <next>: Remove.
5575 <display>: New constructor.
5576 <exp_string>: Now a std::string.
5577 <enabled_p>: Now a bool.
5578 (display_number): Move definition earlier.
5579 (displays): Rename from display_chain. Now a std::vector.
5580 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5581 (display_command): Update.
5582 (do_one_display, disable_display)
5583 (enable_disable_display_command, do_enable_disable_display):
5584 Update.
5585 (free_display): Remove.
5586 (clear_displays): Rewrite.
5587 (delete_display): Update.
5588 (map_display_numbers): Use function_view. Remove "data"
5589 parameter. Update.
5590 (do_delete_display): Remove.
5591 (undisplay_command): Update.
5592 (do_one_display, do_displays, disable_display)
5593 (info_display_command): Update.
5594 (do_enable_disable_display): Remove.
5595 (enable_disable_display_command)
5596 (clear_dangling_display_expressions): Update.
5597
5598 2020-05-08 Tom Tromey <tom@tromey.com>
5599
5600 * symtab.c (set_symbol_cache_size)
5601 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5602 (maintenance_print_symbol_cache_statistics): Update.
5603 * symmisc.c (print_symbol_bcache_statistics)
5604 (print_objfile_statistics, maintenance_print_objfiles)
5605 (maintenance_info_symtabs, maintenance_check_symtabs)
5606 (maintenance_expand_symtabs, maintenance_info_line_tables):
5607 Update.
5608 * symfile-debug.c (set_debug_symfile): Update.
5609 * source.c (forget_cached_source_info): Update.
5610 * python/python.c (gdbpy_progspaces): Update.
5611 * psymtab.c (maintenance_info_psymtabs): Update.
5612 * probe.c (parse_probes): Update.
5613 * linespec.c (iterate_over_all_matching_symtabs)
5614 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5615 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5616 * exec.c (exec_target::close): Update.
5617 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5618 * breakpoint.c (print_one_breakpoint_location)
5619 (create_longjmp_master_breakpoint)
5620 (create_std_terminate_master_breakpoint): Update.
5621 * progspace.c (program_spaces): Now a std::vector.
5622 (maybe_new_address_space): Update.
5623 (add_program_space): Remove.
5624 (program_space::program_space): Update.
5625 (remove_program_space): Update.
5626 (number_of_program_spaces): Remove.
5627 (print_program_space, update_address_spaces): Update.
5628 * progspace.h (program_spaces): Change type.
5629 (ALL_PSPACES): Remove.
5630 (number_of_program_spaces): Don't declare.
5631 (struct program_space) <next>: Remove.
5632
5633 2020-05-08 Tom Tromey <tom@tromey.com>
5634
5635 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5636 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5637 (enable_break): Update.
5638 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5639 (frv_fdpic_find_canonical_descriptor): Update.
5640 (frv_fetch_objfile_link_map): Update.
5641 * progspace.c (program_space::free_all_objfiles): Update.
5642 (program_space::solibs): New method.
5643 * progspace.h (struct program_space) <solibs>: New method.
5644 * solist.h (master_so_list): Don't declare.
5645 (ALL_SO_LIBS): Remove.
5646 * solib.h (so_list_head): Remove.
5647 (update_solib_list): Update comment.
5648 * solib.c (master_so_list): Remove.
5649 (solib_used, update_solib_list, solib_add)
5650 (info_sharedlibrary_command, clear_solib)
5651 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5652
5653 2020-05-08 Tom Tromey <tom@tromey.com>
5654
5655 * extension.c (extension_languages): Now a std::array.
5656 (ALL_EXTENSION_LANGUAGES): Remove.
5657 (get_ext_lang_defn, get_ext_lang_of_file)
5658 (eval_ext_lang_from_control_command): Update.
5659 (finish_ext_lang_initialization)
5660 (auto_load_ext_lang_scripts_for_objfile)
5661 (ext_lang_type_printers::ext_lang_type_printers)
5662 (apply_ext_lang_type_printers)
5663 (ext_lang_type_printers::~ext_lang_type_printers)
5664 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5665 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5666 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5667 (get_matching_xmethod_workers, ext_lang_colorize)
5668 (ext_lang_before_prompt): Update.
5669 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5670
5671 2020-05-08 Tom Tromey <tom@tromey.com>
5672
5673 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5674 overload.
5675 <swap_string, m_string>: Remove.
5676 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5677 Update.
5678 * stabsread.c (define_symbol, read_type): Update.
5679 * linespec.c (find_linespec_symbols): Update.
5680 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5681 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5682 * dbxread.c (read_dbx_symtab): Update.
5683 * cp-support.h (cp_canonicalize_string_full)
5684 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5685 Return unique_xmalloc_ptr.
5686 * cp-support.c (inspect_type): Update.
5687 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5688 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5689 Likewise.
5690 * c-typeprint.c (print_name_maybe_canonical): Update.
5691 * break-catch-throw.c (check_status_exception_catchpoint):
5692 Update.
5693
5694 2020-05-08 Tom de Vries <tdevries@suse.de>
5695
5696 * infrun.c (follow_fork): Copy current_line and current_symtab to
5697 child thread.
5698
5699 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5700
5701 * async-event.c (struct async_signal_handler, struct
5702 async_event_handler): Reformat, remove typedef.
5703
5704 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5705
5706 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5707 access thistype->main_type->dyn_prop_list directly.
5708
5709 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5710
5711 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5712 (remove_dyn_prop): Remove. Update all users to use
5713 type::remove_dyn_prop.
5714 * gdbtypes.c (remove_dyn_prop): Rename to...
5715 (type::remove_dyn_prop): ... this.
5716
5717 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5718
5719 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5720 (add_dyn_prop): Remove. Update all users to use
5721 type::add_dyn_prop.
5722 * gdbtypes.c (add_dyn_prop): Rename to...
5723 (type::add_dyn_prop): ... this.
5724
5725 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5726
5727 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5728 (get_dyn_prop): Remove. Update all users to use
5729 type::dyn_prop.
5730 * gdbtypes.c (get_dyn_prop): Rename to...
5731 (type::dyn_prop): ... this.
5732
5733 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5734
5735 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5736
5737 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5738
5739 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5740 instruction, skip it if it's there.
5741
5742 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
5743
5744 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5745
5746 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
5747
5748 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5749 * gdbtypes.c (recursive_dump_type): Remove use of
5750 TYPE_INCOMPLETE.
5751
5752 2020-05-03 Tom Tromey <tom@tromey.com>
5753
5754 * breakpoint.c (catch_command, tcatch_command): Remove.
5755 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5756 add_show_prefix_cmd.
5757 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5758 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5759 Remove.
5760 (add_internal_problem_command): Use add_basic_prefix_cmd,
5761 add_show_prefix_cmd.
5762 * mips-tdep.c (set_mipsfpu_command): Remove.
5763 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5764 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5765 (_initialize_index_cache): Use add_basic_prefix_cmd.
5766 * memattr.c (dummy_cmd): Remove.
5767 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5768 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5769 (_initialize_tui_win): Use add_basic_prefix_cmd,
5770 add_show_prefix_cmd.
5771 * cli/cli-logging.c (set_logging_command): Remove.
5772 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5773 add_show_prefix_cmd.
5774 (show_logging_command): Remove.
5775 * target.c (target_command): Remove.
5776 (add_target): Use add_basic_prefix_cmd.
5777
5778 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
5779
5780 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5781
5782 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5783
5784 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5785 info_command.
5786
5787 2020-04-30 Kamil Rytarowski <n54@gmx.com>
5788
5789 * nbsd-nat.c (nbsd_enable_proc_events)
5790 (nbsd_nat_target::post_startup_inferior): Add.
5791 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5792 (nbsd_nat_target::update_thread_list): Rewrite.
5793 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5794 "PTRACE_LWP_CREATE".
5795 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5796
5797 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5798
5799 * stack.c (_initialize_stack): Remove duplicated creation
5800 of "frame" command and "f" alias.
5801
5802 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5803
5804 PR gdb/18706
5805 * gdbtypes.c (check_typedef): Calculate size of array of
5806 stubbed type.
5807
5808 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5809
5810 PR gdb/15559
5811 * i386-tdep.c (i386_push_dummy_call): Call
5812 i386_thiscall_push_dummy_call.
5813 (i386_thiscall_push_dummy_call): New function.
5814 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5815 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5816 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5817
5818 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5819
5820 * gdbarch.sh (do_read): Add shellcheck disable directive for
5821 warning SC2162.
5822
5823 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5824
5825 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5826 "referenced but not assigned" warning.
5827
5828 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5829
5830 * gdbarch.sh: Remove code that sets fallbackdefault.
5831
5832 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5833
5834 * gdbarch.sh: Use shell operators && and || instead of
5835 -a and -o.
5836
5837 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5838
5839 * gdbarch.sh: Use $(...) instead of `...`.
5840
5841 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5842
5843 * gdbarch.sh: Use double quotes around variables.
5844
5845 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5846
5847 * gdbarch.sh: Use %s with printf, instead of variables in the
5848 format string.
5849
5850 2020-04-29 Tom Tromey <tromey@adacore.com>
5851
5852 PR ada/25875:
5853 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5854 type fields here.
5855 (read_enumeration_type): Call
5856 update_enumeration_type_from_children later. Update comments.
5857 (process_enumeration_scope): Don't create type fields.
5858
5859 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5860
5861 * nbsd-tdep.c: Include "xml-syscall.h".
5862 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5863
5864 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5865
5866 * nbsd-nat.c: Include "sys/wait.h".
5867 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5868 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5869 (nbsd_nat_target::remove_exec_catchpoint)
5870 (nbsd_nat_target::set_syscall_catchpoint): Add.
5871 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5872 (nbsd_nat_target::insert_exec_catchpoint)
5873 (nbsd_nat_target::remove_exec_catchpoint)
5874 (nbsd_nat_target::set_syscall_catchpoint): Add.
5875 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5876 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5877 `nbsd_get_syscall_number'.
5878
5879 2020-04-29 Tom Tromey <tom@tromey.com>
5880
5881 * stack.c (print_block_frame_labels): Remove.
5882
5883 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
5884
5885 PR gdb/17320
5886 * ada-valprint.c (val_print_packed_array_elements): Move array
5887 end bracket to new line.
5888 (ada_val_print_string): Remove extra spaces before first array
5889 element.
5890 * c-valprint.c (c_value_print_array): Likewise.
5891 * m2-valprint.c (m2_print_array_contents): Likewise.
5892 (m2_value_print_inner): Likewise.
5893 * p-valprint.c (pascal_value_print_inner): Likewise.
5894 * valprint.c (generic_val_print_array): Likewise.
5895 (value_print_array_elements): Move first array element and array
5896 end bracket to new line.
5897
5898 2020-04-29 Tom de Vries <tdevries@suse.de>
5899
5900 PR symtab/25889
5901 * linespec.c (find_method): Fix ix calculation.
5902
5903 2020-04-28 Kamil Rytarowski <n54@gmx.com>
5904
5905 * syscalls/update-netbsd.sh: New file.
5906 * syscalls/netbsd.xml: Regenerate.
5907 * data-directory/Makefile.in: Register `netbsd.xml' in
5908 `SYSCALLS_FILES'.
5909
5910 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5911
5912 * syscalls/update-freebsd.sh: Add double quotes.
5913
5914 2020-04-28 Tom Tromey <tom@tromey.com>
5915
5916 * NEWS: Update.
5917 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5918 (cmdpy_init): Allow class_tui.
5919
5920 2020-04-28 Mark Williams <mark@myosotissp.com>
5921
5922 PR gdb/24480
5923 * dwarf2read.c: Add missing assingments to list_in_scope when
5924 start_symtab was already called.
5925
5926 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5927
5928 PR gdb/25881
5929 * dwarf2/read.c (offset_map_type): Use
5930 gdb:hash_enum<sect_offset> as hash function.
5931
5932 2020-04-28 Tom de Vries <tdevries@suse.de>
5933
5934 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5935 with DW_AT_signature.
5936
5937 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
5938
5939 * configure.ac: Remove check for fs_base/gs_base in
5940 user_regs_struct.
5941 * configure: Re-generate.
5942 * config.in: Re-generate.
5943 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5944 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5945 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5946
5947 2020-04-27 Luis Machado <luis.machado@linaro.org>
5948
5949 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5950 problematic inline frame unwinding situation.
5951 * frame.c (frame_id_computed_p): New function.
5952 * frame.h (frame_id_computed_p): New prototype.
5953
5954 2020-04-26 Tom Tromey <tom@tromey.com>
5955
5956 * command.h (enum command_class) <class_pseudo>: Remove.
5957
5958 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5959
5960 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5961 and whitespace.
5962
5963 2020-04-25 Kamil Rytarowski <n54@gmx.com>
5964
5965 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5966 `PT_GET_PROCESS_STATE' block.
5967
5968 2020-04-24 Tom Tromey <tom@tromey.com>
5969
5970 * symtab.h (symbol_get_demangled_name): Don't declare.
5971 * symtab.c (symbol_get_demangled_name): Remove.
5972 (general_symbol_info::natural_name)
5973 (general_symbol_info::demangled_name): Update.
5974
5975 2020-04-24 Tom Tromey <tom@tromey.com>
5976
5977 PR rust/25025:
5978 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5979
5980 2020-04-24 Tom Tromey <tom@tromey.com>
5981
5982 PR symtab/12707:
5983 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5984 exists.
5985 (new_symbol): Likewise.
5986 * compile/compile-object-load.c (get_out_value_type): Use
5987 symbol_matches_search_name.
5988
5989 2020-04-24 Tom Tromey <tom@tromey.com>
5990
5991 * dwarf2/read.c (add_partial_symbol): Do not call
5992 compute_and_set_names.
5993
5994 2020-04-24 Tom Tromey <tom@tromey.com>
5995
5996 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5997 overload.
5998
5999 2020-04-24 Tom Tromey <tom@tromey.com>
6000
6001 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
6002 (add_psymbol_to_list): New overload. Make old overload call new
6003 one.
6004 * psympriv.h (add_psymbol_to_list): New overload.
6005
6006 2020-04-24 Tom Tromey <tom@tromey.com>
6007
6008 * dwarf2/read.c (partial_die_info::read) <case
6009 DW_AT_linkage_name>: Use value_as_string.
6010 (dwarf2_string_attr): Use value_as_string.
6011 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
6012 method.
6013 * dwarf2/attribute.c (attribute::value_as_string): New method.
6014
6015 2020-04-24 Tom Tromey <tom@tromey.com>
6016
6017 * symtab.c (general_symbol_info::natural_name)
6018 (general_symbol_info::demangled_name): Check for language_rust.
6019
6020 2020-04-24 Tom Tromey <tom@tromey.com>
6021
6022 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
6023 (dwarf2_physname): ... from here.
6024 (partial_die_info::read): Add Rust "{" hack.
6025
6026 2020-04-24 Tom Tromey <tom@tromey.com>
6027
6028 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
6029 method.
6030 (symbol_set_demangled_name): Don't declare.
6031 * symtab.c (general_symbol_info::set_demangled_name): Rename from
6032 symbol_set_demangled_name.
6033 (general_symbol_info::set_language)
6034 (general_symbol_info::compute_and_set_names): Update.
6035 * minsyms.c (minimal_symbol_reader::install): Update.
6036 * dwarf2/read.c (new_symbol): Update.
6037
6038 2020-04-24 Tom Tromey <tromey@adacore.com>
6039
6040 PR python/23662:
6041 * python/py-type.c (convert_field): Handle
6042 FIELD_LOC_KIND_DWARF_BLOCK.
6043 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
6044 (typy_get_dynamic): Nw function.
6045 (type_object_getset): Add "dynamic".
6046 * NEWS: Add entry.
6047
6048 2020-04-24 Tom Tromey <tromey@adacore.com>
6049
6050 * ada-typeprint.c (print_choices, print_variant_part)
6051 (print_record_field_types_dynamic): New functions.
6052 (print_record_field_types): Use print_record_field_types_dynamic.
6053
6054 2020-04-24 Tom Tromey <tromey@adacore.com>
6055
6056 * dwarf2/read.c (handle_data_member_location): New overload.
6057 (dwarf2_add_field): Use it.
6058 (decode_locdesc): Add "computed" parameter. Update comment.
6059 * gdbtypes.c (is_dynamic_type_internal): Also look for
6060 FIELD_LOC_KIND_DWARF_BLOCK.
6061 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
6062 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
6063 virtual base classes.
6064 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
6065 FIELD_LOC_KIND_DWARF_BLOCK.
6066
6067 2020-04-24 Tom Tromey <tromey@adacore.com>
6068
6069 * dwarf2/read.c (read_structure_type): Handle dynamic length.
6070 * gdbtypes.c (is_dynamic_type_internal): Check
6071 TYPE_HAS_DYNAMIC_LENGTH.
6072 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
6073 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
6074 New macros.
6075 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
6076 constant.
6077
6078 2020-04-24 Tom Tromey <tromey@adacore.com>
6079
6080 * dwarf2/read.c (struct variant_field): Rewrite.
6081 (struct variant_part_builder): New.
6082 (struct nextfield): Remove "variant" field. Add "offset".
6083 (struct field_info): Add "current_variant_part" and
6084 "variant_parts".
6085 (alloc_discriminant_info): Remove.
6086 (alloc_rust_variant): New function.
6087 (quirk_rust_enum): Update.
6088 (dwarf2_add_field): Set "offset" member. Don't handle
6089 DW_TAG_variant_part.
6090 (offset_map_type): New typedef.
6091 (convert_variant_range, create_one_variant)
6092 (create_one_variant_part, create_variant_parts)
6093 (add_variant_property): New functions.
6094 (dwarf2_attach_fields_to_type): Call add_variant_property.
6095 (read_structure_type): Don't handle DW_TAG_variant_part.
6096 (handle_variant_part, handle_variant): New functions.
6097 (handle_struct_member_die): Use them.
6098 (process_structure_scope): Don't handle variant parts.
6099 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
6100 (struct discriminant_info): Remove.
6101 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
6102 (struct main_type) <flag_discriminated_union>: Remove.
6103 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
6104 (rust_enum_variant): Return int. Remove "contents". Rewrite.
6105 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
6106 Update.
6107 * valops.c (value_union_variant): Remove.
6108 * value.h (value_union_variant): Don't declare.
6109
6110 2020-04-24 Tom Tromey <tromey@adacore.com>
6111
6112 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
6113 (ada_value_primitive_packed_val): Update.
6114 * ada-valprint.c (ada_value_print_1): Update.
6115 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
6116 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
6117 just an address. Use evaluate_for_locexpr_baton.
6118 (dwarf2_evaluate_property): Update.
6119 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
6120 array_view.
6121 * findvar.c (default_read_var_value): Update.
6122 * gdbtypes.c (compute_variant_fields_inner)
6123 (resolve_dynamic_type_internal): Update.
6124 (resolve_dynamic_type): Change type of valaddr parameter.
6125 * gdbtypes.h (resolve_dynamic_type): Update.
6126 * valarith.c (value_subscripted_rvalue): Update.
6127 * value.c (value_from_contents_and_address): Update.
6128
6129 2020-04-24 Tom Tromey <tromey@adacore.com>
6130
6131 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
6132 "push_initial_value" parameter.
6133 (dwarf2_evaluate_property): Likewise.
6134 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
6135
6136 2020-04-24 Tom Tromey <tromey@adacore.com>
6137
6138 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
6139 (variant::matches, compute_variant_fields_recurse)
6140 (compute_variant_fields_inner, compute_variant_fields): New
6141 functions.
6142 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
6143 Use resolved_type after type is made.
6144 (operator==): Add new cases.
6145 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
6146 (struct discriminant_range, struct variant, struct variant_part):
6147 New.
6148 (union dynamic_prop_data) <variant_parts, original_type>: New
6149 members.
6150 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
6151 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
6152 constants.
6153 * value.c (unpack_bits_as_long): Now public.
6154 * value.h (unpack_bits_as_long): Declare.
6155
6156 2020-04-24 Tom Tromey <tromey@adacore.com>
6157
6158 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
6159 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
6160
6161 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
6162
6163 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
6164
6165 2020-04-24 Kamil Rytarowski <n54@gmx.com>
6166
6167 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
6168 (remove_fork_catchpoint, post_startup_inferior)
6169 (post_attach): Move...
6170 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
6171 (remove_fork_catchpoint, post_startup_inferior)
6172 (post_attach): ...here.
6173 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
6174 (remove_fork_catchpoint, post_startup_inferior)
6175 (post_attach): Move...
6176 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
6177 (remove_fork_catchpoint, post_startup_inferior)
6178 (post_attach): ...here.
6179
6180 2020-04-24 Tom Tromey <tromey@adacore.com>
6181
6182 * nat/windows-nat.h (struct windows_thread_info)
6183 <pc_adjusted>: New member.
6184 * windows-nat.c (windows_fetch_one_register): Check
6185 pc_adjusted.
6186 (windows_nat_target::get_windows_debug_event)
6187 (windows_nat_target::wait): Set pc_adjusted.
6188
6189 2020-04-24 Tom de Vries <tdevries@suse.de>
6190
6191 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
6192 Run gdb-add-index inside temp dir.
6193
6194 2020-04-23 Tom Tromey <tromey@adacore.com>
6195
6196 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
6197 in loop.
6198
6199 2020-04-23 Luis Machado <luis.machado@linaro.org>
6200
6201 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
6202 get_frame_register instead of gdbarch_unwind_pc.
6203
6204 2020-04-23 Tom de Vries <tdevries@suse.de>
6205
6206 * symtab.c (lookup_global_symbol): Prefer def over decl.
6207
6208 2020-04-23 Tom de Vries <tdevries@suse.de>
6209
6210 PR symtab/25807
6211 * block.c (best_symbol, better_symbol): Promote to external.
6212 * block.h (best_symbol, better_symbol): Declare.
6213 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
6214 decl.
6215
6216 2020-04-23 Tom Tromey <tromey@adacore.com>
6217
6218 PR ada/25837:
6219 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
6220 "const char *", not a "const std::string &".
6221 <name_and_matcher::operator==>: Update.
6222 * unittests/lookup_name_info-selftests.c: Change type of
6223 "result".
6224
6225 2020-04-23 Tom Tromey <tom@tromey.com>
6226
6227 * inferior.h (iterate_over_inferiors): Don't declare.
6228 * inferior.c (iterate_over_inferiors): Remove.
6229 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
6230 Remove.
6231 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
6232 use iterate_over_inferiors.
6233 (darwin_resume_inferior_it)
6234 (struct resume_inferior_threads_param)
6235 (darwin_resume_inferior_threads_it): Remove.
6236 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
6237
6238 2020-04-23 Tom de Vries <tdevries@suse.de>
6239
6240 * blockframe.c (find_pc_partial_function): Use
6241 find_pc_sect_compunit_symtab rather than
6242 objfile->sf->qf->find_pc_sect_compunit_symtab.
6243
6244 2020-04-22 Tom de Vries <tdevries@suse.de>
6245
6246 PR symtab/25764
6247 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
6248 in psymtabs.
6249
6250 2020-04-22 Tom de Vries <tdevries@suse.de>
6251
6252 PR symtab/25801
6253 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
6254 symtabs.
6255
6256 2020-04-22 Tom de Vries <tdevries@suse.de>
6257
6258 PR symtab/25700
6259 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
6260 CU if already created.
6261
6262 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6263
6264 * infrun.c (displaced_step_fixup): Switch to the event_thread
6265 before calling displaced_step_restore, not after.
6266
6267 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6268
6269 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
6270 its inferior is not recorded by us.
6271 (record_btrace_target_open): Replace call to
6272 all_non_exited_threads () with call to current_inferior
6273 ()->non_exited_threads ().
6274 (record_btrace_target::stop_recording): Likewise.
6275 (record_btrace_target::close): Likewise.
6276 (record_btrace_target::wait): Likewise.
6277 (record_btrace_target::record_stop_replaying): Likewise.
6278
6279 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6280
6281 * btrace.c (btrace_enable): Throw an error on double enables and
6282 when enabling recording fails.
6283 (btrace_disable): Throw an error if the thread is not recorded.
6284
6285 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6286
6287 * record-btrace.c (record_btrace_target::fetch_registers): Forward
6288 request if we do not have a thread_info.
6289
6290 2020-04-21 Tom de Vries <tdevries@suse.de>
6291
6292 PR gdb/25471
6293 * thread.c
6294 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
6295 exception in get_frame_id.
6296
6297 2020-04-20 Tom Tromey <tromey@adacore.com>
6298
6299 * python/python.c (struct gdbpy_event): Mark move constructor as
6300 noexcept.
6301 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
6302 constructor as noexcept.
6303 * completer.h (struct completion_result): Mark move constructor as
6304 noexcept.
6305 * completer.c (completion_result::completion_result): Use
6306 initialization style. Don't call reset_match_list.
6307
6308 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
6309
6310 * MAINTAINERS (Write After Approval): Add myself.
6311
6312 2020-04-18 Tom Tromey <tom@tromey.com>
6313
6314 * windows-tdep.c (init_w32_command_list)
6315 (w32_prefix_command_valid): Restore.
6316 (_initialize_windows_tdep): Call init_w32_command_list.
6317
6318 2020-04-18 Tom Tromey <tom@tromey.com>
6319
6320 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
6321 * value.c (value_fn_field): Update.
6322 * valops.c (find_function_in_inferior)
6323 (value_allocate_space_in_inferior): Update.
6324 * tui/tui-winsource.c (tui_update_source_windows_with_line):
6325 Update.
6326 * tui/tui-source.c (tui_source_window::set_contents): Update.
6327 * symtab.c (lookup_global_or_static_symbol)
6328 (find_function_start_sal_1, skip_prologue_sal)
6329 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
6330 * symmisc.c (dump_msymbols, dump_symtab_1)
6331 (maintenance_print_one_line_table): Update.
6332 * symfile.c (init_entry_point_info, section_is_mapped)
6333 (list_overlays_command, simple_read_overlay_table)
6334 (simple_overlay_update_1): Update.
6335 * stap-probe.c (handle_stap_probe): Update.
6336 * stabsread.c (dbx_init_float_type, define_symbol)
6337 (read_one_struct_field, read_enum_type, read_range_type): Update.
6338 * source.c (info_line_command): Update.
6339 * python/python.c (gdbpy_source_objfile_script)
6340 (gdbpy_execute_objfile_script): Update.
6341 * python/py-type.c (save_objfile_types): Update.
6342 * python/py-objfile.c (py_free_objfile): Update.
6343 * python/py-inferior.c (python_new_objfile): Update.
6344 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
6345 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
6346 (maintenance_check_psymtabs): Update.
6347 * printcmd.c (info_address_command): Update.
6348 * objfiles.h (struct objfile) <arch>: New method, from
6349 get_objfile_arch.
6350 (get_objfile_arch): Don't declare.
6351 * objfiles.c (get_objfile_arch): Remove.
6352 (filter_overlapping_sections): Update.
6353 * minsyms.c (msymbol_is_function): Update.
6354 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
6355 (output_nondebug_symbol): Update.
6356 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
6357 (mdebug_expand_psymtab): Update.
6358 * machoread.c (macho_add_oso_symfile): Update.
6359 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
6360 Update.
6361 * linux-fork.c (checkpoint_command): Update.
6362 * linespec.c (convert_linespec_to_sals): Update.
6363 * jit.c (finalize_symtab): Update.
6364 * infrun.c (insert_exception_resume_from_probe): Update.
6365 * ia64-tdep.c (ia64_find_unwind_table): Update.
6366 * hppa-tdep.c (internalize_unwinds): Update.
6367 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
6368 Update.
6369 * gcore.c (call_target_sbrk): Update.
6370 * elfread.c (record_minimal_symbol, elf_symtab_read)
6371 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
6372 (elf_gnu_ifunc_resolve_by_got): Update.
6373 * dwarf2/read.c (create_addrmap_from_index)
6374 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6375 (read_debug_names_from_section)
6376 (process_psymtab_comp_unit_reader, add_partial_symbol)
6377 (add_partial_subprogram, process_full_comp_unit)
6378 (read_file_scope, read_func_scope, read_lexical_block_scope)
6379 (read_call_site_scope, dwarf2_ranges_read)
6380 (dwarf2_record_block_ranges, dwarf2_add_field)
6381 (mark_common_block_symbol_computed, read_tag_pointer_type)
6382 (read_tag_string_type, dwarf2_init_float_type)
6383 (dwarf2_init_complex_target_type, read_base_type)
6384 (partial_die_info::read, partial_die_info::read)
6385 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
6386 (dwarf2_fetch_die_loc_sect_off): Update.
6387 * dwarf2/loc.c (dwarf2_find_location_expression)
6388 (class dwarf_evaluate_loc_desc, rw_pieced_value)
6389 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
6390 (dwarf2_loc_desc_get_symbol_read_needs)
6391 (locexpr_describe_location_piece, locexpr_describe_location_1)
6392 (loclist_describe_location): Update.
6393 * dwarf2/index-write.c (write_debug_names): Update.
6394 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
6395 * dtrace-probe.c (dtrace_process_dof): Update.
6396 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6397 (process_one_symbol): Update.
6398 * ctfread.c (ctf_init_float_type, read_base_type): Update.
6399 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6400 (coff_read_enum_type): Update.
6401 * cli/cli-cmds.c (edit_command, list_command): Update.
6402 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6403 * breakpoint.c (create_overlay_event_breakpoint)
6404 (create_longjmp_master_breakpoint)
6405 (create_std_terminate_master_breakpoint)
6406 (create_exception_master_breakpoint, get_sal_arch): Update.
6407 * block.c (block_gdbarch): Update.
6408 * annotate.c (annotate_source_line): Update.
6409
6410 2020-04-17 Tom Tromey <tromey@adacore.com>
6411
6412 * auto-load.c (show_auto_load_cmd): Remove.
6413 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6414 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6415 (maintenance_print_arc_command): Remove.
6416 * tui/tui-win.c (tui_command): Remove.
6417 (tui_get_cmd_list): Use add_basic_prefix_cmd.
6418 * tui/tui-layout.c (tui_layout_command): Remove.
6419 (_initialize_tui_layout): Use add_basic_prefix_cmd.
6420 * python/python.c (user_set_python, user_show_python): Remove.
6421 (_initialize_python): Use add_basic_prefix_cmd,
6422 add_show_prefix_cmd.
6423 * guile/guile.c (set_guile_command, show_guile_command): Remove.
6424 (install_gdb_commands): Use add_basic_prefix_cmd,
6425 add_show_prefix_cmd.
6426 (info_guile_command): Remove.
6427 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6428 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6429 add_show_prefix_cmd.
6430 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6431 Remove do_set and do_show parameters.
6432 * cli/cli-style.c (set_style, show_style): Remove.
6433 (_initialize_cli_style): Use add_basic_prefix_cmd,
6434 add_show_prefix_cmd.
6435 (cli_style_option::add_setshow_commands): Remove do_set and
6436 do_show parameters.
6437 (cli_style_option::add_setshow_commands): Use
6438 add_basic_prefix_cmd, add_show_prefix_cmd.
6439 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6440 (set_style_name): Remove.
6441 * cli/cli-dump.c (dump_command, append_command): Remove.
6442 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6443 (tekhex_dump_command, binary_dump_command)
6444 (binary_append_command): Remove.
6445 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6446 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6447 (init_w32_command_list): Remove; move into ...
6448 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6449 * valprint.c (set_print, show_print, set_print_raw)
6450 (show_print_raw): Remove.
6451 (_initialize_valprint): Use add_basic_prefix_cmd,
6452 add_show_prefix_cmd.
6453 * typeprint.c (set_print_type, show_print_type): Remove.
6454 (_initialize_typeprint): Use add_basic_prefix_cmd,
6455 add_show_prefix_cmd.
6456 * record.c (set_record_command, show_record_command): Remove.
6457 (_initialize_record): Use add_basic_prefix_cmd,
6458 add_show_prefix_cmd.
6459 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6460 add_show_prefix_cmd.
6461 (info_command, show_command, set_debug, show_debug): Remove.
6462 * top.h (set_history, show_history): Don't declare.
6463 * top.c (set_history, show_history): Remove.
6464 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6465 (unset_tdesc_cmd): Remove.
6466 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6467 add_show_prefix_cmd.
6468 * symtab.c (info_module_command): Remove.
6469 (_initialize_symtab): Use add_basic_prefix_cmd.
6470 * symfile.c (overlay_command): Remove.
6471 (_initialize_symfile): Use add_basic_prefix_cmd.
6472 * sparc64-tdep.c (info_adi_command): Remove.
6473 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6474 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6475 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6476 add_show_prefix_cmd.
6477 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6478 (_initialize_serial): Use add_basic_prefix_cmd,
6479 add_show_prefix_cmd.
6480 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6481 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6482 add_show_prefix_cmd.
6483 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6484 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6485 add_show_prefix_cmd.
6486 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6487 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6488 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6489 add_show_prefix_cmd.
6490 * remote.c (remote_command, set_remote_cmd): Remove.
6491 (_initialize_remote): Use add_basic_prefix_cmd.
6492 * record-full.c (set_record_full_command)
6493 (show_record_full_command): Remove.
6494 (_initialize_record_full): Use add_basic_prefix_cmd,
6495 add_show_prefix_cmd.
6496 * record-btrace.c (cmd_set_record_btrace)
6497 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6498 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6499 (cmd_show_record_btrace_pt): Remove.
6500 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6501 add_show_prefix_cmd.
6502 * ravenscar-thread.c (set_ravenscar_command)
6503 (show_ravenscar_command): Remove.
6504 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6505 add_show_prefix_cmd.
6506 * mips-tdep.c (show_mips_command, set_mips_command)
6507 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6508 add_show_prefix_cmd.
6509 * maint.c (maintenance_command, maintenance_info_command)
6510 (maintenance_check_command, maintenance_print_command)
6511 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6512 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6513 add_show_prefix_cmd.
6514 (show_per_command_cmd): Remove.
6515 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6516 Remove.
6517 (maintenance_show_test_settings_cmd): Remove.
6518 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6519 add_show_prefix_cmd.
6520 * maint-test-options.c (maintenance_test_options_command):
6521 Remove.
6522 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6523 * macrocmd.c (macro_command): Remove
6524 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6525 * language.c (set_check, show_check): Remove.
6526 (_initialize_language): Use add_basic_prefix_cmd,
6527 add_show_prefix_cmd.
6528 * infcmd.c (unset_command): Remove.
6529 (_initialize_infcmd): Use add_basic_prefix_cmd.
6530 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6531 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6532 add_show_prefix_cmd.
6533 * go32-nat.c (go32_info_dos_command): Remove.
6534 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6535 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6536 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6537 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6538 (_initialize_frame): Use add_basic_prefix_cmd,
6539 add_show_prefix_cmd.
6540 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6541 (_initialize_dcache): Use add_basic_prefix_cmd,
6542 add_show_prefix_cmd.
6543 * cp-support.c (maint_cplus_command): Remove.
6544 (_initialize_cp_support): Use add_basic_prefix_cmd.
6545 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6546 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6547 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6548 add_basic_prefix_cmd, add_show_prefix_cmd.
6549 * breakpoint.c (save_command): Remove.
6550 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6551 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6552 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6553 add_show_prefix_cmd.
6554 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6555 (set_ada_command, show_ada_command): Remove.
6556 (_initialize_ada_language): Use add_basic_prefix_cmd,
6557 add_show_prefix_cmd.
6558 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6559
6560 2020-04-16 Kamil Rytarowski <n54@gmx.com>
6561
6562 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6563 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6564
6565 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6566
6567 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6568 warning messages.
6569
6570 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6571
6572 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6573 import table is not at beginning of .idata section.
6574
6575 2020-04-16 Pedro Alves <palves@redhat.com>
6576
6577 * inferior.c (delete_inferior): Use delete operator directly
6578 instead of delete_program_space.
6579 * progspace.c (add_program_space): New, factored out from
6580 program_space::program_space.
6581 (remove_program_space): New, factored out from
6582 delete_program_space.
6583 (program_space::program_space): Remove intro comment. Rewrite.
6584 (program_space::~program_space): Remove intro comment. Call
6585 remove_program_space.
6586 (delete_program_space): Delete.
6587 * progspace.h (program_space::program_space): Make explicit. Move
6588 intro comment here, adjusted.
6589 (program_space::~program_space): Move intro comment here,
6590 adjusted.
6591 (delete_program_space): Remove.
6592
6593 2020-04-16 Tom Tromey <tromey@adacore.com>
6594
6595 * windows-nat.c (windows_nat::handle_access_violation): New
6596 function.
6597 * nat/windows-nat.h (handle_access_violation): Declare.
6598 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6599 windows-nat.c. Call handle_access_violation.
6600
6601 2020-04-16 Tom de Vries <tdevries@suse.de>
6602
6603 PR symtab/25791
6604 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6605 CUs without psymtab.
6606
6607 2020-04-16 Kevin Buettner <kevinb@redhat.com>
6608
6609 * python/python.c (do_start_initialization): Don't call
6610 PyEval_InitThreads for Python 3.9 and beyond.
6611
6612 2020-04-15 Kamil Rytarowski <n54@gmx.com>
6613
6614 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6615 thread functions.
6616 (obsd_nat_target::wait): Likewise.
6617
6618 2020-04-15 Tom Tromey <tromey@adacore.com>
6619
6620 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6621 (DEBUG_EXCEPT): Use debug_printf.
6622
6623 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6624
6625 * completer.c (class completion_tracker::completion_hash_entry)
6626 <hash_name>: New member function.
6627 (completion_tracker::discard_completions): New callback to hash a
6628 completion_hash_entry, pass this to htab_create_alloc.
6629
6630 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6631
6632 * windows-nat.c (windows_make_so): Warn rather than stopping with
6633 an error if realpath() fails.
6634
6635 2020-04-14 Kamil Rytarowski <n54@gmx.com>
6636
6637 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6638 (nbsd_nat_target::info_proc): Add do_status.
6639
6640 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6641 Tom de Vries <tdevries@suse.de>
6642
6643 PR symtab/25718
6644 * psympriv.h (struct partial_symtab::read_symtab)
6645 (struct partial_symtab::expand_psymtab)
6646 (struct partial_symtab::read_dependencies): Update comments.
6647 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6648 read_symtab for includer.
6649 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6650 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6651 (struct dwarf2_include_psymtab::m_readin): Remove.
6652 (struct dwarf2_include_psymtab::includer): New member function.
6653 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6654
6655 2020-04-14 Tom de Vries <tdevries@suse.de>
6656
6657 PR symtab/25720
6658 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6659 with NULL symbol_matcher and lookup_name.
6660 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6661 and lookup_name.
6662 * dwarf2/read.c (dw2_expand_symtabs_matching)
6663 (dw2_debug_names_expand_symtabs_matching): Same.
6664 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6665 Make lookup_name a pointer. Update comment.
6666 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6667 lookup_name being a pointer.
6668 * symfile.c (expand_symtabs_matching): Same.
6669 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6670 * linespec.c (iterate_over_all_matching_symtabs): Same.
6671
6672 2020-04-13 Tom Tromey <tom@tromey.com>
6673
6674 * run-on-main-thread.c: Update include.
6675 * unittests/main-thread-selftests.c: Update include.
6676 * tui/tui-win.c: Update include.
6677 * tui/tui-io.c: Update include.
6678 * tui/tui-interp.c: Update include.
6679 * tui/tui-hooks.c: Update include.
6680 * top.h: Update include.
6681 * top.c: Update include.
6682 * ser-base.c: Update include.
6683 * remote.c: Update include.
6684 * remote-notif.c: Update include.
6685 * remote-fileio.c: Update include.
6686 * record-full.c: Update include.
6687 * record-btrace.c: Update include.
6688 * python/python.c: Update include.
6689 * posix-hdep.c: Update include.
6690 * mingw-hdep.c: Update include.
6691 * mi/mi-main.c: Update include.
6692 * mi/mi-interp.c: Update include.
6693 * main.c: Update include.
6694 * linux-nat.c: Update include.
6695 * interps.c: Update include.
6696 * infrun.c: Update include.
6697 * inf-loop.c: Update include.
6698 * event-top.c: Update include.
6699 * event-loop.c: Move to ../gdbsupport/.
6700 * event-loop.h: Move to ../gdbsupport/.
6701 * async-event.h: Update include.
6702 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6703
6704 2020-04-13 Tom Tromey <tom@tromey.com>
6705
6706 * tui/tui-win.c: Include async-event.h.
6707 * remote.c: Include async-event.h.
6708 * remote-notif.c: Include async-event.h.
6709 * record-full.c: Include async-event.h.
6710 * record-btrace.c: Include async-event.h.
6711 * infrun.c: Include async-event.h.
6712 * event-top.c: Include async-event.h.
6713 * event-loop.h: Move some declarations to async-event.h.
6714 * event-loop.c: Don't include ser-event.h or top.h. Move some
6715 code to async-event.c.
6716 * async-event.h: New file.
6717 * async-event.c: New file.
6718 * Makefile.in (COMMON_SFILES): Add async-event.c.
6719 (HFILES_NO_SRCDIR): Add async-event.h.
6720
6721 2020-04-13 Tom Tromey <tom@tromey.com>
6722
6723 * utils.c (flush_streams): New function.
6724 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6725
6726 2020-04-13 Tom Tromey <tom@tromey.com>
6727
6728 * event-loop.c (handle_file_event): Use warning, not
6729 printf_unfiltered.
6730
6731 2020-04-13 Tom Tromey <tom@tromey.com>
6732
6733 * event-loop.c: Include <chrono>.
6734
6735 2020-04-13 Tom Tromey <tom@tromey.com>
6736
6737 * gdb_select.h: Move to ../gdbsupport/.
6738 * event-loop.c: Update include path.
6739 * top.c: Update include path.
6740 * ser-base.c: Update include path.
6741 * ui-file.c: Update include path.
6742 * ser-tcp.c: Update include path.
6743 * guile/scm-ports.c: Update include path.
6744 * posix-hdep.c: Update include path.
6745 * ser-unix.c: Update include path.
6746 * gdb_usleep.c: Update include path.
6747 * mingw-hdep.c: Update include path.
6748 * inflow.c: Update include path.
6749 * infrun.c: Update include path.
6750 * event-top.c: Update include path.
6751
6752 2020-04-13 Tom Tromey <tom@tromey.com>
6753
6754 * configure: Rebuild.
6755 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6756
6757 2020-04-13 Tom Tromey <tom@tromey.com>
6758
6759 * event-loop.h (start_event_loop): Don't declare.
6760 * event-loop.c (start_event_loop): Move...
6761 * main.c (start_event_loop): ...here. Now static.
6762
6763 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6764
6765 * MAINTAINERS: Update my email address.
6766
6767 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6768
6769 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6770 IP_ALL.
6771
6772 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6773
6774 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
6775 (nbsd_nat_target::info_proc): Add do_cmdline.
6776
6777 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6778
6779 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
6780 (nbsd_nat_target::info_proc): Add do_cwd.
6781
6782 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6783
6784 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6785
6786 2020-04-11 Kamil Rytarowski <n54@gmx.com>
6787
6788 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6789 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6790 (nbsd_nat_target::info_proc): New functions.
6791 * nbsd-nat.c (kinfo_get_vmmap): New function.
6792 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6793 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6794 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6795 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6796 functions.
6797 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6798 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6799 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6800 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6801 (KINFO_VME_FLAG_GROWS_DOWN): New.
6802
6803 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6804
6805 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6806 bit shift.
6807
6808 2020-04-10 Tom Tromey <tromey@adacore.com>
6809
6810 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6811
6812 2020-04-10 Tom Tromey <tromey@adacore.com>
6813
6814 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6815 separate debug files.
6816
6817 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
6818
6819 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6820 Move to...
6821 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6822 ... here.
6823 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6824 Check for STATUS_WX86_BREAKPOINT.
6825 (windows_nat_target::wait): Same.
6826
6827 2020-04-10 Tom de Vries <tdevries@suse.de>
6828
6829 PR cli/25808
6830 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6831
6832 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6833
6834 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6835 (Write After Approval): Remove Tom de Vries.
6836
6837 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6838
6839 revert partially:
6840 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6841
6842 * buildsym.c (record_line): Fix undefined behavior and preserve
6843 lines at eof.
6844
6845 2020-04-09 Kamil Rytarowski <n54@gmx.com>
6846
6847 * auxv.h (svr4_auxv_parse): New.
6848 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6849 and generic_auxv_parse.
6850 (svr4_auxv_parse): Add.
6851 * obsd-tdep.c: Include "auxv.h".
6852 (obsd_auxv_parse): Remove.
6853 (obsd_init_abi): Remove comment.
6854 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6855 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6856 * nbsd-tdep.c: Include "auxv.h".
6857 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6858
6859 2020-04-08 Tom Tromey <tromey@adacore.com>
6860
6861 * nat/windows-nat.h (last_wait_event): Don't declare.
6862 (wait_for_debug_event): Update comment.
6863 * nat/windows-nat.c (last_wait_event): Now static.
6864
6865 2020-04-08 Tom Tromey <tromey@adacore.com>
6866
6867 * windows-nat.c (wait_for_debug_event): Move to
6868 nat/windows-nat.c.
6869 * nat/windows-nat.h (wait_for_debug_event): Declare.
6870 * nat/windows-nat.c (wait_for_debug_event): Move from
6871 windows-nat.c. No longer static.
6872
6873 2020-04-08 Tom Tromey <tromey@adacore.com>
6874
6875 * windows-nat.c (get_windows_debug_event): Use
6876 fetch_pending_stop.
6877 * nat/windows-nat.h (fetch_pending_stop): Declare.
6878 * nat/windows-nat.c (fetch_pending_stop): New function.
6879
6880 2020-04-08 Tom Tromey <tromey@adacore.com>
6881
6882 * windows-nat.c (windows_continue): Use matching_pending_stop and
6883 continue_last_debug_event.
6884 * nat/windows-nat.h (matching_pending_stop)
6885 (continue_last_debug_event): Declare.
6886 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6887 (matching_pending_stop, continue_last_debug_event): New
6888 functions.
6889
6890 2020-04-08 Tom Tromey <tromey@adacore.com>
6891
6892 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6893 (handle_exception_result): Move to nat/windows-nat.h.
6894 (DEBUG_EXCEPTION_SIMPLE): Remove.
6895 (windows_nat::handle_ms_vc_exception): New function.
6896 (handle_exception): Move to nat/windows-nat.c.
6897 (get_windows_debug_event): Update.
6898 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6899 nat/windows-nat.c.
6900 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6901 (handle_exception_result): Move from windows-nat.c.
6902 (handle_exception): Declare.
6903 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6904 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6905 windows-nat.c.
6906
6907 2020-04-08 Tom Tromey <tromey@adacore.com>
6908
6909 * windows-nat.c (exception_count, event_count): Remove.
6910 (handle_exception, get_windows_debug_event)
6911 (do_initial_windows_stuff): Update.
6912
6913 2020-04-08 Tom Tromey <tromey@adacore.com>
6914
6915 * windows-nat.c (windows_nat::handle_load_dll)
6916 (windows_nat::handle_unload_dll): Rename. No longer static.
6917 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6918 Declare.
6919
6920 2020-04-08 Tom Tromey <tromey@adacore.com>
6921
6922 * complaints.h (stop_whining): Declare at top-level.
6923 (complaint): Don't declare stop_whining.
6924
6925 2020-04-08 Tom Tromey <tromey@adacore.com>
6926
6927 * windows-nat.c (windows_nat::handle_output_debug_string):
6928 Rename. No longer static.
6929 * nat/windows-nat.h (handle_output_debug_string): Declare.
6930
6931 2020-04-08 Tom Tromey <tromey@adacore.com>
6932
6933 * windows-nat.c (current_process_handle, current_process_id)
6934 (main_thread_id, last_sig, current_event, last_wait_event)
6935 (current_windows_thread, desired_stop_thread_id, pending_stops)
6936 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6937 (display_selectors, fake_create_process)
6938 (get_windows_debug_event): Update.
6939 * nat/windows-nat.h (current_process_handle, current_process_id)
6940 (main_thread_id, last_sig, current_event, last_wait_event)
6941 (current_windows_thread, desired_stop_thread_id, pending_stops)
6942 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6943 * nat/windows-nat.c (current_process_handle, current_process_id)
6944 (main_thread_id, last_sig, current_event, last_wait_event)
6945 (current_windows_thread, desired_stop_thread_id, pending_stops)
6946 (siginfo_er): New globals. Move from windows-nat.c.
6947
6948 2020-04-08 Tom Tromey <tromey@adacore.com>
6949
6950 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6951 (handle_load_dll): Update.
6952 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6953
6954 2020-04-08 Tom Tromey <tromey@adacore.com>
6955
6956 * windows-nat.c (enum thread_disposition_type): Move to
6957 nat/windows-nat.h.
6958 (windows_nat::thread_rec): Rename from thread_rec. No longer
6959 static.
6960 (windows_add_thread, windows_nat_target::fetch_registers)
6961 (windows_nat_target::store_registers, handle_exception)
6962 (windows_nat_target::resume, get_windows_debug_event)
6963 (windows_nat_target::get_tib_address)
6964 (windows_nat_target::thread_name)
6965 (windows_nat_target::thread_alive): Update.
6966 * nat/windows-nat.h (enum thread_disposition_type): Move from
6967 windows-nat.c.
6968 (thread_rec): Declare.
6969
6970 2020-04-08 Tom Tromey <tromey@adacore.com>
6971
6972 * windows-nat.c: Add "using namespace".
6973 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6974 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6975
6976 2020-04-08 Tom Tromey <tromey@adacore.com>
6977
6978 * nat/windows-nat.h (struct windows_thread_info): Declare
6979 destructor.
6980 * nat/windows-nat.c (~windows_thread_info): New.
6981
6982 2020-04-08 Tom Tromey <tromey@adacore.com>
6983
6984 PR gdb/22992
6985 * windows-nat.c (current_event): Update comment.
6986 (last_wait_event, desired_stop_thread_id): New globals.
6987 (struct pending_stop): New.
6988 (pending_stops): New global.
6989 (windows_nat_target) <stopped_by_sw_breakpoint>
6990 <supports_stopped_by_sw_breakpoint>: New methods.
6991 (windows_fetch_one_register): Add assertions. Adjust PC.
6992 (windows_continue): Handle pending stops. Suspend other threads
6993 when stepping. Use last_wait_event
6994 (wait_for_debug_event): New function.
6995 (get_windows_debug_event): Use wait_for_debug_event. Handle
6996 pending stops. Queue spurious stops.
6997 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6998 (windows_nat_target::kill): Use wait_for_debug_event.
6999 * nat/windows-nat.h (struct windows_thread_info)
7000 <stopped_at_software_breakpoint>: New field.
7001 * nat/windows-nat.c (windows_thread_info::resume): Clear
7002 stopped_at_software_breakpoint.
7003
7004 2020-04-08 Tom Tromey <tromey@adacore.com>
7005
7006 * windows-nat.c (enum thread_disposition_type): New.
7007 (thread_rec): Replace "get_context" parameter with "disposition";
7008 change type.
7009 (windows_add_thread, windows_nat_target::fetch_registers)
7010 (windows_nat_target::store_registers, handle_exception)
7011 (windows_nat_target::resume, get_windows_debug_event)
7012 (windows_nat_target::get_tib_address)
7013 (windows_nat_target::thread_name)
7014 (windows_nat_target::thread_alive): Update.
7015
7016 2020-04-08 Tom Tromey <tromey@adacore.com>
7017
7018 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
7019 (windows_continue): Use windows_continue::resume.
7020 * nat/windows-nat.h (struct windows_thread_info) <suspend,
7021 resume>: Declare new methods.
7022 * nat/windows-nat.c: New file.
7023 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
7024
7025 2020-04-08 Tom Tromey <tromey@adacore.com>
7026
7027 * windows-nat.c (windows_add_thread, windows_delete_thread)
7028 (windows_nat_target::fetch_registers)
7029 (windows_nat_target::store_registers, fake_create_process)
7030 (windows_nat_target::resume, windows_nat_target::resume)
7031 (get_windows_debug_event, windows_nat_target::wait)
7032 (windows_nat_target::pid_to_str)
7033 (windows_nat_target::get_tib_address)
7034 (windows_nat_target::get_ada_task_ptid)
7035 (windows_nat_target::thread_name)
7036 (windows_nat_target::thread_alive): Use lwp, not tid.
7037
7038 2020-04-08 Tom Tromey <tromey@adacore.com>
7039
7040 * windows-nat.c (handle_exception)
7041 (windows_nat_target::thread_name): Update.
7042 * nat/windows-nat.h (windows_thread_info): Remove destructor.
7043 <name>: Now unique_xmalloc_ptr.
7044
7045 2020-04-08 Tom Tromey <tromey@adacore.com>
7046
7047 * windows-nat.c (thread_rec)
7048 (windows_nat_target::fetch_registers): Update.
7049 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
7050 Update comment.
7051 <debug_registers_changed, reload_context>: Now bool.
7052
7053 2020-04-08 Tom Tromey <tromey@adacore.com>
7054
7055 * windows-nat.c (windows_add_thread): Use new.
7056 (windows_init_thread_list, windows_delete_thread): Use delete.
7057 (get_windows_debug_event): Update.
7058 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
7059 destructor, and initializers.
7060
7061 2020-04-08 Tom Tromey <tromey@adacore.com>
7062
7063 * windows-nat.c (struct windows_thread_info): Remove.
7064 * nat/windows-nat.h: New file.
7065
7066 2020-04-08 Tom Tromey <tromey@adacore.com>
7067
7068 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
7069 (thread_rec, windows_add_thread, windows_delete_thread)
7070 (windows_continue): Update.
7071
7072 2020-04-08 Tom Tromey <tromey@adacore.com>
7073
7074 * windows-nat.c (struct windows_thread_info): Remove typedef.
7075 (thread_head): Remove.
7076 (thread_list): New global.
7077 (thread_rec, windows_add_thread, windows_init_thread_list)
7078 (windows_delete_thread, windows_continue): Update.
7079
7080 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7081
7082 * windows-tdep.h (windows_init_abi): Add comment.
7083 (cygwin_init_abi): New declaration.
7084 * windows-tdep.c: Split signal enumeration in two, one for
7085 Windows and one for Cygwin.
7086 (windows_gdb_signal_to_target): Only deal with signal of the
7087 Windows OS ABI.
7088 (cygwin_gdb_signal_to_target): New function.
7089 (windows_init_abi): Rename to windows_init_abi_common, don't set
7090 gdb_signal_to_target gdbarch method. Add new new function with
7091 this name.
7092 (cygwin_init_abi): New function.
7093 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
7094 comment. Don't call windows_init_abi.
7095 (amd64_windows_init_abi): Add comment, call windows_init_abi.
7096 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
7097 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
7098 i386_windows_init_abi_common, don't call windows_init_abi. Add
7099 a new function of this name.
7100 (i386_cygwin_init_abi): New function.
7101 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
7102 OS ABI Cygwin.
7103
7104 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7105
7106 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
7107 parameter.c.
7108 (dwarf2_read_gdb_index): Update.
7109
7110 2020-04-07 Kamil Rytarowski <n54@gmx.com>
7111
7112 * nbsd-tdep.c: Include "objfiles.h".
7113 (nbsd_skip_solib_resolver): New.
7114 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
7115
7116 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7117
7118 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
7119 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
7120 with DW_LLE_base_addressx are being emitted in DWARFv5.
7121 Add the newly added kind DW_LOC_OFFSET_PAIR also.
7122 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
7123 unsigned integer.
7124
7125 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7126
7127 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
7128 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
7129 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
7130 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
7131 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
7132 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
7133 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
7134
7135
7136 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7137
7138 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
7139 (read_loclist_index): New function definition.
7140 (lookup_loclist_base): New function definition.
7141 (read_loclist_header): New function definition.
7142 (dwarf2_cu): Add loclist_base and loclist_header field.
7143 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
7144 (read_full_die_1): Read the value of DW_AT_loclists_base.
7145 (read_attribute_reprocess): Handle DW_FORM_loclistx.
7146 (read_attribute_value): Handle DW_FORM_loclistx.
7147 (skip_one_die): Handle DW_FORM_loclistx.
7148 (loclist_header): New structure declaration.
7149 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
7150
7151 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7152
7153 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
7154 constructor. Remove `addr` parameter from other constructor and
7155 add `per_cu` parameter.
7156 * dwarf2/read.c (create_partial_symtab): Update.
7157
7158 2020-04-07 Tom de Vries <tdevries@suse.de>
7159
7160 PR symtab/25796
7161 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
7162 (partial_die_info::fixup): Inherit has_const_value.
7163
7164 2020-04-07 Tom de Vries <tdevries@suse.de>
7165
7166 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
7167 symbols without address.
7168
7169 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7170
7171 * nbsd-nat.h (struct thread_info): Add forward declaration.
7172 (nbsd_nat_target::thread_alive): Add.
7173 (nbsd_nat_target::thread_name): Likewise.
7174 (nbsd_nat_target::update_thread_list): Likewise.
7175 (update_thread_list::post_attach): Likewise.
7176 (post_attach::pid_to_str): Likewise.
7177 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
7178 (nbsd_thread_lister): Add.
7179 (nbsd_nat_target::thread_alive): Likewise.
7180 (nbsd_nat_target::thread_name): Likewise.
7181 (nbsd_add_threads): Likewise.
7182 (update_thread_list::post_attach): Likewise.
7183 (nbsd_nat_target::update_thread_list): Likewise.
7184 (post_attach::pid_to_str): Likewise.
7185
7186 2020-04-06 Tom Tromey <tromey@adacore.com>
7187
7188 * ada-valprint.c (print_variant_part): Extract the variant field.
7189 (print_field_values): Use the field as the outer value when
7190 recursing.
7191
7192 2020-04-06 Tom Tromey <tromey@adacore.com>
7193
7194 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
7195 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
7196 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
7197 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
7198 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
7199
7200 2020-04-06 Tom Tromey <tromey@adacore.com>
7201
7202 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
7203 TYPE_CODE_ERROR.
7204
7205 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7206
7207 * nbsd-tdep.c: Include "gdbarch.h".
7208 Define enum with NetBSD signal numbers.
7209 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
7210 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
7211 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
7212 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
7213 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
7214 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
7215 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
7216 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
7217 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
7218 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7219 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7220 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
7221
7222 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
7223
7224 PR gdb/25325
7225 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
7226
7227 2020-04-03 Tom Tromey <tromey@adacore.com>
7228
7229 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
7230 Read constant block.
7231
7232 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7233
7234 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
7235 (gdb_bfd_get_full_section_contents): New declaration.
7236 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
7237 * windows-tdep.c (is_linked_with_cygwin_dll): Use
7238 gdb_bfd_get_full_section_contents.
7239
7240 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7241
7242 * exec.c (build_section_table): Replace internal_error with
7243 gdb_assert.
7244 (section_table_xfer_memory_partial): Likewise.
7245 * mdebugread.c (parse_partial_symbols): Likewise.
7246 * psymtab.c (lookup_partial_symbol): Likewise.
7247 * utils.c (wrap_here): Likewise.
7248
7249 2020-04-02 Tom Tromey <tromey@adacore.com>
7250
7251 * f-lang.c (build_fortran_types): Use arch_type to initialize
7252 builtin_complex_s32 in the TYPE_CODE_ERROR case.
7253
7254 2020-04-02 Tom Tromey <tromey@adacore.com>
7255
7256 * dwarf2/read.c (partial_die_info::read): Do not create a vector
7257 of attributes.
7258
7259 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
7260 Bernd Edlinger <bernd.edlinger@hotmail.de>
7261 Tom Tromey <tromey@adacore.com>
7262
7263 * buildsym.c (buildsym_compunit::record_line): Remove
7264 deduplication code.
7265
7266 2020-04-02 Tom de Vries <tdevries@suse.de>
7267
7268 PR ada/24671
7269 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
7270
7271 2020-04-02 Tom de Vries <tdevries@suse.de>
7272
7273 * dwarf2/read.c (dwarf2_gdb_index_functions,
7274 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
7275 NULL.
7276 * psymtab.c (psym_lookup_global_symbol_language): New function.
7277 (psym_functions): Init psym_lookup_global_symbol_language with
7278 psym_lookup_global_symbol_language.
7279 * symfile-debug.c (debug_sym_quick_functions): Init
7280 lookup_global_symbol_language with NULL.
7281 * symfile.c (set_initial_language): Remove fixme comment.
7282 * symfile.h (struct quick_symbol_functions): Add
7283 lookup_global_symbol_language.
7284 * symtab.c (find_quick_global_symbol_language): New function.
7285 (find_main_name): Use find_quick_global_symbol_language.
7286
7287 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
7288
7289 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
7290
7291 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7292
7293 * buildsym.c (record_line): Fix undefined behavior and preserve
7294 lines at eof.
7295
7296 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7297
7298 * buildsym.c (record_line): Fix the resizing condition.
7299
7300 2020-04-01 Tom Tromey <tom@tromey.com>
7301
7302 * value.h (value_literal_complex): Add comment.
7303 * valops.c (value_literal_complex): Refer to value.h.
7304
7305 2020-04-01 Tom Tromey <tom@tromey.com>
7306
7307 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
7308 (scalar_type): New rule, from typebase.
7309 (typebase): Use scalar_type. Recognize complex types.
7310 (field_name): Handle FLOAT_KEYWORD.
7311 (ident_tokens): Add _Complex and __complex__.
7312
7313 2020-04-01 Tom Tromey <tom@tromey.com>
7314
7315 PR exp/25299:
7316 * valarith.c (promotion_type, complex_binop): New functions.
7317 (scalar_binop): Handle complex numbers. Use promotion_type.
7318 (value_pos, value_neg, value_complement): Handle complex numbers.
7319
7320 2020-04-01 Tom Tromey <tom@tromey.com>
7321
7322 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
7323 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
7324 (parse_number): Handle complex numbers.
7325
7326 2020-04-01 Tom Tromey <tom@tromey.com>
7327
7328 * c-valprint.c (c_decorations): Change complex suffix to "i".
7329
7330 2020-04-01 Tom Tromey <tom@tromey.com>
7331
7332 * valprint.c (generic_value_print_complex): Use accessors.
7333 * value.h (value_real_part, value_imaginary_part): Declare.
7334 * valops.c (value_real_part, value_imaginary_part): New
7335 functions.
7336 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
7337
7338 2020-04-01 Tom Tromey <tom@tromey.com>
7339
7340 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
7341 (read_range_type): Update.
7342 * mdebugread.c (basic_type): Update.
7343 * go-lang.c (build_go_types): Use init_complex_type.
7344 * gdbtypes.h (struct main_type) <complex_type>: New member.
7345 (init_complex_type): Update.
7346 (arch_complex_type): Don't declare.
7347 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
7348 Make name if none given. Use alloc_type_copy. Look for cached
7349 complex type.
7350 (arch_complex_type): Remove.
7351 (gdbtypes_post_init): Use init_complex_type.
7352 * f-lang.c (build_fortran_types): Use init_complex_type.
7353 * dwarf2/read.c (read_base_type): Update.
7354 * d-lang.c (build_d_types): Use init_complex_type.
7355 * ctfread.c (read_base_type): Update.
7356
7357 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7358
7359 * infrun.c (stop_all_threads): Update assertion, plus when
7360 stopping threads, take into account that we might be trying
7361 to stop an all-stop target.
7362 (stop_waiting): Call 'stop_all_threads' if there exists a
7363 non-stop target.
7364
7365 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7366
7367 * target.h (exists_non_stop_target): New function declaration.
7368 * target.c (exists_non_stop_target): New function.
7369
7370 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
7371
7372 PR gdb/24789
7373 * eval.c (is_integral_or_integral_reference): New function.
7374 (evaluate_subexp_standard): Allow integer references in
7375 pointer arithmetic.
7376
7377 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7378
7379 * remote.c (remote_target::remote_parse_stop_reply): Remove the
7380 check for no ptid in the stop reply when the target is non-stop.
7381
7382 2020-04-01 Tom Tromey <tromey@adacore.com>
7383
7384 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
7385 "name" parameter to rvalue reference. Initialize m_name_holder.
7386 <lookup_name_info>: New overloads.
7387 <name>: Return gdb::string_view.
7388 <c_str>: New method.
7389 <make_ignore_params>: Update.
7390 <search_name_hash>: Update.
7391 <language_lookup_name>: Return const char *.
7392 <m_name>: Change type.
7393 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
7394 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
7395 (lookup_name_info::match_any): Update.
7396 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7397 Update.
7398 * minsyms.c (linkage_name_str): Update.
7399 * language.c (default_symbol_name_matcher): Update.
7400 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7401 Update.
7402 * ada-lang.c (ada_fold_name): Change parameter to string_view.
7403 (ada_lookup_name_info::ada_lookup_name_info): Update.
7404 (literal_symbol_name_matcher): Update.
7405
7406 2020-04-01 Tom Tromey <tromey@adacore.com>
7407
7408 * psymtab.c (psymtab_search_name): Remove function.
7409 (psym_lookup_symbol): Create search name and lookup name here.
7410 (lookup_partial_symbol): Remove "name" parameter; add
7411 lookup_name.
7412 (psym_expand_symtabs_for_function): Update.
7413
7414 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
7415
7416 PR tui/25597:
7417 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7418
7419 2020-03-31 Tom Tromey <tromey@adacore.com>
7420
7421 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7422 memcpy.
7423
7424 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
7425
7426 * features/riscv/32bit-csr.xml: Regenerated.
7427 * features/riscv/64bit-csr.xml: Regenerated.
7428
7429 2020-03-30 Tom Tromey <tromey@adacore.com>
7430
7431 * ada-valprint.c (print_variant_part): Update.
7432 * ada-lang.h (ada_which_variant_applies): Update.
7433 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7434 outer_valaddr parameters; replace with "outer" value parameter.
7435 (to_fixed_variant_branch_type): Update.
7436
7437 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7438
7439 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7440 <list>. Remove inclusion of observable.h.
7441 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7442 (struct arch_lwp_info): New struct.
7443 (class ppc_linux_dreg_interface): New class.
7444 (struct ppc_linux_process_info): New struct.
7445 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7446 <low_new_clone, low_forget_process, low_prepare_to_resume>
7447 <copy_thread_dreg_state, mark_thread_stale>
7448 <mark_debug_registers_changed, register_hw_breakpoint>
7449 <clear_hw_breakpoint, register_wp, clear_wp>
7450 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7451 <num_memory_accesses, get_trigger_type>
7452 <create_watchpoint_request, hwdebug_point_cmp>
7453 <init_arch_lwp_info, get_arch_lwp_info>
7454 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7455 methods.
7456 <struct ptid_hash>: New inner struct.
7457 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7458 members.
7459 (saved_dabr_value, hwdebug_info, max_slots_number)
7460 (struct hw_break_tuple, struct thread_points, ppc_threads)
7461 (have_ptrace_hwdebug_interface)
7462 (hwdebug_find_thread_points_by_tid)
7463 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7464 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7465 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7466 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7467 use m_dreg_interface.
7468 (hwdebug_point_cmp): Change to...
7469 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7470 reference arguments instead of pointers.
7471 (ppc_linux_nat_target::ranged_break_num_registers): Use
7472 m_dreg_interface.
7473 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7474 m_dreg_interface. Call register_hw_breakpoint.
7475 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7476 m_dreg_interface. Call clear_hw_breakpoint.
7477 (get_trigger_type): Change to...
7478 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7479 comment.
7480 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7481 use m_dreg_interface. Call register_hw_breakpoint.
7482 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7483 use m_dreg_interface. Call clear_hw_breakpoint.
7484 (can_use_watchpoint_cond_accel): Change to...
7485 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7486 method. Update comment, use m_dreg_interface and
7487 m_process_info.
7488 (calculate_dvc): Change to...
7489 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7490 m_dreg_interface.
7491 (num_memory_accesses): Change to...
7492 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7493 (check_condition): Change to...
7494 (ppc_linux_nat_target::check_condition): ...this method.
7495 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7496 comment, use m_dreg_interface.
7497 (create_watchpoint_request): Change to...
7498 (ppc_linux_nat_target::create_watchpoint_request): ...this
7499 method. Use m_dreg_interface.
7500 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7501 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7502 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7503 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7504 (ppc_linux_nat_target::low_forget_process)
7505 (ppc_linux_nat_target::low_new_fork)
7506 (ppc_linux_nat_target::low_new_clone)
7507 (ppc_linux_nat_target::low_delete_thread)
7508 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7509 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7510 only call mark_thread_stale.
7511 (ppc_linux_thread_exit): Remove.
7512 (ppc_linux_nat_target::stopped_data_address): Change to...
7513 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7514 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7515 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7516 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7517 comment. Call low_stopped_data_address.
7518 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7519 m_dreg_interface.
7520 (ppc_linux_nat_target::masked_watch_num_registers): Use
7521 m_dreg_interface.
7522 (ppc_linux_nat_target::copy_thread_dreg_state)
7523 (ppc_linux_nat_target::mark_thread_stale)
7524 (ppc_linux_nat_target::mark_debug_registers_changed)
7525 (ppc_linux_nat_target::register_hw_breakpoint)
7526 (ppc_linux_nat_target::clear_hw_breakpoint)
7527 (ppc_linux_nat_target::register_wp)
7528 (ppc_linux_nat_target::clear_wp)
7529 (ppc_linux_nat_target::init_arch_lwp_info)
7530 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7531 (_initialize_ppc_linux_nat): Remove observer callback.
7532
7533 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7534
7535 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7536 (ppc_linux_nat_target::auxv_parse)
7537 (ppc_linux_nat_target::read_description)
7538 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7539 Move up.
7540
7541 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7542
7543 * linux-nat.h (low_new_clone): New method.
7544 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7545
7546 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7547
7548 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7549 (dbx_expand_psymtab): ... this.
7550 (start_psymtab): Update.
7551 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7552 (mdebug_expand_psymtab): ... this.
7553 (parse_partial_symbols): Update.
7554 (new_psymtab): Update.
7555 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7556 (xcoff_expand_psymtab): ... this.
7557 (xcoff_start_psymtab): Update.
7558
7559 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7560
7561 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7562 <expand_dependencies>: ... this.
7563 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7564 (partial_symtab::expand_dependencies): ... this.
7565 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7566 Update.
7567 (dwarf2_psymtab::expand_psymtab): Update.
7568 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7569 * mdebugread.c (psymtab_to_symtab_1): Update.
7570 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7571
7572 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7573
7574 * psympriv.h (discard_psymtab): Remove.
7575 * dbxread.c (dbx_end_psymtab): Update.
7576 * xcoffread.c (xcoff_end_psymtab): Update.
7577
7578 2020-03-28 Tom Tromey <tom@tromey.com>
7579
7580 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7581 comment.
7582
7583 2020-03-28 Tom Tromey <tom@tromey.com>
7584
7585 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7586
7587 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
7588
7589 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7590
7591 2020-03-26 John Baldwin <jhb@FreeBSD.org>
7592
7593 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7594
7595 2020-03-26 Tom Tromey <tom@tromey.com>
7596
7597 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7598 (mark_common_block_symbol_computed, read_tag_string_type)
7599 (attr_to_dynamic_prop, read_subrange_type): Update.
7600 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7601 to be methods on struct attribute.
7602 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7603 (read_call_site_scope, partial_die_info::read)
7604 (partial_die_info::read, lookup_die_type, follow_die_ref):
7605 Update.
7606 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7607 from dwarf2_get_ref_die_offset.
7608 (attribute::constant_value): New method, from
7609 dwarf2_get_attr_constant_value.
7610 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7611 Declare method.
7612 <constant_value>: New method.
7613
7614 2020-03-26 Tom Tromey <tom@tromey.com>
7615
7616 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7617 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7618 (dwarf_type_encoding_name): Move to stringify.c.
7619 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7620 * dwarf2/stringify.c: New file.
7621 * dwarf2/stringify.h: New file.
7622
7623 2020-03-26 Tom Tromey <tom@tromey.com>
7624
7625 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7626 Rewrite.
7627
7628 2020-03-26 Tom Tromey <tom@tromey.com>
7629
7630 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7631 methods.
7632 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7633 (lookup_ranges_base): Likewise.
7634 (read_cutu_die_from_dwo, read_full_die_1): Update.
7635
7636 2020-03-26 Tom Tromey <tom@tromey.com>
7637
7638 * dwarf2/read.c (read_import_statement, read_file_scope)
7639 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7640 (read_lexical_block_scope, read_call_site_scope)
7641 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7642 (handle_struct_member_die, process_structure_scope)
7643 (update_enumeration_type_from_children)
7644 (process_enumeration_scope, read_array_type, read_common_block)
7645 (read_namespace, read_module, read_subroutine_type): Update.
7646 (sibling_die): Remove.
7647
7648 2020-03-26 Tom Tromey <tom@tromey.com>
7649
7650 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7651 (build_type_psymtabs_reader, read_structure_type)
7652 (read_enumeration_type, read_full_die_1): Update.
7653 (dwarf2_attr_no_follow): Move to die.h.
7654 * dwarf2/die.h (struct die_info) <attr>: New method.
7655
7656 2020-03-26 Tom Tromey <tom@tromey.com>
7657
7658 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7659 <base_address>: Now an optional.
7660 (dwarf2_find_base_address, dwarf2_rnglists_process)
7661 (dwarf2_ranges_process, fill_in_loclist_baton)
7662 (dwarf2_symbol_mark_computed): Update.
7663
7664 2020-03-26 Tom Tromey <tom@tromey.com>
7665
7666 * dwarf2/read.c (struct die_info): Move to die.h.
7667 * dwarf2/die.h: New file.
7668
7669 2020-03-26 Tom Tromey <tom@tromey.com>
7670
7671 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7672 * dwarf2/read.c
7673 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7674 Move to line-header.c.
7675 (read_checked_initial_length_and_offset, read_formatted_entries):
7676 Likewise.
7677 (dwarf_decode_line_header): Split into two.
7678 * dwarf2/line-header.c
7679 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7680 Move from read.c.
7681 (read_checked_initial_length_and_offset, read_formatted_entries):
7682 Likewise.
7683 (dwarf_decode_line_header): New function, split from read.c.
7684
7685 2020-03-26 Tom Tromey <tom@tromey.com>
7686
7687 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7688 Declare method.
7689 * dwarf2/read.c (read_attribute_value): Update.
7690 (dwarf2_per_objfile::read_line_string): Rename from
7691 read_indirect_line_string.
7692 (read_formatted_entries): Update.
7693
7694 2020-03-26 Tom Tromey <tom@tromey.com>
7695
7696 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7697 variable.
7698
7699 2020-03-26 Tom Tromey <tom@tromey.com>
7700
7701 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7702 const.
7703 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7704 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7705 parameter const.
7706
7707 2020-03-26 Tom Tromey <tom@tromey.com>
7708
7709 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7710 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7711 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7712 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7713
7714 2020-03-26 Tom Tromey <tom@tromey.com>
7715
7716 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7717 file_names_size, file_full_name, file_file_name>: Use const.
7718 <file_name_at, file_names>: Add const overload.
7719 * dwarf2/line-header.c (line_header::file_file_name)
7720 (line_header::file_full_name): Update.
7721
7722 2020-03-26 Tom Tromey <tom@tromey.com>
7723
7724 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7725 (macro_start_file, consume_improper_spaces)
7726 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7727 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7728 (dwarf_decode_macros): Move to macro.c.
7729 * dwarf2/macro.c: New file.
7730 * dwarf2/macro.h: New file.
7731 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7732
7733 2020-03-26 Tom Tromey <tom@tromey.com>
7734
7735 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7736 method.
7737 * dwarf2/section.c: New method. From
7738 read_indirect_string_at_offset_from.
7739 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7740 (read_indirect_string_at_offset_from): Move to section.c.
7741 (read_indirect_string_at_offset): Rewrite.
7742 (read_indirect_line_string_at_offset): Remove.
7743 (read_indirect_string, read_indirect_line_string)
7744 (dwarf_decode_macro_bytes): Update.
7745
7746 2020-03-26 Tom Tromey <tom@tromey.com>
7747
7748 * dwarf2/section.h (struct dwarf2_section_info)
7749 <overload_complaint>: Declare.
7750 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7751 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7752 Rename from dwarf2_section_buffer_overflow_complaint.
7753 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7754 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7755
7756 2020-03-26 Tom Tromey <tom@tromey.com>
7757
7758 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7759 Declare.
7760 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7761 Move from read.c.
7762 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7763 to section.c.
7764
7765 2020-03-26 Tom Tromey <tom@tromey.com>
7766
7767 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7768
7769 2020-03-26 Tom Tromey <tom@tromey.com>
7770
7771 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7772 "builder".
7773 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7774 parameter.
7775 (dwarf_decode_macros): Update.
7776
7777 2020-03-26 Tom Tromey <tom@tromey.com>
7778
7779 * dwarf2/read.c (read_attribute_value): Update.
7780 (read_indirect_string_from_dwz): Move to dwz.c; change into
7781 method.
7782 (dwarf_decode_macro_bytes): Update.
7783 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7784 * dwarf2/dwz.c: New file.
7785 * Makefile.in (COMMON_SFILES): Add dwz.c.
7786
7787 2020-03-26 Tom Tromey <tom@tromey.com>
7788
7789 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7790 * dwarf2/read.c: Add include.
7791 * dwarf2/index-write.c: Add include.
7792 * dwarf2/index-cache.c: Add include.
7793 * dwarf2/dwz.h: New file.
7794
7795 2020-03-25 Tom Tromey <tom@tromey.com>
7796
7797 * compile/compile-object-load.c (get_out_value_type): Mention
7798 correct symbol name in error message.
7799
7800 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
7801
7802 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7803
7804 2020-03-25 Tom de Vries <tdevries@suse.de>
7805
7806 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7807 * symmisc.c (dump_symtab_1): Print user and includes fields.
7808 (maintenance_info_symtabs): Same.
7809
7810 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7811
7812 PR gdb/25534
7813 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7814 (riscv_regcache_cooked_write): New function.
7815 (riscv_push_dummy_call): Use new function.
7816 (riscv_return_value): Likewise.
7817
7818 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7819
7820 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7821 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7822 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7823 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7824 * infrun.c (follow_fork): Likewise.
7825 (follow_fork_inferior): Likewise.
7826 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7827 * linux-nat.h (class linux_nat_target): Likewise.
7828 * remote.c (class remote_target) <follow_fork>: Likewise.
7829 (remote_target::follow_fork): Likewise.
7830 * target-delegates.c: Re-generate.
7831 * target.c (default_follow_fork): Likewise.
7832 (target_follow_fork): Likewise.
7833 * target.h (struct target_ops) <follow_fork>: Likewise.
7834 (target_follow_fork): Likewise.
7835
7836 2020-03-24 Tom de Vries <tdevries@suse.de>
7837
7838 * psymtab.c (maintenance_info_psymtabs): Print user field.
7839
7840 2020-03-20 Tom Tromey <tromey@adacore.com>
7841
7842 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7843 const.
7844 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7845 const.
7846
7847 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
7848
7849 * ptrace.m4: Don't check for ptrace declaration.
7850 * config.in: Re-generate.
7851 * configure: Re-generate.
7852 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7853 not defined.
7854
7855 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7856
7857 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7858 `PTRACE_TYPE_RET'.
7859 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7860 * sparc-nat.c (gdb_ptrace): Likewise.
7861 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7862
7863 2020-03-20 Tom Tromey <tromey@adacore.com>
7864
7865 * c-exp.y (lex_one_token): Fix assert.
7866
7867 2020-03-20 Tom Tromey <tromey@adacore.com>
7868
7869 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7870 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7871 strncpy call.
7872
7873 2020-03-20 Tom Tromey <tromey@adacore.com>
7874
7875 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7876
7877 2020-03-20 Tom Tromey <tromey@adacore.com>
7878
7879 * ada-valprint.c (print_variant_part): Remove parameters; switch
7880 to value-based API.
7881 (print_field_values): Likewise.
7882 (ada_val_print_struct_union): Likewise.
7883 (ada_value_print_1): Update.
7884
7885 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7886
7887 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7888 nbsd_nat_target instead of inf_ptrace_target.
7889 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7890 nbsd_nat_target.
7891
7892 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7893
7894 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7895 it to the ptrace call.
7896 * (store_registers): Likewise.
7897
7898 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7899
7900 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7901 it to the ptrace call.
7902 * (store_registers): Likewise.
7903
7904 2020-03-19 Luis Machado <luis.machado@linaro.org>
7905
7906 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7907 valid, fetch vg value from ptrace.
7908
7909 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7910 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7911 * inf-ptrace.c: Likewise.
7912 * (gdb_ptrace): Add.
7913 * (inf_ptrace_target::resume): Update.
7914 * (inf_ptrace_target::xfer_partial): Likewise.
7915 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7916 * (inf_ptrace_peek_poke): Update.
7917
7918 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7919
7920 * x86-bsd-nat.c (gdb_ptrace): New.
7921 * (x86bsd_dr_set): Add new argument `ptid'.
7922 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7923 x86bsd_dr_set_addr): Update.
7924
7925 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7926
7927 * remote.c (remote_target::process_stop_reply): Handle events for
7928 all threads differently.
7929
7930 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7931
7932 * completer.c (completion_tracker::remove_completion): Define new
7933 function.
7934 * completer.h (completion_tracker::remove_completion): Declare new
7935 function.
7936 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7937 when adding a C++ function symbol.
7938
7939 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7940
7941 * completer.c (completion_tracker::completion_hash_entry): Define
7942 new class.
7943 (advance_to_filename_complete_word_point): Call
7944 recompute_lowest_common_denominator.
7945 (completion_tracker::completion_tracker): Call discard_completions
7946 to setup the hash table.
7947 (completion_tracker::discard_completions): Allow for being called
7948 from the constructor, pass new equal function, and element deleter
7949 when constructing the hash table. Initialise new class member
7950 variables.
7951 (completion_tracker::maybe_add_completion): Remove use of
7952 m_entries_vec, and store more information into m_entries_hash.
7953 (completion_tracker::recompute_lcd_visitor): New function, most
7954 content taken from...
7955 (completion_tracker::recompute_lowest_common_denominator):
7956 ...here, this now just visits each item in the hash calling the
7957 above visitor.
7958 (completion_tracker::build_completion_result): Remove use of
7959 m_entries_vec, call recompute_lowest_common_denominator.
7960 * completer.h (completion_tracker::have_completions): Remove use
7961 of m_entries_vec.
7962 (completion_tracker::completion_hash_entry): Declare new class.
7963 (completion_tracker::recompute_lowest_common_denominator): Change
7964 function signature.
7965 (completion_tracker::recompute_lcd_visitor): Declare new function.
7966 (completion_tracker::m_entries_vec): Delete.
7967 (completion_tracker::m_entries_hash): Initialize to NULL.
7968 (completion_tracker::m_lowest_common_denominator_valid): New
7969 member variable.
7970 (completion_tracker::m_lowest_common_denominator_max_length): New
7971 member variable.
7972
7973 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7974
7975 * regformats/regdef.h: Put reg in gdb namespace.
7976
7977 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7978
7979 * i386-bsd-nat.c (gdb_ptrace): New.
7980 * (i386bsd_fetch_inferior_registers,
7981 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7982 * (i386bsd_fetch_inferior_registers,
7983 i386bsd_store_inferior_registers) Use gdb_ptrace.
7984
7985 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7986
7987 * amd64-bsd-nat.c (gdb_ptrace): New.
7988 * (amd64bsd_fetch_inferior_registers,
7989 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7990 * (amd64bsd_fetch_inferior_registers,
7991 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7992
7993 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7994
7995 * user-regs.c (user_reg::read): Rename to...
7996 (user_reg::xread): ...this.
7997 * (append_user_reg): Rename argument `read' to `xread'.
7998 * (user_reg_add_builtin): Likewise.
7999 * (user_reg_add): Likewise.
8000 * (value_of_user_reg): Likewise.
8001
8002 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8003
8004 * sparc-nat.c (gdb_ptrace): New.
8005 * sparc-nat.c (sparc_fetch_inferior_registers)
8006 (sparc_store_inferior_registers) Remove obsolete comment.
8007 * sparc-nat.c (sparc_fetch_inferior_registers)
8008 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
8009 * sparc-nat.c (sparc_fetch_inferior_registers)
8010 (sparc_store_inferior_registers) Use gdb_ptrace.
8011
8012 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8013
8014 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
8015 it to the ptrace call.
8016 * sh-nbsd-nat.c (store_registers): Likewise.
8017
8018 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8019
8020 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
8021 nbsd_nat_target instead of inf_ptrace_target.
8022 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8023 nbsd_nat_target.
8024
8025 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8026
8027 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
8028
8029 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8030
8031 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
8032 <sys/sysctl.h>.
8033 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
8034
8035 2020-03-17 Tom de Vries <tdevries@suse.de>
8036
8037 PR gdb/23710
8038 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
8039 fields.
8040 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
8041 fields.
8042 (process_imported_unit_die): Skip import of c++ CUs.
8043
8044 2020-03-16 Tom Tromey <tom@tromey.com>
8045
8046 * p-valprint.c (pascal_object_print_value): Initialize
8047 base_value.
8048
8049 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
8050 Shahab Vahedi <shahab@synopsys.com>
8051
8052 * Makefile.in: Add arch/arc.o
8053 * configure.tgt: Likewise.
8054 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
8055 (_initialize_arc_tdep): Don't initialize old target descriptions.
8056 (arc_read_description): New function to cache target descriptions.
8057 * arc-tdep.h (arc_read_description): Add proto type.
8058 * arch/arc.c: New file.
8059 * arch/arc.h: Likewise.
8060 * features/Makefile: Replace old target descriptions with new.
8061 * features/arc-arcompact.c: Remove.
8062 * features/arc-arcompact.xml: Likewise.
8063 * features/arc-v2.c: Likewise
8064 * features/arc-v2.xml: Likewise
8065 * features/arc/aux-arcompact.xml: New file.
8066 * features/arc/aux-v2.xml: Likewise.
8067 * features/arc/core-arcompact.xml: Likewise.
8068 * features/arc/core-v2.xml: Likewise.
8069 * features/arc/aux-arcompact.c: Generate.
8070 * features/arc/aux-v2.c: Likewise.
8071 * features/arc/core-arcompact.c: Likewise.
8072 * features/arc/core-v2.c: Likewise.
8073 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
8074
8075 2020-03-16 Tom Tromey <tromey@adacore.com>
8076
8077 PR gdb/25663:
8078 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
8079 putting value into bcache.
8080
8081 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8082
8083 PR gdb/21500
8084 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
8085 to...
8086 (amd64_windows_init_abi_common): ... this. Don't set size of
8087 long type.
8088 (amd64_windows_init_abi): New function.
8089 (amd64_cygwin_init_abi): New function.
8090 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
8091 the Cygwin OS ABI.
8092 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
8093 comment.
8094
8095 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8096
8097 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
8098 * windows-tdep.c (CYGWIN_DLL_NAME): New.
8099 (pe_import_directory_entry): New struct type.
8100 (is_linked_with_cygwin_dll): New function.
8101 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
8102 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
8103 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
8104
8105 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8106
8107 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
8108 i386_cygwin_core_osabi_sniffer.
8109
8110 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8111
8112 * i386-cygwin-tdep.c: Rename to...
8113 * i386-windows-tdep.c: ... this.
8114 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
8115 i386-windows-tdep.c.
8116 * configure.tgt: Likewise.
8117
8118 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8119
8120 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
8121 * osabi.c (gdb_osabi_names): Add "Windows".
8122 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
8123 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
8124 (i386_cygwin_core_osabi_sniffer): New function, extracted from
8125 i386_cygwin_osabi_sniffer.
8126 (_initialize_i386_cygwin_tdep): Register OS ABI
8127 GDB_OSABI_WINDOWS for i386.
8128 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
8129 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
8130 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
8131 for x86-64.
8132 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
8133 when the target matches '*-*-mingw*'.
8134
8135 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8136
8137 * defs.h (enum gdb_osabi): Move to...
8138 * osabi.h (enum gdb_osabi): ... here.
8139 * gdbarch.sh: Include osabi.h in gdbarch.h.
8140 * gdbarch.h: Re-generate.
8141
8142 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8143
8144 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
8145 function.
8146 (_initialize_amd64_windows_tdep): Register osabi sniffer.
8147
8148 2020-03-14 Tom Tromey <tom@tromey.com>
8149
8150 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
8151 for C++.
8152 (c_type_print_modifier): Likewise. Add "language" parameter.
8153 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
8154 (c_type_print_base_1): Update.
8155 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
8156 constants.
8157 * type-stack.c (type_stack::insert): Handle tp_atomic and
8158 tp_restrict.
8159 (type_stack::follow_type_instance_flags): Likewise.
8160 (type_stack::follow_types): Likewise. Merge type-following code.
8161 * c-exp.y (RESTRICT, ATOMIC): New tokens.
8162 (space_identifier, cv_with_space_id)
8163 (const_or_volatile_or_space_identifier_noopt)
8164 (const_or_volatile_or_space_identifier): Remove.
8165 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
8166 rules.
8167 (ptr_operator, typebase): Update.
8168 (enum token_flag) <FLAG_C>: New constant.
8169 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
8170 "_Atomic".
8171 (lex_one_token): Handle FLAG_C.
8172
8173 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8174
8175 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
8176 it to the ptrace call.
8177 * m68k-bsd-nat.c (store_registers): Likewise.
8178
8179 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8180
8181 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
8182 gdb_byte *.
8183 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
8184 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
8185 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
8186
8187 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8188
8189 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
8190 nbsd_nat_target instead of inf_ptrace_target.
8191 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8192 nbsd_nat_target.
8193
8194 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8195
8196 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
8197 register_t.
8198
8199 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8200
8201 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
8202 it to the ptrace call.
8203 * alpha-bsd-nat.c (store_registers): Likewise.
8204
8205 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8206
8207 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
8208 includes.
8209 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
8210 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
8211 fill_fpregset): Likewise.
8212
8213 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8214
8215 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
8216 nbsd_nat_target instead of inf_ptrace_target.
8217 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8218 nbsd_nat_target.
8219
8220 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8221
8222 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
8223 register_t.
8224
8225 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8226
8227 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
8228 it to the ptrace call.
8229 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
8230 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
8231 * arm-nbsd-nat.c (store_register): Likewise.
8232 * arm-nbsd-nat.c (store_regs): Likewise.
8233 * arm-nbsd-nat.c (store_fp_register): Likewise.
8234 * arm-nbsd-nat.c (store_fp_regs): Likewise.
8235
8236 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8237
8238 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
8239 nbsd_nat_target instead of inf_ptrace_target.
8240 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8241 nbsd_nat_target.
8242
8243 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8244
8245 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
8246 it to the ptrace call.
8247 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
8248
8249 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8250
8251 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
8252 it to the ptrace call.
8253 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
8254
8255 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8256
8257 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
8258 gdb_byte *.
8259 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
8260
8261 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8262
8263 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
8264 instead of inf_ptrace_target.
8265 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8266 nbsd_nat_target.
8267
8268 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8269
8270 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8271 register_t.
8272
8273 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8274
8275 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8276 register_t.
8277
8278 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8279
8280 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
8281 register_t.
8282
8283 2020-03-13 Tom Tromey <tom@tromey.com>
8284
8285 * value.h (val_print): Don't declare.
8286 * valprint.h (val_print_array_elements)
8287 (val_print_scalar_formatted, generic_val_print): Don't declare.
8288 * valprint.c (generic_val_print_array): Take a struct value.
8289 (generic_val_print_ptr, generic_val_print_memberptr)
8290 (generic_val_print_bool, generic_val_print_int)
8291 (generic_val_print_char, generic_val_print_complex)
8292 (generic_val_print): Remove.
8293 (generic_value_print): Update.
8294 (do_val_print): Remove unused parameters. Don't call
8295 la_val_print.
8296 (val_print): Remove.
8297 (common_val_print): Update. Don't call value_check_printable.
8298 (val_print_scalar_formatted, val_print_array_elements): Remove.
8299 * rust-lang.c (rust_val_print): Remove.
8300 (rust_language_defn): Update.
8301 * p-valprint.c (pascal_val_print): Remove.
8302 (pascal_value_print_inner): Update.
8303 (pascal_object_print_val_fields, pascal_object_print_val):
8304 Remove.
8305 (pascal_object_print_static_field): Update.
8306 * p-lang.h (pascal_val_print): Don't declare.
8307 * p-lang.c (pascal_language_defn): Update.
8308 * opencl-lang.c (opencl_language_defn): Update.
8309 * objc-lang.c (objc_language_defn): Update.
8310 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
8311 * m2-lang.h (m2_val_print): Don't declare.
8312 * m2-lang.c (m2_language_defn): Update.
8313 * language.h (struct language_defn) <la_val_print>: Remove.
8314 * language.c (unk_lang_value_print_inner): Rename. Change
8315 argument types.
8316 (unknown_language_defn, auto_language_defn): Update.
8317 * go-valprint.c (go_val_print): Remove.
8318 * go-lang.h (go_val_print): Don't declare.
8319 * go-lang.c (go_language_defn): Update.
8320 * f-valprint.c (f_val_print): Remove.
8321 * f-lang.h (f_value_print): Don't declare.
8322 * f-lang.c (f_language_defn): Update.
8323 * d-valprint.c (d_val_print): Remove.
8324 * d-lang.h (d_value_print): Don't declare.
8325 * d-lang.c (d_language_defn): Update.
8326 * cp-valprint.c (cp_print_value_fields)
8327 (cp_print_value_fields_rtti, cp_print_value): Remove.
8328 (cp_print_static_field): Update.
8329 * c-valprint.c (c_val_print_array, c_val_print_ptr)
8330 (c_val_print_struct, c_val_print_union, c_val_print_int)
8331 (c_val_print_memberptr, c_val_print): Remove.
8332 * c-lang.h (c_val_print_array, cp_print_value_fields)
8333 (cp_print_value_fields_rtti): Don't declare.
8334 * c-lang.c (c_language_defn, cplus_language_defn)
8335 (asm_language_defn, minimal_language_defn): Update.
8336 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
8337 (ada_val_print_enum): Take a struct value.
8338 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
8339 (ada_val_print): Remove.
8340 (ada_value_print_1): Update.
8341 (printable_val_type): Remove.
8342 * ada-lang.h (ada_val_print): Don't declare.
8343 * ada-lang.c (ada_language_defn): Update.
8344
8345 2020-03-13 Tom Tromey <tom@tromey.com>
8346
8347 * valprint.c (do_val_print): Update.
8348 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
8349 a struct value.
8350 (value_to_value_object_no_release): Declare.
8351 * python/py-value.c (value_to_value_object_no_release): New
8352 function.
8353 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
8354 struct value.
8355 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
8356 function.
8357 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
8358 a struct value.
8359 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
8360 Declare.
8361 (gdbscm_apply_val_pretty_printer): Take a struct value.
8362 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
8363 value.
8364 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
8365 value.
8366 * extension-priv.h (struct extension_language_ops)
8367 <apply_val_pretty_printer>: Take a struct value.
8368 * cp-valprint.c (cp_print_value): Create a struct value.
8369 (cp_print_value): Update.
8370
8371 2020-03-13 Tom Tromey <tom@tromey.com>
8372
8373 * ada-valprint.c (print_field_values): Call common_val_print.
8374
8375 2020-03-13 Tom Tromey <tom@tromey.com>
8376
8377 * ada-valprint.c (val_print_packed_array_elements): Remove
8378 bitoffset and val parameters. Call common_val_print.
8379 (ada_val_print_string): Remove offset, address, and original_value
8380 parameters.
8381 (ada_val_print_array): Update.
8382 (ada_value_print_array): New function.
8383 (ada_value_print_1): Call it.
8384
8385 2020-03-13 Tom Tromey <tom@tromey.com>
8386
8387 * ada-valprint.c (ada_value_print): Use common_val_print.
8388
8389 2020-03-13 Tom Tromey <tom@tromey.com>
8390
8391 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
8392
8393 2020-03-13 Tom Tromey <tom@tromey.com>
8394
8395 * ada-valprint.c (ada_value_print_num): New function.
8396 (ada_value_print_1): Use it.
8397
8398 2020-03-13 Tom Tromey <tom@tromey.com>
8399
8400 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8401
8402 2020-03-13 Tom Tromey <tom@tromey.com>
8403
8404 * ada-valprint.c (ada_value_print_ptr): New function.
8405 (ada_value_print_1): Use it.
8406
8407 2020-03-13 Tom Tromey <tom@tromey.com>
8408
8409 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8410 call common_val_print.
8411 (ada_val_print_1): Update.
8412 (ada_value_print_1): New function.
8413 (ada_value_print_inner): Rewrite.
8414
8415 2020-03-13 Tom Tromey <tom@tromey.com>
8416
8417 * cp-valprint.c (cp_print_value_fields): Update.
8418 (cp_print_value): New function.
8419
8420 2020-03-13 Tom Tromey <tom@tromey.com>
8421
8422 * m2-valprint.c (m2_value_print_inner): Use
8423 cp_print_value_fields.
8424 * cp-valprint.c (cp_print_value_fields): New function.
8425 * c-valprint.c (c_value_print_struct): New function.
8426 (c_value_print_inner): Use c_value_print_struct.
8427 * c-lang.h (cp_print_value_fields): Declare.
8428
8429 2020-03-13 Tom Tromey <tom@tromey.com>
8430
8431 * c-valprint.c (c_value_print_array): New function.
8432 (c_value_print_inner): Use it.
8433
8434 2020-03-13 Tom Tromey <tom@tromey.com>
8435
8436 * c-valprint.c (c_value_print_memberptr): New function.
8437 (c_value_print_inner): Use it.
8438
8439 2020-03-13 Tom Tromey <tom@tromey.com>
8440
8441 * c-valprint.c (c_value_print_int): New function.
8442 (c_value_print_inner): Use it.
8443
8444 2020-03-13 Tom Tromey <tom@tromey.com>
8445
8446 * c-valprint.c (c_value_print_ptr): New function.
8447 (c_value_print_inner): Use it.
8448
8449 2020-03-13 Tom Tromey <tom@tromey.com>
8450
8451 * c-valprint.c (c_value_print_inner): Rewrite.
8452
8453 2020-03-13 Tom Tromey <tom@tromey.com>
8454
8455 * valprint.c (generic_value_print_complex): New function.
8456 (generic_value_print): Use it.
8457
8458 2020-03-13 Tom Tromey <tom@tromey.com>
8459
8460 * valprint.c (generic_val_print_float): Don't call
8461 val_print_scalar_formatted.
8462 (generic_val_print, generic_value_print): Update.
8463
8464 2020-03-13 Tom Tromey <tom@tromey.com>
8465
8466 * valprint.c (generic_value_print_char): New function
8467 (generic_value_print): Use it.
8468
8469 2020-03-13 Tom Tromey <tom@tromey.com>
8470
8471 * valprint.c (generic_value_print_int): New function.
8472 (generic_value_print): Use it.
8473
8474 2020-03-13 Tom Tromey <tom@tromey.com>
8475
8476 * valprint.c (generic_value_print_bool): New function.
8477 (generic_value_print): Use it.
8478
8479 2020-03-13 Tom Tromey <tom@tromey.com>
8480
8481 * valprint.c (generic_val_print_func): Simplify.
8482 (generic_val_print, generic_value_print): Update.
8483
8484 2020-03-13 Tom Tromey <tom@tromey.com>
8485
8486 * valprint.c (generic_val_print_flags): Remove.
8487 (generic_val_print, generic_value_print): Update.
8488 (val_print_type_code_flags): Add original_value parameter.
8489
8490 2020-03-13 Tom Tromey <tom@tromey.com>
8491
8492 * valprint.c (generic_val_print): Update.
8493 (generic_value_print): Update.
8494 * valprint.c (generic_val_print_enum): Don't call
8495 val_print_scalar_formatted.
8496
8497 2020-03-13 Tom Tromey <tom@tromey.com>
8498
8499 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8500 * valprint.c (generic_value_print_ptr): New function.
8501
8502 2020-03-13 Tom Tromey <tom@tromey.com>
8503
8504 * valprint.c (generic_value_print): Rewrite.
8505
8506 2020-03-13 Tom Tromey <tom@tromey.com>
8507
8508 * p-valprint.c (pascal_object_print_value_fields)
8509 (pascal_object_print_value): New functions.
8510
8511 2020-03-13 Tom Tromey <tom@tromey.com>
8512
8513 * p-valprint.c (pascal_value_print_inner): Rewrite.
8514
8515 2020-03-13 Tom Tromey <tom@tromey.com>
8516
8517 * f-valprint.c (f_value_print_innner): Rewrite.
8518
8519 2020-03-13 Tom Tromey <tom@tromey.com>
8520
8521 * m2-valprint.c (m2_print_unbounded_array): New overload.
8522 (m2_print_unbounded_array): Update.
8523 (m2_print_array_contents): Take a struct value.
8524 (m2_value_print_inner): Rewrite.
8525
8526 2020-03-13 Tom Tromey <tom@tromey.com>
8527
8528 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8529 (d_value_print_inner): New function.
8530 * d-lang.h (d_value_print_inner): Declare.
8531 * d-lang.c (d_language_defn): Use d_value_print_inner.
8532
8533 2020-03-13 Tom Tromey <tom@tromey.com>
8534
8535 * go-valprint.c (go_value_print_inner): New function.
8536 * go-lang.h (go_value_print_inner): Declare.
8537 * go-lang.c (go_language_defn): Use go_value_print_inner.
8538
8539 2020-03-13 Tom Tromey <tom@tromey.com>
8540
8541 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8542 API.
8543 (rust_val_print): Rewrite.
8544 (rust_value_print_inner): New function, from rust_val_print.
8545 (rust_language_defn): Use rust_value_print_inner.
8546
8547 2020-03-13 Tom Tromey <tom@tromey.com>
8548
8549 * ada-valprint.c (ada_value_print_inner): New function.
8550 * ada-lang.h (ada_value_print_inner): Declare.
8551 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8552
8553 2020-03-13 Tom Tromey <tom@tromey.com>
8554
8555 * f-valprint.c (f_value_print_innner): New function.
8556 * f-lang.h (f_value_print_innner): Declare.
8557 * f-lang.c (f_language_defn): Use f_value_print_innner.
8558
8559 2020-03-13 Tom Tromey <tom@tromey.com>
8560
8561 * p-valprint.c (pascal_value_print_inner): New function.
8562 * p-lang.h (pascal_value_print_inner): Declare.
8563 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8564
8565 2020-03-13 Tom Tromey <tom@tromey.com>
8566
8567 * m2-valprint.c (m2_value_print_inner): New function.
8568 * m2-lang.h (m2_value_print_inner): Declare.
8569 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8570
8571 2020-03-13 Tom Tromey <tom@tromey.com>
8572
8573 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8574 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8575 * c-valprint.c (c_value_print_inner): New function.
8576 * c-lang.h (c_value_print_inner): Declare.
8577 * c-lang.c (c_language_defn, cplus_language_defn)
8578 (asm_language_defn, minimal_language_defn): Use
8579 c_value_print_inner.
8580
8581 2020-03-13 Tom Tromey <tom@tromey.com>
8582
8583 * p-valprint.c (pascal_object_print_value_fields): Now static.
8584 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8585
8586 2020-03-13 Tom Tromey <tom@tromey.com>
8587
8588 * c-valprint.c (c_val_print_array): Simplify.
8589
8590 2020-03-13 Tom Tromey <tom@tromey.com>
8591
8592 * valprint.c (value_print_array_elements): New function.
8593 * valprint.h (value_print_array_elements): Declare.
8594
8595 2020-03-13 Tom Tromey <tom@tromey.com>
8596
8597 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8598 * mips-tdep.c (mips_print_register): Use
8599 value_print_scalar_formatted.
8600
8601 2020-03-13 Tom Tromey <tom@tromey.com>
8602
8603 * valprint.h (value_print_scalar_formatted): Declare.
8604 * valprint.c (value_print_scalar_formatted): New function.
8605
8606 2020-03-13 Tom Tromey <tom@tromey.com>
8607
8608 * valprint.h (generic_value_print): Declare.
8609 * valprint.c (generic_value_print): New function.
8610
8611 2020-03-13 Tom Tromey <tom@tromey.com>
8612
8613 * valprint.c (do_val_print): Call la_value_print_inner, if
8614 available.
8615 * rust-lang.c (rust_language_defn): Update.
8616 * p-lang.c (pascal_language_defn): Update.
8617 * opencl-lang.c (opencl_language_defn): Update.
8618 * objc-lang.c (objc_language_defn): Update.
8619 * m2-lang.c (m2_language_defn): Update.
8620 * language.h (struct language_defn) <la_value_print_inner>: New
8621 member.
8622 * language.c (unknown_language_defn, auto_language_defn): Update.
8623 * go-lang.c (go_language_defn): Update.
8624 * f-lang.c (f_language_defn): Update.
8625 * d-lang.c (d_language_defn): Update.
8626 * c-lang.c (c_language_defn, cplus_language_defn)
8627 (asm_language_defn, minimal_language_defn): Update.
8628 * ada-lang.c (ada_language_defn): Update.
8629
8630 2020-03-13 Tom Tromey <tom@tromey.com>
8631
8632 * c-valprint.c (c_value_print): Use common_val_print.
8633
8634 2020-03-13 Tom Tromey <tom@tromey.com>
8635
8636 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8637
8638 2020-03-13 Tom Tromey <tom@tromey.com>
8639
8640 * f-valprint.c (f77_print_array_1, f_val_print): Use
8641 common_val_print.
8642
8643 2020-03-13 Tom Tromey <tom@tromey.com>
8644
8645 * riscv-tdep.c (riscv_print_one_register_info): Use
8646 common_val_print.
8647
8648 2020-03-13 Tom Tromey <tom@tromey.com>
8649
8650 * mi/mi-main.c (output_register): Use common_val_print.
8651
8652 2020-03-13 Tom Tromey <tom@tromey.com>
8653
8654 * infcmd.c (default_print_one_register_info): Use
8655 common_val_print.
8656
8657 2020-03-13 Tom Tromey <tom@tromey.com>
8658
8659 * valprint.h (common_val_print_checked): Declare.
8660 * valprint.c (common_val_print_checked): New function.
8661 * stack.c (print_frame_arg): Use common_val_print_checked.
8662
8663 2020-03-13 Tom Tromey <tom@tromey.com>
8664
8665 * valprint.c (do_val_print): New function, from val_print.
8666 (val_print): Use do_val_print.
8667 (common_val_print): Use do_val_print.
8668
8669 2020-03-13 Tom Tromey <tom@tromey.com>
8670
8671 * valprint.c (value_print): Use scoped_value_mark.
8672
8673 2020-03-13 Tom de Vries <tdevries@suse.de>
8674
8675 PR symtab/25646
8676 * psymtab.c (partial_symtab::partial_symtab): Don't set
8677 globals_offset and statics_offset. Push element onto
8678 current_global_psymbols and current_static_psymbols stacks.
8679 (concat): New function.
8680 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8681 element from current_global_psymbols and current_static_psymbols
8682 stacks. Concat popped elements to global_psymbols and
8683 static_symbols.
8684 (add_psymbol_to_list): Use current_global_psymbols and
8685 current_static_psymbols stacks.
8686 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8687 current_static_psymbols fields.
8688
8689 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8690
8691 * corelow.c (sniff_core_bfd): Remove.
8692 (class core_target) <m_core_vec>: Remove.
8693 (core_target::core_target): Update.
8694 (core_file_fns): Remove.
8695 (deprecated_add_core_fns): Remove.
8696 (default_core_sniffer): Remove.
8697 (sniff_core_bfd): Remove.
8698 (default_check_format): Remove.
8699 (gdb_check_format): Remove.
8700 (core_target_open): Update.
8701 (core_target::get_core_register_section): Update.
8702 (get_core_registers_cb): Update.
8703 (core_target::fetch_registers): Update.
8704 * gdbcore.h (struct core_fns): Remove.
8705 (deprecated_add_core_fns): Remove.
8706 (default_core_sniffer): Remove.
8707 (default_check_format): Remove.
8708
8709 2020-03-12 Tom Tromey <tom@tromey.com>
8710
8711 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8712 CORE_ADDR.
8713 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8714
8715 2020-03-12 Tom Tromey <tom@tromey.com>
8716
8717 * remote.c (remote_target::download_tracepoint)
8718 (remote_target::enable_tracepoint)
8719 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8720 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8721 sprintf_vma.
8722
8723 2020-03-12 Tom Tromey <tom@tromey.com>
8724
8725 * symfile-mem.c: Update CORE_ADDR size assert.
8726
8727 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8728
8729 * selftest.m4: Move to gdbsupport/.
8730 * acinclude.m4: Update path to selftest.m4.
8731
8732 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8733
8734 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8735 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8736 gdbarch-selfselftests.c and selftest-arch.c.
8737 (SUBDIR_UNITTESTS_OBS): Rename to...
8738 (SELFTESTS_OBS): ... this.
8739 (COMMON_SFILES): Remove disasm-selftests.c and
8740 gdbarch-selftests.c.
8741 * configure.ac: Don't add selftest-arch.{c,o} to
8742 CONFIG_{SRCS,OBS}.
8743 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8744 preprocessor conditions.
8745
8746 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8747
8748 * configure.ac: Don't source bfd/development.sh.
8749 * selftest.m4: Modify comment.
8750 * configure: Re-generate.
8751
8752 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8753
8754 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8755 not "true" or "false".
8756 * configure: Re-generate.
8757
8758 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8759
8760 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8761 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8762 renamed to arm_nbsd_supply_gregset.
8763 (fetch_register): Update to call arm_nbsd_supply_gregset.
8764 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8765 (arm_netbsd_nat_target::fetch_registers): Update.
8766 (fetch_elfcore_registers): Removed.
8767 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8768 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8769 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8770 not require NetBSD system headers.
8771 (arm_nbsd_regset): New struct.
8772 (arm_nbsd_iterate_over_regset_sections): New function.
8773 (arm_netbsd_init_abi_common): Updated to call
8774 set_gdbarch_iterate_over_regset_sections.
8775 * arm-nbsd-tdep.h: New file.
8776
8777 2020-03-11 Kevin Buettner <kevinb@redhat.com>
8778
8779 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8780 recursion.
8781
8782 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
8783
8784 * configure: Re-generate.
8785
8786 2020-03-11 Tom Tromey <tromey@adacore.com>
8787
8788 * ada-typeprint.c (print_choices): Fix comment.
8789
8790 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8791
8792 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8793 previous item in the list, when the list has no items.
8794
8795 2020-03-11 Tom de Vries <tdevries@suse.de>
8796
8797 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8798 PROP_LOCLIST handling code.
8799
8800 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8801
8802 * buildsym-legacy.c (record_line): Pass extra parameter to
8803 record_line.
8804 * buildsym.c (buildsym_compunit::record_line): Take an extra
8805 parameter, reduce duplication in the line table, and record the
8806 is_stmt flag in the line table.
8807 * buildsym.h (buildsym_compunit::record_line): Add extra
8808 parameter.
8809 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8810 non-statement lines.
8811 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8812 this to the symtab builder.
8813 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8814 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8815 through to dwarf_record_line_1.
8816 * infrun.c (process_event_stop_test): When stepping, don't stop at
8817 a non-statement instruction, and only refresh the step info when
8818 we land in the middle of a line's range. Also add an extra
8819 comment.
8820 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8821 field.
8822 * record-btrace.c (btrace_find_line_range): Only record lines
8823 marked as is-statement.
8824 * stack.c (frame_show_address): Show the frame address if we are
8825 in a non-statement sal.
8826 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8827 (maintenance_print_one_line_table): Print a header for the is_stmt
8828 column, and include is_stmt information in the output.
8829 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8830 preference to non-statements.
8831 (find_pcs_for_symtab_line): Prefer is-statement entries.
8832 (find_line_common): Likewise.
8833 * symtab.h (struct linetable_entry): Add is_stmt field.
8834 (struct symtab_and_line): Likewise.
8835 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8836 arranging the line table.
8837
8838 2020-03-07 Tom de Vries <tdevries@suse.de>
8839
8840 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8841 DIE.
8842
8843 2020-03-07 Tom Tromey <tom@tromey.com>
8844
8845 * valops.c (value_literal_complex): Remove obsolete comment.
8846 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8847 comment.
8848
8849 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8850
8851 * infrun.h: Forward-declare thread_info.
8852 (set_step_info): Add thread_info parameter, add doc.
8853 * infrun.c (set_step_info): Add thread_info parameter, move doc
8854 to header.
8855 * infrun.c (process_event_stop_test): Pass thread to
8856 set_step_info call.
8857 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8858 set_step_info.
8859 (prepare_one_step): Add thread_info parameter, pass it to
8860 set_step_frame and prepare_one_step (recursive) call.
8861 (step_1): Pass thread to prepare_one_step call.
8862 (step_command_fsm::should_stop): Pass thread to
8863 prepare_one_step.
8864 (until_next_fsm): Pass thread to set_step_frame call.
8865 (finish_command): Pass thread to set_step_info call.
8866
8867 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
8868
8869 * windows-tdep.c (windows_solib_create_inferior_hook):
8870 Check if inferior is running.
8871
8872 2020-03-06 Tom de Vries <tdevries@suse.de>
8873
8874 * NEWS: Fix "the the".
8875 * ctfread.c: Same.
8876
8877 2020-03-06 Tom de Vries <tdevries@suse.de>
8878
8879 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8880
8881 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8882
8883 * .dir-locals.el: Add a comment referencing the other copies of
8884 this file.
8885
8886 2020-03-05 John Baldwin <jhb@FreeBSD.org>
8887
8888 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8889 psargs.
8890
8891 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8892
8893 * .gitattributes: New file.
8894
8895 2020-03-04 Tom Tromey <tom@tromey.com>
8896
8897 * symmisc.c (print_symbol_bcache_statistics)
8898 (print_objfile_statistics): Update.
8899 * symfile.c (allocate_symtab): Use intern.
8900 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8901 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8902 macro_cache>: Remove.
8903 <string_cache>: New member.
8904 (struct objfile) <intern>: New methods.
8905 * elfread.c (elf_symtab_read): Use intern.
8906 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8907 (dwarf2_compute_name, dwarf2_physname)
8908 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8909 names.
8910 (guess_partial_die_structure_name): Update.
8911 (partial_die_info::fixup): Intern name.
8912 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8913 name.
8914 (dwarf2_name): Intern name. Update.
8915 * buildsym.c (buildsym_compunit::get_macro_table): Use
8916 string_cache.
8917
8918 2020-03-04 Tom Tromey <tom@tromey.com>
8919
8920 * jit.c (bfd_open_from_target_memory): Make "target" const.
8921 * corefile.c (gnutarget): Now const.
8922 * gdbcore.h (gnutarget): Now const.
8923
8924 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
8925
8926 * NEWS: Mention support for WOW64 processes.
8927 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8928 (amd64_windows_segment_register_p): Remove static.
8929 (_initialize_amd64_windows_nat): Update.
8930 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8931 * i386-windows-nat.c (context_offset): Update.
8932 (i386_mappings): Rename and remove static.
8933 (i386_windows_segment_register_p): Remove static.
8934 (_initialize_i386_windows_nat): Update.
8935 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8936 (STATUS_WX86_SINGLE_STEP): New macro.
8937 (EnumProcessModulesEx): New macro.
8938 (Wow64SuspendThread): New macro.
8939 (Wow64GetThreadContext): New macro.
8940 (Wow64SetThreadContext): New macro.
8941 (Wow64GetThreadSelectorEntry): New macro.
8942 (windows_set_context_register_offsets): Add static.
8943 (windows_set_segment_register_p): Likewise.
8944 (windows_add_thread): Adapt for WOW64 processes.
8945 (windows_fetch_one_register): Likewise.
8946 (windows_nat_target::fetch_registers): Likewise.
8947 (windows_store_one_register): Likewise.
8948 (display_selector): Likewise.
8949 (display_selectors): Likewise.
8950 (handle_exception): Likewise.
8951 (windows_continue): Likewise.
8952 (windows_nat_target::resume): Likewise.
8953 (windows_add_all_dlls): Likewise.
8954 (do_initial_windows_stuff): Likewise.
8955 (windows_nat_target::attach): Likewise.
8956 (windows_get_exec_module_filename): Likewise.
8957 (windows_nat_target::create_inferior): Likewise.
8958 (windows_xfer_siginfo): Likewise.
8959 (_initialize_loadable): Initialize Wow64SuspendThread,
8960 Wow64GetThreadContext, Wow64SetThreadContext,
8961 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8962 * windows-nat.h (windows_set_context_register_offsets):
8963 Remove declaration.
8964 (windows_set_segment_register_p): Likewise.
8965 (i386_windows_segment_register_p): Add declaration.
8966 (amd64_windows_segment_register_p): Likewise.
8967
8968 2020-03-04 Luis Machado <luis.machado@linaro.org>
8969
8970 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8971 in "info registers" for AArch64/ARM.
8972
8973 The change caused "info registers" to not print GPR's.
8974
8975 gdb/ChangeLog:
8976
8977 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8978
8979 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8980 when reg->group is empty and reggroup is not.
8981
8982 2020-03-03 Tom Tromey <tromey@adacore.com>
8983
8984 * dwarf2/frame.c (struct dwarf2_frame_cache)
8985 <checked_tailcall_bottom, entry_cfa_sp_offset,
8986 entry_cfa_sp_offset_p>: Remove members.
8987 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8988 (dwarf2_frame_prev_register): Don't call
8989 dwarf2_tailcall_sniffer_first.
8990 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8991 * frame-unwind.c (add_unwinder): New fuction.
8992 (frame_unwind_init): Use it. Add tailcall unwinder.
8993
8994 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8995 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8996
8997 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8998 value should be printed as true.
8999
9000 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
9001
9002 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
9003 (windows_init_abi): Set and use windows_so_ops.
9004
9005 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
9006
9007 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
9008 when verifying if dealing with a convenience variable.
9009
9010 2020-03-03 Luis Machado <luis.machado@linaro.org>
9011
9012 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
9013
9014 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9015
9016 * infrun.c (gdbarch_supports_displaced_stepping): New.
9017 (use_displaced_stepping): Break up conditions in smaller pieces.
9018 Use gdbarch_supports_displaced_stepping.
9019 (displaced_step_prepare_throw): Use
9020 gdbarch_supports_displaced_stepping.
9021
9022 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9023
9024 * NEWS: Mention new behaviour of the history filename.
9025 * top.c (write_history_p): Add comment.
9026 (show_write_history_p): Add header comment, give a different
9027 message when history writing is on, but the history filename is
9028 empty.
9029 (history_filename): Add comment.
9030 (history_filename_empty): New function.
9031 (show_history_filename): Add header comment, give a different
9032 message when the filename is empty.
9033 (init_history): Compare history_filename against nullptr, and only
9034 read history if the filename is not empty.
9035 (set_history_filename): Add header comment, and only make
9036 non-empty filenames absolute.
9037 (init_main): Make the filename argument to 'set history filename'
9038 optional.
9039
9040 2020-03-02 Christian Biesinger <cbiesinger@google.com>
9041
9042 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
9043 (arm_supply_vfpregset): ...this, and update to use VFP registers.
9044 (fetch_fp_register): Update.
9045 (fetch_fp_regs): Update.
9046 (store_fp_register): Update.
9047 (store_fp_regs): Update.
9048 (arm_netbsd_nat_target::read_description): New function.
9049 (fetch_elfcore_registers): Update.
9050
9051 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9052
9053 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
9054 general_thread if the stop reply is missing a thread-id.
9055 (remote_target::process_stop_reply): Use the first non-exited
9056 thread if the target didn't pass a thread-id.
9057 * infrun.c (do_target_wait): Move call to
9058 switch_to_inferior_no_thread to ....
9059 (do_target_wait_1): ... here.
9060
9061 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
9062
9063 * debuginfod-support.c: Include defs.h first.
9064
9065 2020-02-28 Tom de Vries <tdevries@suse.de>
9066
9067 * symfile.c (set_initial_language): Use default language for lookup.
9068
9069 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
9070
9071 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
9072 reader variable, pass `this` to read_cutu_die_from_dwo.
9073
9074 2020-02-27 Aaron Merey <amerey@redhat.com>
9075
9076 * source.c (open_source_file): Check for nullptr when computing
9077 srcpath.
9078
9079 2020-02-27 Tom Tromey <tromey@adacore.com>
9080
9081 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
9082 member.
9083 (dwarf2_add_field): Don't update nfields.
9084 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
9085
9086 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9087
9088 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
9089 abs.
9090
9091 2020-02-26 Tom Tromey <tom@tromey.com>
9092
9093 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
9094 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
9095 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
9096 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
9097 per_cu_data.
9098
9099 2020-02-26 Tom Tromey <tom@tromey.com>
9100
9101 * dwarf2/index-write.c (psym_index_map): Change type.
9102 (add_address_entry_worker, write_one_signatured_type)
9103 (recursively_count_psymbols, recursively_write_psymbols)
9104 (class debug_names, psyms_seen_size, write_gdbindex)
9105 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
9106
9107 2020-02-26 Aaron Merey <amerey@redhat.com>
9108
9109 * Makefile.in: Handle optional debuginfod support.
9110 * NEWS: Update.
9111 * README: Add --with-debuginfod summary.
9112 * config.in: Regenerate.
9113 * configure: Regenerate.
9114 * configure.ac: Handle optional debuginfod support.
9115 * debuginfod-support.c: debuginfod helper functions.
9116 * debuginfod-support.h: Ditto.
9117 * doc/gdb.texinfo: Add --with-debuginfod to configure options
9118 summary.
9119 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
9120 when a dwz file cannot be found.
9121 * elfread.c (elf_symfile_read): Query debuginfod servers when a
9122 debuginfo file cannot be found.
9123 * source.c (open_source_file): Query debuginfod servers when a
9124 source file cannot be found.
9125 * top.c (print_gdb_configuration): Include
9126 --{with,without}-debuginfod in the output.
9127
9128 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
9129
9130 * thread.c (thr_try_catch_cmd): Print thread name.
9131
9132 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
9133
9134 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
9135 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9136 dwarf2_fetch_die_type_sect_off): Move to...
9137 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9138 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9139 dwarf2_fetch_die_type_sect_off): ... here.
9140 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9141 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9142 dwarf2_fetch_die_type_sect_off): Move doc to header file.
9143
9144 2020-02-26 Tom de Vries <tdevries@suse.de>
9145
9146 PR gdb/25603
9147 * symfile.c (set_initial_language): Exit-early if
9148 language_mode == language_mode_manual.
9149
9150 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9151
9152 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
9153 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
9154 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
9155
9156 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
9157
9158 * gdbtypes.c (create_array_type_with_stride): Handle negative
9159 array strides.
9160 * valarith.c (value_subscripted_rvalue): Likewise.
9161
9162 2020-02-25 Luis Machado <luis.machado@linaro.org>
9163
9164 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
9165
9166 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9167
9168 * loc.h (dwarf2_get_die_type): Move to...
9169 * read.h (dwarf2_get_die_type): ... here.
9170 * read.c (dwarf2_get_die_type): Move doc to header.
9171
9172 2020-02-25 Joel Brobecker <brobecker@adacore.com>
9173
9174 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
9175 'gnulib/Makefile.in' to the list.
9176
9177 2020-02-24 Tom Tromey <tom@tromey.com>
9178
9179 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
9180 Remove.
9181 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
9182 XOBNEWVEC.
9183
9184 2020-02-24 Tom Tromey <tom@tromey.com>
9185
9186 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
9187 New method.
9188 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
9189 (dw2_do_instantiate_symtab, dw2_get_file_names)
9190 (build_type_psymtab_dependencies, load_full_type_unit): Update.
9191
9192 2020-02-24 Tom Tromey <tom@tromey.com>
9193
9194 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
9195 make_scoped_restore.
9196 (dwarf2_psymtab::read_symtab): Don't clear
9197 reading_partial_symbols.
9198
9199 2020-02-24 Tom de Vries <tdevries@suse.de>
9200
9201 PR gdb/25592
9202 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
9203
9204 2020-02-24 Tom de Vries <tdevries@suse.de>
9205
9206 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
9207 commands layout next/prev/regs.
9208
9209 2020-02-22 Tom Tromey <tom@tromey.com>
9210
9211 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
9212 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
9213
9214 2020-02-22 Tom Tromey <tom@tromey.com>
9215
9216 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
9217
9218 2020-02-22 Tom Tromey <tom@tromey.com>
9219
9220 * tui/tui-win.c (_initialize_tui_win): Add usage text.
9221 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
9222 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
9223 * tui/tui.c (_initialize_tui): Add usage text.
9224
9225 2020-02-22 Tom Tromey <tom@tromey.com>
9226
9227 * tui/tui-win.c (tui_set_focus_command)
9228 (tui_set_win_height_command): Use error_no_arg.
9229 (_initialize_tui_win): Update help text.
9230 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
9231
9232 2020-02-22 Tom Tromey <tom@tromey.com>
9233
9234 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
9235 * tui/tui-disasm.h (struct tui_disasm_window)
9236 <display_start_addr>: Declare.
9237 * tui/tui-source.h (struct tui_source_window)
9238 <display_start_addr>: Declare.
9239 * tui/tui-winsource.h (struct tui_source_window_base)
9240 <show_source_line, display_start_addr>: New methods.
9241 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
9242 Rename and move to protected section.
9243 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
9244 (tui_source_window_base::do_erase_source_content): Update.
9245 (tui_source_window_base::show_source_line): Now a method.
9246 (tui_source_window_base::show_source_content)
9247 (tui_source_window_base::tui_source_window_base)
9248 (tui_source_window_base::rerender)
9249 (tui_source_window_base::refill)
9250 (tui_source_window_base::do_scroll_horizontal)
9251 (tui_source_window_base::set_is_exec_point_at)
9252 (tui_source_window_base::update_breakpoint_info)
9253 (tui_source_window_base::update_exec_info): Update.
9254 * tui/tui-source.c (tui_source_window::set_contents)
9255 (tui_source_window::showing_source_p)
9256 (tui_source_window::do_scroll_vertical)
9257 (tui_source_window::location_matches_p)
9258 (tui_source_window::line_is_displayed): Update.
9259 (tui_source_window::display_start_addr): New method.
9260 * tui/tui-disasm.c (tui_disasm_window::set_contents)
9261 (tui_disasm_window::do_scroll_vertical)
9262 (tui_disasm_window::location_matches_p): Update.
9263 (tui_disasm_window::display_start_addr): New method.
9264
9265 2020-02-22 Tom Tromey <tom@tromey.com>
9266
9267 * NEWS: Add entry for gdb.register_window_type.
9268 * tui/tui-layout.h (window_factory): New typedef.
9269 (tui_register_window): Declare.
9270 * tui/tui-layout.c (saved_tui_windows): New global.
9271 (tui_apply_current_layout): Use it.
9272 (tui_register_window): New function.
9273 * python/python.c (do_start_initialization): Call
9274 gdbpy_initialize_tui.
9275 (python_GdbMethods): Add "register_window_type" function.
9276 * python/python-internal.h (gdbpy_register_tui_window)
9277 (gdbpy_initialize_tui): Declare.
9278 * python/py-tui.c: New file.
9279 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
9280
9281 2020-02-22 Tom Tromey <tom@tromey.com>
9282
9283 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
9284
9285 2020-02-22 Tom Tromey <tom@tromey.com>
9286
9287 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
9288 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
9289 * tui/tui-data.c (tui_set_win_with_focus): Remove.
9290 (tui_set_win_focus_to): Move from tui-win.c.
9291
9292 2020-02-22 Tom Tromey <tom@tromey.com>
9293
9294 * tui/tui-layout.c (make_standard_window, get_locator_window): New
9295 functions.
9296 (known_window_types): New global.
9297 (tui_get_window_by_name): Reimplement.
9298 (initialize_known_windows): New function.
9299 (validate_window_name): Rewrite.
9300 (_initialize_tui_layout): Call initialize_known_windows.
9301
9302 2020-02-22 Tom Tromey <tom@tromey.com>
9303
9304 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
9305 Remove constants.
9306 * tui/tui-winsource.h (struct tui_source_window_base)
9307 <tui_source_window_base>: Remove parameter.
9308 * tui/tui-winsource.c
9309 (tui_source_window_base::tui_source_window_base): Remove
9310 parameter.
9311 (tui_source_window_base::refill): Update.
9312 * tui/tui-stack.h (struct tui_locator_window)
9313 <tui_locator_window>: Update.
9314 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
9315 Default the constructor.
9316 * tui/tui-regs.h (struct tui_data_item_window)
9317 <tui_data_item_window>: Default the constructor.
9318 (struct tui_data_window) <tui_data_window>: Likewise.
9319 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
9320 Default the constructor.
9321 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
9322 Default the constructor.
9323 <type>: Remove.
9324 (struct tui_win_info) <tui_win_info>: Default the constructor.
9325 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
9326 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
9327 Default the constructor.
9328
9329 2020-02-22 Tom Tromey <tom@tromey.com>
9330
9331 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
9332 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
9333 * tui/tui-win.c (tui_resize_all): Don't call
9334 tui_delete_invisible_windows.
9335 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
9336 done.
9337 (tui_set_layout): Update.
9338 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
9339 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
9340 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
9341
9342 2020-02-22 Tom Tromey <tom@tromey.com>
9343
9344 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
9345 correctly.
9346
9347 2020-02-22 Tom Tromey <tom@tromey.com>
9348
9349 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
9350
9351 2020-02-22 Tom Tromey <tom@tromey.com>
9352
9353 * tui/tui-winsource.h (struct tui_source_window_iterator)
9354 <inner_iterator>: New etytypedef.
9355 <tui_source_window_iterator>: Take "end" parameter.
9356 <tui_source_window_iterator>: Take iterator.
9357 <operator*, advance>: Update.
9358 <m_iter>: Change type.
9359 <m_end>: New field.
9360 (struct tui_source_windows) <begin, end>: Update.
9361 * tui/tui-layout.c (tui_windows): New global.
9362 (tui_apply_current_layout): Clear tui_windows.
9363 (tui_layout_window::apply): Update tui_windows.
9364 * tui/tui-data.h (tui_windows): Declare.
9365 (all_tui_windows): Now inline function.
9366 (class tui_window_iterator, struct all_tui_windows): Remove.
9367
9368 2020-02-22 Tom Tromey <tom@tromey.com>
9369
9370 PR tui/17850:
9371 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
9372 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
9373 "height" argument.
9374 (class tui_layout_window) <get_sizes>: Likewise.
9375 (class tui_layout_split) <tui_layout_split>: Add "vertical"
9376 argument.
9377 <get_sizes>: Add "height" argument.
9378 <m_vertical>: New field.
9379 * tui/tui-layout.c (tui_layout_split::clone): Update.
9380 (tui_layout_split::get_sizes): Add "height" argument.
9381 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
9382 (tui_new_layout_command): Parse "-horizontal".
9383 (_initialize_tui_layout): Update help string.
9384 (tui_layout_split::specification): Add "-horizontal" when needed.
9385 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
9386 argument.
9387 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
9388 New methods.
9389
9390 2020-02-22 Tom Tromey <tom@tromey.com>
9391
9392 * tui/tui-layout.h (enum tui_adjust_result): New.
9393 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
9394 (class tui_layout_window) <adjust_size>: Return
9395 tui_adjust_result. Rewrite.
9396 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9397 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9398
9399 2020-02-22 Tom Tromey <tom@tromey.com>
9400
9401 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9402 parameter and return types.
9403 (class tui_layout_base) <specification>: Add "depth".
9404 (class tui_layout_window) <specification>: Add "depth".
9405 (class tui_layout_split) <specification>: Add "depth".
9406 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9407 and return types.
9408 (tui_new_layout_command): Parse sub-layouts.
9409 (_initialize_tui_layout): Update help string.
9410 (tui_layout_window::specification): Add "depth".
9411 (add_layout_command): Update.
9412
9413 2020-02-22 Tom Tromey <tom@tromey.com>
9414
9415 * NEWS: Add "tui new-layout" item.
9416 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9417 Add new-layout command to help text.
9418 (validate_window_name): New function.
9419 (tui_new_layout_command): New function.
9420 (_initialize_tui_layout): Register "new-layout".
9421 (tui_layout_window::specification): New method.
9422 (tui_layout_window::specification): New method.
9423 * tui/tui-layout.h (class tui_layout_base) <specification>: New
9424 method.
9425 (class tui_layout_window) <specification>: New method.
9426 (class tui_layout_split) <specification>: New method.
9427
9428 2020-02-22 Tom Tromey <tom@tromey.com>
9429
9430 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9431 * tui/tui-win.c (window_name_completer): Update comment.
9432 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9433 Declare method.
9434 (class tui_layout_window) <replace_window>: Likewise.
9435 (class tui_layout_split) <replace_window>: Likewise.
9436 (tui_set_layout): Don't declare.
9437 (tui_set_initial_layout): Declare function.
9438 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9439 (asm_regs_layout): New globals.
9440 (tui_current_layout, show_layout): Remove.
9441 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9442 (find_layout, tui_apply_layout): New function.
9443 (layout_completer): Remove.
9444 (tui_next_layout): Reimplement.
9445 (tui_next_layout_command): New function.
9446 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9447 (tui_regs_layout): Reimplement.
9448 (tui_regs_layout_command): New function.
9449 (extract_display_start_addr): Rewrite.
9450 (next_layout, prev_layout): Remove.
9451 (tui_layout_window::replace_window): New method.
9452 (tui_layout_split::replace_window): New method.
9453 (destroy_layout): New function.
9454 (layout_list): New global.
9455 (add_layout_command): New function.
9456 (initialize_layouts): Update.
9457 (tui_layout_command): New function.
9458 (_initialize_tui_layout): Install "layout" commands.
9459 * tui/tui-data.h (enum tui_layout_type): Remove.
9460 (tui_current_layout): Don't declare.
9461
9462 2020-02-22 Tom Tromey <tom@tromey.com>
9463
9464 * tui/tui-regs.c (tui_reg_layout): Remove.
9465 (tui_reg_command): Use tui_regs_layout.
9466 * tui/tui-layout.h (tui_reg_command): Declare.
9467 * tui/tui-layout.c (tui_reg_command): New function.
9468
9469 2020-02-22 Tom Tromey <tom@tromey.com>
9470
9471 * tui/tui.c (tui_rl_delete_other_windows): Call
9472 tui_remove_some_windows.
9473 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9474 Declare method.
9475 (class tui_layout_window) <remove_windows>: New method.
9476 (class tui_layout_split) <remove_windows>: Declare.
9477 (tui_remove_some_windows): Declare.
9478 * tui/tui-layout.c (tui_remove_some_windows): New function.
9479 (tui_layout_split::remove_windows): New method.
9480
9481 2020-02-22 Tom Tromey <tom@tromey.com>
9482
9483 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9484 * tui/tui-layout.h (tui_next_layout): Declare.
9485 * tui/tui-layout.c (tui_next_layout): New function.
9486
9487 2020-02-22 Tom Tromey <tom@tromey.com>
9488
9489 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9490 correct coordinates.
9491
9492 2020-02-22 Tom Tromey <tom@tromey.com>
9493
9494 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9495 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9496 DATA_WIN case.
9497
9498 2020-02-22 Tom Tromey <tom@tromey.com>
9499
9500 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9501 TUI_DISASM_WIN, not tui_win_list.
9502
9503 2020-02-22 Tom Tromey <tom@tromey.com>
9504
9505 * valprint.c (generic_val_print_enum_1)
9506 (val_print_type_code_flags): Style member names.
9507 * rust-lang.c (val_print_struct, rust_print_enum)
9508 (rust_print_struct_def, rust_internal_print_type): Style member
9509 names.
9510 * p-valprint.c (pascal_object_print_value_fields): Style member
9511 names. Only call fprintf_symbol_filtered for static members.
9512 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9513 * f-valprint.c (f_val_print): Style member names.
9514 * f-typeprint.c (f_type_print_base): Style member names.
9515 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9516 call fprintf_symbol_filtered for static members.
9517 (cp_print_class_member): Style member names.
9518 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9519 member names.
9520 * ada-valprint.c (ada_print_scalar): Style enum names.
9521 (ada_val_print_enum): Likewise.
9522 * ada-typeprint.c (print_enum_type): Style enum names.
9523
9524 2020-02-21 Tom Tromey <tom@tromey.com>
9525
9526 * psympriv.h (struct partial_symtab): Update comment.
9527
9528 2020-02-21 Tom Tromey <tromey@adacore.com>
9529
9530 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9531 type is CORE_ADDR.
9532
9533 2020-02-21 Tom de Vries <tdevries@suse.de>
9534
9535 PR gdb/25534
9536 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9537 if dependencies[i]->user != NULL.
9538
9539 2020-02-21 Ali Tamur <tamur@google.com>
9540
9541 * dwarf2/read.c (dwarf2_name): Add null check.
9542
9543 2020-02-20 Tom Tromey <tom@tromey.com>
9544
9545 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9546 ">=", in binary search.
9547 (dwarf2_find_containing_comp_unit): New overload.
9548 (run_test): New self-test.
9549 (_initialize_dwarf2_read): Register new test.
9550
9551 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
9552
9553 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9554 * riscv-tdep.h: Likewise.
9555 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9556 rv32-only CSR.
9557 * features/riscv/64bit-csr.xml: Regenerated.
9558
9559 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9560 Tom Tromey <tom@tromey.com>
9561
9562 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9563 of 'fputc_unfiltered'.
9564 (putchar_unfiltered): Call 'fputc_unfiltered'.
9565 (fputc_unfiltered): Call 'fputs_unfiltered'.
9566
9567 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9568
9569 * config.in: Regenerate.
9570 * configure: Regenerate.
9571 * configure.ac: Add --with-python-libdir option.
9572 * main.c: Use WITH_PYTHON_LIBDIR.
9573
9574 2020-02-19 Tom Tromey <tom@tromey.com>
9575
9576 * symtab.c (general_symbol_info::compute_and_set_names): Use
9577 obstack_strndup. Simplify call to symbol_set_demangled_name.
9578
9579 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
9580
9581 * dwarf2/read.c (allocate_signatured_type_table,
9582 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9583 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9584 Remove objfile parameter, update all callers.
9585
9586 2020-02-19 Doug Evans <dje@google.com>
9587
9588 PR rust/25535
9589 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9590 rust_enum_variant calculation.
9591
9592 2020-02-19 Tom Tromey <tromey@adacore.com>
9593
9594 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9595
9596 2020-02-19 Tom Tromey <tromey@adacore.com>
9597
9598 * ada-lang.c (cache_symbol): Use obstack_strdup.
9599
9600 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9601
9602 * configure: Regenerate.
9603
9604 2020-02-19 Tom Tromey <tromey@adacore.com>
9605
9606 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9607 NULL check.
9608
9609 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
9610
9611 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9612
9613 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9614
9615 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9616 if GDBSERVER is not defined.
9617 (riscv_tdesc_cache): Likewise, also store const target_desc.
9618 (STATIC_IN_GDB): Define.
9619 (riscv_create_target_description): Update declaration with
9620 STATIC_IN_GDB.
9621 (riscv_lookup_target_description): New function, only define if
9622 GDBSERVER is not defined.
9623 * arch/riscv.h (riscv_create_target_description): Declare only
9624 when GDBSERVER is defined.
9625 (riscv_lookup_target_description): New declaration when GDBSERVER
9626 is not defined.
9627 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9628 (riscv_linux_read_features): ...this, and return
9629 riscv_gdbarch_features instead of target_desc.
9630 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9631 (riscv_linux_read_description): Rename to...
9632 (riscv_linux_read_features): ...this.
9633 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9634 Update to use riscv_gdbarch_features and
9635 riscv_lookup_target_description.
9636 * riscv-tdep.c (riscv_find_default_target_description): Use
9637 riscv_lookup_target_description instead of
9638 riscv_create_target_description.
9639
9640 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9641
9642 * valprint.c (generic_val_print_enum_1): When printing a flag
9643 enum with value 0 and there is no enumerator with value 0, print
9644 just "0" instead of "(unknown: 0x0)".
9645
9646 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9647
9648 * valprint.c (generic_val_print_enum_1): Print unknown part of
9649 flag enum in hex.
9650
9651 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9652
9653 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9654 flag enums to contain duplicate enumerators.
9655 * valprint.c (generic_val_print_enum_1): Update comment.
9656
9657 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9658
9659 * dwarf2/read.c: Include "count-one-bits.h".
9660 (update_enumeration_type_from_children): If an enumerator has
9661 multiple bits set, don't treat the enumeration as a "flag enum".
9662 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9663 of flag enums have 0 or 1 bit set.
9664
9665 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9666
9667 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9668 conversion.
9669 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9670 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9671 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9672 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9673 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9674
9675 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9676
9677 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9678
9679 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9680
9681 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9682 displaced_step_closure_up.
9683 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9684 (struct displaced_step_closure_up):
9685 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9686 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9687 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9688 Likewise.
9689 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9690 * gdbarch.c, gdbarch.h: Re-generate.
9691 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9692 displaced_step_closure_up.
9693 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9694 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9695 * infrun.h (displaced_step_closure_up): New type alias.
9696 (struct displaced_step_inferior_state) <step_closure>: Change
9697 type to displaced_step_closure_up.
9698 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9699 displaced_step_closure_up.
9700 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9701
9702 2020-02-14 Tom Tromey <tom@tromey.com>
9703
9704 * minidebug.c (gnu_debug_key): New global.
9705 (find_separate_debug_file_in_section): Use it.
9706
9707 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9708
9709 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9710 std::unique_ptr.
9711 * gdbarch.c: Re-generate.
9712 * gdbarch.h: Re-generate.
9713 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9714 change.
9715 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9716 type to std::unique_ptr.
9717 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9718 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9719 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9720 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9721 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9722 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9723 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9724 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9725 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9726
9727 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9728
9729 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9730 std::unique_ptr.
9731 (displaced_step_clear): Rename to...
9732 (displaced_step_reset): ... this. Just call displaced->reset ().
9733 (displaced_step_clear_cleanup): Rename to...
9734 (displaced_step_reset_cleanup): ... this.
9735 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9736 (displaced_step_fixup): Likewise.
9737 (resume_1): Likewise.
9738 (handle_inferior_event): Restore child's memory before calling
9739 displaced_step_fixup on the parent.
9740 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9741 to std::unique_ptr.
9742 <step_closure>: Change type to std::unique_ptr.
9743
9744 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9745
9746 * arm-tdep.c: Include count-one-bits.h.
9747 (cleanup_block_store_pc): Use count_one_bits.
9748 (cleanup_block_load_pc): Use count_one_bits.
9749 (arm_copy_block_xfer): Use count_one_bits.
9750 (thumb2_copy_block_xfer): Use count_one_bits.
9751 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9752 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9753 (thumb_get_next_pcs_raw): Use count_one_bits.
9754 (arm_get_next_pcs_raw): Use count_one_bits_l.
9755 * arch/arm.c (bitcount): Remove.
9756 * arch/arm.h (bitcount): Remove.
9757
9758 2020-02-14 Tom Tromey <tromey@adacore.com>
9759
9760 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9761 Update.
9762 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9763 * dwarf2/loc.c (call_site_find_chain_1): Return
9764 unique_xmalloc_ptr.
9765 (call_site_find_chain): Likewise.
9766
9767 2020-02-14 Richard Biener <rguenther@suse.de>
9768
9769 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9770 on expression with division operators.
9771
9772 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9773
9774 * MAINTAINERS (Write After Approval): Adding myself.
9775
9776 2020-02-12 Tom Tromey <tom@tromey.com>
9777
9778 * event-loop.c (event_data, gdb_event, event_handler_func):
9779 Remove.
9780
9781 2020-02-12 Tom Tromey <tom@tromey.com>
9782
9783 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9784 (dwarf2_frame_objfile_data): Add comment.
9785 (find_comp_unit, set_comp_unit): New functions.
9786 (dwarf2_frame_find_fde): Use find_comp_unit.
9787 (dwarf2_build_frame_info): Use set_comp_unit.
9788
9789 2020-02-12 Tom Tromey <tom@tromey.com>
9790
9791 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9792 (comp_unit): Don't initialize objfile.
9793 (execute_cfa_program): Add text_offset parameter.
9794 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9795 (dwarf2_frame_cache): Update.
9796 (dwarf2_build_frame_info): Don't set "objfile" member.
9797
9798 2020-02-12 Tom Tromey <tom@tromey.com>
9799
9800 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9801 (decode_frame_entry): Likewise.
9802 (dwarf2_build_frame_info): Update.
9803
9804 2020-02-12 Tom Tromey <tom@tromey.com>
9805
9806 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9807 (decode_frame_entry_1): Use the comp_unit obstack.
9808
9809 2020-02-12 Tom Tromey <tom@tromey.com>
9810
9811 * dwarf2/frame.c (struct comp_unit): Add initializers and
9812 constructor.
9813 (dwarf2_frame_objfile_data): Store a comp_unit.
9814 (dwarf2_frame_find_fde): Update.
9815 (dwarf2_build_frame_info): Use "new".
9816
9817 2020-02-12 Tom Tromey <tom@tromey.com>
9818
9819 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9820 (dwarf2_fde_table): Typedef for std::vector.
9821 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9822 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9823 (decode_frame_entry): Update.
9824 (dwarf2_build_frame_info): Use "new".
9825
9826 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9827
9828 * arm-tdep.c (arm_gdbarch_init): Update.
9829 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9830 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9831 have_neon, is_m>: Change to bool.
9832
9833 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9834
9835 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9836
9837 2020-02-12 Tom Tromey <tom@tromey.com>
9838
9839 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9840
9841 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
9842
9843 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9844 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9845
9846 2020-02-11 Tom Tromey <tom@tromey.com>
9847
9848 * psymtab.h: Update comment.
9849
9850 2020-02-11 Tom Tromey <tom@tromey.com>
9851
9852 * gdb_obstack.h (struct auto_obstack): Use
9853 DISABLE_COPY_AND_ASSIGN.
9854
9855 2020-02-11 Tom Tromey <tom@tromey.com>
9856
9857 * dwarf2/frame.h (struct objfile): Don't forward declare.
9858
9859 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9860
9861 * cris-tdep.c (cris_supply_gregset): Change signature to match
9862 what struct regset expects.
9863 (cris_regset): New struct.
9864 (fetch_core_registers): Remove.
9865 (cris_iterate_over_regset_sections): New function.
9866 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9867 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9868
9869 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9870
9871 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9872 registers.
9873
9874 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9875
9876 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9877
9878 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9879
9880 * configure: Re-generate.
9881
9882 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9883
9884 * configure: Re-generate.
9885
9886 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9887
9888 * acinclude: Update warning.m4 path.
9889 * warning.m4: Move to gdbsupport.
9890
9891 2020-02-11 Tom Tromey <tromey@adacore.com>
9892
9893 * remote.c (remote_console_output): Update.
9894 * printcmd.c (printf_command): Update.
9895 * event-loop.c (gdb_wait_for_event): Update.
9896 * linux-nat.c (sigchld_handler): Update.
9897 * remote-sim.c (gdb_os_write_stdout): Update.
9898 (gdb_os_flush_stdout): Update.
9899 (gdb_os_flush_stderr): Update.
9900 (gdb_os_write_stderr): Update.
9901 * exceptions.c (print_exception): Update.
9902 * remote-fileio.c (remote_fileio_func_read): Update.
9903 (remote_fileio_func_write): Update.
9904 * tui/tui.c (tui_enable): Update.
9905 * tui/tui-interp.c (tui_interp::init): Update.
9906 * utils.c (init_page_info): Update.
9907 (putchar_unfiltered, fputc_unfiltered): Update.
9908 (gdb_flush): Update.
9909 (emit_style_escape): Update.
9910 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9911 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9912 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9913 (stderr_file::write): Update.
9914 (stderr_file::puts): Update.
9915 * ui-file.h (ui_file_isatty, ui_file_write)
9916 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9917 (ui_file_puts): Don't declare.
9918
9919 2020-02-10 Tom de Vries <tdevries@suse.de>
9920
9921 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9922 sentinel to char *.
9923
9924 2020-02-09 Tom de Vries <tdevries@suse.de>
9925
9926 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9927 filename if it matches "<artificial>".
9928
9929 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9930
9931 * windows-tdep.c (struct enum_value_name): New struct.
9932 (create_enum): New function.
9933 (windows_get_siginfo_type): Create and use enum types.
9934
9935 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9936
9937 * NEWS: Mention $_siginfo support for Windows.
9938 * windows-nat.c (handle_exception): Set siginfo_er.
9939 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9940 (windows_xfer_siginfo): New function.
9941 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9942 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9943 (init_windows_gdbarch_data): New function.
9944 (get_windows_gdbarch_data): New function.
9945 (windows_get_siginfo_type): New function.
9946 (windows_init_abi): Register windows_get_siginfo_type.
9947 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9948
9949 2020-02-08 Tom Tromey <tom@tromey.com>
9950
9951 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9952 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9953 <keep>: Declare method.
9954 <m_keep>: Remove member.
9955 <~cutu_reader>: Remove.
9956 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9957 (cutu_reader::cutu_reader): Update.
9958 (cutu_reader::keep): Rename from ~cutu_reader.
9959 (process_psymtab_comp_unit, build_type_psymtabs_1)
9960 (process_skeletonless_type_unit, load_partial_comp_unit)
9961 (load_full_comp_unit, dwarf2_read_addr_index)
9962 (read_signatured_type): Update.
9963
9964 2020-02-08 Tom Tromey <tom@tromey.com>
9965
9966 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9967 "want_partial_unit" parameter.
9968 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9969 Inline check for DW_TAG_partial_unit.
9970 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9971
9972 2020-02-08 Tom Tromey <tom@tromey.com>
9973
9974 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9975 read.c.
9976 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9977 read.c.
9978
9979 2020-02-08 Tom Tromey <tom@tromey.com>
9980
9981 * dwarf2/read.c (read_address): Move to comp-unit.c.
9982 (dwarf2_rnglists_process, dwarf2_ranges_process)
9983 (read_attribute_value, dwarf_decode_lines_1)
9984 (var_decode_location, decode_locdesc): Update.
9985 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9986 read.c. Remove "cu" parameter.
9987 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9988 method.
9989
9990 2020-02-08 Tom Tromey <tom@tromey.com>
9991
9992 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9993 (read_indirect_line_string): Update.
9994 * dwarf2/comp-unit.c (read_offset): Remove.
9995 (read_comp_unit_head): Update.
9996 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9997 method.
9998 (read_offset): Don't declare.
9999
10000 2020-02-08 Tom Tromey <tom@tromey.com>
10001
10002 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
10003 * dwarf2/read.c (struct comp_unit_head): Move to
10004 dwarf2/comp-unit.h.
10005 (enum class rcuh_kind): Move to comp-unit.h.
10006 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
10007 (read_comp_unit_head, error_check_comp_unit_head)
10008 (read_and_check_comp_unit_head): Move to comp-unit.c.
10009 (read_offset, dwarf_unit_type_name): Likewise.
10010 (create_debug_type_hash_table, read_cutu_die_from_dwo)
10011 (cutu_reader::cutu_reader, read_call_site_scope)
10012 (find_partial_die, follow_die_offset): Update.
10013 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
10014
10015 2020-02-08 Tom Tromey <tom@tromey.com>
10016
10017 * dwarf2/read.c (read_offset_1): Move to leb.c.
10018 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
10019 (dwarf_decode_macro_bytes): Update.
10020 * dwarf2/leb.c (read_offset): Rename; move from read.c.
10021 * dwarf2/leb.h (read_offset): Declare.
10022
10023 2020-02-08 Tom Tromey <tom@tromey.com>
10024
10025 * dwarf2/read.c (dwarf2_section_size): Remove.
10026 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
10027 Update.
10028 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
10029
10030 2020-02-08 Tom Tromey <tom@tromey.com>
10031
10032 * dwarf2/read.c (read_initial_length): Move to leb.c.
10033 * dwarf2/leb.h (read_initial_length): Declare.
10034 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
10035 handle_nonstd parameter.
10036 * dwarf2/frame.c (read_initial_length): Remove.
10037 (decode_frame_entry_1): Update.
10038
10039 2020-02-08 Tom Tromey <tom@tromey.com>
10040
10041 * dwarf2/loc.c (dwarf2_find_location_expression)
10042 (dwarf_evaluate_loc_desc::get_tls_address)
10043 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
10044 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
10045 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
10046 (dwarf2_compile_property_to_c)
10047 (dwarf2_loc_desc_get_symbol_read_needs)
10048 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
10049 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
10050 (loclist_describe_location, loclist_tracepoint_var_ref)
10051 (loclist_generate_c_location): Update.
10052 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
10053 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
10054 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
10055 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
10056 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
10057 (dwarf2_per_cu_data::addr_size)
10058 (dwarf2_per_cu_data::ref_addr_size)
10059 (dwarf2_per_cu_data::text_offset)
10060 (dwarf2_per_cu_data::addr_type): Now methods.
10061 (per_cu_header_read_in): Make per_cu "const".
10062 (dwarf2_version): Remove.
10063 (dwarf2_per_cu_data::int_type): Now a method.
10064 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
10065 (set_die_type, read_array_type, read_subrange_index_type)
10066 (read_tag_string_type, read_subrange_type): Update.
10067 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
10068 offset_size, ref_addr_size, text_offset, addr_type, version,
10069 objfile, int_type, addr_sized_int_type>: Declare methods.
10070
10071 2020-02-08 Tom Tromey <tom@tromey.com>
10072
10073 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
10074 Move earlier.
10075
10076 2020-02-08 Tom Tromey <tom@tromey.com>
10077
10078 * dwarf2/read.h (dwarf_line_debug): Declare.
10079 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
10080 * dwarf2/read.c: Move line_header code to new files.
10081 (dwarf_line_debug): No longer static.
10082 * dwarf2/line-header.c: New file.
10083 * dwarf2/line-header.h: New file.
10084
10085 2020-02-08 Tom Tromey <tom@tromey.com>
10086
10087 * dwarf2/read.c (struct line_header) <file_full_name,
10088 file_file_name>: Return unique_xmalloc_ptr.
10089 (line_header::file_file_name): Update.
10090 (line_header::file_full_name): Update.
10091 (dw2_get_file_names_reader): Update.
10092 (macro_start_file): Update.
10093
10094 2020-02-08 Tom Tromey <tom@tromey.com>
10095
10096 * dwarf2/read.c (struct line_header) <file_full_name,
10097 file_file_name>: Declare methods.
10098 (dw2_get_file_names_reader): Update.
10099 (file_file_name): Now a method.
10100 (file_full_name): Likewise.
10101 (macro_start_file): Update.
10102
10103 2020-02-08 Tom Tromey <tom@tromey.com>
10104
10105 * dwarf2/read.c (dwarf_always_disassemble)
10106 (show_dwarf_always_disassemble): Move to loc.c.
10107 (_initialize_dwarf2_read): Move "always-disassemble" registration
10108 to loc.c.
10109 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
10110 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
10111 static.
10112 (show_dwarf_always_disassemble): Move from read.c.
10113 (_initialize_dwarf2loc): Move always-disassemble from read.c.
10114
10115 2020-02-08 Tom Tromey <tom@tromey.com>
10116
10117 * dwarf2/read.c (~dwarf2_per_objfile): Update.
10118 (create_quick_file_names_table): Return htab_up.
10119 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
10120 Update.
10121 * dwarf2/read.h (struct dwarf2_per_objfile)
10122 <quick_file_names_table>: Now htab_up.
10123
10124 2020-02-08 Tom Tromey <tom@tromey.com>
10125
10126 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
10127
10128 2020-02-08 Tom Tromey <tom@tromey.com>
10129
10130 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
10131 Rewrite.
10132 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
10133 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
10134 (abbrev_table::abbrev_table): No longer inline.
10135 (ABBREV_HASH_SIZE): Remove.
10136 (abbrev_table::m_abbrevs): Now an htab_up.
10137
10138 2020-02-08 Tom Tromey <tom@tromey.com>
10139
10140 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
10141 (cutu_reader): Update.
10142 (build_type_psymtabs_1): Update.
10143 * dwarf2/abbrev.c (abbrev_table::read): Rename.
10144 (abbrev_table::alloc_abbrev): Update.
10145 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
10146 (abbrev_table::read): New static method, renamed from
10147 abbrev_table_read_table.
10148 (abbrev_table::alloc_abbrev)
10149 (abbrev_table::add_abbrev): Now private.
10150 (abbrev_table::abbrev_table): Now private.
10151 (abbrev_table::m_abbrev_obstack): Now private. Rename.
10152
10153 2020-02-08 Tom Tromey <tom@tromey.com>
10154
10155 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
10156 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
10157 htab_up.
10158
10159 2020-02-08 Tom Tromey <tom@tromey.com>
10160
10161 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
10162 htab_up.
10163 (lookup_dwo_unit_in_dwp): Update.
10164 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
10165 on obstack.
10166
10167 2020-02-08 Tom Tromey <tom@tromey.com>
10168
10169 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
10170 obstack.
10171
10172 2020-02-08 Tom Tromey <tom@tromey.com>
10173
10174 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
10175 line_header_hash.
10176 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
10177 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
10178 Change type to htab_up.
10179
10180 2020-02-08 Tom Tromey <tom@tromey.com>
10181
10182 * dwarf2/read.c (allocate_type_unit_groups_table): Return
10183 htab_up. Don't allocate on obstack.
10184 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
10185 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
10186 Change type to htab_up.
10187
10188 2020-02-08 Tom Tromey <tom@tromey.com>
10189
10190 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
10191 Change type to htab_up.
10192 * dwarf2/read.c (create_signatured_type_table_from_index)
10193 (create_signatured_type_table_from_debug_names)
10194 (create_all_type_units, add_type_unit)
10195 (lookup_dwo_signatured_type, lookup_signatured_type)
10196 (process_skeletonless_type_unit): Update.
10197 (create_debug_type_hash_table, create_debug_types_hash_table):
10198 Change type of types_htab.
10199 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
10200 htab_up. Don't allocate on obstack.
10201 (create_cus_hash_table): Change type of cus_htab parameter.
10202 (struct dwo_file) <cus, tus>: Now htab_up.
10203 (lookup_dwo_signatured_type, lookup_dwo_cutu)
10204 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
10205 (queue_and_load_all_dwo_tus): Update.
10206 * dwarf2/index-write.c (write_gdbindex): Update.
10207 (write_debug_names): Update.
10208
10209 2020-02-08 Tom Tromey <tom@tromey.com>
10210
10211 * dwarf2/read.h (struct dwarf2_queue_item): Move from
10212 dwarf2/read.c. Remove "next" member. Add constructor ntad
10213 destructor.
10214 (struct dwarf2_per_objfile) <queue>: New member.
10215 * dwarf2/read.c (struct dwarf2_queue_item): Move to
10216 dwarf2/read.h.
10217 (dwarf2_queue, dwarf2_queue_tail): Remove.
10218 (class dwarf2_queue_guard): Add parameter to constructor. Use
10219 DISABLE_COPY_AND_ASSIGN.
10220 <m_per_objfile>: New member.
10221 <~dwarf2_queue_guard>: Rewrite.
10222 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
10223 Update.
10224 (~dwarf2_queue_item): New.
10225
10226 2020-02-08 Tom Tromey <tom@tromey.com>
10227
10228 * dwarf2/read.c (struct die_info) <has_children>: New member.
10229 (dw2_get_file_names_reader): Remove has_children.
10230 (dw2_get_file_names): Update.
10231 (read_cutu_die_from_dwo): Remove has_children.
10232 (cutu_reader::init_tu_and_read_dwo_dies)
10233 (cutu_reader::cutu_reader): Update.
10234 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
10235 Remove has_children.
10236 (build_type_psymtabs_1, process_skeletonless_type_unit)
10237 (load_partial_comp_unit, load_full_comp_unit): Update.
10238 (create_dwo_cu_reader): Remove has_children.
10239 (create_cus_hash_table, read_die_and_children): Update.
10240 (read_full_die_1,read_full_die): Remove has_children.
10241 (read_signatured_type): Update.
10242 (class cutu_reader) <has_children>: Remove.
10243
10244 2020-02-08 Tom Tromey <tom@tromey.com>
10245
10246 * dwarf2/expr.c: Rename from dwarf2expr.c.
10247 * dwarf2/expr.h: Rename from dwarf2expr.h.
10248 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
10249 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
10250 * dwarf2/frame.c: Rename from dwarf2-frame.c.
10251 * dwarf2/frame.h: Rename from dwarf2-frame.h.
10252 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
10253 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
10254 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
10255 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
10256 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
10257 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
10258 * dwarf2/loc.c: Rename from dwarf2loc.c.
10259 * dwarf2/loc.h: Rename from dwarf2loc.h.
10260 * dwarf2/read.c: Rename from dwarf2read.c.
10261 * dwarf2/read.h: Rename from dwarf2read.h.
10262 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
10263 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
10264 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
10265 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
10266 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
10267 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
10268 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
10269 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
10270 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
10271 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
10272 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
10273 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
10274 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
10275 Update.
10276 * Makefile.in (COMMON_SFILES): Update.
10277 (HFILES_NO_SRCDIR): Update.
10278
10279 2020-02-08 Tom Tromey <tom@tromey.com>
10280
10281 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
10282 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
10283
10284 2020-02-08 Tom Tromey <tom@tromey.com>
10285
10286 * dwarf2read.h (struct die_info): Don't declare.
10287
10288 2020-02-08 Tom Tromey <tom@tromey.com>
10289
10290 * dwarf2read.h (die_info_ptr): Remove typedef.
10291
10292 2020-02-08 Tom Tromey <tom@tromey.com>
10293
10294 * dwarf2read.c (read_call_site_scope)
10295 (handle_data_member_location, dwarf2_add_member_fn)
10296 (mark_common_block_symbol_computed, read_common_block)
10297 (attr_to_dynamic_prop, partial_die_info::read)
10298 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
10299 (dwarf2_symbol_mark_computed, set_die_type): Update.
10300 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
10301 method.
10302 (attr_form_is_block): Don't declare.
10303 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
10304
10305 2020-02-08 Tom Tromey <tom@tromey.com>
10306
10307 * dwarf2read.c (dwarf2_find_base_address, )
10308 (read_call_site_scope, rust_containing_type)
10309 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
10310 (handle_data_member_location, dwarf2_add_member_fn)
10311 (get_alignment, read_structure_type, process_structure_scope)
10312 (mark_common_block_symbol_computed, read_common_block)
10313 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
10314 (partial_die_info::read, read_attribute_value, new_symbol)
10315 (lookup_die_type, dwarf2_get_ref_die_offset)
10316 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
10317 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
10318 (dwarf2_symbol_mark_computed): Update.
10319 * dwarf2/attribute.h (struct attribute) <value_as_address,
10320 form_is_section_offset, form_is_constant, form_is_ref>: Declare
10321 methods.
10322 (value_as_address, attr_form_is_section_offset)
10323 (attr_form_is_constant, attr_form_is_ref): Don't declare.
10324 * dwarf2/attribute.c (attribute::value_as_address)
10325 (attribute::form_is_section_offset, attribute::form_is_constant)
10326 (attribute::form_is_ref): Now methods.
10327
10328 2020-02-08 Tom Tromey <tom@tromey.com>
10329
10330 * dwarf2read.c (struct attribute, DW_STRING)
10331 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
10332 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
10333 (attr_form_is_block, attr_form_is_section_offset)
10334 (attr_form_is_constant, attr_form_is_ref): Move.
10335 * dwarf2/attribute.h: New file.
10336 * dwarf2/attribute.c: New file, from dwarf2read.c.
10337 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
10338
10339 2020-02-08 Tom Tromey <tom@tromey.com>
10340
10341 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
10342 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
10343 Move.
10344 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
10345 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
10346 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
10347 abbrev.c.
10348 * dwarf2/abbrev.h: New file.
10349 * dwarf2/abbrev.c: New file, from dwarf2read.c.
10350 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
10351
10352 2020-02-08 Tom Tromey <tom@tromey.com>
10353
10354 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
10355 (dwarf2_section_size, dwarf2_get_section_info)
10356 (create_signatured_type_table_from_debug_names)
10357 (create_addrmap_from_aranges, read_debug_names_from_section)
10358 (get_gdb_index_contents_from_section, read_comp_unit_head)
10359 (error_check_comp_unit_head, read_abbrev_offset)
10360 (create_debug_type_hash_table, init_cu_die_reader)
10361 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
10362 (read_comp_units_from_section, create_cus_hash_table)
10363 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10364 (create_dwp_v2_section, dwarf2_rnglists_process)
10365 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
10366 (abbrev_table_read_table, read_indirect_string_at_offset_from)
10367 (read_indirect_string_from_dwz, read_addr_index_1)
10368 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
10369 (dwarf_decode_macro_bytes, dwarf_decode_macros)
10370 (fill_in_loclist_baton): Update.
10371 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
10372 get_containing_section, get_bfd_owner, get_bfd_section,
10373 get_file_name, get_id, get_flags, empty, read>: Declare methods.
10374 (dwarf2_read_section, get_section_name, get_section_file_name)
10375 (get_containing_section, get_section_bfd_owner)
10376 (get_section_bfd_section, get_section_name, get_section_file_name)
10377 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
10378 declare.
10379 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
10380 (dwarf2_section_info::get_bfd_owner)
10381 (dwarf2_section_info::get_bfd_section)
10382 (dwarf2_section_info::get_name)
10383 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
10384 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
10385 (dwarf2_section_info::read): Now methods.
10386 * dwarf-index-write.c (class debug_names): Update.
10387
10388 2020-02-08 Tom Tromey <tom@tromey.com>
10389
10390 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
10391 Move to dwarf2/section.h.
10392 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
10393 (get_section_bfd_section, get_section_name)
10394 (get_section_file_name, get_section_id, get_section_flags)
10395 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
10396 dwarf2/section.c.
10397 * dwarf2/section.h: New file.
10398 * dwarf2/section.c: New file, from dwarf2read.c.
10399 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10400
10401 2020-02-08 Tom Tromey <tom@tromey.com>
10402
10403 * dwarf2read.h (read_unsigned_leb128): Don't declare.
10404 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10405 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10406 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10407 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10408 * dwarf2/leb.h: New file, from dwarf2read.c.
10409 * dwarf2/leb.c: New file, from dwarf2read.c.
10410 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10411 Remove.
10412 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10413 (COMMON_SFILES): Add dwarf2/leb.c.
10414
10415 2020-02-08 Joel Brobecker <brobecker@adacore.com>
10416
10417 GDB 9.1 released.
10418
10419 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10420
10421 PR gdb/25190:
10422 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10423 * gdb/remote.c (remote_console_output): Update.
10424 * gdb/ui-file.c (fputs_unfiltered): Rename to...
10425 (ui_file_puts): ...this.
10426 * gdb/ui-file.h (ui_file_puts): Add declaration.
10427 * gdb/utils.c (emit_style_escape): Update.
10428 (flush_wrap_buffer): Update.
10429 (fputs_maybe_filtered): Update.
10430 (fputs_unfiltered): Add function.
10431
10432 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10433
10434 * gdb/event-loop.c (gdb_wait_for_event): Update.
10435 * gdb/printcmd.c (printf_command): Update.
10436 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10437 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10438 (gdb_os_flush_stderr): Update.
10439 * gdb/remote.c (remote_console_output): Update.
10440 * gdb/ui-file.c (gdb_flush): Rename to...
10441 (ui_file_flush): ...this.
10442 (stderr_file::write): Update.
10443 (stderr_file::puts): Update.
10444 * gdb/ui-file.h (gdb_flush): Rename to...
10445 (ui_file_flush): ...this.
10446 * gdb/utils.c (gdb_flush): Add function.
10447 * gdb/utils.h (gdb_flush): Add declaration.
10448
10449 2020-02-07 Tom Tromey <tromey@adacore.com>
10450
10451 PR breakpoints/24915:
10452 * source.c (find_and_open_source): Do not check basenames_may_differ.
10453
10454 2020-02-07 Tom Tromey <tom@tromey.com>
10455
10456 * README: Update gdbserver documentation.
10457 * gdbserver: Move to top level.
10458 * configure.tgt (build_gdbserver): Remove.
10459 * configure.ac: Remove --enable-gdbserver.
10460 * configure: Rebuild.
10461 * Makefile.in (distclean): Don't mention gdbserver.
10462
10463 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10464
10465 * source-cache.c (source_cache::ensure): Surround
10466 get_plain_source_lines with a try/catch.
10467 (source_cache::get_line_charpos): Get rid of try/catch
10468 and only check for the return value of "ensure".
10469 * tui/tui-source.c (tui_source_window::set_contents):
10470 Simplify "nlines" calculation.
10471
10472 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10473
10474 * MAINTAINERS (Write After Approval): Add myself.
10475
10476 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10477
10478 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10479 function call.
10480
10481 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10482
10483 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10484
10485 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
10486
10487 * nat/riscv-linux-tdesc.h: New file.
10488 * nat/riscv-linux-tdesc.c: New file, taking code from...
10489 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10490 ... here.
10491 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10492 NATDEPFILES.
10493
10494 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10495
10496 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10497 we don't set the fake simulator ptid to the null_ptid.
10498
10499 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
10500
10501 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10502 * gdbthread.h (class thread_info) <resumed>: Likewise.
10503 * infrun.c (resume_1): Likewise.
10504 (proceed): Likewise.
10505 (infrun_thread_stop_requested): Likewise.
10506 (stop_all_threads): Likewise.
10507 (handle_inferior_event): Likewise.
10508 (restart_threads): Likewise.
10509 (finish_step_over): Likewise.
10510 (keep_going_stepped_thread): Likewise.
10511 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10512 (linux_handle_extended_wait): Likewise.
10513 * record-btrace.c (get_thread_current_frame_id): Likewise.
10514 * record-full.c (record_full_wait_1): Likewise.
10515 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10516 * target.c (target_resume): Likewise.
10517 * thread.c (set_running_thread): Likewise.
10518
10519 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10520
10521 * f-valprint.c (f77_print_array_1): Changed datatype of index
10522 variable to LONGEST from int to enable it to contain bound
10523 values correctly.
10524
10525 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
10526
10527 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10528 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10529 offsets according to FLEN determined.
10530 (riscv_linux_nat_target::read_description): Determine FLEN
10531 dynamically.
10532 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10533 according to FLEN determined.
10534 (riscv_linux_nat_target::store_registers): Likewise.
10535
10536 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10537
10538 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10539 when reg->group is empty and reggroup is not.
10540
10541 2020-01-31 Tom Tromey <tromey@adacore.com>
10542
10543 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10544 Call beneath target's mourn_inferior after unpushing.
10545
10546 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10547
10548 PR tui/9765
10549 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10550 have enough lines to fill the screen, still return the lowest
10551 address we found.
10552
10553 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10554
10555 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10556 '-', '<', and '>' commands.
10557
10558 2020-01-29 Pedro Alves <palves@redhat.com>
10559 Sergio Durigan Junior <sergiodj@redhat.com>
10560
10561 * infcmd.c (construct_inferior_arguments): Assert that
10562 'argc' is greater than 0.
10563
10564 2020-01-29 Luis Machado <luis.machado@linaro.org>
10565
10566 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10567 (BRK_INSN_MASK): Define to 0xd4200000.
10568 (aarch64_program_breakpoint_here_p): New function.
10569 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10570 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10571 breakpoint.c.
10572 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10573 breakpoint.h
10574 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10575 call gdbarch_program_breakpoint_here_p.
10576 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10577 default_program_breakpoint_here_p, changed return type to bool and
10578 simplified.
10579 * breakpoint.h (program_breakpoint_here): Moved prototype to
10580 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10581 return type to bool.
10582 * gdbarch.c: Regenerate.
10583 * gdbarch.h: Regenerate.
10584 * gdbarch.sh (program_breakpoint_here_p): New method.
10585 * infrun.c (handle_signal_stop): Call
10586 gdbarch_program_breakpoint_here_p.
10587
10588 2020-01-26 Tom Tromey <tom@tromey.com>
10589
10590 * ctfread.c (struct ctf_fp_info): Reindent.
10591 (_initialize_ctfread): Remove.
10592
10593 2020-01-26 Tom Tromey <tom@tromey.com>
10594
10595 * psymtab.c (partial_map_expand_apply)
10596 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10597 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10598 (psym_print_stats, psym_expand_symtabs_for_function)
10599 (psym_map_symbol_filenames, psym_map_matching_symbols)
10600 (psym_expand_symtabs_matching)
10601 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10602 (maintenance_check_psymtabs): Use new methods.
10603 * psympriv.h (struct partial_symtab) <readin_p,
10604 get_compunit_symtab>: New methods.
10605 <readin, compunit_symtab>: Remove members.
10606 (struct standard_psymtab): New.
10607 (struct legacy_psymtab): Derive from standard_psymtab.
10608 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10609 standard_psymtab.
10610 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10611
10612 2020-01-26 Tom Tromey <tom@tromey.com>
10613
10614 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10615 read_dependencies. Add assert.
10616 * psymtab.c (partial_symtab::read_dependencies): New method.
10617 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10618 method.
10619 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10620 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10621 read_dependencies.
10622 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10623 Add assert.
10624
10625 2020-01-26 Tom Tromey <tom@tromey.com>
10626
10627 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10628 Call expand_psymtab.
10629 (xcoff_read_symtab): Call expand_psymtab.
10630 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10631 legacy_expand_psymtab.
10632 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10633 method.
10634 (struct legacy_psymtab) <expand_psymtab>: Implement.
10635 <legacy_expand_psymtab>: New member.
10636 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10637 (parse_partial_symbols): Set legacy_expand_psymtab.
10638 (psymtab_to_symtab_1): Change argument order. Call
10639 expand_psymtab.
10640 (new_psymtab): Set legacy_expand_psymtab.
10641 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10642 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10643 expand_psymtab.
10644 (dwarf2_psymtab::expand_psymtab): Rename from
10645 psymtab_to_symtab_1. Call expand_psymtab.
10646 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10647 (dbx_end_psymtab): Likewise.
10648 (dbx_psymtab_to_symtab_1): Change argument order. Call
10649 expand_psymtab.
10650 (dbx_read_symtab): Call expand_psymtab.
10651 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10652 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10653 (ctf_psymtab::read_symtab): Call expand_psymtab.
10654
10655 2020-01-26 Tom Tromey <tom@tromey.com>
10656
10657 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10658 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10659 messages.
10660 * mdebugread.c (mdebug_read_symtab): Remove prints.
10661 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10662 assert.
10663 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10664
10665 2020-01-26 Tom Tromey <tom@tromey.com>
10666
10667 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10668 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10669 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10670 legacy_symtab.
10671 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10672 * psymtab.c (psymtab_to_symtab): Call method.
10673 (dump_psymtab): Update.
10674 * psympriv.h (struct partial_symtab): Add virtual destructor.
10675 <read_symtab>: New method.
10676 (struct legacy_symtab): New.
10677 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10678 (struct pst_map) <pst>: Now a legacy_psymtab.
10679 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10680 (new_psymtab): Use legacy_psymtab.
10681 * dwarf2read.h (struct dwarf2_psymtab): New.
10682 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10683 * dwarf2read.c (dwarf2_create_include_psymtab)
10684 (dwarf2_build_include_psymtabs, create_type_unit_group)
10685 (create_partial_symtab, process_psymtab_comp_unit_reader)
10686 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10687 (set_partial_user): Use dwarf2_psymtab.
10688 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10689 (psymtab_to_symtab_1, process_full_comp_unit)
10690 (process_full_type_unit, dwarf2_ranges_read)
10691 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10692 (dwarf_decode_lines): Use dwarf2_psymtab.
10693 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10694 (add_address_entry_worker, write_one_signatured_type)
10695 (recursively_count_psymbols, recursively_write_psymbols)
10696 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10697 (write_debug_names): Likewise.
10698 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10699 <pst>: Now a legacy_psymtab.
10700 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10701 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10702 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10703 * ctfread.c (struct ctf_psymtab): New.
10704 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10705 ctf_psymtab.
10706 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10707 (create_partial_symtab): Return a ctf_psymtab.
10708 (scan_partial_symbols): Update.
10709
10710 2020-01-26 Tom Tromey <tom@tromey.com>
10711
10712 * xcoffread.c (xcoff_start_psymtab): Use new.
10713 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10714 renamed from start_psymtab_common.
10715 * psympriv.h (struct partial_symtab): Add new constructor.
10716 (start_psymtab_common): Don't declare.
10717 * mdebugread.c (parse_partial_symbols): Use new.
10718 * dwarf2read.c (create_partial_symtab): Use new.
10719 * dbxread.c (start_psymtab): Use new.
10720 * ctfread.c (create_partial_symtab): Use new.
10721
10722 2020-01-26 Tom Tromey <tom@tromey.com>
10723
10724 * xcoffread.c (xcoff_end_psymtab): Use new.
10725 * psymtab.c (start_psymtab_common): Use new.
10726 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10727 Update.
10728 * psympriv.h (struct partial_symtab): Add parameters to
10729 constructor. Don't inline.
10730 (allocate_psymtab): Don't declare.
10731 * mdebugread.c (new_psymtab): Use new.
10732 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10733 * dbxread.c (dbx_end_psymtab): Use new.
10734
10735 2020-01-26 Tom Tromey <tom@tromey.com>
10736
10737 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10738 allocate_psymtab. Update documentation.
10739 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10740 allocate_psymtab. Do not use new.
10741 (allocate_psymtab): Use new. Update.
10742
10743 2020-01-26 Tom Tromey <tom@tromey.com>
10744
10745 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10746 * psymtab.c (psym_print_stats): Update.
10747 * psympriv.h (struct partial_symtab) <readin,
10748 psymtabs_addrmap_supported, anonymous>: Now bool.
10749 * mdebugread.c (psymtab_to_symtab_1): Update.
10750 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10751 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10752 (process_full_comp_unit, process_full_type_unit): Update.
10753 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10754 * ctfread.c (psymtab_to_symtab): Update.
10755
10756 2020-01-26 Tom Tromey <tom@tromey.com>
10757
10758 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10759 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10760 * psymtab.c (psymtab_storage): Delete psymtabs.
10761 (psymtab_storage::allocate_psymtab): Use new.
10762 (psymtab_storage::discard_psymtab): Use delete.
10763 * psympriv.h (struct partial_symtab): Add constructor and
10764 initializers.
10765
10766 2020-01-26 Tom Tromey <tom@tromey.com>
10767
10768 * machoread.c: Do not include psympriv.h.
10769
10770 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10771
10772 * NEWS: Mention the new option and the set/show commands.
10773
10774 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10775
10776 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10777 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10778 (validate_exec_file): New variables, enums, functions.
10779 (exec_file_locate_attach, print_section_info): Style the filenames.
10780 (_initialize_exec): Install show_exec_file_mismatch_command and
10781 set_exec_file_mismatch_command.
10782 * gdbcore.h (validate_exec_file): Declare.
10783 * infcmd.c (attach_command): Call validate_exec_file.
10784 * remote.c ( remote_target::remote_add_inferior): Likewise.
10785
10786 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10787
10788 * frame.c (find_frame_sal): Move call to get_next_frame into more
10789 inner scope.
10790 * inline-frame.c (inilne_state) <inline_state>: Update argument
10791 types.
10792 (inilne_state) <skipped_symbol>: Rename to...
10793 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10794 (skip_inline_frames): Build vector of skipped symbols and use this
10795 to reate the inline_state.
10796 (inline_skipped_symbol): Add a comment and some assertions, fetch
10797 skipped symbol from the list.
10798
10799 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10800
10801 * buildsym.c (lte_is_less_than): Delete.
10802 (buildsym_compunit::end_symtab_with_blockvector): Create local
10803 lambda function to sort line table entries, and use
10804 std::stable_sort instead of std::sort.
10805 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10806 markers when looking for a previous line.
10807
10808 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10809
10810 * dwarf2read.c (lnp_state_machine::record_line): Include
10811 end_sequence parameter in debug print out. Record the line if we
10812 are at an end_sequence marker even if it's not the start of a
10813 statement.
10814 * symmisc.c (maintenance_print_one_line_table): Print end of
10815 sequence markers with 'END' not '0'.
10816
10817 2020-01-24 Pedro Alves <palves@redhat.com>
10818
10819 PR gdb/25410
10820 * thread.c (scoped_restore_current_thread::restore): Use
10821 switch_to_inferior_no_thread.
10822 * exec.c: Include "progspace-and-thread.h".
10823 (add_target_sections, remove_target_sections):
10824 scoped_restore_current_pspace_and_thread instead of
10825 scoped_restore_current_thread.
10826 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10827 and aspace to the inferior before calling clone_program_space.
10828 Remove stale comment.
10829
10830 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10831
10832 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10833 (arm_netbsd_nat_target::fetch_registers): ...this.
10834 (arm_nbsd_nat_target::store_registers): Rename to...
10835 (arm_netbsd_nat_target::store_registers): ...this.
10836
10837 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10838
10839 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10840 register_t.
10841
10842 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10843
10844 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10845 Update comment.
10846 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10847 Likewise.
10848 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10849 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10850 the correct replacement (iterate_over_regset_sections).
10851 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10852 Update comment.
10853
10854 2020-01-24 Graham Markall <graham.markall@embecosm.com>
10855
10856 PR gdb/23718
10857 * gdb/python/python.c (execute_gdb_command): Call
10858 async_enable_stdin in catch block.
10859
10860 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10861
10862 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10863 SWITCH_THRU_ALL_UIS.
10864
10865 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10866
10867 PR tui/9765
10868 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10869 comment, add extra parameter, and update to store previous symbol
10870 when appropriate.
10871 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10872 add extra parameter.
10873 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10874 remove unneeded parameter, add try/catch around gdb_print_insn,
10875 rewrite to add items to asm_lines vector.
10876 (tui_find_backward_disassembly_start_address): New function.
10877 (tui_find_disassembly_address): Updated throughout.
10878 (tui_disasm_window::set_contents): Update for changes to
10879 tui_disassemble.
10880 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10881 number of lines to scroll.
10882
10883 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10884
10885 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10886 (SECT_OFF_DATA): Likewise.
10887 (SECT_OFF_RODATA): Likewise.
10888 (SECT_OFF_TEXT): Likewise.
10889 (SECT_OFF_BSS): Likewise.
10890 (struct objfile) <text_section_offset, data_section_offset>: New
10891 methods.
10892 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10893 objfile::text_section_offset.
10894 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10895 * coffread.c (coff_symtab_read): Likewise.
10896 (enter_linenos): Likewise.
10897 (process_coff_symbol): Likewise.
10898 * ctfread.c (get_objfile_text_range): Likewise.
10899 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10900 Use objfile::data_section_offset.
10901 * dwarf2-frame.c (execute_cfa_program): Use
10902 objfile::text_section_offset.
10903 (dwarf2_frame_find_fde): Likewise.
10904 * dwarf2read.c (create_addrmap_from_index): Likewise.
10905 (create_addrmap_from_aranges): Likewise.
10906 (dw2_find_pc_sect_compunit_symtab): Likewise.
10907 (process_psymtab_comp_unit_reader): Likewise.
10908 (add_partial_symbol): Likewise.
10909 (add_partial_subprogram): Likewise.
10910 (process_full_comp_unit): Likewise.
10911 (read_file_scope): Likewise.
10912 (read_func_scope): Likewise.
10913 (read_lexical_block_scope): Likewise.
10914 (read_call_site_scope): Likewise.
10915 (dwarf2_rnglists_process): Likewise.
10916 (dwarf2_ranges_process): Likewise.
10917 (dwarf2_ranges_read): Likewise.
10918 (dwarf_decode_lines_1): Likewise.
10919 (new_symbol): Likewise.
10920 (dwarf2_fetch_die_loc_sect_off): Likewise.
10921 (dwarf2_per_cu_text_offset): Likewise.
10922 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10923 * hppa-tdep.c (read_unwind_info): Likewise.
10924 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10925 * psympriv.h (struct partial_symtab): Likewise.
10926 * psymtab.c (find_pc_sect_psymtab): Likewise.
10927 * solib-svr4.c (enable_break): Likewise.
10928 * stap-probe.c (relocate_address): Use
10929 objfile::data_section_offset.
10930 * xcoffread.c (enter_line_range): Use
10931 objfile::text_section_offset.
10932 (read_xcoff_symtab): Likewise.
10933
10934 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10935
10936 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10937 declaration to narrower scopes.
10938
10939 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10940
10941 * darwin-nat.h (struct darwin_exception_msg, enum
10942 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10943 Move up.
10944 (class darwin_nat_target) <wait_1, check_new_threads,
10945 decode_exception_message, decode_message, stop_inferior,
10946 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10947 * darwin-nat.c (darwin_check_new_threads): Rename to...
10948 (darwin_nat_target::check_new_threads): ... this.
10949 (darwin_suspend_inferior_it): Remove.
10950 (darwin_decode_exception_message): Rename to...
10951 (darwin_nat_target::decode_exception_message): ... this.
10952 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10953 (darwin_decode_message): Rename to...
10954 (darwin_nat_target::decode_message): ... this.
10955 (cancel_breakpoint): Rename to...
10956 (darwin_nat_target::cancel_breakpoint): ... this.
10957 (darwin_wait): Rename to...
10958 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10959 instead of iterate_over_inferiors.
10960 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10961 (darwin_stop_inferior): Rename to...
10962 (darwin_nat_target::stop_inferior): ... this.
10963 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10964 (darwin_init_thread_list): Rename to...
10965 (darwin_nat_target::init_thread_list): ... this.
10966 (darwin_ptrace_him): Rename to...
10967 (darwin_nat_target::ptrace_him): ... this.
10968 (darwin_nat_target::create_inferior): Pass lambda function to
10969 fork_inferior.
10970 (darwin_nat_target::detach): Call stop_inferior instead of
10971 darwin_stop_inferior.
10972 * fork-inferior.h (fork_inferior): Change init_trace_fun
10973 parameter to gdb::function_view.
10974 * fork-inferior.c (fork_inferior): Likewise.
10975
10976 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
10977
10978 * i386-cygwin-tdep.c (core_process_module_section): Update.
10979 * windows-nat.c (struct lm_info_windows): Add text_offset.
10980 (windows_xfer_shared_libraries): Update.
10981 * windows-tdep.c (windows_xfer_shared_library):
10982 Add text_offset_cached argument.
10983 * windows-tdep.h (windows_xfer_shared_library): Update.
10984
10985 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10986
10987 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10988
10989 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10990
10991 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10992 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10993 replace with range-based for.
10994 (gdbsim_interrupt_inferior): Remove.
10995 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10996 with a range-based for. Inline code from
10997 gdbsim_interrupt_inferior.
10998
10999 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11000
11001 * infrun.c (proceed): Fix indentation.
11002
11003 2020-01-21 Tom Tromey <tromey@adacore.com>
11004
11005 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
11006 * python/python.c (python_extension_ops): Update.
11007 (gdbpy_colorize): New function.
11008 * python/lib/gdb/__init__.py (colorize): New function.
11009 * extension.h (ext_lang_colorize): Declare.
11010 * extension.c (ext_lang_colorize): New function.
11011 * extension-priv.h (struct extension_language_ops) <colorize>: New
11012 member.
11013 * cli/cli-style.c (_initialize_cli_style): Update help text.
11014
11015 2020-01-21 Luis Machado <luis.machado@linaro.org>
11016
11017 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
11018 <cond>: Change type to bool.
11019 (aarch64_displaced_step_b_cond): Update cond to use bool type.
11020 (aarch64_displaced_step_cb): Likewise.
11021 (aarch64_displaced_step_tb): Likewise.
11022
11023 2020-01-21 Luis Machado <luis.machado@linaro.org>
11024
11025 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
11026 output.
11027
11028 2020-01-21 Luis Machado <luis.machado@linaro.org>
11029
11030 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
11031 <pc_adjust>: Adjust the documentation.
11032 (aarch64_displaced_step_fixup): Check if PC really moved before
11033 adjusting it.
11034
11035 2020-01-19 Tom Tromey <tom@tromey.com>
11036
11037 * disasm.c (~gdb_disassembler): New destructor.
11038 (gdb_buffered_insn_length): Call disassemble_free_target.
11039 * disasm.h (class gdb_disassembler): Declare destructor. Use
11040 DISABLE_COPY_AND_ASSIGN.
11041
11042 2020-01-19 Tom Tromey <tom@tromey.com>
11043
11044 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
11045 (die_reader_func_ftype): Remove.
11046 (cutu_reader): New class.
11047 (dw2_get_file_names_reader): Remove "data" parameter.
11048 (dw2_get_file_names): Use cutu_reader.
11049 (create_debug_type_hash_table): Update.
11050 (read_cutu_die_from_dwo): Update comment.
11051 (lookup_dwo_unit): Add dwo_name parameter.
11052 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
11053 die_reader_func_ftype and data parameters.
11054 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
11055 Remove die_reader_func_ftype and data parameters.
11056 (~cutu_reader): New; from init_cutu_and_read_dies.
11057 (cutu_reader::cutu_reader): Rename from
11058 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
11059 and data parameters.
11060 (init_cutu_and_read_dies_simple): Remove.
11061 (struct process_psymtab_comp_unit_data): Remove.
11062 (process_psymtab_comp_unit_reader): Remove data parameter; add
11063 want_partial_unit and pretend_language parameters.
11064 (process_psymtab_comp_unit): Use cutu_reader.
11065 (build_type_psymtabs_reader): Remove data parameter.
11066 (build_type_psymtabs_1): Use cutu_reader.
11067 (process_skeletonless_type_unit): Likewise.
11068 (load_partial_comp_unit_reader): Remove.
11069 (load_partial_comp_unit): Use cutu_reader.
11070 (load_full_comp_unit_reader): Remove.
11071 (load_full_comp_unit): Use cutu_reader.
11072 (struct create_dwo_cu_data): Remove.
11073 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
11074 dwo_unit parameters.
11075 (create_cus_hash_table): Use cutu_reader.
11076 (struct dwarf2_read_addr_index_data): Remove.
11077 (dwarf2_read_addr_index_reader): Remove.
11078 (dwarf2_read_addr_index): Use cutu_reader.
11079 (read_signatured_type_reader): Remove.
11080 (read_signatured_type): Use cutu_reader.
11081
11082 2020-01-19 Tom Tromey <tom@tromey.com>
11083
11084 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
11085 * tui/tui-wingeneral.h (class tui_suppress_output): New.
11086 (tui_wrefresh): Declare.
11087 * tui/tui-wingeneral.c (suppress_output): New global.
11088 (tui_suppress_output, ~tui_suppress_output): New constructor and
11089 destructor.
11090 (tui_wrefresh): New function.
11091 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
11092 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
11093 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
11094 method.
11095 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
11096 tui_wrefresh.
11097 (tui_data_window::no_refresh): New method.
11098 (tui_data_item_window::refresh_window): Call tui_wrefresh.
11099 (tui_reg_command): Use tui_suppress_output
11100 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
11101 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
11102 method.
11103 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
11104
11105 2020-01-19 Tom Tromey <tom@tromey.com>
11106
11107 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11108 Handle case where symtab is null.
11109
11110 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
11111
11112 * linux-fork.c (one_fork_p): Simplify.
11113
11114 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11115
11116 * top.c (struct qt_args): Remove.
11117 (kill_or_detach): Change return type to void, replace `void *`
11118 parameter with a proper one.
11119 (print_inferior_quit_action): Likewise.
11120 (quit_confirm): Use range-based for loop to iterate over inferiors.
11121 (quit_force): Likewise.
11122
11123 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11124
11125 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
11126 `void *` parameter with proper parameters.
11127 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
11128 (print_one_inferior): Change return type to void, replace `void *`
11129 parameter with proper parameters.
11130 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
11131 inferiors.
11132 (get_other_inferior): Remove.
11133 (mi_cmd_remove_inferior): Use range-based loop to iterate over
11134 inferiors.
11135
11136 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11137
11138 * mi/mi-interp.c (report_initial_inferior): Remove.
11139 (mi_interp::init): Use range-based for to iterate over inferiors.
11140
11141 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11142
11143 * python/py-inferior.c (build_inferior_list): Remove.
11144 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
11145
11146 2020-01-16 Christian Biesinger <cbiesinger@google.com>
11147
11148 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
11149 (btrace_stitch_trace): Likewise.
11150 * charset.c (intermediate_encoding): Likewise (vaild).
11151 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
11152 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
11153 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
11154
11155 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
11156
11157 * windows-tdep.c (windows_get_tlb_type):
11158 Add rtl_user_process_parameters type.
11159
11160 2020-01-16 Pedro Alves <palves@redhat.com>
11161 Norbert Lange <nolange79@gmail.com>
11162
11163 PR build/24805
11164 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
11165 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
11166 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
11167 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
11168 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
11169 (ps_plog): Redeclare exported functions with default visibility.
11170
11171 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
11172
11173 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
11174 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
11175
11176 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
11177
11178 * infcmd.c (post_create_inferior): Use get_thread_regcache
11179 instead of get_current_regcache.
11180
11181 2020-01-14 Tom Tromey <tom@tromey.com>
11182
11183 PR symtab/12535:
11184 * python/python.c (gdbpy_decode_line): Treat empty string the same
11185 as no argument.
11186
11187 2020-01-14 Tom Tromey <tom@tromey.com>
11188
11189 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
11190
11191 2020-01-14 Tom Tromey <tom@tromey.com>
11192
11193 * nat/linux-btrace.c: Don't include <config.h>.
11194 * nat/linux-ptrace.c: Don't include <config.h>.
11195 * nat/x86-linux-dregs.c: Don't include <config.h>.
11196
11197 2020-01-14 Tom Tromey <tom@tromey.com>
11198
11199 * configure: Rebuild.
11200 * configure.ac: Move many checks to ../gdbsupport/common.m4.
11201
11202 2020-01-14 Tom Tromey <tom@tromey.com>
11203
11204 * nat/x86-linux-dregs.c: Include configh.h.
11205 * nat/linux-ptrace.c: Include configh.h.
11206 * nat/linux-btrace.c: Include configh.h.
11207 * defs.h: Include config.h, bfd.h.
11208 * configure.ac: Don't source common.host.
11209 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
11210 * configure: Rebuild.
11211 * acinclude.m4: Update path.
11212 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
11213 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
11214 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
11215 (CLIBS): Add LIBSUPPORT.
11216 (CDEPS): Likewise.
11217 (COMMON_SFILES): Remove gdbsupport files.
11218 (HFILES_NO_SRCDIR): Likewise.
11219 (stamp-version): Update path to create-version.sh.
11220 (ALLDEPFILES): Remove gdbsupport files.
11221
11222 2020-01-14 Tom Tromey <tom@tromey.com>
11223
11224 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
11225 USE_WIN32API when needed.
11226 * configure.ac (USE_WIN32API): Don't define.
11227 (WIN32LIBS): Use WIN32APILIBS.
11228 * configure: Rebuild.
11229
11230 2020-01-14 Tom Tromey <tom@tromey.com>
11231
11232 * configure: Rebuild.
11233 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
11234
11235 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
11236
11237 * skip.c (skip_function_command): Make skip w/o arguments use the
11238 name of the inlined function if pc is inside any inlined function.
11239
11240 2020-01-14 Luis Machado <luis.machado@linaro.org>
11241
11242 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
11243 * infrun.c (resume_1): Likewise.
11244 (handle_inferior_event): Remove stale comment.
11245 * linux-nat.c (linux_nat_target::resume): Update comments.
11246 (save_stop_reason): Likewise.
11247 (linux_nat_filter_event): Likewise.
11248 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
11249
11250 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11251
11252 * elfread.c (record_minimal_symbol): Set section index to 0 for
11253 non-allocatable sections.
11254
11255
11256 2020-01-13 Ali Tamur <tamur@google.com>
11257
11258 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
11259 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
11260 to gdb::optional. Update comments.
11261 (dwo_file): Update comments.
11262 (read_attribute): Update API to take an additional out parameter,
11263 need_reprocess. This is used to mark attributes that need other
11264 attributes (e.g. str_offsets_base) for correct computation which may not
11265 have been read yet.
11266 (read_attribute_reprocess): New function declaration.
11267 (read_addr_index): Likewise.
11268 (read_dwo_str_index): Likewise.
11269 (read_stub_str_index): Likewise.
11270 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
11271 (lookup_addr_base): New function definition.
11272 (lookup_ranges_base): Likewise.
11273 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
11274 lookup_ranges_base.
11275 (init_cutu_and_read_dies): Update comments.
11276 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
11277 unit. This is used to inherit parent's str_offsets_base and addr_base.
11278 Update comments.
11279 (init_cutu_and_read_dies_simple): Reflect API changes.
11280 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
11281 (create_cus_hash_table): Change API to take parent compile unit.
11282 Reflect API changes.
11283 (open_and_init_dwo_file): Reflect API changes.
11284 (dwarf2_get_pc_bounds): Update comments.
11285 (dwarf2_record_block_ranges): Likewise.
11286 (read_full_die_1): Change implementation to reprocess attributes that
11287 need str_offsets_base and addr_base.
11288 (partial_die_info::read): Likewise.
11289 (read_attribute_reprocess): New function definition.
11290 (read_attribute_value): Change API to take an additional out parameter,
11291 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
11292 when a non-dwo compile unit has index based attributes.
11293 (read_attribute): Reflect API changes.
11294 (read_addr_index_1): Reflect API changes. Update comments.
11295 (dwarf2_read_addr_index_data): Reflect API changes.
11296 (dwarf2_read_addr_index): Likewise.
11297 (read_str_index): Change API and implementation. This becomes a helper
11298 to be used by the new string index related methods. Update error
11299 message and comments.
11300 (read_dwo_str_index): New function definition.
11301 (read_stub_str_index): Likewise.
11302 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
11303 * symfile.h (dwarf2_debug_sections): Likewise.
11304 * xcoffread.c (dwarf2_debug_sections): Likewise.
11305
11306 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11307
11308 * gdbcore.h (struct core_fns) <core_read_registers>: Change
11309 core_reg_sect type to gdb_byte *.
11310 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
11311 * cris-tdep.c (fetch_core_registers): Likewise.
11312 * corelow.c (core_target::get_core_register_section): Change
11313 type of `contents` to gdb::byte_vector.
11314
11315 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11316
11317 * tui/tui-wingeneral.c (box_win): Position the title in the center
11318 of the border.
11319
11320 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11321
11322 * corelow.c (core_target::get_core_register_section): Use
11323 std::vector instead of alloca.
11324
11325 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11326
11327 * warning.m4: Add -Wmissing-declarations to build_warnings.
11328 * configure: Re-generate.
11329
11330 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11331
11332 * python/python.c (init__gdb_module): Add declaration.
11333
11334 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11335
11336 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
11337 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
11338 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
11339 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
11340 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
11341 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
11342 * ada-exp.y (_initialize_ada_exp): Add declaration.
11343 * ada-lang.c (_initialize_ada_language): Add declaration.
11344 * ada-tasks.c (_initialize_tasks): Add declaration.
11345 * agent.c (_initialize_agent): Add declaration.
11346 * aix-thread.c (_initialize_aix_thread): Add declaration.
11347 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
11348 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
11349 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
11350 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
11351 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
11352 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
11353 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
11354 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
11355 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
11356 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
11357 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
11358 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
11359 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
11360 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
11361 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
11362 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
11363 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
11364 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
11365 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
11366 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
11367 * annotate.c (_initialize_annotate): Add declaration.
11368 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
11369 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
11370 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
11371 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
11372 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
11373 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
11374 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
11375 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
11376 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
11377 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
11378 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
11379 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
11380 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
11381 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
11382 * auto-load.c (_initialize_auto_load): Add declaration.
11383 * auxv.c (_initialize_auxv): Add declaration.
11384 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
11385 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
11386 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
11387 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
11388 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
11389 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
11390 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
11391 * breakpoint.c (_initialize_breakpoint): Add declaration.
11392 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
11393 * btrace.c (_initialize_btrace): Add declaration.
11394 * charset.c (_initialize_charset): Add declaration.
11395 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
11396 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11397 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11398 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11399 * cli/cli-script.c (_initialize_cli_script): Add declaration.
11400 * cli/cli-style.c (_initialize_cli_style): Add declaration.
11401 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11402 * coffread.c (_initialize_coffread): Add declaration.
11403 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11404 * compile/compile.c (_initialize_compile): Add declaration.
11405 * complaints.c (_initialize_complaints): Add declaration.
11406 * completer.c (_initialize_completer): Add declaration.
11407 * copying.c (_initialize_copying): Add declaration.
11408 * corefile.c (_initialize_core): Add declaration.
11409 * corelow.c (_initialize_corelow): Add declaration.
11410 * cp-abi.c (_initialize_cp_abi): Add declaration.
11411 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11412 * cp-support.c (_initialize_cp_support): Add declaration.
11413 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11414 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11415 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11416 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11417 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11418 * ctfread.c (_initialize_ctfread): Add declaration.
11419 * d-lang.c (_initialize_d_language): Add declaration.
11420 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11421 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11422 * dbxread.c (_initialize_dbxread): Add declaration.
11423 * dcache.c (_initialize_dcache): Add declaration.
11424 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11425 * disasm.c (_initialize_disasm): Add declaration.
11426 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11427 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11428 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11429 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11430 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11431 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11432 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11433 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11434 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11435 * elfread.c (_initialize_elfread): Add declaration.
11436 * exec.c (_initialize_exec): Add declaration.
11437 * extension.c (_initialize_extension): Add declaration.
11438 * f-lang.c (_initialize_f_language): Add declaration.
11439 * f-valprint.c (_initialize_f_valprint): Add declaration.
11440 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11441 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11442 * filesystem.c (_initialize_filesystem): Add declaration.
11443 * findcmd.c (_initialize_mem_search): Add declaration.
11444 * findvar.c (_initialize_findvar): Add declaration.
11445 * fork-child.c (_initialize_fork_child): Add declaration.
11446 * frame-base.c (_initialize_frame_base): Add declaration.
11447 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11448 * frame.c (_initialize_frame): Add declaration.
11449 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11450 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11451 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11452 * gcore.c (_initialize_gcore): Add declaration.
11453 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11454 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11455 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11456 * gdbarch.c (_initialize_gdbarch): Add declaration.
11457 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11458 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11459 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11460 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11461 * go-lang.c (_initialize_go_language): Add declaration.
11462 * go32-nat.c (_initialize_go32_nat): Add declaration.
11463 * guile/guile.c (_initialize_guile): Add declaration.
11464 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11465 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11466 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11467 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11468 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11469 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11470 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11471 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11472 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11473 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11474 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11475 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11476 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11477 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11478 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11479 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11480 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11481 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11482 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11483 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11484 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11485 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11486 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11487 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11488 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11489 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11490 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11491 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11492 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11493 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11494 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11495 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11496 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11497 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11498 * infcall.c (_initialize_infcall): Add declaration.
11499 * infcmd.c (_initialize_infcmd): Add declaration.
11500 * inflow.c (_initialize_inflow): Add declaration.
11501 * infrun.c (_initialize_infrun): Add declaration.
11502 * interps.c (_initialize_interpreter): Add declaration.
11503 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11504 * jit.c (_initialize_jit): Add declaration.
11505 * language.c (_initialize_language): Add declaration.
11506 * linux-fork.c (_initialize_linux_fork): Add declaration.
11507 * linux-nat.c (_initialize_linux_nat): Add declaration.
11508 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11509 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11510 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11511 * m2-lang.c (_initialize_m2_language): Add declaration.
11512 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11513 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11514 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11515 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11516 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11517 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11518 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11519 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11520 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11521 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11522 * machoread.c (_initialize_machoread): Add declaration.
11523 * macrocmd.c (_initialize_macrocmd): Add declaration.
11524 * macroscope.c (_initialize_macroscope): Add declaration.
11525 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11526 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11527 * maint.c (_initialize_maint_cmds): Add declaration.
11528 * mdebugread.c (_initialize_mdebugread): Add declaration.
11529 * memattr.c (_initialize_mem): Add declaration.
11530 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11531 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11532 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11533 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11534 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11535 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11536 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11537 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11538 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11539 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11540 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11541 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11542 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11543 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11544 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11545 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11546 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11547 * mipsread.c (_initialize_mipsread): Add declaration.
11548 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11549 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11550 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11551 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11552 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11553 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11554 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11555 * nto-procfs.c (_initialize_procfs): Add declaration.
11556 * objc-lang.c (_initialize_objc_language): Add declaration.
11557 * observable.c (_initialize_observer): Add declaration.
11558 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11559 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11560 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11561 * osabi.c (_initialize_gdb_osabi): Add declaration.
11562 * osdata.c (_initialize_osdata): Add declaration.
11563 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11564 * parse.c (_initialize_parse): Add declaration.
11565 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11566 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11567 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11568 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11569 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11570 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11571 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11572 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11573 * printcmd.c (_initialize_printcmd): Add declaration.
11574 * probe.c (_initialize_probe): Add declaration.
11575 * proc-api.c (_initialize_proc_api): Add declaration.
11576 * proc-events.c (_initialize_proc_events): Add declaration.
11577 * proc-service.c (_initialize_proc_service): Add declaration.
11578 * procfs.c (_initialize_procfs): Add declaration.
11579 * producer.c (_initialize_producer): Add declaration.
11580 * psymtab.c (_initialize_psymtab): Add declaration.
11581 * python/python.c (_initialize_python): Add declaration.
11582 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11583 * record-btrace.c (_initialize_record_btrace): Add declaration.
11584 * record-full.c (_initialize_record_full): Add declaration.
11585 * record.c (_initialize_record): Add declaration.
11586 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11587 * regcache.c (_initialize_regcache): Add declaration.
11588 * reggroups.c (_initialize_reggroup): Add declaration.
11589 * remote-notif.c (_initialize_notif): Add declaration.
11590 * remote-sim.c (_initialize_remote_sim): Add declaration.
11591 * remote.c (_initialize_remote): Add declaration.
11592 * reverse.c (_initialize_reverse): Add declaration.
11593 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11594 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11595 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11596 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11597 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11598 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11599 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11600 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11601 Add declaration.
11602 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11603 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11604 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11605 * rust-exp.y (_initialize_rust_exp): Add declaration.
11606 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11607 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11608 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11609 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11610 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11611 * score-tdep.c (_initialize_score_tdep): Add declaration.
11612 * ser-go32.c (_initialize_ser_dos): Add declaration.
11613 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11614 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11615 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11616 * ser-uds.c (_initialize_ser_socket): Add declaration.
11617 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11618 * serial.c (_initialize_serial): Add declaration.
11619 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11620 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11621 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11622 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11623 * skip.c (_initialize_step_skip): Add declaration.
11624 * sol-thread.c (_initialize_sol_thread): Add declaration.
11625 * solib-aix.c (_initialize_solib_aix): Add declaration.
11626 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11627 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11628 * solib-frv.c (_initialize_frv_solib): Add declaration.
11629 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11630 * solib-target.c (_initialize_solib_target): Add declaration.
11631 * solib.c (_initialize_solib): Add declaration.
11632 * source-cache.c (_initialize_source_cache): Add declaration.
11633 * source.c (_initialize_source): Add declaration.
11634 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11635 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11636 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11637 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11638 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11639 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11640 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11641 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11642 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11643 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11644 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11645 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11646 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11647 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11648 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11649 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11650 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11651 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11652 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11653 * stabsread.c (_initialize_stabsread): Add declaration.
11654 * stack.c (_initialize_stack): Add declaration.
11655 * stap-probe.c (_initialize_stap_probe): Add declaration.
11656 * std-regs.c (_initialize_frame_reg): Add declaration.
11657 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11658 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11659 * symfile.c (_initialize_symfile): Add declaration.
11660 * symmisc.c (_initialize_symmisc): Add declaration.
11661 * symtab.c (_initialize_symtab): Add declaration.
11662 * target.c (_initialize_target): Add declaration.
11663 * target-connection.c (_initialize_target_connection): Add
11664 declaration.
11665 * target-dcache.c (_initialize_target_dcache): Add declaration.
11666 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11667 * thread.c (_initialize_thread): Add declaration.
11668 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11669 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11670 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11671 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11672 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11673 * tracectf.c (_initialize_ctf): Add declaration.
11674 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11675 * tracefile.c (_initialize_tracefile): Add declaration.
11676 * tracepoint.c (_initialize_tracepoint): Add declaration.
11677 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11678 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11679 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11680 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11681 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11682 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11683 * tui/tui.c (_initialize_tui): Add declaration.
11684 * typeprint.c (_initialize_typeprint): Add declaration.
11685 * ui-style.c (_initialize_ui_style): Add declaration.
11686 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11687 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11688 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11689 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11690 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11691 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11692 * unittests/filtered_iterator-selftests.c
11693 (_initialize_filtered_iterator_selftests): Add declaration.
11694 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11695 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11696 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11697 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11698 * unittests/main-thread-selftests.c
11699 (_initialize_main_thread_selftests): Add declaration.
11700 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11701 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11702 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11703 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11704 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11705 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11706 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11707 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11708 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11709 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11710 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11711 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11712 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11713 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11714 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11715 declaration.
11716 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11717 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11718 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11719 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11720 * user-regs.c (_initialize_user_regs): Add declaration.
11721 * utils.c (_initialize_utils): Add declaration.
11722 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11723 * valops.c (_initialize_valops): Add declaration.
11724 * valprint.c (_initialize_valprint): Add declaration.
11725 * value.c (_initialize_values): Add declaration.
11726 * varobj.c (_initialize_varobj): Add declaration.
11727 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11728 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11729 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11730 * windows-nat.c (_initialize_windows_nat): Add declaration.
11731 (_initialize_check_for_gdb_ini): Add declaration.
11732 (_initialize_loadable): Add declaration.
11733 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11734 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11735 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11736 * xcoffread.c (_initialize_xcoffread): Add declaration.
11737 * xml-support.c (_initialize_xml_support): Add declaration.
11738 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11739 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11740 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11741 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11742
11743 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11744
11745 * regformats/regdat.sh: Generate declaration for init function.
11746
11747 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11748
11749 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11750 up.
11751 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11752 close_one_inferior>: New methods.
11753 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11754 pass down target to find_inferior_pid.
11755 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11756 Pass down target to find_inferior_ptid.
11757 (gdbsim_target::create_inferior): Pass down target to
11758 add_thread_silent.
11759 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11760 target down to find_inferior_ptid and switch_to_thread.
11761 (gdbsim_target::close): Update to call close_one_inferior.
11762 (struct resume_data): Remove.
11763 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11764 directly, rather than through a void pointer.
11765 (gdbsim_target::resume): Update to call resume_one_inferior.
11766
11767 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11768
11769 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11770
11771 2020-01-12 Pedro Alves <palves@redhat.com>
11772
11773 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11774 directly for the current inferior instead of
11775 discard_all_inferiors.
11776 (discard_all_inferiors): Delete.
11777
11778 2020-01-11 Tom Tromey <tom@tromey.com>
11779
11780 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11781 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11782 deprecated_safe_get_selected_frame.
11783
11784 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11785
11786 * inferior.c (print_inferior): Switch inferior before printing it.
11787
11788 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11789 Pedro Alves <palves@redhat.com>
11790
11791 * progspace-and-thread.c (switch_to_program_space_and_thread):
11792 Assert there's an inferior for PSPACE. Use
11793 switch_to_inferior_no_thread to switch the inferior too.
11794 * progspace.c (program_space::~program_space): Call
11795 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11796 (program_space::free_all_objfiles): Don't call clear_symtab_users
11797 here.
11798 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11799
11800 2020-01-10 Pedro Alves <palves@redhat.com>
11801
11802 * NEWS: Mention multi-target debugging, "info connections", and
11803 "add-inferior -no-connection".
11804
11805 2020-01-10 Pedro Alves <palves@redhat.com>
11806
11807 * infrun.c: Include "target-connection.h".
11808 (check_multi_target_resumption): New.
11809 (proceed): Call it.
11810 * target-connection.c (make_target_connection_string): Make
11811 extern.
11812 * target-connection.h (make_target_connection_string): Declare.
11813
11814 2020-01-10 Pedro Alves <palves@redhat.com>
11815
11816 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11817 * inferior.c (uiout_field_connection): New function.
11818 (print_inferior): Add new "connection-id" column.
11819 (add_inferior_command): Show connection number/string of added
11820 inferior.
11821 * process-stratum-target.h
11822 (process_stratum_target::connection_string): New virtual method.
11823 (process_stratum_target::connection_number): New field.
11824 * remote.c (remote_target::connection_string): New override.
11825 * target-connection.c: New file.
11826 * target-connection.h: New file.
11827 * target.c (decref_target): Remove process_stratum targets from
11828 the connection list.
11829 (target_stack::push): Add process_stratum targets to the
11830 connection list.
11831
11832 2020-01-10 Pedro Alves <palves@redhat.com>
11833
11834 Revert:
11835 2016-04-12 Pedro Alves <palves@redhat.com>
11836 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11837 Remove references to name.
11838 * serial.h (struct serial) <name>: Delete.
11839
11840 2020-01-10 Pedro Alves <palves@redhat.com>
11841
11842 * gdbarch-selftests.c (register_to_value_test): Remove "target
11843 already pushed" check.
11844
11845 2020-01-10 Pedro Alves <palves@redhat.com>
11846 John Baldwin <jhb@FreeBSD.org>
11847
11848 * aarch64-linux-nat.c
11849 (aarch64_linux_nat_target::thread_architecture): Adjust.
11850 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11851 (task_command_1): Likewise.
11852 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11853 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11854 (aix_thread_target::store_registers)
11855 (aix_thread_target::thread_alive): Adjust.
11856 * amd64-fbsd-tdep.c: Include "inferior.h".
11857 (amd64fbsd_get_thread_local_address): Pass down target.
11858 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11859 thread's gdbarch instead of target_gdbarch.
11860 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11861 get_last_target_status.
11862 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11863 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11864 inferiors.
11865 (update_inserted_breakpoint_locations): Skip if inferiors with no
11866 execution.
11867 (update_global_location_list): When handling moribund locations,
11868 find representative inferior for location's pspace, and use thread
11869 count of its process_stratum target.
11870 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11871 * bsd-uthread.c (bsd_uthread_target::wait): Use
11872 as_process_stratum_target and adjust thread_change_ptid and
11873 add_thread calls.
11874 (bsd_uthread_target::update_thread_list): Use
11875 as_process_stratum_target and adjust find_thread_ptid,
11876 thread_change_ptid and add_thread calls.
11877 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11878 find_thread_ptid call.
11879 * corelow.c (add_to_thread_list): Adjust add_thread call.
11880 (core_target_open): Adjust add_thread_silent and thread_count
11881 calls.
11882 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11883 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11884 * event-top.c (async_disconnect): Pop targets from all inferiors.
11885 * exec.c (add_target_sections): Push exec target on all inferiors
11886 sharing the program space.
11887 (remove_target_sections): Remove the exec target from all
11888 inferiors sharing the program space.
11889 (exec_on_vfork): New.
11890 * exec.h (exec_on_vfork): Declare.
11891 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11892 Pass it down.
11893 (fbsd_nat_target::update_thread_list): Adjust.
11894 (fbsd_nat_target::resume): Adjust.
11895 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11896 down.
11897 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11898 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11899 get_thread_arch_regcache call.
11900 * fork-child.c (gdb_startup_inferior): Pass target down to
11901 startup_inferior and set_executing.
11902 * gdbthread.h (struct process_stratum_target): Forward declare.
11903 (add_thread, add_thread_silent, add_thread_with_info)
11904 (in_thread_list): Add process_stratum_target parameter.
11905 (find_thread_ptid(inferior*, ptid_t)): New overload.
11906 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11907 parameter.
11908 (all_threads()): Delete overload.
11909 (all_threads, all_non_exited_threads): Add process_stratum_target
11910 parameter.
11911 (all_threads_safe): Use brace initialization.
11912 (thread_count): Add process_stratum_target parameter.
11913 (set_resumed, set_running, set_stop_requested, set_executing)
11914 (threads_are_executing, finish_thread_state): Add
11915 process_stratum_target parameter.
11916 (switch_to_thread): Use is_current_thread.
11917 * i386-fbsd-tdep.c: Include "inferior.h".
11918 (i386fbsd_get_thread_local_address): Pass down target.
11919 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11920 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11921 have_inferiors check.
11922 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11923 (inf_ptrace_target::attach): Adjust.
11924 * infcall.c (run_inferior_call): Adjust.
11925 * infcmd.c (run_command_1): Pass target to
11926 scoped_finish_thread_state.
11927 (proceed_thread_callback): Skip inferiors with no execution.
11928 (continue_command): Rename 'all_threads' local to avoid hiding
11929 'all_threads' function. Adjust get_last_target_status call.
11930 (prepare_one_step): Adjust set_running call.
11931 (signal_command): Use user_visible_resume_target. Compare thread
11932 pointers instead of inferior_ptid.
11933 (info_program_command): Adjust to pass down target.
11934 (attach_command): Mark target's 'thread_executing' flag.
11935 (stop_current_target_threads_ns): New, factored out from ...
11936 (interrupt_target_1): ... this. Switch inferior before making
11937 target calls.
11938 * inferior-iter.h
11939 (struct all_inferiors_iterator, struct all_inferiors_range)
11940 (struct all_inferiors_safe_range)
11941 (struct all_non_exited_inferiors_range): Filter on
11942 process_stratum_target too. Remove explicit.
11943 * inferior.c (inferior::inferior): Push dummy target on target
11944 stack.
11945 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11946 Add process_stratum_target parameter, and pass it down.
11947 (have_live_inferiors): Adjust.
11948 (switch_to_inferior_and_push_target): New.
11949 (add_inferior_command, clone_inferior_command): Handle
11950 "-no-connection" parameter. Use
11951 switch_to_inferior_and_push_target.
11952 (_initialize_inferior): Mention "-no-connection" option in
11953 the help of "add-inferior" and "clone-inferior" commands.
11954 * inferior.h: Include "process-stratum-target.h".
11955 (interrupt_target_1): Use bool.
11956 (struct inferior) <push_target, unpush_target, target_is_pushed,
11957 find_target_beneath, top_target, process_target, target_at,
11958 m_stack>: New.
11959 (discard_all_inferiors): Delete.
11960 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11961 (all_inferiors, all_non_exited_inferiors): Add
11962 process_stratum_target parameter.
11963 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11964 (target_last_proc_target): New global.
11965 (follow_fork_inferior): Push target on new inferior. Pass target
11966 to add_thread_silent. Call exec_on_vfork. Handle target's
11967 reference count.
11968 (follow_fork): Adjust get_last_target_status call. Also consider
11969 target.
11970 (follow_exec): Push target on new inferior.
11971 (struct execution_control_state) <target>: New field.
11972 (user_visible_resume_target): New.
11973 (do_target_resume): Call target_async.
11974 (resume_1): Set target's threads_executing flag. Consider resume
11975 target.
11976 (commit_resume_all_targets): New.
11977 (proceed): Also consider resume target. Skip threads of inferiors
11978 with no execution. Commit resumtion in all targets.
11979 (start_remote): Pass current inferior to wait_for_inferior.
11980 (infrun_thread_stop_requested): Consider target as well. Pass
11981 thread_info pointer to clear_inline_frame_state instead of ptid.
11982 (infrun_thread_thread_exit): Consider target as well.
11983 (random_pending_event_thread): New inferior parameter. Use it.
11984 (do_target_wait): Rename to ...
11985 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11986 down.
11987 (threads_are_resumed_pending_p, do_target_wait): New.
11988 (prepare_for_detach): Adjust calls.
11989 (wait_for_inferior): New inferior parameter. Handle it. Use
11990 do_target_wait_1 instead of do_target_wait.
11991 (fetch_inferior_event): Adjust. Switch to representative
11992 inferior. Pass target down.
11993 (set_last_target_status): Add process_stratum_target parameter.
11994 Save target in global.
11995 (get_last_target_status): Add process_stratum_target parameter and
11996 handle it.
11997 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11998 (context_switch): Check inferior_ptid == null_ptid before calling
11999 inferior_thread().
12000 (get_inferior_stop_soon): Pass down target.
12001 (wait_one): Rename to ...
12002 (poll_one_curr_target): ... this.
12003 (struct wait_one_event): New.
12004 (wait_one): New.
12005 (stop_all_threads): Adjust.
12006 (handle_no_resumed, handle_inferior_event): Adjust to consider the
12007 event's target.
12008 (switch_back_to_stepped_thread): Also consider target.
12009 (print_stop_event): Update.
12010 (normal_stop): Update. Also consider the resume target.
12011 * infrun.h (wait_for_inferior): Remove declaration.
12012 (user_visible_resume_target): New declaration.
12013 (get_last_target_status, set_last_target_status): New
12014 process_stratum_target parameter.
12015 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12016 process_stratum_target parameter, and use it.
12017 (clear_inline_frame_state (thread_info*)): New.
12018 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12019 process_stratum_target parameter.
12020 (clear_inline_frame_state (thread_info*)): Declare.
12021 * linux-fork.c (delete_checkpoint_command): Pass target down to
12022 find_thread_ptid.
12023 (checkpoint_command): Adjust.
12024 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
12025 instead of just tweaking inferior_ptid.
12026 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
12027 (exit_lwp): Pass target down to find_thread_ptid.
12028 (attach_proc_task_lwp_callback): Pass target down to
12029 add_thread/set_running/set_executing.
12030 (linux_nat_target::attach): Pass target down to
12031 thread_change_ptid.
12032 (get_detach_signal): Pass target down to find_thread_ptid.
12033 Consider last target status's target.
12034 (linux_resume_one_lwp_throw, resume_lwp)
12035 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
12036 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
12037 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
12038 (linux_nat_target::async_wait_fd): New.
12039 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
12040 target down.
12041 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
12042 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
12043 * linux-thread-db.c (struct thread_db_info::process_target): New
12044 field.
12045 (add_thread_db_info): Save target.
12046 (get_thread_db_info): New process_stratum_target parameter. Also
12047 match target.
12048 (delete_thread_db_info): New process_stratum_target parameter.
12049 Also match target.
12050 (thread_from_lwp): Adjust to pass down target.
12051 (thread_db_notice_clone): Pass down target.
12052 (check_thread_db_callback): Pass down target.
12053 (try_thread_db_load_1): Always push the thread_db target.
12054 (try_thread_db_load, record_thread): Pass target down.
12055 (thread_db_target::detach): Pass target down. Always unpush the
12056 thread_db target.
12057 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
12058 target down. Always unpush the thread_db target.
12059 (find_new_threads_callback, thread_db_find_new_threads_2)
12060 (thread_db_target::update_thread_list): Pass target down.
12061 (thread_db_target::pid_to_str): Pass current inferior down.
12062 (thread_db_target::get_thread_local_address): Pass target down.
12063 (thread_db_target::resume, maintenance_check_libthread_db): Pass
12064 target down.
12065 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
12066 * procfs.c (procfs_target::procfs_init_inferior): Declare.
12067 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
12068 (procfs_init_inferior): Rename to ...
12069 (procfs_target::procfs_init_inferior): ... this and adjust.
12070 (procfs_target::create_inferior, procfs_notice_thread)
12071 (procfs_do_thread_registers): Adjust.
12072 * ppc-fbsd-tdep.c: Include "inferior.h".
12073 (ppcfbsd_get_thread_local_address): Pass down target.
12074 * proc-service.c (ps_xfer_memory): Switch current inferior and
12075 program space as well.
12076 (get_ps_regcache): Pass target down.
12077 * process-stratum-target.c
12078 (process_stratum_target::thread_address_space)
12079 (process_stratum_target::thread_architecture): Pass target down.
12080 * process-stratum-target.h
12081 (process_stratum_target::threads_executing): New field.
12082 (as_process_stratum_target): New.
12083 * ravenscar-thread.c
12084 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
12085 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
12086 down.
12087 * record-btrace.c (record_btrace_target::info_record): Adjust.
12088 (record_btrace_target::record_method)
12089 (record_btrace_target::record_is_replaying)
12090 (record_btrace_target::fetch_registers)
12091 (get_thread_current_frame_id, record_btrace_target::resume)
12092 (record_btrace_target::wait, record_btrace_target::stop): Pass
12093 target down.
12094 * record-full.c (record_full_wait_1): Switch to event thread.
12095 Pass target down.
12096 * regcache.c (regcache::regcache)
12097 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
12098 process_stratum_target parameter and handle it.
12099 (current_thread_target): New global.
12100 (get_thread_regcache): Add process_stratum_target parameter and
12101 handle it. Switch inferior before calling target method.
12102 (get_thread_regcache): Pass target down.
12103 (get_thread_regcache_for_ptid): Pass target down.
12104 (registers_changed_ptid): Add process_stratum_target parameter and
12105 handle it.
12106 (registers_changed_thread, registers_changed): Pass target down.
12107 (test_get_thread_arch_aspace_regcache): New.
12108 (current_regcache_test): Define a couple local test_target_ops
12109 instances and use them for testing.
12110 (readwrite_regcache): Pass process_stratum_target parameter.
12111 (cooked_read_test, cooked_write_test): Pass mock_target down.
12112 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
12113 (get_thread_arch_aspace_regcache): Add process_stratum_target
12114 parameter.
12115 (regcache::target): New method.
12116 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
12117 (regcache::registers_changed_ptid): Add process_stratum_target
12118 parameter.
12119 (regcache::m_target): New field.
12120 (registers_changed_ptid): Add process_stratum_target parameter.
12121 * remote.c (remote_state::supports_vCont_probed): New field.
12122 (remote_target::async_wait_fd): New method.
12123 (remote_unpush_and_throw): Add remote_target parameter.
12124 (get_current_remote_target): Adjust.
12125 (remote_target::remote_add_inferior): Push target.
12126 (remote_target::remote_add_thread)
12127 (remote_target::remote_notice_new_inferior)
12128 (get_remote_thread_info): Pass target down.
12129 (remote_target::update_thread_list): Skip threads of inferiors
12130 bound to other targets. (remote_target::close): Don't discard
12131 inferiors. (remote_target::add_current_inferior_and_thread)
12132 (remote_target::process_initial_stop_replies)
12133 (remote_target::start_remote)
12134 (remote_target::remote_serial_quit_handler): Pass down target.
12135 (remote_target::remote_unpush_target): New remote_target
12136 parameter. Unpush the target from all inferiors.
12137 (remote_target::remote_unpush_and_throw): New remote_target
12138 parameter. Pass it down.
12139 (remote_target::open_1): Check whether the current inferior has
12140 execution instead of checking whether any inferior is live. Pass
12141 target down.
12142 (remote_target::remote_detach_1): Pass down target. Use
12143 remote_unpush_target.
12144 (extended_remote_target::attach): Pass down target.
12145 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
12146 (remote_target::append_resumption): Pass down target.
12147 (remote_target::append_pending_thread_resumptions)
12148 (remote_target::remote_resume_with_hc, remote_target::resume)
12149 (remote_target::commit_resume): Pass down target.
12150 (remote_target::remote_stop_ns): Check supports_vCont_probed.
12151 (remote_target::interrupt_query)
12152 (remote_target::remove_new_fork_children)
12153 (remote_target::check_pending_events_prevent_wildcard_vcont)
12154 (remote_target::remote_parse_stop_reply)
12155 (remote_target::process_stop_reply): Pass down target.
12156 (first_remote_resumed_thread): New remote_target parameter. Pass
12157 it down.
12158 (remote_target::wait_as): Pass down target.
12159 (unpush_and_perror): New remote_target parameter. Pass it down.
12160 (remote_target::readchar, remote_target::remote_serial_write)
12161 (remote_target::getpkt_or_notif_sane_1)
12162 (remote_target::kill_new_fork_children, remote_target::kill): Pass
12163 down target.
12164 (remote_target::mourn_inferior): Pass down target. Use
12165 remote_unpush_target.
12166 (remote_target::core_of_thread)
12167 (remote_target::remote_btrace_maybe_reopen): Pass down target.
12168 (remote_target::pid_to_exec_file)
12169 (remote_target::thread_handle_to_thread_info): Pass down target.
12170 (remote_target::async_wait_fd): New.
12171 * riscv-fbsd-tdep.c: Include "inferior.h".
12172 (riscv_fbsd_get_thread_local_address): Pass down target.
12173 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
12174 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
12175 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
12176 Adjust.
12177 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
12178 * solib-svr4.c (enable_break): Pass down target.
12179 * spu-multiarch.c (parse_spufs_run): Pass down target.
12180 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
12181 * target-delegates.c: Regenerate.
12182 * target.c (g_target_stack): Delete.
12183 (current_top_target): Return the current inferior's top target.
12184 (target_has_execution_1): Refer to the passed-in inferior's top
12185 target.
12186 (target_supports_terminal_ours): Check whether the initial
12187 inferior was already created.
12188 (decref_target): New.
12189 (target_stack::push): Incref/decref the target.
12190 (push_target, push_target, unpush_target): Adjust.
12191 (target_stack::unpush): Defref target.
12192 (target_is_pushed): Return bool. Adjust to refer to the current
12193 inferior's target stack.
12194 (dispose_inferior): Delete, and inline parts ...
12195 (target_preopen): ... here. Only dispose of the current inferior.
12196 (target_detach): Hold strong target reference while detaching.
12197 Pass target down.
12198 (target_thread_name): Add assertion.
12199 (target_resume): Pass down target.
12200 (target_ops::beneath, find_target_at): Adjust to refer to the
12201 current inferior's target stack.
12202 (get_dummy_target): New.
12203 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
12204 has a thread running.
12205 (initialize_targets): Rename to ...
12206 (_initialize_target): ... this.
12207 * target.h: Include "gdbsupport/refcounted-object.h".
12208 (struct target_ops): Inherit refcounted_object.
12209 (target_ops::shortname, target_ops::longname): Make const.
12210 (target_ops::async_wait_fd): New method.
12211 (decref_target): Declare.
12212 (struct target_ops_ref_policy): New.
12213 (target_ops_ref): New typedef.
12214 (get_dummy_target): Declare function.
12215 (target_is_pushed): Return bool.
12216 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
12217 (all_matching_threads_iterator::all_matching_threads_iterator):
12218 Handle filter target.
12219 * thread-iter.h (struct all_matching_threads_iterator, struct
12220 all_matching_threads_range, class all_non_exited_threads_range):
12221 Filter by target too. Remove explicit.
12222 * thread.c (threads_executing): Delete.
12223 (inferior_thread): Pass down current inferior.
12224 (clear_thread_inferior_resources): Pass down thread pointer
12225 instead of ptid_t.
12226 (add_thread_silent, add_thread_with_info, add_thread): Add
12227 process_stratum_target parameter. Use it for thread and inferior
12228 searches.
12229 (is_current_thread): New.
12230 (thread_info::deletable): Use it.
12231 (find_thread_ptid, thread_count, in_thread_list)
12232 (thread_change_ptid, set_resumed, set_running): New
12233 process_stratum_target parameter. Pass it down.
12234 (set_executing): New process_stratum_target parameter. Pass it
12235 down. Adjust reference to 'threads_executing'.
12236 (threads_are_executing): New process_stratum_target parameter.
12237 Adjust reference to 'threads_executing'.
12238 (set_stop_requested, finish_thread_state): New
12239 process_stratum_target parameter. Pass it down.
12240 (switch_to_thread): Also match inferior.
12241 (switch_to_thread): New process_stratum_target parameter. Pass it
12242 down.
12243 (update_threads_executing): Reimplement.
12244 * top.c (quit_force): Pop targets from all inferior.
12245 (gdb_init): Don't call initialize_targets.
12246 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
12247 Declare.
12248 (windows_add_thread, windows_delete_thread): Adjust.
12249 (get_windows_debug_event): Rename to ...
12250 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
12251 * tracefile-tfile.c (tfile_target_open): Pass down target.
12252 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
12253 Forward declare.
12254 (switch_to_thread): Add process_stratum_target parameter.
12255 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
12256 parameter. Use it.
12257 (mi_on_resume): Pass target down.
12258 * nat/fork-inferior.c (startup_inferior): Add
12259 process_stratum_target parameter. Pass it down.
12260 * nat/fork-inferior.h (startup_inferior): Add
12261 process_stratum_target parameter.
12262 * python/py-threadevent.c (py_get_event_thread): Pass target down.
12263
12264 2020-01-10 Pedro Alves <palves@redhat.com>
12265
12266 * remote.c (remote_target::start_remote): Don't set inferior_ptid
12267 directly. Instead find the first thread in the thread list and
12268 use switch_to_thread.
12269
12270 2020-01-10 Pedro Alves <palves@redhat.com>
12271
12272 * remote.c (remote_target::remote_add_inferior): Don't bind a
12273 process to the current inferior if the current inferior is already
12274 bound to a process.
12275
12276 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12277 Pedro Alves <palves@redhat.com>
12278
12279 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
12280 If no process is specified, return null_ptid instead of
12281 inferior_ptid.
12282 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
12283 TARGET_WAITKIND_SIGNALLED with no pid.
12284
12285 2020-01-10 Pedro Alves <palves@redhat.com>
12286
12287 * remote.c (first_remote_resumed_thread): New.
12288 (remote_target::wait_as): Use it as default event_ptid instead of
12289 inferior_ptid.
12290
12291 2020-01-10 Pedro Alves <palves@redhat.com>
12292
12293 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
12294
12295 2020-01-10 Pedro Alves <palves@redhat.com>
12296
12297 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
12298 not -1.
12299
12300 2020-01-10 Pedro Alves <palves@redhat.com>
12301
12302 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
12303 ptid to get_last_target_status.
12304 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
12305 ptid to get_last_target_status.
12306 * infcmd.c (continue_command): Don't pass a target_waitstatus to
12307 get_last_target_status.
12308 (info_program_command): Don't pass a target_waitstatus to
12309 get_last_target_status.
12310 * infrun.c (init_wait_for_inferior): Use
12311 nullify_last_target_wait_ptid.
12312 (get_last_target_status): Handle nullptr arguments.
12313 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
12314 (print_stop_event): Don't pass a ptid to get_last_target_status.
12315 (normal_stop): Don't pass a ptid to get_last_target_status.
12316 * infrun.h (get_last_target_status, set_last_target_status): Move
12317 comments here and update.
12318 (nullify_last_target_wait_ptid): Declare.
12319 * linux-fork.c (fork_load_infrun_state): Remove local extern
12320 declaration of nullify_last_target_wait_ptid.
12321 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
12322 to get_last_target_status.
12323
12324 2020-01-10 Pedro Alves <palves@redhat.com>
12325
12326 * gdbthread.h (scoped_restore_current_thread)
12327 <dont_restore, restore, m_dont_restore>: Declare.
12328 * thread.c (thread_alive): Add assertion. Return bool.
12329 (switch_to_thread_if_alive): New.
12330 (prune_threads): Switch inferior/thread.
12331 (print_thread_info_1): Switch thread before calling target methods.
12332 (scoped_restore_current_thread::restore): New, factored out from
12333 ...
12334 (scoped_restore_current_thread::~scoped_restore_current_thread):
12335 ... this.
12336 (scoped_restore_current_thread::scoped_restore_current_thread):
12337 Add assertion.
12338 (thread_apply_all_command, thread_select): Use
12339 switch_to_thread_if_alive.
12340 * infrun.c (proceed, restart_threads, handle_signal_stop)
12341 (switch_back_to_stepped_thread): Switch current thread before
12342 calling target methods.
12343
12344 2020-01-10 Pedro Alves <palves@redhat.com>
12345
12346 * inferior.c (switch_to_inferior_no_thread): New function,
12347 factored out from ...
12348 (inferior_command): ... here.
12349 * inferior.h (switch_to_inferior_no_thread): Declare.
12350 * mi/mi-main.c (run_one_inferior): Use
12351 switch_to_inferior_no_thread.
12352
12353 2020-01-10 Pedro Alves <palves@redhat.com>
12354
12355 * infcmd.c (kill_command): Remove dead code.
12356
12357 2020-01-10 Pedro Alves <palves@redhat.com>
12358
12359 * remote.c (remote_target::mourn_inferior): No longer check
12360 whether the target is running.
12361
12362 2020-01-10 Pedro Alves <palves@redhat.com>
12363
12364 * corelow.c (core_target::has_execution): Change parameter type to
12365 inferior pointer.
12366 * inferior.c (number_of_live_inferiors): Use
12367 inferior::has_execution instead of target_has_execution_1.
12368 * inferior.h (inferior::has_execution): New.
12369 * linux-thread-db.c (thread_db_target::update_thread_list): Use
12370 inferior::has_execution instead of target_has_execution_1.
12371 * process-stratum-target.c
12372 (process_stratum_target::has_execution): Change parameter type to
12373 inferior pointer. Check the inferior's PID instead of
12374 inferior_ptid.
12375 * process-stratum-target.h
12376 (process_stratum_target::has_execution): Change parameter type to
12377 inferior pointer.
12378 * record-full.c (record_full_core_target::has_execution): Change
12379 parameter type to inferior pointer.
12380 * target.c (target_has_execution_1): Change parameter type to
12381 inferior pointer.
12382 (target_has_execution_current): Adjust.
12383 * target.h (target_ops::has_execution): Change parameter type to
12384 inferior pointer.
12385 (target_has_execution_1): Change parameter type to inferior
12386 pointer. Change return type to bool.
12387 * tracefile.h (tracefile_target::has_execution): Change parameter
12388 type to inferior pointer.
12389
12390 2020-01-10 Pedro Alves <palves@redhat.com>
12391
12392 * exceptions.c (print_flush): Remove current_top_target() check.
12393
12394 2020-01-10 Pedro Alves <palves@redhat.com>
12395
12396 * remote.c (show_remote_exec_file): Show the current inferior's
12397 exec-file instead of the command variable's value.
12398
12399 2020-01-10 Pedro Alves <palves@redhat.com>
12400
12401 * record-full.c (record_full_resume_ptid): New global.
12402 (record_full_target::resume): Set it.
12403 (record_full_wait_1): Use record_full_resume_ptid instead of
12404 inferior_ptid.
12405
12406 2020-01-10 Pedro Alves <palves@redhat.com>
12407
12408 * gdbthread.h (scoped_restore_current_thread)
12409 <dont_restore, restore, m_dont_restore>: Declare.
12410 * thread.c (thread_alive): Add assertion. Return bool.
12411 (switch_to_thread_if_alive): New.
12412 (prune_threads): Switch inferior/thread.
12413 (print_thread_info_1): Switch thread before calling target methods.
12414 (scoped_restore_current_thread::restore): New, factored out from
12415 ...
12416 (scoped_restore_current_thread::~scoped_restore_current_thread):
12417 ... this.
12418 (scoped_restore_current_thread::scoped_restore_current_thread):
12419 Add assertion.
12420 (thread_apply_all_command, thread_select): Use
12421 switch_to_thread_if_alive.
12422
12423 2020-01-10 George Barrett <bob@bob131.so>
12424
12425 * stap-probe.c (stap_modify_semaphore): Don't check for null
12426 semaphores.
12427 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12428 for null semaphores.
12429
12430 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12431
12432 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12433 all source windows, and maintain horizontal scroll status while
12434 doing so.
12435
12436 2020-01-09 Tom Tromey <tom@tromey.com>
12437
12438 PR tui/18932:
12439 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12440 update_source_window, not print_source_lines.
12441
12442 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12443
12444 * tui/tui.c (tui_enable): Register tui hooks after calling
12445 tui_display_main.
12446
12447 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12448
12449 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12450
12451 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
12452
12453 * thread.c (print_thread_info_1): Fix indentation.
12454
12455 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12456
12457 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12458 unique_xmalloc_ptr outside the if to always free the demangled name.
12459
12460 2020-01-08 Tom Tromey <tromey@adacore.com>
12461
12462 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12463 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12464 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12465 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12466 Remove.
12467 (section_offsets): New typedef.
12468 * symtab.c (fixup_section, get_msymbol_address): Update.
12469 * symmisc.c (dump_msymbols): Update.
12470 * symfile.h (relative_addr_info_to_section_offsets)
12471 (symfile_map_offsets_to_segments): Update.
12472 * symfile.c (build_section_addr_info_from_objfile)
12473 (init_objfile_sect_indices): Update.
12474 (struct place_section_arg): Change type of "offsets".
12475 (place_section): Update.
12476 (relative_addr_info_to_section_offsets): Change type of
12477 "section_offsets". Remove "num_sections" parameter.
12478 (default_symfile_offsets, syms_from_objfile_1)
12479 (set_objfile_default_section_offset): Update.
12480 (reread_symbols): No need to preserve section offsets by hand.
12481 (symfile_map_offsets_to_segments): Change type of "offsets".
12482 * stap-probe.c (relocate_address): Update.
12483 * stabsread.h (process_one_symbol): Update.
12484 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12485 (solib_target_relocate_section_addresses): Update.
12486 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12487 Update.
12488 * solib-frv.c (frv_relocate_main_executable): Update.
12489 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12490 * solib-aix.c (solib_aix_get_section_offsets): Change return
12491 type.
12492 (solib_aix_solib_create_inferior_hook): Update.
12493 * remote.c (remote_target::get_offsets): Update.
12494 * psymtab.c (find_pc_sect_psymtab): Update.
12495 * psympriv.h (struct partial_symbol) <address, text_low,
12496 text_high>: Update.
12497 * objfiles.h (obj_section_offset): Update.
12498 (struct objfile) <section_offsets>: Change type.
12499 <num_sections>: Remove.
12500 (objfile_relocate): Update.
12501 * objfiles.c (entry_point_address_query): Update
12502 (relocate_one_symbol): Change type of "section_offsets".
12503 (objfile_relocate1, objfile_relocate1): Change type of
12504 "new_offsets".
12505 (objfile_rebase1): Update.
12506 * mipsread.c (mipscoff_symfile_read): Update.
12507 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12508 parameter.
12509 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12510 (parse_external, psymtab_to_symtab_1): Update.
12511 * machoread.c (macho_symfile_offsets): Update.
12512 * ia64-tdep.c (ia64_find_unwind_table): Update.
12513 * hppa-tdep.c (read_unwind_info): Update.
12514 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12515 * dwarf2read.c (create_addrmap_from_index)
12516 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12517 (process_psymtab_comp_unit_reader, add_partial_symbol)
12518 (add_partial_subprogram, process_full_comp_unit)
12519 (read_file_scope, read_func_scope, read_lexical_block_scope)
12520 (read_call_site_scope, dwarf2_rnglists_process)
12521 (dwarf2_ranges_process, dwarf2_ranges_read)
12522 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12523 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12524 Update.
12525 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12526 Update.
12527 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12528 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12529 (process_one_symbol): Change type of "section_offsets".
12530 * ctfread.c (get_objfile_text_range): Update.
12531 * coffread.c (coff_symtab_read, enter_linenos)
12532 (process_coff_symbol): Update.
12533 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12534 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12535
12536 2020-01-08 Tom Tromey <tromey@adacore.com>
12537
12538 * dwarf2read.c (parse_macro_definition): Use std::string.
12539 (parse_macro_definition): Likewise.
12540
12541 2020-01-08 Tom Tromey <tromey@adacore.com>
12542
12543 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12544 (ATTR_ALLOC_CHUNK): Remove.
12545
12546 2020-01-08 Tom Tromey <tromey@adacore.com>
12547
12548 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12549
12550 2020-01-08 Tom Tromey <tromey@adacore.com>
12551
12552 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12553 (dwarf2_compute_name, open_dwo_file): Likewise.
12554 (process_enumeration_scope): Use std::vector.
12555 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12556 (partial_die_info::fixup, dwarf2_start_subfile)
12557 (guess_full_die_structure_name, dwarf2_name): Likewise.
12558 (determine_prefix): Update.
12559 (guess_full_die_structure_name): Make return type const.
12560 (partial_die_full_name): Return unique_xmalloc_ptr.
12561 (DW_FIELD_ALLOC_CHUNK): Remove.
12562
12563 2020-01-07 Tom Tromey <tromey@adacore.com>
12564
12565 PR build/24937:
12566 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12567
12568 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12569
12570 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12571
12572 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12573
12574 * stack.c (print_frame_info): Move disassemble_next_line code
12575 inside source_print block.
12576
12577 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12578
12579 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12580 gdb/signals.h, as we are now using native signal symbols.
12581
12582 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12583
12584 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12585 overflow by an early check of content vs threshold.
12586 * tui/tui-source.c (tui_source_window::line_is_displayed):
12587 Likewise.
12588
12589 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12590
12591 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12592
12593 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12594
12595 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12596 export table if no section contains it's RVA.
12597
12598 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12599
12600 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12601
12602 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
12603
12604 * source.c (print_source_lines_base): Set last_line_listed.
12605
12606 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12607
12608 * tui/tui-disasm.c: Remove trailing spaces.
12609
12610 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12611 Pedro Alves <palves@redhat.com>
12612
12613 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12614 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12615 (windows_gdb_signal_to_target): New function, uses the above
12616 enumeration to convert GDB internal signal codes to equivalent
12617 Windows codes.
12618 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12619 * windows-nat.c: Include "gdb_wait.h".
12620 (get_windows_debug_event): Extract the fatal exception from the
12621 exit status and convert to the equivalent Posix signal number.
12622 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12623 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12624 * gdbsupport/gdb_wait.c: New file, implements
12625 windows_status_to_termsig.
12626 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12627 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12628
12629 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12630
12631 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12632 show_layout.
12633
12634 2020-01-05 Luis Machado <luis.machado@linaro.org>
12635
12636 * aarch64-linux-nat.c
12637 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12638 and bfd_mach_aarch64.
12639
12640 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12641
12642 * ui-file.c (stdio_file::can_emit_style_escape)
12643 (tee_file::can_emit_style_escape): Ensure style is used also on
12644 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12645 to gdb_stdout.
12646 * main.c (set_gdb_data_directory): Use file style to output the
12647 warning that the given pathname is not a directory.
12648 * top.c (show_history_filename, gdb_safe_append_history)
12649 (show_gdb_datadir): Use file style.
12650
12651 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12652
12653 * solib-target.c (struct lm_info_target):
12654 Change offsets to be a unique_xmalloc_ptr.
12655 (solib_target_relocate_section_addresses): Update.
12656
12657 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12658
12659 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12660
12661 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12662
12663 * MAINTAINERS (Write After Approval): Add myself.
12664
12665 2020-01-02 Luis Machado <luis.machado@linaro.org>
12666
12667 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12668 Cell BE architecture.
12669 * target.h (struct target_ops) <thread_architecture>: Likewise.
12670
12671 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12672
12673 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12674
12675 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12676
12677 * MAINTAINERS (Write After Approval): Add myself.
12678
12679 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12680
12681 * gdbarch.sh: Update copyright year range of generated files.
12682
12683 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12684
12685 Update copyright year range in all GDB files.
12686
12687 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12688
12689 * copyright.py: Convert to Python 3.
12690
12691 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12692
12693 * copyright.py: Adapt after move of gnulib directory from gdb
12694 directory to toplevel directory.
12695
12696 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12697
12698 * copyright.py (main): Exit if run from the wrong directory.
12699
12700 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12701
12702 * top.c (print_gdb_version): Change copyright year to 2020.
12703
12704 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12705
12706 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
12707
12708 For older changes see ChangeLog-2019.
12709 \f
12710 Local Variables:
12711 mode: change-log
12712 left-margin: 8
12713 fill-column: 74
12714 version-control: never
12715 coding: utf-8
12716 End: