Do not auto-dereference null pointers in Ada MI varobj
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-09-02 Tom Tromey <tromey@adacore.com>
2
3 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4 for null pointers.
5 (ada_varobj_adjust_for_child_access): Special-case null pointers.
6
7 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
8
9 * bcache.h (struct bcache) <insert>: Change type of `added` to
10 pointer to bool.
11 * bcache.c (bcache::insert): Likewise.
12 * gdbtypes.c (check_types_worklist): Adjust.
13 * psymtab.c (add_psymbol_to_bcache): Adjust.
14
15 2020-08-31 Kevin Buettner <kevinb@redhat.com>
16
17 * corelow.c (unordered_set): Include.
18 (class core_target): Add field 'm_core_unavailable_mappings'.
19 (core_target::build_file_mappings): Print only one warning
20 per inaccessible file. Add unavailable/broken mappings
21 to m_core_unavailable_mappings.
22 (core_target::xfer_partial): Call...
23 (core_target::xfer_memory_via_mappings): New method.
24
25 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
26
27 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
28 type to bool.
29
30 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
31
32 * dwarf2/read.c (struct field_info): Fix indentation.
33
34 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
35
36 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
37 ordering in comment.
38 * frame.c (frame_id_eq): Fix indentation.
39
40 2020-08-31 Scott Linder <scott@scottlinder.com>
41 Simon Marchi <simon.marchi@efficios.com>
42
43 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
44 inline frame ids in outer frame.
45
46 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
47
48 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
49 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
50 (outer_frame_id): Use FID_STACK_OUTER instead of
51 FID_STACK_INVALID.
52 (frame_id_p): Don't check for outer_frame_id.
53
54 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
55
56 * frame-unwind.c (frame_unwind_got_optimized): Don't set
57 regnum/frame in value. Call allocate_value_lazy.
58 * frame.c (frame_unwind_register_value): Use
59 val_print_not_saved.
60
61 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
62
63 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
64
65 2020-08-29 Pedro Alves <pedro@palves.net>
66
67 * progspace.c (print_program_space): Use all_inferiors. Switch to
68 the inferior before calling target_pid_to_str.
69
70 2020-08-28 Tom Tromey <tom@tromey.com>
71
72 * xcoffread.c (xcoff_end_psymtab): Update comment.
73 * dbxread.c (dbx_end_psymtab): Update comment.
74
75 2020-08-28 Tom de Vries <tdevries@suse.de>
76
77 PR breakpoint/26544
78 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
79 event_location.
80 (create_breakpoint): Same.
81 (base_breakpoint_decode_location): Same.
82 (bkpt_create_sals_from_location): Same.
83 (bkpt_decode_location): Same.
84 (bkpt_probe_create_sals_from_location): Same.
85 (bkpt_probe_decode_location): Same.
86 (tracepoint_create_sals_from_location): Same.
87 (tracepoint_decode_location): Same.
88 (tracepoint_probe_decode_location): Same.
89 (strace_marker_create_sals_from_location): Same.
90 (strace_marker_decode_location): Same.
91 (create_sals_from_location_default): Same.
92 (decode_location_default): Same.
93 * breakpoint.h (struct breakpoint_ops): Same.
94 (create_breakpoint): Same.
95 * linespec.h (decode_line_full): Same.
96 * linespec.c (decode_line_full): Same. Throw error if
97 result.size () == 0.
98
99 2020-08-27 Pedro Alves <pedro@palves.net>
100
101 PR gdb/26524
102 * breakpoint.c (until_break_fsm) <location_breakpoint,
103 caller_breakpoint>: Delete fields.
104 <breakpoints>: New field.
105 <until_break_fsm>: Adjust to save a breakpoint vector instead of
106 two individual breakpoints.
107 (until_break_fsm::should_stop): Loop over breakpoints in the
108 breakpoint vector.
109 (until_break_fsm::clean_up): Adjust to clear the breakpoints
110 vector.
111 (until_break_command): Handle location expanding into multiple
112 sals.
113
114 2020-08-27 Pedro Alves <pedro@palves.net>
115
116 PR gdb/26523
117 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
118 bp_until breakpoints user-specified locations. Update intro
119 comment.
120
121 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
122
123 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
124 gdb_bfd_sections): New.
125 * maint.c (print_bfd_section_info): Change param type to
126 maint_print_section_data.
127 (print_objfile_section_info): Likewise.
128 (print_bfd_section_info_maybe_relocated): Likewise.
129 (maintenance_info_sections): Use gdb_bfd_sections.
130
131 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
132
133 * MAINTAINERS: Add ARC target and maintainer.
134
135 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
136
137 * configure.tgt: ARC support for GNU/Linux.
138 * Makefile.in (ALL_TARGET_OBJS): Likewise.
139 * arc-linux-tdep.c: New file.
140 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
141 * arc-tdep.c (arc_write_pc): Use it.
142
143 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
144
145 * arc-tdep.c (arc_check_for_hardware_loop): New.
146 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
147
148 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
149
150 * arc-tdep.h: Include "gdbarch.h".
151
152 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
153
154 * arch/arc.h
155 (arc_gdbarch_features): New class to stir the selection of target XML.
156 (arc_create_target_description): Use FEATURES to choose XML target.
157 (arc_lookup_target_description): Use arc_create_target_description
158 to create _new_ target descriptions or return the already created
159 ones if the FEATURES is the same.
160 * arch/arc.c: Implementation of prototypes described above.
161 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
162 (arc_gdbarch_features_init): Initialize the FEATURES struct.
163 * arc-tdep.c (*_feature_name): Make feature names consistent.
164 (arc_register_feature): A new struct to hold information about
165 registers of a particular target/feature.
166 (arc_check_tdesc_feature): Check if XML provides registers in
167 compliance with ARC_REGISTER_FEATURE structs.
168 (arc_update_acc_reg_names): Add aliases for r58 and r59.
169 (determine_*_reg_feature_set): Which feature name to look for.
170 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
171 (mach_type_to_arc_isa): Convert from a set of binutils machine types
172 to expected ISA enums to be used in arc_gdbarch_features structs.
173 * features/Makefile (FEATURE_XMLFILES): Add new files.
174 * gdb/features/arc/v1-aux.c: New file.
175 * gdb/features/arc/v1-aux.xml: Likewise.
176 * gdb/features/arc/v1-core.c: Likewise.
177 * gdb/features/arc/v1-core.xml: Likewise.
178 * gdb/features/arc/v2-aux.c: Likewise.
179 * gdb/features/arc/v2-aux.xml: Likewise.
180 * gdb/features/arc/v2-core.c: Likewise.
181 * gdb/features/arc/v2-core.xml: Likewise.
182 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
183
184 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
185 Andrew Burgess <andrew.burgess@embecosm.com>
186
187 PR m2/26372
188 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
189 an assert. Remove single element array indexing pattern as the
190 MULTI_SUBSCRIPT support will handle this case too.
191
192 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
193
194 * value.h (valprint_check_validity): Move declaration from
195 here...
196 * valprint.h (valprint_check_validity): ... to here.
197
198 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
199
200 * debug.h: New file.
201 * debug.c (debug_prefixed_vprintf): New function.
202 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
203 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
204
205 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
206
207 * infrun.h (infrun_debug_printf_1): New function declaration.
208 (infrun_debug_printf): New macro.
209 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
210 throughout.
211 (infrun_debug_printf): New function.
212 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
213 (handle_jit_event): Likewise.
214
215 2020-08-21 Mark Wielaard <mark@klomp.org>
216
217 * ada-lex.l: Extend register warnings diagnostics comment for g++.
218
219 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
220
221 * frame.c (enum class frame_id_status): New.
222 (struct frame_info) <this_id::p>: Change type to frame_id_status.
223 (fprintf_frame): Update.
224 (compute_frame_id): Set frame id status to "computing" on entry.
225 Set it back to "not_computed" on failure and to "computed" on
226 success.
227 (get_frame_id): Assert the frame id is not being computed.
228 (create_sentinel_frame): Use frame_id_status::COMPUTED.
229 (create_new_frame): Likewise.
230 (frame_cleanup_after_sniffer): Update assert.
231
232 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
233
234 * regcache.c (pid_ptid_regcache_map): New type.
235 (target_ptid_regcache_map): Remove.
236 (target_pid_ptid_regcache_map): New type.
237 (regcaches): Change type to target_pid_ptid_regcache_map.
238 (get_thread_arch_aspace_regcache): Update.
239 (regcache_thread_ptid_changed): Update, handle pid-like ptid
240 case.
241 (regcaches_size): Update.
242 (regcache_count): Update.
243 (registers_changed_ptid_target_pid_test): New.
244 (_initialize_regcache): Register new test.
245
246 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
247
248 * regcache.c (regcache_count): New.
249 (struct regcache_test_data): New.
250 (regcache_test_data_up): New.
251 (populate_regcaches_for_test): New.
252 (regcaches_test): Remove.
253 (get_thread_arch_aspace_regcache_test): New.
254 (registers_changed_ptid_all_test): New.
255 (registers_changed_ptid_target_test): New.
256 (registers_changed_ptid_target_ptid_test): New.
257 (regcache_thread_ptid_changed): Remove regcache_count lambda.
258 (_initialize_regcache): Register new tests.
259
260 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
261
262 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
263 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
264 gdbarch and aspace parameter. Use current inferior's aspace.
265 Validate regcache's arch value.
266 (regcaches_test): Update.
267
268 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
269
270 * regcache.c (regcaches_test): Call registers_changed.
271
272 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
273
274 * infrun.c (process_event_stop_test): Fix typo "breapoint".
275
276 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
277
278 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
279 to find the end of prologue for flang compiled binaries.
280 * arm-tdep.c (arm_skip_prologue): Likewise.
281 * i386-tdep.c (i386_skip_prologue): Likewise.
282 * producer.c (producer_is_llvm): New function.
283 (producer_parsing_tests): Added new tests for clang/flang.
284 * producer.h (producer_is_llvm): New declaration.
285
286 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
287
288 * linux-nat.c (linux_nat_debug_printf): New function.
289 (linux_nat_debug_printf_1): New macro. Use throughout the file.
290
291 2020-08-18 Aaron Merey <amerey@redhat.com>
292
293 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
294 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
295 (CLIBS): Add DEBUGINFOD_LIBS.
296
297 2020-08-17 Sergei Trofimovich <siarheit@google.com>
298
299 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
300 'gdbarch_num_regs'.
301
302 2020-08-17 Tom Tromey <tromey@adacore.com>
303
304 * ada-varobj.c (ada_varobj_decode_var): Handle case where
305 ada_get_decoded_value returns NULL.
306
307 2020-08-17 Tom Tromey <tromey@adacore.com>
308
309 * python/py-inferior.c (infpy_search_memory): Use
310 gdb_py_object_from_ulongest.
311 * python/py-infevents.c (create_inferior_call_event_object)
312 (create_memory_changed_event_object): Use
313 gdb_py_object_from_ulongest.
314 * python/py-linetable.c (ltpy_entry_get_pc): Use
315 gdb_py_object_from_ulongest.
316
317 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
318
319 * loc.c (class symbol_needs_eval_context): Fix indentation.
320
321 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
322
323 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
324 bool.
325
326 2020-08-17 Tom de Vries <tdevries@suse.de>
327
328 PR gdb/26393
329 * gdbtypes.c (dump_dynamic_prop): New function.
330 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
331
332 2020-08-15 Tom de Vries <tdevries@suse.de>
333
334 PR backtrace/26390
335 * stack.c (print_frame_args): Temporarily set the selected
336 frame to FRAME while printing the frame's arguments.
337
338 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
339
340 PR breakpoints/26385
341 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
342 Always clear watchpoint with PTRACE_SET_DEBUGREG.
343
344 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
345
346 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
347 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
348 and >= to check return value instead of == -1 and != -1.
349
350 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
351
352 * utils.h (class gdb_argv) <as_array_view>: New method.
353 * utils.c (gdb_argv_as_array_view_test): New.
354 (_initialize_utils): Register selftest.
355 * maint.c (maintenance_selftest): Use the new method.
356
357 2020-08-13 Kamil Rytarowski <n54@gmx.com>
358
359 * target.h (supports_dumpcore, dumpcore): New
360 function declarations.
361 * target.c (supports_dumpcore, dumpcore): New
362 functions.
363 * target-delegates.c: Rebuild.
364 * gcore.c (gcore_command): Use target_supports_dumpcore ()
365 and target_dumpcore ().
366
367 2020-08-13 Aaron Merey <amerey@redhat.com>
368
369 * debuginfod-support.c: Replace global variables with user_data.
370
371 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
372
373 * maint.c (maintenance_selftest): Split args and pass array_view
374 to run_tests.
375
376 2020-08-12 Luis Machado <luis.machado@linaro.org>
377
378 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
379 type's length.
380 Use %s and pulongest to print the length.
381
382 2020-08-12 Pedro Alves <palves@redhat.com>
383
384 * NEWS: Move "Multi-target debugging support" item to the
385 "Changes since GDB 9" section.
386
387 2020-08-12 Pedro Alves <palves@redhat.com>
388
389 PR gdb/26336
390 * progspace.c (program_space::remove_objfile): Invalidate the
391 frame cache.
392
393 2020-08-11 Tom de Vries <tdevries@suse.de>
394
395 * MAINTAINERS: Mark ms1 as deleted.
396
397 2020-08-10 Luis Machado <luis.machado@linaro.org>
398
399 PR gdb/26310
400
401 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
402 act accordingly.
403 (aarch64_analyze_prologue_test): Add more unit tests to exercise
404 movz/str/stur/stp skipping behavior.
405
406 2020-08-10 Luis Machado <luis.machado@linaro.org>
407
408 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
409 struct user_sve_header instead of struct sve_context.
410
411 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
412
413 * read.h (dwarf2_fetch_die_loc_sect_off,
414 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
415 `void *` parameter with function_view.
416 * read.c (dwarf2_fetch_die_loc_sect_off,
417 dwarf2_fetch_die_loc_cu_off): Likewise.
418 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
419 (per_cu_dwarf_call): Adjust.
420 (get_frame_address_in_block_wrapper): Remove.
421 (indirect_synthetic_pointer): Adjust.
422 (get_ax_pc): Remove.
423 (dwarf2_compile_expr_to_ax): Adjust.
424
425 2020-08-08 Tom de Vries <tdevries@suse.de>
426
427 PR build/26344
428 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
429 constructor.
430 * regcache.c (get_thread_arch_aspace_regcache): Same.
431
432 2020-08-07 Tom Tromey <tromey@adacore.com>
433
434 * ravenscar-thread.c
435 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
436 New method.
437 (ravenscar_thread_target::wait): Check
438 runtime_initialized.
439 (ravenscar_thread_target::prepare_to_store)
440 (ravenscar_thread_target::stopped_by_sw_breakpoint)
441 (ravenscar_thread_target::stopped_by_hw_breakpoint)
442 (ravenscar_thread_target::stopped_by_watchpoint)
443 (ravenscar_thread_target::stopped_data_address)
444 (ravenscar_thread_target::core_of_thread): Use
445 scoped_restore_current_thread and
446 set_base_thread_from_ravenscar_task.
447
448 2020-08-07 Tom Tromey <tromey@adacore.com>
449
450 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
451
452 2020-08-07 Tom Tromey <tromey@adacore.com>
453
454 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
455 update_inferior_ptid before update_thread_list.
456 (temporarily_change_regcache_ptid): New class.
457 (ravenscar_thread_target::fetch_registers)
458 (ravenscar_thread_target::store_registers)
459 (ravenscar_thread_target::prepare_to_store): Use base thread when
460 forwarding operation.
461
462 2020-08-07 Tom Tromey <tromey@adacore.com>
463
464 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
465 "is_pid" case.
466
467 2020-08-07 Tom Tromey <tromey@adacore.com>
468
469 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
470 New methods.
471 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
472 first.
473 (ravenscar_thread_target::add_thread): Rename from
474 ravenscar_add_thread.
475 (ravenscar_thread_target::update_thread_list): Use a lambda.
476 (ravenscar_thread_target::xfer_partial): New method.
477
478 2020-08-07 Tom Tromey <tromey@adacore.com>
479
480 * ada-lang.h (ada_task_list_iterator_ftype): Now a
481 gdb::function_view.
482 (iterate_over_live_ada_tasks): Change type of argument.
483 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
484 of argument.
485
486 2020-08-07 Tom Tromey <tromey@adacore.com>
487
488 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
489 Remove.
490 (ravenscar_thread_target::extra_thread_info): Remove.
491 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
492 defer to target beneath for non-Ravenscar threads.
493
494 2020-08-07 Tom Tromey <tromey@adacore.com>
495
496 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
497 get_base_thread_from_ravenscar_task>: Now methods.
498 <m_cpu_map>: New member.
499 (ravenscar_thread_target::get_thread_base_cpu): Rename from
500 ravenscar_get_thread_base_cpu. Check m_cpu_map.
501 (ravenscar_thread_target::task_is_currently_active): Update.
502 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
503 Now a method.
504 (ravenscar_thread_target::add_active_thread): Put initial thread
505 into the m_cpu_map.
506
507 2020-08-07 Tom Tromey <tromey@adacore.com>
508
509 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
510 event_ptid.
511
512 2020-08-07 Tom Tromey <tromey@adacore.com>
513
514 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
515 runtime_initialized.
516
517 2020-08-07 Tom Tromey <tromey@adacore.com>
518
519 * ravenscar-thread.c (ravenscar_thread_target): Don't call
520 add_active_thread.
521 (ravenscar_thread_target::add_active_thread): Now public.
522 (ravenscar_inferior_created): Call add_active_thread after pushing
523 the target.
524
525 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
526
527 * regcache.c (ptid_regcache_map): New type.
528 (target_ptid_regcache_map): New type.
529 (regcaches): Change type to target_ptid_regcache_map.
530 (get_thread_arch_aspace_regcache): Update to regcaches' new
531 type.
532 (regcache_thread_ptid_changed): Likewise.
533 (registers_changed_ptid): Likewise.
534 (regcaches_size): Likewise.
535 (regcaches_test): Update.
536 (regcache_thread_ptid_changed): Update.
537 * regcache.h (regcache_up): New type.
538 * gdbsupport/ptid.h (hash_ptid): New struct.
539
540 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
541
542 * observable.h (thread_ptid_changed): Add parameter
543 `process_stratum_target *`.
544 * infrun.c (infrun_thread_ptid_changed): Add parameter
545 `process_stratum_target *` and use it.
546 (selftests): New namespace.
547 (infrun_thread_ptid_changed): New function.
548 (_initialize_infrun): Register selftest.
549 * regcache.c (regcache_thread_ptid_changed): Add parameter
550 `process_stratum_target *` and use it.
551 (regcache_thread_ptid_changed): New function.
552 (_initialize_regcache): Register selftest.
553 * thread.c (thread_change_ptid): Pass target to
554 thread_ptid_changed observable.
555
556 2020-08-06 Caroline Tice <cmtice@google.com>
557
558 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
559 (struct dwp_sections): Update field comments. Add loclists and
560 rnglists fields.
561 (struct virtual_v2_dwo_sections): Rename struct to
562 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
563 size & offset fields for loclists and rnglists.
564 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
565 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
566 skipping dummy type units.
567 (create_dwp_hash_table): Update the large comment above the function to
568 discuss Version 5 DWP files as well, with references. Update all the
569 version checks in the function to check for version 5 as well. Add new
570 section at the end to create dwp hash table for version 5.
571 (create_dwp_v2_section): Rename function to
572 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
573 Add V5 to error message text.
574 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
575 into calls to create_dwp_v2_or_v5_section.
576 (create_dwo_unit_in_dwp_v5): New function.
577 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
578 check for version2; add else clause to handle version 5.
579 (open_and_init_dwo_file): Add code to check dwarf version & only call
580 create_debug_types_hash_table (with sections.types) if version is not 5;
581 else call create_debug_type_hash_table, with sections.info.
582 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
583 version 5.
584 (dwarf2_locate_v5_dwp_sections): New function.
585 (open_and_init_dwp_file): Add else-if clause for version 5 to call
586 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
587
588 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
589
590 * regcache.h (class regcache): Remove friend
591 registers_changed_ptid.
592 <regcache_thread_ptid_changed>: Remove.
593 <regcaches>: Remove.
594 * regcache.c (regcache::regcaches): Rename to...
595 (regcaches): ... this. Make static.
596 (get_thread_arch_aspace_regcache): Update.
597 (regcache::regcache_thread_ptid_changed): Rename to...
598 (regcache_thread_ptid_changed): ... this. Update.
599 (class regcache_access): Remove.
600 (regcaches_test): Update.
601 (_initialize_regcache): Update.
602 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
603 <forward_list>.
604
605 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
606
607 * regcache.h (class regcache) <current_regcache>: Rename to...
608 <regcaches>: ... this. Move doc here.
609 * regcache.c (regcache::current_regcache) Rename to...
610 (regcache::regcaches): ... this. Move doc to header.
611 (get_thread_arch_aspace_regcache): Update.
612 (regcache::regcache_thread_ptid_changed): Update.
613 (registers_changed_ptid): Update.
614 (class regcache_access) <current_regcache_size>: Rename to...
615 <regcaches_size>: ... this.
616 (current_regcache_test): Rename to...
617 (regcaches_test): ... this.
618 (_initialize_regcache): Update.
619
620 2020-08-06 Victor Collod <vcollod@nvidia.com>
621
622 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
623
624 2020-08-05 Kevin Buettner <kevinb@redhat.com>
625
626 * corelow.c (core_target::build_file_mappings): Don't output
627 null pathname in warning.
628
629 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
630
631 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
632 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
633 gdb.dwarf2/dw2-single-line-discriminators.exp,
634 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
635
636 2020-08-05 Tom Tromey <tromey@adacore.com>
637
638 PR rust/26197:
639 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
640 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
641 Fix off-by-one and type size errors in ordinary case.
642
643 2020-08-05 Tom de Vries <tdevries@suse.de>
644
645 * gdbtypes.c (type_not_allocated, type_not_associated): Use
646 "prop->const_val () == 0" instead of "prop->const_val () != 0".
647
648 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
649
650 * frame.h (frame_id_p): Return bool.
651 (frame_id_artificial_p): Return bool.
652 (frame_id_eq): Return bool.
653 (has_stack_frames): Return bool.
654 (get_selected_frame): Fix typo in comment.
655 (get_frame_pc_if_available): Return bool.
656 (get_frame_address_in_block_if_available): Return bool.
657 (get_frame_func_if_available): Return bool.
658 (read_frame_register_unsigned): Return bool.
659 (get_frame_register_bytes): Return bool.
660 (safe_frame_unwind_memory): Return bool.
661 (deprecated_frame_register_read): Return bool.
662 (frame_unwinder_is): Return bool.
663 * frame.c (struct frame_info) <prev_arch::p>: Change type to
664 bool.
665 <this_id::p>: Likewise.
666 <prev_p>: Likewise.
667 (frame_stash_add): Return bool.
668 (get_frame_id): Use bool.
669 (frame_id_build_special) Use bool.
670 (frame_id_build_unavailable_stack): Use bool.
671 (frame_id_build): Use bool.
672 (frame_id_p): Return bool, use true/false instead of 1/0.
673 (frame_id_artificial_p): Likewise.
674 (frame_id_eq): Likewise.
675 (frame_id_inner): Likewise.
676 (get_frame_func_if_available): Likewise.
677 (read_frame_register_unsigned): Likewise.
678 (deprecated_frame_register_read): Likewise.
679 (get_frame_register_bytes): Likewise.
680 (has_stack_frames): Likewise.
681 (inside_main_func): Likewise.
682 (inside_entry_func): Likewise.
683 (get_frame_pc_if_available): Likewise.
684 (get_frame_address_in_block_if_available): Likewise.
685 (frame_unwinder_is): Likewise.
686 (safe_frame_unwind_memory): Likewise.
687 (frame_unwind_arch): Likewise.
688
689 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
690
691 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
692 type to cached_copy_status.
693 (fprintf_frame): Adjust.
694 (get_frame_func_if_available): Adjust.
695 (frame_cleanup_after_sniffer): Adjust.
696
697 2020-08-04 Mark Wielaard <mark@klomp.org>
698
699 * MAINTAINERS (Write After Approval): Update email address.
700
701 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
702
703 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
704 dynamic_prop::const_val.
705
706 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
707
708 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
709 dynamic_prop::kind.
710
711 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
712
713 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
714
715 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
716
717 * configure.tgt: Set gdb_sim for bpf-*-* targets.
718
719 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
720 Jose E. Marchesi <jose.marchesi@oracle.com>
721
722 * configure.tgt: Add entry for bpf-*-*.
723 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
724 (ALLDEPFILES): Add bpf-tdep.c.
725 * bpf-tdep.c: New file.
726 * MAINTAINERS: Add bpf target and maintainer.
727 * NEWS: Mention the support for the new target.
728
729 2020-08-04 Tom de Vries <tdevries@suse.de>
730
731 PR symtab/23270
732 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
733 Error.
734
735 2020-08-03 John Baldwin <jhb@FreeBSD.org>
736
737 * syscalls/freebsd.xml: Regenerate.
738
739 2020-08-03 John Baldwin <jhb@FreeBSD.org>
740
741 * syscalls/update-freebsd.sh: Fix usage and year range.
742
743 2020-08-03 Tom de Vries <tdevries@suse.de>
744
745 PR symtab/26333
746 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
747 DW_LNE_lo_user/DW_LNE_hi_user range.
748
749 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
750
751 PR ada/26318
752 * ada-lang.c (ada_modulus): Return 0 if property is not of const
753 kind.
754
755 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
756
757 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
758
759 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
760
761 * breakpoint.c (set_breakpoint_condition): Update the condition
762 expressions after checking that the input condition string parses
763 successfully and does not contain junk at the end.
764
765 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
766
767 * breakpoint.c (set_breakpoint_condition): Update the
768 condition string after parsing the new condition successfully.
769
770 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
771
772 * proc-api.c (_STRUCTURED_PROC): Don't define.
773 * proc-events.c: Likewise.
774 * proc-flags.c: Likewise.
775 * proc-why.c: Likewise.
776 * procfs.c: Likewise.
777
778 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
779 * configure, config.in: Regenerate.
780
781 2020-07-30 Tom de Vries <tdevries@suse.de>
782
783 PR build/26320
784 * ui-style.h (struct ui_file_style::color): Wrap m_value and
785 m_red/m_green/m_blue in a union.
786
787 2020-07-29 Tom de Vries <tdevries@suse.de>
788
789 PR tdep/26280
790 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
791
792 2020-07-28 Tom Tromey <tromey@adacore.com>
793
794 PR symtab/26270:
795 * symtab.h (find_pc_partial_function_sym): Declare.
796 * cli/cli-cmds.c (disassemble_command): Use
797 find_pc_partial_function_sym. Check asm_demangle.
798 * blockframe.c (cache_pc_function_sym): New global.
799 (cache_pc_function_name): Remove.
800 (clear_pc_function_cache): Update.
801 (find_pc_partial_function_sym): New function, from
802 find_pc_partial_function.
803 (find_pc_partial_function): Rewrite using
804 find_pc_partial_function_sym.
805
806 2020-07-28 Tom Tromey <tromey@adacore.com>
807
808 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
809 help. Add usage.
810
811 2020-07-28 Tom Tromey <tromey@adacore.com>
812
813 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
814 <DW_OP_GNU_variable_value>: Cast to address type.
815
816 2020-07-28 Kamil Rytarowski <n54@gmx.com>
817
818 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
819 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
820 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
821 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
822 (nbsd_get_siginfo_type): New.
823 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
824 (_initialize_nbsd_tdep): New.
825
826 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
827
828 PR binutils/26301
829 * configure: Regenerated.
830
831 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
832
833 PR binutils/26301
834 * configure: Regenerated.
835
836 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
837
838 * python/py-frame.c: Remove 'user-regs.h' include.
839 (frapy_read_register): Rewrite to make use of
840 gdbpy_parse_register_id.
841 * python/py-registers.c (gdbpy_parse_register_id): New function,
842 moved here from python/py-unwind.c. Updated the return type, and
843 also accepts register descriptor objects.
844 * python/py-unwind.c: Remove 'user-regs.h' include.
845 (pyuw_parse_register_id): Moved to python/py-registers.c.
846 (unwind_infopy_add_saved_register): Update to use
847 gdbpy_parse_register_id.
848 (pending_framepy_read_register): Likewise.
849 * python/python-internal.h (gdbpy_parse_register_id): Declare.
850
851 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
852
853 * python/py-registers.c: Add 'user-regs.h' include.
854 (register_descriptor_iter_find): New function.
855 (register_descriptor_iterator_object_methods): New static global
856 methods array.
857 (register_descriptor_iterator_object_type): Add pointer to methods
858 array.
859
860 2020-07-27 John Baldwin <jhb@FreeBSD.org>
861
862 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
863 for all architectures on FreeBSD 11.3 and later.
864
865 2020-07-27 Tom Tromey <tromey@adacore.com>
866
867 * gcore.h (load_corefile): Don't declare.
868
869 2020-07-27 Tom de Vries <tdevries@suse.de>
870
871 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
872 * config.in: Regenerate.
873 * configure: Regenerate.
874
875 2020-07-26 Eli Zaretskii <eliz@gnu.org>
876
877 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
878 ws2tcpip.h. When checking whether socklen_t type is defined, use
879 ws2tcpip.h if it is available and sys/socket.h isn't.
880 * configure: Regenerate.
881 * config.in: Regenerate.
882
883 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
884
885 PR fortran/23051
886 PR fortran/26139
887 * valops.c (value_ind): Pass address to
888 readjust_indirect_value_type.
889 * value.c (readjust_indirect_value_type): Make parameter
890 non-const, and add extra address parameter. Resolve original type
891 before using it.
892 * value.h (readjust_indirect_value_type): Update function
893 signature and comment.
894
895 2020-07-25 Tom de Vries <tdevries@suse.de>
896
897 PR symtab/26243
898 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
899 entries.
900
901 2020-07-24 Aaron Merey <amerey@redhat.com>
902
903 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
904 * configure: Rebuild.
905
906 2020-07-23 Kevin Buettner <kevinb@redhat.com>
907
908 PR corefiles/26294
909 * corelow.c (_initialize_corelow): Add period to help text
910 for "maintenance print core-file-backed-mappings".
911
912 2020-07-23 Pedro Alves <pedro@palves.net>
913
914 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
915 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
916 meanwhile.
917 * frame.c (frame_cache_generation, get_frame_cache_generation):
918 New.
919 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
920 (get_prev_frame_if_no_cycle): On exception, don't touch
921 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
922 * frame.h (get_frame_cache_generation): Declare.
923
924 2020-07-23 Tom de Vries <tdevries@suse.de>
925
926 PR tui/26282
927 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
928 New default constructor.
929
930 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
931
932 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
933 exclude non-statement entries.
934
935 2020-07-22 Kevin Buettner <kevinb@redhat.com>
936
937 * NEWS (New commands): Mention new command
938 "maintenance print core-file-backed-mappings".
939
940 2020-07-22 Kevin Buettner <kevinb@redhat.com>
941
942 * corelow.c (gdbcmd.h): Include.
943 (core_target::info_proc_mappings): New method.
944 (get_current_core_target): New function.
945 (maintenance_print_core_file_backed_mappings): New function.
946 (_initialize_corelow): Add core-file-backed-mappings to
947 "maint print" commands.
948
949 2020-07-22 Kevin Buettner <kevinb@redhat.com>
950
951 * linux-tdep.c (dump_note_entry_p): New function.
952 (linux_dump_mapping_p_ftype): New typedef.
953 (linux_find_memory_regions_full): Add new parameter,
954 should_dump_mapping_p.
955 (linux_find_memory_regions): Adjust call to
956 linux_find_memory_regions_full.
957 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
958 call to linux_find_memory_regions_full.
959
960 2020-07-22 Kevin Buettner <kevinb@redhat.com>
961
962 * corelow.c (solist.h, unordered_map): Include.
963 (class core_target): Add field m_core_file_mappings and
964 method build_file_mappings.
965 (core_target::core_target): Call build_file_mappings.
966 (core_target::~core_target): Free memory associated with
967 m_core_file_mappings.
968 (core_target::build_file_mappings): New method.
969 (core_target::xfer_partial): Use m_core_file_mappings
970 for memory transfers.
971 * linux-tdep.c (linux_read_core_file_mappings): New
972 function.
973 (linux_core_info_proc_mappings): Rewrite to use
974 linux_read_core_file_mappings.
975 (linux_init_abi): Register linux_read_core_file_mappings.
976
977 2020-07-22 Kevin Buettner <kevinb@redhat.com>
978
979 * arch-utils.c (default_read_core_file_mappings): New function.
980 * arch-utils.c (default_read_core_file_mappings): Declare.
981 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
982 * gdbarch.h, gdbarch.c: Regenerate.
983
984 2020-07-22 Kevin Buettner <kevinb@redhat.com>
985
986 PR corefiles/25631
987 * corelow.c (core_target:xfer_partial): Revise
988 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
989 case after first checking the stratum beneath the core
990 target.
991 (has_all_memory): Return true.
992 * target.c (raw_memory_xfer_partial): Revise comment
993 regarding use of has_all_memory.
994
995 2020-07-22 Kevin Buettner <kevinb@redhat.com>
996
997 * exec.h (section_table_xfer_memory): Revise declaration,
998 replacing section name parameter with an optional callback
999 predicate.
1000 * exec.c (section_table_xfer_memory): Likewise.
1001 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
1002 of section_table_xfer_memory.
1003
1004 2020-07-22 Tom Tromey <tromey@adacore.com>
1005
1006 * mi/mi-cmd-stack.c (list_args_or_locals): Use
1007 lookup_symbol_search_name.
1008
1009 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1010
1011 * python/py-registers.c (gdbpy_register_object_data_init): Remove
1012 redundant local variable.
1013 (gdbpy_get_register_descriptor): Extract descriptor vector as a
1014 reference, not pointer, update code accordingly.
1015
1016 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1017 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1018
1019 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
1020 * jit.c (jit_breakpoint_re_set_internal): Use the
1021 `skip_jit_symbol_lookup` field.
1022
1023 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1024 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1025
1026 * jit.c (jit_read_descriptor): Define the descriptor address once,
1027 use twice.
1028 (jit_breakpoint_deleted): Move the declaration of the loop variable
1029 `iter` into the loop header.
1030 (jit_breakpoint_re_set_internal): Move the declaration of the local
1031 variable `objf_data` to the first point of definition.
1032 (jit_event_handler): Move the declaration of local variables
1033 `code_entry`, `entry_addr`, and `objf` to their first point of use.
1034 Rename `objf` to `jited`.
1035
1036 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1037
1038 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
1039 Remove.
1040 * jit.c (get_jiter_objfile_data): Update.
1041
1042 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1043 Simon Marchi <simon.marchi@polymtl.ca>
1044
1045 * jit.c (struct jit_program_space_data): Remove.
1046 (jit_program_space_key): Remove.
1047 (jiter_objfile_data::~jiter_objfile_data): Remove program space
1048 stuff.
1049 (get_jit_program_space_data): Remove.
1050 (jit_breakpoint_deleted): Iterate on all of the program space's
1051 objfiles.
1052 (jit_inferior_init): Likewise.
1053 (jit_breakpoint_re_set_internal): Likewise. Also change return
1054 type to void.
1055 (jit_breakpoint_re_set): Pass current_program_space to
1056 jit_breakpoint_re_set_internal.
1057
1058 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1059
1060 * jit.h (struct jiter_objfile_data) <cached_code_address,
1061 jit_breakpoint>: Move to here from ...
1062 * jit.c (jit_program_space_data): ... here.
1063 (jiter_objfile_data::~jiter_objfile_data): Update.
1064 (jit_breakpoint_deleted): Update.
1065 (jit_breakpoint_re_set_internal): Update.
1066
1067 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1068
1069 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
1070 checks.
1071 (jit_read_descriptor): Remove NULL check.
1072 (jit_event_handler): Add an assertion.
1073
1074 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1075
1076 * jit.h (struct jit_objfile_data): Split into...
1077 (struct jiter_objfile_data): ... this ...
1078 (struct jited_objfile_data): ... and this.
1079 * objfiles.h (struct objfile) <jit_data>: Remove.
1080 <jiter_data, jited_data>: New fields.
1081 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
1082 (jiter_objfile_data::~jiter_objfile_data): ... this.
1083 (get_jit_objfile_data): Rename to ...
1084 (get_jiter_objfile_data): ... this.
1085 (add_objfile_entry): Update.
1086 (jit_read_descriptor): Use get_jiter_objfile_data.
1087 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
1088 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
1089 (jit_inferior_exit_hook): Use objfile's jited_data field.
1090
1091 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1092
1093 * jit.h: Forward-declare `struct minimal_symbol`.
1094 (struct jit_objfile_data): Migrate to here from jit.c; also add a
1095 constructor, destructor, and an objfile* field.
1096 * jit.c (jit_objfile_data): Remove.
1097 (struct jit_objfile_data): Migrate from here to jit.h.
1098 (jit_objfile_data::~jit_objfile_data): New destructor
1099 implementation with code moved from free_objfile_data.
1100 (free_objfile_data): Delete.
1101 (get_jit_objfile_data): Update to use the jit_data field of objfile.
1102 (jit_find_objf_with_entry_addr): Ditto.
1103 (jit_inferior_exit_hook): Ditto.
1104 (_initialize_jit): Remove the call to
1105 register_objfile_data_with_cleanup.
1106 * objfiles.h (struct objfile) <jit_data>: New field.
1107
1108 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1109
1110 * jit.h: Forward-declare `struct objfile`.
1111 (jit_event_handler): Add a second parameter, the JITer objfile.
1112 * jit.c (jit_read_descriptor): Change the signature to take the
1113 JITer objfile as an argument instead of the jit_program_space_data.
1114 (jit_inferior_init): Update the call to jit_read_descriptor.
1115 (jit_event_handler): Use the new JITer objfile argument when calling
1116 jit_read_descriptor.
1117 * breakpoint.c (handle_jit_event): Update the call to
1118 jit_event_handler to pass the JITer objfile.
1119
1120 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1121
1122 * gdbarch.c: Regenerate.
1123 * gdbarch.h: Regenerate.
1124 * gdbarch.sh (handle_segmentation_fault): Remove method.
1125 * infrun.c (handle_segmentation_fault): Remove.
1126 (print_signal_received_reason): Remove call to
1127 handle_segmentation_fault.
1128
1129 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1130
1131 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1132 Rename to sparc64_linux_report_signal_info and add siggnal
1133 argument.
1134 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
1135 instead of sparc64_linux_handle_segmentation_fault.
1136
1137 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1138
1139 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
1140 i386_linux_report_signal_info instead of
1141 i386_linux_handle_segmentation_fault.
1142 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
1143 to i386_linux_report_signal_info and add siggnal argument.
1144 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
1145 of i386_linux_handle_segmentation_fault.
1146 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
1147 to i386_linux_report_signal_info and add siggnal argument.
1148
1149 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1150
1151 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1152 hook if present.
1153
1154 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1155
1156 * gdbarch.c: Regenerate.
1157 * gdbarch.h: Regenerate.
1158 * gdbarch.sh (report_signal_info): New method.
1159 * infrun.c (print_signal_received_reason): Invoke gdbarch
1160 report_signal_info hook if present.
1161
1162 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1163
1164 * python/py-registers.c : Add 'unordered_map' include.
1165 (gdbpy_new_reggroup): Renamed to...
1166 (gdbpy_get_reggroup): ...this. Update to only create register
1167 group descriptors when needed.
1168 (gdbpy_reggroup_iter_next): Update.
1169
1170 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1171
1172 * python/py-registers.c (gdbpy_register_object_data): New static
1173 global.
1174 (gdbpy_register_object_data_init): New function.
1175 (gdbpy_new_register_descriptor): Renamed to...
1176 (gdbpy_get_register_descriptor): ...this, and update to reuse
1177 existing register descriptors where possible.
1178 (gdbpy_register_descriptor_iter_next): Update.
1179 (gdbpy_initialize_registers): Register new gdbarch data.
1180
1181 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
1182
1183 * linux-nat.c (stopped_pids): Make static.
1184
1185 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1186
1187 PR ada/26235
1188 * gdbtypes.c (ada_discrete_type_low_bound,
1189 ada_discrete_type_high_bound): Handle undefined bounds.
1190
1191 2020-07-21 Kamil Rytarowski <n54@gmx.com>
1192
1193 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1194 declaration.
1195 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1196 function.
1197
1198 2020-07-20 John Baldwin <jhb@FreeBSD.org>
1199
1200 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1201 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1202 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1203 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1204 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1205 method.
1206
1207 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1208
1209 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1210 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1211 which are deprecated in Guile 3.0.
1212 * configure.ac (try_guile_versions): Add "guile-3.0".
1213 * configure (try_guile_versions): Regenerate.
1214 * NEWS: Update entry.
1215
1216 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1217 Doug Evans <dje@google.com>
1218
1219 PR gdb/21104
1220 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1221 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1222 USING_GUILE_BEFORE_2_2.
1223 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1224 Change type to 'scm_t_port_type *'.
1225 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1226 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1227 parameter and honor it. Update callers.
1228 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1229 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1230 functions.
1231 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1232 USING_GUILE_BEFORE_2_2.
1233 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1234 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1235 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1236 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1237 and 'SCM_PORT_TYPE'.
1238 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1239 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1240 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1241 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1242 [!USING_GUILE_BEFORE_2_2]: New functions.
1243 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1244 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1245 'gdbscm_memory_port_read'.
1246 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1247 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1248 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1249 function.
1250 (ioscm_init_memory_port): Remove.
1251 (ioscm_init_memory_port_stream): New function
1252 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1253 function.
1254 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1255 Return scm_from_uint (0).
1256 (gdbscm_set_memory_port_read_buffer_size_x)
1257 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1258 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1259 Return scm_from_uint (0).
1260 (gdbscm_set_memory_port_write_buffer_size_x)
1261 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1262 * configure.ac (try_guile_versions): Add "guile-2.2".
1263 * configure: Regenerate.
1264 * NEWS: Add entry.
1265
1266 2020-07-18 Tom Tromey <tom@tromey.com>
1267
1268 * linux-nat.c (linux_multi_process): Remove.
1269 (linux_nat_target::supports_multi_process): Return true.
1270
1271 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1272
1273 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1274 (riscv_lookup_target_description): Return pointer out of
1275 unique_ptr.
1276 * target-descriptions.c (allocate_target_description): Add
1277 comment.
1278 (target_desc_deleter::operator()): Likewise.
1279 * target-descriptions.h (struct target_desc_deleter): Moved to
1280 gdbsupport/tdesc.h.
1281 (target_desc_up): Likewise.
1282
1283 2020-07-17 Tom Tromey <tromey@adacore.com>
1284
1285 * linux-nat.c (linux_nat_target::supports_non_stop)
1286 (linux_nat_target::always_non_stop_p): Use "true".
1287 (linux_nat_target::supports_disable_randomization): Use "true" and
1288 "false".
1289
1290 2020-07-16 Caroline Tice <cmtice@google.com>
1291
1292 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1293 (RNGLIST_HEADER_SIZE64): New constant definition.
1294 (struct dwop_section_names): Add rnglists_dwo.
1295 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1296 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1297 (struct dwo_sections): Add rnglists field.
1298 (read_attribut_reprocess): Add tag parameter.
1299 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1300 (cu_debug_rnglists_section): New function (decl & definition).
1301 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1302 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1303 die whose range is being checked; get rnglist section from
1304 cu_debug_rnglists_section, to get from either objfile or dwo file as
1305 appropriate. Add cases for DW_RLE_base_addressx,
1306 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1307 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1308 test inside if-condition and updating complaint message.
1309 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1310 dwarf2_rnglists_process.
1311 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1312 dwarf2_ranges_process.
1313 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1314 need_ranges_base and update comment appropriately. Also pass die tag
1315 to dwarf2_ranges_read.
1316 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1317 need_ranges_base and update comment appropriately. Also pass die tag
1318 to dwarf2_ranges_process.
1319 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1320 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1321 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1322 need_ranges_base and update comment appropriately. Also pass die tag
1323 to read_attribute_reprocess and dwarf2_ranges_read.
1324 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1325 and update function comment appropriately.
1326 (read_loclist_index): Call read_loclists_rnglists_header instead of
1327 read_loclist_header.
1328 (read_rnglist_index): New function.
1329 (read_attribute_reprocess): Add tag parameter. Add code for
1330 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1331 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1332
1333 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1334
1335 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1336 being resolved.
1337
1338 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1339
1340 * arch-utils.c (show_architecture): Update formatting of messages.
1341
1342 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1343
1344 * gdbtypes.h (struct type) <bounds>: Handle array and string
1345 types.
1346 * ada-lang.c (assign_aggregate): Use type::bounds on
1347 array/string type.
1348 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1349 * c-varobj.c (c_number_of_children): Likewise.
1350 (c_describe_child): Likewise.
1351 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1352 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1353 (f_type_print_base): Likewise.
1354 * f-valprint.c (f77_array_offset_tbl): Likewise.
1355 (f77_get_upperbound): Likewise.
1356 (f77_print_array_1): Likewise.
1357 * guile/scm-type.c (gdbscm_type_range): Likewise.
1358 * m2-typeprint.c (m2_array): Likewise.
1359 (m2_is_long_set_of_type): Likewise.
1360 * m2-valprint.c (get_long_set_bounds): Likewise.
1361 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1362 * python/py-type.c (typy_range): Likewise.
1363 * rust-lang.c (rust_internal_print_type): Likewise.
1364 * type-stack.c (type_stack::follow_types): Likewise.
1365 * valarith.c (value_subscripted_rvalue): Likewise.
1366 * valops.c (value_cast): Likewise.
1367
1368 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1369
1370 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1371 callers to use the equivalent accessor methods.
1372
1373 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1374
1375 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1376 (struct type) <bit_stride>: New method.
1377 (TYPE_BIT_STRIDE): Remove.
1378 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1379
1380 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1381
1382 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1383 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1384 callers to use the equivalent accessor methods instead.
1385
1386 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1387
1388 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1389 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1390 callers to use the equivalent accessor methods instead.
1391
1392 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1393
1394 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1395 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1396 to use dynamic_prop::kind.
1397
1398 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1399
1400 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1401 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1402 to get the bound property's kind and check against
1403 PROP_UNDEFINED.
1404
1405 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1406
1407 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1408 all callers to use type::range_bounds followed by
1409 dynamic_prop::{low,high}.
1410
1411 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1412
1413 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1414 const_val, set_const_val, baton, set_locexpr, set_loclist,
1415 set_addr_offset, variant_parts, set_variant_parts,
1416 original_type, set_original_type>: New methods.
1417 <kind>: Rename to...
1418 <m_kind>: ... this. Update all users to use the new methods
1419 instead.
1420 <data>: Rename to...
1421 <m_data>: ... this. Update all users to use the new methods
1422 instead.
1423
1424 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1425
1426 * gdbtypes.c (get_discrete_bounds): Return failure if
1427 the range type's bounds are not both defined and constant
1428 values.
1429 (get_array_bounds): Update comment. Remove undefined bound check.
1430
1431 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1432
1433 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1434 the type::bounds method directly.
1435
1436 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1437
1438 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1439 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1440 are used to set the range type's bounds to use set_bounds.
1441
1442 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1443
1444 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1445
1446 2020-07-10 Pedro Alves <pedro@palves.net>
1447
1448 * gdbthread.h (inferior_ref): Define.
1449 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1450 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1451 * thread.c
1452 (scoped_restore_current_thread::restore):
1453 Adjust to gdb::ref_ptr.
1454 (scoped_restore_current_thread::~scoped_restore_current_thread):
1455 Remove manual decref handling.
1456 (scoped_restore_current_thread::scoped_restore_current_thread):
1457 Adjust to use
1458 inferior_ref::new_reference/thread_info_ref::new_reference.
1459 Incref the thread before calling get_frame_id instead of after.
1460 Let TARGET_CLOSE_ERROR propagate.
1461
1462 2020-07-10 Pedro Alves <pedro@palves.net>
1463
1464 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1465 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1466 NOT_AVAILABLE_ERROR.
1467 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1468 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1469
1470 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1471 Pedro Alves <pedro@palves.net>
1472
1473 PR gdb/26199
1474 * infrun.c (threads_are_resumed_pending_p): Delete.
1475 (do_target_wait): Remove threads_are_executing and
1476 threads_are_resumed_pending_p checks from the inferior_matches
1477 lambda. Update comments.
1478
1479 2020-07-10 Pedro Alves <pedro@palves.net>
1480
1481 PR gdb/26199
1482 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1483 executing threads.
1484
1485 2020-07-10 Pedro Alves <pedro@palves.net>
1486
1487 PR gdb/26199
1488 * infrun.c (handle_no_resumed): Handle multiple targets.
1489
1490 2020-07-10 Pedro Alves <pedro@palves.net>
1491
1492 PR gdb/26199
1493 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1494 target_is_async_p.
1495
1496 2020-07-10 Pedro Alves <pedro@palves.net>
1497
1498 PR gdb/26199
1499 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1500 threads, not all threads.
1501
1502 2020-07-10 Pedro Alves <pedro@palves.net>
1503
1504 PR gdb/26199
1505 * remote.c (remote_target::open_1): Pass remote target pointer as
1506 data to create_async_event_handler.
1507 (remote_async_inferior_event_handler): Mark async event handler
1508 before returning if the remote target still has either pending
1509 events or unacknowledged notifications.
1510
1511 2020-07-10 John Baldwin <jhb@FreeBSD.org>
1512
1513 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1514 declaration.
1515 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1516 function.
1517
1518 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1519
1520 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1521 inferior_ptid.
1522
1523 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1524
1525 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1526 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1527 AT_FREEBSD_PS_STRINGS.
1528
1529 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
1530
1531 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1532 of debugfile path on Windows.
1533
1534 2020-07-08 John Baldwin <jhb@FreeBSD.org>
1535
1536 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1537 argument to 'data'.
1538
1539 2020-07-08 Tom Tromey <tromey@adacore.com>
1540
1541 * ada-lang.c (ada_exception_message_1): Use read_memory.
1542
1543 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1544
1545 PR python/22748
1546 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1547 special handling for inline frames.
1548 * findvar.c (value_of_register_lazy): Skip inline frames when
1549 creating lazy register values.
1550 * frame.c (frame_id_computed_p): Delete definition.
1551 * frame.h (frame_id_computed_p): Delete declaration.
1552
1553 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1554
1555 * NEWS: Mention additions to Python API.
1556 * python/py-arch.c (archpy_register_groups): New function.
1557 (arch_object_methods): Add 'register_groups' method.
1558 * python/py-registers.c (reggroup_iterator_object): New struct.
1559 (reggroup_object): New struct.
1560 (gdbpy_new_reggroup): New function.
1561 (gdbpy_reggroup_to_string): New function.
1562 (gdbpy_reggroup_name): New function.
1563 (gdbpy_reggroup_iter): New function.
1564 (gdbpy_reggroup_iter_next): New function.
1565 (gdbpy_new_reggroup_iterator): New function
1566 (gdbpy_initialize_registers): Register new types.
1567 (reggroup_iterator_object_type): Define new Python type.
1568 (gdbpy_reggroup_getset): New static global.
1569 (reggroup_object_type): Define new Python type.
1570 * python/python-internal.h
1571
1572 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1573
1574 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1575 * python/py-arch.c (archpy_registers): New function.
1576 (arch_object_methods): Add 'registers' method.
1577 * python/py-registers.c: New file.
1578 * python/python-internal.h
1579 (gdbpy_new_register_descriptor_iterator): Declare.
1580 (gdbpy_initialize_registers): Declare.
1581 * python/python.c (do_start_initialization): Call
1582 gdbpy_initialize_registers.
1583 * NEWS: Mention additions to the Python API.
1584
1585 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1586
1587 * NEWS: Mention new Python API method.
1588 * python/py-unwind.c (pending_framepy_architecture): New function.
1589 (pending_frame_object_methods): Add architecture method.
1590
1591 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1592
1593 * gdbarch.c: Regenerate.
1594 * gdbarch.h: Regenerate.
1595 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1596 (gdbarch_data): Use internal_error for the case where
1597 deprecated_set_gdbarch_data was originally needed.
1598 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1599 and use passed in obstack.
1600 (libunwind_frame_set_descr): Should no longer get back NULL from
1601 gdbarch_data.
1602 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1603 type.
1604 * user-regs.c (user_regs_init): Update parameters, and use passed
1605 in obstack.
1606 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1607 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1608
1609 2020-07-06 Tom de Vries <tdevries@suse.de>
1610
1611 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1612 End-Of-Sequence in lte_is_less_than.
1613 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1614 "gdb: Don't reorder line table entries too much when sorting".
1615
1616 2020-07-06 Tom de Vries <tdevries@suse.de>
1617
1618 PR tui/26205
1619 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1620
1621 2020-07-05 Tom de Vries <tdevries@suse.de>
1622
1623 PR build/26187
1624 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1625 std::uncaught_exceptions instead of deprecated
1626 std::uncaught_exception.
1627
1628 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1629
1630 * macroexp.h (macro_stringify): Return
1631 gdb::unique_xmalloc_ptr<char>.
1632 * macroexp.c (macro_stringify): Likewise.
1633 * macrotab.c (fixup_definition): Update.
1634
1635 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1636
1637 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1638 (lex_one_token): Update.
1639 * macroexp.c (struct macro_buffer) <release>: Return
1640 gdb::unique_xmalloc_ptr<char>.
1641 (macro_stringify): Update.
1642 (macro_expand): Update.
1643 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1644 * macroexp.h (macro_expand_next): Likewise.
1645
1646 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
1647
1648 * macroexp.h (macro_lookup_ftype): Remove.
1649 (macro_expand, macro_expand_once, macro_expand_next): Remove
1650 lookup function parameters, add scope parameter.
1651 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1652 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1653 * macroscope.h (standard_macro_lookup): Change parameter type
1654 to macro_scope.
1655 * macroscope.c (standard_macro_lookup): Likewise.
1656 * c-exp.y (lex_one_token): Update.
1657 * macrocmd.c (macro_expand_command): Likewise.
1658 (macro_expand_once_command): Likewise.
1659
1660 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1661
1662 * inf-loop.c (inferior_event_handler): Remove client_data param.
1663 * inf-loop.h (inferior_event_handler): Likewise.
1664 * infcmd.c (step_1): Adjust.
1665 * infrun.c (proceed): Adjust.
1666 (fetch_inferior_event): Remove client_data param.
1667 (infrun_async_inferior_event_handler): Adjust.
1668 * infrun.h (fetch_inferior_event): Remove `void *` param.
1669 * linux-nat.c (handle_target_event): Adjust.
1670 * record-btrace.c (record_btrace_handle_async_inferior_event):
1671 Adjust.
1672 * record-full.c (record_full_async_inferior_event_handler):
1673 Adjust.
1674 * remote.c (remote_async_inferior_event_handler): Adjust.
1675
1676 2020-07-01 Tom Tromey <tom@tromey.com>
1677
1678 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1679 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1680
1681 2020-07-01 Tom Tromey <tom@tromey.com>
1682
1683 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1684 tui_gen_win_info.
1685 (tui_win_info::make_window): Merge with
1686 tui_gen_win_info::make_window.
1687 (tui_win_info::make_visible): Move from tui_gen_win_info.
1688 * tui/tui-win.c (tui_win_info::max_width): Move from
1689 tui_gen_win_info.
1690 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1691 type.
1692 <window_factory>: Likewise.
1693 * tui/tui-layout.c (tui_win_info::resize): Move from
1694 tui_gen_win_info.
1695 (make_standard_window): Change return type.
1696 (get_locator_window, tui_get_window_by_name): Likewise.
1697 (tui_layout_window::apply): Remove a cast.
1698 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1699 (struct tui_win_info): Merge with tui_gen_win_info.
1700 (struct tui_gen_win_info): Remove.
1701
1702 2020-07-01 Tom Tromey <tom@tromey.com>
1703
1704 * tui/tui-stack.h (struct tui_locator_window): Derive from
1705 tui_win_info.
1706 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1707 <can_box>: New method.
1708
1709 2020-07-01 Tom Tromey <tom@tromey.com>
1710
1711 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1712
1713 2020-07-01 Tom Tromey <tom@tromey.com>
1714
1715 * tui/tui-regs.c (tui_data_window::display_registers_from)
1716 (tui_data_window::display_registers_from)
1717 (tui_data_window::first_data_item_displayed)
1718 (tui_data_window::delete_data_content_windows): Update.
1719 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1720 Remove.
1721 (tui_data_window::check_register_values): Update.
1722 (tui_data_item_window::rerender): Add parameters. Update.
1723 (tui_data_item_window::refresh_window): Remove.
1724 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1725 virtual.
1726 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1727 tui_gen_win_info.
1728 <refresh_window, max_height, min_height>: Remove.
1729 <rerender>: Add parameters.
1730 <x, y, visible>: New members.
1731 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1732 <m_item_width>: New member.
1733
1734 2020-07-01 Tom Tromey <tom@tromey.com>
1735
1736 * tui/tui-regs.c (tui_data_window::show_register_group)
1737 (tui_data_window::check_register_values): Update.
1738 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1739 from item_no.
1740
1741 2020-07-01 Tom Tromey <tom@tromey.com>
1742
1743 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1744 useless "if".
1745
1746 2020-07-01 Tom Tromey <tom@tromey.com>
1747
1748 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1749 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1750
1751 2020-07-01 Tom Tromey <tom@tromey.com>
1752
1753 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1754 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1755 (struct tui_line_or_address): Move from tui-data.h.
1756 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1757 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1758 (tui_cmd_window, tui_source_window_base, tui_source_window)
1759 (tui_disasm_window): Don't declare.
1760 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1761 to tui-winsource.h.
1762 (SINGLE_KEY): Move to tui-stack.c.
1763
1764 2020-07-01 Tom Tromey <tom@tromey.com>
1765
1766 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1767 std::string.
1768 * tui/tui-regs.c (class tab_expansion_file): New.
1769 (tab_expansion_file::write): New method.
1770 (tui_register_format): Change return type. Use
1771 tab_expansion_file.
1772 (tui_get_register, tui_data_window::display_registers_from)
1773 (tui_data_item_window::rerender): Update.
1774 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1775 * tui/tui-io.c (tui_expand_tabs): Remove.
1776
1777 2020-07-01 Tom Tromey <tom@tromey.com>
1778
1779 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1780
1781 2020-07-01 Fangrui Song <maskray@google.com>
1782
1783 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1784
1785 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1786
1787 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1788 forms for DW_AT_associated and DW_AT_allocated attributes,
1789 which is already checked in function attr_to_dynamic_prop.
1790
1791 2020-06-30 Tom Tromey <tromey@adacore.com>
1792
1793 * dwarf2/read.c (quirk_rust_enum): Correctly call
1794 alloc_rust_variant for default-less enum.
1795
1796 2020-06-30 Tom Tromey <tromey@adacore.com>
1797
1798 PR build/26183:
1799 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1800 gdb::to_string.
1801
1802 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
1803
1804 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1805 * gdbarch.h: Re-generate.
1806
1807 2020-06-28 Tom Tromey <tom@tromey.com>
1808
1809 * command.h (cmd_types): Remove.
1810 (cmd_type): Don't declare.
1811 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1812 typedef.
1813 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1814 * cli/cli-decode.c (cmd_type): Remove.
1815
1816 2020-06-27 Pedro Alves <palves@redhat.com>
1817
1818 * fork-child.c (prefork_hook): Adjust.
1819 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1820 Delete.
1821 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1822 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1823 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1824 Remove declarations.
1825 (struct inferior) <set_tty, tty>: New methods.
1826 (struct inferior) <terminal>: Rename to ...
1827 (struct inferior) <m_terminal>: ... this and make private.
1828 * main.c (captured_main_1): Adjust.
1829 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1830 (mi_cmd_inferior_tty_show): Adjust.
1831 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1832 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1833
1834 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
1835
1836 * configure.ac: Add --enable-libctf: handle --disable-static
1837 properly.
1838 * acinclude.m4: sinclude ../config/enable.m4.
1839 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1840 (LIBCTF): Substitute in.
1841 (CTF_DEPS): New, likewise.
1842 (CLIBS): libctf needs symbols from libbfd: move earlier.
1843 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1844 flags.
1845 * ctfread.c: Surround in ENABLE_LIBCTF.
1846 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1847 * configure: Regenerate.
1848 * config.in: Likewise.
1849
1850 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1851
1852 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1853
1854 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1855
1856 * inferior.h (struct inferior) <terminal>: Change type to
1857 gdb::unique_xmalloc_ptr<char>.
1858 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1859 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1860 field, adjust to unique pointer.
1861 (get_inferior_io_terminal): Adjust to unique pointer.
1862
1863 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1864
1865 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1866 registers, not just the known core set of registers.
1867
1868 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1869
1870 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1871 fflags, frm, and fcsr registers.
1872 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1873 restore groups.
1874 (riscv_tdesc_unknown_reg): New function.
1875 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1876 tdesc_use_registers.
1877 * riscv-tdep.h (struct gdbarch_tdep): Add
1878 unknown_csrs_first_regnum, unknown_csrs_count,
1879 duplicate_fflags_regnum, duplicate_frm_regnum, and
1880 duplicate_fcsr_regnum fields.
1881
1882 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1883
1884 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1885 callback, use the callback (when not null) to help number unknown
1886 registers.
1887 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1888 (tdesc_use_registers): Add extra parameter to declaration.
1889
1890 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1891
1892 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1893 in the file.
1894 (class riscv_pending_register_alias): Likewise.
1895 (riscv_register_feature::register_info): Change 'required_p' field
1896 to 'required', and change its type. Add 'check' member function.
1897 (riscv_register_feature::register_info::check): Define new member
1898 function.
1899 (riscv_xreg_feature): Change initialisation of 'required' field.
1900 (riscv_freg_feature): Likewise.
1901 (riscv_virtual_feature): Likewise.
1902 (riscv_csr_feature): Likewise.
1903 (riscv_check_tdesc_feature): Take extra parameter, the csr
1904 tdesc_feature, rewrite the function to use the new
1905 riscv_register_feature::register_info::check function.
1906 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1907
1908 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1909
1910 * features/Makefile: Remove all references to the deleted files
1911 below.
1912 * features/riscv/32bit-csr.c: Deleted.
1913 * features/riscv/32bit-csr.xml: Deleted.
1914 * features/riscv/64bit-csr.c: Deleted.
1915 * features/riscv/64bit-csr.xml: Deleted.
1916 * features/riscv/rebuild-csr-xml.sh: Deleted.
1917
1918 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1919
1920 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1921 whitespace error for declaration of names member variable.
1922 (struct riscv_register_feature): Add new prefer_first_name member
1923 variable, and fix whitespace error in declaration of registers.
1924 (riscv_xreg_feature): Initialize prefer_first_name field.
1925 (riscv_freg_feature): Likewise.
1926 (riscv_virtual_feature): Likewise.
1927 (riscv_csr_feature): Likewise.
1928 (riscv_register_name): Expand on comments. Remove register name
1929 modifications for CSR and virtual registers.
1930
1931 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1932
1933 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1934 errors.
1935
1936 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1937
1938 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1939 riscv-opc.h.
1940 (class riscv_pending_register_alias): New class.
1941 (riscv_check_tdesc_feature): Take vector of pending aliases and
1942 populate it as appropriate.
1943 (riscv_setup_register_aliases): Delete.
1944 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1945 to riscv_check_tdesc_feature in all cases. Use the vector to
1946 create the register aliases.
1947
1948 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1949
1950 * sol2-tdep.c (sol2_static_transform_name): Remove.
1951 (sol2_init_abi): Don't register it.
1952 * gdbarch.sh (static_transform_name): Remove.
1953 * gdbarch.c, gdbarch.h: Regenerate.
1954
1955 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1956 gdbarch_static_transform_name.
1957 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1958 * stabsread.c (define_symbol) <'X'>: Remove.
1959 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1960 handling.
1961 <'V'>: Likewise.
1962 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1963 <'S'>: Remove call to gdbarch_static_transform_name.
1964
1965 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1966
1967 * procfs.c (procfs_pre_trace): New function.
1968 (procfs_target::create_inferior): Pass it to fork_inferior.
1969
1970 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1971
1972 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1973 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1974 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1975 sol2-tdep.o, sparc-sol2-tdep.o.
1976 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1977 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1978 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1979 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1980
1981 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1982
1983 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1984 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1985 Call sol2_init_abi.
1986 Remove calls to set_gdbarch_skip_solib_resolver,
1987 set_gdbarch_core_pid_to_str.
1988 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1989 (i386_sol2_static_transform_name): Remove.
1990 (i386_sol2_init_abi): Call sol2_init_abi.
1991 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1992 set_gdbarch_static_transform_name,
1993 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1994 Use sol2_sigtramp_p.
1995 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1996 (sol2_sigtramp_p): New function.
1997 (sol2_static_transform_name): New function.
1998 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1999 (sol2_init_abi): New function.
2000 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
2001 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
2002 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
2003 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
2004 (sparc_sol2_static_transform_name): Remove.
2005 (sparc32_sol2_init_abi): Call sol2_init_abi.
2006 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2007 set_gdbarch_static_transform_name,
2008 set_gdbarch_skip_solib_resolver,
2009 set_gdbarch_core_pid_to_str.
2010 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
2011 (sparc_sol2_static_transform_name): Remove
2012 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
2013 call sol2_sigtramp_p.
2014 (sparc64_sol2_init_abi): Call sol2_init_abi.
2015 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2016 set_gdbarch_static_transform_name,
2017 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2018
2019 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2020
2021 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
2022 * exec.c (validate_exec_file): If from_tty, set both
2023 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
2024 * symfile.c (symbol_file_add_with_addrs): if always_confirm
2025 and from_tty, unconditionally ask a confirmation.
2026
2027 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2028
2029 * target-descriptions.c (tdesc_architecture_name): Protect against
2030 NULL pointer dereference.
2031 (maint_print_xml_tdesc_cmd): New function.
2032 (_initialize_target_descriptions): Register new 'maint print
2033 xml-tdesc' command and give it the filename completer.
2034 * NEWS: Mention new 'maint print xml-tdesc' command.
2035
2036 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2037
2038 * target-descriptions.c (class tdesc_compatible_info): New class.
2039 (struct target_desc): Change type of compatible vector.
2040 (tdesc_compatible_p): Update for change in type of
2041 target_desc::compatible.
2042 (tdesc_compatible_info_list): New function.
2043 (tdesc_compatible_info_arch_name): New function.
2044 (tdesc_add_compatible): Update for change in type of
2045 target_desc::compatible.
2046 (print_c_tdesc::visit_pre): Likewise.
2047
2048 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2049
2050 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
2051 whitespace to underscore.
2052 (maint_print_c_tdesc_cmd): Use fake filename for target
2053 descriptions that came from the target.
2054 (_initialize_target_descriptions): Add filename command completion
2055 for 'maint print c-tdesc'.
2056
2057 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2058
2059 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
2060 lines.
2061
2062 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2063
2064 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
2065 lines.
2066 (dwarf2_find_location_expression): Likewise.
2067 (call_site_parameter_matches): Likewise.
2068 (dwarf2_compile_expr_to_ax): Likewise.
2069 (disassemble_dwarf_expression): Likewise.
2070 (loclist_describe_location): Likewise.
2071
2072 2020-06-23 Pedro Alves <palves@redhat.com>
2073
2074 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
2075 progspace-and-thread.h. Include scoped-mock-context.h instead.
2076 (register_to_value_test): Use scoped_mock_context.
2077 * regcache.c: Include "scoped-mock-context.h".
2078 (cooked_read_test): Don't error out if a target is already pushed.
2079 Use scoped_mock_context. Adjust.
2080 * scoped-mock-context.h: New file.
2081
2082 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2083
2084 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
2085 initializer.
2086 (ada_language::is_string_type_p): New member function.
2087 * c-lang.c (c_language_data): Delete la_is_string_type_p
2088 initializer.
2089 (cplus_language_data): Likewise.
2090 (asm_language_data): Likewise.
2091 (minimal_language_data): Likewise.
2092 * d-lang.c (d_language_data): Likewise.
2093 * f-lang.c (f_is_string_type_p): Delete function, implementation
2094 moved to f_language::is_string_type_p.
2095 (f_language_data): Delete la_is_string_type_p initializer.
2096 (f_language::is_string_type_p): New member function,
2097 implementation from f_is_string_type_p.
2098 * go-lang.c (go_is_string_type_p): Delete function, implementation
2099 moved to go_language::is_string_type_p.
2100 (go_language_data): Delete la_is_string_type_p initializer.
2101 (go_language::is_string_type_p): New member function,
2102 implementation from go_is_string_type_p.
2103 * language.c (language_defn::is_string_type_p): Define new member
2104 function.
2105 (default_is_string_type_p): Make static, add comment copied from
2106 header file.
2107 (unknown_language_data): Delete la_is_string_type_p initializer.
2108 (unknown_language::is_string_type_p): New member function.
2109 (auto_language_data): Delete la_is_string_type_p initializer.
2110 (auto_language::is_string_type_p): New member function.
2111 * language.h (language_data): Delete la_is_string_type_p field.
2112 (language_defn::is_string_type_p): Declare new function.
2113 (default_is_string_type_p): Delete desclaration, move comment to
2114 definition.
2115 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
2116 moved to m2_language::is_string_type_p.
2117 (m2_language_data): Delete la_is_string_type_p initializer.
2118 (m2_language::is_string_type_p): New member function,
2119 implementation from m2_is_string_type_p.
2120 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
2121 initializer.
2122 * opencl-lang.c (opencl_language_data): Likewise.
2123 * p-lang.c (pascal_is_string_type_p): Delete function,
2124 implementation moved to pascal_language::is_string_type_p.
2125 (pascal_language_data): Delete la_is_string_type_p initializer.
2126 (pascal_language::is_string_type_p): New member function,
2127 implementation from pascal_is_string_type_p.
2128 * rust-lang.c (rust_is_string_type_p): Delete function,
2129 implementation moved to rust_language::is_string_type_p.
2130 (rust_language_data): Delete la_is_string_type_p initializer.
2131 (rust_language::is_string_type_p): New member function,
2132 implementation from rust_is_string_type_p.
2133 * valprint.c (val_print_scalar_or_string_type_p): Update call to
2134 is_string_type_p.
2135
2136 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2137
2138 * ada-lang.c (ada_language_data): Delete la_print_typedef
2139 initializer.
2140 (ada_language::print_typedef): New member function.
2141 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
2142 (cplus_language_data): Likewise.
2143 (asm_language_data): Likewise.
2144 (minimal_language_data): Likewise.
2145 * d-lang.c (d_language_data): Likewise.
2146 * f-lang.c (f_language_data): Likewise.
2147 (f_language::print_typedef): New member function.
2148 * go-lang.c (go_language_data): Delete la_print_typedef
2149 initializer.
2150 * language.c (language_defn::print_typedef): Define member
2151 function.
2152 (unknown_language_data): Delete la_print_typedef initializer.
2153 (unknown_language::print_typedef): New member function.
2154 (auto_language_data): Delete la_print_typedef initializer.
2155 (auto_language::print_typedef): New member function.
2156 * language.h (language_data): Delete la_print_typedef field.
2157 (language_defn::print_typedef): Declare new member function.
2158 (LA_PRINT_TYPEDEF): Update call to print_typedef.
2159 (default_print_typedef): Delete declaration.
2160 * m2-lang.c (m2_language_data): Delete la_print_typedef
2161 initializer.
2162 (m2_language::print_typedef): New member function.
2163 * objc-lang.c (objc_language_data): Delete la_print_typedef
2164 initializer.
2165 * opencl-lang.c (opencl_language_data): Likewise.
2166 * p-lang.c (pascal_language_data): Likewise.
2167 (pascal_language::print_typedef): New member function.
2168 * rust-lang.c (rust_print_typedef): Delete function,
2169 implementation moved to rust_language::print_typedef.
2170 (rust_language): Delete la_print_typedef initializer.
2171 (rust_language::print_typedef): New member function,
2172 implementation from rust_print_typedef.
2173 * typeprint.c (default_print_typedef): Delete.
2174
2175 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2176
2177 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2178 (ada_language::printstr): New member function.
2179 * c-lang.c (c_language_data): Delete la_printstr initializer.
2180 (cplus_language_data): Likewise.
2181 (asm_language_data): Likewise.
2182 (minimal_language_data): Likewise.
2183 * d-lang.c (d_language_data): Likewise.
2184 * f-lang.c (f_printstr): Rename to f_language::printstr.
2185 (f_language_data): Delete la_printstr initializer.
2186 (f_language::printstr): New member function, implementation from
2187 f_printstr.
2188 * go-lang.c (go_language_data): Delete la_printstr initializer.
2189 * language.c (language_defn::printstr): Define new member
2190 function.
2191 (unk_lang_printstr): Delete.
2192 (unknown_language_data): Delete la_printstr initializer.
2193 (unknown_language::printstr): New member function.
2194 (auto_language_data): Delete la_printstr initializer.
2195 (auto_language::printstr): New member function.
2196 * language.h (language_data): Delete la_printstr field.
2197 (language_defn::printstr): Declare new member function.
2198 (LA_PRINT_STRING): Update call to printstr.
2199 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2200 (m2_language_data): Delete la_printstr initializer.
2201 (m2_language::printstr): New member function, implementation from
2202 m2_printstr.
2203 * objc-lang.c (objc_language_data): Delete la_printstr
2204 initializer.
2205 * opencl-lang.c (opencl_language_data): Likewise.
2206 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2207 (pascal_language_data): Delete la_printstr initializer.
2208 (pascal_language::printstr): New member function, implementation
2209 from pascal_printstr.
2210 * p-lang.h (pascal_printstr): Delete declaration.
2211 * rust-lang.c (rust_printstr): Update header comment.
2212 (rust_language_data): Delete la_printstr initializer.
2213 (rust_language::printstr): New member function.
2214
2215 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2216
2217 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2218 (ada_language::printchar): New member function.
2219 * c-lang.c (c_language_data): Delete la_printchar initializer.
2220 (cplus_language_data): Likewise.
2221 (asm_language_data): Likewise.
2222 (minimal_language_data): Likewise.
2223 * d-lang.c (d_language_data): Likewise.
2224 * f-lang.c (f_printchar): Rename to f_language::printchar.
2225 (f_language_data): Delete la_printchar initializer.
2226 (f_language::printchar): New member function, implementation from
2227 f_printchar.
2228 * go-lang.c (go_language_data): Delete la_printchar initializer.
2229 * language.c (unk_lang_printchar): Delete.
2230 (language_defn::printchar): Define new member function.
2231 (unknown_language_data): Delete la_printchar initializer.
2232 (unknown_language::printchar): New member function.
2233 (auto_language_data): Delete la_printchar initializer.
2234 (auto_language::printchar): New member function.
2235 * language.h (language_data): Delete la_printchar field.
2236 (language_defn::printchar): Declare new member function.
2237 (LA_PRINT_CHAR): Update call to printchar.
2238 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2239 (m2_language::printchar): New member function.
2240 * objc-lang.c (objc_language_data): Delete la_printchar
2241 initializer.
2242 * opencl-lang.c (opencl_language_data): Likewise.
2243 * p-lang.c (pascal_language_data): Delete la_printchar
2244 initializer.
2245 (pascal_language::printchar): New member function.
2246 * rust-lang.c (rust_printchar): Rename to
2247 rust_language::printchar.
2248 (rust_language_data): Delete la_printchar initializer.
2249 (rust_language::printchar): New member function, implementation
2250 from rust_printchar.
2251
2252 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2253
2254 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2255 (ada_language_data): Delete la_emitchar initializer.
2256 (ada_language::emitchar): New member function, implementation from
2257 emit_char.
2258 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2259 (cplus_language_data): Likewise.
2260 (asm_language_data): Likewise.
2261 (minimal_language_data): Likewise.
2262 * d-lang.c (d_language_data): Likewise.
2263 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2264 (f_language_data): Delete la_emitchar initializer.
2265 (f_language::emitchar): New member function, implementation from
2266 f_emit_char.
2267 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2268 * language.c (unk_lang_emit_char): Delete.
2269 (language_defn::emitchar): New member function definition.
2270 (unknown_language_data): Delete la_emitchar initializer.
2271 (unknown_language::emitchar): New member function.
2272 (auto_language_data): Delete la_emitchar initializer.
2273 (auto_language::emitchar): New member function.
2274 * language.h (language_data): Delete la_emitchar field.
2275 (language_defn::emitchar): New member field declaration.
2276 (LA_EMIT_CHAR): Update call to emitchar.
2277 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2278 (m2_language_data): Delete la_emitchar initializer.
2279 (m2_language::emitchar): New member function, implementation from
2280 m2_emit_char.
2281 * objc-lang.c (objc_language_data): Delete la_emitchar
2282 initializer.
2283 * opencl-lang.c (opencl_language_data): Likewise.
2284 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2285 (pascal_language_data): Delete la_emitchar initializer.
2286 (pascal_language::emitchar): New member function, implementation
2287 from pascal_emit_char.
2288 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2289 (rust_language_data): Delete la_emitchar initializer.
2290 (rust_language::emitchar): New member function, implementation
2291 from rust_emitchar.
2292
2293 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2294
2295 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2296 (ada_language_data): Delete la_post_parser initializer.
2297 (ada_language::post_parser): New member function.
2298 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2299 (cplus_language_data): Likewise.
2300 (asm_language_data): Likewise.
2301 (minimal_language_data): Likewise.
2302 * d-lang.c (d_language_data): Likewise.
2303 * f-lang.c (f_language_data): Likewise.
2304 * go-lang.c (go_language_data): Likewise.
2305 * language.c (unknown_language_data): Likewise.
2306 (auto_language_data): Likewise.
2307 * language.h (language_data): Delete la_post_parser field.
2308 (language_defn::post_parser): New member function.
2309 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2310 * objc-lang.c (objc_language_data): Likewise.
2311 * opencl-lang.c (opencl_language_data): Likewise.
2312 * p-lang.c (pascal_language_data): Likewise.
2313 * parse.c (parse_exp_in_context): Update call to post_parser.
2314 (null_post_parser): Delete definition.
2315 * parser-defs.h (null_post_parser): Delete declaration.
2316 * rust-lang.c (rust_language_data): Delete la_post_parser
2317 initializer.
2318
2319 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2320
2321 * ada-lang.c (parse): Rename to ada_language::parser.
2322 (ada_language_data): Delete la_parser initializer.
2323 (ada_language::parser): New member function, implementation from
2324 parse.
2325 * c-lang.c (c_language_data): Delete la_parser initializer.
2326 (cplus_language_data): Likewise.
2327 (asm_language_data): Likewise.
2328 (minimal_language_data): Likewise.
2329 * d-lang.c (d_language_data): Likewise.
2330 (d_language::parser): New member function.
2331 * f-lang.c (f_language_data): Delete la_parser initializer.
2332 (f_language::parser): New member function.
2333 * go-lang.c (go_language_data): Delete la_parser initializer.
2334 (go_language::parser): New member function.
2335 * language.c (unk_lang_parser): Delete.
2336 (language_defn::parser): Define new member function.
2337 (unknown_language_data): Delete la_parser initializer.
2338 (unknown_language::parser): New member function.
2339 (auto_language_data): Delete la_parser initializer.
2340 (auto_language::parser): New member function.
2341 * language.h (language_data): Delete la_parser field.
2342 (language_defn::parser): Declare new member function.
2343 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2344 (m2_language::parser): New member function.
2345 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2346 * opencl-lang.c (opencl_language_data): Likewise.
2347 * p-lang.c (pascal_language_data): Likewise.
2348 (pascal_language::parser): New member function.
2349 * parse.c (parse_exp_in_context): Update call to parser.
2350 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2351 (rust_language::parser): New member function.
2352
2353 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2354
2355 * top.c (print_gdb_configuration): Print --with-python-libdir
2356 configuration value.
2357
2358 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2359
2360 * NEWS: Mention change to the alias command.
2361
2362 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2363
2364 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2365 (alias_command_completer)
2366 (make_alias_options_def_group): New functions.
2367 (alias_opts, alias_option_defs): New struct and array.
2368 (alias_usage_error): Update usage.
2369 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2370 Use option framework.
2371 (_initialize_cli_cmds): Update alias command help.
2372 Update aliases command help.
2373 (show_user):
2374 Add NULL for new default_args lookup_cmd argument.
2375 (valid_command_p): Rename to validate_aliased_command.
2376 Add NULL for new default_args lookup_cmd argument. Verify that the
2377 aliased_command has no default args.
2378 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2379 (lookup_cmd_1, lookup_cmd): New argument default_args.
2380 (add_alias_cmd):
2381 Add NULL for new default_args lookup_cmd argument.
2382 (print_help_for_command): Show default args under the layout
2383 alias some_alias = some_aliased_cmd some_alias_default_arg.
2384 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2385 xfree default_args in destructor.
2386 * cli/cli-script.c (process_next_line, do_define_command):
2387 Add NULL for new default_args lookup_cmd argument.
2388 * command.h: Declare new default_args argument in lookup_cmd
2389 and lookup_cmd_1.
2390 * completer.c (complete_line_internal_1):
2391 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2392 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2393 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2394 Likewise.
2395 * infcmd.c (_initialize_infcmd): Likewise.
2396 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2397 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2398 * python/py-param.c (add_setshow_generic): Likewise.
2399 * remote.c (_initialize_remote): Likewise.
2400 * top.c (execute_command): Prepend default_args if command has some.
2401 (set_verbose):
2402 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2403 * tracepoint.c (validate_actionline, encode_actions_1):
2404 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2405
2406 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2407
2408 * jit.c (jit_read_descriptor): Use bool as the return type.
2409 (jit_breakpoint_re_set_internal): Use bool as the return type.
2410 Invert the return value logic; return true if the jit breakpoint
2411 has been successfully initialized.
2412 (jit_inferior_init): Update the call to
2413 jit_breakpoint_re_set_internal.
2414
2415 2020-06-22 Pedro Alves <palves@redhat.com>
2416
2417 PR gdb/25939
2418 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2419 Use the current inferior instead. Don't return
2420 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2421 wait again.
2422 * sol-thread.c (sol_thread_target::wait): Don't reference
2423 inferior_ptid.
2424 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2425 (sol_update_thread_list_callback): Use the current inferior's pid
2426 instead of inferior_ptid.
2427
2428 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2429
2430 * procfs.c: Cleanup many comments.
2431
2432 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2433 (AFTER_WATCHFLAG): Replace by value.
2434
2435 (MAIN_PROC_NAME_FORMAT): Inline ...
2436 (create_procinfo): ... here.
2437
2438 (procfs_debug_inferior): Remove SYS_exec handling.
2439 (syscall_is_exec): Likewise.
2440 (procfs_set_exec_trap): Likewise.
2441
2442 (syscall_is_lwp_exit): Inline in callers.
2443 (syscall_is_exit): Likewise.
2444 (syscall_is_exec): Likewise.
2445 (syscall_is_lwp_create): Likewise.
2446
2447 (invalidate_cache): Remove #if 0 code.
2448
2449 (make_signal_thread_runnable): Remove.
2450 (procfs_target::resume): Remove #if 0 code.
2451
2452 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2453
2454 PR gdb/25939
2455 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2456 call ...
2457 (procfs_target::create_inferior): ... here.
2458
2459 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2460
2461 * exec.c (validate_exec_file): Ensure the build-id is up to
2462 date by calling reopen_exec_file (that checks file timestamp
2463 to decide to re-read the file).
2464
2465 2020-06-18 Pedro Alves <palves@redhat.com>
2466
2467 PR gdb/25412
2468 * gdbthread.h (delete_thread, delete_thread_silent)
2469 (find_thread_ptid): Update comments.
2470 * thread.c (current_thread_): New global.
2471 (is_current_thread): Move higher, and reimplement.
2472 (inferior_thread): Reimplement.
2473 (set_thread_exited): Use bool. Add assertions.
2474 (add_thread_silent): Simplify thread-reuse handling by always
2475 calling delete_thread.
2476 (delete_thread): Remove intro comment.
2477 (find_thread_ptid): Skip exited threads.
2478 (switch_to_thread_no_regs): Write to current_thread_.
2479 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2480 INFERIOR_PTID. Clear current_thread_.
2481
2482 2020-06-18 Pedro Alves <palves@redhat.com>
2483
2484 * aix-thread.c (pd_update): Use switch_to_thread.
2485
2486 2020-06-18 Pedro Alves <palves@redhat.com>
2487
2488 * ravenscar-thread.c (ravenscar_thread_target): Update.
2489 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2490 (ravenscar_thread_target::add_active_thread): ... this. Don't
2491 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2492 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2493
2494 2020-06-18 Pedro Alves <palves@redhat.com>
2495
2496 * nat/windows-nat.c (current_windows_thread): Remove.
2497 * nat/windows-nat.h (current_windows_thread): Remove.
2498 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2499 Adjust.
2500 (display_selectors): Adjust to fetch the current
2501 windows_thread_info based on inferior_ptid.
2502 (fake_create_process): No longer write to current_windows_thread.
2503 (windows_nat_target::get_windows_debug_event):
2504 Don't set inferior_ptid or current_windows_thread.
2505 (windows_nat_target::wait): Adjust to not rely on
2506 current_windows_thread.
2507 (do_initial_windows_stuff): Now a method of windows_nat_target.
2508 Switch to the last_ptid thread.
2509 (windows_nat_target::attach): Adjust.
2510 (windows_nat_target::detach): Use switch_to_no_thread instead of
2511 writing to inferior_ptid directly.
2512 (windows_nat_target::create_inferior): Adjust.
2513
2514 2020-06-18 Pedro Alves <palves@redhat.com>
2515
2516 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2517
2518 2020-06-18 Pedro Alves <palves@redhat.com>
2519
2520 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2521 after creating it, instead of writing to inferior_ptid. Don't
2522 write to inferior_ptid.
2523
2524 2020-06-18 Pedro Alves <palves@redhat.com>
2525
2526 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2527
2528 2020-06-18 Pedro Alves <palves@redhat.com>
2529
2530 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2531 it, instead of writing to inferior_ptid.
2532
2533 2020-06-18 Pedro Alves <palves@redhat.com>
2534
2535 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2536 to inferior_ptid.
2537
2538 2020-06-18 Pedro Alves <palves@redhat.com>
2539
2540 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2541 instead of writing to inferior_ptid directly.
2542
2543 2020-06-18 Pedro Alves <palves@redhat.com>
2544
2545 * corelow.c (core_target::close): Use switch_to_no_thread instead
2546 of writing to inferior_ptid directly.
2547 (add_to_thread_list, core_target_open): Use switch_to_thread
2548 instead of writing to inferior_ptid directly.
2549
2550 2020-06-18 Pedro Alves <palves@redhat.com>
2551
2552 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2553 inferior_ptid.
2554 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2555 inferior_ptid.
2556 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2557 inferior_ptid directly.
2558 (darwin_nat_target::init_thread_list): Switch to thread, instead
2559 of writing to inferior_ptid.
2560 (darwin_nat_target::attach): Don't write to inferior_ptid.
2561 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2562
2563 2020-06-18 Pedro Alves <palves@redhat.com>
2564
2565 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2566 thread.
2567 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2568 Instead use switch_to_thread.
2569 (gnu_nat_target::detach): Use switch_to_no_thread
2570 instead of writing to inferior_ptid directly. Used passed-in
2571 inferior instead of looking up the inferior by pid.
2572
2573 2020-06-18 Pedro Alves <palves@redhat.com>
2574
2575 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2576 inferior_ptid.
2577
2578 2020-06-18 Pedro Alves <palves@redhat.com>
2579
2580 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2581 inferior_ptid.
2582 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2583 thread.
2584 (nto_procfs_target::detach): Avoid referencing
2585 inferior_ptid. Use switch_to_no_thread instead of writing to
2586 inferior_ptid directly.
2587 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2588 instead of writing to inferior_ptid directly.
2589 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2590 to thread.
2591
2592 2020-06-18 Pedro Alves <palves@redhat.com>
2593
2594 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2595 after creating it, instead of writing to inferior_ptid.
2596 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2597 to inferior_ptid directly.
2598 (gdbsim_target::wait): Don't write to inferior_ptid.
2599
2600 2020-06-18 Pedro Alves <palves@redhat.com>
2601
2602 * remote.c (remote_target::remote_notice_new_inferior): Use
2603 switch_to_thread instead of writing to inferior_ptid directly.
2604 (remote_target::add_current_inferior_and_thread): Use
2605 switch_to_no_thread instead of writing to inferior_ptid directly.
2606 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2607 and switch_to_thread instead of using set_current_inferior or
2608 writing to inferior_ptid directly.
2609
2610 2020-06-18 Pedro Alves <palves@redhat.com>
2611
2612 * tracectf.c (ctf_target_open): Switch to added thread instead of
2613 writing to inferior_ptid directly.
2614 (ctf_target::close): Use switch_to_no_thread instead of writing to
2615 inferior_ptid directly.
2616
2617 2020-06-18 Pedro Alves <palves@redhat.com>
2618
2619 * tracefile-tfile.c (tfile_target_open): Don't write to
2620 inferior_ptid directly, instead switch to added thread.
2621 (tfile_target::close): Use switch_to_no_thread instead of writing
2622 to inferior_ptid directly.
2623
2624 2020-06-18 Pedro Alves <palves@redhat.com>
2625
2626 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2627 (procfs_target::detach): Use switch_to_no_thread
2628 instead of writing to inferior_ptid directly.
2629 (do_attach): Change return type to void. Switch to the added
2630 thread.
2631 (procfs_target::create_inferior): Switch to the added thread.
2632 (procfs_do_thread_registers): Don't write to inferior_ptid.
2633
2634 2020-06-18 Pedro Alves <palves@redhat.com>
2635
2636 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2637 of writing to inferior_ptid.
2638 (scoped_restore_exited_inferior): Delete.
2639 (handle_vfork_child_exec_or_exit): Simplify using
2640 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2641 instead of writing to inferior_ptid.
2642 (THREAD_STOPPED_BY): Delete.
2643 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2644 (thread_stopped_by_hw_breakpoint): Delete.
2645 (save_waitstatus): Use
2646 scoped_restore_current_thread+switch_to_thread, and call
2647 target_stopped_by_watchpoint instead of
2648 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2649 instead of thread_stopped_by_sw_breakpoint, and
2650 target_stopped_by_hw_breakpoint instead of
2651 thread_stopped_by_hw_breakpoint.
2652 (handle_inferior_event)
2653 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2654 inferior_ptid directly, nor
2655 set_current_inferior/set_current_program_space. Use
2656 switch_to_thread / switch_to_inferior_no_thread instead.
2657
2658 2020-06-18 Pedro Alves <palves@redhat.com>
2659
2660 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2661 instead of writing to inferior_ptid.
2662
2663 2020-06-18 Pedro Alves <palves@redhat.com>
2664
2665 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2666 added thread.
2667 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2668 to the added thread.
2669 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2670 instead of writing to inferior_ptid.
2671
2672 2020-06-18 Pedro Alves <palves@redhat.com>
2673
2674 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2675 (register_to_value_test): Mock a program_space too. Heap-allocate
2676 the address space. Don't write to inferior_ptid. Use
2677 switch_to_thread instead.
2678
2679 2020-06-18 Pedro Alves <palves@redhat.com>
2680
2681 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2682 Delete.
2683 (find_signalled_thread()): New, factored out from
2684 linux_make_corefile_notes and adjusted to handle exited threads.
2685 (linux_make_corefile_notes): Adjust to use the new
2686 find_signalled_thread.
2687
2688 2020-06-18 Pedro Alves <palves@redhat.com>
2689
2690 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2691 of saving/restoring inferior_ptid.
2692
2693 2020-06-17 Tom Tromey <tom@tromey.com>
2694
2695 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2696 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2697 declare.
2698 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2699
2700 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
2701
2702 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2703 of partial symtabs.
2704
2705 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2706
2707 * regformats/reg-arm.dat: Remove.
2708 * regformats/reg-bfin.dat: Remove.
2709 * regformats/reg-cris.dat: Remove.
2710 * regformats/reg-crisv32.dat: Remove.
2711 * regformats/reg-m32r.dat: Remove.
2712 * regformats/reg-tilegx.dat: Remove.
2713 * regformats/reg-tilegx32.dat: Remove.
2714
2715 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2716
2717 * features/Makefile (WHICH): Remove arm files.
2718 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2719 * regformats/arm/arm-with-neon.dat: Remove.
2720 * regformats/arm/arm-with-vfpv2.dat: Remove.
2721 * regformats/arm/arm-with-vfpv3.dat: Remove.
2722
2723 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2724
2725 * features/Makefile (XMLTOC): Remove rx.xml.
2726
2727 2020-06-17 Pedro Alves <palves@redhat.com>
2728
2729 * gdbthread.h (thread_control_state) <trap_expected> Update
2730 comments.
2731
2732 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2733
2734 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2735 ada_language::lookup_symbol_nonlocal.
2736 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2737 (ada_language::lookup_symbol_nonlocal): New member function,
2738 implementation from ada_lookup_symbol_nonlocal.
2739 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2740 initializer.
2741 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2742 initializer.
2743 (cplus_language::lookup_symbol_nonlocal): New member function.
2744 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2745 (minimal_language_data) Likewise.
2746 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2747 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2748 initializer.
2749 (d_language::lookup_symbol_nonlocal): New member function.
2750 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2751 initializer.
2752 (f_language::lookup_symbol_nonlocal): New member function.
2753 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2754 initializer.
2755 * language.c (unknown_language_data): Likewise.
2756 (auto_language_data): Likewise.
2757 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2758 field.
2759 (language_defn::lookup_symbol_nonlocal): New member function.
2760 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2761 initializer.
2762 * objc-lang.c (objc_language_data): Likewise.
2763 * opencl-lang.c (opencl_language_data): Likewise.
2764 * p-lang.c (pascal_language_data): Likewise.
2765 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2766 rust_language::lookup_symbol_nonlocal.
2767 (rust_language_data): Delete la_lookup_symbol_nonlocal
2768 initializer.
2769 (rust_language::lookup_symbol_nonlocal): New member function,
2770 implementation from rust_lookup_symbol_nonlocal.
2771 * symtab.c (lookup_symbol_aux): Update call to
2772 lookup_symbol_nonlocal.
2773 (basic_lookup_symbol_nonlocal): Rename to...
2774 (language_defn::lookup_symbol_nonlocal): ...this, and update
2775 header comment. Remove language_defn parameter, and replace with
2776 uses of `this'.
2777 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2778
2779 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2780
2781 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2782 initializer.
2783 (ada_language::value_print_inner): New member function.
2784 * c-lang.c (c_language_data): Delete la_value_print_inner
2785 initializer.
2786 (cplus_language_data): Likewise.
2787 (asm_language_data): Likewise.
2788 (minimal_language_data): Likewise.
2789 * d-lang.c (d_language_data): Likewise.
2790 (d_language::value_print_inner): New member function.
2791 * f-lang.c (f_language_data): Delete la_value_print_inner
2792 initializer.
2793 (f_language::value_print_inner): New member function.
2794 * f-lang.h (f_value_print_innner): Rename to...
2795 (f_value_print_inner): ...this (note spelling of 'inner').
2796 * f-valprint.c (f_value_print_innner): Rename to...
2797 (f_value_print_inner): ...this (note spelling of 'inner').
2798 * go-lang.c (go_language_data): Delete la_value_print_inner
2799 initializer.
2800 (go_language::value_print_inner): New member function.
2801 * language.c (language_defn::value_print_inner): Define new member
2802 function.
2803 (unk_lang_value_print_inner): Delete.
2804 (unknown_language_data): Delete la_value_print_inner initializer.
2805 (unknown_language::value_print_inner): New member function.
2806 (auto_language_data): Delete la_value_print_inner initializer.
2807 (auto_language::value_print_inner): New member function.
2808 * language.h (language_data): Delete la_value_print_inner field.
2809 (language_defn::value_print_inner): Delcare new member function.
2810 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2811 initializer.
2812 (m2_language::value_print_inner): New member function.
2813 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2814 initializer.
2815 * opencl-lang.c (opencl_language_data): Likewise.
2816 * p-lang.c (pascal_language_data): Likewise.
2817 (pascal_language::value_print_inner): New member function.
2818 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2819 initializer.
2820 (rust_language::value_print_inner): New member function.
2821 * valprint.c (do_val_print): Update call to value_print_inner.
2822
2823 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2824
2825 * ada-lang.c (ada_language_data): Delete la_value_print
2826 initializer.
2827 (ada_language::value_print): New member function.
2828 * c-lang.c (c_language_data): Delete la_value_print initializer.
2829 (cplus_language_data): Likewise.
2830 (asm_language_data): Likewise.
2831 (minimal_language_data): Likewise.
2832 * d-lang.c (d_language_data): Likewise.
2833 * f-lang.c (f_language_data): Likewise.
2834 * go-lang.c (go_language_data): Likewise.
2835 * language.c (unk_lang_value_print): Delete.
2836 (language_defn::value_print): Define new member function.
2837 (unknown_language_data): Delete la_value_print initializer.
2838 (unknown_language::value_print): New member function.
2839 (auto_language_data): Delete la_value_print initializer.
2840 (auto_language::value_print): New member function.
2841 * language.h (language_data): Delete la_value_print field.
2842 (language_defn::value_print): Declare new member function.
2843 (LA_VALUE_PRINT): Update call to value_print.
2844 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2845 * objc-lang.c (objc_language_data): Likewise.
2846 * opencl-lang.c (opencl_language_data): Likewise.
2847 * p-lang.c (pascal_language_data): Likewise.
2848 (pascal_language::value_print): New member function.
2849 * rust-lang.c (rust_language_data): Delete la_value_print
2850 initializer.
2851
2852 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2853
2854 * ada-lang.c (ada_watch_location_expression): Rename to
2855 ada_language::watch_location_expression.
2856 (ada_language_data): Delete la_watch_location_expression
2857 initializer.
2858 (ada_language::watch_location_expression): New member function,
2859 implementation from ada_watch_location_expression.
2860 * breakpoint.c (watch_command_1): Update call to
2861 watch_location_expression.
2862 * c-lang.c (c_watch_location_expression): Rename to
2863 language_defn::watch_location_expression.
2864 (c_language_data): Delete la_watch_location_expression
2865 initializer.
2866 (cplus_language_data): Likewise.
2867 (asm_language_data): Likewise.
2868 (minimal_language_data): Likewise.
2869 * c-lang.h (c_watch_location_expression): Delete declaration.
2870 * d-lang.c (d_language_data): Delete la_watch_location_expression
2871 initializer.
2872 * f-lang.c (f_language_data): Likewise.
2873 * go-lang.c (go_language_data): Likewise.
2874 * language.c (language_defn::watch_location_expression): Member
2875 function implementation from c_watch_location_expression.
2876 (unknown_language_data): Delete la_watch_location_expression
2877 initializer.
2878 (auto_language_data): Likewise.
2879 * language.h (language_data): Delete la_watch_location_expression
2880 field.
2881 (language_defn::watch_location_expression): Declare new member
2882 function.
2883 * m2-lang.c (m2_language_data): Delete
2884 la_watch_location_expression initializer.
2885 * objc-lang.c (objc_language_data): Likewise.
2886 * opencl-lang.c (opencl_language_data): Likewise.
2887 * p-lang.c (pascal_language_data): Likewise.
2888 * rust-lang.c (rust_watch_location_expression): Rename to
2889 rust_language::watch_location_expression.
2890 (rust_language_data): Delete la_watch_location_expression
2891 initializer.
2892 (rust_language::watch_location_expression): New member function,
2893 implementation from rust_watch_location_expression.
2894
2895 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2896
2897 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2898 ada_language::collect_symbol_completion_matches.
2899 (ada_language_data): Delete la_collect_symbol_completion_matches
2900 initializer.
2901 (ada_language::collect_symbol_completion_matches): New member
2902 function, implementation from
2903 ada_collect_symbol_completion_matches.
2904 * c-lang.c (c_language_data): Delete
2905 la_collect_symbol_completion_matches initializer.
2906 (cplus_language_data): Likewise.
2907 (asm_language_data): Likewise.
2908 (minimal_language_data): Likewise.
2909 * d-lang.c (d_language_data): Likewise.
2910 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2911 f_language::collect_symbol_completion_matches.
2912 (f_language_data): Delete la_collect_symbol_completion_matches
2913 initializer.
2914 (f_language::collect_symbol_completion_matches) New member
2915 function, implementation from f_collect_symbol_completion_matches.
2916 * go-lang.c (go_language_data): Delete
2917 la_collect_symbol_completion_matches initializer.
2918 * language.c (unknown_language_data): Likewise.
2919 (auto_language_data): Likewise.
2920 * language.h (language_data): Delete
2921 la_collect_symbol_completion_matches field.
2922 (language_defn::collect_symbol_completion_matches): New member
2923 function.
2924 * m2-lang.c (m2_language_data): Delete
2925 la_collect_symbol_completion_matches initializer.
2926 * objc-lang.c (objc_language_data): Likewise.
2927 * opencl-lang.c (opencl_language_data): Likewise.
2928 * p-lang.c (pascal_language_data): Likewise.
2929 * rust-lang.c (rust_language_data): Likewise.
2930 * symtab.c (default_collect_symbol_completion_matches): Delete.
2931 (collect_symbol_completion_matches): Update call to
2932 collect_symbol_completion_matches.
2933 (collect_symbol_completion_matches_type): Likewise.
2934 * symtab.h (default_collect_symbol_completion_matches): Delete
2935 declaration.
2936
2937 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2938
2939 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2940 (ada_language_data): Delete la_word_break_characters initializer.
2941 (ada_language::word_break_characters): New member function.
2942 * c-lang.c (c_language_data): Delete la_word_break_characters
2943 initializer.
2944 (cplus_language_data): Likewise.
2945 (asm_language_data): Likewise.
2946 (minimal_language_data): Likewise.
2947 * completer.c: Update global comment.
2948 (advance_to_expression_complete_word_point): Update call to
2949 word_break_characters.
2950 (complete_files_symbols): Likewise.
2951 (complete_line_internal_1): Likewise.
2952 (default_completer_handle_brkchars): Likewise.
2953 (skip_quoted_chars): Likewise.
2954 * d-lang.c (d_language_data): Delete la_word_break_characters
2955 initializer.
2956 * f-lang.c (f_word_break_characters): Delete.
2957 (f_language_data): Delete la_word_break_characters initializer.
2958 (f_language::word_break_characters): New member function.
2959 * go-lang.c (go_language_data): Delete la_word_break_characters
2960 initializer.
2961 * language.c (unknown_language_data): Likewise.
2962 (auto_language_data): Likewise.
2963 * language.h (default_word_break_characters): Move declaration to
2964 earlier in the file.
2965 (language_data): Delete la_word_break_characters field.
2966 (language_defn::word_break_characters): New member function.
2967 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2968 initializer.
2969 * objc-lang.c (objc_language_data): Likewise.
2970 * opencl-lang.c (opencl_language_data): Likewise.
2971 * p-lang.c (pascal_language_data): Likewise.
2972 * rust-lang.c (rust_language_data): Likewise.
2973
2974 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2975
2976 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2977 (ada_language_data): Delete la_get_symbol_name_matcher
2978 initializer.
2979 (language_defn::get_symbol_name_matcher_inner): New member
2980 function.
2981 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2982 initializer.
2983 (cplus_language_data): Likewise.
2984 (cplus_language::get_symbol_name_matcher_inner): New member
2985 function.
2986 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2987 (minimal_language_data): Likewise.
2988 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2989 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2990 initializer.
2991 * dictionary.c (iter_match_first_hashed): Update call to
2992 get_symbol_name_matcher.
2993 (iter_match_next_hashed): Likewise.
2994 (iter_match_next_linear): Likewise.
2995 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2996 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2997 initializer.
2998 (f_language::get_symbol_name_matcher_inner): New member function.
2999 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
3000 initializer.
3001 * language.c (default_symbol_name_matcher): Update header comment,
3002 make static.
3003 (language_defn::get_symbol_name_matcher): New definition.
3004 (language_defn::get_symbol_name_matcher_inner): Likewise.
3005 (get_symbol_name_matcher): Delete.
3006 (unknown_language_data): Delete la_get_symbol_name_matcher
3007 initializer.
3008 (auto_language_data): Likewise.
3009 * language.h (language_data): Delete la_get_symbol_name_matcher
3010 field.
3011 (language_defn::get_symbol_name_matcher): New member function.
3012 (language_defn::get_symbol_name_matcher_inner): Likewise.
3013 (default_symbol_name_matcher): Delete declaration.
3014 * linespec.c (find_methods): Update call to
3015 get_symbol_name_matcher.
3016 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
3017 initializer.
3018 * minsyms.c (lookup_minimal_symbol): Update call to
3019 get_symbol_name_matcher.
3020 (iterate_over_minimal_symbols): Likewise.
3021 * objc-lang.c (objc_language_data): Delete
3022 la_get_symbol_name_matcher initializer.
3023 * opencl-lang.c (opencl_language_data): Likewise.
3024 * p-lang.c (pascal_language_data): Likewise.
3025 * psymtab.c (psymbol_name_matches): Update call to
3026 get_symbol_name_matcher.
3027 * rust-lang.c (rust_language_data): Delete
3028 la_get_symbol_name_matcher initializer.
3029 * symtab.c (symbol_matches_search_name): Update call to
3030 get_symbol_name_matcher.
3031 (compare_symbol_name): Likewise.
3032
3033 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3034
3035 * ada-lang.c (ada_language_data): Delete la_compute_program
3036 initializer.
3037 * c-lang.c (c_language_data): Likewise.
3038 (c_language::compute_program): New member function.
3039 (cplus_language_data): Delete la_compute_program initializer.
3040 (cplus_language::compute_program): New member function.
3041 (asm_language_data): Delete la_compute_program initializer.
3042 (minimal_language_data): Likewise.
3043 * c-lang.h (c_compute_program): Update comment.
3044 (cplus_compute_program): Likewise.
3045 * compile/compile-c-support.c (c_compute_program): Likewise.
3046 (cplus_compute_program): Likewise.
3047 * compile/compile.c (compile_to_object): Update call to
3048 la_compute_program.
3049 * d-lang.c (d_language_data): Delete la_compute_program
3050 initializer.
3051 * f-lang.c (f_language_data): Likewise.
3052 * go-lang.c (go_language_data): Likewise.
3053 * language.c (unknown_language_data): Likewise.
3054 (auto_language_data): Likewise.
3055 * language.h (language_data): Delete la_compute_program field.
3056 (language_defn::compute_program): New member function.
3057 * m2-lang.c (m2_language_data): Delete la_compute_program
3058 initializer.
3059 * objc-lang.c (objc_language_data): Likewise.
3060 * opencl-lang.c (opencl_language_data): Likewise.
3061 * p-lang.c (pascal_language_data): Likewise.
3062 * rust-lang.c (rust_language_data): Likewise.
3063
3064 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3065
3066 * ada-lang.c (ada_language_data) Delete
3067 la_class_name_from_physname initializer.
3068 * c-lang.c (c_language_data): Likewise.
3069 (cplus_language_data): Likewise.
3070 (cplus_language::class_name_from_physname): New member function.
3071 (asm_language_data): Delete la_class_name_from_physname
3072 initializer.
3073 (minimal_language_data): Likewise.
3074 * d-lang.c (d_language_data): Likewise.
3075 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
3076 method on language_defn class.
3077 (guess_full_die_structure_name): Likewise.
3078 * f-lang.c (f_language_data): Delete la_class_name_from_physname
3079 initializer.
3080 * go-lang.c (go_language_data): Likewise.
3081 * language.c (language_class_name_from_physname): Delete.
3082 (unk_lang_class_name): Delete.
3083 (unknown_language_data): Delete la_class_name_from_physname
3084 initializer.
3085 (auto_language_data): Likewise.
3086 * language.h (language_data): Delete la_class_name_from_physname
3087 field.
3088 (language_defn::class_name_from_physname): New function.
3089 (language_class_name_from_physname): Delete declaration.
3090 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
3091 initializer.
3092 * objc-lang.c (objc_language_data): Likewise.
3093 * opencl-lang.c (opencl_language_data): Likewise.
3094 * p-lang.c (pascal_language_data): Likewise.
3095 * rust-lang.c (rust_language_data): Likewise.
3096
3097 2020-06-16 Tom Tromey <tom@tromey.com>
3098
3099 * tui/tui-data.h (STATUS_NAME): New macro.
3100 * tui/tui-layout.c (tui_remove_some_windows)
3101 (initialize_known_windows, tui_register_window)
3102 (tui_layout_split::remove_windows, initialize_layouts)
3103 (tui_new_layout_command): Don't use hard-coded window names.
3104
3105 2020-06-16 Tom Tromey <tom@tromey.com>
3106
3107 PR tui/25348:
3108 * tui/tui.c (tui_ensure_readline_initialized): Rename from
3109 tui_initialize_readline. Only run once. Call rl_initialize.
3110 * tui/tui.h (tui_ensure_readline_initialized): Rename from
3111 tui_initialize_readline.
3112 * tui/tui-io.c (tui_setup_io): Call
3113 tui_ensure_readline_initialized.
3114 * tui/tui-interp.c (tui_interp::init): Update.
3115
3116 2020-06-16 Tom Tromey <tom@tromey.com>
3117
3118 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
3119 Also preserve the status window.
3120
3121 2020-06-16 Tom Tromey <tom@tromey.com>
3122
3123 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
3124 where m_window==nullptr.
3125
3126 2020-06-15 Tom Tromey <tromey@adacore.com>
3127
3128 * windows-nat.c (windows_nat::handle_output_debug_string):
3129 Update.
3130 (windows_nat::handle_ms_vc_exception): Update.
3131 * target.h (target_read_string): Change API.
3132 * target.c (target_read_string): Change API.
3133 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
3134 Update.
3135 * solib-frv.c (frv_current_sos): Update.
3136 * solib-dsbt.c (dsbt_current_sos): Update.
3137 * solib-darwin.c (darwin_current_sos): Update.
3138 * linux-thread-db.c (inferior_has_bug): Update.
3139 * expprint.c (print_subexp_standard): Update.
3140 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
3141 (ada_exception_message_1): Update.
3142
3143 2020-06-15 Tom Tromey <tromey@adacore.com>
3144
3145 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
3146
3147 2020-06-15 Tom Tromey <tromey@adacore.com>
3148
3149 * valprint.c (read_string): Update comment.
3150 * target.c (MIN): Remove.
3151 (target_read_string): Rewrite.
3152
3153 2020-06-15 Tom Tromey <tromey@adacore.com>
3154
3155 * corefile.c (read_memory_string): Remove.
3156 * ada-valprint.c (ada_value_print_ptr): Update.
3157 * ada-lang.h (ada_tag_name): Change return type.
3158 * ada-lang.c (type_from_tag): Update.
3159 (ada_tag_name_from_tsd): Change return type. Use
3160 target_read_string.
3161 (ada_tag_name): Likewise.
3162 * gdbcore.h (read_memory_string): Don't declare.
3163
3164 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
3165
3166 * symtab.c (rbreak_command): Ignore Windows drive colon.
3167
3168 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
3169
3170 * NEWS: Mention removed GDBserver host support.
3171
3172 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
3173
3174 * features/riscv/rebuild-csr-xml.sh: Updated.
3175
3176 2020-06-11 Tom Tromey <tom@tromey.com>
3177
3178 PR gdb/18318:
3179 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3180
3181 2020-06-09 Jonny Grant <jg@jguk.org>
3182 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3183
3184 * main.c (captured_main_1): Don't print new line after help.
3185 (print_gdb_help): add mailing list and IRC channel information
3186 to --help. Add new lines between items in the footer. Remove
3187 quotes around bug url.
3188
3189 2020-06-11 Keith Seitz <keiths@redhat.com>
3190
3191 PR gdb/21356
3192 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3193 Resolve typedefs for type length calculations.
3194
3195 2020-06-10 Tom de Vries <tdevries@suse.de>
3196
3197 PR ada/24713
3198 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3199 (write_psymbols): Enable .gdb_index for ada.
3200 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3201 ada.
3202
3203 2020-06-10 Tom de Vries <tdevries@suse.de>
3204
3205 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3206 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3207 namei" instead of "const char *name" argument.
3208 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3209 dw2_symtab_iter_init.
3210
3211 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3212
3213 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3214 to use type::field and field::type instead.
3215
3216 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3217
3218 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3219 to use field::type instead.
3220
3221 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3222
3223 * gdbtypes.h (struct field) <type, set_type>: New methods.
3224 Rename `type` field to...
3225 <m_type>: ... this. Change references throughout to use type or
3226 set_type methods.
3227 (FIELD_TYPE): Use field::type. Change call sites that modify
3228 the field's type to use field::set_type instead.
3229
3230 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3231
3232 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3233 to use type::index_type instead.
3234
3235 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3236
3237 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3238 methods.
3239 (TYPE_INDEX_TYPE): Use type::index_type.
3240 * gdbtypes.c (create_array_type_with_stride): Likewise.
3241
3242 2020-06-07 Tom Tromey <tom@tromey.com>
3243
3244 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3245 parameter.
3246 (generic_value_print): Update.
3247
3248 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3249
3250 Revert commit 982a38f60b0.
3251 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3252
3253 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3254
3255 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3256 avoid use after free.
3257
3258 2020-06-05 Tom de Vries <tdevries@suse.de>
3259
3260 * NEWS: Fix typos.
3261
3262 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
3263
3264 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3265 the per_bfd object.
3266 (dwarf2_read_debug_names): Likewise.
3267 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3268 object when re-using a per_bfd object with an index.
3269
3270 2020-06-03 Tom de Vries <tdevries@suse.de>
3271
3272 PR symtab/26046
3273 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3274 children for C++.
3275 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3276 DW_TAG_subprogram.
3277
3278 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3279
3280 * ada-lang.c (ada_language_data): Delete skip_trampoline
3281 initializer.
3282 * c-lang.c (c_language_data): Likewise.
3283 (cplus_language_data): Likewise.
3284 (cplus_language::skip_trampoline): New member function.
3285 (asm_language_data): Delete skip_trampoline initializer.
3286 (minimal_language_data): Likewise.
3287 * d-lang.c (d_language_data): Likewise.
3288 * f-lang.c (f_language_data): Likewise.
3289 * go-lang.c (go_language_data): Likewise.
3290 * language.c (unk_lang_trampoline): Delete function.
3291 (skip_language_trampoline): Update.
3292 (unknown_language_data): Delete skip_trampoline initializer.
3293 (auto_language_data): Likewise.
3294 * language.h (language_data): Delete skip_trampoline field.
3295 (language_defn::skip_trampoline): New function.
3296 * m2-lang.c (m2_language_data): Delete skip_trampoline
3297 initializer.
3298 * objc-lang.c (objc_skip_trampoline): Delete function, move
3299 implementation to objc_language::skip_trampoline.
3300 (objc_language_data): Delete skip_trampoline initializer.
3301 (objc_language::skip_trampoline): New member function with
3302 implementation from objc_skip_trampoline.
3303 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3304 initializer.
3305 * p-lang.c (pascal_language_data): Likewise.
3306 * rust-lang.c (rust_language_data): Likewise.
3307
3308 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3309
3310 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3311 (ada_language::demangle): New member function.
3312 * c-lang.c (c_language_data): Delete la_demangle initializer.
3313 (cplus_language_data): Delete la_demangle initializer.
3314 (cplus_language::demangle): New member function.
3315 (asm_language_data): Delete la_demangle initializer.
3316 (minimal_language_data): Delete la_demangle initializer.
3317 * d-lang.c (d_language_data): Delete la_demangle initializer.
3318 (d_language::demangle): New member function.
3319 * f-lang.c (f_language_data): Delete la_demangle initializer.
3320 (f_language::demangle): New member function.
3321 * go-lang.c (go_language_data): Delete la_demangle initializer.
3322 (go_language::demangle): New member function.
3323 * language.c (language_demangle): Update.
3324 (unk_lang_demangle): Delete.
3325 (unknown_language_data): Delete la_demangle initializer.
3326 (unknown_language::demangle): New member function.
3327 (auto_language_data): Delete la_demangle initializer.
3328 (auto_language::demangle): New member function.
3329 * language.h (language_data): Delete la_demangle field.
3330 (language_defn::demangle): New function.
3331 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3332 * objc-lang.c (objc_language_data): Delete la_demangle
3333 initializer.
3334 (objc_language::demangle): New member function.
3335 * opencl-lang.c (opencl_language_data): Delete la_demangle
3336 initializer.
3337 * p-lang.c (pascal_language_data): Likewise.
3338 * rust-lang.c (rust_language_data): Likewise.
3339 (rust_language::demangle): New member function.
3340
3341 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3342
3343 * ada-lang.c (ada_language_data): Delete la_print_type
3344 initializer.
3345 (ada_language::print_type): New member function.
3346 * c-lang.c (c_language_data): Delete la_print_type initializer.
3347 (c_language::print_type): New member function.
3348 (cplus_language_data): Delete la_print_type initializer.
3349 (cplus_language::print_type): New member function.
3350 (asm_language_data): Delete la_print_type initializer.
3351 (asm_language::print_type): New member function.
3352 (minimal_language_data): Delete la_print_type initializer.
3353 (minimal_language::print_type): New member function.
3354 * d-lang.c (d_language_data): Delete la_print_type initializer.
3355 (d_language::print_type): New member function.
3356 * f-lang.c (f_language_data): Delete la_print_type initializer.
3357 (f_language::print_type): New member function.
3358 * go-lang.c (go_language_data): Delete la_print_type initializer.
3359 (go_language::print_type): New member function.
3360 * language.c (unk_lang_print_type): Delete.
3361 (unknown_language_data): Delete la_print_type initializer.
3362 (unknown_language::print_type): New member function.
3363 (auto_language_data): Delete la_print_type initializer.
3364 (auto_language::print_type): New member function.
3365 * language.h (language_data): Delete la_print_type field.
3366 (language_defn::print_type): New function.
3367 (LA_PRINT_TYPE): Update.
3368 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3369 (m2_language::print_type): New member function.
3370 * objc-lang.c (objc_language_data): Delete la_print_type
3371 initializer.
3372 (objc_language::print_type): New member function.
3373 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3374 to opencl_language::print_type.
3375 (opencl_language_data): Delete la_print_type initializer.
3376 (opencl_language::print_type): New member function, implementation
3377 from opencl_print_type.
3378 * p-lang.c (pascal_language_data): Delete la_print_type
3379 initializer.
3380 (pascal_language::print_type): New member function.
3381 * rust-lang.c (rust_print_type): Delete, implementation moved to
3382 rust_language::print_type.
3383 (rust_language_data): Delete la_print_type initializer.
3384 (rust_language::print_type): New member function, implementation
3385 from rust_print_type.
3386
3387 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3388
3389 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3390 implementation moves to...
3391 (ada_language::sniff_from_mangled_name): ...here. Update return
3392 type.
3393 (ada_language_data): Delete la_sniff_from_mangled_name
3394 initializer.
3395 * c-lang.c (c_language_data): Likewise.
3396 (cplus_language_data): Likewise.
3397 (cplus_language::sniff_from_mangled_name): New member function,
3398 implementation taken from gdb_sniff_from_mangled_name.
3399 (asm_language_data): Delete la_sniff_from_mangled_name
3400 initializer.
3401 (minimal_language_data): Likewise.
3402 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3403 implementation moves to cplus_language::sniff_from_mangled_name.
3404 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3405 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3406 moves to...
3407 (d_language::sniff_from_mangled_name): ...here.
3408 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3409 * f-lang.c (f_language_data): Likewise.
3410 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3411 moves to...
3412 (go_language::sniff_from_mangled_name): ...here.
3413 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3414 * language.c (language_sniff_from_mangled_name): Delete.
3415 (unknown_language_data): Delete la_sniff_from_mangled_name
3416 initializer.
3417 (auto_language_data): Likewise.
3418 * language.h (language_data): Delete la_sniff_from_mangled_name
3419 field.
3420 (language_defn::sniff_from_mangled_name): New function.
3421 (language_sniff_from_mangled_name): Delete declaration.
3422 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3423 field.
3424 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3425 implementation moves to...
3426 (objc_language::sniff_from_mangled_name): ...here.
3427 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3428 * opencl-lang.c (opencl_language_data): Likewise.
3429 * p-lang.c (pascal_language_data): Likewise.
3430 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3431 implementation moves to...
3432 (rust_language::sniff_from_mangled_name): ...here.
3433 (rust_language_data): Delete la_sniff_from_mangled_name
3434 initializer.
3435 * symtab.c (symbol_find_demangled_name): Call
3436 sniff_from_mangled_name member function.
3437
3438 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3439
3440 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3441 initializer.
3442 * c-lang.c (c_language_data): Likewise.
3443 (cplus_language_data): Likewise.
3444 (cplus_language::search_name_hash): New member function.
3445 (asm_language_data): Delete la_search_name_hash initializer.
3446 (minimal_language_data): Likewise.
3447 * d-lang.c (d_language_data): Likewise.
3448 * dictionary.c (default_search_name_hash): Rename to...
3449 (language_defn::search_name_hash): ...this.
3450 * f-lang.c (f_language_data): Likewise.
3451 (f_language::search_name_hash): New member function.
3452 * go-lang.c (go_language_data): Delete la_search_name_hash
3453 initializer.
3454 * language.c (unknown_language_data): Likewise.
3455 (auto_language_data): Likewise.
3456 * language.h (struct language_data): Delete la_search_name_hash
3457 field.
3458 (language_defn::search_name_hash): Declare new member function.
3459 (default_search_name_hash): Delete declaration.
3460 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3461 initializer.
3462 * objc-lang.c (objc_language_data): Likewise.
3463 * opencl-lang.c (opencl_language_data): Likewise.
3464 * p-lang.c (pascal_language_data): Likewise.
3465 * rust-lang.c (rust_language_data): Likewise.
3466 * symtab.c (search_name_hash): Update call.
3467
3468 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3469
3470 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3471 initializer.
3472 * c-lang.c (class compile_instance): Declare.
3473 (c_language_data): Delete la_get_compile_instance initializer.
3474 (c_language::get_compile_instance): New member function.
3475 (cplus_language_data): Delete la_get_compile_instance initializer.
3476 (cplus_language::get_compile_instance): New member function.
3477 (asm_language_data): Delete la_get_compile_instance initializer.
3478 (minimal_language_data): Likewise.
3479 * c-lang.h (c_get_compile_context): Update comment.
3480 (cplus_get_compile_context): Update comment.
3481 * compile/compile.c (compile_to_object): Update calls, don't rely
3482 on function pointer being NULL.
3483 * d-lang.c (d_language_data): Delete la_get_compile_instance
3484 initializer.
3485 * f-lang.c (f_language_data): Likewise.
3486 * go-lang.c (go_language_data): Likewise.
3487 * language.c (unknown_language_data): Likewise.
3488 (auto_language_data): Likewise.
3489 * language.h (language_data): Delete la_get_compile_instance field.
3490 (language_defn::get_compile_instance): New member function.
3491 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3492 initializer.
3493 * objc-lang.c (objc_language_data): Likewise.
3494 * opencl-lang.c (opencl_language_data): Likewise.
3495 * p-lang.c (pascal_language_data): Likewise.
3496 * rust-lang.c (rust_language_data): Likewise.
3497
3498 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3499
3500 * ada-lang.c (ada_add_all_symbols): Update comment.
3501 (ada_iterate_over_symbols): Delete, move implementation to...
3502 (ada_language::iterate_over_symbols): ...here, a new member
3503 function, rewrite to use range based for loop.
3504 (ada_language_data): Delete la_iterate_over_symbols initializer.
3505 * c-lang.c (c_language_data): Likewise.
3506 (cplus_language_data): Likewise.
3507 (asm_language_data): Likewise.
3508 (minimal_language_data): Likewise.
3509 * d-lang.c (d_language_data): Likewise.
3510 * f-lang.c (f_language_data): Likewise.
3511 * go-lang.c (go_language_data): Likewise.
3512 * language.c (unknown_language_data): Likewise.
3513 (auto_language_data): Likewise.
3514 * language.h (language_data): Delete la_iterate_over_symbols field.
3515 (language_defn::iterate_over_symbols): New member function.
3516 (LA_ITERATE_OVER_SYMBOLS): Update.
3517 * linespec.c (iterate_over_all_matching_symtabs): Update.
3518 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3519 initializer.
3520 * objc-lang.c (objc_language_data): Likewise.
3521 * opencl-lang.c (opencl_language_data): Likewise.
3522 * p-lang.c (pascal_language_data): Likewise.
3523 * rust-lang.c (rust_language_data): Likewise.
3524
3525 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3526
3527 * ada-lang.c (ada_language_data): Delete
3528 la_lookup_transparent_type initializer.
3529 * c-lang.c (c_language_data): Likewise.
3530 (cplus_language_data): Likewise.
3531 (cplus_language::lookup_transparent_type): New member function.
3532 (asm_language_data): Delete la_lookup_transparent_type
3533 initializer.
3534 (minimal_language_data): Likewise.
3535 * d-lang.c (d_language_data): Likewise.
3536 * f-lang.c (f_language_data): Likewise.
3537 * go-lang.c (go_language_data): Likewise.
3538 * language.c (unknown_language_data): Likewise.
3539 (auto_language_data): Likewise.
3540 * language.h (struct language_data): Delete
3541 la_lookup_transparent_type field.
3542 (language_defn::lookup_transparent_type): New member function.
3543 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3544 initializer.
3545 * objc-lang.c (objc_language_data): Likewise.
3546 * opencl-lang.c (opencl_language_data): Likewise.
3547 * p-lang.c (pascal_language_data): Likewise.
3548 * rust-lang.c (rust_language_data): Likewise.
3549 * symtab.c (symbol_matches_domain): Update call.
3550
3551 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3552
3553 * ada-lang.c (ada_language_arch_info): Delete function, move
3554 implementation to...
3555 (ada_language::language_arch_info): ...here, a new member
3556 function.
3557 (ada_language_data): Delete la_language_arch_info.
3558 * c-lang.c (c_language_data): Likewise.
3559 (c_language::language_arch_info): New member function.
3560 (cplus_language_arch_info): Delete function, move
3561 implementation to...
3562 (cplus_language::language_arch_info): ...here, a new member
3563 function.
3564 (cplus_language_data): Delete la_language_arch_info.
3565 (asm_language_data): Likewise.
3566 (asm_language::language_arch_info): New member function.
3567 (minimal_language_data): Delete la_language_arch_info.
3568 (minimal_language::language_arch_info): New member function.
3569 * d-lang.c (d_language_arch_info): Delete function, move
3570 implementation to...
3571 (d_language::language_arch_info): ...here, a new member
3572 function.
3573 (d_language_data): Delete la_language_arch_info.
3574 * f-lang.c (f_language_arch_info): Delete function, move
3575 implementation to...
3576 (f_language::language_arch_info): ...here, a new member
3577 function.
3578 (f_language_data): Delete la_language_arch_info.
3579 * go-lang.c (go_language_arch_info): Delete function, move
3580 implementation to...
3581 (go_language::language_arch_info): ...here, a new member
3582 function.
3583 (go_language_data): Delete la_language_arch_info.
3584 * language.c (unknown_language_data): Likewise.
3585 (unknown_language::language_arch_info): New member function.
3586 (auto_language_data): Delete la_language_arch_info.
3587 (auto_language::language_arch_info): New member function.
3588 (language_gdbarch_post_init): Update call to
3589 la_language_arch_info.
3590 * language.h (language_data): Delete la_language_arch_info
3591 function pointer.
3592 (language_defn::language_arch_info): New function.
3593 * m2-lang.c (m2_language_arch_info): Delete function, move
3594 implementation to...
3595 (m2_language::language_arch_info): ...here, a new member
3596 function.
3597 (m2_language_data): Delete la_language_arch_info.
3598 * objc-lang.c (objc_language_arch_info): Delete function, move
3599 implementation to...
3600 (objc_language::language_arch_info): ...here, a new member
3601 function.
3602 (objc_language_data): Delete la_language_arch_info.
3603 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3604 implementation to...
3605 (opencl_language::language_arch_info): ...here, a new member
3606 function.
3607 (opencl_language_data): Delete la_language_arch_info.
3608 * p-lang.c (pascal_language_arch_info): Delete function, move
3609 implementation to...
3610 (pascal_language::language_arch_info): ...here, a new member
3611 function.
3612 (pascal_language_data): Delete la_language_arch_info.
3613 * rust-lang.c (rust_language_arch_info): Delete function, move
3614 implementation to...
3615 (rust_language::language_arch_info): ...here, a new member
3616 function.
3617 (rust_language_data): Delete la_language_arch_info.
3618
3619 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3620
3621 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3622 initializer.
3623 * c-lang.c (c_language_data): Likewise.
3624 (cplus_language_data): Likewise.
3625 (cplus_language::pass_by_reference_info): New method.
3626 (asm_language_data): Delete la_pass_by_reference initializer.
3627 (minimal_language_data): Likewise.
3628 * cp-abi.c (cp_pass_by_reference): Remove use of
3629 default_pass_by_reference.
3630 * d-lang.c (d_language_data): Likewise.
3631 * f-lang.c (f_language_data): Likewise.
3632 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3633 default_pass_by_reference.
3634 * go-lang.c (go_language_data): Likewise.
3635 * language.c (language_pass_by_reference): Update.
3636 (default_pass_by_reference): Delete.
3637 (unknown_language_data): Delete la_pass_by_reference
3638 initializer.
3639 (auto_language_data): Likewise.
3640 * language.h (struct language_data): Delete la_pass_by_reference
3641 field.
3642 (language_defn::pass_by_reference_info): New member function.
3643 (default_pass_by_reference): Delete declaration.
3644 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3645 initializer.
3646 * objc-lang.c (objc_language_data): Likewise.
3647 * opencl-lang.c (opencl_language_data): Likewise.
3648 * p-lang.c (pascal_language_data): Likewise.
3649 * rust-lang.c (rust_language_data): Likewise.
3650
3651 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3652
3653 * ada-lang.c (ada_read_var_value): Delete function, move
3654 implementation to...
3655 (ada_language::read_var_value): ...here.
3656 (ada_language_data): Delete la_read_var_value initializer.
3657 * c-lang.c (c_language_data): Likewise.
3658 (cplus_language_data): Likewise.
3659 (minimal_language_data): Likewise.
3660 * d-lang.c (d_language_data): Likewise.
3661 * f-lang.c (f_language_data): Likewise.
3662 * findvar.c (default_read_var_value): Rename to...
3663 (language_defn::read_var_value): ...this.
3664 * findvar.c (read_var_value): Update header comment, and change to
3665 call member function instead of function pointer.
3666 * go-lang.c (go_language_data): Likewise.
3667 * language.c (unknown_language_data): Delete la_read_var_value
3668 initializer.
3669 (auto_language_data): Likewise.
3670 * language.h (struct language_data): Delete la_read_var_value
3671 field.
3672 (language_defn::read_var_value): New member function.
3673 (default_read_var_value): Delete declaration.
3674 * m2-lang.c (m2_language_data): Delete la_read_var_value
3675 initializer.
3676 * objc-lang.c (objc_language_data): Likewise.
3677 * opencl-lang.c (opencl_language_data): Likewise.
3678 * p-lang.c (pascal_language_data): Likewise.
3679 * rust-lang.c (rust_language_data): Likewise.
3680 * value.h (default_read_var_value): Delete declaration.
3681
3682 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3683
3684 * ada-lang.c (ada_print_array_index): Delete function, move
3685 implementation to...
3686 (ada_language::print_array_index): ...here.
3687 (ada_language_data): Delete la_print_array_index initializer.
3688 * c-lang.c (c_language_data): Likewise.
3689 (cplus_language_data): Likewise.
3690 (minimal_language_data): Likewise.
3691 * d-lang.c (d_language_data): Likewise.
3692 * f-lang.c (f_language_data): Likewise.
3693 * go-lang.c (go_language_data): Likewise.
3694 * language.c (default_print_array_index): Delete function, move
3695 implementation to...
3696 (language_defn::print_array_index): ...here.
3697 (unknown_language_data): Delete la_print_array_index initializer.
3698 (auto_language_data): Likewise.
3699 * language.h (struct language_data): Delete la_print_array_index
3700 field.
3701 (language_defn::print_array_index): New member function.
3702 (LA_PRINT_ARRAY_INDEX): Update.
3703 (default_print_array_index): Delete declaration.
3704 * m2-lang.c (m2_language_data): Delete la_print_array_index
3705 initializer.
3706 * objc-lang.c (objc_language_data): Likewise.
3707 * opencl-lang.c (opencl_language_data): Likewise.
3708 * p-lang.c (pascal_language_data): Likewise.
3709 * rust-lang.c (rust_language_data): Likewise.
3710
3711 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3712
3713 * gdb/ada-lang.c (ada_language_defn): Convert to...
3714 (ada_language_data): ...this.
3715 (class ada_language): New class.
3716 (ada_language_defn): New static global.
3717 * gdb/c-lang.c (c_language_defn): Convert to...
3718 (c_language_data): ...this.
3719 (class c_language): New class.
3720 (c_language_defn): New static global.
3721 (cplus_language_defn): Convert to...
3722 (cplus_language_data): ...this.
3723 (class cplus_language): New class.
3724 (cplus_language_defn): New static global.
3725 (asm_language_defn): Convert to...
3726 (asm_language_data): ...this.
3727 (class asm_language): New class.
3728 (asm_language_defn): New static global.
3729 (minimal_language_defn): Convert to...
3730 (minimal_language_data): ...this.
3731 (class minimal_language): New class.
3732 (minimal_language_defn): New static global.
3733 * gdb/d-lang.c (d_language_defn): Convert to...
3734 (d_language_data): ...this.
3735 (class d_language): New class.
3736 (d_language_defn): New static global.
3737 * gdb/f-lang.c (f_language_defn): Convert to...
3738 (f_language_data): ...this.
3739 (class f_language): New class.
3740 (f_language_defn): New static global.
3741 * gdb/go-lang.c (go_language_defn): Convert to...
3742 (go_language_data): ...this.
3743 (class go_language): New class.
3744 (go_language_defn): New static global.
3745 * gdb/language.c (unknown_language_defn): Remove declaration.
3746 (current_language): Initialize to nullptr, real initialization is
3747 moved to _initialize_language.
3748 (languages): Delete global.
3749 (language_defn::languages): Define.
3750 (set_language_command): Use language_defn::languages.
3751 (set_language): Likewise.
3752 (range_error): Likewise.
3753 (language_enum): Likewise.
3754 (language_def): Likewise.
3755 (add_set_language_command): Use language_def::languages for the
3756 language list, and language_def to lookup language pointers.
3757 (skip_language_trampoline): Use language_defn::languages.
3758 (unknown_language_defn): Convert to...
3759 (unknown_language_data): ...this.
3760 (class unknown_language): New class.
3761 (unknown_language_defn): New static global.
3762 (auto_language_defn): Convert to...
3763 (auto_language_data): ...this.
3764 (class auto_language): New class.
3765 (auto_language_defn): New static global.
3766 (language_gdbarch_post_init): Use language_defn::languages.
3767 (_initialize_language): Initialize current_language.
3768 * gdb/language.h (struct language_defn): Rename to...
3769 (struct language_data): ...this.
3770 (struct language_defn): New.
3771 (auto_language_defn): Delete.
3772 (unknown_language_defn): Delete.
3773 (minimal_language_defn): Delete.
3774 (ada_language_defn): Delete.
3775 (asm_language_defn): Delete.
3776 (c_language_defn): Delete.
3777 (cplus_language_defn): Delete.
3778 (d_language_defn): Delete.
3779 (f_language_defn): Delete.
3780 (go_language_defn): Delete.
3781 (m2_language_defn): Delete.
3782 (objc_language_defn): Delete.
3783 (opencl_language_defn): Delete.
3784 (pascal_language_defn): Delete.
3785 (rust_language_defn): Delete.
3786 * gdb/m2-lang.c (m2_language_defn): Convert to...
3787 (m2_language_data): ...this.
3788 (class m2_language): New class.
3789 (m2_language_defn): New static global.
3790 * gdb/objc-lang.c (objc_language_defn): Convert to...
3791 (objc_language_data): ...this.
3792 (class objc_language): New class.
3793 (objc_language_defn): New static global.
3794 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3795 (opencl_language_data): ...this.
3796 (class opencl_language): New class.
3797 (opencl_language_defn): New static global.
3798 * gdb/p-lang.c (pascal_language_defn): Convert to...
3799 (pascal_language_data): ...this.
3800 (class pascal_language): New class.
3801 (pascal_language_defn): New static global.
3802 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3803 language pointer, update comment format.
3804 * gdb/rust-lang.c (rust_language_defn): Convert to...
3805 (rust_language_data): ...this.
3806 (class rust_language): New class.
3807 (rust_language_defn): New static global.
3808
3809 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3810
3811 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3812 member variable.
3813 <m_stmt_at_address>: New member variable.
3814 (lnp_state_machine::record_line): Don't record some lines, update
3815 tracking of is_stmt at the same address.
3816 (lnp_state_machine::lnp_state_machine): Initialise new member
3817 variables.
3818
3819 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3820
3821 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3822 "-include gnu-nat-mig.h".
3823 * gnu-nat-mig.h: New file.
3824 * gnu-nat.c: Include "gnu-nat-mig.h".
3825 (exc_server, msg_reply_server, notify_server,
3826 process_reply_server): Remove declarations.
3827
3828 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3829
3830 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3831 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3832 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3833 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3834 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3835 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3836 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3837 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3838 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3839 to gnu_nat_target class.
3840 * gnu-nat.c: Likewise.
3841 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3842 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3843 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3844 object.
3845 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3846 instead of `gnu_target'.
3847
3848 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3849
3850 * i386-gnu-tdep.c: Include "gdbcore.h"
3851 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3852 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3853 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3854 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3855 i386_gnu_sigcontext_addr): New functions
3856 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3857 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3858 tdep.
3859
3860 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3861
3862 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3863 before fork_inferior call. Avoid calling it if target_is_pushed returns
3864 true.
3865
3866 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3867
3868 * gnu-nat.h (gnu_target): New variable declaration.
3869 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3870 gnu_target.
3871 * gnu-nat.c (gnu_target): New variable.
3872 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3873 add_thread_silent, and add_thread calls.
3874 (gnu_nat_target::create_inferior): Pass gnu_target to
3875 add_thread_silent, thread_change_ptid call.
3876 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3877 call.
3878
3879 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3880
3881 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3882 (gnu_nat_target::find_memory_regions): Remove unused
3883 `old_address' variable.
3884
3885 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3886
3887 * gnu-nat.c: Include "gdbarch.h".
3888
3889 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3890
3891 * reply_mig_hack.awk (Error return): Cast function through
3892 void *, to bypass compiler function call check.
3893
3894 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3895
3896 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3897 $(srcdir)/reply_mig_hack.awk.
3898
3899 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3900
3901 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3902
3903 2020-05-30 Jonny Grant <jg@jguk.org>
3904
3905 * configure.ac (ACX_BUGURL): change bug URL to https.
3906
3907 2020-05-30 Pedro Alves <palves@redhat.com>
3908
3909 * cp-support.c (replace_typedefs_template): New.
3910 (replace_typedefs_qualified_name): Handle
3911 DEMANGLE_COMPONENT_TEMPLATE.
3912
3913 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
3914
3915 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3916 dwarf2/index-cache.h, dwarf2/index-write.c,
3917 dwarf2/index-write.h, dwarf2/line-header.c,
3918 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3919 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3920 variables and fields from `dwarf2_per_objfile` to just
3921 `per_objfile` throughout.
3922
3923 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3924
3925 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3926 <push_dwarf_reg_entry_value>: Add comment.
3927
3928 2020-05-28 Kevin Buettner <kevinb@redhat.com>
3929 Keith Seitz <keiths@redhat.com>
3930
3931 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3932 instead of PyEval_ReleaseLock.
3933 (class gdbpy_gil): Move to earlier in file.
3934 (finalize_python): Set gdb_python_initialized.
3935 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3936 when not initialized.
3937
3938 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
3939
3940 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3941 <push_dwarf_reg_entry_value>: Remove assert. Override
3942 per_objfile with caller_per_objfile.
3943
3944 2020-05-28 Tom de Vries <tdevries@suse.de>
3945
3946 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3947 PR gold/15646 workaround to symbol kind "type".
3948
3949 2020-05-27 Tom Tromey <tromey@adacore.com>
3950
3951 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3952
3953 2020-05-27 Tom Tromey <tromey@adacore.com>
3954
3955 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3956 Use htab_find_with_hash.
3957 <add_abbrev>: Remove "abbrev_number" parameter.
3958 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3959 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3960 (hash_abbrev): Add comment.
3961 (abbrev_table::lookup_abbrev): Move to header file.
3962 (abbrev_table::read): Update.
3963
3964 2020-05-27 Tom Tromey <tromey@adacore.com>
3965
3966 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3967 method.
3968 <canonical_name>: New member.
3969 <raw_name>: Rename from "name".
3970 (partial_die_info): Initialize canonical_name.
3971 (scan_partial_symbols): Check raw_name.
3972 (partial_die_parent_scope, partial_die_full_name)
3973 (add_partial_symbol, add_partial_subprogram)
3974 (add_partial_enumeration, load_partial_dies): Use "name" method.
3975 (partial_die_info::name): New method.
3976 (partial_die_info::read, guess_partial_die_structure_name)
3977 (partial_die_info::fixup): Update.
3978
3979 2020-05-27 Tom Tromey <tromey@adacore.com>
3980
3981 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3982 <get_ref_die_offset>: Inline.
3983 <get_ref_die_offset_complaint>: New method.
3984 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3985 (attribute::get_ref_die_offset_complaint): Rename from
3986 get_ref_die_offset. Just issue complaint.
3987
3988 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3989
3990 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3991
3992 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3993
3994 * exec.c (exec_file_attach): Use errno value of first openp failure.
3995
3996 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3997
3998 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3999 Don't close thread handle.
4000
4001 2020-05-27 Tom Tromey <tom@tromey.com>
4002 Simon Marchi <simon.marchi@efficios.com>
4003
4004 * objfiles.h (struct objfile) <partial_symtabs>: Now a
4005 shared_ptr.
4006 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
4007 member.
4008 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
4009 dwarf2_per_bfd_objfile_data_key>: New globals.
4010 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
4011 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
4012 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
4013 shared.
4014 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
4015 short-circuit when sharing.
4016 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
4017 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
4018
4019 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4020
4021 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
4022 to...
4023 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
4024 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
4025
4026 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4027
4028 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
4029 build_name_components, find_name_components_bounds>:
4030 Add per_objfile parameter.
4031 (struct mapped_index) <symbol_name_at>: Likewise.
4032 (struct mapped_debug_names): Remove constructor.
4033 <dwarf2_per_objfile>: Remove field.
4034 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
4035 (mapped_index_base::find_name_components_bounds,
4036 mapped_index_base::build_name_components,
4037 dw2_expand_symtabs_matching_symbol): Likewise.
4038 (class mock_mapped_index) <symbol_name_at>: Likewise.
4039 (check_match): Likewise.
4040 (check_find_bounds_finds): Likewise.
4041 (test_mapped_index_find_name_component_bounds): Update.
4042 (CHECK_MATCH): Update.
4043 (dw2_expand_symtabs_matching): Update.
4044 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
4045 per_objfile parameter.
4046 <find_vec_in_debug_names>: Likewise.
4047 <m_per_objfile>: New field.
4048 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
4049 parameter.
4050 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
4051 (dw2_debug_names_iterator::next): Update.
4052 (dw2_debug_names_lookup_symbol): Update.
4053 (dw2_debug_names_expand_symtabs_for_function): Update.
4054 (dw2_debug_names_map_matching_symbols): Update.
4055 (dw2_debug_names_expand_symtabs_matching): Update.
4056 (dwarf2_read_debug_names): Update.
4057
4058 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4059
4060 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
4061 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
4062 move to dwarf2_per_objfile.
4063 <read_in_chain>: Remove.
4064 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
4065 remove_all_cus, age_comp_units>: New methods.
4066 <m_dwarf2_cus>: New member.
4067 (struct dwarf2_per_cu_data) <cu>: Remove.
4068 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
4069 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
4070 moved to methods of dwarf2_per_objfile.
4071 (dwarf2_clear_marks): Remove.
4072 (dwarf2_queue_item::~dwarf2_queue_item): Update.
4073 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
4074 (dwarf2_per_bfd::free_cached_comp_units): Remove.
4075 (dwarf2_per_objfile::remove_all_cus): New.
4076 (class free_cached_comp_units) <~free_cached_comp_units>:
4077 Update.
4078 (load_cu): Update.
4079 (dw2_do_instantiate_symtab): Adjust.
4080 (fill_in_sig_entry_from_dwo_entry): Adjust.
4081 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4082 (cutu_reader::cutu_reader): Likewise.
4083 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
4084 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
4085 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
4086 and dwarf2_per_objfile::age_comp_units.
4087 (load_partial_comp_unit): Update.
4088 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
4089 (process_queue): Likewise.
4090 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
4091 backlink.
4092 (dwarf2_read_addr_index): Likewise.
4093 (follow_die_offset): Likewise.
4094 (dwarf2_fetch_die_loc_sect_off): Likewise.
4095 (dwarf2_fetch_constant_bytes): Likewise.
4096 (dwarf2_fetch_die_type_sect_off): Likewise.
4097 (follow_die_sig_1): Likewise.
4098 (load_full_type_unit): Likewise.
4099 (read_signatured_type): Likewise.
4100 (dwarf2_cu::dwarf2_cu): Don't set cu field.
4101 (dwarf2_cu::~dwarf2_cu): Remove.
4102 (dwarf2_per_objfile::get_cu): New.
4103 (dwarf2_per_objfile::set_cu): New.
4104 (age_cached_comp_units): Rename to...
4105 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
4106 to std::unordered_map.
4107 (free_one_cached_comp_unit): Rename to...
4108 (dwarf2_per_objfile::remove_cu): ... this. Adjust
4109 to std::unordered_map.
4110 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
4111 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
4112 a dwarf2_per_objfile in data.
4113 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
4114 (dwarf2_clear_marks): Remove.
4115
4116 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4117
4118 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
4119 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
4120 (init_tu_and_read_dwo_dies): Likewise.
4121 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
4122 (cutu_reader::cutu_reader): Likewise.
4123 (load_partial_comp_unit): Likewise.
4124 (process_psymtab_comp_unit): Update.
4125 (build_type_psymtabs_1): Update.
4126 (process_skeletonless_type_unit): Update.
4127 (load_full_comp_unit): Update.
4128 (find_partial_die): Update.
4129 (dwarf2_read_addr_index): Update.
4130 (read_signatured_type): Update.
4131
4132 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4133
4134 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
4135 m_header_read_in>: New fields.
4136 <get_header>: New method.
4137 * dwarf2/read.c (per_cu_header_read_in): Remove.
4138 (dwarf2_per_cu_data::get_header): New.
4139 (dwarf2_per_cu_data::addr_size): Update.
4140 (dwarf2_per_cu_data::offset_size): Update.
4141 (dwarf2_per_cu_data::ref_addr_size): Update.
4142
4143 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4144
4145 * dwarf2/read.c (load_cu): Return dwarf2_cu.
4146 (dw2_do_instantiate_symtab): Update.
4147 (queue_and_load_all_dwo_tus): Change parameter from
4148 dwarf2_per_cu_data to dwarf2_cu.
4149 (dwarf2_fetch_die_loc_sect_off): Update.
4150 (dwarf2_fetch_constant_bytes): Update.
4151 (dwarf2_fetch_die_type_sect_off): Update.
4152
4153 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4154
4155 * dwarf2/read.c (process_full_comp_unit,
4156 process_full_type_unit): Remove per_cu, per_objfile paramters.
4157 Add dwarf2_cu parameter.
4158 (process_queue): Update.
4159
4160 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4161
4162 * dwarf2/read.c (create_cu_from_index_list): Replace
4163 dwarf2_per_objfile parameter with dwarf2_per_bfd.
4164 (create_cus_from_index_list): Likewise.
4165 (create_cus_from_index): Likewise.
4166 (create_signatured_type_table_from_index): Likewise.
4167 (create_cus_from_debug_names_list): Likewise.
4168 (create_cus_from_debug_names): Likewise.
4169 (dwarf2_read_gdb_index): Update.
4170 (dwarf2_read_debug_names): Update.
4171
4172 2020-05-27 Tom Tromey <tom@tromey.com>
4173 Simon Marchi <simon.marchi@efficios.com>
4174
4175 * dwarf2/read.h (struct dwarf2_per_objfile)
4176 <get_type_for_signatured_type, set_type_for_signatured_type>:
4177 New methods.
4178 <m_type_map>: New member.
4179 (struct signatured_type) <type>: Remove.
4180 * dwarf2/read.c
4181 (dwarf2_per_objfile::get_type_for_signatured_type,
4182 dwarf2_per_objfile::set_type_for_signatured_type): New.
4183 (get_signatured_type): Use new methods.
4184
4185 2020-05-27 Tom Tromey <tom@tromey.com>
4186 Simon Marchi <simon.marchi@efficios.com>
4187
4188 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4189 (struct dwarf2_per_objfile) <type_units>: New member.
4190 <get_type_unit_group_unshareable>: New method.
4191 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4192 num_symtabs, symtabs>: Remove; move to
4193 type_unit_group_unshareable.
4194 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4195 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4196 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4197
4198 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4199
4200 * dwarf2/read.h (struct dwarf2_per_cu_data):
4201 <dwarf2_per_objfile>: Remove.
4202 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4203 dwarf2_per_objfile.
4204 (create_signatured_type_table_from_index): Likewise.
4205 (create_signatured_type_table_from_debug_names): Likewise.
4206 (create_debug_type_hash_table): Likewise.
4207 (fill_in_sig_entry_from_dwo_entry): Likewise.
4208 (create_type_unit_group): Likewise.
4209 (read_comp_units_from_section): Likewise.
4210 (create_cus_hash_table): Likewise.
4211
4212 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4213
4214 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4215 dwarf2_per_cu_data::dwarf2_per_objfile.
4216 (compute_compunit_symtab_includes): Likewise.
4217 (dwarf2_cu::start_symtab): Likewise.
4218
4219 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4220
4221 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4222 parameter.
4223 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4224 (read_namespace_alias): Update.
4225 (lookup_die_type): Update.
4226 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4227 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4228 Update.
4229 (disassemble_dwarf_expression): Update.
4230
4231 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4232
4233 * dwarf2/read.h (struct dwarf2_queue_item): Add
4234 dwarf2_per_objfile parameter, assign new parameter.
4235 <per_objfile>: New field.
4236 * dwarf2/read.c (free_one_cached_comp_unit): Add
4237 dwarf2_per_objfile parameter.
4238 (queue_comp_unit): Likewise.
4239 (dw2_do_instantiate_symtab): Update.
4240 (process_psymtab_comp_unit): Update.
4241 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4242 (process_imported_unit_die): Update.
4243 (queue_and_load_dwo_tu): Update.
4244 (follow_die_offset): Update.
4245 (follow_die_sig_1): Update.
4246
4247 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4248
4249 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4250 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4251 (read_call_site_scope): Assign per_objfile.
4252 (dwarf2_per_cu_data::objfile): Remove.
4253 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4254 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4255 dwarf2_per_objfile parameter.
4256 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4257 dwarf2_per_objfile parameter.
4258 (dwarf_expr_reg_to_entry_parameter): Add output
4259 dwarf2_per_objfile parameter.
4260 (locexpr_get_frame_base): Update.
4261 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4262 <push_dwarf_reg_entry_value>: Update.
4263 <call_site_to_target_addr>: Update.
4264 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4265 parameter.
4266 (value_of_dwarf_reg_entry): Update.
4267 (rw_pieced_value): Update.
4268 (indirect_synthetic_pointer): Update.
4269 (dwarf2_evaluate_property): Update.
4270 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4271 parameter.
4272 (locexpr_read_variable): Update.
4273 (locexpr_get_symbol_read_needs): Update.
4274 (loclist_read_variable): Update.
4275
4276 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4277
4278 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4279 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4280 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4281 parameter.
4282 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4283 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4284 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4285 parameter.
4286 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4287 sect_variable_value): Add dwarf2_per_objfile parameter.
4288 (class dwarf_evaluate_loc_desc) <dwarf_call,
4289 dwarf_variable_value>: Update.
4290 (fetch_const_value_from_synthetic_pointer): Add
4291 dwarf2_per_objfile parameter.
4292 (fetch_const_value_from_synthetic_pointer): Update.
4293 (coerced_pieced_ref): Update.
4294 (class symbol_needs_eval_context) <dwarf_call,
4295 dwarf_variable_value>: Update.
4296 (dwarf2_compile_expr_to_ax): Update.
4297
4298 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4299
4300 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4301 parameter.
4302 (dwarf2_evaluate_loc_desc_full): Update.
4303
4304 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4305
4306 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4307 parameter.
4308 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4309 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4310 dwarf2_per_objfile parameter.
4311 (decode_debug_loc_dwo_addresses): Likewise.
4312 (dwarf2_find_location_expression): Update.
4313 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4314 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4315 parameter.
4316 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4317 parameter.
4318 (locexpr_describe_location_1): Likewise.
4319 (locexpr_describe_location): Update.
4320
4321 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4322
4323 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4324 Remove.
4325 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4326 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4327 (dwarf2_compile_property_to_c): Update.
4328 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4329 use text offset from objfile.
4330 (locexpr_tracepoint_var_ref): Update.
4331 (locexpr_generate_c_location): Update.
4332 (loclist_describe_location): Update.
4333 (loclist_tracepoint_var_ref): Update.
4334 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4335 dwarf2_per_objfile parameter.
4336 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4337 use text offset from objfile.
4338 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4339
4340 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4341
4342 * dwarf2/expr.h (struct dwarf_expr_context)
4343 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4344 <offset>: Remove.
4345 <per_objfile>: New member.
4346 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4347 dwarf2_per_objfile parameter. Don't set offset, set
4348 per_objfile.
4349 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4350 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4351 a dwarf2_per_objfile object instead of an offset.
4352 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4353 constructor.
4354 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4355 to dwarf2_expr_executor constructor. Don't set offset.
4356 (dwarf2_fetch_cfa_info): Update.
4357 (struct dwarf2_frame_cache) <text_offset>: Remove.
4358 <per_objfile>: New field.
4359 (dwarf2_frame_cache): Update.
4360 (dwarf2_frame_prev_register): Update.
4361 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4362 <dwarf_evaluate_loc_desc>: Add constructor.
4363 (dwarf2_evaluate_loc_desc_full): Update.
4364 (dwarf2_locexpr_baton_eval): Update.
4365 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4366 Add constructor.
4367 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4368
4369 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4370
4371 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4372 addr_sized_int_type>: Move to dwarf2_cu.
4373 <int_type>: Move to dwarf2_per_objfile.
4374 (struct dwarf2_per_objfile) <int_type>: Move here.
4375 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4376 addr_sized_int_type>: Move here.
4377 (read_func_scope): Update.
4378 (read_array_type): Update.
4379 (read_tag_string_type): Update.
4380 (attr_to_dynamic_prop): Update.
4381 (dwarf2_per_cu_data::int_type): Rename to...
4382 (dwarf2_per_objfile::int_type): ... this.
4383 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4384 (dwarf2_cu::addr_sized_int_type): ... this.
4385 (read_subrange_type): Update.
4386 (dwarf2_per_cu_data::addr_type): Rename to...
4387 (dwarf2_cu::addr_type): ... this.
4388 (set_die_type): Update.
4389
4390 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4391
4392 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4393 data through per_cu->cu.
4394
4395 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4396
4397 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4398 dwarf2_per_cu_data parameter fo dwarf2_cu.
4399 (lookup_dwo_type_unit): Likewise.
4400 (read_cutu_die_from_dwo): Likewise.
4401 (lookup_dwo_unit): Likewise.
4402 (open_and_init_dwo_file): Likewise.
4403 (lookup_dwo_cutu): Likewise.
4404 (lookup_dwo_comp_unit): Likewise.
4405 (lookup_dwo_type_unit): Likewise.
4406 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4407 (cutu_reader::cutu_reader): Update.
4408
4409 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4410
4411 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4412 parameter.
4413 (process_full_type_unit): Likewise.
4414 (process_queue): Update.
4415
4416 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4417
4418 * dwarf2/read.c (recursively_compute_inclusions): Add
4419 dwarf2_per_objfile parameter.
4420 (compute_compunit_symtab_includes): Likewise.
4421 (process_cu_includes): Update.
4422
4423 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4424
4425 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4426 parameter.
4427 (create_type_unit_group): Update.
4428 (process_psymtab_comp_unit_reader): Update.
4429 (build_type_psymtabs_reader): Update.
4430
4431 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4432
4433 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4434 object through m_this_cu->cu.
4435
4436 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4437
4438 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4439 the info parameter.
4440 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4441
4442 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4443
4444 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4445 per_objfile parameter.
4446 (load_full_type_unit): Add per_objfile parameter.
4447 (read_signatured_type): Likewise.
4448 (load_full_comp_unit): Likewise.
4449 (load_cu): Likewise.
4450 (dw2_do_instantiate_symtab): Likewise.
4451 (dw2_get_file_names): Likewise.
4452 (dw2_map_symtabs_matching_filename): Update.
4453 (dw_expand_symtabs_matching_file_matcher): Update.
4454 (dw2_map_symbol_filenames): Update.
4455 (process_psymtab_comp_unit): Add per_objfile parameter.
4456 (build_type_psymtabs_1): Update.
4457 (process_skeletonless_type_unit): Update.
4458 (dwarf2_build_psymtabs_hard): Update.
4459 (load_partial_comp_unit): Add per_objfile parameter.
4460 (scan_partial_symbols): Update.
4461 (load_full_comp_unit): Add per_objfile parameter.
4462 (process_imported_unit_die): Update.
4463 (create_cus_hash_table): Update.
4464 (find_partial_die): Update.
4465 (dwarf2_read_addr_index): Update.
4466 (follow_die_offset): Update.
4467 (dwarf2_fetch_die_loc_sect_off): Update.
4468 (dwarf2_fetch_constant_bytes): Update.
4469 (dwarf2_fetch_die_type_sect_off): Update.
4470 (follow_die_sig_1): Update.
4471 (load_full_type_unit): Add per_objfile parameter.
4472 (read_signatured_type): Likewise.
4473
4474 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4475
4476 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4477 of objfile_name.
4478
4479 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4480
4481 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4482 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4483 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4484 field.
4485 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4486 (create_cus_from_index): Update.
4487 (dwarf2_read_gdb_index): Update.
4488 (create_cus_from_debug_names): Update.
4489 (dwarf2_read_debug_names): Update.
4490 (get_abbrev_section_for_cu): Update.
4491 (create_all_comp_units): Update.
4492 (read_attribute_value): Update.
4493 (get_debug_line_section): Update.
4494 * dwarf2/index-cache.c (index_cache::store): Update.
4495 * dwarf2/index-write.c (save_gdb_index_command): Update.
4496 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4497
4498 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4499
4500 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4501 member.
4502 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4503 dwarf2_per_cu_data::per_bfd.
4504 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4505 (create_type_unit_group): Likewise.
4506 (queue_comp_unit): Remove reference to
4507 per_cu->dwarf2_per_objfile.
4508 (maybe_queue_comp_unit): Likewise.
4509 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4510 (create_cus_hash_table): Assign new field.
4511
4512 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4513
4514 * dwarf2/read.c: Replace
4515 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4516 dwarf2_cu->per_objfile throughout.
4517
4518 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4519
4520 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4521 parameter, don't use per_cu->dwarf2_per_objfile.
4522 (dw2_instantiate_symtab): Likewise.
4523 (dw2_find_last_source_symtab): Update.
4524 (dw2_map_expand_apply): Update.
4525 (dw2_lookup_symbol): Update.
4526 (dw2_expand_symtabs_for_function): Update.
4527 (dw2_expand_all_symtabs): Update.
4528 (dw2_expand_symtabs_with_fullname): Update.
4529 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4530 don't use per_cu->dwarf2_per_objfile.
4531 (dw2_expand_marked_cus): Update.
4532 (dw2_find_pc_sect_compunit_symtab): Update.
4533 (dw2_debug_names_lookup_symbol): Update.
4534 (dw2_debug_names_expand_symtabs_for_function): Update.
4535 (dw2_debug_names_map_matching_symbols): Update.
4536 (dwarf2_psymtab::expand_psymtab): Update.
4537
4538 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4539
4540 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4541 <per_objfile>: New member.
4542 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4543 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4544 call to dwarf2_cu.
4545 (cutu_reader::cutu_reader): Update.
4546 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4547
4548 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4549
4550 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4551 struct dwarf2_per_objfile.
4552 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4553 dwarf2_per_bfd.
4554 * dwarf2/read.c (set_die_type): Update.
4555 (get_die_type_at_offset): Update.
4556
4557 2020-05-27 Tom Tromey <tom@tromey.com>
4558 Simon Marchi <simon.marchi@efficios.com>
4559
4560 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4561 method.
4562 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4563 get_symtab, set_symtab>: New methods.
4564 <m_symtabs>: New field.
4565 (struct dwarf2_psymtab): Derive from partial_symtab.
4566 <readin_p, get_compunit_symtab>: Declare methods.
4567 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4568 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4569 New methods.
4570 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4571 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4572 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4573 (dw2_symtab_iter_next, dw2_print_stats)
4574 (dw2_expand_symtabs_with_fullname)
4575 (dw2_expand_symtabs_matching_one)
4576 (dw_expand_symtabs_matching_file_matcher)
4577 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4578 (dw2_debug_names_iterator::next)
4579 (dw2_debug_names_map_matching_symbols)
4580 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4581 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4582 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4583 New methods.
4584 (get_compunit_symtab, process_full_comp_unit)
4585 (process_full_type_unit): Update.
4586 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4587
4588 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4589
4590 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4591 then introduce a new dwarf2_per_objfile type.
4592 <read_line_string>: Move to the new dwarf2_per_objfile type.
4593 <objfile>: Likewise.
4594 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4595 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4596 dwarf2_per_objfile->per_bfd.
4597 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4598 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4599 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4600 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4601 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4602 (dwarf2_per_objfile::locate_sections): Rename to...
4603 (dwarf2_per_bfd::locate_sections): ... this.
4604 (dwarf2_per_objfile::get_cutu): Rename to...
4605 (dwarf2_per_bfd::get_cutu): ... this.
4606 (dwarf2_per_objfile::get_cu): Rename to...
4607 (dwarf2_per_bfd::get_cu): ... this.
4608 (dwarf2_per_objfile::get_tu): Rename to...
4609 (dwarf2_per_bfd::get_tu): ... this.
4610 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4611 (dwarf2_per_bfd::allocate_per_cu): ... this.
4612 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4613 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4614 (get_gdb_index_contents_ftype): Change parameter from
4615 dwarf2_per_objfile to dwarf2_per_bfd.
4616 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4617 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4618
4619 2020-05-27 Tom Tromey <tom@tromey.com>
4620 Simon Marchi <simon.marchi@efficios.com>
4621
4622 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4623 (allocate_piece_closure): Set "per_objfile" member.
4624 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4625 (locexpr_describe_location, loclist_describe_location): Use new
4626 member.
4627 * dwarf2/read.c (read_call_site_scope)
4628 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4629 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4630 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4631 handle_data_member_location): Set per_objfile member.
4632 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4633 member.
4634 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4635
4636 2020-05-27 Tom Tromey <tom@tromey.com>
4637
4638 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4639 allocate_signatured_type>: Declare new methods.
4640 <m_num_psymtabs>: New member.
4641 (struct dwarf2_per_cu_data) <index>: New member.
4642 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4643 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4644 (create_cu_from_index_list): Use allocate_per_cu.
4645 (create_signatured_type_table_from_index)
4646 (create_signatured_type_table_from_debug_names)
4647 (create_debug_type_hash_table, add_type_unit)
4648 (read_comp_units_from_section): Use allocate_signatured_type.
4649
4650 2020-05-27 Tom Tromey <tom@tromey.com>
4651
4652 * psymtab.c (partial_map_expand_apply)
4653 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4654 (psym_lookup_global_symbol_language)
4655 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4656 (psym_print_stats, psym_expand_symtabs_for_function)
4657 (psym_map_symbol_filenames, psym_map_matching_symbols)
4658 (psym_expand_symtabs_matching)
4659 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4660 (maintenance_check_psymtabs): Update.
4661 * psympriv.h (struct partial_symtab) <readin_p,
4662 get_compunit_symtab>: Add objfile parameter.
4663 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4664 Likewise.
4665 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4666 get_compunit_symtab>: Likewise.
4667 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4668
4669 2020-05-27 Tom Tromey <tom@tromey.com>
4670
4671 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4672 member.
4673 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4674 (create_cu_from_index_list)
4675 (create_signatured_type_table_from_index)
4676 (create_signatured_type_table_from_debug_names)
4677 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4678 (dwarf2_create_include_psymtab)
4679 (create_debug_type_hash_table, add_type_unit)
4680 (create_type_unit_group, read_comp_units_from_section)
4681 (dwarf2_compute_name, create_cus_hash_table)
4682 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4683 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4684 obstack.
4685 (dw2_get_real_path): Likewise. Change argument to
4686 dwarf2_per_objfile.
4687
4688 2020-05-27 Luis Machado <luis.machado@linaro.org>
4689
4690 PR tdep/26000
4691 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4692 for ldrd (immediate).
4693
4694 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4695
4696 * command.h: Add comment giving the name of class_tui.
4697 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4698 create the fake command for the help for class_tui.
4699
4700 2020-05-26 Tom Tromey <tromey@adacore.com>
4701
4702 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4703 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4704 (val_atr): New function.
4705 (value_val_atr): Use it.
4706 * ada-valprint.c (print_optional_low_bound): Change low bound
4707 handling for enums.
4708 (val_print_packed_array_elements): Don't call discrete_position.
4709 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4710 discrete_position for enum types.
4711 * language.c (default_print_array_index): Change type.
4712 * language.h (struct language_defn) <la_print_array_index>: Add
4713 index_type parameter, change type of index_value.
4714 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4715 (default_print_array_index): Update.
4716 * valprint.c (maybe_print_array_index): Don't call
4717 value_from_longest. Update.
4718 (value_print_array_elements): Don't call discrete_position.
4719
4720 2020-05-26 Tom Tromey <tromey@adacore.com>
4721
4722 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4723 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4724
4725 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4726
4727 PR gdb/13519
4728 * avr-tdep.c (avr_integer_to_address): Return data or code
4729 address accordingly to the second 'type' argument of the
4730 function.
4731
4732 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4733
4734 * infcmd.c, inferior.h: (construct_inferior_arguments):
4735 Moved function from here to gdbsupport/common-inferior.{h,cc}
4736
4737 2020-05-23 Tom Tromey <tom@tromey.com>
4738
4739 Revert commit eca1f90c:
4740 * NEWS: Remove entry for completion styling.
4741 * completer.c (_rl_completion_prefix_display_length): Move
4742 declaration later.
4743 (gdb_fnprint): Revert.
4744 (gdb_display_match_list_1): Likewise.
4745 * cli/cli-style.c (completion_prefix_style)
4746 (completion_difference_style, completion_suffix_style): Remove.
4747 (_initialize_cli_style): Revert.
4748 * cli/cli-style.h (completion_prefix_style)
4749 (completion_difference_style, completion_suffix_style): Don't
4750 declare.
4751
4752 2020-05-24 Pedro Alves <palves@redhat.com>
4753
4754 * symtab.c (completion_list_add_name): Return boolean indication
4755 of whether the symbol matched.
4756 (completion_list_add_symbol): Don't try to remove C++ aliases if
4757 the symbol didn't match in the first place.
4758 * symtab.h (completion_list_add_name): Return bool.
4759
4760 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4761
4762 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4763 type::field.
4764
4765 2020-05-23 Joel Brobecker <brobecker@adacore.com>
4766
4767 GDB 9.2 released.
4768
4769 2020-05-23 Tom Tromey <tom@tromey.com>
4770
4771 * NEWS: Add entry for completion styling.
4772 * completer.c (_rl_completion_prefix_display_length): Move
4773 declaration earlier.
4774 (gdb_fnprint): Use completion_style.
4775 (gdb_display_match_list_1): Likewise.
4776 * cli/cli-style.c (completion_prefix_style)
4777 (completion_difference_style, completion_suffix_style): New
4778 globals.
4779 (_initialize_cli_style): Register new globals.
4780 * cli/cli-style.h (completion_prefix_style)
4781 (completion_difference_style, completion_suffix_style): Declare.
4782
4783 2020-05-23 Pedro Alves <palves@redhat.com>
4784
4785 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4786 (parse_escape): Use ISDIGIT instead of isdigit.
4787 (puts_debug): Use gdb_isprint instead of isprint.
4788 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4789 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4790 ISSPACE instead of isspace.
4791 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4792 instead of isspace.
4793 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4794 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4795 instead of isxdigit and ISDIGIT instead of isdigit.
4796
4797 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4798
4799 * gdbtypes.h (struct type) <field>: New method.
4800 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4801 or type::field.
4802
4803 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4804
4805 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4806 (TYPE_FIELDS): Use type::fields. Change all call sites that
4807 modify the propery to use type::set_fields instead.
4808
4809 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4810
4811 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4812 type::num_fields instead.
4813
4814 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4815
4816 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4817 methods.
4818 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4819 that modify the number of fields to use type::set_num_fields
4820 instead.
4821
4822 2020-05-22 Tom Tromey <tromey@adacore.com>
4823
4824 * compile/compile-object-load.h (munmap_list_free): Don't
4825 declare.
4826
4827 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4828
4829 * annotate.c (annotate_source_line): Update return type, add call
4830 to update current symtab and line.
4831 * annotate.h (annotate_source_line): Update return type, and
4832 extend header comment.
4833 * source.c (info_line_command): Check annotation_level before
4834 calling annotate_source_line.
4835 * stack.c (print_frame_info): If calling annotate_source_line
4836 returns true, then don't print any other source line information.
4837
4838 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4839
4840 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4841
4842 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4843
4844 * coffread.c (patch_type): Remove NULL check before xfree.
4845 * corefile.c (set_gnutarget): Likewise.
4846 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4847 * exec.c (build_section_table): Likewise.
4848 * remote.c (remote_target::pass_signals): Likewise.
4849 * utils.c (n_spaces): Likewise.
4850 * cli/cli-script.c (document_command): Likewise.
4851 * i386-windows-tdep.c (core_process_module_section): Likewise.
4852 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4853
4854 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
4855
4856 * symfile.c (reread_symbols): Clear objfile's section_offsets
4857 vector and section indices, re-compute them by calling
4858 sym_offsets.
4859
4860 2020-05-20 Tom Tromey <tromey@adacore.com>
4861
4862 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
4863 (desc_one_bound, desc_index_type): Compute field name.
4864
4865 2020-05-20 Tom de Vries <tdevries@suse.de>
4866
4867 PR symtab/25833
4868 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4869
4870 2020-05-20 Alan Modra <amodra@gmail.com>
4871
4872 PR 25993
4873 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4874 bfd_set_filename.
4875 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4876 passed to bfd_set_filename.
4877 * symfile-mem.c (add_vsyscall_page): Likewise for string
4878 passed to symbol_file_add_from_memory.
4879 (symbol_file_add_from_memory): Make name param a const char* and
4880 don't strdup.
4881
4882 2020-05-20 Alan Modra <amodra@gmail.com>
4883
4884 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4885 rather than accessing bfd->filename directly.
4886 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4887 and use bfd_section_name.
4888 * dwarf2/frame.c (decode_frame_entry): Likewise.
4889 * exec.c (exec_set_section_address): Likewise.
4890 * solib-aix.c (solib_aix_bfd_open): Likewise.
4891 * stap-probe.c (get_stap_base_address): Likewise.
4892 * symfile.c (reread_symbols): Likewise.
4893
4894 2020-05-19 Tom Tromey <tromey@adacore.com>
4895
4896 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4897
4898 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4899
4900 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4901
4902 2020-05-19 Pedro Alves <palves@redhat.com>
4903
4904 * NEWS (set exec-file-mismatch): Adjust entry.
4905 * exec.c: Include "build-id.h".
4906 (validate_exec_file): Try to match build IDs instead of filenames.
4907 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4908 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4909 and pass down 'warn_if_slow'.
4910 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4911 gdb_bfd_open_closure to pass it down.
4912 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4913
4914 2020-05-19 Pedro Alves <palves@redhat.com>
4915
4916 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4917 * target.c (target_fileio_open_1): Rename to target_fileio_open
4918 and make extern. Use bool.
4919 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4920 (target_fileio_read_alloc_1): Adjust.
4921 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4922 (target_fileio_open_warn_if_slow): Delete declaration.
4923
4924 2020-05-19 Pedro Alves <palves@redhat.com>
4925
4926 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4927 Adjust all callers.
4928
4929 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4930
4931 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4932 whether disp is negative.
4933
4934 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4935
4936 * symfile.h (struct symfile_segment_data)
4937 <~symfile_segment_data>: Remove.
4938 <segment_info>: Change to std::vector.
4939 * symfile.c (default_symfile_segments): Update.
4940 * elfread.c (elf_symfile_segments): Update.
4941
4942 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4943
4944 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4945 <segments>: New.
4946 <segment_bases, segment_sizes>: Remove.
4947 * symfile.c (default_symfile_segments): Update.
4948 * elfread.c (elf_symfile_segments): Update.
4949 * remote.c (remote_target::get_offsets): Update.
4950 * solib-target.c (solib_target_relocate_section_addresses):
4951 Update.
4952
4953 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4954
4955 * symfile.h (struct symfile_segment_data): Initialize fields.
4956 <~symfile_segment_data>: Add.
4957 (symfile_segment_data_up): New.
4958 (struct sym_fns) <sym_segments>: Return a
4959 symfile_segment_data_up.
4960 (default_symfile_segments): Return a symfile_segment_data_up.
4961 (free_symfile_segment_data): Remove.
4962 (get_symfile_segment_data): Return a symfile_segment_data_up.
4963 * symfile.c (default_symfile_segments): Likewise.
4964 (get_symfile_segment_data): Likewise.
4965 (free_symfile_segment_data): Remove.
4966 (symfile_find_segment_sections): Update.
4967 * elfread.c (elf_symfile_segments): Return a
4968 symfile_segment_data_up.
4969 * remote.c (remote_target::get_offsets): Update.
4970 * solib-target.c (solib_target_relocate_section_addresses):
4971 Update.
4972 * symfile-debug.c (debug_sym_segments): Return a
4973 symfile_segment_data_up.
4974
4975 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4976
4977 PR build/25981
4978 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4979 Hardcode register numbers.
4980
4981 PR build/25981
4982 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4983 procfs_find_LDT_entry): Remove.
4984 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4985 procfs_find_LDT_entry): Remove.
4986 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4987 Remove.
4988
4989 2020-05-17 Pedro Alves <palves@redhat.com>
4990 Andrew Burgess <andrew.burgess@embecosm.com>
4991 Keno Fischer <keno@juliacomputing.com>
4992
4993 PR gdb/25741
4994 * breakpoint.c (build_target_condition_list): Update comments.
4995 (build_target_command_list): Update comments and skip matching
4996 locations.
4997 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4998 a separate function. Simplify "set breakpoint auto-hw off"
4999 handling.
5000 (insert_breakpoints): Update comment.
5001 (tracepoint_locations_match): New parameter. For breakpoints,
5002 compare location types too, if the caller wants to.
5003 (handle_automatic_hardware_breakpoints): New functions.
5004 (bp_location_is_less_than): Also sort by location type and
5005 hardware breakpoint length.
5006 (update_global_location_list): Handle "set breakpoint auto-hw on"
5007 here.
5008 (update_breakpoint_locations): Ask breakpoint_locations_match to
5009 ignore location types.
5010
5011 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5012
5013 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
5014 type::name instead.
5015
5016 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5017
5018 * gdbtypes.h (struct type) <name, set_name>: New methods.
5019 (TYPE_CODE): Use type::name. Change all call sites used to set
5020 the name to use type::set_name instead.
5021
5022 2020-05-16 Tom Tromey <tom@tromey.com>
5023
5024 * top.c (quit_force): Update.
5025 * infrun.c (handle_no_resumed): Update.
5026 * top.h (all_uis): New function.
5027 (ALL_UIS): Remove.
5028
5029 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5030
5031 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
5032
5033 2020-05-16 Pedro Alves <palves@redhat.com>
5034
5035 * ia64-linux-nat.c
5036 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
5037 Declare method.
5038 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
5039
5040 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
5041
5042 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
5043 (sparc64_adi_info): Likewise.
5044
5045 2020-05-15 Tom Tromey <tom@tromey.com>
5046
5047 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
5048 block_objfile.
5049 (lookup_objfile_from_block): Remove.
5050 (lookup_symbol_in_block, lookup_symbol_in_static_block)
5051 (lookup_global_symbol): Use block_objfile.
5052 * symtab.h (lookup_objfile_from_block): Don't declare.
5053 * printcmd.c (clear_dangling_display_expressions): Use
5054 block_objfile.
5055 * parse.c (operator_check_standard): Use block_objfile.
5056
5057 2020-05-15 Tom Tromey <tom@tromey.com>
5058
5059 * language.c (language_alloc_type_symbol): Set
5060 SYMBOL_SECTION.
5061 * symtab.c (initialize_objfile_symbol): Remove.
5062 (allocate_symbol): Remove.
5063 (allocate_template_symbol): Remove.
5064 * dwarf2/read.c (fixup_go_packaging): Use "new".
5065 (new_symbol): Use "new".
5066 (read_variable): Don't call initialize_objfile_symbol. Use
5067 "new".
5068 (read_func_scope): Use "new".
5069 * xcoffread.c (process_xcoff_symbol): Don't call
5070 initialize_objfile_symbol.
5071 (SYMBOL_DUP): Remove.
5072 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
5073 "new".
5074 * symtab.h (allocate_symbol, initialize_objfile_symbol)
5075 (allocate_template_symbol): Don't declare.
5076 (struct symbol): Add copy constructor. Change defaults.
5077 * jit.c (finalize_symtab): Use "new".
5078 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
5079 Use "new".
5080 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5081 (common_block_end): Use "new".
5082 * mdebugread.c (parse_symbol): Use "new".
5083 (new_symbol): Likewise.
5084
5085 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5086
5087 * NEWS: Mention changes to help and apropos.
5088
5089 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5090
5091 * command.h (enum command_class): Improve comments, document
5092 that class_alias is for user-defined aliases, give the class
5093 name for each class, remove unused class_xdb.
5094 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
5095 * breakpoint.c (_initialize_breakpoint): Replace class_alias
5096 by a precise class.
5097 * infcmd.c (_initialize_infcmd): Likewise.
5098 * reverse.c (_initialize_reverse): Likewise.
5099 * stack.c (_initialize_stack): Likewise.
5100 * symfile.c (_initialize_symfile): Likewise.
5101 * tracepoint.c (_initialize_tracepoint): Likewise.
5102
5103 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5104
5105 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
5106 when their aliased command is traversed.
5107 (help_cmd): Add fput_command_names_styled call to
5108 output command name and aliases when command has an alias.
5109
5110 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5111
5112 * cli/cli-decode.h (help_cmd_list): Remove declaration.
5113 * cli/cli-decode.c (help_cmd_list): Declare as static,
5114 remove prefix argument, use bool for recurse arg, rework to show the aliases of
5115 a command together with the command.
5116 (fput_command_name_styled, fput_command_names_styled): New functions.
5117 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
5118 fput_command_name_styled.
5119 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
5120 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
5121
5122 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5123
5124 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
5125 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
5126 * command.h (cmd_show_list): Likewise.
5127 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
5128 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
5129
5130 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5131
5132 * unittests/command-def-selftests.c (traverse_command_structure):
5133 Verify all commands of a list have the same prefix command and
5134 that only the top cmdlist commands have a null prefix.
5135
5136 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5137
5138 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
5139 as prefix, not one of its aliases.
5140 (set_cmd_prefix): Remove.
5141 (do_add_cmd): Centralize the setting of the prefix of a command, when
5142 command is defined after its full chain of prefix commands.
5143 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
5144 (add_setshow_cmd_full): Likewise.
5145 (update_prefix_field_of_prefixed_commands): New function.
5146 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
5147 update_prefix_field_of_prefixed_commands.
5148 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
5149 addresses of remote_set_cmdlist and remote_show_cmdlist given
5150 as argument, not the address of an argument.
5151 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5152 * gdb/remote.c (_initialize_remote): Likewise.
5153
5154 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5155
5156 * cli/cli-cmds.c (alias_command): Check for an existing alias
5157 using lookup_cmd_composition, as valid_command_p is too strict
5158 and forbids aliases that are the prefix of an existing alias
5159 or command.
5160 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5161 command is properly recognised as a valid command.
5162
5163 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5164
5165 * unittests/help-doc-selftests.c: Rename to
5166 unittests/command-def-selftests.c
5167 * unittests/command-def-selftests.c (help_doc_tests): Update some
5168 comments.
5169 (command_structure_tests, traverse_command_structure): New namespace
5170 and function.
5171 (command_structure_invariants_tests): New function.
5172 (_initialize_command_def_selftests) Renamed from
5173 _initialize_help_doc_selftests, register command_structure_invariants
5174 selftest.
5175
5176 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5177
5178 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5179 an alias of 'show'.
5180
5181 2020-05-15 Joel Brobecker <brobecker@adacore.com>
5182
5183 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5184 ada_is_fixed_point_type. Update all callers.
5185 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5186 all callers.
5187 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5188 Update all callers.
5189 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5190 print_fixed_point_type. Update all callers.
5191 * ada-valprint.c (ada_value_print_num): Replace call to
5192 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5193
5194 2020-05-14 Kevin Buettner <kevinb@redhat.com>
5195
5196 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5197 processors.
5198 (cpu_supports_bts): Add CV_AMD case.
5199
5200 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5201 Simon Marchi <simon.marchi@efficios.com>
5202
5203 * infrun.c (stop_all_threads): Collect multiple wait events at
5204 each pass.
5205
5206 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5207
5208 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5209 type::code instead.
5210
5211 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5212
5213 * gdbtypes.h (struct type) <code, set_code>: New methods.
5214 (TYPE_CODE): Use type::code. Change all call sites used to set
5215 the code to use type::set_code instead.
5216
5217 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5218 Tom de Vries <tdevries@suse.de>
5219 Pedro Alves <palves@redhat.com>
5220
5221 PR threads/25478
5222 * infrun.c (stop_all_threads): Do NOT ignore
5223 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5224 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5225 received.
5226 (handle_no_resumed): Remove code handling a live inferior with no
5227 threads.
5228 * remote.c (has_single_non_exited_thread): New.
5229 (remote_target::update_thread_list): Do not delete a thread if is
5230 the last thread of the process.
5231 * thread.c (thread_select): Call delete_exited_threads instead of
5232 prune_threads.
5233
5234 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5235
5236 * infrun.c (stop_all_threads): Enable/disable thread events of all
5237 targets. Move a debug message denoting the end of the function
5238 into the SCOPED_EXIT block.
5239
5240 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5241
5242 * process-stratum-target.h: Include <set>.
5243 (all_non_exited_process_targets, switch_to_target_no_thread): New
5244 function declarations.
5245 * process-stratum-target.c (all_non_exited_process_targets)
5246 (switch_to_target_no_thread): New function implementations.
5247
5248 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5249
5250 * infrun.c (handle_inferior_event): Extract out a piece of code
5251 into...
5252 (mark_non_executing_threads): ...this new function.
5253
5254 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5255
5256 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5257 use.
5258
5259 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5260
5261 * regcache.c (regcache_read_pc_protected): New function
5262 implementation that returns 0 if the PC cannot read via
5263 'regcache_read_pc'.
5264 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5265 instead of 'regcache_read_pc'.
5266 (keep_going_pass_signal): Ditto.
5267
5268 2020-05-13 Tom Tromey <tromey@adacore.com>
5269
5270 * ada-lang.c (align_value): Remove.
5271 (ada_template_to_fixed_record_type_1): Use align_up.
5272
5273 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5274
5275 * async-event.c: Update the copyright year.
5276 * async-event.h: Update the copyright year.
5277
5278 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
5279
5280 * objfiles.h (is_addr_in_objfile,
5281 shared_objfile_contains_address_p): Return bool.
5282 * objfile.c (is_addr_in_objfile,
5283 shared_objfile_contains_address_p): Return bool.
5284
5285 2020-05-11 Tom Tromey <tromey@adacore.com>
5286
5287 * cli/cli-cmds.c (info_command): Restore.
5288 (_initialize_cli_cmds): Use add_prefix_command for "info".
5289 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5290
5291 2020-05-11 Tom Tromey <tromey@adacore.com>
5292
5293 * ada-lang.c (ada_value_primitive_field): Now public.
5294 * ada-lang.h (ada_value_primitive_field): Declare.
5295 * ada-valprint.c (print_field_values): Use
5296 ada_value_primitive_field for wrapper fields.
5297
5298 2020-05-11 Tom de Vries <tdevries@suse.de>
5299
5300 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5301 MODULE_DOMAIN.
5302
5303 2020-05-11 Tom de Vries <tdevries@suse.de>
5304
5305 PR symtab/25941
5306 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5307 with length 0, if not gdb-produced.
5308 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5309
5310 2020-05-09 Tom de Vries <tdevries@suse.de>
5311
5312 PR gdb/25955
5313 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5314 calculation.
5315
5316 2020-05-09 Tom Tromey <tom@tromey.com>
5317
5318 * top.c (server_command): Now bool.
5319 * top.h (server_command): Now bool.
5320
5321 2020-05-08 Tom Tromey <tromey@adacore.com>
5322
5323 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5324 already being processed.
5325
5326 2020-05-08 Tom Tromey <tom@tromey.com>
5327
5328 * printcmd.c (struct display) <next>: Remove.
5329 <display>: New constructor.
5330 <exp_string>: Now a std::string.
5331 <enabled_p>: Now a bool.
5332 (display_number): Move definition earlier.
5333 (displays): Rename from display_chain. Now a std::vector.
5334 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5335 (display_command): Update.
5336 (do_one_display, disable_display)
5337 (enable_disable_display_command, do_enable_disable_display):
5338 Update.
5339 (free_display): Remove.
5340 (clear_displays): Rewrite.
5341 (delete_display): Update.
5342 (map_display_numbers): Use function_view. Remove "data"
5343 parameter. Update.
5344 (do_delete_display): Remove.
5345 (undisplay_command): Update.
5346 (do_one_display, do_displays, disable_display)
5347 (info_display_command): Update.
5348 (do_enable_disable_display): Remove.
5349 (enable_disable_display_command)
5350 (clear_dangling_display_expressions): Update.
5351
5352 2020-05-08 Tom Tromey <tom@tromey.com>
5353
5354 * symtab.c (set_symbol_cache_size)
5355 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5356 (maintenance_print_symbol_cache_statistics): Update.
5357 * symmisc.c (print_symbol_bcache_statistics)
5358 (print_objfile_statistics, maintenance_print_objfiles)
5359 (maintenance_info_symtabs, maintenance_check_symtabs)
5360 (maintenance_expand_symtabs, maintenance_info_line_tables):
5361 Update.
5362 * symfile-debug.c (set_debug_symfile): Update.
5363 * source.c (forget_cached_source_info): Update.
5364 * python/python.c (gdbpy_progspaces): Update.
5365 * psymtab.c (maintenance_info_psymtabs): Update.
5366 * probe.c (parse_probes): Update.
5367 * linespec.c (iterate_over_all_matching_symtabs)
5368 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5369 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5370 * exec.c (exec_target::close): Update.
5371 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5372 * breakpoint.c (print_one_breakpoint_location)
5373 (create_longjmp_master_breakpoint)
5374 (create_std_terminate_master_breakpoint): Update.
5375 * progspace.c (program_spaces): Now a std::vector.
5376 (maybe_new_address_space): Update.
5377 (add_program_space): Remove.
5378 (program_space::program_space): Update.
5379 (remove_program_space): Update.
5380 (number_of_program_spaces): Remove.
5381 (print_program_space, update_address_spaces): Update.
5382 * progspace.h (program_spaces): Change type.
5383 (ALL_PSPACES): Remove.
5384 (number_of_program_spaces): Don't declare.
5385 (struct program_space) <next>: Remove.
5386
5387 2020-05-08 Tom Tromey <tom@tromey.com>
5388
5389 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5390 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5391 (enable_break): Update.
5392 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5393 (frv_fdpic_find_canonical_descriptor): Update.
5394 (frv_fetch_objfile_link_map): Update.
5395 * progspace.c (program_space::free_all_objfiles): Update.
5396 (program_space::solibs): New method.
5397 * progspace.h (struct program_space) <solibs>: New method.
5398 * solist.h (master_so_list): Don't declare.
5399 (ALL_SO_LIBS): Remove.
5400 * solib.h (so_list_head): Remove.
5401 (update_solib_list): Update comment.
5402 * solib.c (master_so_list): Remove.
5403 (solib_used, update_solib_list, solib_add)
5404 (info_sharedlibrary_command, clear_solib)
5405 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5406
5407 2020-05-08 Tom Tromey <tom@tromey.com>
5408
5409 * extension.c (extension_languages): Now a std::array.
5410 (ALL_EXTENSION_LANGUAGES): Remove.
5411 (get_ext_lang_defn, get_ext_lang_of_file)
5412 (eval_ext_lang_from_control_command): Update.
5413 (finish_ext_lang_initialization)
5414 (auto_load_ext_lang_scripts_for_objfile)
5415 (ext_lang_type_printers::ext_lang_type_printers)
5416 (apply_ext_lang_type_printers)
5417 (ext_lang_type_printers::~ext_lang_type_printers)
5418 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5419 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5420 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5421 (get_matching_xmethod_workers, ext_lang_colorize)
5422 (ext_lang_before_prompt): Update.
5423 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5424
5425 2020-05-08 Tom Tromey <tom@tromey.com>
5426
5427 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5428 overload.
5429 <swap_string, m_string>: Remove.
5430 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5431 Update.
5432 * stabsread.c (define_symbol, read_type): Update.
5433 * linespec.c (find_linespec_symbols): Update.
5434 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5435 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5436 * dbxread.c (read_dbx_symtab): Update.
5437 * cp-support.h (cp_canonicalize_string_full)
5438 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5439 Return unique_xmalloc_ptr.
5440 * cp-support.c (inspect_type): Update.
5441 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5442 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5443 Likewise.
5444 * c-typeprint.c (print_name_maybe_canonical): Update.
5445 * break-catch-throw.c (check_status_exception_catchpoint):
5446 Update.
5447
5448 2020-05-08 Tom de Vries <tdevries@suse.de>
5449
5450 * infrun.c (follow_fork): Copy current_line and current_symtab to
5451 child thread.
5452
5453 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5454
5455 * async-event.c (struct async_signal_handler, struct
5456 async_event_handler): Reformat, remove typedef.
5457
5458 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5459
5460 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5461 access thistype->main_type->dyn_prop_list directly.
5462
5463 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5464
5465 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5466 (remove_dyn_prop): Remove. Update all users to use
5467 type::remove_dyn_prop.
5468 * gdbtypes.c (remove_dyn_prop): Rename to...
5469 (type::remove_dyn_prop): ... this.
5470
5471 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5472
5473 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5474 (add_dyn_prop): Remove. Update all users to use
5475 type::add_dyn_prop.
5476 * gdbtypes.c (add_dyn_prop): Rename to...
5477 (type::add_dyn_prop): ... this.
5478
5479 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5480
5481 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5482 (get_dyn_prop): Remove. Update all users to use
5483 type::dyn_prop.
5484 * gdbtypes.c (get_dyn_prop): Rename to...
5485 (type::dyn_prop): ... this.
5486
5487 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5488
5489 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5490
5491 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5492
5493 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5494 instruction, skip it if it's there.
5495
5496 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
5497
5498 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5499
5500 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
5501
5502 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5503 * gdbtypes.c (recursive_dump_type): Remove use of
5504 TYPE_INCOMPLETE.
5505
5506 2020-05-03 Tom Tromey <tom@tromey.com>
5507
5508 * breakpoint.c (catch_command, tcatch_command): Remove.
5509 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5510 add_show_prefix_cmd.
5511 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5512 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5513 Remove.
5514 (add_internal_problem_command): Use add_basic_prefix_cmd,
5515 add_show_prefix_cmd.
5516 * mips-tdep.c (set_mipsfpu_command): Remove.
5517 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5518 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5519 (_initialize_index_cache): Use add_basic_prefix_cmd.
5520 * memattr.c (dummy_cmd): Remove.
5521 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5522 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5523 (_initialize_tui_win): Use add_basic_prefix_cmd,
5524 add_show_prefix_cmd.
5525 * cli/cli-logging.c (set_logging_command): Remove.
5526 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5527 add_show_prefix_cmd.
5528 (show_logging_command): Remove.
5529 * target.c (target_command): Remove.
5530 (add_target): Use add_basic_prefix_cmd.
5531
5532 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
5533
5534 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5535
5536 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5537
5538 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5539 info_command.
5540
5541 2020-04-30 Kamil Rytarowski <n54@gmx.com>
5542
5543 * nbsd-nat.c (nbsd_enable_proc_events)
5544 (nbsd_nat_target::post_startup_inferior): Add.
5545 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5546 (nbsd_nat_target::update_thread_list): Rewrite.
5547 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5548 "PTRACE_LWP_CREATE".
5549 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5550
5551 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5552
5553 * stack.c (_initialize_stack): Remove duplicated creation
5554 of "frame" command and "f" alias.
5555
5556 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5557
5558 PR gdb/18706
5559 * gdbtypes.c (check_typedef): Calculate size of array of
5560 stubbed type.
5561
5562 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5563
5564 PR gdb/15559
5565 * i386-tdep.c (i386_push_dummy_call): Call
5566 i386_thiscall_push_dummy_call.
5567 (i386_thiscall_push_dummy_call): New function.
5568 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5569 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5570 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5571
5572 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5573
5574 * gdbarch.sh (do_read): Add shellcheck disable directive for
5575 warning SC2162.
5576
5577 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5578
5579 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5580 "referenced but not assigned" warning.
5581
5582 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5583
5584 * gdbarch.sh: Remove code that sets fallbackdefault.
5585
5586 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5587
5588 * gdbarch.sh: Use shell operators && and || instead of
5589 -a and -o.
5590
5591 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5592
5593 * gdbarch.sh: Use $(...) instead of `...`.
5594
5595 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5596
5597 * gdbarch.sh: Use double quotes around variables.
5598
5599 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5600
5601 * gdbarch.sh: Use %s with printf, instead of variables in the
5602 format string.
5603
5604 2020-04-29 Tom Tromey <tromey@adacore.com>
5605
5606 PR ada/25875:
5607 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5608 type fields here.
5609 (read_enumeration_type): Call
5610 update_enumeration_type_from_children later. Update comments.
5611 (process_enumeration_scope): Don't create type fields.
5612
5613 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5614
5615 * nbsd-tdep.c: Include "xml-syscall.h".
5616 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5617
5618 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5619
5620 * nbsd-nat.c: Include "sys/wait.h".
5621 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5622 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5623 (nbsd_nat_target::remove_exec_catchpoint)
5624 (nbsd_nat_target::set_syscall_catchpoint): Add.
5625 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5626 (nbsd_nat_target::insert_exec_catchpoint)
5627 (nbsd_nat_target::remove_exec_catchpoint)
5628 (nbsd_nat_target::set_syscall_catchpoint): Add.
5629 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5630 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5631 `nbsd_get_syscall_number'.
5632
5633 2020-04-29 Tom Tromey <tom@tromey.com>
5634
5635 * stack.c (print_block_frame_labels): Remove.
5636
5637 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
5638
5639 PR gdb/17320
5640 * ada-valprint.c (val_print_packed_array_elements): Move array
5641 end bracket to new line.
5642 (ada_val_print_string): Remove extra spaces before first array
5643 element.
5644 * c-valprint.c (c_value_print_array): Likewise.
5645 * m2-valprint.c (m2_print_array_contents): Likewise.
5646 (m2_value_print_inner): Likewise.
5647 * p-valprint.c (pascal_value_print_inner): Likewise.
5648 * valprint.c (generic_val_print_array): Likewise.
5649 (value_print_array_elements): Move first array element and array
5650 end bracket to new line.
5651
5652 2020-04-29 Tom de Vries <tdevries@suse.de>
5653
5654 PR symtab/25889
5655 * linespec.c (find_method): Fix ix calculation.
5656
5657 2020-04-28 Kamil Rytarowski <n54@gmx.com>
5658
5659 * syscalls/update-netbsd.sh: New file.
5660 * syscalls/netbsd.xml: Regenerate.
5661 * data-directory/Makefile.in: Register `netbsd.xml' in
5662 `SYSCALLS_FILES'.
5663
5664 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5665
5666 * syscalls/update-freebsd.sh: Add double quotes.
5667
5668 2020-04-28 Tom Tromey <tom@tromey.com>
5669
5670 * NEWS: Update.
5671 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5672 (cmdpy_init): Allow class_tui.
5673
5674 2020-04-28 Mark Williams <mark@myosotissp.com>
5675
5676 PR gdb/24480
5677 * dwarf2read.c: Add missing assingments to list_in_scope when
5678 start_symtab was already called.
5679
5680 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5681
5682 PR gdb/25881
5683 * dwarf2/read.c (offset_map_type): Use
5684 gdb:hash_enum<sect_offset> as hash function.
5685
5686 2020-04-28 Tom de Vries <tdevries@suse.de>
5687
5688 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5689 with DW_AT_signature.
5690
5691 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
5692
5693 * configure.ac: Remove check for fs_base/gs_base in
5694 user_regs_struct.
5695 * configure: Re-generate.
5696 * config.in: Re-generate.
5697 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5698 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5699 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5700
5701 2020-04-27 Luis Machado <luis.machado@linaro.org>
5702
5703 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5704 problematic inline frame unwinding situation.
5705 * frame.c (frame_id_computed_p): New function.
5706 * frame.h (frame_id_computed_p): New prototype.
5707
5708 2020-04-26 Tom Tromey <tom@tromey.com>
5709
5710 * command.h (enum command_class) <class_pseudo>: Remove.
5711
5712 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5713
5714 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5715 and whitespace.
5716
5717 2020-04-25 Kamil Rytarowski <n54@gmx.com>
5718
5719 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5720 `PT_GET_PROCESS_STATE' block.
5721
5722 2020-04-24 Tom Tromey <tom@tromey.com>
5723
5724 * symtab.h (symbol_get_demangled_name): Don't declare.
5725 * symtab.c (symbol_get_demangled_name): Remove.
5726 (general_symbol_info::natural_name)
5727 (general_symbol_info::demangled_name): Update.
5728
5729 2020-04-24 Tom Tromey <tom@tromey.com>
5730
5731 PR rust/25025:
5732 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5733
5734 2020-04-24 Tom Tromey <tom@tromey.com>
5735
5736 PR symtab/12707:
5737 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5738 exists.
5739 (new_symbol): Likewise.
5740 * compile/compile-object-load.c (get_out_value_type): Use
5741 symbol_matches_search_name.
5742
5743 2020-04-24 Tom Tromey <tom@tromey.com>
5744
5745 * dwarf2/read.c (add_partial_symbol): Do not call
5746 compute_and_set_names.
5747
5748 2020-04-24 Tom Tromey <tom@tromey.com>
5749
5750 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5751 overload.
5752
5753 2020-04-24 Tom Tromey <tom@tromey.com>
5754
5755 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5756 (add_psymbol_to_list): New overload. Make old overload call new
5757 one.
5758 * psympriv.h (add_psymbol_to_list): New overload.
5759
5760 2020-04-24 Tom Tromey <tom@tromey.com>
5761
5762 * dwarf2/read.c (partial_die_info::read) <case
5763 DW_AT_linkage_name>: Use value_as_string.
5764 (dwarf2_string_attr): Use value_as_string.
5765 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5766 method.
5767 * dwarf2/attribute.c (attribute::value_as_string): New method.
5768
5769 2020-04-24 Tom Tromey <tom@tromey.com>
5770
5771 * symtab.c (general_symbol_info::natural_name)
5772 (general_symbol_info::demangled_name): Check for language_rust.
5773
5774 2020-04-24 Tom Tromey <tom@tromey.com>
5775
5776 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5777 (dwarf2_physname): ... from here.
5778 (partial_die_info::read): Add Rust "{" hack.
5779
5780 2020-04-24 Tom Tromey <tom@tromey.com>
5781
5782 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5783 method.
5784 (symbol_set_demangled_name): Don't declare.
5785 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5786 symbol_set_demangled_name.
5787 (general_symbol_info::set_language)
5788 (general_symbol_info::compute_and_set_names): Update.
5789 * minsyms.c (minimal_symbol_reader::install): Update.
5790 * dwarf2/read.c (new_symbol): Update.
5791
5792 2020-04-24 Tom Tromey <tromey@adacore.com>
5793
5794 PR python/23662:
5795 * python/py-type.c (convert_field): Handle
5796 FIELD_LOC_KIND_DWARF_BLOCK.
5797 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5798 (typy_get_dynamic): Nw function.
5799 (type_object_getset): Add "dynamic".
5800 * NEWS: Add entry.
5801
5802 2020-04-24 Tom Tromey <tromey@adacore.com>
5803
5804 * ada-typeprint.c (print_choices, print_variant_part)
5805 (print_record_field_types_dynamic): New functions.
5806 (print_record_field_types): Use print_record_field_types_dynamic.
5807
5808 2020-04-24 Tom Tromey <tromey@adacore.com>
5809
5810 * dwarf2/read.c (handle_data_member_location): New overload.
5811 (dwarf2_add_field): Use it.
5812 (decode_locdesc): Add "computed" parameter. Update comment.
5813 * gdbtypes.c (is_dynamic_type_internal): Also look for
5814 FIELD_LOC_KIND_DWARF_BLOCK.
5815 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5816 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5817 virtual base classes.
5818 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5819 FIELD_LOC_KIND_DWARF_BLOCK.
5820
5821 2020-04-24 Tom Tromey <tromey@adacore.com>
5822
5823 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5824 * gdbtypes.c (is_dynamic_type_internal): Check
5825 TYPE_HAS_DYNAMIC_LENGTH.
5826 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5827 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5828 New macros.
5829 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5830 constant.
5831
5832 2020-04-24 Tom Tromey <tromey@adacore.com>
5833
5834 * dwarf2/read.c (struct variant_field): Rewrite.
5835 (struct variant_part_builder): New.
5836 (struct nextfield): Remove "variant" field. Add "offset".
5837 (struct field_info): Add "current_variant_part" and
5838 "variant_parts".
5839 (alloc_discriminant_info): Remove.
5840 (alloc_rust_variant): New function.
5841 (quirk_rust_enum): Update.
5842 (dwarf2_add_field): Set "offset" member. Don't handle
5843 DW_TAG_variant_part.
5844 (offset_map_type): New typedef.
5845 (convert_variant_range, create_one_variant)
5846 (create_one_variant_part, create_variant_parts)
5847 (add_variant_property): New functions.
5848 (dwarf2_attach_fields_to_type): Call add_variant_property.
5849 (read_structure_type): Don't handle DW_TAG_variant_part.
5850 (handle_variant_part, handle_variant): New functions.
5851 (handle_struct_member_die): Use them.
5852 (process_structure_scope): Don't handle variant parts.
5853 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5854 (struct discriminant_info): Remove.
5855 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5856 (struct main_type) <flag_discriminated_union>: Remove.
5857 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5858 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5859 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5860 Update.
5861 * valops.c (value_union_variant): Remove.
5862 * value.h (value_union_variant): Don't declare.
5863
5864 2020-04-24 Tom Tromey <tromey@adacore.com>
5865
5866 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5867 (ada_value_primitive_packed_val): Update.
5868 * ada-valprint.c (ada_value_print_1): Update.
5869 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5870 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5871 just an address. Use evaluate_for_locexpr_baton.
5872 (dwarf2_evaluate_property): Update.
5873 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5874 array_view.
5875 * findvar.c (default_read_var_value): Update.
5876 * gdbtypes.c (compute_variant_fields_inner)
5877 (resolve_dynamic_type_internal): Update.
5878 (resolve_dynamic_type): Change type of valaddr parameter.
5879 * gdbtypes.h (resolve_dynamic_type): Update.
5880 * valarith.c (value_subscripted_rvalue): Update.
5881 * value.c (value_from_contents_and_address): Update.
5882
5883 2020-04-24 Tom Tromey <tromey@adacore.com>
5884
5885 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5886 "push_initial_value" parameter.
5887 (dwarf2_evaluate_property): Likewise.
5888 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5889
5890 2020-04-24 Tom Tromey <tromey@adacore.com>
5891
5892 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5893 (variant::matches, compute_variant_fields_recurse)
5894 (compute_variant_fields_inner, compute_variant_fields): New
5895 functions.
5896 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5897 Use resolved_type after type is made.
5898 (operator==): Add new cases.
5899 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5900 (struct discriminant_range, struct variant, struct variant_part):
5901 New.
5902 (union dynamic_prop_data) <variant_parts, original_type>: New
5903 members.
5904 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5905 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5906 constants.
5907 * value.c (unpack_bits_as_long): Now public.
5908 * value.h (unpack_bits_as_long): Declare.
5909
5910 2020-04-24 Tom Tromey <tromey@adacore.com>
5911
5912 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5913 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5914
5915 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
5916
5917 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5918
5919 2020-04-24 Kamil Rytarowski <n54@gmx.com>
5920
5921 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5922 (remove_fork_catchpoint, post_startup_inferior)
5923 (post_attach): Move...
5924 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5925 (remove_fork_catchpoint, post_startup_inferior)
5926 (post_attach): ...here.
5927 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5928 (remove_fork_catchpoint, post_startup_inferior)
5929 (post_attach): Move...
5930 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5931 (remove_fork_catchpoint, post_startup_inferior)
5932 (post_attach): ...here.
5933
5934 2020-04-24 Tom Tromey <tromey@adacore.com>
5935
5936 * nat/windows-nat.h (struct windows_thread_info)
5937 <pc_adjusted>: New member.
5938 * windows-nat.c (windows_fetch_one_register): Check
5939 pc_adjusted.
5940 (windows_nat_target::get_windows_debug_event)
5941 (windows_nat_target::wait): Set pc_adjusted.
5942
5943 2020-04-24 Tom de Vries <tdevries@suse.de>
5944
5945 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5946 Run gdb-add-index inside temp dir.
5947
5948 2020-04-23 Tom Tromey <tromey@adacore.com>
5949
5950 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5951 in loop.
5952
5953 2020-04-23 Luis Machado <luis.machado@linaro.org>
5954
5955 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5956 get_frame_register instead of gdbarch_unwind_pc.
5957
5958 2020-04-23 Tom de Vries <tdevries@suse.de>
5959
5960 * symtab.c (lookup_global_symbol): Prefer def over decl.
5961
5962 2020-04-23 Tom de Vries <tdevries@suse.de>
5963
5964 PR symtab/25807
5965 * block.c (best_symbol, better_symbol): Promote to external.
5966 * block.h (best_symbol, better_symbol): Declare.
5967 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5968 decl.
5969
5970 2020-04-23 Tom Tromey <tromey@adacore.com>
5971
5972 PR ada/25837:
5973 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5974 "const char *", not a "const std::string &".
5975 <name_and_matcher::operator==>: Update.
5976 * unittests/lookup_name_info-selftests.c: Change type of
5977 "result".
5978
5979 2020-04-23 Tom Tromey <tom@tromey.com>
5980
5981 * inferior.h (iterate_over_inferiors): Don't declare.
5982 * inferior.c (iterate_over_inferiors): Remove.
5983 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5984 Remove.
5985 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5986 use iterate_over_inferiors.
5987 (darwin_resume_inferior_it)
5988 (struct resume_inferior_threads_param)
5989 (darwin_resume_inferior_threads_it): Remove.
5990 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5991
5992 2020-04-23 Tom de Vries <tdevries@suse.de>
5993
5994 * blockframe.c (find_pc_partial_function): Use
5995 find_pc_sect_compunit_symtab rather than
5996 objfile->sf->qf->find_pc_sect_compunit_symtab.
5997
5998 2020-04-22 Tom de Vries <tdevries@suse.de>
5999
6000 PR symtab/25764
6001 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
6002 in psymtabs.
6003
6004 2020-04-22 Tom de Vries <tdevries@suse.de>
6005
6006 PR symtab/25801
6007 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
6008 symtabs.
6009
6010 2020-04-22 Tom de Vries <tdevries@suse.de>
6011
6012 PR symtab/25700
6013 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
6014 CU if already created.
6015
6016 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6017
6018 * infrun.c (displaced_step_fixup): Switch to the event_thread
6019 before calling displaced_step_restore, not after.
6020
6021 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6022
6023 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
6024 its inferior is not recorded by us.
6025 (record_btrace_target_open): Replace call to
6026 all_non_exited_threads () with call to current_inferior
6027 ()->non_exited_threads ().
6028 (record_btrace_target::stop_recording): Likewise.
6029 (record_btrace_target::close): Likewise.
6030 (record_btrace_target::wait): Likewise.
6031 (record_btrace_target::record_stop_replaying): Likewise.
6032
6033 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6034
6035 * btrace.c (btrace_enable): Throw an error on double enables and
6036 when enabling recording fails.
6037 (btrace_disable): Throw an error if the thread is not recorded.
6038
6039 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6040
6041 * record-btrace.c (record_btrace_target::fetch_registers): Forward
6042 request if we do not have a thread_info.
6043
6044 2020-04-21 Tom de Vries <tdevries@suse.de>
6045
6046 PR gdb/25471
6047 * thread.c
6048 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
6049 exception in get_frame_id.
6050
6051 2020-04-20 Tom Tromey <tromey@adacore.com>
6052
6053 * python/python.c (struct gdbpy_event): Mark move constructor as
6054 noexcept.
6055 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
6056 constructor as noexcept.
6057 * completer.h (struct completion_result): Mark move constructor as
6058 noexcept.
6059 * completer.c (completion_result::completion_result): Use
6060 initialization style. Don't call reset_match_list.
6061
6062 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
6063
6064 * MAINTAINERS (Write After Approval): Add myself.
6065
6066 2020-04-18 Tom Tromey <tom@tromey.com>
6067
6068 * windows-tdep.c (init_w32_command_list)
6069 (w32_prefix_command_valid): Restore.
6070 (_initialize_windows_tdep): Call init_w32_command_list.
6071
6072 2020-04-18 Tom Tromey <tom@tromey.com>
6073
6074 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
6075 * value.c (value_fn_field): Update.
6076 * valops.c (find_function_in_inferior)
6077 (value_allocate_space_in_inferior): Update.
6078 * tui/tui-winsource.c (tui_update_source_windows_with_line):
6079 Update.
6080 * tui/tui-source.c (tui_source_window::set_contents): Update.
6081 * symtab.c (lookup_global_or_static_symbol)
6082 (find_function_start_sal_1, skip_prologue_sal)
6083 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
6084 * symmisc.c (dump_msymbols, dump_symtab_1)
6085 (maintenance_print_one_line_table): Update.
6086 * symfile.c (init_entry_point_info, section_is_mapped)
6087 (list_overlays_command, simple_read_overlay_table)
6088 (simple_overlay_update_1): Update.
6089 * stap-probe.c (handle_stap_probe): Update.
6090 * stabsread.c (dbx_init_float_type, define_symbol)
6091 (read_one_struct_field, read_enum_type, read_range_type): Update.
6092 * source.c (info_line_command): Update.
6093 * python/python.c (gdbpy_source_objfile_script)
6094 (gdbpy_execute_objfile_script): Update.
6095 * python/py-type.c (save_objfile_types): Update.
6096 * python/py-objfile.c (py_free_objfile): Update.
6097 * python/py-inferior.c (python_new_objfile): Update.
6098 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
6099 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
6100 (maintenance_check_psymtabs): Update.
6101 * printcmd.c (info_address_command): Update.
6102 * objfiles.h (struct objfile) <arch>: New method, from
6103 get_objfile_arch.
6104 (get_objfile_arch): Don't declare.
6105 * objfiles.c (get_objfile_arch): Remove.
6106 (filter_overlapping_sections): Update.
6107 * minsyms.c (msymbol_is_function): Update.
6108 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
6109 (output_nondebug_symbol): Update.
6110 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
6111 (mdebug_expand_psymtab): Update.
6112 * machoread.c (macho_add_oso_symfile): Update.
6113 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
6114 Update.
6115 * linux-fork.c (checkpoint_command): Update.
6116 * linespec.c (convert_linespec_to_sals): Update.
6117 * jit.c (finalize_symtab): Update.
6118 * infrun.c (insert_exception_resume_from_probe): Update.
6119 * ia64-tdep.c (ia64_find_unwind_table): Update.
6120 * hppa-tdep.c (internalize_unwinds): Update.
6121 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
6122 Update.
6123 * gcore.c (call_target_sbrk): Update.
6124 * elfread.c (record_minimal_symbol, elf_symtab_read)
6125 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
6126 (elf_gnu_ifunc_resolve_by_got): Update.
6127 * dwarf2/read.c (create_addrmap_from_index)
6128 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6129 (read_debug_names_from_section)
6130 (process_psymtab_comp_unit_reader, add_partial_symbol)
6131 (add_partial_subprogram, process_full_comp_unit)
6132 (read_file_scope, read_func_scope, read_lexical_block_scope)
6133 (read_call_site_scope, dwarf2_ranges_read)
6134 (dwarf2_record_block_ranges, dwarf2_add_field)
6135 (mark_common_block_symbol_computed, read_tag_pointer_type)
6136 (read_tag_string_type, dwarf2_init_float_type)
6137 (dwarf2_init_complex_target_type, read_base_type)
6138 (partial_die_info::read, partial_die_info::read)
6139 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
6140 (dwarf2_fetch_die_loc_sect_off): Update.
6141 * dwarf2/loc.c (dwarf2_find_location_expression)
6142 (class dwarf_evaluate_loc_desc, rw_pieced_value)
6143 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
6144 (dwarf2_loc_desc_get_symbol_read_needs)
6145 (locexpr_describe_location_piece, locexpr_describe_location_1)
6146 (loclist_describe_location): Update.
6147 * dwarf2/index-write.c (write_debug_names): Update.
6148 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
6149 * dtrace-probe.c (dtrace_process_dof): Update.
6150 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6151 (process_one_symbol): Update.
6152 * ctfread.c (ctf_init_float_type, read_base_type): Update.
6153 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6154 (coff_read_enum_type): Update.
6155 * cli/cli-cmds.c (edit_command, list_command): Update.
6156 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6157 * breakpoint.c (create_overlay_event_breakpoint)
6158 (create_longjmp_master_breakpoint)
6159 (create_std_terminate_master_breakpoint)
6160 (create_exception_master_breakpoint, get_sal_arch): Update.
6161 * block.c (block_gdbarch): Update.
6162 * annotate.c (annotate_source_line): Update.
6163
6164 2020-04-17 Tom Tromey <tromey@adacore.com>
6165
6166 * auto-load.c (show_auto_load_cmd): Remove.
6167 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6168 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6169 (maintenance_print_arc_command): Remove.
6170 * tui/tui-win.c (tui_command): Remove.
6171 (tui_get_cmd_list): Use add_basic_prefix_cmd.
6172 * tui/tui-layout.c (tui_layout_command): Remove.
6173 (_initialize_tui_layout): Use add_basic_prefix_cmd.
6174 * python/python.c (user_set_python, user_show_python): Remove.
6175 (_initialize_python): Use add_basic_prefix_cmd,
6176 add_show_prefix_cmd.
6177 * guile/guile.c (set_guile_command, show_guile_command): Remove.
6178 (install_gdb_commands): Use add_basic_prefix_cmd,
6179 add_show_prefix_cmd.
6180 (info_guile_command): Remove.
6181 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6182 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6183 add_show_prefix_cmd.
6184 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6185 Remove do_set and do_show parameters.
6186 * cli/cli-style.c (set_style, show_style): Remove.
6187 (_initialize_cli_style): Use add_basic_prefix_cmd,
6188 add_show_prefix_cmd.
6189 (cli_style_option::add_setshow_commands): Remove do_set and
6190 do_show parameters.
6191 (cli_style_option::add_setshow_commands): Use
6192 add_basic_prefix_cmd, add_show_prefix_cmd.
6193 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6194 (set_style_name): Remove.
6195 * cli/cli-dump.c (dump_command, append_command): Remove.
6196 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6197 (tekhex_dump_command, binary_dump_command)
6198 (binary_append_command): Remove.
6199 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6200 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6201 (init_w32_command_list): Remove; move into ...
6202 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6203 * valprint.c (set_print, show_print, set_print_raw)
6204 (show_print_raw): Remove.
6205 (_initialize_valprint): Use add_basic_prefix_cmd,
6206 add_show_prefix_cmd.
6207 * typeprint.c (set_print_type, show_print_type): Remove.
6208 (_initialize_typeprint): Use add_basic_prefix_cmd,
6209 add_show_prefix_cmd.
6210 * record.c (set_record_command, show_record_command): Remove.
6211 (_initialize_record): Use add_basic_prefix_cmd,
6212 add_show_prefix_cmd.
6213 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6214 add_show_prefix_cmd.
6215 (info_command, show_command, set_debug, show_debug): Remove.
6216 * top.h (set_history, show_history): Don't declare.
6217 * top.c (set_history, show_history): Remove.
6218 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6219 (unset_tdesc_cmd): Remove.
6220 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6221 add_show_prefix_cmd.
6222 * symtab.c (info_module_command): Remove.
6223 (_initialize_symtab): Use add_basic_prefix_cmd.
6224 * symfile.c (overlay_command): Remove.
6225 (_initialize_symfile): Use add_basic_prefix_cmd.
6226 * sparc64-tdep.c (info_adi_command): Remove.
6227 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6228 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6229 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6230 add_show_prefix_cmd.
6231 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6232 (_initialize_serial): Use add_basic_prefix_cmd,
6233 add_show_prefix_cmd.
6234 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6235 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6236 add_show_prefix_cmd.
6237 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6238 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6239 add_show_prefix_cmd.
6240 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6241 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6242 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6243 add_show_prefix_cmd.
6244 * remote.c (remote_command, set_remote_cmd): Remove.
6245 (_initialize_remote): Use add_basic_prefix_cmd.
6246 * record-full.c (set_record_full_command)
6247 (show_record_full_command): Remove.
6248 (_initialize_record_full): Use add_basic_prefix_cmd,
6249 add_show_prefix_cmd.
6250 * record-btrace.c (cmd_set_record_btrace)
6251 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6252 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6253 (cmd_show_record_btrace_pt): Remove.
6254 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6255 add_show_prefix_cmd.
6256 * ravenscar-thread.c (set_ravenscar_command)
6257 (show_ravenscar_command): Remove.
6258 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6259 add_show_prefix_cmd.
6260 * mips-tdep.c (show_mips_command, set_mips_command)
6261 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6262 add_show_prefix_cmd.
6263 * maint.c (maintenance_command, maintenance_info_command)
6264 (maintenance_check_command, maintenance_print_command)
6265 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6266 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6267 add_show_prefix_cmd.
6268 (show_per_command_cmd): Remove.
6269 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6270 Remove.
6271 (maintenance_show_test_settings_cmd): Remove.
6272 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6273 add_show_prefix_cmd.
6274 * maint-test-options.c (maintenance_test_options_command):
6275 Remove.
6276 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6277 * macrocmd.c (macro_command): Remove
6278 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6279 * language.c (set_check, show_check): Remove.
6280 (_initialize_language): Use add_basic_prefix_cmd,
6281 add_show_prefix_cmd.
6282 * infcmd.c (unset_command): Remove.
6283 (_initialize_infcmd): Use add_basic_prefix_cmd.
6284 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6285 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6286 add_show_prefix_cmd.
6287 * go32-nat.c (go32_info_dos_command): Remove.
6288 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6289 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6290 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6291 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6292 (_initialize_frame): Use add_basic_prefix_cmd,
6293 add_show_prefix_cmd.
6294 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6295 (_initialize_dcache): Use add_basic_prefix_cmd,
6296 add_show_prefix_cmd.
6297 * cp-support.c (maint_cplus_command): Remove.
6298 (_initialize_cp_support): Use add_basic_prefix_cmd.
6299 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6300 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6301 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6302 add_basic_prefix_cmd, add_show_prefix_cmd.
6303 * breakpoint.c (save_command): Remove.
6304 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6305 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6306 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6307 add_show_prefix_cmd.
6308 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6309 (set_ada_command, show_ada_command): Remove.
6310 (_initialize_ada_language): Use add_basic_prefix_cmd,
6311 add_show_prefix_cmd.
6312 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6313
6314 2020-04-16 Kamil Rytarowski <n54@gmx.com>
6315
6316 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6317 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6318
6319 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6320
6321 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6322 warning messages.
6323
6324 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6325
6326 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6327 import table is not at beginning of .idata section.
6328
6329 2020-04-16 Pedro Alves <palves@redhat.com>
6330
6331 * inferior.c (delete_inferior): Use delete operator directly
6332 instead of delete_program_space.
6333 * progspace.c (add_program_space): New, factored out from
6334 program_space::program_space.
6335 (remove_program_space): New, factored out from
6336 delete_program_space.
6337 (program_space::program_space): Remove intro comment. Rewrite.
6338 (program_space::~program_space): Remove intro comment. Call
6339 remove_program_space.
6340 (delete_program_space): Delete.
6341 * progspace.h (program_space::program_space): Make explicit. Move
6342 intro comment here, adjusted.
6343 (program_space::~program_space): Move intro comment here,
6344 adjusted.
6345 (delete_program_space): Remove.
6346
6347 2020-04-16 Tom Tromey <tromey@adacore.com>
6348
6349 * windows-nat.c (windows_nat::handle_access_violation): New
6350 function.
6351 * nat/windows-nat.h (handle_access_violation): Declare.
6352 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6353 windows-nat.c. Call handle_access_violation.
6354
6355 2020-04-16 Tom de Vries <tdevries@suse.de>
6356
6357 PR symtab/25791
6358 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6359 CUs without psymtab.
6360
6361 2020-04-16 Kevin Buettner <kevinb@redhat.com>
6362
6363 * python/python.c (do_start_initialization): Don't call
6364 PyEval_InitThreads for Python 3.9 and beyond.
6365
6366 2020-04-15 Kamil Rytarowski <n54@gmx.com>
6367
6368 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6369 thread functions.
6370 (obsd_nat_target::wait): Likewise.
6371
6372 2020-04-15 Tom Tromey <tromey@adacore.com>
6373
6374 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6375 (DEBUG_EXCEPT): Use debug_printf.
6376
6377 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6378
6379 * completer.c (class completion_tracker::completion_hash_entry)
6380 <hash_name>: New member function.
6381 (completion_tracker::discard_completions): New callback to hash a
6382 completion_hash_entry, pass this to htab_create_alloc.
6383
6384 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6385
6386 * windows-nat.c (windows_make_so): Warn rather than stopping with
6387 an error if realpath() fails.
6388
6389 2020-04-14 Kamil Rytarowski <n54@gmx.com>
6390
6391 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6392 (nbsd_nat_target::info_proc): Add do_status.
6393
6394 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6395 Tom de Vries <tdevries@suse.de>
6396
6397 PR symtab/25718
6398 * psympriv.h (struct partial_symtab::read_symtab)
6399 (struct partial_symtab::expand_psymtab)
6400 (struct partial_symtab::read_dependencies): Update comments.
6401 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6402 read_symtab for includer.
6403 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6404 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6405 (struct dwarf2_include_psymtab::m_readin): Remove.
6406 (struct dwarf2_include_psymtab::includer): New member function.
6407 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6408
6409 2020-04-14 Tom de Vries <tdevries@suse.de>
6410
6411 PR symtab/25720
6412 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6413 with NULL symbol_matcher and lookup_name.
6414 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6415 and lookup_name.
6416 * dwarf2/read.c (dw2_expand_symtabs_matching)
6417 (dw2_debug_names_expand_symtabs_matching): Same.
6418 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6419 Make lookup_name a pointer. Update comment.
6420 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6421 lookup_name being a pointer.
6422 * symfile.c (expand_symtabs_matching): Same.
6423 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6424 * linespec.c (iterate_over_all_matching_symtabs): Same.
6425
6426 2020-04-13 Tom Tromey <tom@tromey.com>
6427
6428 * run-on-main-thread.c: Update include.
6429 * unittests/main-thread-selftests.c: Update include.
6430 * tui/tui-win.c: Update include.
6431 * tui/tui-io.c: Update include.
6432 * tui/tui-interp.c: Update include.
6433 * tui/tui-hooks.c: Update include.
6434 * top.h: Update include.
6435 * top.c: Update include.
6436 * ser-base.c: Update include.
6437 * remote.c: Update include.
6438 * remote-notif.c: Update include.
6439 * remote-fileio.c: Update include.
6440 * record-full.c: Update include.
6441 * record-btrace.c: Update include.
6442 * python/python.c: Update include.
6443 * posix-hdep.c: Update include.
6444 * mingw-hdep.c: Update include.
6445 * mi/mi-main.c: Update include.
6446 * mi/mi-interp.c: Update include.
6447 * main.c: Update include.
6448 * linux-nat.c: Update include.
6449 * interps.c: Update include.
6450 * infrun.c: Update include.
6451 * inf-loop.c: Update include.
6452 * event-top.c: Update include.
6453 * event-loop.c: Move to ../gdbsupport/.
6454 * event-loop.h: Move to ../gdbsupport/.
6455 * async-event.h: Update include.
6456 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6457
6458 2020-04-13 Tom Tromey <tom@tromey.com>
6459
6460 * tui/tui-win.c: Include async-event.h.
6461 * remote.c: Include async-event.h.
6462 * remote-notif.c: Include async-event.h.
6463 * record-full.c: Include async-event.h.
6464 * record-btrace.c: Include async-event.h.
6465 * infrun.c: Include async-event.h.
6466 * event-top.c: Include async-event.h.
6467 * event-loop.h: Move some declarations to async-event.h.
6468 * event-loop.c: Don't include ser-event.h or top.h. Move some
6469 code to async-event.c.
6470 * async-event.h: New file.
6471 * async-event.c: New file.
6472 * Makefile.in (COMMON_SFILES): Add async-event.c.
6473 (HFILES_NO_SRCDIR): Add async-event.h.
6474
6475 2020-04-13 Tom Tromey <tom@tromey.com>
6476
6477 * utils.c (flush_streams): New function.
6478 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6479
6480 2020-04-13 Tom Tromey <tom@tromey.com>
6481
6482 * event-loop.c (handle_file_event): Use warning, not
6483 printf_unfiltered.
6484
6485 2020-04-13 Tom Tromey <tom@tromey.com>
6486
6487 * event-loop.c: Include <chrono>.
6488
6489 2020-04-13 Tom Tromey <tom@tromey.com>
6490
6491 * gdb_select.h: Move to ../gdbsupport/.
6492 * event-loop.c: Update include path.
6493 * top.c: Update include path.
6494 * ser-base.c: Update include path.
6495 * ui-file.c: Update include path.
6496 * ser-tcp.c: Update include path.
6497 * guile/scm-ports.c: Update include path.
6498 * posix-hdep.c: Update include path.
6499 * ser-unix.c: Update include path.
6500 * gdb_usleep.c: Update include path.
6501 * mingw-hdep.c: Update include path.
6502 * inflow.c: Update include path.
6503 * infrun.c: Update include path.
6504 * event-top.c: Update include path.
6505
6506 2020-04-13 Tom Tromey <tom@tromey.com>
6507
6508 * configure: Rebuild.
6509 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6510
6511 2020-04-13 Tom Tromey <tom@tromey.com>
6512
6513 * event-loop.h (start_event_loop): Don't declare.
6514 * event-loop.c (start_event_loop): Move...
6515 * main.c (start_event_loop): ...here. Now static.
6516
6517 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6518
6519 * MAINTAINERS: Update my email address.
6520
6521 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6522
6523 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6524 IP_ALL.
6525
6526 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6527
6528 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
6529 (nbsd_nat_target::info_proc): Add do_cmdline.
6530
6531 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6532
6533 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
6534 (nbsd_nat_target::info_proc): Add do_cwd.
6535
6536 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6537
6538 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6539
6540 2020-04-11 Kamil Rytarowski <n54@gmx.com>
6541
6542 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6543 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6544 (nbsd_nat_target::info_proc): New functions.
6545 * nbsd-nat.c (kinfo_get_vmmap): New function.
6546 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6547 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6548 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6549 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6550 functions.
6551 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6552 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6553 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6554 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6555 (KINFO_VME_FLAG_GROWS_DOWN): New.
6556
6557 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6558
6559 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6560 bit shift.
6561
6562 2020-04-10 Tom Tromey <tromey@adacore.com>
6563
6564 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6565
6566 2020-04-10 Tom Tromey <tromey@adacore.com>
6567
6568 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6569 separate debug files.
6570
6571 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
6572
6573 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6574 Move to...
6575 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6576 ... here.
6577 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6578 Check for STATUS_WX86_BREAKPOINT.
6579 (windows_nat_target::wait): Same.
6580
6581 2020-04-10 Tom de Vries <tdevries@suse.de>
6582
6583 PR cli/25808
6584 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6585
6586 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6587
6588 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6589 (Write After Approval): Remove Tom de Vries.
6590
6591 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6592
6593 revert partially:
6594 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6595
6596 * buildsym.c (record_line): Fix undefined behavior and preserve
6597 lines at eof.
6598
6599 2020-04-09 Kamil Rytarowski <n54@gmx.com>
6600
6601 * auxv.h (svr4_auxv_parse): New.
6602 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6603 and generic_auxv_parse.
6604 (svr4_auxv_parse): Add.
6605 * obsd-tdep.c: Include "auxv.h".
6606 (obsd_auxv_parse): Remove.
6607 (obsd_init_abi): Remove comment.
6608 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6609 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6610 * nbsd-tdep.c: Include "auxv.h".
6611 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6612
6613 2020-04-08 Tom Tromey <tromey@adacore.com>
6614
6615 * nat/windows-nat.h (last_wait_event): Don't declare.
6616 (wait_for_debug_event): Update comment.
6617 * nat/windows-nat.c (last_wait_event): Now static.
6618
6619 2020-04-08 Tom Tromey <tromey@adacore.com>
6620
6621 * windows-nat.c (wait_for_debug_event): Move to
6622 nat/windows-nat.c.
6623 * nat/windows-nat.h (wait_for_debug_event): Declare.
6624 * nat/windows-nat.c (wait_for_debug_event): Move from
6625 windows-nat.c. No longer static.
6626
6627 2020-04-08 Tom Tromey <tromey@adacore.com>
6628
6629 * windows-nat.c (get_windows_debug_event): Use
6630 fetch_pending_stop.
6631 * nat/windows-nat.h (fetch_pending_stop): Declare.
6632 * nat/windows-nat.c (fetch_pending_stop): New function.
6633
6634 2020-04-08 Tom Tromey <tromey@adacore.com>
6635
6636 * windows-nat.c (windows_continue): Use matching_pending_stop and
6637 continue_last_debug_event.
6638 * nat/windows-nat.h (matching_pending_stop)
6639 (continue_last_debug_event): Declare.
6640 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6641 (matching_pending_stop, continue_last_debug_event): New
6642 functions.
6643
6644 2020-04-08 Tom Tromey <tromey@adacore.com>
6645
6646 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6647 (handle_exception_result): Move to nat/windows-nat.h.
6648 (DEBUG_EXCEPTION_SIMPLE): Remove.
6649 (windows_nat::handle_ms_vc_exception): New function.
6650 (handle_exception): Move to nat/windows-nat.c.
6651 (get_windows_debug_event): Update.
6652 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6653 nat/windows-nat.c.
6654 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6655 (handle_exception_result): Move from windows-nat.c.
6656 (handle_exception): Declare.
6657 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6658 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6659 windows-nat.c.
6660
6661 2020-04-08 Tom Tromey <tromey@adacore.com>
6662
6663 * windows-nat.c (exception_count, event_count): Remove.
6664 (handle_exception, get_windows_debug_event)
6665 (do_initial_windows_stuff): Update.
6666
6667 2020-04-08 Tom Tromey <tromey@adacore.com>
6668
6669 * windows-nat.c (windows_nat::handle_load_dll)
6670 (windows_nat::handle_unload_dll): Rename. No longer static.
6671 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6672 Declare.
6673
6674 2020-04-08 Tom Tromey <tromey@adacore.com>
6675
6676 * complaints.h (stop_whining): Declare at top-level.
6677 (complaint): Don't declare stop_whining.
6678
6679 2020-04-08 Tom Tromey <tromey@adacore.com>
6680
6681 * windows-nat.c (windows_nat::handle_output_debug_string):
6682 Rename. No longer static.
6683 * nat/windows-nat.h (handle_output_debug_string): Declare.
6684
6685 2020-04-08 Tom Tromey <tromey@adacore.com>
6686
6687 * windows-nat.c (current_process_handle, current_process_id)
6688 (main_thread_id, last_sig, current_event, last_wait_event)
6689 (current_windows_thread, desired_stop_thread_id, pending_stops)
6690 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6691 (display_selectors, fake_create_process)
6692 (get_windows_debug_event): Update.
6693 * nat/windows-nat.h (current_process_handle, current_process_id)
6694 (main_thread_id, last_sig, current_event, last_wait_event)
6695 (current_windows_thread, desired_stop_thread_id, pending_stops)
6696 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6697 * nat/windows-nat.c (current_process_handle, current_process_id)
6698 (main_thread_id, last_sig, current_event, last_wait_event)
6699 (current_windows_thread, desired_stop_thread_id, pending_stops)
6700 (siginfo_er): New globals. Move from windows-nat.c.
6701
6702 2020-04-08 Tom Tromey <tromey@adacore.com>
6703
6704 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6705 (handle_load_dll): Update.
6706 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6707
6708 2020-04-08 Tom Tromey <tromey@adacore.com>
6709
6710 * windows-nat.c (enum thread_disposition_type): Move to
6711 nat/windows-nat.h.
6712 (windows_nat::thread_rec): Rename from thread_rec. No longer
6713 static.
6714 (windows_add_thread, windows_nat_target::fetch_registers)
6715 (windows_nat_target::store_registers, handle_exception)
6716 (windows_nat_target::resume, get_windows_debug_event)
6717 (windows_nat_target::get_tib_address)
6718 (windows_nat_target::thread_name)
6719 (windows_nat_target::thread_alive): Update.
6720 * nat/windows-nat.h (enum thread_disposition_type): Move from
6721 windows-nat.c.
6722 (thread_rec): Declare.
6723
6724 2020-04-08 Tom Tromey <tromey@adacore.com>
6725
6726 * windows-nat.c: Add "using namespace".
6727 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6728 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6729
6730 2020-04-08 Tom Tromey <tromey@adacore.com>
6731
6732 * nat/windows-nat.h (struct windows_thread_info): Declare
6733 destructor.
6734 * nat/windows-nat.c (~windows_thread_info): New.
6735
6736 2020-04-08 Tom Tromey <tromey@adacore.com>
6737
6738 PR gdb/22992
6739 * windows-nat.c (current_event): Update comment.
6740 (last_wait_event, desired_stop_thread_id): New globals.
6741 (struct pending_stop): New.
6742 (pending_stops): New global.
6743 (windows_nat_target) <stopped_by_sw_breakpoint>
6744 <supports_stopped_by_sw_breakpoint>: New methods.
6745 (windows_fetch_one_register): Add assertions. Adjust PC.
6746 (windows_continue): Handle pending stops. Suspend other threads
6747 when stepping. Use last_wait_event
6748 (wait_for_debug_event): New function.
6749 (get_windows_debug_event): Use wait_for_debug_event. Handle
6750 pending stops. Queue spurious stops.
6751 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6752 (windows_nat_target::kill): Use wait_for_debug_event.
6753 * nat/windows-nat.h (struct windows_thread_info)
6754 <stopped_at_software_breakpoint>: New field.
6755 * nat/windows-nat.c (windows_thread_info::resume): Clear
6756 stopped_at_software_breakpoint.
6757
6758 2020-04-08 Tom Tromey <tromey@adacore.com>
6759
6760 * windows-nat.c (enum thread_disposition_type): New.
6761 (thread_rec): Replace "get_context" parameter with "disposition";
6762 change type.
6763 (windows_add_thread, windows_nat_target::fetch_registers)
6764 (windows_nat_target::store_registers, handle_exception)
6765 (windows_nat_target::resume, get_windows_debug_event)
6766 (windows_nat_target::get_tib_address)
6767 (windows_nat_target::thread_name)
6768 (windows_nat_target::thread_alive): Update.
6769
6770 2020-04-08 Tom Tromey <tromey@adacore.com>
6771
6772 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6773 (windows_continue): Use windows_continue::resume.
6774 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6775 resume>: Declare new methods.
6776 * nat/windows-nat.c: New file.
6777 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6778
6779 2020-04-08 Tom Tromey <tromey@adacore.com>
6780
6781 * windows-nat.c (windows_add_thread, windows_delete_thread)
6782 (windows_nat_target::fetch_registers)
6783 (windows_nat_target::store_registers, fake_create_process)
6784 (windows_nat_target::resume, windows_nat_target::resume)
6785 (get_windows_debug_event, windows_nat_target::wait)
6786 (windows_nat_target::pid_to_str)
6787 (windows_nat_target::get_tib_address)
6788 (windows_nat_target::get_ada_task_ptid)
6789 (windows_nat_target::thread_name)
6790 (windows_nat_target::thread_alive): Use lwp, not tid.
6791
6792 2020-04-08 Tom Tromey <tromey@adacore.com>
6793
6794 * windows-nat.c (handle_exception)
6795 (windows_nat_target::thread_name): Update.
6796 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6797 <name>: Now unique_xmalloc_ptr.
6798
6799 2020-04-08 Tom Tromey <tromey@adacore.com>
6800
6801 * windows-nat.c (thread_rec)
6802 (windows_nat_target::fetch_registers): Update.
6803 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6804 Update comment.
6805 <debug_registers_changed, reload_context>: Now bool.
6806
6807 2020-04-08 Tom Tromey <tromey@adacore.com>
6808
6809 * windows-nat.c (windows_add_thread): Use new.
6810 (windows_init_thread_list, windows_delete_thread): Use delete.
6811 (get_windows_debug_event): Update.
6812 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6813 destructor, and initializers.
6814
6815 2020-04-08 Tom Tromey <tromey@adacore.com>
6816
6817 * windows-nat.c (struct windows_thread_info): Remove.
6818 * nat/windows-nat.h: New file.
6819
6820 2020-04-08 Tom Tromey <tromey@adacore.com>
6821
6822 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6823 (thread_rec, windows_add_thread, windows_delete_thread)
6824 (windows_continue): Update.
6825
6826 2020-04-08 Tom Tromey <tromey@adacore.com>
6827
6828 * windows-nat.c (struct windows_thread_info): Remove typedef.
6829 (thread_head): Remove.
6830 (thread_list): New global.
6831 (thread_rec, windows_add_thread, windows_init_thread_list)
6832 (windows_delete_thread, windows_continue): Update.
6833
6834 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6835
6836 * windows-tdep.h (windows_init_abi): Add comment.
6837 (cygwin_init_abi): New declaration.
6838 * windows-tdep.c: Split signal enumeration in two, one for
6839 Windows and one for Cygwin.
6840 (windows_gdb_signal_to_target): Only deal with signal of the
6841 Windows OS ABI.
6842 (cygwin_gdb_signal_to_target): New function.
6843 (windows_init_abi): Rename to windows_init_abi_common, don't set
6844 gdb_signal_to_target gdbarch method. Add new new function with
6845 this name.
6846 (cygwin_init_abi): New function.
6847 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6848 comment. Don't call windows_init_abi.
6849 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6850 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6851 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6852 i386_windows_init_abi_common, don't call windows_init_abi. Add
6853 a new function of this name.
6854 (i386_cygwin_init_abi): New function.
6855 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6856 OS ABI Cygwin.
6857
6858 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6859
6860 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6861 parameter.c.
6862 (dwarf2_read_gdb_index): Update.
6863
6864 2020-04-07 Kamil Rytarowski <n54@gmx.com>
6865
6866 * nbsd-tdep.c: Include "objfiles.h".
6867 (nbsd_skip_solib_resolver): New.
6868 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6869
6870 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6871
6872 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6873 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6874 with DW_LLE_base_addressx are being emitted in DWARFv5.
6875 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6876 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6877 unsigned integer.
6878
6879 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6880
6881 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6882 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6883 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6884 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6885 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6886 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6887 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6888
6889
6890 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6891
6892 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6893 (read_loclist_index): New function definition.
6894 (lookup_loclist_base): New function definition.
6895 (read_loclist_header): New function definition.
6896 (dwarf2_cu): Add loclist_base and loclist_header field.
6897 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6898 (read_full_die_1): Read the value of DW_AT_loclists_base.
6899 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6900 (read_attribute_value): Handle DW_FORM_loclistx.
6901 (skip_one_die): Handle DW_FORM_loclistx.
6902 (loclist_header): New structure declaration.
6903 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6904
6905 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6906
6907 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6908 constructor. Remove `addr` parameter from other constructor and
6909 add `per_cu` parameter.
6910 * dwarf2/read.c (create_partial_symtab): Update.
6911
6912 2020-04-07 Tom de Vries <tdevries@suse.de>
6913
6914 PR symtab/25796
6915 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6916 (partial_die_info::fixup): Inherit has_const_value.
6917
6918 2020-04-07 Tom de Vries <tdevries@suse.de>
6919
6920 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6921 symbols without address.
6922
6923 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6924
6925 * nbsd-nat.h (struct thread_info): Add forward declaration.
6926 (nbsd_nat_target::thread_alive): Add.
6927 (nbsd_nat_target::thread_name): Likewise.
6928 (nbsd_nat_target::update_thread_list): Likewise.
6929 (update_thread_list::post_attach): Likewise.
6930 (post_attach::pid_to_str): Likewise.
6931 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6932 (nbsd_thread_lister): Add.
6933 (nbsd_nat_target::thread_alive): Likewise.
6934 (nbsd_nat_target::thread_name): Likewise.
6935 (nbsd_add_threads): Likewise.
6936 (update_thread_list::post_attach): Likewise.
6937 (nbsd_nat_target::update_thread_list): Likewise.
6938 (post_attach::pid_to_str): Likewise.
6939
6940 2020-04-06 Tom Tromey <tromey@adacore.com>
6941
6942 * ada-valprint.c (print_variant_part): Extract the variant field.
6943 (print_field_values): Use the field as the outer value when
6944 recursing.
6945
6946 2020-04-06 Tom Tromey <tromey@adacore.com>
6947
6948 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6949 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6950 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6951 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6952 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6953
6954 2020-04-06 Tom Tromey <tromey@adacore.com>
6955
6956 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6957 TYPE_CODE_ERROR.
6958
6959 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6960
6961 * nbsd-tdep.c: Include "gdbarch.h".
6962 Define enum with NetBSD signal numbers.
6963 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6964 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6965 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6966 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6967 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6968 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6969 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6970 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6971 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6972 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6973 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6974 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6975
6976 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
6977
6978 PR gdb/25325
6979 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6980
6981 2020-04-03 Tom Tromey <tromey@adacore.com>
6982
6983 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6984 Read constant block.
6985
6986 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6987
6988 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6989 (gdb_bfd_get_full_section_contents): New declaration.
6990 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6991 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6992 gdb_bfd_get_full_section_contents.
6993
6994 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6995
6996 * exec.c (build_section_table): Replace internal_error with
6997 gdb_assert.
6998 (section_table_xfer_memory_partial): Likewise.
6999 * mdebugread.c (parse_partial_symbols): Likewise.
7000 * psymtab.c (lookup_partial_symbol): Likewise.
7001 * utils.c (wrap_here): Likewise.
7002
7003 2020-04-02 Tom Tromey <tromey@adacore.com>
7004
7005 * f-lang.c (build_fortran_types): Use arch_type to initialize
7006 builtin_complex_s32 in the TYPE_CODE_ERROR case.
7007
7008 2020-04-02 Tom Tromey <tromey@adacore.com>
7009
7010 * dwarf2/read.c (partial_die_info::read): Do not create a vector
7011 of attributes.
7012
7013 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
7014 Bernd Edlinger <bernd.edlinger@hotmail.de>
7015 Tom Tromey <tromey@adacore.com>
7016
7017 * buildsym.c (buildsym_compunit::record_line): Remove
7018 deduplication code.
7019
7020 2020-04-02 Tom de Vries <tdevries@suse.de>
7021
7022 PR ada/24671
7023 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
7024
7025 2020-04-02 Tom de Vries <tdevries@suse.de>
7026
7027 * dwarf2/read.c (dwarf2_gdb_index_functions,
7028 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
7029 NULL.
7030 * psymtab.c (psym_lookup_global_symbol_language): New function.
7031 (psym_functions): Init psym_lookup_global_symbol_language with
7032 psym_lookup_global_symbol_language.
7033 * symfile-debug.c (debug_sym_quick_functions): Init
7034 lookup_global_symbol_language with NULL.
7035 * symfile.c (set_initial_language): Remove fixme comment.
7036 * symfile.h (struct quick_symbol_functions): Add
7037 lookup_global_symbol_language.
7038 * symtab.c (find_quick_global_symbol_language): New function.
7039 (find_main_name): Use find_quick_global_symbol_language.
7040
7041 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
7042
7043 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
7044
7045 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7046
7047 * buildsym.c (record_line): Fix undefined behavior and preserve
7048 lines at eof.
7049
7050 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7051
7052 * buildsym.c (record_line): Fix the resizing condition.
7053
7054 2020-04-01 Tom Tromey <tom@tromey.com>
7055
7056 * value.h (value_literal_complex): Add comment.
7057 * valops.c (value_literal_complex): Refer to value.h.
7058
7059 2020-04-01 Tom Tromey <tom@tromey.com>
7060
7061 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
7062 (scalar_type): New rule, from typebase.
7063 (typebase): Use scalar_type. Recognize complex types.
7064 (field_name): Handle FLOAT_KEYWORD.
7065 (ident_tokens): Add _Complex and __complex__.
7066
7067 2020-04-01 Tom Tromey <tom@tromey.com>
7068
7069 PR exp/25299:
7070 * valarith.c (promotion_type, complex_binop): New functions.
7071 (scalar_binop): Handle complex numbers. Use promotion_type.
7072 (value_pos, value_neg, value_complement): Handle complex numbers.
7073
7074 2020-04-01 Tom Tromey <tom@tromey.com>
7075
7076 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
7077 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
7078 (parse_number): Handle complex numbers.
7079
7080 2020-04-01 Tom Tromey <tom@tromey.com>
7081
7082 * c-valprint.c (c_decorations): Change complex suffix to "i".
7083
7084 2020-04-01 Tom Tromey <tom@tromey.com>
7085
7086 * valprint.c (generic_value_print_complex): Use accessors.
7087 * value.h (value_real_part, value_imaginary_part): Declare.
7088 * valops.c (value_real_part, value_imaginary_part): New
7089 functions.
7090 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
7091
7092 2020-04-01 Tom Tromey <tom@tromey.com>
7093
7094 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
7095 (read_range_type): Update.
7096 * mdebugread.c (basic_type): Update.
7097 * go-lang.c (build_go_types): Use init_complex_type.
7098 * gdbtypes.h (struct main_type) <complex_type>: New member.
7099 (init_complex_type): Update.
7100 (arch_complex_type): Don't declare.
7101 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
7102 Make name if none given. Use alloc_type_copy. Look for cached
7103 complex type.
7104 (arch_complex_type): Remove.
7105 (gdbtypes_post_init): Use init_complex_type.
7106 * f-lang.c (build_fortran_types): Use init_complex_type.
7107 * dwarf2/read.c (read_base_type): Update.
7108 * d-lang.c (build_d_types): Use init_complex_type.
7109 * ctfread.c (read_base_type): Update.
7110
7111 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7112
7113 * infrun.c (stop_all_threads): Update assertion, plus when
7114 stopping threads, take into account that we might be trying
7115 to stop an all-stop target.
7116 (stop_waiting): Call 'stop_all_threads' if there exists a
7117 non-stop target.
7118
7119 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7120
7121 * target.h (exists_non_stop_target): New function declaration.
7122 * target.c (exists_non_stop_target): New function.
7123
7124 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
7125
7126 PR gdb/24789
7127 * eval.c (is_integral_or_integral_reference): New function.
7128 (evaluate_subexp_standard): Allow integer references in
7129 pointer arithmetic.
7130
7131 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7132
7133 * remote.c (remote_target::remote_parse_stop_reply): Remove the
7134 check for no ptid in the stop reply when the target is non-stop.
7135
7136 2020-04-01 Tom Tromey <tromey@adacore.com>
7137
7138 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
7139 "name" parameter to rvalue reference. Initialize m_name_holder.
7140 <lookup_name_info>: New overloads.
7141 <name>: Return gdb::string_view.
7142 <c_str>: New method.
7143 <make_ignore_params>: Update.
7144 <search_name_hash>: Update.
7145 <language_lookup_name>: Return const char *.
7146 <m_name>: Change type.
7147 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
7148 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
7149 (lookup_name_info::match_any): Update.
7150 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7151 Update.
7152 * minsyms.c (linkage_name_str): Update.
7153 * language.c (default_symbol_name_matcher): Update.
7154 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7155 Update.
7156 * ada-lang.c (ada_fold_name): Change parameter to string_view.
7157 (ada_lookup_name_info::ada_lookup_name_info): Update.
7158 (literal_symbol_name_matcher): Update.
7159
7160 2020-04-01 Tom Tromey <tromey@adacore.com>
7161
7162 * psymtab.c (psymtab_search_name): Remove function.
7163 (psym_lookup_symbol): Create search name and lookup name here.
7164 (lookup_partial_symbol): Remove "name" parameter; add
7165 lookup_name.
7166 (psym_expand_symtabs_for_function): Update.
7167
7168 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
7169
7170 PR tui/25597:
7171 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7172
7173 2020-03-31 Tom Tromey <tromey@adacore.com>
7174
7175 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7176 memcpy.
7177
7178 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
7179
7180 * features/riscv/32bit-csr.xml: Regenerated.
7181 * features/riscv/64bit-csr.xml: Regenerated.
7182
7183 2020-03-30 Tom Tromey <tromey@adacore.com>
7184
7185 * ada-valprint.c (print_variant_part): Update.
7186 * ada-lang.h (ada_which_variant_applies): Update.
7187 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7188 outer_valaddr parameters; replace with "outer" value parameter.
7189 (to_fixed_variant_branch_type): Update.
7190
7191 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7192
7193 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7194 <list>. Remove inclusion of observable.h.
7195 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7196 (struct arch_lwp_info): New struct.
7197 (class ppc_linux_dreg_interface): New class.
7198 (struct ppc_linux_process_info): New struct.
7199 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7200 <low_new_clone, low_forget_process, low_prepare_to_resume>
7201 <copy_thread_dreg_state, mark_thread_stale>
7202 <mark_debug_registers_changed, register_hw_breakpoint>
7203 <clear_hw_breakpoint, register_wp, clear_wp>
7204 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7205 <num_memory_accesses, get_trigger_type>
7206 <create_watchpoint_request, hwdebug_point_cmp>
7207 <init_arch_lwp_info, get_arch_lwp_info>
7208 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7209 methods.
7210 <struct ptid_hash>: New inner struct.
7211 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7212 members.
7213 (saved_dabr_value, hwdebug_info, max_slots_number)
7214 (struct hw_break_tuple, struct thread_points, ppc_threads)
7215 (have_ptrace_hwdebug_interface)
7216 (hwdebug_find_thread_points_by_tid)
7217 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7218 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7219 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7220 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7221 use m_dreg_interface.
7222 (hwdebug_point_cmp): Change to...
7223 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7224 reference arguments instead of pointers.
7225 (ppc_linux_nat_target::ranged_break_num_registers): Use
7226 m_dreg_interface.
7227 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7228 m_dreg_interface. Call register_hw_breakpoint.
7229 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7230 m_dreg_interface. Call clear_hw_breakpoint.
7231 (get_trigger_type): Change to...
7232 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7233 comment.
7234 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7235 use m_dreg_interface. Call register_hw_breakpoint.
7236 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7237 use m_dreg_interface. Call clear_hw_breakpoint.
7238 (can_use_watchpoint_cond_accel): Change to...
7239 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7240 method. Update comment, use m_dreg_interface and
7241 m_process_info.
7242 (calculate_dvc): Change to...
7243 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7244 m_dreg_interface.
7245 (num_memory_accesses): Change to...
7246 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7247 (check_condition): Change to...
7248 (ppc_linux_nat_target::check_condition): ...this method.
7249 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7250 comment, use m_dreg_interface.
7251 (create_watchpoint_request): Change to...
7252 (ppc_linux_nat_target::create_watchpoint_request): ...this
7253 method. Use m_dreg_interface.
7254 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7255 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7256 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7257 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7258 (ppc_linux_nat_target::low_forget_process)
7259 (ppc_linux_nat_target::low_new_fork)
7260 (ppc_linux_nat_target::low_new_clone)
7261 (ppc_linux_nat_target::low_delete_thread)
7262 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7263 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7264 only call mark_thread_stale.
7265 (ppc_linux_thread_exit): Remove.
7266 (ppc_linux_nat_target::stopped_data_address): Change to...
7267 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7268 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7269 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7270 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7271 comment. Call low_stopped_data_address.
7272 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7273 m_dreg_interface.
7274 (ppc_linux_nat_target::masked_watch_num_registers): Use
7275 m_dreg_interface.
7276 (ppc_linux_nat_target::copy_thread_dreg_state)
7277 (ppc_linux_nat_target::mark_thread_stale)
7278 (ppc_linux_nat_target::mark_debug_registers_changed)
7279 (ppc_linux_nat_target::register_hw_breakpoint)
7280 (ppc_linux_nat_target::clear_hw_breakpoint)
7281 (ppc_linux_nat_target::register_wp)
7282 (ppc_linux_nat_target::clear_wp)
7283 (ppc_linux_nat_target::init_arch_lwp_info)
7284 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7285 (_initialize_ppc_linux_nat): Remove observer callback.
7286
7287 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7288
7289 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7290 (ppc_linux_nat_target::auxv_parse)
7291 (ppc_linux_nat_target::read_description)
7292 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7293 Move up.
7294
7295 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7296
7297 * linux-nat.h (low_new_clone): New method.
7298 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7299
7300 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7301
7302 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7303 (dbx_expand_psymtab): ... this.
7304 (start_psymtab): Update.
7305 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7306 (mdebug_expand_psymtab): ... this.
7307 (parse_partial_symbols): Update.
7308 (new_psymtab): Update.
7309 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7310 (xcoff_expand_psymtab): ... this.
7311 (xcoff_start_psymtab): Update.
7312
7313 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7314
7315 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7316 <expand_dependencies>: ... this.
7317 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7318 (partial_symtab::expand_dependencies): ... this.
7319 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7320 Update.
7321 (dwarf2_psymtab::expand_psymtab): Update.
7322 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7323 * mdebugread.c (psymtab_to_symtab_1): Update.
7324 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7325
7326 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7327
7328 * psympriv.h (discard_psymtab): Remove.
7329 * dbxread.c (dbx_end_psymtab): Update.
7330 * xcoffread.c (xcoff_end_psymtab): Update.
7331
7332 2020-03-28 Tom Tromey <tom@tromey.com>
7333
7334 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7335 comment.
7336
7337 2020-03-28 Tom Tromey <tom@tromey.com>
7338
7339 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7340
7341 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
7342
7343 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7344
7345 2020-03-26 John Baldwin <jhb@FreeBSD.org>
7346
7347 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7348
7349 2020-03-26 Tom Tromey <tom@tromey.com>
7350
7351 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7352 (mark_common_block_symbol_computed, read_tag_string_type)
7353 (attr_to_dynamic_prop, read_subrange_type): Update.
7354 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7355 to be methods on struct attribute.
7356 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7357 (read_call_site_scope, partial_die_info::read)
7358 (partial_die_info::read, lookup_die_type, follow_die_ref):
7359 Update.
7360 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7361 from dwarf2_get_ref_die_offset.
7362 (attribute::constant_value): New method, from
7363 dwarf2_get_attr_constant_value.
7364 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7365 Declare method.
7366 <constant_value>: New method.
7367
7368 2020-03-26 Tom Tromey <tom@tromey.com>
7369
7370 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7371 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7372 (dwarf_type_encoding_name): Move to stringify.c.
7373 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7374 * dwarf2/stringify.c: New file.
7375 * dwarf2/stringify.h: New file.
7376
7377 2020-03-26 Tom Tromey <tom@tromey.com>
7378
7379 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7380 Rewrite.
7381
7382 2020-03-26 Tom Tromey <tom@tromey.com>
7383
7384 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7385 methods.
7386 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7387 (lookup_ranges_base): Likewise.
7388 (read_cutu_die_from_dwo, read_full_die_1): Update.
7389
7390 2020-03-26 Tom Tromey <tom@tromey.com>
7391
7392 * dwarf2/read.c (read_import_statement, read_file_scope)
7393 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7394 (read_lexical_block_scope, read_call_site_scope)
7395 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7396 (handle_struct_member_die, process_structure_scope)
7397 (update_enumeration_type_from_children)
7398 (process_enumeration_scope, read_array_type, read_common_block)
7399 (read_namespace, read_module, read_subroutine_type): Update.
7400 (sibling_die): Remove.
7401
7402 2020-03-26 Tom Tromey <tom@tromey.com>
7403
7404 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7405 (build_type_psymtabs_reader, read_structure_type)
7406 (read_enumeration_type, read_full_die_1): Update.
7407 (dwarf2_attr_no_follow): Move to die.h.
7408 * dwarf2/die.h (struct die_info) <attr>: New method.
7409
7410 2020-03-26 Tom Tromey <tom@tromey.com>
7411
7412 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7413 <base_address>: Now an optional.
7414 (dwarf2_find_base_address, dwarf2_rnglists_process)
7415 (dwarf2_ranges_process, fill_in_loclist_baton)
7416 (dwarf2_symbol_mark_computed): Update.
7417
7418 2020-03-26 Tom Tromey <tom@tromey.com>
7419
7420 * dwarf2/read.c (struct die_info): Move to die.h.
7421 * dwarf2/die.h: New file.
7422
7423 2020-03-26 Tom Tromey <tom@tromey.com>
7424
7425 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7426 * dwarf2/read.c
7427 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7428 Move to line-header.c.
7429 (read_checked_initial_length_and_offset, read_formatted_entries):
7430 Likewise.
7431 (dwarf_decode_line_header): Split into two.
7432 * dwarf2/line-header.c
7433 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7434 Move from read.c.
7435 (read_checked_initial_length_and_offset, read_formatted_entries):
7436 Likewise.
7437 (dwarf_decode_line_header): New function, split from read.c.
7438
7439 2020-03-26 Tom Tromey <tom@tromey.com>
7440
7441 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7442 Declare method.
7443 * dwarf2/read.c (read_attribute_value): Update.
7444 (dwarf2_per_objfile::read_line_string): Rename from
7445 read_indirect_line_string.
7446 (read_formatted_entries): Update.
7447
7448 2020-03-26 Tom Tromey <tom@tromey.com>
7449
7450 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7451 variable.
7452
7453 2020-03-26 Tom Tromey <tom@tromey.com>
7454
7455 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7456 const.
7457 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7458 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7459 parameter const.
7460
7461 2020-03-26 Tom Tromey <tom@tromey.com>
7462
7463 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7464 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7465 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7466 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7467
7468 2020-03-26 Tom Tromey <tom@tromey.com>
7469
7470 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7471 file_names_size, file_full_name, file_file_name>: Use const.
7472 <file_name_at, file_names>: Add const overload.
7473 * dwarf2/line-header.c (line_header::file_file_name)
7474 (line_header::file_full_name): Update.
7475
7476 2020-03-26 Tom Tromey <tom@tromey.com>
7477
7478 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7479 (macro_start_file, consume_improper_spaces)
7480 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7481 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7482 (dwarf_decode_macros): Move to macro.c.
7483 * dwarf2/macro.c: New file.
7484 * dwarf2/macro.h: New file.
7485 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7486
7487 2020-03-26 Tom Tromey <tom@tromey.com>
7488
7489 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7490 method.
7491 * dwarf2/section.c: New method. From
7492 read_indirect_string_at_offset_from.
7493 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7494 (read_indirect_string_at_offset_from): Move to section.c.
7495 (read_indirect_string_at_offset): Rewrite.
7496 (read_indirect_line_string_at_offset): Remove.
7497 (read_indirect_string, read_indirect_line_string)
7498 (dwarf_decode_macro_bytes): Update.
7499
7500 2020-03-26 Tom Tromey <tom@tromey.com>
7501
7502 * dwarf2/section.h (struct dwarf2_section_info)
7503 <overload_complaint>: Declare.
7504 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7505 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7506 Rename from dwarf2_section_buffer_overflow_complaint.
7507 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7508 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7509
7510 2020-03-26 Tom Tromey <tom@tromey.com>
7511
7512 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7513 Declare.
7514 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7515 Move from read.c.
7516 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7517 to section.c.
7518
7519 2020-03-26 Tom Tromey <tom@tromey.com>
7520
7521 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7522
7523 2020-03-26 Tom Tromey <tom@tromey.com>
7524
7525 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7526 "builder".
7527 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7528 parameter.
7529 (dwarf_decode_macros): Update.
7530
7531 2020-03-26 Tom Tromey <tom@tromey.com>
7532
7533 * dwarf2/read.c (read_attribute_value): Update.
7534 (read_indirect_string_from_dwz): Move to dwz.c; change into
7535 method.
7536 (dwarf_decode_macro_bytes): Update.
7537 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7538 * dwarf2/dwz.c: New file.
7539 * Makefile.in (COMMON_SFILES): Add dwz.c.
7540
7541 2020-03-26 Tom Tromey <tom@tromey.com>
7542
7543 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7544 * dwarf2/read.c: Add include.
7545 * dwarf2/index-write.c: Add include.
7546 * dwarf2/index-cache.c: Add include.
7547 * dwarf2/dwz.h: New file.
7548
7549 2020-03-25 Tom Tromey <tom@tromey.com>
7550
7551 * compile/compile-object-load.c (get_out_value_type): Mention
7552 correct symbol name in error message.
7553
7554 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
7555
7556 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7557
7558 2020-03-25 Tom de Vries <tdevries@suse.de>
7559
7560 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7561 * symmisc.c (dump_symtab_1): Print user and includes fields.
7562 (maintenance_info_symtabs): Same.
7563
7564 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7565
7566 PR gdb/25534
7567 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7568 (riscv_regcache_cooked_write): New function.
7569 (riscv_push_dummy_call): Use new function.
7570 (riscv_return_value): Likewise.
7571
7572 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7573
7574 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7575 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7576 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7577 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7578 * infrun.c (follow_fork): Likewise.
7579 (follow_fork_inferior): Likewise.
7580 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7581 * linux-nat.h (class linux_nat_target): Likewise.
7582 * remote.c (class remote_target) <follow_fork>: Likewise.
7583 (remote_target::follow_fork): Likewise.
7584 * target-delegates.c: Re-generate.
7585 * target.c (default_follow_fork): Likewise.
7586 (target_follow_fork): Likewise.
7587 * target.h (struct target_ops) <follow_fork>: Likewise.
7588 (target_follow_fork): Likewise.
7589
7590 2020-03-24 Tom de Vries <tdevries@suse.de>
7591
7592 * psymtab.c (maintenance_info_psymtabs): Print user field.
7593
7594 2020-03-20 Tom Tromey <tromey@adacore.com>
7595
7596 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7597 const.
7598 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7599 const.
7600
7601 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
7602
7603 * ptrace.m4: Don't check for ptrace declaration.
7604 * config.in: Re-generate.
7605 * configure: Re-generate.
7606 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7607 not defined.
7608
7609 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7610
7611 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7612 `PTRACE_TYPE_RET'.
7613 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7614 * sparc-nat.c (gdb_ptrace): Likewise.
7615 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7616
7617 2020-03-20 Tom Tromey <tromey@adacore.com>
7618
7619 * c-exp.y (lex_one_token): Fix assert.
7620
7621 2020-03-20 Tom Tromey <tromey@adacore.com>
7622
7623 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7624 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7625 strncpy call.
7626
7627 2020-03-20 Tom Tromey <tromey@adacore.com>
7628
7629 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7630
7631 2020-03-20 Tom Tromey <tromey@adacore.com>
7632
7633 * ada-valprint.c (print_variant_part): Remove parameters; switch
7634 to value-based API.
7635 (print_field_values): Likewise.
7636 (ada_val_print_struct_union): Likewise.
7637 (ada_value_print_1): Update.
7638
7639 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7640
7641 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7642 nbsd_nat_target instead of inf_ptrace_target.
7643 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7644 nbsd_nat_target.
7645
7646 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7647
7648 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7649 it to the ptrace call.
7650 * (store_registers): Likewise.
7651
7652 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7653
7654 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7655 it to the ptrace call.
7656 * (store_registers): Likewise.
7657
7658 2020-03-19 Luis Machado <luis.machado@linaro.org>
7659
7660 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7661 valid, fetch vg value from ptrace.
7662
7663 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7664 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7665 * inf-ptrace.c: Likewise.
7666 * (gdb_ptrace): Add.
7667 * (inf_ptrace_target::resume): Update.
7668 * (inf_ptrace_target::xfer_partial): Likewise.
7669 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7670 * (inf_ptrace_peek_poke): Update.
7671
7672 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7673
7674 * x86-bsd-nat.c (gdb_ptrace): New.
7675 * (x86bsd_dr_set): Add new argument `ptid'.
7676 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7677 x86bsd_dr_set_addr): Update.
7678
7679 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7680
7681 * remote.c (remote_target::process_stop_reply): Handle events for
7682 all threads differently.
7683
7684 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7685
7686 * completer.c (completion_tracker::remove_completion): Define new
7687 function.
7688 * completer.h (completion_tracker::remove_completion): Declare new
7689 function.
7690 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7691 when adding a C++ function symbol.
7692
7693 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7694
7695 * completer.c (completion_tracker::completion_hash_entry): Define
7696 new class.
7697 (advance_to_filename_complete_word_point): Call
7698 recompute_lowest_common_denominator.
7699 (completion_tracker::completion_tracker): Call discard_completions
7700 to setup the hash table.
7701 (completion_tracker::discard_completions): Allow for being called
7702 from the constructor, pass new equal function, and element deleter
7703 when constructing the hash table. Initialise new class member
7704 variables.
7705 (completion_tracker::maybe_add_completion): Remove use of
7706 m_entries_vec, and store more information into m_entries_hash.
7707 (completion_tracker::recompute_lcd_visitor): New function, most
7708 content taken from...
7709 (completion_tracker::recompute_lowest_common_denominator):
7710 ...here, this now just visits each item in the hash calling the
7711 above visitor.
7712 (completion_tracker::build_completion_result): Remove use of
7713 m_entries_vec, call recompute_lowest_common_denominator.
7714 * completer.h (completion_tracker::have_completions): Remove use
7715 of m_entries_vec.
7716 (completion_tracker::completion_hash_entry): Declare new class.
7717 (completion_tracker::recompute_lowest_common_denominator): Change
7718 function signature.
7719 (completion_tracker::recompute_lcd_visitor): Declare new function.
7720 (completion_tracker::m_entries_vec): Delete.
7721 (completion_tracker::m_entries_hash): Initialize to NULL.
7722 (completion_tracker::m_lowest_common_denominator_valid): New
7723 member variable.
7724 (completion_tracker::m_lowest_common_denominator_max_length): New
7725 member variable.
7726
7727 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7728
7729 * regformats/regdef.h: Put reg in gdb namespace.
7730
7731 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7732
7733 * i386-bsd-nat.c (gdb_ptrace): New.
7734 * (i386bsd_fetch_inferior_registers,
7735 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7736 * (i386bsd_fetch_inferior_registers,
7737 i386bsd_store_inferior_registers) Use gdb_ptrace.
7738
7739 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7740
7741 * amd64-bsd-nat.c (gdb_ptrace): New.
7742 * (amd64bsd_fetch_inferior_registers,
7743 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7744 * (amd64bsd_fetch_inferior_registers,
7745 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7746
7747 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7748
7749 * user-regs.c (user_reg::read): Rename to...
7750 (user_reg::xread): ...this.
7751 * (append_user_reg): Rename argument `read' to `xread'.
7752 * (user_reg_add_builtin): Likewise.
7753 * (user_reg_add): Likewise.
7754 * (value_of_user_reg): Likewise.
7755
7756 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7757
7758 * sparc-nat.c (gdb_ptrace): New.
7759 * sparc-nat.c (sparc_fetch_inferior_registers)
7760 (sparc_store_inferior_registers) Remove obsolete comment.
7761 * sparc-nat.c (sparc_fetch_inferior_registers)
7762 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7763 * sparc-nat.c (sparc_fetch_inferior_registers)
7764 (sparc_store_inferior_registers) Use gdb_ptrace.
7765
7766 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7767
7768 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7769 it to the ptrace call.
7770 * sh-nbsd-nat.c (store_registers): Likewise.
7771
7772 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7773
7774 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7775 nbsd_nat_target instead of inf_ptrace_target.
7776 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7777 nbsd_nat_target.
7778
7779 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7780
7781 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7782
7783 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7784
7785 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7786 <sys/sysctl.h>.
7787 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7788
7789 2020-03-17 Tom de Vries <tdevries@suse.de>
7790
7791 PR gdb/23710
7792 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7793 fields.
7794 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7795 fields.
7796 (process_imported_unit_die): Skip import of c++ CUs.
7797
7798 2020-03-16 Tom Tromey <tom@tromey.com>
7799
7800 * p-valprint.c (pascal_object_print_value): Initialize
7801 base_value.
7802
7803 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7804 Shahab Vahedi <shahab@synopsys.com>
7805
7806 * Makefile.in: Add arch/arc.o
7807 * configure.tgt: Likewise.
7808 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7809 (_initialize_arc_tdep): Don't initialize old target descriptions.
7810 (arc_read_description): New function to cache target descriptions.
7811 * arc-tdep.h (arc_read_description): Add proto type.
7812 * arch/arc.c: New file.
7813 * arch/arc.h: Likewise.
7814 * features/Makefile: Replace old target descriptions with new.
7815 * features/arc-arcompact.c: Remove.
7816 * features/arc-arcompact.xml: Likewise.
7817 * features/arc-v2.c: Likewise
7818 * features/arc-v2.xml: Likewise
7819 * features/arc/aux-arcompact.xml: New file.
7820 * features/arc/aux-v2.xml: Likewise.
7821 * features/arc/core-arcompact.xml: Likewise.
7822 * features/arc/core-v2.xml: Likewise.
7823 * features/arc/aux-arcompact.c: Generate.
7824 * features/arc/aux-v2.c: Likewise.
7825 * features/arc/core-arcompact.c: Likewise.
7826 * features/arc/core-v2.c: Likewise.
7827 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7828
7829 2020-03-16 Tom Tromey <tromey@adacore.com>
7830
7831 PR gdb/25663:
7832 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7833 putting value into bcache.
7834
7835 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7836
7837 PR gdb/21500
7838 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7839 to...
7840 (amd64_windows_init_abi_common): ... this. Don't set size of
7841 long type.
7842 (amd64_windows_init_abi): New function.
7843 (amd64_cygwin_init_abi): New function.
7844 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7845 the Cygwin OS ABI.
7846 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7847 comment.
7848
7849 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7850
7851 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7852 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7853 (pe_import_directory_entry): New struct type.
7854 (is_linked_with_cygwin_dll): New function.
7855 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7856 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7857 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7858
7859 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7860
7861 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7862 i386_cygwin_core_osabi_sniffer.
7863
7864 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7865
7866 * i386-cygwin-tdep.c: Rename to...
7867 * i386-windows-tdep.c: ... this.
7868 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7869 i386-windows-tdep.c.
7870 * configure.tgt: Likewise.
7871
7872 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7873
7874 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7875 * osabi.c (gdb_osabi_names): Add "Windows".
7876 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7877 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7878 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7879 i386_cygwin_osabi_sniffer.
7880 (_initialize_i386_cygwin_tdep): Register OS ABI
7881 GDB_OSABI_WINDOWS for i386.
7882 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7883 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7884 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7885 for x86-64.
7886 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7887 when the target matches '*-*-mingw*'.
7888
7889 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7890
7891 * defs.h (enum gdb_osabi): Move to...
7892 * osabi.h (enum gdb_osabi): ... here.
7893 * gdbarch.sh: Include osabi.h in gdbarch.h.
7894 * gdbarch.h: Re-generate.
7895
7896 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7897
7898 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7899 function.
7900 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7901
7902 2020-03-14 Tom Tromey <tom@tromey.com>
7903
7904 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7905 for C++.
7906 (c_type_print_modifier): Likewise. Add "language" parameter.
7907 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7908 (c_type_print_base_1): Update.
7909 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7910 constants.
7911 * type-stack.c (type_stack::insert): Handle tp_atomic and
7912 tp_restrict.
7913 (type_stack::follow_type_instance_flags): Likewise.
7914 (type_stack::follow_types): Likewise. Merge type-following code.
7915 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7916 (space_identifier, cv_with_space_id)
7917 (const_or_volatile_or_space_identifier_noopt)
7918 (const_or_volatile_or_space_identifier): Remove.
7919 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7920 rules.
7921 (ptr_operator, typebase): Update.
7922 (enum token_flag) <FLAG_C>: New constant.
7923 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7924 "_Atomic".
7925 (lex_one_token): Handle FLAG_C.
7926
7927 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7928
7929 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7930 it to the ptrace call.
7931 * m68k-bsd-nat.c (store_registers): Likewise.
7932
7933 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7934
7935 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7936 gdb_byte *.
7937 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7938 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7939 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7940
7941 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7942
7943 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7944 nbsd_nat_target instead of inf_ptrace_target.
7945 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7946 nbsd_nat_target.
7947
7948 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7949
7950 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7951 register_t.
7952
7953 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7954
7955 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7956 it to the ptrace call.
7957 * alpha-bsd-nat.c (store_registers): Likewise.
7958
7959 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7960
7961 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7962 includes.
7963 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7964 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7965 fill_fpregset): Likewise.
7966
7967 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7968
7969 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7970 nbsd_nat_target instead of inf_ptrace_target.
7971 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7972 nbsd_nat_target.
7973
7974 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7975
7976 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7977 register_t.
7978
7979 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7980
7981 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7982 it to the ptrace call.
7983 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7984 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7985 * arm-nbsd-nat.c (store_register): Likewise.
7986 * arm-nbsd-nat.c (store_regs): Likewise.
7987 * arm-nbsd-nat.c (store_fp_register): Likewise.
7988 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7989
7990 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7991
7992 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7993 nbsd_nat_target instead of inf_ptrace_target.
7994 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7995 nbsd_nat_target.
7996
7997 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7998
7999 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
8000 it to the ptrace call.
8001 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
8002
8003 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8004
8005 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
8006 it to the ptrace call.
8007 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
8008
8009 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8010
8011 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
8012 gdb_byte *.
8013 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
8014
8015 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8016
8017 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
8018 instead of inf_ptrace_target.
8019 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8020 nbsd_nat_target.
8021
8022 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8023
8024 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8025 register_t.
8026
8027 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8028
8029 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8030 register_t.
8031
8032 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8033
8034 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
8035 register_t.
8036
8037 2020-03-13 Tom Tromey <tom@tromey.com>
8038
8039 * value.h (val_print): Don't declare.
8040 * valprint.h (val_print_array_elements)
8041 (val_print_scalar_formatted, generic_val_print): Don't declare.
8042 * valprint.c (generic_val_print_array): Take a struct value.
8043 (generic_val_print_ptr, generic_val_print_memberptr)
8044 (generic_val_print_bool, generic_val_print_int)
8045 (generic_val_print_char, generic_val_print_complex)
8046 (generic_val_print): Remove.
8047 (generic_value_print): Update.
8048 (do_val_print): Remove unused parameters. Don't call
8049 la_val_print.
8050 (val_print): Remove.
8051 (common_val_print): Update. Don't call value_check_printable.
8052 (val_print_scalar_formatted, val_print_array_elements): Remove.
8053 * rust-lang.c (rust_val_print): Remove.
8054 (rust_language_defn): Update.
8055 * p-valprint.c (pascal_val_print): Remove.
8056 (pascal_value_print_inner): Update.
8057 (pascal_object_print_val_fields, pascal_object_print_val):
8058 Remove.
8059 (pascal_object_print_static_field): Update.
8060 * p-lang.h (pascal_val_print): Don't declare.
8061 * p-lang.c (pascal_language_defn): Update.
8062 * opencl-lang.c (opencl_language_defn): Update.
8063 * objc-lang.c (objc_language_defn): Update.
8064 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
8065 * m2-lang.h (m2_val_print): Don't declare.
8066 * m2-lang.c (m2_language_defn): Update.
8067 * language.h (struct language_defn) <la_val_print>: Remove.
8068 * language.c (unk_lang_value_print_inner): Rename. Change
8069 argument types.
8070 (unknown_language_defn, auto_language_defn): Update.
8071 * go-valprint.c (go_val_print): Remove.
8072 * go-lang.h (go_val_print): Don't declare.
8073 * go-lang.c (go_language_defn): Update.
8074 * f-valprint.c (f_val_print): Remove.
8075 * f-lang.h (f_value_print): Don't declare.
8076 * f-lang.c (f_language_defn): Update.
8077 * d-valprint.c (d_val_print): Remove.
8078 * d-lang.h (d_value_print): Don't declare.
8079 * d-lang.c (d_language_defn): Update.
8080 * cp-valprint.c (cp_print_value_fields)
8081 (cp_print_value_fields_rtti, cp_print_value): Remove.
8082 (cp_print_static_field): Update.
8083 * c-valprint.c (c_val_print_array, c_val_print_ptr)
8084 (c_val_print_struct, c_val_print_union, c_val_print_int)
8085 (c_val_print_memberptr, c_val_print): Remove.
8086 * c-lang.h (c_val_print_array, cp_print_value_fields)
8087 (cp_print_value_fields_rtti): Don't declare.
8088 * c-lang.c (c_language_defn, cplus_language_defn)
8089 (asm_language_defn, minimal_language_defn): Update.
8090 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
8091 (ada_val_print_enum): Take a struct value.
8092 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
8093 (ada_val_print): Remove.
8094 (ada_value_print_1): Update.
8095 (printable_val_type): Remove.
8096 * ada-lang.h (ada_val_print): Don't declare.
8097 * ada-lang.c (ada_language_defn): Update.
8098
8099 2020-03-13 Tom Tromey <tom@tromey.com>
8100
8101 * valprint.c (do_val_print): Update.
8102 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
8103 a struct value.
8104 (value_to_value_object_no_release): Declare.
8105 * python/py-value.c (value_to_value_object_no_release): New
8106 function.
8107 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
8108 struct value.
8109 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
8110 function.
8111 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
8112 a struct value.
8113 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
8114 Declare.
8115 (gdbscm_apply_val_pretty_printer): Take a struct value.
8116 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
8117 value.
8118 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
8119 value.
8120 * extension-priv.h (struct extension_language_ops)
8121 <apply_val_pretty_printer>: Take a struct value.
8122 * cp-valprint.c (cp_print_value): Create a struct value.
8123 (cp_print_value): Update.
8124
8125 2020-03-13 Tom Tromey <tom@tromey.com>
8126
8127 * ada-valprint.c (print_field_values): Call common_val_print.
8128
8129 2020-03-13 Tom Tromey <tom@tromey.com>
8130
8131 * ada-valprint.c (val_print_packed_array_elements): Remove
8132 bitoffset and val parameters. Call common_val_print.
8133 (ada_val_print_string): Remove offset, address, and original_value
8134 parameters.
8135 (ada_val_print_array): Update.
8136 (ada_value_print_array): New function.
8137 (ada_value_print_1): Call it.
8138
8139 2020-03-13 Tom Tromey <tom@tromey.com>
8140
8141 * ada-valprint.c (ada_value_print): Use common_val_print.
8142
8143 2020-03-13 Tom Tromey <tom@tromey.com>
8144
8145 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
8146
8147 2020-03-13 Tom Tromey <tom@tromey.com>
8148
8149 * ada-valprint.c (ada_value_print_num): New function.
8150 (ada_value_print_1): Use it.
8151
8152 2020-03-13 Tom Tromey <tom@tromey.com>
8153
8154 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8155
8156 2020-03-13 Tom Tromey <tom@tromey.com>
8157
8158 * ada-valprint.c (ada_value_print_ptr): New function.
8159 (ada_value_print_1): Use it.
8160
8161 2020-03-13 Tom Tromey <tom@tromey.com>
8162
8163 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8164 call common_val_print.
8165 (ada_val_print_1): Update.
8166 (ada_value_print_1): New function.
8167 (ada_value_print_inner): Rewrite.
8168
8169 2020-03-13 Tom Tromey <tom@tromey.com>
8170
8171 * cp-valprint.c (cp_print_value_fields): Update.
8172 (cp_print_value): New function.
8173
8174 2020-03-13 Tom Tromey <tom@tromey.com>
8175
8176 * m2-valprint.c (m2_value_print_inner): Use
8177 cp_print_value_fields.
8178 * cp-valprint.c (cp_print_value_fields): New function.
8179 * c-valprint.c (c_value_print_struct): New function.
8180 (c_value_print_inner): Use c_value_print_struct.
8181 * c-lang.h (cp_print_value_fields): Declare.
8182
8183 2020-03-13 Tom Tromey <tom@tromey.com>
8184
8185 * c-valprint.c (c_value_print_array): New function.
8186 (c_value_print_inner): Use it.
8187
8188 2020-03-13 Tom Tromey <tom@tromey.com>
8189
8190 * c-valprint.c (c_value_print_memberptr): New function.
8191 (c_value_print_inner): Use it.
8192
8193 2020-03-13 Tom Tromey <tom@tromey.com>
8194
8195 * c-valprint.c (c_value_print_int): New function.
8196 (c_value_print_inner): Use it.
8197
8198 2020-03-13 Tom Tromey <tom@tromey.com>
8199
8200 * c-valprint.c (c_value_print_ptr): New function.
8201 (c_value_print_inner): Use it.
8202
8203 2020-03-13 Tom Tromey <tom@tromey.com>
8204
8205 * c-valprint.c (c_value_print_inner): Rewrite.
8206
8207 2020-03-13 Tom Tromey <tom@tromey.com>
8208
8209 * valprint.c (generic_value_print_complex): New function.
8210 (generic_value_print): Use it.
8211
8212 2020-03-13 Tom Tromey <tom@tromey.com>
8213
8214 * valprint.c (generic_val_print_float): Don't call
8215 val_print_scalar_formatted.
8216 (generic_val_print, generic_value_print): Update.
8217
8218 2020-03-13 Tom Tromey <tom@tromey.com>
8219
8220 * valprint.c (generic_value_print_char): New function
8221 (generic_value_print): Use it.
8222
8223 2020-03-13 Tom Tromey <tom@tromey.com>
8224
8225 * valprint.c (generic_value_print_int): New function.
8226 (generic_value_print): Use it.
8227
8228 2020-03-13 Tom Tromey <tom@tromey.com>
8229
8230 * valprint.c (generic_value_print_bool): New function.
8231 (generic_value_print): Use it.
8232
8233 2020-03-13 Tom Tromey <tom@tromey.com>
8234
8235 * valprint.c (generic_val_print_func): Simplify.
8236 (generic_val_print, generic_value_print): Update.
8237
8238 2020-03-13 Tom Tromey <tom@tromey.com>
8239
8240 * valprint.c (generic_val_print_flags): Remove.
8241 (generic_val_print, generic_value_print): Update.
8242 (val_print_type_code_flags): Add original_value parameter.
8243
8244 2020-03-13 Tom Tromey <tom@tromey.com>
8245
8246 * valprint.c (generic_val_print): Update.
8247 (generic_value_print): Update.
8248 * valprint.c (generic_val_print_enum): Don't call
8249 val_print_scalar_formatted.
8250
8251 2020-03-13 Tom Tromey <tom@tromey.com>
8252
8253 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8254 * valprint.c (generic_value_print_ptr): New function.
8255
8256 2020-03-13 Tom Tromey <tom@tromey.com>
8257
8258 * valprint.c (generic_value_print): Rewrite.
8259
8260 2020-03-13 Tom Tromey <tom@tromey.com>
8261
8262 * p-valprint.c (pascal_object_print_value_fields)
8263 (pascal_object_print_value): New functions.
8264
8265 2020-03-13 Tom Tromey <tom@tromey.com>
8266
8267 * p-valprint.c (pascal_value_print_inner): Rewrite.
8268
8269 2020-03-13 Tom Tromey <tom@tromey.com>
8270
8271 * f-valprint.c (f_value_print_innner): Rewrite.
8272
8273 2020-03-13 Tom Tromey <tom@tromey.com>
8274
8275 * m2-valprint.c (m2_print_unbounded_array): New overload.
8276 (m2_print_unbounded_array): Update.
8277 (m2_print_array_contents): Take a struct value.
8278 (m2_value_print_inner): Rewrite.
8279
8280 2020-03-13 Tom Tromey <tom@tromey.com>
8281
8282 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8283 (d_value_print_inner): New function.
8284 * d-lang.h (d_value_print_inner): Declare.
8285 * d-lang.c (d_language_defn): Use d_value_print_inner.
8286
8287 2020-03-13 Tom Tromey <tom@tromey.com>
8288
8289 * go-valprint.c (go_value_print_inner): New function.
8290 * go-lang.h (go_value_print_inner): Declare.
8291 * go-lang.c (go_language_defn): Use go_value_print_inner.
8292
8293 2020-03-13 Tom Tromey <tom@tromey.com>
8294
8295 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8296 API.
8297 (rust_val_print): Rewrite.
8298 (rust_value_print_inner): New function, from rust_val_print.
8299 (rust_language_defn): Use rust_value_print_inner.
8300
8301 2020-03-13 Tom Tromey <tom@tromey.com>
8302
8303 * ada-valprint.c (ada_value_print_inner): New function.
8304 * ada-lang.h (ada_value_print_inner): Declare.
8305 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8306
8307 2020-03-13 Tom Tromey <tom@tromey.com>
8308
8309 * f-valprint.c (f_value_print_innner): New function.
8310 * f-lang.h (f_value_print_innner): Declare.
8311 * f-lang.c (f_language_defn): Use f_value_print_innner.
8312
8313 2020-03-13 Tom Tromey <tom@tromey.com>
8314
8315 * p-valprint.c (pascal_value_print_inner): New function.
8316 * p-lang.h (pascal_value_print_inner): Declare.
8317 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8318
8319 2020-03-13 Tom Tromey <tom@tromey.com>
8320
8321 * m2-valprint.c (m2_value_print_inner): New function.
8322 * m2-lang.h (m2_value_print_inner): Declare.
8323 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8324
8325 2020-03-13 Tom Tromey <tom@tromey.com>
8326
8327 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8328 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8329 * c-valprint.c (c_value_print_inner): New function.
8330 * c-lang.h (c_value_print_inner): Declare.
8331 * c-lang.c (c_language_defn, cplus_language_defn)
8332 (asm_language_defn, minimal_language_defn): Use
8333 c_value_print_inner.
8334
8335 2020-03-13 Tom Tromey <tom@tromey.com>
8336
8337 * p-valprint.c (pascal_object_print_value_fields): Now static.
8338 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8339
8340 2020-03-13 Tom Tromey <tom@tromey.com>
8341
8342 * c-valprint.c (c_val_print_array): Simplify.
8343
8344 2020-03-13 Tom Tromey <tom@tromey.com>
8345
8346 * valprint.c (value_print_array_elements): New function.
8347 * valprint.h (value_print_array_elements): Declare.
8348
8349 2020-03-13 Tom Tromey <tom@tromey.com>
8350
8351 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8352 * mips-tdep.c (mips_print_register): Use
8353 value_print_scalar_formatted.
8354
8355 2020-03-13 Tom Tromey <tom@tromey.com>
8356
8357 * valprint.h (value_print_scalar_formatted): Declare.
8358 * valprint.c (value_print_scalar_formatted): New function.
8359
8360 2020-03-13 Tom Tromey <tom@tromey.com>
8361
8362 * valprint.h (generic_value_print): Declare.
8363 * valprint.c (generic_value_print): New function.
8364
8365 2020-03-13 Tom Tromey <tom@tromey.com>
8366
8367 * valprint.c (do_val_print): Call la_value_print_inner, if
8368 available.
8369 * rust-lang.c (rust_language_defn): Update.
8370 * p-lang.c (pascal_language_defn): Update.
8371 * opencl-lang.c (opencl_language_defn): Update.
8372 * objc-lang.c (objc_language_defn): Update.
8373 * m2-lang.c (m2_language_defn): Update.
8374 * language.h (struct language_defn) <la_value_print_inner>: New
8375 member.
8376 * language.c (unknown_language_defn, auto_language_defn): Update.
8377 * go-lang.c (go_language_defn): Update.
8378 * f-lang.c (f_language_defn): Update.
8379 * d-lang.c (d_language_defn): Update.
8380 * c-lang.c (c_language_defn, cplus_language_defn)
8381 (asm_language_defn, minimal_language_defn): Update.
8382 * ada-lang.c (ada_language_defn): Update.
8383
8384 2020-03-13 Tom Tromey <tom@tromey.com>
8385
8386 * c-valprint.c (c_value_print): Use common_val_print.
8387
8388 2020-03-13 Tom Tromey <tom@tromey.com>
8389
8390 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8391
8392 2020-03-13 Tom Tromey <tom@tromey.com>
8393
8394 * f-valprint.c (f77_print_array_1, f_val_print): Use
8395 common_val_print.
8396
8397 2020-03-13 Tom Tromey <tom@tromey.com>
8398
8399 * riscv-tdep.c (riscv_print_one_register_info): Use
8400 common_val_print.
8401
8402 2020-03-13 Tom Tromey <tom@tromey.com>
8403
8404 * mi/mi-main.c (output_register): Use common_val_print.
8405
8406 2020-03-13 Tom Tromey <tom@tromey.com>
8407
8408 * infcmd.c (default_print_one_register_info): Use
8409 common_val_print.
8410
8411 2020-03-13 Tom Tromey <tom@tromey.com>
8412
8413 * valprint.h (common_val_print_checked): Declare.
8414 * valprint.c (common_val_print_checked): New function.
8415 * stack.c (print_frame_arg): Use common_val_print_checked.
8416
8417 2020-03-13 Tom Tromey <tom@tromey.com>
8418
8419 * valprint.c (do_val_print): New function, from val_print.
8420 (val_print): Use do_val_print.
8421 (common_val_print): Use do_val_print.
8422
8423 2020-03-13 Tom Tromey <tom@tromey.com>
8424
8425 * valprint.c (value_print): Use scoped_value_mark.
8426
8427 2020-03-13 Tom de Vries <tdevries@suse.de>
8428
8429 PR symtab/25646
8430 * psymtab.c (partial_symtab::partial_symtab): Don't set
8431 globals_offset and statics_offset. Push element onto
8432 current_global_psymbols and current_static_psymbols stacks.
8433 (concat): New function.
8434 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8435 element from current_global_psymbols and current_static_psymbols
8436 stacks. Concat popped elements to global_psymbols and
8437 static_symbols.
8438 (add_psymbol_to_list): Use current_global_psymbols and
8439 current_static_psymbols stacks.
8440 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8441 current_static_psymbols fields.
8442
8443 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8444
8445 * corelow.c (sniff_core_bfd): Remove.
8446 (class core_target) <m_core_vec>: Remove.
8447 (core_target::core_target): Update.
8448 (core_file_fns): Remove.
8449 (deprecated_add_core_fns): Remove.
8450 (default_core_sniffer): Remove.
8451 (sniff_core_bfd): Remove.
8452 (default_check_format): Remove.
8453 (gdb_check_format): Remove.
8454 (core_target_open): Update.
8455 (core_target::get_core_register_section): Update.
8456 (get_core_registers_cb): Update.
8457 (core_target::fetch_registers): Update.
8458 * gdbcore.h (struct core_fns): Remove.
8459 (deprecated_add_core_fns): Remove.
8460 (default_core_sniffer): Remove.
8461 (default_check_format): Remove.
8462
8463 2020-03-12 Tom Tromey <tom@tromey.com>
8464
8465 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8466 CORE_ADDR.
8467 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8468
8469 2020-03-12 Tom Tromey <tom@tromey.com>
8470
8471 * remote.c (remote_target::download_tracepoint)
8472 (remote_target::enable_tracepoint)
8473 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8474 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8475 sprintf_vma.
8476
8477 2020-03-12 Tom Tromey <tom@tromey.com>
8478
8479 * symfile-mem.c: Update CORE_ADDR size assert.
8480
8481 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8482
8483 * selftest.m4: Move to gdbsupport/.
8484 * acinclude.m4: Update path to selftest.m4.
8485
8486 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8487
8488 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8489 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8490 gdbarch-selfselftests.c and selftest-arch.c.
8491 (SUBDIR_UNITTESTS_OBS): Rename to...
8492 (SELFTESTS_OBS): ... this.
8493 (COMMON_SFILES): Remove disasm-selftests.c and
8494 gdbarch-selftests.c.
8495 * configure.ac: Don't add selftest-arch.{c,o} to
8496 CONFIG_{SRCS,OBS}.
8497 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8498 preprocessor conditions.
8499
8500 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8501
8502 * configure.ac: Don't source bfd/development.sh.
8503 * selftest.m4: Modify comment.
8504 * configure: Re-generate.
8505
8506 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8507
8508 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8509 not "true" or "false".
8510 * configure: Re-generate.
8511
8512 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8513
8514 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8515 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8516 renamed to arm_nbsd_supply_gregset.
8517 (fetch_register): Update to call arm_nbsd_supply_gregset.
8518 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8519 (arm_netbsd_nat_target::fetch_registers): Update.
8520 (fetch_elfcore_registers): Removed.
8521 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8522 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8523 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8524 not require NetBSD system headers.
8525 (arm_nbsd_regset): New struct.
8526 (arm_nbsd_iterate_over_regset_sections): New function.
8527 (arm_netbsd_init_abi_common): Updated to call
8528 set_gdbarch_iterate_over_regset_sections.
8529 * arm-nbsd-tdep.h: New file.
8530
8531 2020-03-11 Kevin Buettner <kevinb@redhat.com>
8532
8533 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8534 recursion.
8535
8536 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
8537
8538 * configure: Re-generate.
8539
8540 2020-03-11 Tom Tromey <tromey@adacore.com>
8541
8542 * ada-typeprint.c (print_choices): Fix comment.
8543
8544 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8545
8546 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8547 previous item in the list, when the list has no items.
8548
8549 2020-03-11 Tom de Vries <tdevries@suse.de>
8550
8551 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8552 PROP_LOCLIST handling code.
8553
8554 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8555
8556 * buildsym-legacy.c (record_line): Pass extra parameter to
8557 record_line.
8558 * buildsym.c (buildsym_compunit::record_line): Take an extra
8559 parameter, reduce duplication in the line table, and record the
8560 is_stmt flag in the line table.
8561 * buildsym.h (buildsym_compunit::record_line): Add extra
8562 parameter.
8563 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8564 non-statement lines.
8565 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8566 this to the symtab builder.
8567 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8568 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8569 through to dwarf_record_line_1.
8570 * infrun.c (process_event_stop_test): When stepping, don't stop at
8571 a non-statement instruction, and only refresh the step info when
8572 we land in the middle of a line's range. Also add an extra
8573 comment.
8574 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8575 field.
8576 * record-btrace.c (btrace_find_line_range): Only record lines
8577 marked as is-statement.
8578 * stack.c (frame_show_address): Show the frame address if we are
8579 in a non-statement sal.
8580 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8581 (maintenance_print_one_line_table): Print a header for the is_stmt
8582 column, and include is_stmt information in the output.
8583 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8584 preference to non-statements.
8585 (find_pcs_for_symtab_line): Prefer is-statement entries.
8586 (find_line_common): Likewise.
8587 * symtab.h (struct linetable_entry): Add is_stmt field.
8588 (struct symtab_and_line): Likewise.
8589 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8590 arranging the line table.
8591
8592 2020-03-07 Tom de Vries <tdevries@suse.de>
8593
8594 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8595 DIE.
8596
8597 2020-03-07 Tom Tromey <tom@tromey.com>
8598
8599 * valops.c (value_literal_complex): Remove obsolete comment.
8600 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8601 comment.
8602
8603 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8604
8605 * infrun.h: Forward-declare thread_info.
8606 (set_step_info): Add thread_info parameter, add doc.
8607 * infrun.c (set_step_info): Add thread_info parameter, move doc
8608 to header.
8609 * infrun.c (process_event_stop_test): Pass thread to
8610 set_step_info call.
8611 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8612 set_step_info.
8613 (prepare_one_step): Add thread_info parameter, pass it to
8614 set_step_frame and prepare_one_step (recursive) call.
8615 (step_1): Pass thread to prepare_one_step call.
8616 (step_command_fsm::should_stop): Pass thread to
8617 prepare_one_step.
8618 (until_next_fsm): Pass thread to set_step_frame call.
8619 (finish_command): Pass thread to set_step_info call.
8620
8621 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
8622
8623 * windows-tdep.c (windows_solib_create_inferior_hook):
8624 Check if inferior is running.
8625
8626 2020-03-06 Tom de Vries <tdevries@suse.de>
8627
8628 * NEWS: Fix "the the".
8629 * ctfread.c: Same.
8630
8631 2020-03-06 Tom de Vries <tdevries@suse.de>
8632
8633 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8634
8635 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8636
8637 * .dir-locals.el: Add a comment referencing the other copies of
8638 this file.
8639
8640 2020-03-05 John Baldwin <jhb@FreeBSD.org>
8641
8642 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8643 psargs.
8644
8645 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8646
8647 * .gitattributes: New file.
8648
8649 2020-03-04 Tom Tromey <tom@tromey.com>
8650
8651 * symmisc.c (print_symbol_bcache_statistics)
8652 (print_objfile_statistics): Update.
8653 * symfile.c (allocate_symtab): Use intern.
8654 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8655 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8656 macro_cache>: Remove.
8657 <string_cache>: New member.
8658 (struct objfile) <intern>: New methods.
8659 * elfread.c (elf_symtab_read): Use intern.
8660 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8661 (dwarf2_compute_name, dwarf2_physname)
8662 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8663 names.
8664 (guess_partial_die_structure_name): Update.
8665 (partial_die_info::fixup): Intern name.
8666 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8667 name.
8668 (dwarf2_name): Intern name. Update.
8669 * buildsym.c (buildsym_compunit::get_macro_table): Use
8670 string_cache.
8671
8672 2020-03-04 Tom Tromey <tom@tromey.com>
8673
8674 * jit.c (bfd_open_from_target_memory): Make "target" const.
8675 * corefile.c (gnutarget): Now const.
8676 * gdbcore.h (gnutarget): Now const.
8677
8678 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
8679
8680 * NEWS: Mention support for WOW64 processes.
8681 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8682 (amd64_windows_segment_register_p): Remove static.
8683 (_initialize_amd64_windows_nat): Update.
8684 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8685 * i386-windows-nat.c (context_offset): Update.
8686 (i386_mappings): Rename and remove static.
8687 (i386_windows_segment_register_p): Remove static.
8688 (_initialize_i386_windows_nat): Update.
8689 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8690 (STATUS_WX86_SINGLE_STEP): New macro.
8691 (EnumProcessModulesEx): New macro.
8692 (Wow64SuspendThread): New macro.
8693 (Wow64GetThreadContext): New macro.
8694 (Wow64SetThreadContext): New macro.
8695 (Wow64GetThreadSelectorEntry): New macro.
8696 (windows_set_context_register_offsets): Add static.
8697 (windows_set_segment_register_p): Likewise.
8698 (windows_add_thread): Adapt for WOW64 processes.
8699 (windows_fetch_one_register): Likewise.
8700 (windows_nat_target::fetch_registers): Likewise.
8701 (windows_store_one_register): Likewise.
8702 (display_selector): Likewise.
8703 (display_selectors): Likewise.
8704 (handle_exception): Likewise.
8705 (windows_continue): Likewise.
8706 (windows_nat_target::resume): Likewise.
8707 (windows_add_all_dlls): Likewise.
8708 (do_initial_windows_stuff): Likewise.
8709 (windows_nat_target::attach): Likewise.
8710 (windows_get_exec_module_filename): Likewise.
8711 (windows_nat_target::create_inferior): Likewise.
8712 (windows_xfer_siginfo): Likewise.
8713 (_initialize_loadable): Initialize Wow64SuspendThread,
8714 Wow64GetThreadContext, Wow64SetThreadContext,
8715 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8716 * windows-nat.h (windows_set_context_register_offsets):
8717 Remove declaration.
8718 (windows_set_segment_register_p): Likewise.
8719 (i386_windows_segment_register_p): Add declaration.
8720 (amd64_windows_segment_register_p): Likewise.
8721
8722 2020-03-04 Luis Machado <luis.machado@linaro.org>
8723
8724 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8725 in "info registers" for AArch64/ARM.
8726
8727 The change caused "info registers" to not print GPR's.
8728
8729 gdb/ChangeLog:
8730
8731 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8732
8733 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8734 when reg->group is empty and reggroup is not.
8735
8736 2020-03-03 Tom Tromey <tromey@adacore.com>
8737
8738 * dwarf2/frame.c (struct dwarf2_frame_cache)
8739 <checked_tailcall_bottom, entry_cfa_sp_offset,
8740 entry_cfa_sp_offset_p>: Remove members.
8741 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8742 (dwarf2_frame_prev_register): Don't call
8743 dwarf2_tailcall_sniffer_first.
8744 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8745 * frame-unwind.c (add_unwinder): New fuction.
8746 (frame_unwind_init): Use it. Add tailcall unwinder.
8747
8748 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8749 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8750
8751 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8752 value should be printed as true.
8753
8754 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
8755
8756 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8757 (windows_init_abi): Set and use windows_so_ops.
8758
8759 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8760
8761 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8762 when verifying if dealing with a convenience variable.
8763
8764 2020-03-03 Luis Machado <luis.machado@linaro.org>
8765
8766 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8767
8768 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8769
8770 * infrun.c (gdbarch_supports_displaced_stepping): New.
8771 (use_displaced_stepping): Break up conditions in smaller pieces.
8772 Use gdbarch_supports_displaced_stepping.
8773 (displaced_step_prepare_throw): Use
8774 gdbarch_supports_displaced_stepping.
8775
8776 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8777
8778 * NEWS: Mention new behaviour of the history filename.
8779 * top.c (write_history_p): Add comment.
8780 (show_write_history_p): Add header comment, give a different
8781 message when history writing is on, but the history filename is
8782 empty.
8783 (history_filename): Add comment.
8784 (history_filename_empty): New function.
8785 (show_history_filename): Add header comment, give a different
8786 message when the filename is empty.
8787 (init_history): Compare history_filename against nullptr, and only
8788 read history if the filename is not empty.
8789 (set_history_filename): Add header comment, and only make
8790 non-empty filenames absolute.
8791 (init_main): Make the filename argument to 'set history filename'
8792 optional.
8793
8794 2020-03-02 Christian Biesinger <cbiesinger@google.com>
8795
8796 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8797 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8798 (fetch_fp_register): Update.
8799 (fetch_fp_regs): Update.
8800 (store_fp_register): Update.
8801 (store_fp_regs): Update.
8802 (arm_netbsd_nat_target::read_description): New function.
8803 (fetch_elfcore_registers): Update.
8804
8805 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8806
8807 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8808 general_thread if the stop reply is missing a thread-id.
8809 (remote_target::process_stop_reply): Use the first non-exited
8810 thread if the target didn't pass a thread-id.
8811 * infrun.c (do_target_wait): Move call to
8812 switch_to_inferior_no_thread to ....
8813 (do_target_wait_1): ... here.
8814
8815 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8816
8817 * debuginfod-support.c: Include defs.h first.
8818
8819 2020-02-28 Tom de Vries <tdevries@suse.de>
8820
8821 * symfile.c (set_initial_language): Use default language for lookup.
8822
8823 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
8824
8825 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8826 reader variable, pass `this` to read_cutu_die_from_dwo.
8827
8828 2020-02-27 Aaron Merey <amerey@redhat.com>
8829
8830 * source.c (open_source_file): Check for nullptr when computing
8831 srcpath.
8832
8833 2020-02-27 Tom Tromey <tromey@adacore.com>
8834
8835 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8836 member.
8837 (dwarf2_add_field): Don't update nfields.
8838 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8839
8840 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8841
8842 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8843 abs.
8844
8845 2020-02-26 Tom Tromey <tom@tromey.com>
8846
8847 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8848 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8849 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8850 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8851 per_cu_data.
8852
8853 2020-02-26 Tom Tromey <tom@tromey.com>
8854
8855 * dwarf2/index-write.c (psym_index_map): Change type.
8856 (add_address_entry_worker, write_one_signatured_type)
8857 (recursively_count_psymbols, recursively_write_psymbols)
8858 (class debug_names, psyms_seen_size, write_gdbindex)
8859 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8860
8861 2020-02-26 Aaron Merey <amerey@redhat.com>
8862
8863 * Makefile.in: Handle optional debuginfod support.
8864 * NEWS: Update.
8865 * README: Add --with-debuginfod summary.
8866 * config.in: Regenerate.
8867 * configure: Regenerate.
8868 * configure.ac: Handle optional debuginfod support.
8869 * debuginfod-support.c: debuginfod helper functions.
8870 * debuginfod-support.h: Ditto.
8871 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8872 summary.
8873 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8874 when a dwz file cannot be found.
8875 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8876 debuginfo file cannot be found.
8877 * source.c (open_source_file): Query debuginfod servers when a
8878 source file cannot be found.
8879 * top.c (print_gdb_configuration): Include
8880 --{with,without}-debuginfod in the output.
8881
8882 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8883
8884 * thread.c (thr_try_catch_cmd): Print thread name.
8885
8886 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
8887
8888 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8889 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8890 dwarf2_fetch_die_type_sect_off): Move to...
8891 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8892 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8893 dwarf2_fetch_die_type_sect_off): ... here.
8894 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8895 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8896 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8897
8898 2020-02-26 Tom de Vries <tdevries@suse.de>
8899
8900 PR gdb/25603
8901 * symfile.c (set_initial_language): Exit-early if
8902 language_mode == language_mode_manual.
8903
8904 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8905
8906 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8907 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8908 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8909
8910 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8911
8912 * gdbtypes.c (create_array_type_with_stride): Handle negative
8913 array strides.
8914 * valarith.c (value_subscripted_rvalue): Likewise.
8915
8916 2020-02-25 Luis Machado <luis.machado@linaro.org>
8917
8918 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8919
8920 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8921
8922 * loc.h (dwarf2_get_die_type): Move to...
8923 * read.h (dwarf2_get_die_type): ... here.
8924 * read.c (dwarf2_get_die_type): Move doc to header.
8925
8926 2020-02-25 Joel Brobecker <brobecker@adacore.com>
8927
8928 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8929 'gnulib/Makefile.in' to the list.
8930
8931 2020-02-24 Tom Tromey <tom@tromey.com>
8932
8933 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8934 Remove.
8935 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8936 XOBNEWVEC.
8937
8938 2020-02-24 Tom Tromey <tom@tromey.com>
8939
8940 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8941 New method.
8942 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8943 (dw2_do_instantiate_symtab, dw2_get_file_names)
8944 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8945
8946 2020-02-24 Tom Tromey <tom@tromey.com>
8947
8948 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8949 make_scoped_restore.
8950 (dwarf2_psymtab::read_symtab): Don't clear
8951 reading_partial_symbols.
8952
8953 2020-02-24 Tom de Vries <tdevries@suse.de>
8954
8955 PR gdb/25592
8956 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8957
8958 2020-02-24 Tom de Vries <tdevries@suse.de>
8959
8960 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8961 commands layout next/prev/regs.
8962
8963 2020-02-22 Tom Tromey <tom@tromey.com>
8964
8965 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8966 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8967
8968 2020-02-22 Tom Tromey <tom@tromey.com>
8969
8970 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8971
8972 2020-02-22 Tom Tromey <tom@tromey.com>
8973
8974 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8975 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8976 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8977 * tui/tui.c (_initialize_tui): Add usage text.
8978
8979 2020-02-22 Tom Tromey <tom@tromey.com>
8980
8981 * tui/tui-win.c (tui_set_focus_command)
8982 (tui_set_win_height_command): Use error_no_arg.
8983 (_initialize_tui_win): Update help text.
8984 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8985
8986 2020-02-22 Tom Tromey <tom@tromey.com>
8987
8988 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8989 * tui/tui-disasm.h (struct tui_disasm_window)
8990 <display_start_addr>: Declare.
8991 * tui/tui-source.h (struct tui_source_window)
8992 <display_start_addr>: Declare.
8993 * tui/tui-winsource.h (struct tui_source_window_base)
8994 <show_source_line, display_start_addr>: New methods.
8995 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8996 Rename and move to protected section.
8997 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8998 (tui_source_window_base::do_erase_source_content): Update.
8999 (tui_source_window_base::show_source_line): Now a method.
9000 (tui_source_window_base::show_source_content)
9001 (tui_source_window_base::tui_source_window_base)
9002 (tui_source_window_base::rerender)
9003 (tui_source_window_base::refill)
9004 (tui_source_window_base::do_scroll_horizontal)
9005 (tui_source_window_base::set_is_exec_point_at)
9006 (tui_source_window_base::update_breakpoint_info)
9007 (tui_source_window_base::update_exec_info): Update.
9008 * tui/tui-source.c (tui_source_window::set_contents)
9009 (tui_source_window::showing_source_p)
9010 (tui_source_window::do_scroll_vertical)
9011 (tui_source_window::location_matches_p)
9012 (tui_source_window::line_is_displayed): Update.
9013 (tui_source_window::display_start_addr): New method.
9014 * tui/tui-disasm.c (tui_disasm_window::set_contents)
9015 (tui_disasm_window::do_scroll_vertical)
9016 (tui_disasm_window::location_matches_p): Update.
9017 (tui_disasm_window::display_start_addr): New method.
9018
9019 2020-02-22 Tom Tromey <tom@tromey.com>
9020
9021 * NEWS: Add entry for gdb.register_window_type.
9022 * tui/tui-layout.h (window_factory): New typedef.
9023 (tui_register_window): Declare.
9024 * tui/tui-layout.c (saved_tui_windows): New global.
9025 (tui_apply_current_layout): Use it.
9026 (tui_register_window): New function.
9027 * python/python.c (do_start_initialization): Call
9028 gdbpy_initialize_tui.
9029 (python_GdbMethods): Add "register_window_type" function.
9030 * python/python-internal.h (gdbpy_register_tui_window)
9031 (gdbpy_initialize_tui): Declare.
9032 * python/py-tui.c: New file.
9033 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
9034
9035 2020-02-22 Tom Tromey <tom@tromey.com>
9036
9037 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
9038
9039 2020-02-22 Tom Tromey <tom@tromey.com>
9040
9041 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
9042 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
9043 * tui/tui-data.c (tui_set_win_with_focus): Remove.
9044 (tui_set_win_focus_to): Move from tui-win.c.
9045
9046 2020-02-22 Tom Tromey <tom@tromey.com>
9047
9048 * tui/tui-layout.c (make_standard_window, get_locator_window): New
9049 functions.
9050 (known_window_types): New global.
9051 (tui_get_window_by_name): Reimplement.
9052 (initialize_known_windows): New function.
9053 (validate_window_name): Rewrite.
9054 (_initialize_tui_layout): Call initialize_known_windows.
9055
9056 2020-02-22 Tom Tromey <tom@tromey.com>
9057
9058 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
9059 Remove constants.
9060 * tui/tui-winsource.h (struct tui_source_window_base)
9061 <tui_source_window_base>: Remove parameter.
9062 * tui/tui-winsource.c
9063 (tui_source_window_base::tui_source_window_base): Remove
9064 parameter.
9065 (tui_source_window_base::refill): Update.
9066 * tui/tui-stack.h (struct tui_locator_window)
9067 <tui_locator_window>: Update.
9068 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
9069 Default the constructor.
9070 * tui/tui-regs.h (struct tui_data_item_window)
9071 <tui_data_item_window>: Default the constructor.
9072 (struct tui_data_window) <tui_data_window>: Likewise.
9073 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
9074 Default the constructor.
9075 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
9076 Default the constructor.
9077 <type>: Remove.
9078 (struct tui_win_info) <tui_win_info>: Default the constructor.
9079 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
9080 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
9081 Default the constructor.
9082
9083 2020-02-22 Tom Tromey <tom@tromey.com>
9084
9085 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
9086 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
9087 * tui/tui-win.c (tui_resize_all): Don't call
9088 tui_delete_invisible_windows.
9089 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
9090 done.
9091 (tui_set_layout): Update.
9092 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
9093 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
9094 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
9095
9096 2020-02-22 Tom Tromey <tom@tromey.com>
9097
9098 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
9099 correctly.
9100
9101 2020-02-22 Tom Tromey <tom@tromey.com>
9102
9103 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
9104
9105 2020-02-22 Tom Tromey <tom@tromey.com>
9106
9107 * tui/tui-winsource.h (struct tui_source_window_iterator)
9108 <inner_iterator>: New etytypedef.
9109 <tui_source_window_iterator>: Take "end" parameter.
9110 <tui_source_window_iterator>: Take iterator.
9111 <operator*, advance>: Update.
9112 <m_iter>: Change type.
9113 <m_end>: New field.
9114 (struct tui_source_windows) <begin, end>: Update.
9115 * tui/tui-layout.c (tui_windows): New global.
9116 (tui_apply_current_layout): Clear tui_windows.
9117 (tui_layout_window::apply): Update tui_windows.
9118 * tui/tui-data.h (tui_windows): Declare.
9119 (all_tui_windows): Now inline function.
9120 (class tui_window_iterator, struct all_tui_windows): Remove.
9121
9122 2020-02-22 Tom Tromey <tom@tromey.com>
9123
9124 PR tui/17850:
9125 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
9126 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
9127 "height" argument.
9128 (class tui_layout_window) <get_sizes>: Likewise.
9129 (class tui_layout_split) <tui_layout_split>: Add "vertical"
9130 argument.
9131 <get_sizes>: Add "height" argument.
9132 <m_vertical>: New field.
9133 * tui/tui-layout.c (tui_layout_split::clone): Update.
9134 (tui_layout_split::get_sizes): Add "height" argument.
9135 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
9136 (tui_new_layout_command): Parse "-horizontal".
9137 (_initialize_tui_layout): Update help string.
9138 (tui_layout_split::specification): Add "-horizontal" when needed.
9139 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
9140 argument.
9141 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
9142 New methods.
9143
9144 2020-02-22 Tom Tromey <tom@tromey.com>
9145
9146 * tui/tui-layout.h (enum tui_adjust_result): New.
9147 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
9148 (class tui_layout_window) <adjust_size>: Return
9149 tui_adjust_result. Rewrite.
9150 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9151 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9152
9153 2020-02-22 Tom Tromey <tom@tromey.com>
9154
9155 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9156 parameter and return types.
9157 (class tui_layout_base) <specification>: Add "depth".
9158 (class tui_layout_window) <specification>: Add "depth".
9159 (class tui_layout_split) <specification>: Add "depth".
9160 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9161 and return types.
9162 (tui_new_layout_command): Parse sub-layouts.
9163 (_initialize_tui_layout): Update help string.
9164 (tui_layout_window::specification): Add "depth".
9165 (add_layout_command): Update.
9166
9167 2020-02-22 Tom Tromey <tom@tromey.com>
9168
9169 * NEWS: Add "tui new-layout" item.
9170 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9171 Add new-layout command to help text.
9172 (validate_window_name): New function.
9173 (tui_new_layout_command): New function.
9174 (_initialize_tui_layout): Register "new-layout".
9175 (tui_layout_window::specification): New method.
9176 (tui_layout_window::specification): New method.
9177 * tui/tui-layout.h (class tui_layout_base) <specification>: New
9178 method.
9179 (class tui_layout_window) <specification>: New method.
9180 (class tui_layout_split) <specification>: New method.
9181
9182 2020-02-22 Tom Tromey <tom@tromey.com>
9183
9184 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9185 * tui/tui-win.c (window_name_completer): Update comment.
9186 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9187 Declare method.
9188 (class tui_layout_window) <replace_window>: Likewise.
9189 (class tui_layout_split) <replace_window>: Likewise.
9190 (tui_set_layout): Don't declare.
9191 (tui_set_initial_layout): Declare function.
9192 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9193 (asm_regs_layout): New globals.
9194 (tui_current_layout, show_layout): Remove.
9195 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9196 (find_layout, tui_apply_layout): New function.
9197 (layout_completer): Remove.
9198 (tui_next_layout): Reimplement.
9199 (tui_next_layout_command): New function.
9200 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9201 (tui_regs_layout): Reimplement.
9202 (tui_regs_layout_command): New function.
9203 (extract_display_start_addr): Rewrite.
9204 (next_layout, prev_layout): Remove.
9205 (tui_layout_window::replace_window): New method.
9206 (tui_layout_split::replace_window): New method.
9207 (destroy_layout): New function.
9208 (layout_list): New global.
9209 (add_layout_command): New function.
9210 (initialize_layouts): Update.
9211 (tui_layout_command): New function.
9212 (_initialize_tui_layout): Install "layout" commands.
9213 * tui/tui-data.h (enum tui_layout_type): Remove.
9214 (tui_current_layout): Don't declare.
9215
9216 2020-02-22 Tom Tromey <tom@tromey.com>
9217
9218 * tui/tui-regs.c (tui_reg_layout): Remove.
9219 (tui_reg_command): Use tui_regs_layout.
9220 * tui/tui-layout.h (tui_reg_command): Declare.
9221 * tui/tui-layout.c (tui_reg_command): New function.
9222
9223 2020-02-22 Tom Tromey <tom@tromey.com>
9224
9225 * tui/tui.c (tui_rl_delete_other_windows): Call
9226 tui_remove_some_windows.
9227 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9228 Declare method.
9229 (class tui_layout_window) <remove_windows>: New method.
9230 (class tui_layout_split) <remove_windows>: Declare.
9231 (tui_remove_some_windows): Declare.
9232 * tui/tui-layout.c (tui_remove_some_windows): New function.
9233 (tui_layout_split::remove_windows): New method.
9234
9235 2020-02-22 Tom Tromey <tom@tromey.com>
9236
9237 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9238 * tui/tui-layout.h (tui_next_layout): Declare.
9239 * tui/tui-layout.c (tui_next_layout): New function.
9240
9241 2020-02-22 Tom Tromey <tom@tromey.com>
9242
9243 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9244 correct coordinates.
9245
9246 2020-02-22 Tom Tromey <tom@tromey.com>
9247
9248 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9249 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9250 DATA_WIN case.
9251
9252 2020-02-22 Tom Tromey <tom@tromey.com>
9253
9254 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9255 TUI_DISASM_WIN, not tui_win_list.
9256
9257 2020-02-22 Tom Tromey <tom@tromey.com>
9258
9259 * valprint.c (generic_val_print_enum_1)
9260 (val_print_type_code_flags): Style member names.
9261 * rust-lang.c (val_print_struct, rust_print_enum)
9262 (rust_print_struct_def, rust_internal_print_type): Style member
9263 names.
9264 * p-valprint.c (pascal_object_print_value_fields): Style member
9265 names. Only call fprintf_symbol_filtered for static members.
9266 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9267 * f-valprint.c (f_val_print): Style member names.
9268 * f-typeprint.c (f_type_print_base): Style member names.
9269 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9270 call fprintf_symbol_filtered for static members.
9271 (cp_print_class_member): Style member names.
9272 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9273 member names.
9274 * ada-valprint.c (ada_print_scalar): Style enum names.
9275 (ada_val_print_enum): Likewise.
9276 * ada-typeprint.c (print_enum_type): Style enum names.
9277
9278 2020-02-21 Tom Tromey <tom@tromey.com>
9279
9280 * psympriv.h (struct partial_symtab): Update comment.
9281
9282 2020-02-21 Tom Tromey <tromey@adacore.com>
9283
9284 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9285 type is CORE_ADDR.
9286
9287 2020-02-21 Tom de Vries <tdevries@suse.de>
9288
9289 PR gdb/25534
9290 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9291 if dependencies[i]->user != NULL.
9292
9293 2020-02-21 Ali Tamur <tamur@google.com>
9294
9295 * dwarf2/read.c (dwarf2_name): Add null check.
9296
9297 2020-02-20 Tom Tromey <tom@tromey.com>
9298
9299 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9300 ">=", in binary search.
9301 (dwarf2_find_containing_comp_unit): New overload.
9302 (run_test): New self-test.
9303 (_initialize_dwarf2_read): Register new test.
9304
9305 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
9306
9307 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9308 * riscv-tdep.h: Likewise.
9309 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9310 rv32-only CSR.
9311 * features/riscv/64bit-csr.xml: Regenerated.
9312
9313 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9314 Tom Tromey <tom@tromey.com>
9315
9316 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9317 of 'fputc_unfiltered'.
9318 (putchar_unfiltered): Call 'fputc_unfiltered'.
9319 (fputc_unfiltered): Call 'fputs_unfiltered'.
9320
9321 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9322
9323 * config.in: Regenerate.
9324 * configure: Regenerate.
9325 * configure.ac: Add --with-python-libdir option.
9326 * main.c: Use WITH_PYTHON_LIBDIR.
9327
9328 2020-02-19 Tom Tromey <tom@tromey.com>
9329
9330 * symtab.c (general_symbol_info::compute_and_set_names): Use
9331 obstack_strndup. Simplify call to symbol_set_demangled_name.
9332
9333 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
9334
9335 * dwarf2/read.c (allocate_signatured_type_table,
9336 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9337 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9338 Remove objfile parameter, update all callers.
9339
9340 2020-02-19 Doug Evans <dje@google.com>
9341
9342 PR rust/25535
9343 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9344 rust_enum_variant calculation.
9345
9346 2020-02-19 Tom Tromey <tromey@adacore.com>
9347
9348 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9349
9350 2020-02-19 Tom Tromey <tromey@adacore.com>
9351
9352 * ada-lang.c (cache_symbol): Use obstack_strdup.
9353
9354 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9355
9356 * configure: Regenerate.
9357
9358 2020-02-19 Tom Tromey <tromey@adacore.com>
9359
9360 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9361 NULL check.
9362
9363 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
9364
9365 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9366
9367 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9368
9369 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9370 if GDBSERVER is not defined.
9371 (riscv_tdesc_cache): Likewise, also store const target_desc.
9372 (STATIC_IN_GDB): Define.
9373 (riscv_create_target_description): Update declaration with
9374 STATIC_IN_GDB.
9375 (riscv_lookup_target_description): New function, only define if
9376 GDBSERVER is not defined.
9377 * arch/riscv.h (riscv_create_target_description): Declare only
9378 when GDBSERVER is defined.
9379 (riscv_lookup_target_description): New declaration when GDBSERVER
9380 is not defined.
9381 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9382 (riscv_linux_read_features): ...this, and return
9383 riscv_gdbarch_features instead of target_desc.
9384 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9385 (riscv_linux_read_description): Rename to...
9386 (riscv_linux_read_features): ...this.
9387 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9388 Update to use riscv_gdbarch_features and
9389 riscv_lookup_target_description.
9390 * riscv-tdep.c (riscv_find_default_target_description): Use
9391 riscv_lookup_target_description instead of
9392 riscv_create_target_description.
9393
9394 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9395
9396 * valprint.c (generic_val_print_enum_1): When printing a flag
9397 enum with value 0 and there is no enumerator with value 0, print
9398 just "0" instead of "(unknown: 0x0)".
9399
9400 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9401
9402 * valprint.c (generic_val_print_enum_1): Print unknown part of
9403 flag enum in hex.
9404
9405 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9406
9407 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9408 flag enums to contain duplicate enumerators.
9409 * valprint.c (generic_val_print_enum_1): Update comment.
9410
9411 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9412
9413 * dwarf2/read.c: Include "count-one-bits.h".
9414 (update_enumeration_type_from_children): If an enumerator has
9415 multiple bits set, don't treat the enumeration as a "flag enum".
9416 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9417 of flag enums have 0 or 1 bit set.
9418
9419 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9420
9421 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9422 conversion.
9423 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9424 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9425 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9426 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9427 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9428
9429 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9430
9431 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9432
9433 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9434
9435 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9436 displaced_step_closure_up.
9437 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9438 (struct displaced_step_closure_up):
9439 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9440 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9441 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9442 Likewise.
9443 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9444 * gdbarch.c, gdbarch.h: Re-generate.
9445 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9446 displaced_step_closure_up.
9447 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9448 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9449 * infrun.h (displaced_step_closure_up): New type alias.
9450 (struct displaced_step_inferior_state) <step_closure>: Change
9451 type to displaced_step_closure_up.
9452 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9453 displaced_step_closure_up.
9454 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9455
9456 2020-02-14 Tom Tromey <tom@tromey.com>
9457
9458 * minidebug.c (gnu_debug_key): New global.
9459 (find_separate_debug_file_in_section): Use it.
9460
9461 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9462
9463 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9464 std::unique_ptr.
9465 * gdbarch.c: Re-generate.
9466 * gdbarch.h: Re-generate.
9467 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9468 change.
9469 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9470 type to std::unique_ptr.
9471 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9472 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9473 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9474 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9475 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9476 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9477 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9478 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9479 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9480
9481 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9482
9483 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9484 std::unique_ptr.
9485 (displaced_step_clear): Rename to...
9486 (displaced_step_reset): ... this. Just call displaced->reset ().
9487 (displaced_step_clear_cleanup): Rename to...
9488 (displaced_step_reset_cleanup): ... this.
9489 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9490 (displaced_step_fixup): Likewise.
9491 (resume_1): Likewise.
9492 (handle_inferior_event): Restore child's memory before calling
9493 displaced_step_fixup on the parent.
9494 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9495 to std::unique_ptr.
9496 <step_closure>: Change type to std::unique_ptr.
9497
9498 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9499
9500 * arm-tdep.c: Include count-one-bits.h.
9501 (cleanup_block_store_pc): Use count_one_bits.
9502 (cleanup_block_load_pc): Use count_one_bits.
9503 (arm_copy_block_xfer): Use count_one_bits.
9504 (thumb2_copy_block_xfer): Use count_one_bits.
9505 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9506 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9507 (thumb_get_next_pcs_raw): Use count_one_bits.
9508 (arm_get_next_pcs_raw): Use count_one_bits_l.
9509 * arch/arm.c (bitcount): Remove.
9510 * arch/arm.h (bitcount): Remove.
9511
9512 2020-02-14 Tom Tromey <tromey@adacore.com>
9513
9514 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9515 Update.
9516 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9517 * dwarf2/loc.c (call_site_find_chain_1): Return
9518 unique_xmalloc_ptr.
9519 (call_site_find_chain): Likewise.
9520
9521 2020-02-14 Richard Biener <rguenther@suse.de>
9522
9523 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9524 on expression with division operators.
9525
9526 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9527
9528 * MAINTAINERS (Write After Approval): Adding myself.
9529
9530 2020-02-12 Tom Tromey <tom@tromey.com>
9531
9532 * event-loop.c (event_data, gdb_event, event_handler_func):
9533 Remove.
9534
9535 2020-02-12 Tom Tromey <tom@tromey.com>
9536
9537 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9538 (dwarf2_frame_objfile_data): Add comment.
9539 (find_comp_unit, set_comp_unit): New functions.
9540 (dwarf2_frame_find_fde): Use find_comp_unit.
9541 (dwarf2_build_frame_info): Use set_comp_unit.
9542
9543 2020-02-12 Tom Tromey <tom@tromey.com>
9544
9545 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9546 (comp_unit): Don't initialize objfile.
9547 (execute_cfa_program): Add text_offset parameter.
9548 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9549 (dwarf2_frame_cache): Update.
9550 (dwarf2_build_frame_info): Don't set "objfile" member.
9551
9552 2020-02-12 Tom Tromey <tom@tromey.com>
9553
9554 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9555 (decode_frame_entry): Likewise.
9556 (dwarf2_build_frame_info): Update.
9557
9558 2020-02-12 Tom Tromey <tom@tromey.com>
9559
9560 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9561 (decode_frame_entry_1): Use the comp_unit obstack.
9562
9563 2020-02-12 Tom Tromey <tom@tromey.com>
9564
9565 * dwarf2/frame.c (struct comp_unit): Add initializers and
9566 constructor.
9567 (dwarf2_frame_objfile_data): Store a comp_unit.
9568 (dwarf2_frame_find_fde): Update.
9569 (dwarf2_build_frame_info): Use "new".
9570
9571 2020-02-12 Tom Tromey <tom@tromey.com>
9572
9573 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9574 (dwarf2_fde_table): Typedef for std::vector.
9575 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9576 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9577 (decode_frame_entry): Update.
9578 (dwarf2_build_frame_info): Use "new".
9579
9580 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9581
9582 * arm-tdep.c (arm_gdbarch_init): Update.
9583 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9584 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9585 have_neon, is_m>: Change to bool.
9586
9587 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9588
9589 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9590
9591 2020-02-12 Tom Tromey <tom@tromey.com>
9592
9593 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9594
9595 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
9596
9597 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9598 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9599
9600 2020-02-11 Tom Tromey <tom@tromey.com>
9601
9602 * psymtab.h: Update comment.
9603
9604 2020-02-11 Tom Tromey <tom@tromey.com>
9605
9606 * gdb_obstack.h (struct auto_obstack): Use
9607 DISABLE_COPY_AND_ASSIGN.
9608
9609 2020-02-11 Tom Tromey <tom@tromey.com>
9610
9611 * dwarf2/frame.h (struct objfile): Don't forward declare.
9612
9613 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9614
9615 * cris-tdep.c (cris_supply_gregset): Change signature to match
9616 what struct regset expects.
9617 (cris_regset): New struct.
9618 (fetch_core_registers): Remove.
9619 (cris_iterate_over_regset_sections): New function.
9620 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9621 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9622
9623 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9624
9625 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9626 registers.
9627
9628 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9629
9630 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9631
9632 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9633
9634 * configure: Re-generate.
9635
9636 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9637
9638 * configure: Re-generate.
9639
9640 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9641
9642 * acinclude: Update warning.m4 path.
9643 * warning.m4: Move to gdbsupport.
9644
9645 2020-02-11 Tom Tromey <tromey@adacore.com>
9646
9647 * remote.c (remote_console_output): Update.
9648 * printcmd.c (printf_command): Update.
9649 * event-loop.c (gdb_wait_for_event): Update.
9650 * linux-nat.c (sigchld_handler): Update.
9651 * remote-sim.c (gdb_os_write_stdout): Update.
9652 (gdb_os_flush_stdout): Update.
9653 (gdb_os_flush_stderr): Update.
9654 (gdb_os_write_stderr): Update.
9655 * exceptions.c (print_exception): Update.
9656 * remote-fileio.c (remote_fileio_func_read): Update.
9657 (remote_fileio_func_write): Update.
9658 * tui/tui.c (tui_enable): Update.
9659 * tui/tui-interp.c (tui_interp::init): Update.
9660 * utils.c (init_page_info): Update.
9661 (putchar_unfiltered, fputc_unfiltered): Update.
9662 (gdb_flush): Update.
9663 (emit_style_escape): Update.
9664 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9665 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9666 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9667 (stderr_file::write): Update.
9668 (stderr_file::puts): Update.
9669 * ui-file.h (ui_file_isatty, ui_file_write)
9670 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9671 (ui_file_puts): Don't declare.
9672
9673 2020-02-10 Tom de Vries <tdevries@suse.de>
9674
9675 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9676 sentinel to char *.
9677
9678 2020-02-09 Tom de Vries <tdevries@suse.de>
9679
9680 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9681 filename if it matches "<artificial>".
9682
9683 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9684
9685 * windows-tdep.c (struct enum_value_name): New struct.
9686 (create_enum): New function.
9687 (windows_get_siginfo_type): Create and use enum types.
9688
9689 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9690
9691 * NEWS: Mention $_siginfo support for Windows.
9692 * windows-nat.c (handle_exception): Set siginfo_er.
9693 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9694 (windows_xfer_siginfo): New function.
9695 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9696 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9697 (init_windows_gdbarch_data): New function.
9698 (get_windows_gdbarch_data): New function.
9699 (windows_get_siginfo_type): New function.
9700 (windows_init_abi): Register windows_get_siginfo_type.
9701 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9702
9703 2020-02-08 Tom Tromey <tom@tromey.com>
9704
9705 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9706 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9707 <keep>: Declare method.
9708 <m_keep>: Remove member.
9709 <~cutu_reader>: Remove.
9710 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9711 (cutu_reader::cutu_reader): Update.
9712 (cutu_reader::keep): Rename from ~cutu_reader.
9713 (process_psymtab_comp_unit, build_type_psymtabs_1)
9714 (process_skeletonless_type_unit, load_partial_comp_unit)
9715 (load_full_comp_unit, dwarf2_read_addr_index)
9716 (read_signatured_type): Update.
9717
9718 2020-02-08 Tom Tromey <tom@tromey.com>
9719
9720 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9721 "want_partial_unit" parameter.
9722 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9723 Inline check for DW_TAG_partial_unit.
9724 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9725
9726 2020-02-08 Tom Tromey <tom@tromey.com>
9727
9728 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9729 read.c.
9730 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9731 read.c.
9732
9733 2020-02-08 Tom Tromey <tom@tromey.com>
9734
9735 * dwarf2/read.c (read_address): Move to comp-unit.c.
9736 (dwarf2_rnglists_process, dwarf2_ranges_process)
9737 (read_attribute_value, dwarf_decode_lines_1)
9738 (var_decode_location, decode_locdesc): Update.
9739 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9740 read.c. Remove "cu" parameter.
9741 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9742 method.
9743
9744 2020-02-08 Tom Tromey <tom@tromey.com>
9745
9746 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9747 (read_indirect_line_string): Update.
9748 * dwarf2/comp-unit.c (read_offset): Remove.
9749 (read_comp_unit_head): Update.
9750 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9751 method.
9752 (read_offset): Don't declare.
9753
9754 2020-02-08 Tom Tromey <tom@tromey.com>
9755
9756 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9757 * dwarf2/read.c (struct comp_unit_head): Move to
9758 dwarf2/comp-unit.h.
9759 (enum class rcuh_kind): Move to comp-unit.h.
9760 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9761 (read_comp_unit_head, error_check_comp_unit_head)
9762 (read_and_check_comp_unit_head): Move to comp-unit.c.
9763 (read_offset, dwarf_unit_type_name): Likewise.
9764 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9765 (cutu_reader::cutu_reader, read_call_site_scope)
9766 (find_partial_die, follow_die_offset): Update.
9767 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9768
9769 2020-02-08 Tom Tromey <tom@tromey.com>
9770
9771 * dwarf2/read.c (read_offset_1): Move to leb.c.
9772 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9773 (dwarf_decode_macro_bytes): Update.
9774 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9775 * dwarf2/leb.h (read_offset): Declare.
9776
9777 2020-02-08 Tom Tromey <tom@tromey.com>
9778
9779 * dwarf2/read.c (dwarf2_section_size): Remove.
9780 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9781 Update.
9782 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9783
9784 2020-02-08 Tom Tromey <tom@tromey.com>
9785
9786 * dwarf2/read.c (read_initial_length): Move to leb.c.
9787 * dwarf2/leb.h (read_initial_length): Declare.
9788 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9789 handle_nonstd parameter.
9790 * dwarf2/frame.c (read_initial_length): Remove.
9791 (decode_frame_entry_1): Update.
9792
9793 2020-02-08 Tom Tromey <tom@tromey.com>
9794
9795 * dwarf2/loc.c (dwarf2_find_location_expression)
9796 (dwarf_evaluate_loc_desc::get_tls_address)
9797 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9798 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9799 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9800 (dwarf2_compile_property_to_c)
9801 (dwarf2_loc_desc_get_symbol_read_needs)
9802 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9803 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9804 (loclist_describe_location, loclist_tracepoint_var_ref)
9805 (loclist_generate_c_location): Update.
9806 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9807 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9808 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9809 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9810 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9811 (dwarf2_per_cu_data::addr_size)
9812 (dwarf2_per_cu_data::ref_addr_size)
9813 (dwarf2_per_cu_data::text_offset)
9814 (dwarf2_per_cu_data::addr_type): Now methods.
9815 (per_cu_header_read_in): Make per_cu "const".
9816 (dwarf2_version): Remove.
9817 (dwarf2_per_cu_data::int_type): Now a method.
9818 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9819 (set_die_type, read_array_type, read_subrange_index_type)
9820 (read_tag_string_type, read_subrange_type): Update.
9821 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9822 offset_size, ref_addr_size, text_offset, addr_type, version,
9823 objfile, int_type, addr_sized_int_type>: Declare methods.
9824
9825 2020-02-08 Tom Tromey <tom@tromey.com>
9826
9827 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9828 Move earlier.
9829
9830 2020-02-08 Tom Tromey <tom@tromey.com>
9831
9832 * dwarf2/read.h (dwarf_line_debug): Declare.
9833 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9834 * dwarf2/read.c: Move line_header code to new files.
9835 (dwarf_line_debug): No longer static.
9836 * dwarf2/line-header.c: New file.
9837 * dwarf2/line-header.h: New file.
9838
9839 2020-02-08 Tom Tromey <tom@tromey.com>
9840
9841 * dwarf2/read.c (struct line_header) <file_full_name,
9842 file_file_name>: Return unique_xmalloc_ptr.
9843 (line_header::file_file_name): Update.
9844 (line_header::file_full_name): Update.
9845 (dw2_get_file_names_reader): Update.
9846 (macro_start_file): Update.
9847
9848 2020-02-08 Tom Tromey <tom@tromey.com>
9849
9850 * dwarf2/read.c (struct line_header) <file_full_name,
9851 file_file_name>: Declare methods.
9852 (dw2_get_file_names_reader): Update.
9853 (file_file_name): Now a method.
9854 (file_full_name): Likewise.
9855 (macro_start_file): Update.
9856
9857 2020-02-08 Tom Tromey <tom@tromey.com>
9858
9859 * dwarf2/read.c (dwarf_always_disassemble)
9860 (show_dwarf_always_disassemble): Move to loc.c.
9861 (_initialize_dwarf2_read): Move "always-disassemble" registration
9862 to loc.c.
9863 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9864 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9865 static.
9866 (show_dwarf_always_disassemble): Move from read.c.
9867 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9868
9869 2020-02-08 Tom Tromey <tom@tromey.com>
9870
9871 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9872 (create_quick_file_names_table): Return htab_up.
9873 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9874 Update.
9875 * dwarf2/read.h (struct dwarf2_per_objfile)
9876 <quick_file_names_table>: Now htab_up.
9877
9878 2020-02-08 Tom Tromey <tom@tromey.com>
9879
9880 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9881
9882 2020-02-08 Tom Tromey <tom@tromey.com>
9883
9884 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9885 Rewrite.
9886 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9887 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9888 (abbrev_table::abbrev_table): No longer inline.
9889 (ABBREV_HASH_SIZE): Remove.
9890 (abbrev_table::m_abbrevs): Now an htab_up.
9891
9892 2020-02-08 Tom Tromey <tom@tromey.com>
9893
9894 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9895 (cutu_reader): Update.
9896 (build_type_psymtabs_1): Update.
9897 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9898 (abbrev_table::alloc_abbrev): Update.
9899 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9900 (abbrev_table::read): New static method, renamed from
9901 abbrev_table_read_table.
9902 (abbrev_table::alloc_abbrev)
9903 (abbrev_table::add_abbrev): Now private.
9904 (abbrev_table::abbrev_table): Now private.
9905 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9906
9907 2020-02-08 Tom Tromey <tom@tromey.com>
9908
9909 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9910 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9911 htab_up.
9912
9913 2020-02-08 Tom Tromey <tom@tromey.com>
9914
9915 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9916 htab_up.
9917 (lookup_dwo_unit_in_dwp): Update.
9918 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9919 on obstack.
9920
9921 2020-02-08 Tom Tromey <tom@tromey.com>
9922
9923 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9924 obstack.
9925
9926 2020-02-08 Tom Tromey <tom@tromey.com>
9927
9928 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9929 line_header_hash.
9930 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9931 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9932 Change type to htab_up.
9933
9934 2020-02-08 Tom Tromey <tom@tromey.com>
9935
9936 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9937 htab_up. Don't allocate on obstack.
9938 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9939 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9940 Change type to htab_up.
9941
9942 2020-02-08 Tom Tromey <tom@tromey.com>
9943
9944 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9945 Change type to htab_up.
9946 * dwarf2/read.c (create_signatured_type_table_from_index)
9947 (create_signatured_type_table_from_debug_names)
9948 (create_all_type_units, add_type_unit)
9949 (lookup_dwo_signatured_type, lookup_signatured_type)
9950 (process_skeletonless_type_unit): Update.
9951 (create_debug_type_hash_table, create_debug_types_hash_table):
9952 Change type of types_htab.
9953 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9954 htab_up. Don't allocate on obstack.
9955 (create_cus_hash_table): Change type of cus_htab parameter.
9956 (struct dwo_file) <cus, tus>: Now htab_up.
9957 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9958 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9959 (queue_and_load_all_dwo_tus): Update.
9960 * dwarf2/index-write.c (write_gdbindex): Update.
9961 (write_debug_names): Update.
9962
9963 2020-02-08 Tom Tromey <tom@tromey.com>
9964
9965 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9966 dwarf2/read.c. Remove "next" member. Add constructor ntad
9967 destructor.
9968 (struct dwarf2_per_objfile) <queue>: New member.
9969 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9970 dwarf2/read.h.
9971 (dwarf2_queue, dwarf2_queue_tail): Remove.
9972 (class dwarf2_queue_guard): Add parameter to constructor. Use
9973 DISABLE_COPY_AND_ASSIGN.
9974 <m_per_objfile>: New member.
9975 <~dwarf2_queue_guard>: Rewrite.
9976 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9977 Update.
9978 (~dwarf2_queue_item): New.
9979
9980 2020-02-08 Tom Tromey <tom@tromey.com>
9981
9982 * dwarf2/read.c (struct die_info) <has_children>: New member.
9983 (dw2_get_file_names_reader): Remove has_children.
9984 (dw2_get_file_names): Update.
9985 (read_cutu_die_from_dwo): Remove has_children.
9986 (cutu_reader::init_tu_and_read_dwo_dies)
9987 (cutu_reader::cutu_reader): Update.
9988 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9989 Remove has_children.
9990 (build_type_psymtabs_1, process_skeletonless_type_unit)
9991 (load_partial_comp_unit, load_full_comp_unit): Update.
9992 (create_dwo_cu_reader): Remove has_children.
9993 (create_cus_hash_table, read_die_and_children): Update.
9994 (read_full_die_1,read_full_die): Remove has_children.
9995 (read_signatured_type): Update.
9996 (class cutu_reader) <has_children>: Remove.
9997
9998 2020-02-08 Tom Tromey <tom@tromey.com>
9999
10000 * dwarf2/expr.c: Rename from dwarf2expr.c.
10001 * dwarf2/expr.h: Rename from dwarf2expr.h.
10002 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
10003 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
10004 * dwarf2/frame.c: Rename from dwarf2-frame.c.
10005 * dwarf2/frame.h: Rename from dwarf2-frame.h.
10006 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
10007 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
10008 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
10009 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
10010 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
10011 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
10012 * dwarf2/loc.c: Rename from dwarf2loc.c.
10013 * dwarf2/loc.h: Rename from dwarf2loc.h.
10014 * dwarf2/read.c: Rename from dwarf2read.c.
10015 * dwarf2/read.h: Rename from dwarf2read.h.
10016 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
10017 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
10018 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
10019 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
10020 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
10021 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
10022 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
10023 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
10024 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
10025 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
10026 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
10027 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
10028 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
10029 Update.
10030 * Makefile.in (COMMON_SFILES): Update.
10031 (HFILES_NO_SRCDIR): Update.
10032
10033 2020-02-08 Tom Tromey <tom@tromey.com>
10034
10035 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
10036 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
10037
10038 2020-02-08 Tom Tromey <tom@tromey.com>
10039
10040 * dwarf2read.h (struct die_info): Don't declare.
10041
10042 2020-02-08 Tom Tromey <tom@tromey.com>
10043
10044 * dwarf2read.h (die_info_ptr): Remove typedef.
10045
10046 2020-02-08 Tom Tromey <tom@tromey.com>
10047
10048 * dwarf2read.c (read_call_site_scope)
10049 (handle_data_member_location, dwarf2_add_member_fn)
10050 (mark_common_block_symbol_computed, read_common_block)
10051 (attr_to_dynamic_prop, partial_die_info::read)
10052 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
10053 (dwarf2_symbol_mark_computed, set_die_type): Update.
10054 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
10055 method.
10056 (attr_form_is_block): Don't declare.
10057 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
10058
10059 2020-02-08 Tom Tromey <tom@tromey.com>
10060
10061 * dwarf2read.c (dwarf2_find_base_address, )
10062 (read_call_site_scope, rust_containing_type)
10063 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
10064 (handle_data_member_location, dwarf2_add_member_fn)
10065 (get_alignment, read_structure_type, process_structure_scope)
10066 (mark_common_block_symbol_computed, read_common_block)
10067 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
10068 (partial_die_info::read, read_attribute_value, new_symbol)
10069 (lookup_die_type, dwarf2_get_ref_die_offset)
10070 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
10071 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
10072 (dwarf2_symbol_mark_computed): Update.
10073 * dwarf2/attribute.h (struct attribute) <value_as_address,
10074 form_is_section_offset, form_is_constant, form_is_ref>: Declare
10075 methods.
10076 (value_as_address, attr_form_is_section_offset)
10077 (attr_form_is_constant, attr_form_is_ref): Don't declare.
10078 * dwarf2/attribute.c (attribute::value_as_address)
10079 (attribute::form_is_section_offset, attribute::form_is_constant)
10080 (attribute::form_is_ref): Now methods.
10081
10082 2020-02-08 Tom Tromey <tom@tromey.com>
10083
10084 * dwarf2read.c (struct attribute, DW_STRING)
10085 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
10086 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
10087 (attr_form_is_block, attr_form_is_section_offset)
10088 (attr_form_is_constant, attr_form_is_ref): Move.
10089 * dwarf2/attribute.h: New file.
10090 * dwarf2/attribute.c: New file, from dwarf2read.c.
10091 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
10092
10093 2020-02-08 Tom Tromey <tom@tromey.com>
10094
10095 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
10096 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
10097 Move.
10098 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
10099 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
10100 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
10101 abbrev.c.
10102 * dwarf2/abbrev.h: New file.
10103 * dwarf2/abbrev.c: New file, from dwarf2read.c.
10104 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
10105
10106 2020-02-08 Tom Tromey <tom@tromey.com>
10107
10108 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
10109 (dwarf2_section_size, dwarf2_get_section_info)
10110 (create_signatured_type_table_from_debug_names)
10111 (create_addrmap_from_aranges, read_debug_names_from_section)
10112 (get_gdb_index_contents_from_section, read_comp_unit_head)
10113 (error_check_comp_unit_head, read_abbrev_offset)
10114 (create_debug_type_hash_table, init_cu_die_reader)
10115 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
10116 (read_comp_units_from_section, create_cus_hash_table)
10117 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10118 (create_dwp_v2_section, dwarf2_rnglists_process)
10119 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
10120 (abbrev_table_read_table, read_indirect_string_at_offset_from)
10121 (read_indirect_string_from_dwz, read_addr_index_1)
10122 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
10123 (dwarf_decode_macro_bytes, dwarf_decode_macros)
10124 (fill_in_loclist_baton): Update.
10125 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
10126 get_containing_section, get_bfd_owner, get_bfd_section,
10127 get_file_name, get_id, get_flags, empty, read>: Declare methods.
10128 (dwarf2_read_section, get_section_name, get_section_file_name)
10129 (get_containing_section, get_section_bfd_owner)
10130 (get_section_bfd_section, get_section_name, get_section_file_name)
10131 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
10132 declare.
10133 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
10134 (dwarf2_section_info::get_bfd_owner)
10135 (dwarf2_section_info::get_bfd_section)
10136 (dwarf2_section_info::get_name)
10137 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
10138 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
10139 (dwarf2_section_info::read): Now methods.
10140 * dwarf-index-write.c (class debug_names): Update.
10141
10142 2020-02-08 Tom Tromey <tom@tromey.com>
10143
10144 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
10145 Move to dwarf2/section.h.
10146 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
10147 (get_section_bfd_section, get_section_name)
10148 (get_section_file_name, get_section_id, get_section_flags)
10149 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
10150 dwarf2/section.c.
10151 * dwarf2/section.h: New file.
10152 * dwarf2/section.c: New file, from dwarf2read.c.
10153 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10154
10155 2020-02-08 Tom Tromey <tom@tromey.com>
10156
10157 * dwarf2read.h (read_unsigned_leb128): Don't declare.
10158 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10159 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10160 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10161 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10162 * dwarf2/leb.h: New file, from dwarf2read.c.
10163 * dwarf2/leb.c: New file, from dwarf2read.c.
10164 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10165 Remove.
10166 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10167 (COMMON_SFILES): Add dwarf2/leb.c.
10168
10169 2020-02-08 Joel Brobecker <brobecker@adacore.com>
10170
10171 GDB 9.1 released.
10172
10173 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10174
10175 PR gdb/25190:
10176 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10177 * gdb/remote.c (remote_console_output): Update.
10178 * gdb/ui-file.c (fputs_unfiltered): Rename to...
10179 (ui_file_puts): ...this.
10180 * gdb/ui-file.h (ui_file_puts): Add declaration.
10181 * gdb/utils.c (emit_style_escape): Update.
10182 (flush_wrap_buffer): Update.
10183 (fputs_maybe_filtered): Update.
10184 (fputs_unfiltered): Add function.
10185
10186 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10187
10188 * gdb/event-loop.c (gdb_wait_for_event): Update.
10189 * gdb/printcmd.c (printf_command): Update.
10190 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10191 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10192 (gdb_os_flush_stderr): Update.
10193 * gdb/remote.c (remote_console_output): Update.
10194 * gdb/ui-file.c (gdb_flush): Rename to...
10195 (ui_file_flush): ...this.
10196 (stderr_file::write): Update.
10197 (stderr_file::puts): Update.
10198 * gdb/ui-file.h (gdb_flush): Rename to...
10199 (ui_file_flush): ...this.
10200 * gdb/utils.c (gdb_flush): Add function.
10201 * gdb/utils.h (gdb_flush): Add declaration.
10202
10203 2020-02-07 Tom Tromey <tromey@adacore.com>
10204
10205 PR breakpoints/24915:
10206 * source.c (find_and_open_source): Do not check basenames_may_differ.
10207
10208 2020-02-07 Tom Tromey <tom@tromey.com>
10209
10210 * README: Update gdbserver documentation.
10211 * gdbserver: Move to top level.
10212 * configure.tgt (build_gdbserver): Remove.
10213 * configure.ac: Remove --enable-gdbserver.
10214 * configure: Rebuild.
10215 * Makefile.in (distclean): Don't mention gdbserver.
10216
10217 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10218
10219 * source-cache.c (source_cache::ensure): Surround
10220 get_plain_source_lines with a try/catch.
10221 (source_cache::get_line_charpos): Get rid of try/catch
10222 and only check for the return value of "ensure".
10223 * tui/tui-source.c (tui_source_window::set_contents):
10224 Simplify "nlines" calculation.
10225
10226 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10227
10228 * MAINTAINERS (Write After Approval): Add myself.
10229
10230 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10231
10232 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10233 function call.
10234
10235 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10236
10237 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10238
10239 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
10240
10241 * nat/riscv-linux-tdesc.h: New file.
10242 * nat/riscv-linux-tdesc.c: New file, taking code from...
10243 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10244 ... here.
10245 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10246 NATDEPFILES.
10247
10248 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10249
10250 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10251 we don't set the fake simulator ptid to the null_ptid.
10252
10253 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
10254
10255 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10256 * gdbthread.h (class thread_info) <resumed>: Likewise.
10257 * infrun.c (resume_1): Likewise.
10258 (proceed): Likewise.
10259 (infrun_thread_stop_requested): Likewise.
10260 (stop_all_threads): Likewise.
10261 (handle_inferior_event): Likewise.
10262 (restart_threads): Likewise.
10263 (finish_step_over): Likewise.
10264 (keep_going_stepped_thread): Likewise.
10265 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10266 (linux_handle_extended_wait): Likewise.
10267 * record-btrace.c (get_thread_current_frame_id): Likewise.
10268 * record-full.c (record_full_wait_1): Likewise.
10269 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10270 * target.c (target_resume): Likewise.
10271 * thread.c (set_running_thread): Likewise.
10272
10273 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10274
10275 * f-valprint.c (f77_print_array_1): Changed datatype of index
10276 variable to LONGEST from int to enable it to contain bound
10277 values correctly.
10278
10279 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
10280
10281 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10282 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10283 offsets according to FLEN determined.
10284 (riscv_linux_nat_target::read_description): Determine FLEN
10285 dynamically.
10286 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10287 according to FLEN determined.
10288 (riscv_linux_nat_target::store_registers): Likewise.
10289
10290 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10291
10292 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10293 when reg->group is empty and reggroup is not.
10294
10295 2020-01-31 Tom Tromey <tromey@adacore.com>
10296
10297 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10298 Call beneath target's mourn_inferior after unpushing.
10299
10300 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10301
10302 PR tui/9765
10303 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10304 have enough lines to fill the screen, still return the lowest
10305 address we found.
10306
10307 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10308
10309 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10310 '-', '<', and '>' commands.
10311
10312 2020-01-29 Pedro Alves <palves@redhat.com>
10313 Sergio Durigan Junior <sergiodj@redhat.com>
10314
10315 * infcmd.c (construct_inferior_arguments): Assert that
10316 'argc' is greater than 0.
10317
10318 2020-01-29 Luis Machado <luis.machado@linaro.org>
10319
10320 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10321 (BRK_INSN_MASK): Define to 0xd4200000.
10322 (aarch64_program_breakpoint_here_p): New function.
10323 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10324 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10325 breakpoint.c.
10326 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10327 breakpoint.h
10328 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10329 call gdbarch_program_breakpoint_here_p.
10330 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10331 default_program_breakpoint_here_p, changed return type to bool and
10332 simplified.
10333 * breakpoint.h (program_breakpoint_here): Moved prototype to
10334 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10335 return type to bool.
10336 * gdbarch.c: Regenerate.
10337 * gdbarch.h: Regenerate.
10338 * gdbarch.sh (program_breakpoint_here_p): New method.
10339 * infrun.c (handle_signal_stop): Call
10340 gdbarch_program_breakpoint_here_p.
10341
10342 2020-01-26 Tom Tromey <tom@tromey.com>
10343
10344 * ctfread.c (struct ctf_fp_info): Reindent.
10345 (_initialize_ctfread): Remove.
10346
10347 2020-01-26 Tom Tromey <tom@tromey.com>
10348
10349 * psymtab.c (partial_map_expand_apply)
10350 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10351 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10352 (psym_print_stats, psym_expand_symtabs_for_function)
10353 (psym_map_symbol_filenames, psym_map_matching_symbols)
10354 (psym_expand_symtabs_matching)
10355 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10356 (maintenance_check_psymtabs): Use new methods.
10357 * psympriv.h (struct partial_symtab) <readin_p,
10358 get_compunit_symtab>: New methods.
10359 <readin, compunit_symtab>: Remove members.
10360 (struct standard_psymtab): New.
10361 (struct legacy_psymtab): Derive from standard_psymtab.
10362 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10363 standard_psymtab.
10364 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10365
10366 2020-01-26 Tom Tromey <tom@tromey.com>
10367
10368 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10369 read_dependencies. Add assert.
10370 * psymtab.c (partial_symtab::read_dependencies): New method.
10371 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10372 method.
10373 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10374 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10375 read_dependencies.
10376 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10377 Add assert.
10378
10379 2020-01-26 Tom Tromey <tom@tromey.com>
10380
10381 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10382 Call expand_psymtab.
10383 (xcoff_read_symtab): Call expand_psymtab.
10384 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10385 legacy_expand_psymtab.
10386 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10387 method.
10388 (struct legacy_psymtab) <expand_psymtab>: Implement.
10389 <legacy_expand_psymtab>: New member.
10390 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10391 (parse_partial_symbols): Set legacy_expand_psymtab.
10392 (psymtab_to_symtab_1): Change argument order. Call
10393 expand_psymtab.
10394 (new_psymtab): Set legacy_expand_psymtab.
10395 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10396 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10397 expand_psymtab.
10398 (dwarf2_psymtab::expand_psymtab): Rename from
10399 psymtab_to_symtab_1. Call expand_psymtab.
10400 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10401 (dbx_end_psymtab): Likewise.
10402 (dbx_psymtab_to_symtab_1): Change argument order. Call
10403 expand_psymtab.
10404 (dbx_read_symtab): Call expand_psymtab.
10405 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10406 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10407 (ctf_psymtab::read_symtab): Call expand_psymtab.
10408
10409 2020-01-26 Tom Tromey <tom@tromey.com>
10410
10411 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10412 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10413 messages.
10414 * mdebugread.c (mdebug_read_symtab): Remove prints.
10415 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10416 assert.
10417 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10418
10419 2020-01-26 Tom Tromey <tom@tromey.com>
10420
10421 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10422 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10423 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10424 legacy_symtab.
10425 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10426 * psymtab.c (psymtab_to_symtab): Call method.
10427 (dump_psymtab): Update.
10428 * psympriv.h (struct partial_symtab): Add virtual destructor.
10429 <read_symtab>: New method.
10430 (struct legacy_symtab): New.
10431 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10432 (struct pst_map) <pst>: Now a legacy_psymtab.
10433 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10434 (new_psymtab): Use legacy_psymtab.
10435 * dwarf2read.h (struct dwarf2_psymtab): New.
10436 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10437 * dwarf2read.c (dwarf2_create_include_psymtab)
10438 (dwarf2_build_include_psymtabs, create_type_unit_group)
10439 (create_partial_symtab, process_psymtab_comp_unit_reader)
10440 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10441 (set_partial_user): Use dwarf2_psymtab.
10442 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10443 (psymtab_to_symtab_1, process_full_comp_unit)
10444 (process_full_type_unit, dwarf2_ranges_read)
10445 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10446 (dwarf_decode_lines): Use dwarf2_psymtab.
10447 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10448 (add_address_entry_worker, write_one_signatured_type)
10449 (recursively_count_psymbols, recursively_write_psymbols)
10450 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10451 (write_debug_names): Likewise.
10452 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10453 <pst>: Now a legacy_psymtab.
10454 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10455 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10456 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10457 * ctfread.c (struct ctf_psymtab): New.
10458 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10459 ctf_psymtab.
10460 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10461 (create_partial_symtab): Return a ctf_psymtab.
10462 (scan_partial_symbols): Update.
10463
10464 2020-01-26 Tom Tromey <tom@tromey.com>
10465
10466 * xcoffread.c (xcoff_start_psymtab): Use new.
10467 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10468 renamed from start_psymtab_common.
10469 * psympriv.h (struct partial_symtab): Add new constructor.
10470 (start_psymtab_common): Don't declare.
10471 * mdebugread.c (parse_partial_symbols): Use new.
10472 * dwarf2read.c (create_partial_symtab): Use new.
10473 * dbxread.c (start_psymtab): Use new.
10474 * ctfread.c (create_partial_symtab): Use new.
10475
10476 2020-01-26 Tom Tromey <tom@tromey.com>
10477
10478 * xcoffread.c (xcoff_end_psymtab): Use new.
10479 * psymtab.c (start_psymtab_common): Use new.
10480 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10481 Update.
10482 * psympriv.h (struct partial_symtab): Add parameters to
10483 constructor. Don't inline.
10484 (allocate_psymtab): Don't declare.
10485 * mdebugread.c (new_psymtab): Use new.
10486 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10487 * dbxread.c (dbx_end_psymtab): Use new.
10488
10489 2020-01-26 Tom Tromey <tom@tromey.com>
10490
10491 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10492 allocate_psymtab. Update documentation.
10493 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10494 allocate_psymtab. Do not use new.
10495 (allocate_psymtab): Use new. Update.
10496
10497 2020-01-26 Tom Tromey <tom@tromey.com>
10498
10499 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10500 * psymtab.c (psym_print_stats): Update.
10501 * psympriv.h (struct partial_symtab) <readin,
10502 psymtabs_addrmap_supported, anonymous>: Now bool.
10503 * mdebugread.c (psymtab_to_symtab_1): Update.
10504 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10505 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10506 (process_full_comp_unit, process_full_type_unit): Update.
10507 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10508 * ctfread.c (psymtab_to_symtab): Update.
10509
10510 2020-01-26 Tom Tromey <tom@tromey.com>
10511
10512 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10513 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10514 * psymtab.c (psymtab_storage): Delete psymtabs.
10515 (psymtab_storage::allocate_psymtab): Use new.
10516 (psymtab_storage::discard_psymtab): Use delete.
10517 * psympriv.h (struct partial_symtab): Add constructor and
10518 initializers.
10519
10520 2020-01-26 Tom Tromey <tom@tromey.com>
10521
10522 * machoread.c: Do not include psympriv.h.
10523
10524 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10525
10526 * NEWS: Mention the new option and the set/show commands.
10527
10528 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10529
10530 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10531 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10532 (validate_exec_file): New variables, enums, functions.
10533 (exec_file_locate_attach, print_section_info): Style the filenames.
10534 (_initialize_exec): Install show_exec_file_mismatch_command and
10535 set_exec_file_mismatch_command.
10536 * gdbcore.h (validate_exec_file): Declare.
10537 * infcmd.c (attach_command): Call validate_exec_file.
10538 * remote.c ( remote_target::remote_add_inferior): Likewise.
10539
10540 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10541
10542 * frame.c (find_frame_sal): Move call to get_next_frame into more
10543 inner scope.
10544 * inline-frame.c (inilne_state) <inline_state>: Update argument
10545 types.
10546 (inilne_state) <skipped_symbol>: Rename to...
10547 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10548 (skip_inline_frames): Build vector of skipped symbols and use this
10549 to reate the inline_state.
10550 (inline_skipped_symbol): Add a comment and some assertions, fetch
10551 skipped symbol from the list.
10552
10553 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10554
10555 * buildsym.c (lte_is_less_than): Delete.
10556 (buildsym_compunit::end_symtab_with_blockvector): Create local
10557 lambda function to sort line table entries, and use
10558 std::stable_sort instead of std::sort.
10559 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10560 markers when looking for a previous line.
10561
10562 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10563
10564 * dwarf2read.c (lnp_state_machine::record_line): Include
10565 end_sequence parameter in debug print out. Record the line if we
10566 are at an end_sequence marker even if it's not the start of a
10567 statement.
10568 * symmisc.c (maintenance_print_one_line_table): Print end of
10569 sequence markers with 'END' not '0'.
10570
10571 2020-01-24 Pedro Alves <palves@redhat.com>
10572
10573 PR gdb/25410
10574 * thread.c (scoped_restore_current_thread::restore): Use
10575 switch_to_inferior_no_thread.
10576 * exec.c: Include "progspace-and-thread.h".
10577 (add_target_sections, remove_target_sections):
10578 scoped_restore_current_pspace_and_thread instead of
10579 scoped_restore_current_thread.
10580 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10581 and aspace to the inferior before calling clone_program_space.
10582 Remove stale comment.
10583
10584 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10585
10586 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10587 (arm_netbsd_nat_target::fetch_registers): ...this.
10588 (arm_nbsd_nat_target::store_registers): Rename to...
10589 (arm_netbsd_nat_target::store_registers): ...this.
10590
10591 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10592
10593 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10594 register_t.
10595
10596 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10597
10598 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10599 Update comment.
10600 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10601 Likewise.
10602 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10603 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10604 the correct replacement (iterate_over_regset_sections).
10605 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10606 Update comment.
10607
10608 2020-01-24 Graham Markall <graham.markall@embecosm.com>
10609
10610 PR gdb/23718
10611 * gdb/python/python.c (execute_gdb_command): Call
10612 async_enable_stdin in catch block.
10613
10614 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10615
10616 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10617 SWITCH_THRU_ALL_UIS.
10618
10619 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10620
10621 PR tui/9765
10622 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10623 comment, add extra parameter, and update to store previous symbol
10624 when appropriate.
10625 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10626 add extra parameter.
10627 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10628 remove unneeded parameter, add try/catch around gdb_print_insn,
10629 rewrite to add items to asm_lines vector.
10630 (tui_find_backward_disassembly_start_address): New function.
10631 (tui_find_disassembly_address): Updated throughout.
10632 (tui_disasm_window::set_contents): Update for changes to
10633 tui_disassemble.
10634 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10635 number of lines to scroll.
10636
10637 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10638
10639 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10640 (SECT_OFF_DATA): Likewise.
10641 (SECT_OFF_RODATA): Likewise.
10642 (SECT_OFF_TEXT): Likewise.
10643 (SECT_OFF_BSS): Likewise.
10644 (struct objfile) <text_section_offset, data_section_offset>: New
10645 methods.
10646 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10647 objfile::text_section_offset.
10648 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10649 * coffread.c (coff_symtab_read): Likewise.
10650 (enter_linenos): Likewise.
10651 (process_coff_symbol): Likewise.
10652 * ctfread.c (get_objfile_text_range): Likewise.
10653 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10654 Use objfile::data_section_offset.
10655 * dwarf2-frame.c (execute_cfa_program): Use
10656 objfile::text_section_offset.
10657 (dwarf2_frame_find_fde): Likewise.
10658 * dwarf2read.c (create_addrmap_from_index): Likewise.
10659 (create_addrmap_from_aranges): Likewise.
10660 (dw2_find_pc_sect_compunit_symtab): Likewise.
10661 (process_psymtab_comp_unit_reader): Likewise.
10662 (add_partial_symbol): Likewise.
10663 (add_partial_subprogram): Likewise.
10664 (process_full_comp_unit): Likewise.
10665 (read_file_scope): Likewise.
10666 (read_func_scope): Likewise.
10667 (read_lexical_block_scope): Likewise.
10668 (read_call_site_scope): Likewise.
10669 (dwarf2_rnglists_process): Likewise.
10670 (dwarf2_ranges_process): Likewise.
10671 (dwarf2_ranges_read): Likewise.
10672 (dwarf_decode_lines_1): Likewise.
10673 (new_symbol): Likewise.
10674 (dwarf2_fetch_die_loc_sect_off): Likewise.
10675 (dwarf2_per_cu_text_offset): Likewise.
10676 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10677 * hppa-tdep.c (read_unwind_info): Likewise.
10678 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10679 * psympriv.h (struct partial_symtab): Likewise.
10680 * psymtab.c (find_pc_sect_psymtab): Likewise.
10681 * solib-svr4.c (enable_break): Likewise.
10682 * stap-probe.c (relocate_address): Use
10683 objfile::data_section_offset.
10684 * xcoffread.c (enter_line_range): Use
10685 objfile::text_section_offset.
10686 (read_xcoff_symtab): Likewise.
10687
10688 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10689
10690 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10691 declaration to narrower scopes.
10692
10693 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10694
10695 * darwin-nat.h (struct darwin_exception_msg, enum
10696 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10697 Move up.
10698 (class darwin_nat_target) <wait_1, check_new_threads,
10699 decode_exception_message, decode_message, stop_inferior,
10700 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10701 * darwin-nat.c (darwin_check_new_threads): Rename to...
10702 (darwin_nat_target::check_new_threads): ... this.
10703 (darwin_suspend_inferior_it): Remove.
10704 (darwin_decode_exception_message): Rename to...
10705 (darwin_nat_target::decode_exception_message): ... this.
10706 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10707 (darwin_decode_message): Rename to...
10708 (darwin_nat_target::decode_message): ... this.
10709 (cancel_breakpoint): Rename to...
10710 (darwin_nat_target::cancel_breakpoint): ... this.
10711 (darwin_wait): Rename to...
10712 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10713 instead of iterate_over_inferiors.
10714 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10715 (darwin_stop_inferior): Rename to...
10716 (darwin_nat_target::stop_inferior): ... this.
10717 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10718 (darwin_init_thread_list): Rename to...
10719 (darwin_nat_target::init_thread_list): ... this.
10720 (darwin_ptrace_him): Rename to...
10721 (darwin_nat_target::ptrace_him): ... this.
10722 (darwin_nat_target::create_inferior): Pass lambda function to
10723 fork_inferior.
10724 (darwin_nat_target::detach): Call stop_inferior instead of
10725 darwin_stop_inferior.
10726 * fork-inferior.h (fork_inferior): Change init_trace_fun
10727 parameter to gdb::function_view.
10728 * fork-inferior.c (fork_inferior): Likewise.
10729
10730 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
10731
10732 * i386-cygwin-tdep.c (core_process_module_section): Update.
10733 * windows-nat.c (struct lm_info_windows): Add text_offset.
10734 (windows_xfer_shared_libraries): Update.
10735 * windows-tdep.c (windows_xfer_shared_library):
10736 Add text_offset_cached argument.
10737 * windows-tdep.h (windows_xfer_shared_library): Update.
10738
10739 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10740
10741 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10742
10743 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10744
10745 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10746 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10747 replace with range-based for.
10748 (gdbsim_interrupt_inferior): Remove.
10749 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10750 with a range-based for. Inline code from
10751 gdbsim_interrupt_inferior.
10752
10753 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10754
10755 * infrun.c (proceed): Fix indentation.
10756
10757 2020-01-21 Tom Tromey <tromey@adacore.com>
10758
10759 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10760 * python/python.c (python_extension_ops): Update.
10761 (gdbpy_colorize): New function.
10762 * python/lib/gdb/__init__.py (colorize): New function.
10763 * extension.h (ext_lang_colorize): Declare.
10764 * extension.c (ext_lang_colorize): New function.
10765 * extension-priv.h (struct extension_language_ops) <colorize>: New
10766 member.
10767 * cli/cli-style.c (_initialize_cli_style): Update help text.
10768
10769 2020-01-21 Luis Machado <luis.machado@linaro.org>
10770
10771 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10772 <cond>: Change type to bool.
10773 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10774 (aarch64_displaced_step_cb): Likewise.
10775 (aarch64_displaced_step_tb): Likewise.
10776
10777 2020-01-21 Luis Machado <luis.machado@linaro.org>
10778
10779 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10780 output.
10781
10782 2020-01-21 Luis Machado <luis.machado@linaro.org>
10783
10784 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10785 <pc_adjust>: Adjust the documentation.
10786 (aarch64_displaced_step_fixup): Check if PC really moved before
10787 adjusting it.
10788
10789 2020-01-19 Tom Tromey <tom@tromey.com>
10790
10791 * disasm.c (~gdb_disassembler): New destructor.
10792 (gdb_buffered_insn_length): Call disassemble_free_target.
10793 * disasm.h (class gdb_disassembler): Declare destructor. Use
10794 DISABLE_COPY_AND_ASSIGN.
10795
10796 2020-01-19 Tom Tromey <tom@tromey.com>
10797
10798 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10799 (die_reader_func_ftype): Remove.
10800 (cutu_reader): New class.
10801 (dw2_get_file_names_reader): Remove "data" parameter.
10802 (dw2_get_file_names): Use cutu_reader.
10803 (create_debug_type_hash_table): Update.
10804 (read_cutu_die_from_dwo): Update comment.
10805 (lookup_dwo_unit): Add dwo_name parameter.
10806 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10807 die_reader_func_ftype and data parameters.
10808 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10809 Remove die_reader_func_ftype and data parameters.
10810 (~cutu_reader): New; from init_cutu_and_read_dies.
10811 (cutu_reader::cutu_reader): Rename from
10812 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10813 and data parameters.
10814 (init_cutu_and_read_dies_simple): Remove.
10815 (struct process_psymtab_comp_unit_data): Remove.
10816 (process_psymtab_comp_unit_reader): Remove data parameter; add
10817 want_partial_unit and pretend_language parameters.
10818 (process_psymtab_comp_unit): Use cutu_reader.
10819 (build_type_psymtabs_reader): Remove data parameter.
10820 (build_type_psymtabs_1): Use cutu_reader.
10821 (process_skeletonless_type_unit): Likewise.
10822 (load_partial_comp_unit_reader): Remove.
10823 (load_partial_comp_unit): Use cutu_reader.
10824 (load_full_comp_unit_reader): Remove.
10825 (load_full_comp_unit): Use cutu_reader.
10826 (struct create_dwo_cu_data): Remove.
10827 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10828 dwo_unit parameters.
10829 (create_cus_hash_table): Use cutu_reader.
10830 (struct dwarf2_read_addr_index_data): Remove.
10831 (dwarf2_read_addr_index_reader): Remove.
10832 (dwarf2_read_addr_index): Use cutu_reader.
10833 (read_signatured_type_reader): Remove.
10834 (read_signatured_type): Use cutu_reader.
10835
10836 2020-01-19 Tom Tromey <tom@tromey.com>
10837
10838 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10839 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10840 (tui_wrefresh): Declare.
10841 * tui/tui-wingeneral.c (suppress_output): New global.
10842 (tui_suppress_output, ~tui_suppress_output): New constructor and
10843 destructor.
10844 (tui_wrefresh): New function.
10845 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10846 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10847 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10848 method.
10849 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10850 tui_wrefresh.
10851 (tui_data_window::no_refresh): New method.
10852 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10853 (tui_reg_command): Use tui_suppress_output
10854 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10855 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10856 method.
10857 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10858
10859 2020-01-19 Tom Tromey <tom@tromey.com>
10860
10861 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10862 Handle case where symtab is null.
10863
10864 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10865
10866 * linux-fork.c (one_fork_p): Simplify.
10867
10868 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10869
10870 * top.c (struct qt_args): Remove.
10871 (kill_or_detach): Change return type to void, replace `void *`
10872 parameter with a proper one.
10873 (print_inferior_quit_action): Likewise.
10874 (quit_confirm): Use range-based for loop to iterate over inferiors.
10875 (quit_force): Likewise.
10876
10877 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10878
10879 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10880 `void *` parameter with proper parameters.
10881 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10882 (print_one_inferior): Change return type to void, replace `void *`
10883 parameter with proper parameters.
10884 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10885 inferiors.
10886 (get_other_inferior): Remove.
10887 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10888 inferiors.
10889
10890 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10891
10892 * mi/mi-interp.c (report_initial_inferior): Remove.
10893 (mi_interp::init): Use range-based for to iterate over inferiors.
10894
10895 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10896
10897 * python/py-inferior.c (build_inferior_list): Remove.
10898 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10899
10900 2020-01-16 Christian Biesinger <cbiesinger@google.com>
10901
10902 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10903 (btrace_stitch_trace): Likewise.
10904 * charset.c (intermediate_encoding): Likewise (vaild).
10905 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10906 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10907 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10908
10909 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
10910
10911 * windows-tdep.c (windows_get_tlb_type):
10912 Add rtl_user_process_parameters type.
10913
10914 2020-01-16 Pedro Alves <palves@redhat.com>
10915 Norbert Lange <nolange79@gmail.com>
10916
10917 PR build/24805
10918 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10919 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10920 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10921 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10922 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10923 (ps_plog): Redeclare exported functions with default visibility.
10924
10925 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10926
10927 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10928 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10929
10930 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
10931
10932 * infcmd.c (post_create_inferior): Use get_thread_regcache
10933 instead of get_current_regcache.
10934
10935 2020-01-14 Tom Tromey <tom@tromey.com>
10936
10937 PR symtab/12535:
10938 * python/python.c (gdbpy_decode_line): Treat empty string the same
10939 as no argument.
10940
10941 2020-01-14 Tom Tromey <tom@tromey.com>
10942
10943 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10944
10945 2020-01-14 Tom Tromey <tom@tromey.com>
10946
10947 * nat/linux-btrace.c: Don't include <config.h>.
10948 * nat/linux-ptrace.c: Don't include <config.h>.
10949 * nat/x86-linux-dregs.c: Don't include <config.h>.
10950
10951 2020-01-14 Tom Tromey <tom@tromey.com>
10952
10953 * configure: Rebuild.
10954 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10955
10956 2020-01-14 Tom Tromey <tom@tromey.com>
10957
10958 * nat/x86-linux-dregs.c: Include configh.h.
10959 * nat/linux-ptrace.c: Include configh.h.
10960 * nat/linux-btrace.c: Include configh.h.
10961 * defs.h: Include config.h, bfd.h.
10962 * configure.ac: Don't source common.host.
10963 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10964 * configure: Rebuild.
10965 * acinclude.m4: Update path.
10966 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10967 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10968 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10969 (CLIBS): Add LIBSUPPORT.
10970 (CDEPS): Likewise.
10971 (COMMON_SFILES): Remove gdbsupport files.
10972 (HFILES_NO_SRCDIR): Likewise.
10973 (stamp-version): Update path to create-version.sh.
10974 (ALLDEPFILES): Remove gdbsupport files.
10975
10976 2020-01-14 Tom Tromey <tom@tromey.com>
10977
10978 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10979 USE_WIN32API when needed.
10980 * configure.ac (USE_WIN32API): Don't define.
10981 (WIN32LIBS): Use WIN32APILIBS.
10982 * configure: Rebuild.
10983
10984 2020-01-14 Tom Tromey <tom@tromey.com>
10985
10986 * configure: Rebuild.
10987 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10988
10989 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10990
10991 * skip.c (skip_function_command): Make skip w/o arguments use the
10992 name of the inlined function if pc is inside any inlined function.
10993
10994 2020-01-14 Luis Machado <luis.machado@linaro.org>
10995
10996 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10997 * infrun.c (resume_1): Likewise.
10998 (handle_inferior_event): Remove stale comment.
10999 * linux-nat.c (linux_nat_target::resume): Update comments.
11000 (save_stop_reason): Likewise.
11001 (linux_nat_filter_event): Likewise.
11002 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
11003
11004 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11005
11006 * elfread.c (record_minimal_symbol): Set section index to 0 for
11007 non-allocatable sections.
11008
11009
11010 2020-01-13 Ali Tamur <tamur@google.com>
11011
11012 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
11013 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
11014 to gdb::optional. Update comments.
11015 (dwo_file): Update comments.
11016 (read_attribute): Update API to take an additional out parameter,
11017 need_reprocess. This is used to mark attributes that need other
11018 attributes (e.g. str_offsets_base) for correct computation which may not
11019 have been read yet.
11020 (read_attribute_reprocess): New function declaration.
11021 (read_addr_index): Likewise.
11022 (read_dwo_str_index): Likewise.
11023 (read_stub_str_index): Likewise.
11024 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
11025 (lookup_addr_base): New function definition.
11026 (lookup_ranges_base): Likewise.
11027 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
11028 lookup_ranges_base.
11029 (init_cutu_and_read_dies): Update comments.
11030 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
11031 unit. This is used to inherit parent's str_offsets_base and addr_base.
11032 Update comments.
11033 (init_cutu_and_read_dies_simple): Reflect API changes.
11034 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
11035 (create_cus_hash_table): Change API to take parent compile unit.
11036 Reflect API changes.
11037 (open_and_init_dwo_file): Reflect API changes.
11038 (dwarf2_get_pc_bounds): Update comments.
11039 (dwarf2_record_block_ranges): Likewise.
11040 (read_full_die_1): Change implementation to reprocess attributes that
11041 need str_offsets_base and addr_base.
11042 (partial_die_info::read): Likewise.
11043 (read_attribute_reprocess): New function definition.
11044 (read_attribute_value): Change API to take an additional out parameter,
11045 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
11046 when a non-dwo compile unit has index based attributes.
11047 (read_attribute): Reflect API changes.
11048 (read_addr_index_1): Reflect API changes. Update comments.
11049 (dwarf2_read_addr_index_data): Reflect API changes.
11050 (dwarf2_read_addr_index): Likewise.
11051 (read_str_index): Change API and implementation. This becomes a helper
11052 to be used by the new string index related methods. Update error
11053 message and comments.
11054 (read_dwo_str_index): New function definition.
11055 (read_stub_str_index): Likewise.
11056 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
11057 * symfile.h (dwarf2_debug_sections): Likewise.
11058 * xcoffread.c (dwarf2_debug_sections): Likewise.
11059
11060 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11061
11062 * gdbcore.h (struct core_fns) <core_read_registers>: Change
11063 core_reg_sect type to gdb_byte *.
11064 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
11065 * cris-tdep.c (fetch_core_registers): Likewise.
11066 * corelow.c (core_target::get_core_register_section): Change
11067 type of `contents` to gdb::byte_vector.
11068
11069 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11070
11071 * tui/tui-wingeneral.c (box_win): Position the title in the center
11072 of the border.
11073
11074 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11075
11076 * corelow.c (core_target::get_core_register_section): Use
11077 std::vector instead of alloca.
11078
11079 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11080
11081 * warning.m4: Add -Wmissing-declarations to build_warnings.
11082 * configure: Re-generate.
11083
11084 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11085
11086 * python/python.c (init__gdb_module): Add declaration.
11087
11088 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11089
11090 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
11091 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
11092 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
11093 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
11094 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
11095 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
11096 * ada-exp.y (_initialize_ada_exp): Add declaration.
11097 * ada-lang.c (_initialize_ada_language): Add declaration.
11098 * ada-tasks.c (_initialize_tasks): Add declaration.
11099 * agent.c (_initialize_agent): Add declaration.
11100 * aix-thread.c (_initialize_aix_thread): Add declaration.
11101 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
11102 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
11103 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
11104 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
11105 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
11106 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
11107 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
11108 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
11109 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
11110 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
11111 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
11112 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
11113 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
11114 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
11115 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
11116 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
11117 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
11118 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
11119 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
11120 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
11121 * annotate.c (_initialize_annotate): Add declaration.
11122 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
11123 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
11124 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
11125 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
11126 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
11127 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
11128 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
11129 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
11130 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
11131 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
11132 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
11133 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
11134 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
11135 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
11136 * auto-load.c (_initialize_auto_load): Add declaration.
11137 * auxv.c (_initialize_auxv): Add declaration.
11138 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
11139 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
11140 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
11141 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
11142 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
11143 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
11144 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
11145 * breakpoint.c (_initialize_breakpoint): Add declaration.
11146 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
11147 * btrace.c (_initialize_btrace): Add declaration.
11148 * charset.c (_initialize_charset): Add declaration.
11149 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
11150 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11151 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11152 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11153 * cli/cli-script.c (_initialize_cli_script): Add declaration.
11154 * cli/cli-style.c (_initialize_cli_style): Add declaration.
11155 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11156 * coffread.c (_initialize_coffread): Add declaration.
11157 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11158 * compile/compile.c (_initialize_compile): Add declaration.
11159 * complaints.c (_initialize_complaints): Add declaration.
11160 * completer.c (_initialize_completer): Add declaration.
11161 * copying.c (_initialize_copying): Add declaration.
11162 * corefile.c (_initialize_core): Add declaration.
11163 * corelow.c (_initialize_corelow): Add declaration.
11164 * cp-abi.c (_initialize_cp_abi): Add declaration.
11165 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11166 * cp-support.c (_initialize_cp_support): Add declaration.
11167 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11168 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11169 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11170 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11171 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11172 * ctfread.c (_initialize_ctfread): Add declaration.
11173 * d-lang.c (_initialize_d_language): Add declaration.
11174 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11175 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11176 * dbxread.c (_initialize_dbxread): Add declaration.
11177 * dcache.c (_initialize_dcache): Add declaration.
11178 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11179 * disasm.c (_initialize_disasm): Add declaration.
11180 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11181 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11182 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11183 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11184 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11185 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11186 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11187 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11188 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11189 * elfread.c (_initialize_elfread): Add declaration.
11190 * exec.c (_initialize_exec): Add declaration.
11191 * extension.c (_initialize_extension): Add declaration.
11192 * f-lang.c (_initialize_f_language): Add declaration.
11193 * f-valprint.c (_initialize_f_valprint): Add declaration.
11194 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11195 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11196 * filesystem.c (_initialize_filesystem): Add declaration.
11197 * findcmd.c (_initialize_mem_search): Add declaration.
11198 * findvar.c (_initialize_findvar): Add declaration.
11199 * fork-child.c (_initialize_fork_child): Add declaration.
11200 * frame-base.c (_initialize_frame_base): Add declaration.
11201 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11202 * frame.c (_initialize_frame): Add declaration.
11203 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11204 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11205 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11206 * gcore.c (_initialize_gcore): Add declaration.
11207 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11208 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11209 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11210 * gdbarch.c (_initialize_gdbarch): Add declaration.
11211 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11212 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11213 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11214 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11215 * go-lang.c (_initialize_go_language): Add declaration.
11216 * go32-nat.c (_initialize_go32_nat): Add declaration.
11217 * guile/guile.c (_initialize_guile): Add declaration.
11218 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11219 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11220 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11221 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11222 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11223 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11224 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11225 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11226 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11227 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11228 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11229 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11230 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11231 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11232 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11233 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11234 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11235 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11236 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11237 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11238 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11239 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11240 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11241 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11242 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11243 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11244 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11245 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11246 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11247 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11248 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11249 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11250 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11251 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11252 * infcall.c (_initialize_infcall): Add declaration.
11253 * infcmd.c (_initialize_infcmd): Add declaration.
11254 * inflow.c (_initialize_inflow): Add declaration.
11255 * infrun.c (_initialize_infrun): Add declaration.
11256 * interps.c (_initialize_interpreter): Add declaration.
11257 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11258 * jit.c (_initialize_jit): Add declaration.
11259 * language.c (_initialize_language): Add declaration.
11260 * linux-fork.c (_initialize_linux_fork): Add declaration.
11261 * linux-nat.c (_initialize_linux_nat): Add declaration.
11262 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11263 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11264 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11265 * m2-lang.c (_initialize_m2_language): Add declaration.
11266 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11267 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11268 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11269 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11270 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11271 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11272 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11273 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11274 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11275 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11276 * machoread.c (_initialize_machoread): Add declaration.
11277 * macrocmd.c (_initialize_macrocmd): Add declaration.
11278 * macroscope.c (_initialize_macroscope): Add declaration.
11279 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11280 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11281 * maint.c (_initialize_maint_cmds): Add declaration.
11282 * mdebugread.c (_initialize_mdebugread): Add declaration.
11283 * memattr.c (_initialize_mem): Add declaration.
11284 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11285 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11286 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11287 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11288 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11289 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11290 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11291 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11292 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11293 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11294 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11295 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11296 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11297 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11298 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11299 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11300 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11301 * mipsread.c (_initialize_mipsread): Add declaration.
11302 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11303 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11304 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11305 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11306 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11307 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11308 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11309 * nto-procfs.c (_initialize_procfs): Add declaration.
11310 * objc-lang.c (_initialize_objc_language): Add declaration.
11311 * observable.c (_initialize_observer): Add declaration.
11312 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11313 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11314 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11315 * osabi.c (_initialize_gdb_osabi): Add declaration.
11316 * osdata.c (_initialize_osdata): Add declaration.
11317 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11318 * parse.c (_initialize_parse): Add declaration.
11319 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11320 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11321 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11322 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11323 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11324 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11325 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11326 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11327 * printcmd.c (_initialize_printcmd): Add declaration.
11328 * probe.c (_initialize_probe): Add declaration.
11329 * proc-api.c (_initialize_proc_api): Add declaration.
11330 * proc-events.c (_initialize_proc_events): Add declaration.
11331 * proc-service.c (_initialize_proc_service): Add declaration.
11332 * procfs.c (_initialize_procfs): Add declaration.
11333 * producer.c (_initialize_producer): Add declaration.
11334 * psymtab.c (_initialize_psymtab): Add declaration.
11335 * python/python.c (_initialize_python): Add declaration.
11336 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11337 * record-btrace.c (_initialize_record_btrace): Add declaration.
11338 * record-full.c (_initialize_record_full): Add declaration.
11339 * record.c (_initialize_record): Add declaration.
11340 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11341 * regcache.c (_initialize_regcache): Add declaration.
11342 * reggroups.c (_initialize_reggroup): Add declaration.
11343 * remote-notif.c (_initialize_notif): Add declaration.
11344 * remote-sim.c (_initialize_remote_sim): Add declaration.
11345 * remote.c (_initialize_remote): Add declaration.
11346 * reverse.c (_initialize_reverse): Add declaration.
11347 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11348 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11349 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11350 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11351 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11352 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11353 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11354 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11355 Add declaration.
11356 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11357 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11358 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11359 * rust-exp.y (_initialize_rust_exp): Add declaration.
11360 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11361 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11362 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11363 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11364 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11365 * score-tdep.c (_initialize_score_tdep): Add declaration.
11366 * ser-go32.c (_initialize_ser_dos): Add declaration.
11367 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11368 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11369 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11370 * ser-uds.c (_initialize_ser_socket): Add declaration.
11371 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11372 * serial.c (_initialize_serial): Add declaration.
11373 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11374 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11375 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11376 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11377 * skip.c (_initialize_step_skip): Add declaration.
11378 * sol-thread.c (_initialize_sol_thread): Add declaration.
11379 * solib-aix.c (_initialize_solib_aix): Add declaration.
11380 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11381 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11382 * solib-frv.c (_initialize_frv_solib): Add declaration.
11383 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11384 * solib-target.c (_initialize_solib_target): Add declaration.
11385 * solib.c (_initialize_solib): Add declaration.
11386 * source-cache.c (_initialize_source_cache): Add declaration.
11387 * source.c (_initialize_source): Add declaration.
11388 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11389 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11390 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11391 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11392 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11393 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11394 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11395 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11396 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11397 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11398 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11399 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11400 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11401 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11402 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11403 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11404 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11405 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11406 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11407 * stabsread.c (_initialize_stabsread): Add declaration.
11408 * stack.c (_initialize_stack): Add declaration.
11409 * stap-probe.c (_initialize_stap_probe): Add declaration.
11410 * std-regs.c (_initialize_frame_reg): Add declaration.
11411 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11412 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11413 * symfile.c (_initialize_symfile): Add declaration.
11414 * symmisc.c (_initialize_symmisc): Add declaration.
11415 * symtab.c (_initialize_symtab): Add declaration.
11416 * target.c (_initialize_target): Add declaration.
11417 * target-connection.c (_initialize_target_connection): Add
11418 declaration.
11419 * target-dcache.c (_initialize_target_dcache): Add declaration.
11420 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11421 * thread.c (_initialize_thread): Add declaration.
11422 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11423 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11424 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11425 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11426 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11427 * tracectf.c (_initialize_ctf): Add declaration.
11428 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11429 * tracefile.c (_initialize_tracefile): Add declaration.
11430 * tracepoint.c (_initialize_tracepoint): Add declaration.
11431 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11432 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11433 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11434 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11435 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11436 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11437 * tui/tui.c (_initialize_tui): Add declaration.
11438 * typeprint.c (_initialize_typeprint): Add declaration.
11439 * ui-style.c (_initialize_ui_style): Add declaration.
11440 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11441 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11442 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11443 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11444 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11445 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11446 * unittests/filtered_iterator-selftests.c
11447 (_initialize_filtered_iterator_selftests): Add declaration.
11448 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11449 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11450 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11451 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11452 * unittests/main-thread-selftests.c
11453 (_initialize_main_thread_selftests): Add declaration.
11454 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11455 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11456 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11457 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11458 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11459 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11460 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11461 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11462 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11463 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11464 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11465 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11466 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11467 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11468 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11469 declaration.
11470 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11471 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11472 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11473 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11474 * user-regs.c (_initialize_user_regs): Add declaration.
11475 * utils.c (_initialize_utils): Add declaration.
11476 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11477 * valops.c (_initialize_valops): Add declaration.
11478 * valprint.c (_initialize_valprint): Add declaration.
11479 * value.c (_initialize_values): Add declaration.
11480 * varobj.c (_initialize_varobj): Add declaration.
11481 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11482 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11483 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11484 * windows-nat.c (_initialize_windows_nat): Add declaration.
11485 (_initialize_check_for_gdb_ini): Add declaration.
11486 (_initialize_loadable): Add declaration.
11487 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11488 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11489 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11490 * xcoffread.c (_initialize_xcoffread): Add declaration.
11491 * xml-support.c (_initialize_xml_support): Add declaration.
11492 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11493 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11494 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11495 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11496
11497 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11498
11499 * regformats/regdat.sh: Generate declaration for init function.
11500
11501 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11502
11503 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11504 up.
11505 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11506 close_one_inferior>: New methods.
11507 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11508 pass down target to find_inferior_pid.
11509 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11510 Pass down target to find_inferior_ptid.
11511 (gdbsim_target::create_inferior): Pass down target to
11512 add_thread_silent.
11513 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11514 target down to find_inferior_ptid and switch_to_thread.
11515 (gdbsim_target::close): Update to call close_one_inferior.
11516 (struct resume_data): Remove.
11517 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11518 directly, rather than through a void pointer.
11519 (gdbsim_target::resume): Update to call resume_one_inferior.
11520
11521 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11522
11523 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11524
11525 2020-01-12 Pedro Alves <palves@redhat.com>
11526
11527 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11528 directly for the current inferior instead of
11529 discard_all_inferiors.
11530 (discard_all_inferiors): Delete.
11531
11532 2020-01-11 Tom Tromey <tom@tromey.com>
11533
11534 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11535 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11536 deprecated_safe_get_selected_frame.
11537
11538 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11539
11540 * inferior.c (print_inferior): Switch inferior before printing it.
11541
11542 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11543 Pedro Alves <palves@redhat.com>
11544
11545 * progspace-and-thread.c (switch_to_program_space_and_thread):
11546 Assert there's an inferior for PSPACE. Use
11547 switch_to_inferior_no_thread to switch the inferior too.
11548 * progspace.c (program_space::~program_space): Call
11549 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11550 (program_space::free_all_objfiles): Don't call clear_symtab_users
11551 here.
11552 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11553
11554 2020-01-10 Pedro Alves <palves@redhat.com>
11555
11556 * NEWS: Mention multi-target debugging, "info connections", and
11557 "add-inferior -no-connection".
11558
11559 2020-01-10 Pedro Alves <palves@redhat.com>
11560
11561 * infrun.c: Include "target-connection.h".
11562 (check_multi_target_resumption): New.
11563 (proceed): Call it.
11564 * target-connection.c (make_target_connection_string): Make
11565 extern.
11566 * target-connection.h (make_target_connection_string): Declare.
11567
11568 2020-01-10 Pedro Alves <palves@redhat.com>
11569
11570 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11571 * inferior.c (uiout_field_connection): New function.
11572 (print_inferior): Add new "connection-id" column.
11573 (add_inferior_command): Show connection number/string of added
11574 inferior.
11575 * process-stratum-target.h
11576 (process_stratum_target::connection_string): New virtual method.
11577 (process_stratum_target::connection_number): New field.
11578 * remote.c (remote_target::connection_string): New override.
11579 * target-connection.c: New file.
11580 * target-connection.h: New file.
11581 * target.c (decref_target): Remove process_stratum targets from
11582 the connection list.
11583 (target_stack::push): Add process_stratum targets to the
11584 connection list.
11585
11586 2020-01-10 Pedro Alves <palves@redhat.com>
11587
11588 Revert:
11589 2016-04-12 Pedro Alves <palves@redhat.com>
11590 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11591 Remove references to name.
11592 * serial.h (struct serial) <name>: Delete.
11593
11594 2020-01-10 Pedro Alves <palves@redhat.com>
11595
11596 * gdbarch-selftests.c (register_to_value_test): Remove "target
11597 already pushed" check.
11598
11599 2020-01-10 Pedro Alves <palves@redhat.com>
11600 John Baldwin <jhb@FreeBSD.org>
11601
11602 * aarch64-linux-nat.c
11603 (aarch64_linux_nat_target::thread_architecture): Adjust.
11604 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11605 (task_command_1): Likewise.
11606 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11607 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11608 (aix_thread_target::store_registers)
11609 (aix_thread_target::thread_alive): Adjust.
11610 * amd64-fbsd-tdep.c: Include "inferior.h".
11611 (amd64fbsd_get_thread_local_address): Pass down target.
11612 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11613 thread's gdbarch instead of target_gdbarch.
11614 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11615 get_last_target_status.
11616 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11617 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11618 inferiors.
11619 (update_inserted_breakpoint_locations): Skip if inferiors with no
11620 execution.
11621 (update_global_location_list): When handling moribund locations,
11622 find representative inferior for location's pspace, and use thread
11623 count of its process_stratum target.
11624 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11625 * bsd-uthread.c (bsd_uthread_target::wait): Use
11626 as_process_stratum_target and adjust thread_change_ptid and
11627 add_thread calls.
11628 (bsd_uthread_target::update_thread_list): Use
11629 as_process_stratum_target and adjust find_thread_ptid,
11630 thread_change_ptid and add_thread calls.
11631 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11632 find_thread_ptid call.
11633 * corelow.c (add_to_thread_list): Adjust add_thread call.
11634 (core_target_open): Adjust add_thread_silent and thread_count
11635 calls.
11636 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11637 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11638 * event-top.c (async_disconnect): Pop targets from all inferiors.
11639 * exec.c (add_target_sections): Push exec target on all inferiors
11640 sharing the program space.
11641 (remove_target_sections): Remove the exec target from all
11642 inferiors sharing the program space.
11643 (exec_on_vfork): New.
11644 * exec.h (exec_on_vfork): Declare.
11645 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11646 Pass it down.
11647 (fbsd_nat_target::update_thread_list): Adjust.
11648 (fbsd_nat_target::resume): Adjust.
11649 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11650 down.
11651 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11652 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11653 get_thread_arch_regcache call.
11654 * fork-child.c (gdb_startup_inferior): Pass target down to
11655 startup_inferior and set_executing.
11656 * gdbthread.h (struct process_stratum_target): Forward declare.
11657 (add_thread, add_thread_silent, add_thread_with_info)
11658 (in_thread_list): Add process_stratum_target parameter.
11659 (find_thread_ptid(inferior*, ptid_t)): New overload.
11660 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11661 parameter.
11662 (all_threads()): Delete overload.
11663 (all_threads, all_non_exited_threads): Add process_stratum_target
11664 parameter.
11665 (all_threads_safe): Use brace initialization.
11666 (thread_count): Add process_stratum_target parameter.
11667 (set_resumed, set_running, set_stop_requested, set_executing)
11668 (threads_are_executing, finish_thread_state): Add
11669 process_stratum_target parameter.
11670 (switch_to_thread): Use is_current_thread.
11671 * i386-fbsd-tdep.c: Include "inferior.h".
11672 (i386fbsd_get_thread_local_address): Pass down target.
11673 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11674 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11675 have_inferiors check.
11676 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11677 (inf_ptrace_target::attach): Adjust.
11678 * infcall.c (run_inferior_call): Adjust.
11679 * infcmd.c (run_command_1): Pass target to
11680 scoped_finish_thread_state.
11681 (proceed_thread_callback): Skip inferiors with no execution.
11682 (continue_command): Rename 'all_threads' local to avoid hiding
11683 'all_threads' function. Adjust get_last_target_status call.
11684 (prepare_one_step): Adjust set_running call.
11685 (signal_command): Use user_visible_resume_target. Compare thread
11686 pointers instead of inferior_ptid.
11687 (info_program_command): Adjust to pass down target.
11688 (attach_command): Mark target's 'thread_executing' flag.
11689 (stop_current_target_threads_ns): New, factored out from ...
11690 (interrupt_target_1): ... this. Switch inferior before making
11691 target calls.
11692 * inferior-iter.h
11693 (struct all_inferiors_iterator, struct all_inferiors_range)
11694 (struct all_inferiors_safe_range)
11695 (struct all_non_exited_inferiors_range): Filter on
11696 process_stratum_target too. Remove explicit.
11697 * inferior.c (inferior::inferior): Push dummy target on target
11698 stack.
11699 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11700 Add process_stratum_target parameter, and pass it down.
11701 (have_live_inferiors): Adjust.
11702 (switch_to_inferior_and_push_target): New.
11703 (add_inferior_command, clone_inferior_command): Handle
11704 "-no-connection" parameter. Use
11705 switch_to_inferior_and_push_target.
11706 (_initialize_inferior): Mention "-no-connection" option in
11707 the help of "add-inferior" and "clone-inferior" commands.
11708 * inferior.h: Include "process-stratum-target.h".
11709 (interrupt_target_1): Use bool.
11710 (struct inferior) <push_target, unpush_target, target_is_pushed,
11711 find_target_beneath, top_target, process_target, target_at,
11712 m_stack>: New.
11713 (discard_all_inferiors): Delete.
11714 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11715 (all_inferiors, all_non_exited_inferiors): Add
11716 process_stratum_target parameter.
11717 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11718 (target_last_proc_target): New global.
11719 (follow_fork_inferior): Push target on new inferior. Pass target
11720 to add_thread_silent. Call exec_on_vfork. Handle target's
11721 reference count.
11722 (follow_fork): Adjust get_last_target_status call. Also consider
11723 target.
11724 (follow_exec): Push target on new inferior.
11725 (struct execution_control_state) <target>: New field.
11726 (user_visible_resume_target): New.
11727 (do_target_resume): Call target_async.
11728 (resume_1): Set target's threads_executing flag. Consider resume
11729 target.
11730 (commit_resume_all_targets): New.
11731 (proceed): Also consider resume target. Skip threads of inferiors
11732 with no execution. Commit resumtion in all targets.
11733 (start_remote): Pass current inferior to wait_for_inferior.
11734 (infrun_thread_stop_requested): Consider target as well. Pass
11735 thread_info pointer to clear_inline_frame_state instead of ptid.
11736 (infrun_thread_thread_exit): Consider target as well.
11737 (random_pending_event_thread): New inferior parameter. Use it.
11738 (do_target_wait): Rename to ...
11739 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11740 down.
11741 (threads_are_resumed_pending_p, do_target_wait): New.
11742 (prepare_for_detach): Adjust calls.
11743 (wait_for_inferior): New inferior parameter. Handle it. Use
11744 do_target_wait_1 instead of do_target_wait.
11745 (fetch_inferior_event): Adjust. Switch to representative
11746 inferior. Pass target down.
11747 (set_last_target_status): Add process_stratum_target parameter.
11748 Save target in global.
11749 (get_last_target_status): Add process_stratum_target parameter and
11750 handle it.
11751 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11752 (context_switch): Check inferior_ptid == null_ptid before calling
11753 inferior_thread().
11754 (get_inferior_stop_soon): Pass down target.
11755 (wait_one): Rename to ...
11756 (poll_one_curr_target): ... this.
11757 (struct wait_one_event): New.
11758 (wait_one): New.
11759 (stop_all_threads): Adjust.
11760 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11761 event's target.
11762 (switch_back_to_stepped_thread): Also consider target.
11763 (print_stop_event): Update.
11764 (normal_stop): Update. Also consider the resume target.
11765 * infrun.h (wait_for_inferior): Remove declaration.
11766 (user_visible_resume_target): New declaration.
11767 (get_last_target_status, set_last_target_status): New
11768 process_stratum_target parameter.
11769 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11770 process_stratum_target parameter, and use it.
11771 (clear_inline_frame_state (thread_info*)): New.
11772 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11773 process_stratum_target parameter.
11774 (clear_inline_frame_state (thread_info*)): Declare.
11775 * linux-fork.c (delete_checkpoint_command): Pass target down to
11776 find_thread_ptid.
11777 (checkpoint_command): Adjust.
11778 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11779 instead of just tweaking inferior_ptid.
11780 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11781 (exit_lwp): Pass target down to find_thread_ptid.
11782 (attach_proc_task_lwp_callback): Pass target down to
11783 add_thread/set_running/set_executing.
11784 (linux_nat_target::attach): Pass target down to
11785 thread_change_ptid.
11786 (get_detach_signal): Pass target down to find_thread_ptid.
11787 Consider last target status's target.
11788 (linux_resume_one_lwp_throw, resume_lwp)
11789 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11790 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11791 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11792 (linux_nat_target::async_wait_fd): New.
11793 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11794 target down.
11795 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11796 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11797 * linux-thread-db.c (struct thread_db_info::process_target): New
11798 field.
11799 (add_thread_db_info): Save target.
11800 (get_thread_db_info): New process_stratum_target parameter. Also
11801 match target.
11802 (delete_thread_db_info): New process_stratum_target parameter.
11803 Also match target.
11804 (thread_from_lwp): Adjust to pass down target.
11805 (thread_db_notice_clone): Pass down target.
11806 (check_thread_db_callback): Pass down target.
11807 (try_thread_db_load_1): Always push the thread_db target.
11808 (try_thread_db_load, record_thread): Pass target down.
11809 (thread_db_target::detach): Pass target down. Always unpush the
11810 thread_db target.
11811 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11812 target down. Always unpush the thread_db target.
11813 (find_new_threads_callback, thread_db_find_new_threads_2)
11814 (thread_db_target::update_thread_list): Pass target down.
11815 (thread_db_target::pid_to_str): Pass current inferior down.
11816 (thread_db_target::get_thread_local_address): Pass target down.
11817 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11818 target down.
11819 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11820 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11821 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11822 (procfs_init_inferior): Rename to ...
11823 (procfs_target::procfs_init_inferior): ... this and adjust.
11824 (procfs_target::create_inferior, procfs_notice_thread)
11825 (procfs_do_thread_registers): Adjust.
11826 * ppc-fbsd-tdep.c: Include "inferior.h".
11827 (ppcfbsd_get_thread_local_address): Pass down target.
11828 * proc-service.c (ps_xfer_memory): Switch current inferior and
11829 program space as well.
11830 (get_ps_regcache): Pass target down.
11831 * process-stratum-target.c
11832 (process_stratum_target::thread_address_space)
11833 (process_stratum_target::thread_architecture): Pass target down.
11834 * process-stratum-target.h
11835 (process_stratum_target::threads_executing): New field.
11836 (as_process_stratum_target): New.
11837 * ravenscar-thread.c
11838 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11839 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11840 down.
11841 * record-btrace.c (record_btrace_target::info_record): Adjust.
11842 (record_btrace_target::record_method)
11843 (record_btrace_target::record_is_replaying)
11844 (record_btrace_target::fetch_registers)
11845 (get_thread_current_frame_id, record_btrace_target::resume)
11846 (record_btrace_target::wait, record_btrace_target::stop): Pass
11847 target down.
11848 * record-full.c (record_full_wait_1): Switch to event thread.
11849 Pass target down.
11850 * regcache.c (regcache::regcache)
11851 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11852 process_stratum_target parameter and handle it.
11853 (current_thread_target): New global.
11854 (get_thread_regcache): Add process_stratum_target parameter and
11855 handle it. Switch inferior before calling target method.
11856 (get_thread_regcache): Pass target down.
11857 (get_thread_regcache_for_ptid): Pass target down.
11858 (registers_changed_ptid): Add process_stratum_target parameter and
11859 handle it.
11860 (registers_changed_thread, registers_changed): Pass target down.
11861 (test_get_thread_arch_aspace_regcache): New.
11862 (current_regcache_test): Define a couple local test_target_ops
11863 instances and use them for testing.
11864 (readwrite_regcache): Pass process_stratum_target parameter.
11865 (cooked_read_test, cooked_write_test): Pass mock_target down.
11866 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11867 (get_thread_arch_aspace_regcache): Add process_stratum_target
11868 parameter.
11869 (regcache::target): New method.
11870 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11871 (regcache::registers_changed_ptid): Add process_stratum_target
11872 parameter.
11873 (regcache::m_target): New field.
11874 (registers_changed_ptid): Add process_stratum_target parameter.
11875 * remote.c (remote_state::supports_vCont_probed): New field.
11876 (remote_target::async_wait_fd): New method.
11877 (remote_unpush_and_throw): Add remote_target parameter.
11878 (get_current_remote_target): Adjust.
11879 (remote_target::remote_add_inferior): Push target.
11880 (remote_target::remote_add_thread)
11881 (remote_target::remote_notice_new_inferior)
11882 (get_remote_thread_info): Pass target down.
11883 (remote_target::update_thread_list): Skip threads of inferiors
11884 bound to other targets. (remote_target::close): Don't discard
11885 inferiors. (remote_target::add_current_inferior_and_thread)
11886 (remote_target::process_initial_stop_replies)
11887 (remote_target::start_remote)
11888 (remote_target::remote_serial_quit_handler): Pass down target.
11889 (remote_target::remote_unpush_target): New remote_target
11890 parameter. Unpush the target from all inferiors.
11891 (remote_target::remote_unpush_and_throw): New remote_target
11892 parameter. Pass it down.
11893 (remote_target::open_1): Check whether the current inferior has
11894 execution instead of checking whether any inferior is live. Pass
11895 target down.
11896 (remote_target::remote_detach_1): Pass down target. Use
11897 remote_unpush_target.
11898 (extended_remote_target::attach): Pass down target.
11899 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11900 (remote_target::append_resumption): Pass down target.
11901 (remote_target::append_pending_thread_resumptions)
11902 (remote_target::remote_resume_with_hc, remote_target::resume)
11903 (remote_target::commit_resume): Pass down target.
11904 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11905 (remote_target::interrupt_query)
11906 (remote_target::remove_new_fork_children)
11907 (remote_target::check_pending_events_prevent_wildcard_vcont)
11908 (remote_target::remote_parse_stop_reply)
11909 (remote_target::process_stop_reply): Pass down target.
11910 (first_remote_resumed_thread): New remote_target parameter. Pass
11911 it down.
11912 (remote_target::wait_as): Pass down target.
11913 (unpush_and_perror): New remote_target parameter. Pass it down.
11914 (remote_target::readchar, remote_target::remote_serial_write)
11915 (remote_target::getpkt_or_notif_sane_1)
11916 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11917 down target.
11918 (remote_target::mourn_inferior): Pass down target. Use
11919 remote_unpush_target.
11920 (remote_target::core_of_thread)
11921 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11922 (remote_target::pid_to_exec_file)
11923 (remote_target::thread_handle_to_thread_info): Pass down target.
11924 (remote_target::async_wait_fd): New.
11925 * riscv-fbsd-tdep.c: Include "inferior.h".
11926 (riscv_fbsd_get_thread_local_address): Pass down target.
11927 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11928 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11929 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11930 Adjust.
11931 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11932 * solib-svr4.c (enable_break): Pass down target.
11933 * spu-multiarch.c (parse_spufs_run): Pass down target.
11934 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11935 * target-delegates.c: Regenerate.
11936 * target.c (g_target_stack): Delete.
11937 (current_top_target): Return the current inferior's top target.
11938 (target_has_execution_1): Refer to the passed-in inferior's top
11939 target.
11940 (target_supports_terminal_ours): Check whether the initial
11941 inferior was already created.
11942 (decref_target): New.
11943 (target_stack::push): Incref/decref the target.
11944 (push_target, push_target, unpush_target): Adjust.
11945 (target_stack::unpush): Defref target.
11946 (target_is_pushed): Return bool. Adjust to refer to the current
11947 inferior's target stack.
11948 (dispose_inferior): Delete, and inline parts ...
11949 (target_preopen): ... here. Only dispose of the current inferior.
11950 (target_detach): Hold strong target reference while detaching.
11951 Pass target down.
11952 (target_thread_name): Add assertion.
11953 (target_resume): Pass down target.
11954 (target_ops::beneath, find_target_at): Adjust to refer to the
11955 current inferior's target stack.
11956 (get_dummy_target): New.
11957 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11958 has a thread running.
11959 (initialize_targets): Rename to ...
11960 (_initialize_target): ... this.
11961 * target.h: Include "gdbsupport/refcounted-object.h".
11962 (struct target_ops): Inherit refcounted_object.
11963 (target_ops::shortname, target_ops::longname): Make const.
11964 (target_ops::async_wait_fd): New method.
11965 (decref_target): Declare.
11966 (struct target_ops_ref_policy): New.
11967 (target_ops_ref): New typedef.
11968 (get_dummy_target): Declare function.
11969 (target_is_pushed): Return bool.
11970 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11971 (all_matching_threads_iterator::all_matching_threads_iterator):
11972 Handle filter target.
11973 * thread-iter.h (struct all_matching_threads_iterator, struct
11974 all_matching_threads_range, class all_non_exited_threads_range):
11975 Filter by target too. Remove explicit.
11976 * thread.c (threads_executing): Delete.
11977 (inferior_thread): Pass down current inferior.
11978 (clear_thread_inferior_resources): Pass down thread pointer
11979 instead of ptid_t.
11980 (add_thread_silent, add_thread_with_info, add_thread): Add
11981 process_stratum_target parameter. Use it for thread and inferior
11982 searches.
11983 (is_current_thread): New.
11984 (thread_info::deletable): Use it.
11985 (find_thread_ptid, thread_count, in_thread_list)
11986 (thread_change_ptid, set_resumed, set_running): New
11987 process_stratum_target parameter. Pass it down.
11988 (set_executing): New process_stratum_target parameter. Pass it
11989 down. Adjust reference to 'threads_executing'.
11990 (threads_are_executing): New process_stratum_target parameter.
11991 Adjust reference to 'threads_executing'.
11992 (set_stop_requested, finish_thread_state): New
11993 process_stratum_target parameter. Pass it down.
11994 (switch_to_thread): Also match inferior.
11995 (switch_to_thread): New process_stratum_target parameter. Pass it
11996 down.
11997 (update_threads_executing): Reimplement.
11998 * top.c (quit_force): Pop targets from all inferior.
11999 (gdb_init): Don't call initialize_targets.
12000 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
12001 Declare.
12002 (windows_add_thread, windows_delete_thread): Adjust.
12003 (get_windows_debug_event): Rename to ...
12004 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
12005 * tracefile-tfile.c (tfile_target_open): Pass down target.
12006 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
12007 Forward declare.
12008 (switch_to_thread): Add process_stratum_target parameter.
12009 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
12010 parameter. Use it.
12011 (mi_on_resume): Pass target down.
12012 * nat/fork-inferior.c (startup_inferior): Add
12013 process_stratum_target parameter. Pass it down.
12014 * nat/fork-inferior.h (startup_inferior): Add
12015 process_stratum_target parameter.
12016 * python/py-threadevent.c (py_get_event_thread): Pass target down.
12017
12018 2020-01-10 Pedro Alves <palves@redhat.com>
12019
12020 * remote.c (remote_target::start_remote): Don't set inferior_ptid
12021 directly. Instead find the first thread in the thread list and
12022 use switch_to_thread.
12023
12024 2020-01-10 Pedro Alves <palves@redhat.com>
12025
12026 * remote.c (remote_target::remote_add_inferior): Don't bind a
12027 process to the current inferior if the current inferior is already
12028 bound to a process.
12029
12030 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12031 Pedro Alves <palves@redhat.com>
12032
12033 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
12034 If no process is specified, return null_ptid instead of
12035 inferior_ptid.
12036 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
12037 TARGET_WAITKIND_SIGNALLED with no pid.
12038
12039 2020-01-10 Pedro Alves <palves@redhat.com>
12040
12041 * remote.c (first_remote_resumed_thread): New.
12042 (remote_target::wait_as): Use it as default event_ptid instead of
12043 inferior_ptid.
12044
12045 2020-01-10 Pedro Alves <palves@redhat.com>
12046
12047 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
12048
12049 2020-01-10 Pedro Alves <palves@redhat.com>
12050
12051 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
12052 not -1.
12053
12054 2020-01-10 Pedro Alves <palves@redhat.com>
12055
12056 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
12057 ptid to get_last_target_status.
12058 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
12059 ptid to get_last_target_status.
12060 * infcmd.c (continue_command): Don't pass a target_waitstatus to
12061 get_last_target_status.
12062 (info_program_command): Don't pass a target_waitstatus to
12063 get_last_target_status.
12064 * infrun.c (init_wait_for_inferior): Use
12065 nullify_last_target_wait_ptid.
12066 (get_last_target_status): Handle nullptr arguments.
12067 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
12068 (print_stop_event): Don't pass a ptid to get_last_target_status.
12069 (normal_stop): Don't pass a ptid to get_last_target_status.
12070 * infrun.h (get_last_target_status, set_last_target_status): Move
12071 comments here and update.
12072 (nullify_last_target_wait_ptid): Declare.
12073 * linux-fork.c (fork_load_infrun_state): Remove local extern
12074 declaration of nullify_last_target_wait_ptid.
12075 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
12076 to get_last_target_status.
12077
12078 2020-01-10 Pedro Alves <palves@redhat.com>
12079
12080 * gdbthread.h (scoped_restore_current_thread)
12081 <dont_restore, restore, m_dont_restore>: Declare.
12082 * thread.c (thread_alive): Add assertion. Return bool.
12083 (switch_to_thread_if_alive): New.
12084 (prune_threads): Switch inferior/thread.
12085 (print_thread_info_1): Switch thread before calling target methods.
12086 (scoped_restore_current_thread::restore): New, factored out from
12087 ...
12088 (scoped_restore_current_thread::~scoped_restore_current_thread):
12089 ... this.
12090 (scoped_restore_current_thread::scoped_restore_current_thread):
12091 Add assertion.
12092 (thread_apply_all_command, thread_select): Use
12093 switch_to_thread_if_alive.
12094 * infrun.c (proceed, restart_threads, handle_signal_stop)
12095 (switch_back_to_stepped_thread): Switch current thread before
12096 calling target methods.
12097
12098 2020-01-10 Pedro Alves <palves@redhat.com>
12099
12100 * inferior.c (switch_to_inferior_no_thread): New function,
12101 factored out from ...
12102 (inferior_command): ... here.
12103 * inferior.h (switch_to_inferior_no_thread): Declare.
12104 * mi/mi-main.c (run_one_inferior): Use
12105 switch_to_inferior_no_thread.
12106
12107 2020-01-10 Pedro Alves <palves@redhat.com>
12108
12109 * infcmd.c (kill_command): Remove dead code.
12110
12111 2020-01-10 Pedro Alves <palves@redhat.com>
12112
12113 * remote.c (remote_target::mourn_inferior): No longer check
12114 whether the target is running.
12115
12116 2020-01-10 Pedro Alves <palves@redhat.com>
12117
12118 * corelow.c (core_target::has_execution): Change parameter type to
12119 inferior pointer.
12120 * inferior.c (number_of_live_inferiors): Use
12121 inferior::has_execution instead of target_has_execution_1.
12122 * inferior.h (inferior::has_execution): New.
12123 * linux-thread-db.c (thread_db_target::update_thread_list): Use
12124 inferior::has_execution instead of target_has_execution_1.
12125 * process-stratum-target.c
12126 (process_stratum_target::has_execution): Change parameter type to
12127 inferior pointer. Check the inferior's PID instead of
12128 inferior_ptid.
12129 * process-stratum-target.h
12130 (process_stratum_target::has_execution): Change parameter type to
12131 inferior pointer.
12132 * record-full.c (record_full_core_target::has_execution): Change
12133 parameter type to inferior pointer.
12134 * target.c (target_has_execution_1): Change parameter type to
12135 inferior pointer.
12136 (target_has_execution_current): Adjust.
12137 * target.h (target_ops::has_execution): Change parameter type to
12138 inferior pointer.
12139 (target_has_execution_1): Change parameter type to inferior
12140 pointer. Change return type to bool.
12141 * tracefile.h (tracefile_target::has_execution): Change parameter
12142 type to inferior pointer.
12143
12144 2020-01-10 Pedro Alves <palves@redhat.com>
12145
12146 * exceptions.c (print_flush): Remove current_top_target() check.
12147
12148 2020-01-10 Pedro Alves <palves@redhat.com>
12149
12150 * remote.c (show_remote_exec_file): Show the current inferior's
12151 exec-file instead of the command variable's value.
12152
12153 2020-01-10 Pedro Alves <palves@redhat.com>
12154
12155 * record-full.c (record_full_resume_ptid): New global.
12156 (record_full_target::resume): Set it.
12157 (record_full_wait_1): Use record_full_resume_ptid instead of
12158 inferior_ptid.
12159
12160 2020-01-10 Pedro Alves <palves@redhat.com>
12161
12162 * gdbthread.h (scoped_restore_current_thread)
12163 <dont_restore, restore, m_dont_restore>: Declare.
12164 * thread.c (thread_alive): Add assertion. Return bool.
12165 (switch_to_thread_if_alive): New.
12166 (prune_threads): Switch inferior/thread.
12167 (print_thread_info_1): Switch thread before calling target methods.
12168 (scoped_restore_current_thread::restore): New, factored out from
12169 ...
12170 (scoped_restore_current_thread::~scoped_restore_current_thread):
12171 ... this.
12172 (scoped_restore_current_thread::scoped_restore_current_thread):
12173 Add assertion.
12174 (thread_apply_all_command, thread_select): Use
12175 switch_to_thread_if_alive.
12176
12177 2020-01-10 George Barrett <bob@bob131.so>
12178
12179 * stap-probe.c (stap_modify_semaphore): Don't check for null
12180 semaphores.
12181 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12182 for null semaphores.
12183
12184 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12185
12186 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12187 all source windows, and maintain horizontal scroll status while
12188 doing so.
12189
12190 2020-01-09 Tom Tromey <tom@tromey.com>
12191
12192 PR tui/18932:
12193 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12194 update_source_window, not print_source_lines.
12195
12196 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12197
12198 * tui/tui.c (tui_enable): Register tui hooks after calling
12199 tui_display_main.
12200
12201 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12202
12203 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12204
12205 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
12206
12207 * thread.c (print_thread_info_1): Fix indentation.
12208
12209 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12210
12211 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12212 unique_xmalloc_ptr outside the if to always free the demangled name.
12213
12214 2020-01-08 Tom Tromey <tromey@adacore.com>
12215
12216 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12217 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12218 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12219 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12220 Remove.
12221 (section_offsets): New typedef.
12222 * symtab.c (fixup_section, get_msymbol_address): Update.
12223 * symmisc.c (dump_msymbols): Update.
12224 * symfile.h (relative_addr_info_to_section_offsets)
12225 (symfile_map_offsets_to_segments): Update.
12226 * symfile.c (build_section_addr_info_from_objfile)
12227 (init_objfile_sect_indices): Update.
12228 (struct place_section_arg): Change type of "offsets".
12229 (place_section): Update.
12230 (relative_addr_info_to_section_offsets): Change type of
12231 "section_offsets". Remove "num_sections" parameter.
12232 (default_symfile_offsets, syms_from_objfile_1)
12233 (set_objfile_default_section_offset): Update.
12234 (reread_symbols): No need to preserve section offsets by hand.
12235 (symfile_map_offsets_to_segments): Change type of "offsets".
12236 * stap-probe.c (relocate_address): Update.
12237 * stabsread.h (process_one_symbol): Update.
12238 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12239 (solib_target_relocate_section_addresses): Update.
12240 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12241 Update.
12242 * solib-frv.c (frv_relocate_main_executable): Update.
12243 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12244 * solib-aix.c (solib_aix_get_section_offsets): Change return
12245 type.
12246 (solib_aix_solib_create_inferior_hook): Update.
12247 * remote.c (remote_target::get_offsets): Update.
12248 * psymtab.c (find_pc_sect_psymtab): Update.
12249 * psympriv.h (struct partial_symbol) <address, text_low,
12250 text_high>: Update.
12251 * objfiles.h (obj_section_offset): Update.
12252 (struct objfile) <section_offsets>: Change type.
12253 <num_sections>: Remove.
12254 (objfile_relocate): Update.
12255 * objfiles.c (entry_point_address_query): Update
12256 (relocate_one_symbol): Change type of "section_offsets".
12257 (objfile_relocate1, objfile_relocate1): Change type of
12258 "new_offsets".
12259 (objfile_rebase1): Update.
12260 * mipsread.c (mipscoff_symfile_read): Update.
12261 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12262 parameter.
12263 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12264 (parse_external, psymtab_to_symtab_1): Update.
12265 * machoread.c (macho_symfile_offsets): Update.
12266 * ia64-tdep.c (ia64_find_unwind_table): Update.
12267 * hppa-tdep.c (read_unwind_info): Update.
12268 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12269 * dwarf2read.c (create_addrmap_from_index)
12270 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12271 (process_psymtab_comp_unit_reader, add_partial_symbol)
12272 (add_partial_subprogram, process_full_comp_unit)
12273 (read_file_scope, read_func_scope, read_lexical_block_scope)
12274 (read_call_site_scope, dwarf2_rnglists_process)
12275 (dwarf2_ranges_process, dwarf2_ranges_read)
12276 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12277 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12278 Update.
12279 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12280 Update.
12281 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12282 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12283 (process_one_symbol): Change type of "section_offsets".
12284 * ctfread.c (get_objfile_text_range): Update.
12285 * coffread.c (coff_symtab_read, enter_linenos)
12286 (process_coff_symbol): Update.
12287 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12288 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12289
12290 2020-01-08 Tom Tromey <tromey@adacore.com>
12291
12292 * dwarf2read.c (parse_macro_definition): Use std::string.
12293 (parse_macro_definition): Likewise.
12294
12295 2020-01-08 Tom Tromey <tromey@adacore.com>
12296
12297 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12298 (ATTR_ALLOC_CHUNK): Remove.
12299
12300 2020-01-08 Tom Tromey <tromey@adacore.com>
12301
12302 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12303
12304 2020-01-08 Tom Tromey <tromey@adacore.com>
12305
12306 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12307 (dwarf2_compute_name, open_dwo_file): Likewise.
12308 (process_enumeration_scope): Use std::vector.
12309 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12310 (partial_die_info::fixup, dwarf2_start_subfile)
12311 (guess_full_die_structure_name, dwarf2_name): Likewise.
12312 (determine_prefix): Update.
12313 (guess_full_die_structure_name): Make return type const.
12314 (partial_die_full_name): Return unique_xmalloc_ptr.
12315 (DW_FIELD_ALLOC_CHUNK): Remove.
12316
12317 2020-01-07 Tom Tromey <tromey@adacore.com>
12318
12319 PR build/24937:
12320 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12321
12322 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12323
12324 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12325
12326 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12327
12328 * stack.c (print_frame_info): Move disassemble_next_line code
12329 inside source_print block.
12330
12331 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12332
12333 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12334 gdb/signals.h, as we are now using native signal symbols.
12335
12336 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12337
12338 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12339 overflow by an early check of content vs threshold.
12340 * tui/tui-source.c (tui_source_window::line_is_displayed):
12341 Likewise.
12342
12343 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12344
12345 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12346
12347 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12348
12349 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12350 export table if no section contains it's RVA.
12351
12352 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12353
12354 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12355
12356 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
12357
12358 * source.c (print_source_lines_base): Set last_line_listed.
12359
12360 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12361
12362 * tui/tui-disasm.c: Remove trailing spaces.
12363
12364 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12365 Pedro Alves <palves@redhat.com>
12366
12367 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12368 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12369 (windows_gdb_signal_to_target): New function, uses the above
12370 enumeration to convert GDB internal signal codes to equivalent
12371 Windows codes.
12372 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12373 * windows-nat.c: Include "gdb_wait.h".
12374 (get_windows_debug_event): Extract the fatal exception from the
12375 exit status and convert to the equivalent Posix signal number.
12376 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12377 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12378 * gdbsupport/gdb_wait.c: New file, implements
12379 windows_status_to_termsig.
12380 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12381 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12382
12383 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12384
12385 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12386 show_layout.
12387
12388 2020-01-05 Luis Machado <luis.machado@linaro.org>
12389
12390 * aarch64-linux-nat.c
12391 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12392 and bfd_mach_aarch64.
12393
12394 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12395
12396 * ui-file.c (stdio_file::can_emit_style_escape)
12397 (tee_file::can_emit_style_escape): Ensure style is used also on
12398 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12399 to gdb_stdout.
12400 * main.c (set_gdb_data_directory): Use file style to output the
12401 warning that the given pathname is not a directory.
12402 * top.c (show_history_filename, gdb_safe_append_history)
12403 (show_gdb_datadir): Use file style.
12404
12405 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12406
12407 * solib-target.c (struct lm_info_target):
12408 Change offsets to be a unique_xmalloc_ptr.
12409 (solib_target_relocate_section_addresses): Update.
12410
12411 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12412
12413 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12414
12415 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12416
12417 * MAINTAINERS (Write After Approval): Add myself.
12418
12419 2020-01-02 Luis Machado <luis.machado@linaro.org>
12420
12421 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12422 Cell BE architecture.
12423 * target.h (struct target_ops) <thread_architecture>: Likewise.
12424
12425 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12426
12427 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12428
12429 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12430
12431 * MAINTAINERS (Write After Approval): Add myself.
12432
12433 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12434
12435 * gdbarch.sh: Update copyright year range of generated files.
12436
12437 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12438
12439 Update copyright year range in all GDB files.
12440
12441 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12442
12443 * copyright.py: Convert to Python 3.
12444
12445 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12446
12447 * copyright.py: Adapt after move of gnulib directory from gdb
12448 directory to toplevel directory.
12449
12450 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12451
12452 * copyright.py (main): Exit if run from the wrong directory.
12453
12454 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12455
12456 * top.c (print_gdb_version): Change copyright year to 2020.
12457
12458 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12459
12460 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
12461
12462 For older changes see ChangeLog-2019.
12463 \f
12464 Local Variables:
12465 mode: change-log
12466 left-margin: 8
12467 fill-column: 74
12468 version-control: never
12469 coding: utf-8
12470 End:
This page took 0.273822 seconds and 5 git commands to generate.