]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
ca251b27b42f7763e52a51c6fbfd41e5e1d9ce53
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2020-09-03 Tom de Vries <tdevries@suse.de>
2
3 PR breakpoint/26546
4 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
5 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
6
7 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
8
9 * maint.c (index_digits): New function.
10 (struct maint_print_section_data): Remove.
11 (print_bfd_section_info): Remove print_data parameter, add arg
12 and index_digits.
13 (print_objfile_section_info): Likewise.
14 (print_bfd_section_info_maybe_relocated): Likewise (plus
15 objfile).
16 (maintenance_info_sections): Adjust calls.
17
18 2020-09-02 Tom Tromey <tromey@adacore.com>
19
20 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
21 for null pointers.
22 (ada_varobj_adjust_for_child_access): Special-case null pointers.
23
24 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
25
26 * bcache.h (struct bcache) <insert>: Change type of `added` to
27 pointer to bool.
28 * bcache.c (bcache::insert): Likewise.
29 * gdbtypes.c (check_types_worklist): Adjust.
30 * psymtab.c (add_psymbol_to_bcache): Adjust.
31
32 2020-08-31 Kevin Buettner <kevinb@redhat.com>
33
34 * corelow.c (unordered_set): Include.
35 (class core_target): Add field 'm_core_unavailable_mappings'.
36 (core_target::build_file_mappings): Print only one warning
37 per inaccessible file. Add unavailable/broken mappings
38 to m_core_unavailable_mappings.
39 (core_target::xfer_partial): Call...
40 (core_target::xfer_memory_via_mappings): New method.
41
42 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
43
44 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
45 type to bool.
46
47 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
48
49 * dwarf2/read.c (struct field_info): Fix indentation.
50
51 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
52
53 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
54 ordering in comment.
55 * frame.c (frame_id_eq): Fix indentation.
56
57 2020-08-31 Scott Linder <scott@scottlinder.com>
58 Simon Marchi <simon.marchi@efficios.com>
59
60 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
61 inline frame ids in outer frame.
62
63 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
64
65 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
66 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
67 (outer_frame_id): Use FID_STACK_OUTER instead of
68 FID_STACK_INVALID.
69 (frame_id_p): Don't check for outer_frame_id.
70
71 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
72
73 * frame-unwind.c (frame_unwind_got_optimized): Don't set
74 regnum/frame in value. Call allocate_value_lazy.
75 * frame.c (frame_unwind_register_value): Use
76 val_print_not_saved.
77
78 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
79
80 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
81
82 2020-08-29 Pedro Alves <pedro@palves.net>
83
84 * progspace.c (print_program_space): Use all_inferiors. Switch to
85 the inferior before calling target_pid_to_str.
86
87 2020-08-28 Tom Tromey <tom@tromey.com>
88
89 * xcoffread.c (xcoff_end_psymtab): Update comment.
90 * dbxread.c (dbx_end_psymtab): Update comment.
91
92 2020-08-28 Tom de Vries <tdevries@suse.de>
93
94 PR breakpoint/26544
95 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
96 event_location.
97 (create_breakpoint): Same.
98 (base_breakpoint_decode_location): Same.
99 (bkpt_create_sals_from_location): Same.
100 (bkpt_decode_location): Same.
101 (bkpt_probe_create_sals_from_location): Same.
102 (bkpt_probe_decode_location): Same.
103 (tracepoint_create_sals_from_location): Same.
104 (tracepoint_decode_location): Same.
105 (tracepoint_probe_decode_location): Same.
106 (strace_marker_create_sals_from_location): Same.
107 (strace_marker_decode_location): Same.
108 (create_sals_from_location_default): Same.
109 (decode_location_default): Same.
110 * breakpoint.h (struct breakpoint_ops): Same.
111 (create_breakpoint): Same.
112 * linespec.h (decode_line_full): Same.
113 * linespec.c (decode_line_full): Same. Throw error if
114 result.size () == 0.
115
116 2020-08-27 Pedro Alves <pedro@palves.net>
117
118 PR gdb/26524
119 * breakpoint.c (until_break_fsm) <location_breakpoint,
120 caller_breakpoint>: Delete fields.
121 <breakpoints>: New field.
122 <until_break_fsm>: Adjust to save a breakpoint vector instead of
123 two individual breakpoints.
124 (until_break_fsm::should_stop): Loop over breakpoints in the
125 breakpoint vector.
126 (until_break_fsm::clean_up): Adjust to clear the breakpoints
127 vector.
128 (until_break_command): Handle location expanding into multiple
129 sals.
130
131 2020-08-27 Pedro Alves <pedro@palves.net>
132
133 PR gdb/26523
134 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
135 bp_until breakpoints user-specified locations. Update intro
136 comment.
137
138 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
139
140 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
141 gdb_bfd_sections): New.
142 * maint.c (print_bfd_section_info): Change param type to
143 maint_print_section_data.
144 (print_objfile_section_info): Likewise.
145 (print_bfd_section_info_maybe_relocated): Likewise.
146 (maintenance_info_sections): Use gdb_bfd_sections.
147
148 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
149
150 * MAINTAINERS: Add ARC target and maintainer.
151
152 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
153
154 * configure.tgt: ARC support for GNU/Linux.
155 * Makefile.in (ALL_TARGET_OBJS): Likewise.
156 * arc-linux-tdep.c: New file.
157 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
158 * arc-tdep.c (arc_write_pc): Use it.
159
160 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
161
162 * arc-tdep.c (arc_check_for_hardware_loop): New.
163 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
164
165 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
166
167 * arc-tdep.h: Include "gdbarch.h".
168
169 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
170
171 * arch/arc.h
172 (arc_gdbarch_features): New class to stir the selection of target XML.
173 (arc_create_target_description): Use FEATURES to choose XML target.
174 (arc_lookup_target_description): Use arc_create_target_description
175 to create _new_ target descriptions or return the already created
176 ones if the FEATURES is the same.
177 * arch/arc.c: Implementation of prototypes described above.
178 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
179 (arc_gdbarch_features_init): Initialize the FEATURES struct.
180 * arc-tdep.c (*_feature_name): Make feature names consistent.
181 (arc_register_feature): A new struct to hold information about
182 registers of a particular target/feature.
183 (arc_check_tdesc_feature): Check if XML provides registers in
184 compliance with ARC_REGISTER_FEATURE structs.
185 (arc_update_acc_reg_names): Add aliases for r58 and r59.
186 (determine_*_reg_feature_set): Which feature name to look for.
187 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
188 (mach_type_to_arc_isa): Convert from a set of binutils machine types
189 to expected ISA enums to be used in arc_gdbarch_features structs.
190 * features/Makefile (FEATURE_XMLFILES): Add new files.
191 * gdb/features/arc/v1-aux.c: New file.
192 * gdb/features/arc/v1-aux.xml: Likewise.
193 * gdb/features/arc/v1-core.c: Likewise.
194 * gdb/features/arc/v1-core.xml: Likewise.
195 * gdb/features/arc/v2-aux.c: Likewise.
196 * gdb/features/arc/v2-aux.xml: Likewise.
197 * gdb/features/arc/v2-core.c: Likewise.
198 * gdb/features/arc/v2-core.xml: Likewise.
199 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
200
201 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
202 Andrew Burgess <andrew.burgess@embecosm.com>
203
204 PR m2/26372
205 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
206 an assert. Remove single element array indexing pattern as the
207 MULTI_SUBSCRIPT support will handle this case too.
208
209 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
210
211 * value.h (valprint_check_validity): Move declaration from
212 here...
213 * valprint.h (valprint_check_validity): ... to here.
214
215 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
216
217 * debug.h: New file.
218 * debug.c (debug_prefixed_vprintf): New function.
219 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
220 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
221
222 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
223
224 * infrun.h (infrun_debug_printf_1): New function declaration.
225 (infrun_debug_printf): New macro.
226 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
227 throughout.
228 (infrun_debug_printf): New function.
229 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
230 (handle_jit_event): Likewise.
231
232 2020-08-21 Mark Wielaard <mark@klomp.org>
233
234 * ada-lex.l: Extend register warnings diagnostics comment for g++.
235
236 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
237
238 * frame.c (enum class frame_id_status): New.
239 (struct frame_info) <this_id::p>: Change type to frame_id_status.
240 (fprintf_frame): Update.
241 (compute_frame_id): Set frame id status to "computing" on entry.
242 Set it back to "not_computed" on failure and to "computed" on
243 success.
244 (get_frame_id): Assert the frame id is not being computed.
245 (create_sentinel_frame): Use frame_id_status::COMPUTED.
246 (create_new_frame): Likewise.
247 (frame_cleanup_after_sniffer): Update assert.
248
249 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
250
251 * regcache.c (pid_ptid_regcache_map): New type.
252 (target_ptid_regcache_map): Remove.
253 (target_pid_ptid_regcache_map): New type.
254 (regcaches): Change type to target_pid_ptid_regcache_map.
255 (get_thread_arch_aspace_regcache): Update.
256 (regcache_thread_ptid_changed): Update, handle pid-like ptid
257 case.
258 (regcaches_size): Update.
259 (regcache_count): Update.
260 (registers_changed_ptid_target_pid_test): New.
261 (_initialize_regcache): Register new test.
262
263 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
264
265 * regcache.c (regcache_count): New.
266 (struct regcache_test_data): New.
267 (regcache_test_data_up): New.
268 (populate_regcaches_for_test): New.
269 (regcaches_test): Remove.
270 (get_thread_arch_aspace_regcache_test): New.
271 (registers_changed_ptid_all_test): New.
272 (registers_changed_ptid_target_test): New.
273 (registers_changed_ptid_target_ptid_test): New.
274 (regcache_thread_ptid_changed): Remove regcache_count lambda.
275 (_initialize_regcache): Register new tests.
276
277 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
278
279 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
280 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
281 gdbarch and aspace parameter. Use current inferior's aspace.
282 Validate regcache's arch value.
283 (regcaches_test): Update.
284
285 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
286
287 * regcache.c (regcaches_test): Call registers_changed.
288
289 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
290
291 * infrun.c (process_event_stop_test): Fix typo "breapoint".
292
293 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
294
295 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
296 to find the end of prologue for flang compiled binaries.
297 * arm-tdep.c (arm_skip_prologue): Likewise.
298 * i386-tdep.c (i386_skip_prologue): Likewise.
299 * producer.c (producer_is_llvm): New function.
300 (producer_parsing_tests): Added new tests for clang/flang.
301 * producer.h (producer_is_llvm): New declaration.
302
303 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
304
305 * linux-nat.c (linux_nat_debug_printf): New function.
306 (linux_nat_debug_printf_1): New macro. Use throughout the file.
307
308 2020-08-18 Aaron Merey <amerey@redhat.com>
309
310 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
311 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
312 (CLIBS): Add DEBUGINFOD_LIBS.
313
314 2020-08-17 Sergei Trofimovich <siarheit@google.com>
315
316 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
317 'gdbarch_num_regs'.
318
319 2020-08-17 Tom Tromey <tromey@adacore.com>
320
321 * ada-varobj.c (ada_varobj_decode_var): Handle case where
322 ada_get_decoded_value returns NULL.
323
324 2020-08-17 Tom Tromey <tromey@adacore.com>
325
326 * python/py-inferior.c (infpy_search_memory): Use
327 gdb_py_object_from_ulongest.
328 * python/py-infevents.c (create_inferior_call_event_object)
329 (create_memory_changed_event_object): Use
330 gdb_py_object_from_ulongest.
331 * python/py-linetable.c (ltpy_entry_get_pc): Use
332 gdb_py_object_from_ulongest.
333
334 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
335
336 * loc.c (class symbol_needs_eval_context): Fix indentation.
337
338 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
339
340 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
341 bool.
342
343 2020-08-17 Tom de Vries <tdevries@suse.de>
344
345 PR gdb/26393
346 * gdbtypes.c (dump_dynamic_prop): New function.
347 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
348
349 2020-08-15 Tom de Vries <tdevries@suse.de>
350
351 PR backtrace/26390
352 * stack.c (print_frame_args): Temporarily set the selected
353 frame to FRAME while printing the frame's arguments.
354
355 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
356
357 PR breakpoints/26385
358 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
359 Always clear watchpoint with PTRACE_SET_DEBUGREG.
360
361 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
362
363 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
364 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
365 and >= to check return value instead of == -1 and != -1.
366
367 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
368
369 * utils.h (class gdb_argv) <as_array_view>: New method.
370 * utils.c (gdb_argv_as_array_view_test): New.
371 (_initialize_utils): Register selftest.
372 * maint.c (maintenance_selftest): Use the new method.
373
374 2020-08-13 Kamil Rytarowski <n54@gmx.com>
375
376 * target.h (supports_dumpcore, dumpcore): New
377 function declarations.
378 * target.c (supports_dumpcore, dumpcore): New
379 functions.
380 * target-delegates.c: Rebuild.
381 * gcore.c (gcore_command): Use target_supports_dumpcore ()
382 and target_dumpcore ().
383
384 2020-08-13 Aaron Merey <amerey@redhat.com>
385
386 * debuginfod-support.c: Replace global variables with user_data.
387
388 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
389
390 * maint.c (maintenance_selftest): Split args and pass array_view
391 to run_tests.
392
393 2020-08-12 Luis Machado <luis.machado@linaro.org>
394
395 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
396 type's length.
397 Use %s and pulongest to print the length.
398
399 2020-08-12 Pedro Alves <palves@redhat.com>
400
401 * NEWS: Move "Multi-target debugging support" item to the
402 "Changes since GDB 9" section.
403
404 2020-08-12 Pedro Alves <palves@redhat.com>
405
406 PR gdb/26336
407 * progspace.c (program_space::remove_objfile): Invalidate the
408 frame cache.
409
410 2020-08-11 Tom de Vries <tdevries@suse.de>
411
412 * MAINTAINERS: Mark ms1 as deleted.
413
414 2020-08-10 Luis Machado <luis.machado@linaro.org>
415
416 PR gdb/26310
417
418 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
419 act accordingly.
420 (aarch64_analyze_prologue_test): Add more unit tests to exercise
421 movz/str/stur/stp skipping behavior.
422
423 2020-08-10 Luis Machado <luis.machado@linaro.org>
424
425 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
426 struct user_sve_header instead of struct sve_context.
427
428 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
429
430 * read.h (dwarf2_fetch_die_loc_sect_off,
431 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
432 `void *` parameter with function_view.
433 * read.c (dwarf2_fetch_die_loc_sect_off,
434 dwarf2_fetch_die_loc_cu_off): Likewise.
435 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
436 (per_cu_dwarf_call): Adjust.
437 (get_frame_address_in_block_wrapper): Remove.
438 (indirect_synthetic_pointer): Adjust.
439 (get_ax_pc): Remove.
440 (dwarf2_compile_expr_to_ax): Adjust.
441
442 2020-08-08 Tom de Vries <tdevries@suse.de>
443
444 PR build/26344
445 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
446 constructor.
447 * regcache.c (get_thread_arch_aspace_regcache): Same.
448
449 2020-08-07 Tom Tromey <tromey@adacore.com>
450
451 * ravenscar-thread.c
452 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
453 New method.
454 (ravenscar_thread_target::wait): Check
455 runtime_initialized.
456 (ravenscar_thread_target::prepare_to_store)
457 (ravenscar_thread_target::stopped_by_sw_breakpoint)
458 (ravenscar_thread_target::stopped_by_hw_breakpoint)
459 (ravenscar_thread_target::stopped_by_watchpoint)
460 (ravenscar_thread_target::stopped_data_address)
461 (ravenscar_thread_target::core_of_thread): Use
462 scoped_restore_current_thread and
463 set_base_thread_from_ravenscar_task.
464
465 2020-08-07 Tom Tromey <tromey@adacore.com>
466
467 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
468
469 2020-08-07 Tom Tromey <tromey@adacore.com>
470
471 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
472 update_inferior_ptid before update_thread_list.
473 (temporarily_change_regcache_ptid): New class.
474 (ravenscar_thread_target::fetch_registers)
475 (ravenscar_thread_target::store_registers)
476 (ravenscar_thread_target::prepare_to_store): Use base thread when
477 forwarding operation.
478
479 2020-08-07 Tom Tromey <tromey@adacore.com>
480
481 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
482 "is_pid" case.
483
484 2020-08-07 Tom Tromey <tromey@adacore.com>
485
486 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
487 New methods.
488 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
489 first.
490 (ravenscar_thread_target::add_thread): Rename from
491 ravenscar_add_thread.
492 (ravenscar_thread_target::update_thread_list): Use a lambda.
493 (ravenscar_thread_target::xfer_partial): New method.
494
495 2020-08-07 Tom Tromey <tromey@adacore.com>
496
497 * ada-lang.h (ada_task_list_iterator_ftype): Now a
498 gdb::function_view.
499 (iterate_over_live_ada_tasks): Change type of argument.
500 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
501 of argument.
502
503 2020-08-07 Tom Tromey <tromey@adacore.com>
504
505 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
506 Remove.
507 (ravenscar_thread_target::extra_thread_info): Remove.
508 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
509 defer to target beneath for non-Ravenscar threads.
510
511 2020-08-07 Tom Tromey <tromey@adacore.com>
512
513 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
514 get_base_thread_from_ravenscar_task>: Now methods.
515 <m_cpu_map>: New member.
516 (ravenscar_thread_target::get_thread_base_cpu): Rename from
517 ravenscar_get_thread_base_cpu. Check m_cpu_map.
518 (ravenscar_thread_target::task_is_currently_active): Update.
519 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
520 Now a method.
521 (ravenscar_thread_target::add_active_thread): Put initial thread
522 into the m_cpu_map.
523
524 2020-08-07 Tom Tromey <tromey@adacore.com>
525
526 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
527 event_ptid.
528
529 2020-08-07 Tom Tromey <tromey@adacore.com>
530
531 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
532 runtime_initialized.
533
534 2020-08-07 Tom Tromey <tromey@adacore.com>
535
536 * ravenscar-thread.c (ravenscar_thread_target): Don't call
537 add_active_thread.
538 (ravenscar_thread_target::add_active_thread): Now public.
539 (ravenscar_inferior_created): Call add_active_thread after pushing
540 the target.
541
542 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
543
544 * regcache.c (ptid_regcache_map): New type.
545 (target_ptid_regcache_map): New type.
546 (regcaches): Change type to target_ptid_regcache_map.
547 (get_thread_arch_aspace_regcache): Update to regcaches' new
548 type.
549 (regcache_thread_ptid_changed): Likewise.
550 (registers_changed_ptid): Likewise.
551 (regcaches_size): Likewise.
552 (regcaches_test): Update.
553 (regcache_thread_ptid_changed): Update.
554 * regcache.h (regcache_up): New type.
555 * gdbsupport/ptid.h (hash_ptid): New struct.
556
557 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
558
559 * observable.h (thread_ptid_changed): Add parameter
560 `process_stratum_target *`.
561 * infrun.c (infrun_thread_ptid_changed): Add parameter
562 `process_stratum_target *` and use it.
563 (selftests): New namespace.
564 (infrun_thread_ptid_changed): New function.
565 (_initialize_infrun): Register selftest.
566 * regcache.c (regcache_thread_ptid_changed): Add parameter
567 `process_stratum_target *` and use it.
568 (regcache_thread_ptid_changed): New function.
569 (_initialize_regcache): Register selftest.
570 * thread.c (thread_change_ptid): Pass target to
571 thread_ptid_changed observable.
572
573 2020-08-06 Caroline Tice <cmtice@google.com>
574
575 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
576 (struct dwp_sections): Update field comments. Add loclists and
577 rnglists fields.
578 (struct virtual_v2_dwo_sections): Rename struct to
579 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
580 size & offset fields for loclists and rnglists.
581 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
582 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
583 skipping dummy type units.
584 (create_dwp_hash_table): Update the large comment above the function to
585 discuss Version 5 DWP files as well, with references. Update all the
586 version checks in the function to check for version 5 as well. Add new
587 section at the end to create dwp hash table for version 5.
588 (create_dwp_v2_section): Rename function to
589 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
590 Add V5 to error message text.
591 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
592 into calls to create_dwp_v2_or_v5_section.
593 (create_dwo_unit_in_dwp_v5): New function.
594 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
595 check for version2; add else clause to handle version 5.
596 (open_and_init_dwo_file): Add code to check dwarf version & only call
597 create_debug_types_hash_table (with sections.types) if version is not 5;
598 else call create_debug_type_hash_table, with sections.info.
599 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
600 version 5.
601 (dwarf2_locate_v5_dwp_sections): New function.
602 (open_and_init_dwp_file): Add else-if clause for version 5 to call
603 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
604
605 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
606
607 * regcache.h (class regcache): Remove friend
608 registers_changed_ptid.
609 <regcache_thread_ptid_changed>: Remove.
610 <regcaches>: Remove.
611 * regcache.c (regcache::regcaches): Rename to...
612 (regcaches): ... this. Make static.
613 (get_thread_arch_aspace_regcache): Update.
614 (regcache::regcache_thread_ptid_changed): Rename to...
615 (regcache_thread_ptid_changed): ... this. Update.
616 (class regcache_access): Remove.
617 (regcaches_test): Update.
618 (_initialize_regcache): Update.
619 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
620 <forward_list>.
621
622 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
623
624 * regcache.h (class regcache) <current_regcache>: Rename to...
625 <regcaches>: ... this. Move doc here.
626 * regcache.c (regcache::current_regcache) Rename to...
627 (regcache::regcaches): ... this. Move doc to header.
628 (get_thread_arch_aspace_regcache): Update.
629 (regcache::regcache_thread_ptid_changed): Update.
630 (registers_changed_ptid): Update.
631 (class regcache_access) <current_regcache_size>: Rename to...
632 <regcaches_size>: ... this.
633 (current_regcache_test): Rename to...
634 (regcaches_test): ... this.
635 (_initialize_regcache): Update.
636
637 2020-08-06 Victor Collod <vcollod@nvidia.com>
638
639 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
640
641 2020-08-05 Kevin Buettner <kevinb@redhat.com>
642
643 * corelow.c (core_target::build_file_mappings): Don't output
644 null pathname in warning.
645
646 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
647
648 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
649 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
650 gdb.dwarf2/dw2-single-line-discriminators.exp,
651 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
652
653 2020-08-05 Tom Tromey <tromey@adacore.com>
654
655 PR rust/26197:
656 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
657 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
658 Fix off-by-one and type size errors in ordinary case.
659
660 2020-08-05 Tom de Vries <tdevries@suse.de>
661
662 * gdbtypes.c (type_not_allocated, type_not_associated): Use
663 "prop->const_val () == 0" instead of "prop->const_val () != 0".
664
665 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
666
667 * frame.h (frame_id_p): Return bool.
668 (frame_id_artificial_p): Return bool.
669 (frame_id_eq): Return bool.
670 (has_stack_frames): Return bool.
671 (get_selected_frame): Fix typo in comment.
672 (get_frame_pc_if_available): Return bool.
673 (get_frame_address_in_block_if_available): Return bool.
674 (get_frame_func_if_available): Return bool.
675 (read_frame_register_unsigned): Return bool.
676 (get_frame_register_bytes): Return bool.
677 (safe_frame_unwind_memory): Return bool.
678 (deprecated_frame_register_read): Return bool.
679 (frame_unwinder_is): Return bool.
680 * frame.c (struct frame_info) <prev_arch::p>: Change type to
681 bool.
682 <this_id::p>: Likewise.
683 <prev_p>: Likewise.
684 (frame_stash_add): Return bool.
685 (get_frame_id): Use bool.
686 (frame_id_build_special) Use bool.
687 (frame_id_build_unavailable_stack): Use bool.
688 (frame_id_build): Use bool.
689 (frame_id_p): Return bool, use true/false instead of 1/0.
690 (frame_id_artificial_p): Likewise.
691 (frame_id_eq): Likewise.
692 (frame_id_inner): Likewise.
693 (get_frame_func_if_available): Likewise.
694 (read_frame_register_unsigned): Likewise.
695 (deprecated_frame_register_read): Likewise.
696 (get_frame_register_bytes): Likewise.
697 (has_stack_frames): Likewise.
698 (inside_main_func): Likewise.
699 (inside_entry_func): Likewise.
700 (get_frame_pc_if_available): Likewise.
701 (get_frame_address_in_block_if_available): Likewise.
702 (frame_unwinder_is): Likewise.
703 (safe_frame_unwind_memory): Likewise.
704 (frame_unwind_arch): Likewise.
705
706 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
707
708 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
709 type to cached_copy_status.
710 (fprintf_frame): Adjust.
711 (get_frame_func_if_available): Adjust.
712 (frame_cleanup_after_sniffer): Adjust.
713
714 2020-08-04 Mark Wielaard <mark@klomp.org>
715
716 * MAINTAINERS (Write After Approval): Update email address.
717
718 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
719
720 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
721 dynamic_prop::const_val.
722
723 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
724
725 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
726 dynamic_prop::kind.
727
728 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
729
730 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
731
732 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
733
734 * configure.tgt: Set gdb_sim for bpf-*-* targets.
735
736 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
737 Jose E. Marchesi <jose.marchesi@oracle.com>
738
739 * configure.tgt: Add entry for bpf-*-*.
740 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
741 (ALLDEPFILES): Add bpf-tdep.c.
742 * bpf-tdep.c: New file.
743 * MAINTAINERS: Add bpf target and maintainer.
744 * NEWS: Mention the support for the new target.
745
746 2020-08-04 Tom de Vries <tdevries@suse.de>
747
748 PR symtab/23270
749 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
750 Error.
751
752 2020-08-03 John Baldwin <jhb@FreeBSD.org>
753
754 * syscalls/freebsd.xml: Regenerate.
755
756 2020-08-03 John Baldwin <jhb@FreeBSD.org>
757
758 * syscalls/update-freebsd.sh: Fix usage and year range.
759
760 2020-08-03 Tom de Vries <tdevries@suse.de>
761
762 PR symtab/26333
763 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
764 DW_LNE_lo_user/DW_LNE_hi_user range.
765
766 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
767
768 PR ada/26318
769 * ada-lang.c (ada_modulus): Return 0 if property is not of const
770 kind.
771
772 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
773
774 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
775
776 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
777
778 * breakpoint.c (set_breakpoint_condition): Update the condition
779 expressions after checking that the input condition string parses
780 successfully and does not contain junk at the end.
781
782 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
783
784 * breakpoint.c (set_breakpoint_condition): Update the
785 condition string after parsing the new condition successfully.
786
787 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
788
789 * proc-api.c (_STRUCTURED_PROC): Don't define.
790 * proc-events.c: Likewise.
791 * proc-flags.c: Likewise.
792 * proc-why.c: Likewise.
793 * procfs.c: Likewise.
794
795 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
796 * configure, config.in: Regenerate.
797
798 2020-07-30 Tom de Vries <tdevries@suse.de>
799
800 PR build/26320
801 * ui-style.h (struct ui_file_style::color): Wrap m_value and
802 m_red/m_green/m_blue in a union.
803
804 2020-07-29 Tom de Vries <tdevries@suse.de>
805
806 PR tdep/26280
807 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
808
809 2020-07-28 Tom Tromey <tromey@adacore.com>
810
811 PR symtab/26270:
812 * symtab.h (find_pc_partial_function_sym): Declare.
813 * cli/cli-cmds.c (disassemble_command): Use
814 find_pc_partial_function_sym. Check asm_demangle.
815 * blockframe.c (cache_pc_function_sym): New global.
816 (cache_pc_function_name): Remove.
817 (clear_pc_function_cache): Update.
818 (find_pc_partial_function_sym): New function, from
819 find_pc_partial_function.
820 (find_pc_partial_function): Rewrite using
821 find_pc_partial_function_sym.
822
823 2020-07-28 Tom Tromey <tromey@adacore.com>
824
825 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
826 help. Add usage.
827
828 2020-07-28 Tom Tromey <tromey@adacore.com>
829
830 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
831 <DW_OP_GNU_variable_value>: Cast to address type.
832
833 2020-07-28 Kamil Rytarowski <n54@gmx.com>
834
835 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
836 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
837 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
838 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
839 (nbsd_get_siginfo_type): New.
840 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
841 (_initialize_nbsd_tdep): New.
842
843 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
844
845 PR binutils/26301
846 * configure: Regenerated.
847
848 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
849
850 PR binutils/26301
851 * configure: Regenerated.
852
853 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
854
855 * python/py-frame.c: Remove 'user-regs.h' include.
856 (frapy_read_register): Rewrite to make use of
857 gdbpy_parse_register_id.
858 * python/py-registers.c (gdbpy_parse_register_id): New function,
859 moved here from python/py-unwind.c. Updated the return type, and
860 also accepts register descriptor objects.
861 * python/py-unwind.c: Remove 'user-regs.h' include.
862 (pyuw_parse_register_id): Moved to python/py-registers.c.
863 (unwind_infopy_add_saved_register): Update to use
864 gdbpy_parse_register_id.
865 (pending_framepy_read_register): Likewise.
866 * python/python-internal.h (gdbpy_parse_register_id): Declare.
867
868 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
869
870 * python/py-registers.c: Add 'user-regs.h' include.
871 (register_descriptor_iter_find): New function.
872 (register_descriptor_iterator_object_methods): New static global
873 methods array.
874 (register_descriptor_iterator_object_type): Add pointer to methods
875 array.
876
877 2020-07-27 John Baldwin <jhb@FreeBSD.org>
878
879 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
880 for all architectures on FreeBSD 11.3 and later.
881
882 2020-07-27 Tom Tromey <tromey@adacore.com>
883
884 * gcore.h (load_corefile): Don't declare.
885
886 2020-07-27 Tom de Vries <tdevries@suse.de>
887
888 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
889 * config.in: Regenerate.
890 * configure: Regenerate.
891
892 2020-07-26 Eli Zaretskii <eliz@gnu.org>
893
894 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
895 ws2tcpip.h. When checking whether socklen_t type is defined, use
896 ws2tcpip.h if it is available and sys/socket.h isn't.
897 * configure: Regenerate.
898 * config.in: Regenerate.
899
900 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
901
902 PR fortran/23051
903 PR fortran/26139
904 * valops.c (value_ind): Pass address to
905 readjust_indirect_value_type.
906 * value.c (readjust_indirect_value_type): Make parameter
907 non-const, and add extra address parameter. Resolve original type
908 before using it.
909 * value.h (readjust_indirect_value_type): Update function
910 signature and comment.
911
912 2020-07-25 Tom de Vries <tdevries@suse.de>
913
914 PR symtab/26243
915 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
916 entries.
917
918 2020-07-24 Aaron Merey <amerey@redhat.com>
919
920 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
921 * configure: Rebuild.
922
923 2020-07-23 Kevin Buettner <kevinb@redhat.com>
924
925 PR corefiles/26294
926 * corelow.c (_initialize_corelow): Add period to help text
927 for "maintenance print core-file-backed-mappings".
928
929 2020-07-23 Pedro Alves <pedro@palves.net>
930
931 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
932 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
933 meanwhile.
934 * frame.c (frame_cache_generation, get_frame_cache_generation):
935 New.
936 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
937 (get_prev_frame_if_no_cycle): On exception, don't touch
938 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
939 * frame.h (get_frame_cache_generation): Declare.
940
941 2020-07-23 Tom de Vries <tdevries@suse.de>
942
943 PR tui/26282
944 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
945 New default constructor.
946
947 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
948
949 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
950 exclude non-statement entries.
951
952 2020-07-22 Kevin Buettner <kevinb@redhat.com>
953
954 * NEWS (New commands): Mention new command
955 "maintenance print core-file-backed-mappings".
956
957 2020-07-22 Kevin Buettner <kevinb@redhat.com>
958
959 * corelow.c (gdbcmd.h): Include.
960 (core_target::info_proc_mappings): New method.
961 (get_current_core_target): New function.
962 (maintenance_print_core_file_backed_mappings): New function.
963 (_initialize_corelow): Add core-file-backed-mappings to
964 "maint print" commands.
965
966 2020-07-22 Kevin Buettner <kevinb@redhat.com>
967
968 * linux-tdep.c (dump_note_entry_p): New function.
969 (linux_dump_mapping_p_ftype): New typedef.
970 (linux_find_memory_regions_full): Add new parameter,
971 should_dump_mapping_p.
972 (linux_find_memory_regions): Adjust call to
973 linux_find_memory_regions_full.
974 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
975 call to linux_find_memory_regions_full.
976
977 2020-07-22 Kevin Buettner <kevinb@redhat.com>
978
979 * corelow.c (solist.h, unordered_map): Include.
980 (class core_target): Add field m_core_file_mappings and
981 method build_file_mappings.
982 (core_target::core_target): Call build_file_mappings.
983 (core_target::~core_target): Free memory associated with
984 m_core_file_mappings.
985 (core_target::build_file_mappings): New method.
986 (core_target::xfer_partial): Use m_core_file_mappings
987 for memory transfers.
988 * linux-tdep.c (linux_read_core_file_mappings): New
989 function.
990 (linux_core_info_proc_mappings): Rewrite to use
991 linux_read_core_file_mappings.
992 (linux_init_abi): Register linux_read_core_file_mappings.
993
994 2020-07-22 Kevin Buettner <kevinb@redhat.com>
995
996 * arch-utils.c (default_read_core_file_mappings): New function.
997 * arch-utils.c (default_read_core_file_mappings): Declare.
998 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
999 * gdbarch.h, gdbarch.c: Regenerate.
1000
1001 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1002
1003 PR corefiles/25631
1004 * corelow.c (core_target:xfer_partial): Revise
1005 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
1006 case after first checking the stratum beneath the core
1007 target.
1008 (has_all_memory): Return true.
1009 * target.c (raw_memory_xfer_partial): Revise comment
1010 regarding use of has_all_memory.
1011
1012 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1013
1014 * exec.h (section_table_xfer_memory): Revise declaration,
1015 replacing section name parameter with an optional callback
1016 predicate.
1017 * exec.c (section_table_xfer_memory): Likewise.
1018 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
1019 of section_table_xfer_memory.
1020
1021 2020-07-22 Tom Tromey <tromey@adacore.com>
1022
1023 * mi/mi-cmd-stack.c (list_args_or_locals): Use
1024 lookup_symbol_search_name.
1025
1026 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1027
1028 * python/py-registers.c (gdbpy_register_object_data_init): Remove
1029 redundant local variable.
1030 (gdbpy_get_register_descriptor): Extract descriptor vector as a
1031 reference, not pointer, update code accordingly.
1032
1033 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1034 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1035
1036 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
1037 * jit.c (jit_breakpoint_re_set_internal): Use the
1038 `skip_jit_symbol_lookup` field.
1039
1040 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1041 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1042
1043 * jit.c (jit_read_descriptor): Define the descriptor address once,
1044 use twice.
1045 (jit_breakpoint_deleted): Move the declaration of the loop variable
1046 `iter` into the loop header.
1047 (jit_breakpoint_re_set_internal): Move the declaration of the local
1048 variable `objf_data` to the first point of definition.
1049 (jit_event_handler): Move the declaration of local variables
1050 `code_entry`, `entry_addr`, and `objf` to their first point of use.
1051 Rename `objf` to `jited`.
1052
1053 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1054
1055 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
1056 Remove.
1057 * jit.c (get_jiter_objfile_data): Update.
1058
1059 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1060 Simon Marchi <simon.marchi@polymtl.ca>
1061
1062 * jit.c (struct jit_program_space_data): Remove.
1063 (jit_program_space_key): Remove.
1064 (jiter_objfile_data::~jiter_objfile_data): Remove program space
1065 stuff.
1066 (get_jit_program_space_data): Remove.
1067 (jit_breakpoint_deleted): Iterate on all of the program space's
1068 objfiles.
1069 (jit_inferior_init): Likewise.
1070 (jit_breakpoint_re_set_internal): Likewise. Also change return
1071 type to void.
1072 (jit_breakpoint_re_set): Pass current_program_space to
1073 jit_breakpoint_re_set_internal.
1074
1075 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1076
1077 * jit.h (struct jiter_objfile_data) <cached_code_address,
1078 jit_breakpoint>: Move to here from ...
1079 * jit.c (jit_program_space_data): ... here.
1080 (jiter_objfile_data::~jiter_objfile_data): Update.
1081 (jit_breakpoint_deleted): Update.
1082 (jit_breakpoint_re_set_internal): Update.
1083
1084 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1085
1086 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
1087 checks.
1088 (jit_read_descriptor): Remove NULL check.
1089 (jit_event_handler): Add an assertion.
1090
1091 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1092
1093 * jit.h (struct jit_objfile_data): Split into...
1094 (struct jiter_objfile_data): ... this ...
1095 (struct jited_objfile_data): ... and this.
1096 * objfiles.h (struct objfile) <jit_data>: Remove.
1097 <jiter_data, jited_data>: New fields.
1098 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
1099 (jiter_objfile_data::~jiter_objfile_data): ... this.
1100 (get_jit_objfile_data): Rename to ...
1101 (get_jiter_objfile_data): ... this.
1102 (add_objfile_entry): Update.
1103 (jit_read_descriptor): Use get_jiter_objfile_data.
1104 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
1105 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
1106 (jit_inferior_exit_hook): Use objfile's jited_data field.
1107
1108 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1109
1110 * jit.h: Forward-declare `struct minimal_symbol`.
1111 (struct jit_objfile_data): Migrate to here from jit.c; also add a
1112 constructor, destructor, and an objfile* field.
1113 * jit.c (jit_objfile_data): Remove.
1114 (struct jit_objfile_data): Migrate from here to jit.h.
1115 (jit_objfile_data::~jit_objfile_data): New destructor
1116 implementation with code moved from free_objfile_data.
1117 (free_objfile_data): Delete.
1118 (get_jit_objfile_data): Update to use the jit_data field of objfile.
1119 (jit_find_objf_with_entry_addr): Ditto.
1120 (jit_inferior_exit_hook): Ditto.
1121 (_initialize_jit): Remove the call to
1122 register_objfile_data_with_cleanup.
1123 * objfiles.h (struct objfile) <jit_data>: New field.
1124
1125 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1126
1127 * jit.h: Forward-declare `struct objfile`.
1128 (jit_event_handler): Add a second parameter, the JITer objfile.
1129 * jit.c (jit_read_descriptor): Change the signature to take the
1130 JITer objfile as an argument instead of the jit_program_space_data.
1131 (jit_inferior_init): Update the call to jit_read_descriptor.
1132 (jit_event_handler): Use the new JITer objfile argument when calling
1133 jit_read_descriptor.
1134 * breakpoint.c (handle_jit_event): Update the call to
1135 jit_event_handler to pass the JITer objfile.
1136
1137 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1138
1139 * gdbarch.c: Regenerate.
1140 * gdbarch.h: Regenerate.
1141 * gdbarch.sh (handle_segmentation_fault): Remove method.
1142 * infrun.c (handle_segmentation_fault): Remove.
1143 (print_signal_received_reason): Remove call to
1144 handle_segmentation_fault.
1145
1146 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1147
1148 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1149 Rename to sparc64_linux_report_signal_info and add siggnal
1150 argument.
1151 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
1152 instead of sparc64_linux_handle_segmentation_fault.
1153
1154 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1155
1156 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
1157 i386_linux_report_signal_info instead of
1158 i386_linux_handle_segmentation_fault.
1159 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
1160 to i386_linux_report_signal_info and add siggnal argument.
1161 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
1162 of i386_linux_handle_segmentation_fault.
1163 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
1164 to i386_linux_report_signal_info and add siggnal argument.
1165
1166 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1167
1168 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1169 hook if present.
1170
1171 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1172
1173 * gdbarch.c: Regenerate.
1174 * gdbarch.h: Regenerate.
1175 * gdbarch.sh (report_signal_info): New method.
1176 * infrun.c (print_signal_received_reason): Invoke gdbarch
1177 report_signal_info hook if present.
1178
1179 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1180
1181 * python/py-registers.c : Add 'unordered_map' include.
1182 (gdbpy_new_reggroup): Renamed to...
1183 (gdbpy_get_reggroup): ...this. Update to only create register
1184 group descriptors when needed.
1185 (gdbpy_reggroup_iter_next): Update.
1186
1187 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1188
1189 * python/py-registers.c (gdbpy_register_object_data): New static
1190 global.
1191 (gdbpy_register_object_data_init): New function.
1192 (gdbpy_new_register_descriptor): Renamed to...
1193 (gdbpy_get_register_descriptor): ...this, and update to reuse
1194 existing register descriptors where possible.
1195 (gdbpy_register_descriptor_iter_next): Update.
1196 (gdbpy_initialize_registers): Register new gdbarch data.
1197
1198 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
1199
1200 * linux-nat.c (stopped_pids): Make static.
1201
1202 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1203
1204 PR ada/26235
1205 * gdbtypes.c (ada_discrete_type_low_bound,
1206 ada_discrete_type_high_bound): Handle undefined bounds.
1207
1208 2020-07-21 Kamil Rytarowski <n54@gmx.com>
1209
1210 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1211 declaration.
1212 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1213 function.
1214
1215 2020-07-20 John Baldwin <jhb@FreeBSD.org>
1216
1217 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1218 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1219 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1220 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1221 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1222 method.
1223
1224 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1225
1226 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1227 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1228 which are deprecated in Guile 3.0.
1229 * configure.ac (try_guile_versions): Add "guile-3.0".
1230 * configure (try_guile_versions): Regenerate.
1231 * NEWS: Update entry.
1232
1233 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1234 Doug Evans <dje@google.com>
1235
1236 PR gdb/21104
1237 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1238 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1239 USING_GUILE_BEFORE_2_2.
1240 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1241 Change type to 'scm_t_port_type *'.
1242 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1243 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1244 parameter and honor it. Update callers.
1245 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1246 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1247 functions.
1248 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1249 USING_GUILE_BEFORE_2_2.
1250 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1251 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1252 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1253 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1254 and 'SCM_PORT_TYPE'.
1255 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1256 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1257 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1258 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1259 [!USING_GUILE_BEFORE_2_2]: New functions.
1260 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1261 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1262 'gdbscm_memory_port_read'.
1263 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1264 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1265 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1266 function.
1267 (ioscm_init_memory_port): Remove.
1268 (ioscm_init_memory_port_stream): New function
1269 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1270 function.
1271 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1272 Return scm_from_uint (0).
1273 (gdbscm_set_memory_port_read_buffer_size_x)
1274 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1275 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1276 Return scm_from_uint (0).
1277 (gdbscm_set_memory_port_write_buffer_size_x)
1278 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1279 * configure.ac (try_guile_versions): Add "guile-2.2".
1280 * configure: Regenerate.
1281 * NEWS: Add entry.
1282
1283 2020-07-18 Tom Tromey <tom@tromey.com>
1284
1285 * linux-nat.c (linux_multi_process): Remove.
1286 (linux_nat_target::supports_multi_process): Return true.
1287
1288 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1289
1290 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1291 (riscv_lookup_target_description): Return pointer out of
1292 unique_ptr.
1293 * target-descriptions.c (allocate_target_description): Add
1294 comment.
1295 (target_desc_deleter::operator()): Likewise.
1296 * target-descriptions.h (struct target_desc_deleter): Moved to
1297 gdbsupport/tdesc.h.
1298 (target_desc_up): Likewise.
1299
1300 2020-07-17 Tom Tromey <tromey@adacore.com>
1301
1302 * linux-nat.c (linux_nat_target::supports_non_stop)
1303 (linux_nat_target::always_non_stop_p): Use "true".
1304 (linux_nat_target::supports_disable_randomization): Use "true" and
1305 "false".
1306
1307 2020-07-16 Caroline Tice <cmtice@google.com>
1308
1309 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1310 (RNGLIST_HEADER_SIZE64): New constant definition.
1311 (struct dwop_section_names): Add rnglists_dwo.
1312 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1313 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1314 (struct dwo_sections): Add rnglists field.
1315 (read_attribut_reprocess): Add tag parameter.
1316 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1317 (cu_debug_rnglists_section): New function (decl & definition).
1318 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1319 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1320 die whose range is being checked; get rnglist section from
1321 cu_debug_rnglists_section, to get from either objfile or dwo file as
1322 appropriate. Add cases for DW_RLE_base_addressx,
1323 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1324 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1325 test inside if-condition and updating complaint message.
1326 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1327 dwarf2_rnglists_process.
1328 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1329 dwarf2_ranges_process.
1330 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1331 need_ranges_base and update comment appropriately. Also pass die tag
1332 to dwarf2_ranges_read.
1333 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1334 need_ranges_base and update comment appropriately. Also pass die tag
1335 to dwarf2_ranges_process.
1336 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1337 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1338 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1339 need_ranges_base and update comment appropriately. Also pass die tag
1340 to read_attribute_reprocess and dwarf2_ranges_read.
1341 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1342 and update function comment appropriately.
1343 (read_loclist_index): Call read_loclists_rnglists_header instead of
1344 read_loclist_header.
1345 (read_rnglist_index): New function.
1346 (read_attribute_reprocess): Add tag parameter. Add code for
1347 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1348 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1349
1350 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1351
1352 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1353 being resolved.
1354
1355 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1356
1357 * arch-utils.c (show_architecture): Update formatting of messages.
1358
1359 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1360
1361 * gdbtypes.h (struct type) <bounds>: Handle array and string
1362 types.
1363 * ada-lang.c (assign_aggregate): Use type::bounds on
1364 array/string type.
1365 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1366 * c-varobj.c (c_number_of_children): Likewise.
1367 (c_describe_child): Likewise.
1368 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1369 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1370 (f_type_print_base): Likewise.
1371 * f-valprint.c (f77_array_offset_tbl): Likewise.
1372 (f77_get_upperbound): Likewise.
1373 (f77_print_array_1): Likewise.
1374 * guile/scm-type.c (gdbscm_type_range): Likewise.
1375 * m2-typeprint.c (m2_array): Likewise.
1376 (m2_is_long_set_of_type): Likewise.
1377 * m2-valprint.c (get_long_set_bounds): Likewise.
1378 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1379 * python/py-type.c (typy_range): Likewise.
1380 * rust-lang.c (rust_internal_print_type): Likewise.
1381 * type-stack.c (type_stack::follow_types): Likewise.
1382 * valarith.c (value_subscripted_rvalue): Likewise.
1383 * valops.c (value_cast): Likewise.
1384
1385 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1386
1387 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1388 callers to use the equivalent accessor methods.
1389
1390 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1391
1392 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1393 (struct type) <bit_stride>: New method.
1394 (TYPE_BIT_STRIDE): Remove.
1395 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1396
1397 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1398
1399 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1400 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1401 callers to use the equivalent accessor methods instead.
1402
1403 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1404
1405 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1406 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1407 callers to use the equivalent accessor methods instead.
1408
1409 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1410
1411 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1412 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1413 to use dynamic_prop::kind.
1414
1415 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1416
1417 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1418 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1419 to get the bound property's kind and check against
1420 PROP_UNDEFINED.
1421
1422 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1423
1424 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1425 all callers to use type::range_bounds followed by
1426 dynamic_prop::{low,high}.
1427
1428 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1429
1430 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1431 const_val, set_const_val, baton, set_locexpr, set_loclist,
1432 set_addr_offset, variant_parts, set_variant_parts,
1433 original_type, set_original_type>: New methods.
1434 <kind>: Rename to...
1435 <m_kind>: ... this. Update all users to use the new methods
1436 instead.
1437 <data>: Rename to...
1438 <m_data>: ... this. Update all users to use the new methods
1439 instead.
1440
1441 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1442
1443 * gdbtypes.c (get_discrete_bounds): Return failure if
1444 the range type's bounds are not both defined and constant
1445 values.
1446 (get_array_bounds): Update comment. Remove undefined bound check.
1447
1448 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1449
1450 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1451 the type::bounds method directly.
1452
1453 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1454
1455 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1456 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1457 are used to set the range type's bounds to use set_bounds.
1458
1459 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1460
1461 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1462
1463 2020-07-10 Pedro Alves <pedro@palves.net>
1464
1465 * gdbthread.h (inferior_ref): Define.
1466 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1467 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1468 * thread.c
1469 (scoped_restore_current_thread::restore):
1470 Adjust to gdb::ref_ptr.
1471 (scoped_restore_current_thread::~scoped_restore_current_thread):
1472 Remove manual decref handling.
1473 (scoped_restore_current_thread::scoped_restore_current_thread):
1474 Adjust to use
1475 inferior_ref::new_reference/thread_info_ref::new_reference.
1476 Incref the thread before calling get_frame_id instead of after.
1477 Let TARGET_CLOSE_ERROR propagate.
1478
1479 2020-07-10 Pedro Alves <pedro@palves.net>
1480
1481 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1482 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1483 NOT_AVAILABLE_ERROR.
1484 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1485 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1486
1487 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1488 Pedro Alves <pedro@palves.net>
1489
1490 PR gdb/26199
1491 * infrun.c (threads_are_resumed_pending_p): Delete.
1492 (do_target_wait): Remove threads_are_executing and
1493 threads_are_resumed_pending_p checks from the inferior_matches
1494 lambda. Update comments.
1495
1496 2020-07-10 Pedro Alves <pedro@palves.net>
1497
1498 PR gdb/26199
1499 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1500 executing threads.
1501
1502 2020-07-10 Pedro Alves <pedro@palves.net>
1503
1504 PR gdb/26199
1505 * infrun.c (handle_no_resumed): Handle multiple targets.
1506
1507 2020-07-10 Pedro Alves <pedro@palves.net>
1508
1509 PR gdb/26199
1510 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1511 target_is_async_p.
1512
1513 2020-07-10 Pedro Alves <pedro@palves.net>
1514
1515 PR gdb/26199
1516 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1517 threads, not all threads.
1518
1519 2020-07-10 Pedro Alves <pedro@palves.net>
1520
1521 PR gdb/26199
1522 * remote.c (remote_target::open_1): Pass remote target pointer as
1523 data to create_async_event_handler.
1524 (remote_async_inferior_event_handler): Mark async event handler
1525 before returning if the remote target still has either pending
1526 events or unacknowledged notifications.
1527
1528 2020-07-10 John Baldwin <jhb@FreeBSD.org>
1529
1530 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1531 declaration.
1532 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1533 function.
1534
1535 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1536
1537 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1538 inferior_ptid.
1539
1540 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1541
1542 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1543 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1544 AT_FREEBSD_PS_STRINGS.
1545
1546 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
1547
1548 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1549 of debugfile path on Windows.
1550
1551 2020-07-08 John Baldwin <jhb@FreeBSD.org>
1552
1553 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1554 argument to 'data'.
1555
1556 2020-07-08 Tom Tromey <tromey@adacore.com>
1557
1558 * ada-lang.c (ada_exception_message_1): Use read_memory.
1559
1560 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1561
1562 PR python/22748
1563 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1564 special handling for inline frames.
1565 * findvar.c (value_of_register_lazy): Skip inline frames when
1566 creating lazy register values.
1567 * frame.c (frame_id_computed_p): Delete definition.
1568 * frame.h (frame_id_computed_p): Delete declaration.
1569
1570 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1571
1572 * NEWS: Mention additions to Python API.
1573 * python/py-arch.c (archpy_register_groups): New function.
1574 (arch_object_methods): Add 'register_groups' method.
1575 * python/py-registers.c (reggroup_iterator_object): New struct.
1576 (reggroup_object): New struct.
1577 (gdbpy_new_reggroup): New function.
1578 (gdbpy_reggroup_to_string): New function.
1579 (gdbpy_reggroup_name): New function.
1580 (gdbpy_reggroup_iter): New function.
1581 (gdbpy_reggroup_iter_next): New function.
1582 (gdbpy_new_reggroup_iterator): New function
1583 (gdbpy_initialize_registers): Register new types.
1584 (reggroup_iterator_object_type): Define new Python type.
1585 (gdbpy_reggroup_getset): New static global.
1586 (reggroup_object_type): Define new Python type.
1587 * python/python-internal.h
1588
1589 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1590
1591 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1592 * python/py-arch.c (archpy_registers): New function.
1593 (arch_object_methods): Add 'registers' method.
1594 * python/py-registers.c: New file.
1595 * python/python-internal.h
1596 (gdbpy_new_register_descriptor_iterator): Declare.
1597 (gdbpy_initialize_registers): Declare.
1598 * python/python.c (do_start_initialization): Call
1599 gdbpy_initialize_registers.
1600 * NEWS: Mention additions to the Python API.
1601
1602 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1603
1604 * NEWS: Mention new Python API method.
1605 * python/py-unwind.c (pending_framepy_architecture): New function.
1606 (pending_frame_object_methods): Add architecture method.
1607
1608 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1609
1610 * gdbarch.c: Regenerate.
1611 * gdbarch.h: Regenerate.
1612 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1613 (gdbarch_data): Use internal_error for the case where
1614 deprecated_set_gdbarch_data was originally needed.
1615 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1616 and use passed in obstack.
1617 (libunwind_frame_set_descr): Should no longer get back NULL from
1618 gdbarch_data.
1619 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1620 type.
1621 * user-regs.c (user_regs_init): Update parameters, and use passed
1622 in obstack.
1623 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1624 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1625
1626 2020-07-06 Tom de Vries <tdevries@suse.de>
1627
1628 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1629 End-Of-Sequence in lte_is_less_than.
1630 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1631 "gdb: Don't reorder line table entries too much when sorting".
1632
1633 2020-07-06 Tom de Vries <tdevries@suse.de>
1634
1635 PR tui/26205
1636 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1637
1638 2020-07-05 Tom de Vries <tdevries@suse.de>
1639
1640 PR build/26187
1641 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1642 std::uncaught_exceptions instead of deprecated
1643 std::uncaught_exception.
1644
1645 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1646
1647 * macroexp.h (macro_stringify): Return
1648 gdb::unique_xmalloc_ptr<char>.
1649 * macroexp.c (macro_stringify): Likewise.
1650 * macrotab.c (fixup_definition): Update.
1651
1652 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1653
1654 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1655 (lex_one_token): Update.
1656 * macroexp.c (struct macro_buffer) <release>: Return
1657 gdb::unique_xmalloc_ptr<char>.
1658 (macro_stringify): Update.
1659 (macro_expand): Update.
1660 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1661 * macroexp.h (macro_expand_next): Likewise.
1662
1663 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
1664
1665 * macroexp.h (macro_lookup_ftype): Remove.
1666 (macro_expand, macro_expand_once, macro_expand_next): Remove
1667 lookup function parameters, add scope parameter.
1668 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1669 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1670 * macroscope.h (standard_macro_lookup): Change parameter type
1671 to macro_scope.
1672 * macroscope.c (standard_macro_lookup): Likewise.
1673 * c-exp.y (lex_one_token): Update.
1674 * macrocmd.c (macro_expand_command): Likewise.
1675 (macro_expand_once_command): Likewise.
1676
1677 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1678
1679 * inf-loop.c (inferior_event_handler): Remove client_data param.
1680 * inf-loop.h (inferior_event_handler): Likewise.
1681 * infcmd.c (step_1): Adjust.
1682 * infrun.c (proceed): Adjust.
1683 (fetch_inferior_event): Remove client_data param.
1684 (infrun_async_inferior_event_handler): Adjust.
1685 * infrun.h (fetch_inferior_event): Remove `void *` param.
1686 * linux-nat.c (handle_target_event): Adjust.
1687 * record-btrace.c (record_btrace_handle_async_inferior_event):
1688 Adjust.
1689 * record-full.c (record_full_async_inferior_event_handler):
1690 Adjust.
1691 * remote.c (remote_async_inferior_event_handler): Adjust.
1692
1693 2020-07-01 Tom Tromey <tom@tromey.com>
1694
1695 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1696 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1697
1698 2020-07-01 Tom Tromey <tom@tromey.com>
1699
1700 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1701 tui_gen_win_info.
1702 (tui_win_info::make_window): Merge with
1703 tui_gen_win_info::make_window.
1704 (tui_win_info::make_visible): Move from tui_gen_win_info.
1705 * tui/tui-win.c (tui_win_info::max_width): Move from
1706 tui_gen_win_info.
1707 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1708 type.
1709 <window_factory>: Likewise.
1710 * tui/tui-layout.c (tui_win_info::resize): Move from
1711 tui_gen_win_info.
1712 (make_standard_window): Change return type.
1713 (get_locator_window, tui_get_window_by_name): Likewise.
1714 (tui_layout_window::apply): Remove a cast.
1715 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1716 (struct tui_win_info): Merge with tui_gen_win_info.
1717 (struct tui_gen_win_info): Remove.
1718
1719 2020-07-01 Tom Tromey <tom@tromey.com>
1720
1721 * tui/tui-stack.h (struct tui_locator_window): Derive from
1722 tui_win_info.
1723 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1724 <can_box>: New method.
1725
1726 2020-07-01 Tom Tromey <tom@tromey.com>
1727
1728 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1729
1730 2020-07-01 Tom Tromey <tom@tromey.com>
1731
1732 * tui/tui-regs.c (tui_data_window::display_registers_from)
1733 (tui_data_window::display_registers_from)
1734 (tui_data_window::first_data_item_displayed)
1735 (tui_data_window::delete_data_content_windows): Update.
1736 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1737 Remove.
1738 (tui_data_window::check_register_values): Update.
1739 (tui_data_item_window::rerender): Add parameters. Update.
1740 (tui_data_item_window::refresh_window): Remove.
1741 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1742 virtual.
1743 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1744 tui_gen_win_info.
1745 <refresh_window, max_height, min_height>: Remove.
1746 <rerender>: Add parameters.
1747 <x, y, visible>: New members.
1748 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1749 <m_item_width>: New member.
1750
1751 2020-07-01 Tom Tromey <tom@tromey.com>
1752
1753 * tui/tui-regs.c (tui_data_window::show_register_group)
1754 (tui_data_window::check_register_values): Update.
1755 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1756 from item_no.
1757
1758 2020-07-01 Tom Tromey <tom@tromey.com>
1759
1760 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1761 useless "if".
1762
1763 2020-07-01 Tom Tromey <tom@tromey.com>
1764
1765 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1766 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1767
1768 2020-07-01 Tom Tromey <tom@tromey.com>
1769
1770 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1771 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1772 (struct tui_line_or_address): Move from tui-data.h.
1773 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1774 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1775 (tui_cmd_window, tui_source_window_base, tui_source_window)
1776 (tui_disasm_window): Don't declare.
1777 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1778 to tui-winsource.h.
1779 (SINGLE_KEY): Move to tui-stack.c.
1780
1781 2020-07-01 Tom Tromey <tom@tromey.com>
1782
1783 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1784 std::string.
1785 * tui/tui-regs.c (class tab_expansion_file): New.
1786 (tab_expansion_file::write): New method.
1787 (tui_register_format): Change return type. Use
1788 tab_expansion_file.
1789 (tui_get_register, tui_data_window::display_registers_from)
1790 (tui_data_item_window::rerender): Update.
1791 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1792 * tui/tui-io.c (tui_expand_tabs): Remove.
1793
1794 2020-07-01 Tom Tromey <tom@tromey.com>
1795
1796 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1797
1798 2020-07-01 Fangrui Song <maskray@google.com>
1799
1800 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1801
1802 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1803
1804 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1805 forms for DW_AT_associated and DW_AT_allocated attributes,
1806 which is already checked in function attr_to_dynamic_prop.
1807
1808 2020-06-30 Tom Tromey <tromey@adacore.com>
1809
1810 * dwarf2/read.c (quirk_rust_enum): Correctly call
1811 alloc_rust_variant for default-less enum.
1812
1813 2020-06-30 Tom Tromey <tromey@adacore.com>
1814
1815 PR build/26183:
1816 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1817 gdb::to_string.
1818
1819 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
1820
1821 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1822 * gdbarch.h: Re-generate.
1823
1824 2020-06-28 Tom Tromey <tom@tromey.com>
1825
1826 * command.h (cmd_types): Remove.
1827 (cmd_type): Don't declare.
1828 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1829 typedef.
1830 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1831 * cli/cli-decode.c (cmd_type): Remove.
1832
1833 2020-06-27 Pedro Alves <palves@redhat.com>
1834
1835 * fork-child.c (prefork_hook): Adjust.
1836 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1837 Delete.
1838 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1839 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1840 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1841 Remove declarations.
1842 (struct inferior) <set_tty, tty>: New methods.
1843 (struct inferior) <terminal>: Rename to ...
1844 (struct inferior) <m_terminal>: ... this and make private.
1845 * main.c (captured_main_1): Adjust.
1846 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1847 (mi_cmd_inferior_tty_show): Adjust.
1848 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1849 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1850
1851 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
1852
1853 * configure.ac: Add --enable-libctf: handle --disable-static
1854 properly.
1855 * acinclude.m4: sinclude ../config/enable.m4.
1856 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1857 (LIBCTF): Substitute in.
1858 (CTF_DEPS): New, likewise.
1859 (CLIBS): libctf needs symbols from libbfd: move earlier.
1860 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1861 flags.
1862 * ctfread.c: Surround in ENABLE_LIBCTF.
1863 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1864 * configure: Regenerate.
1865 * config.in: Likewise.
1866
1867 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1868
1869 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1870
1871 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1872
1873 * inferior.h (struct inferior) <terminal>: Change type to
1874 gdb::unique_xmalloc_ptr<char>.
1875 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1876 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1877 field, adjust to unique pointer.
1878 (get_inferior_io_terminal): Adjust to unique pointer.
1879
1880 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1881
1882 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1883 registers, not just the known core set of registers.
1884
1885 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1886
1887 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1888 fflags, frm, and fcsr registers.
1889 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1890 restore groups.
1891 (riscv_tdesc_unknown_reg): New function.
1892 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1893 tdesc_use_registers.
1894 * riscv-tdep.h (struct gdbarch_tdep): Add
1895 unknown_csrs_first_regnum, unknown_csrs_count,
1896 duplicate_fflags_regnum, duplicate_frm_regnum, and
1897 duplicate_fcsr_regnum fields.
1898
1899 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1900
1901 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1902 callback, use the callback (when not null) to help number unknown
1903 registers.
1904 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1905 (tdesc_use_registers): Add extra parameter to declaration.
1906
1907 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1908
1909 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1910 in the file.
1911 (class riscv_pending_register_alias): Likewise.
1912 (riscv_register_feature::register_info): Change 'required_p' field
1913 to 'required', and change its type. Add 'check' member function.
1914 (riscv_register_feature::register_info::check): Define new member
1915 function.
1916 (riscv_xreg_feature): Change initialisation of 'required' field.
1917 (riscv_freg_feature): Likewise.
1918 (riscv_virtual_feature): Likewise.
1919 (riscv_csr_feature): Likewise.
1920 (riscv_check_tdesc_feature): Take extra parameter, the csr
1921 tdesc_feature, rewrite the function to use the new
1922 riscv_register_feature::register_info::check function.
1923 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1924
1925 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1926
1927 * features/Makefile: Remove all references to the deleted files
1928 below.
1929 * features/riscv/32bit-csr.c: Deleted.
1930 * features/riscv/32bit-csr.xml: Deleted.
1931 * features/riscv/64bit-csr.c: Deleted.
1932 * features/riscv/64bit-csr.xml: Deleted.
1933 * features/riscv/rebuild-csr-xml.sh: Deleted.
1934
1935 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1936
1937 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1938 whitespace error for declaration of names member variable.
1939 (struct riscv_register_feature): Add new prefer_first_name member
1940 variable, and fix whitespace error in declaration of registers.
1941 (riscv_xreg_feature): Initialize prefer_first_name field.
1942 (riscv_freg_feature): Likewise.
1943 (riscv_virtual_feature): Likewise.
1944 (riscv_csr_feature): Likewise.
1945 (riscv_register_name): Expand on comments. Remove register name
1946 modifications for CSR and virtual registers.
1947
1948 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1949
1950 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1951 errors.
1952
1953 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1954
1955 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1956 riscv-opc.h.
1957 (class riscv_pending_register_alias): New class.
1958 (riscv_check_tdesc_feature): Take vector of pending aliases and
1959 populate it as appropriate.
1960 (riscv_setup_register_aliases): Delete.
1961 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1962 to riscv_check_tdesc_feature in all cases. Use the vector to
1963 create the register aliases.
1964
1965 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1966
1967 * sol2-tdep.c (sol2_static_transform_name): Remove.
1968 (sol2_init_abi): Don't register it.
1969 * gdbarch.sh (static_transform_name): Remove.
1970 * gdbarch.c, gdbarch.h: Regenerate.
1971
1972 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1973 gdbarch_static_transform_name.
1974 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1975 * stabsread.c (define_symbol) <'X'>: Remove.
1976 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1977 handling.
1978 <'V'>: Likewise.
1979 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1980 <'S'>: Remove call to gdbarch_static_transform_name.
1981
1982 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1983
1984 * procfs.c (procfs_pre_trace): New function.
1985 (procfs_target::create_inferior): Pass it to fork_inferior.
1986
1987 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1988
1989 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1990 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1991 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1992 sol2-tdep.o, sparc-sol2-tdep.o.
1993 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1994 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1995 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1996 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1997
1998 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1999
2000 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
2001 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
2002 Call sol2_init_abi.
2003 Remove calls to set_gdbarch_skip_solib_resolver,
2004 set_gdbarch_core_pid_to_str.
2005 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
2006 (i386_sol2_static_transform_name): Remove.
2007 (i386_sol2_init_abi): Call sol2_init_abi.
2008 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2009 set_gdbarch_static_transform_name,
2010 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2011 Use sol2_sigtramp_p.
2012 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
2013 (sol2_sigtramp_p): New function.
2014 (sol2_static_transform_name): New function.
2015 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
2016 (sol2_init_abi): New function.
2017 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
2018 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
2019 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
2020 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
2021 (sparc_sol2_static_transform_name): Remove.
2022 (sparc32_sol2_init_abi): Call sol2_init_abi.
2023 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2024 set_gdbarch_static_transform_name,
2025 set_gdbarch_skip_solib_resolver,
2026 set_gdbarch_core_pid_to_str.
2027 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
2028 (sparc_sol2_static_transform_name): Remove
2029 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
2030 call sol2_sigtramp_p.
2031 (sparc64_sol2_init_abi): Call sol2_init_abi.
2032 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2033 set_gdbarch_static_transform_name,
2034 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2035
2036 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2037
2038 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
2039 * exec.c (validate_exec_file): If from_tty, set both
2040 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
2041 * symfile.c (symbol_file_add_with_addrs): if always_confirm
2042 and from_tty, unconditionally ask a confirmation.
2043
2044 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2045
2046 * target-descriptions.c (tdesc_architecture_name): Protect against
2047 NULL pointer dereference.
2048 (maint_print_xml_tdesc_cmd): New function.
2049 (_initialize_target_descriptions): Register new 'maint print
2050 xml-tdesc' command and give it the filename completer.
2051 * NEWS: Mention new 'maint print xml-tdesc' command.
2052
2053 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2054
2055 * target-descriptions.c (class tdesc_compatible_info): New class.
2056 (struct target_desc): Change type of compatible vector.
2057 (tdesc_compatible_p): Update for change in type of
2058 target_desc::compatible.
2059 (tdesc_compatible_info_list): New function.
2060 (tdesc_compatible_info_arch_name): New function.
2061 (tdesc_add_compatible): Update for change in type of
2062 target_desc::compatible.
2063 (print_c_tdesc::visit_pre): Likewise.
2064
2065 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2066
2067 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
2068 whitespace to underscore.
2069 (maint_print_c_tdesc_cmd): Use fake filename for target
2070 descriptions that came from the target.
2071 (_initialize_target_descriptions): Add filename command completion
2072 for 'maint print c-tdesc'.
2073
2074 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2075
2076 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
2077 lines.
2078
2079 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2080
2081 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
2082 lines.
2083 (dwarf2_find_location_expression): Likewise.
2084 (call_site_parameter_matches): Likewise.
2085 (dwarf2_compile_expr_to_ax): Likewise.
2086 (disassemble_dwarf_expression): Likewise.
2087 (loclist_describe_location): Likewise.
2088
2089 2020-06-23 Pedro Alves <palves@redhat.com>
2090
2091 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
2092 progspace-and-thread.h. Include scoped-mock-context.h instead.
2093 (register_to_value_test): Use scoped_mock_context.
2094 * regcache.c: Include "scoped-mock-context.h".
2095 (cooked_read_test): Don't error out if a target is already pushed.
2096 Use scoped_mock_context. Adjust.
2097 * scoped-mock-context.h: New file.
2098
2099 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2100
2101 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
2102 initializer.
2103 (ada_language::is_string_type_p): New member function.
2104 * c-lang.c (c_language_data): Delete la_is_string_type_p
2105 initializer.
2106 (cplus_language_data): Likewise.
2107 (asm_language_data): Likewise.
2108 (minimal_language_data): Likewise.
2109 * d-lang.c (d_language_data): Likewise.
2110 * f-lang.c (f_is_string_type_p): Delete function, implementation
2111 moved to f_language::is_string_type_p.
2112 (f_language_data): Delete la_is_string_type_p initializer.
2113 (f_language::is_string_type_p): New member function,
2114 implementation from f_is_string_type_p.
2115 * go-lang.c (go_is_string_type_p): Delete function, implementation
2116 moved to go_language::is_string_type_p.
2117 (go_language_data): Delete la_is_string_type_p initializer.
2118 (go_language::is_string_type_p): New member function,
2119 implementation from go_is_string_type_p.
2120 * language.c (language_defn::is_string_type_p): Define new member
2121 function.
2122 (default_is_string_type_p): Make static, add comment copied from
2123 header file.
2124 (unknown_language_data): Delete la_is_string_type_p initializer.
2125 (unknown_language::is_string_type_p): New member function.
2126 (auto_language_data): Delete la_is_string_type_p initializer.
2127 (auto_language::is_string_type_p): New member function.
2128 * language.h (language_data): Delete la_is_string_type_p field.
2129 (language_defn::is_string_type_p): Declare new function.
2130 (default_is_string_type_p): Delete desclaration, move comment to
2131 definition.
2132 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
2133 moved to m2_language::is_string_type_p.
2134 (m2_language_data): Delete la_is_string_type_p initializer.
2135 (m2_language::is_string_type_p): New member function,
2136 implementation from m2_is_string_type_p.
2137 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
2138 initializer.
2139 * opencl-lang.c (opencl_language_data): Likewise.
2140 * p-lang.c (pascal_is_string_type_p): Delete function,
2141 implementation moved to pascal_language::is_string_type_p.
2142 (pascal_language_data): Delete la_is_string_type_p initializer.
2143 (pascal_language::is_string_type_p): New member function,
2144 implementation from pascal_is_string_type_p.
2145 * rust-lang.c (rust_is_string_type_p): Delete function,
2146 implementation moved to rust_language::is_string_type_p.
2147 (rust_language_data): Delete la_is_string_type_p initializer.
2148 (rust_language::is_string_type_p): New member function,
2149 implementation from rust_is_string_type_p.
2150 * valprint.c (val_print_scalar_or_string_type_p): Update call to
2151 is_string_type_p.
2152
2153 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2154
2155 * ada-lang.c (ada_language_data): Delete la_print_typedef
2156 initializer.
2157 (ada_language::print_typedef): New member function.
2158 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
2159 (cplus_language_data): Likewise.
2160 (asm_language_data): Likewise.
2161 (minimal_language_data): Likewise.
2162 * d-lang.c (d_language_data): Likewise.
2163 * f-lang.c (f_language_data): Likewise.
2164 (f_language::print_typedef): New member function.
2165 * go-lang.c (go_language_data): Delete la_print_typedef
2166 initializer.
2167 * language.c (language_defn::print_typedef): Define member
2168 function.
2169 (unknown_language_data): Delete la_print_typedef initializer.
2170 (unknown_language::print_typedef): New member function.
2171 (auto_language_data): Delete la_print_typedef initializer.
2172 (auto_language::print_typedef): New member function.
2173 * language.h (language_data): Delete la_print_typedef field.
2174 (language_defn::print_typedef): Declare new member function.
2175 (LA_PRINT_TYPEDEF): Update call to print_typedef.
2176 (default_print_typedef): Delete declaration.
2177 * m2-lang.c (m2_language_data): Delete la_print_typedef
2178 initializer.
2179 (m2_language::print_typedef): New member function.
2180 * objc-lang.c (objc_language_data): Delete la_print_typedef
2181 initializer.
2182 * opencl-lang.c (opencl_language_data): Likewise.
2183 * p-lang.c (pascal_language_data): Likewise.
2184 (pascal_language::print_typedef): New member function.
2185 * rust-lang.c (rust_print_typedef): Delete function,
2186 implementation moved to rust_language::print_typedef.
2187 (rust_language): Delete la_print_typedef initializer.
2188 (rust_language::print_typedef): New member function,
2189 implementation from rust_print_typedef.
2190 * typeprint.c (default_print_typedef): Delete.
2191
2192 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2193
2194 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2195 (ada_language::printstr): New member function.
2196 * c-lang.c (c_language_data): Delete la_printstr initializer.
2197 (cplus_language_data): Likewise.
2198 (asm_language_data): Likewise.
2199 (minimal_language_data): Likewise.
2200 * d-lang.c (d_language_data): Likewise.
2201 * f-lang.c (f_printstr): Rename to f_language::printstr.
2202 (f_language_data): Delete la_printstr initializer.
2203 (f_language::printstr): New member function, implementation from
2204 f_printstr.
2205 * go-lang.c (go_language_data): Delete la_printstr initializer.
2206 * language.c (language_defn::printstr): Define new member
2207 function.
2208 (unk_lang_printstr): Delete.
2209 (unknown_language_data): Delete la_printstr initializer.
2210 (unknown_language::printstr): New member function.
2211 (auto_language_data): Delete la_printstr initializer.
2212 (auto_language::printstr): New member function.
2213 * language.h (language_data): Delete la_printstr field.
2214 (language_defn::printstr): Declare new member function.
2215 (LA_PRINT_STRING): Update call to printstr.
2216 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2217 (m2_language_data): Delete la_printstr initializer.
2218 (m2_language::printstr): New member function, implementation from
2219 m2_printstr.
2220 * objc-lang.c (objc_language_data): Delete la_printstr
2221 initializer.
2222 * opencl-lang.c (opencl_language_data): Likewise.
2223 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2224 (pascal_language_data): Delete la_printstr initializer.
2225 (pascal_language::printstr): New member function, implementation
2226 from pascal_printstr.
2227 * p-lang.h (pascal_printstr): Delete declaration.
2228 * rust-lang.c (rust_printstr): Update header comment.
2229 (rust_language_data): Delete la_printstr initializer.
2230 (rust_language::printstr): New member function.
2231
2232 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2233
2234 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2235 (ada_language::printchar): New member function.
2236 * c-lang.c (c_language_data): Delete la_printchar initializer.
2237 (cplus_language_data): Likewise.
2238 (asm_language_data): Likewise.
2239 (minimal_language_data): Likewise.
2240 * d-lang.c (d_language_data): Likewise.
2241 * f-lang.c (f_printchar): Rename to f_language::printchar.
2242 (f_language_data): Delete la_printchar initializer.
2243 (f_language::printchar): New member function, implementation from
2244 f_printchar.
2245 * go-lang.c (go_language_data): Delete la_printchar initializer.
2246 * language.c (unk_lang_printchar): Delete.
2247 (language_defn::printchar): Define new member function.
2248 (unknown_language_data): Delete la_printchar initializer.
2249 (unknown_language::printchar): New member function.
2250 (auto_language_data): Delete la_printchar initializer.
2251 (auto_language::printchar): New member function.
2252 * language.h (language_data): Delete la_printchar field.
2253 (language_defn::printchar): Declare new member function.
2254 (LA_PRINT_CHAR): Update call to printchar.
2255 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2256 (m2_language::printchar): New member function.
2257 * objc-lang.c (objc_language_data): Delete la_printchar
2258 initializer.
2259 * opencl-lang.c (opencl_language_data): Likewise.
2260 * p-lang.c (pascal_language_data): Delete la_printchar
2261 initializer.
2262 (pascal_language::printchar): New member function.
2263 * rust-lang.c (rust_printchar): Rename to
2264 rust_language::printchar.
2265 (rust_language_data): Delete la_printchar initializer.
2266 (rust_language::printchar): New member function, implementation
2267 from rust_printchar.
2268
2269 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2270
2271 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2272 (ada_language_data): Delete la_emitchar initializer.
2273 (ada_language::emitchar): New member function, implementation from
2274 emit_char.
2275 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2276 (cplus_language_data): Likewise.
2277 (asm_language_data): Likewise.
2278 (minimal_language_data): Likewise.
2279 * d-lang.c (d_language_data): Likewise.
2280 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2281 (f_language_data): Delete la_emitchar initializer.
2282 (f_language::emitchar): New member function, implementation from
2283 f_emit_char.
2284 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2285 * language.c (unk_lang_emit_char): Delete.
2286 (language_defn::emitchar): New member function definition.
2287 (unknown_language_data): Delete la_emitchar initializer.
2288 (unknown_language::emitchar): New member function.
2289 (auto_language_data): Delete la_emitchar initializer.
2290 (auto_language::emitchar): New member function.
2291 * language.h (language_data): Delete la_emitchar field.
2292 (language_defn::emitchar): New member field declaration.
2293 (LA_EMIT_CHAR): Update call to emitchar.
2294 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2295 (m2_language_data): Delete la_emitchar initializer.
2296 (m2_language::emitchar): New member function, implementation from
2297 m2_emit_char.
2298 * objc-lang.c (objc_language_data): Delete la_emitchar
2299 initializer.
2300 * opencl-lang.c (opencl_language_data): Likewise.
2301 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2302 (pascal_language_data): Delete la_emitchar initializer.
2303 (pascal_language::emitchar): New member function, implementation
2304 from pascal_emit_char.
2305 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2306 (rust_language_data): Delete la_emitchar initializer.
2307 (rust_language::emitchar): New member function, implementation
2308 from rust_emitchar.
2309
2310 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2311
2312 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2313 (ada_language_data): Delete la_post_parser initializer.
2314 (ada_language::post_parser): New member function.
2315 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2316 (cplus_language_data): Likewise.
2317 (asm_language_data): Likewise.
2318 (minimal_language_data): Likewise.
2319 * d-lang.c (d_language_data): Likewise.
2320 * f-lang.c (f_language_data): Likewise.
2321 * go-lang.c (go_language_data): Likewise.
2322 * language.c (unknown_language_data): Likewise.
2323 (auto_language_data): Likewise.
2324 * language.h (language_data): Delete la_post_parser field.
2325 (language_defn::post_parser): New member function.
2326 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2327 * objc-lang.c (objc_language_data): Likewise.
2328 * opencl-lang.c (opencl_language_data): Likewise.
2329 * p-lang.c (pascal_language_data): Likewise.
2330 * parse.c (parse_exp_in_context): Update call to post_parser.
2331 (null_post_parser): Delete definition.
2332 * parser-defs.h (null_post_parser): Delete declaration.
2333 * rust-lang.c (rust_language_data): Delete la_post_parser
2334 initializer.
2335
2336 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2337
2338 * ada-lang.c (parse): Rename to ada_language::parser.
2339 (ada_language_data): Delete la_parser initializer.
2340 (ada_language::parser): New member function, implementation from
2341 parse.
2342 * c-lang.c (c_language_data): Delete la_parser initializer.
2343 (cplus_language_data): Likewise.
2344 (asm_language_data): Likewise.
2345 (minimal_language_data): Likewise.
2346 * d-lang.c (d_language_data): Likewise.
2347 (d_language::parser): New member function.
2348 * f-lang.c (f_language_data): Delete la_parser initializer.
2349 (f_language::parser): New member function.
2350 * go-lang.c (go_language_data): Delete la_parser initializer.
2351 (go_language::parser): New member function.
2352 * language.c (unk_lang_parser): Delete.
2353 (language_defn::parser): Define new member function.
2354 (unknown_language_data): Delete la_parser initializer.
2355 (unknown_language::parser): New member function.
2356 (auto_language_data): Delete la_parser initializer.
2357 (auto_language::parser): New member function.
2358 * language.h (language_data): Delete la_parser field.
2359 (language_defn::parser): Declare new member function.
2360 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2361 (m2_language::parser): New member function.
2362 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2363 * opencl-lang.c (opencl_language_data): Likewise.
2364 * p-lang.c (pascal_language_data): Likewise.
2365 (pascal_language::parser): New member function.
2366 * parse.c (parse_exp_in_context): Update call to parser.
2367 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2368 (rust_language::parser): New member function.
2369
2370 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2371
2372 * top.c (print_gdb_configuration): Print --with-python-libdir
2373 configuration value.
2374
2375 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2376
2377 * NEWS: Mention change to the alias command.
2378
2379 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2380
2381 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2382 (alias_command_completer)
2383 (make_alias_options_def_group): New functions.
2384 (alias_opts, alias_option_defs): New struct and array.
2385 (alias_usage_error): Update usage.
2386 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2387 Use option framework.
2388 (_initialize_cli_cmds): Update alias command help.
2389 Update aliases command help.
2390 (show_user):
2391 Add NULL for new default_args lookup_cmd argument.
2392 (valid_command_p): Rename to validate_aliased_command.
2393 Add NULL for new default_args lookup_cmd argument. Verify that the
2394 aliased_command has no default args.
2395 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2396 (lookup_cmd_1, lookup_cmd): New argument default_args.
2397 (add_alias_cmd):
2398 Add NULL for new default_args lookup_cmd argument.
2399 (print_help_for_command): Show default args under the layout
2400 alias some_alias = some_aliased_cmd some_alias_default_arg.
2401 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2402 xfree default_args in destructor.
2403 * cli/cli-script.c (process_next_line, do_define_command):
2404 Add NULL for new default_args lookup_cmd argument.
2405 * command.h: Declare new default_args argument in lookup_cmd
2406 and lookup_cmd_1.
2407 * completer.c (complete_line_internal_1):
2408 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2409 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2410 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2411 Likewise.
2412 * infcmd.c (_initialize_infcmd): Likewise.
2413 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2414 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2415 * python/py-param.c (add_setshow_generic): Likewise.
2416 * remote.c (_initialize_remote): Likewise.
2417 * top.c (execute_command): Prepend default_args if command has some.
2418 (set_verbose):
2419 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2420 * tracepoint.c (validate_actionline, encode_actions_1):
2421 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2422
2423 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2424
2425 * jit.c (jit_read_descriptor): Use bool as the return type.
2426 (jit_breakpoint_re_set_internal): Use bool as the return type.
2427 Invert the return value logic; return true if the jit breakpoint
2428 has been successfully initialized.
2429 (jit_inferior_init): Update the call to
2430 jit_breakpoint_re_set_internal.
2431
2432 2020-06-22 Pedro Alves <palves@redhat.com>
2433
2434 PR gdb/25939
2435 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2436 Use the current inferior instead. Don't return
2437 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2438 wait again.
2439 * sol-thread.c (sol_thread_target::wait): Don't reference
2440 inferior_ptid.
2441 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2442 (sol_update_thread_list_callback): Use the current inferior's pid
2443 instead of inferior_ptid.
2444
2445 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2446
2447 * procfs.c: Cleanup many comments.
2448
2449 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2450 (AFTER_WATCHFLAG): Replace by value.
2451
2452 (MAIN_PROC_NAME_FORMAT): Inline ...
2453 (create_procinfo): ... here.
2454
2455 (procfs_debug_inferior): Remove SYS_exec handling.
2456 (syscall_is_exec): Likewise.
2457 (procfs_set_exec_trap): Likewise.
2458
2459 (syscall_is_lwp_exit): Inline in callers.
2460 (syscall_is_exit): Likewise.
2461 (syscall_is_exec): Likewise.
2462 (syscall_is_lwp_create): Likewise.
2463
2464 (invalidate_cache): Remove #if 0 code.
2465
2466 (make_signal_thread_runnable): Remove.
2467 (procfs_target::resume): Remove #if 0 code.
2468
2469 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2470
2471 PR gdb/25939
2472 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2473 call ...
2474 (procfs_target::create_inferior): ... here.
2475
2476 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2477
2478 * exec.c (validate_exec_file): Ensure the build-id is up to
2479 date by calling reopen_exec_file (that checks file timestamp
2480 to decide to re-read the file).
2481
2482 2020-06-18 Pedro Alves <palves@redhat.com>
2483
2484 PR gdb/25412
2485 * gdbthread.h (delete_thread, delete_thread_silent)
2486 (find_thread_ptid): Update comments.
2487 * thread.c (current_thread_): New global.
2488 (is_current_thread): Move higher, and reimplement.
2489 (inferior_thread): Reimplement.
2490 (set_thread_exited): Use bool. Add assertions.
2491 (add_thread_silent): Simplify thread-reuse handling by always
2492 calling delete_thread.
2493 (delete_thread): Remove intro comment.
2494 (find_thread_ptid): Skip exited threads.
2495 (switch_to_thread_no_regs): Write to current_thread_.
2496 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2497 INFERIOR_PTID. Clear current_thread_.
2498
2499 2020-06-18 Pedro Alves <palves@redhat.com>
2500
2501 * aix-thread.c (pd_update): Use switch_to_thread.
2502
2503 2020-06-18 Pedro Alves <palves@redhat.com>
2504
2505 * ravenscar-thread.c (ravenscar_thread_target): Update.
2506 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2507 (ravenscar_thread_target::add_active_thread): ... this. Don't
2508 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2509 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2510
2511 2020-06-18 Pedro Alves <palves@redhat.com>
2512
2513 * nat/windows-nat.c (current_windows_thread): Remove.
2514 * nat/windows-nat.h (current_windows_thread): Remove.
2515 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2516 Adjust.
2517 (display_selectors): Adjust to fetch the current
2518 windows_thread_info based on inferior_ptid.
2519 (fake_create_process): No longer write to current_windows_thread.
2520 (windows_nat_target::get_windows_debug_event):
2521 Don't set inferior_ptid or current_windows_thread.
2522 (windows_nat_target::wait): Adjust to not rely on
2523 current_windows_thread.
2524 (do_initial_windows_stuff): Now a method of windows_nat_target.
2525 Switch to the last_ptid thread.
2526 (windows_nat_target::attach): Adjust.
2527 (windows_nat_target::detach): Use switch_to_no_thread instead of
2528 writing to inferior_ptid directly.
2529 (windows_nat_target::create_inferior): Adjust.
2530
2531 2020-06-18 Pedro Alves <palves@redhat.com>
2532
2533 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2534
2535 2020-06-18 Pedro Alves <palves@redhat.com>
2536
2537 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2538 after creating it, instead of writing to inferior_ptid. Don't
2539 write to inferior_ptid.
2540
2541 2020-06-18 Pedro Alves <palves@redhat.com>
2542
2543 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2544
2545 2020-06-18 Pedro Alves <palves@redhat.com>
2546
2547 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2548 it, instead of writing to inferior_ptid.
2549
2550 2020-06-18 Pedro Alves <palves@redhat.com>
2551
2552 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2553 to inferior_ptid.
2554
2555 2020-06-18 Pedro Alves <palves@redhat.com>
2556
2557 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2558 instead of writing to inferior_ptid directly.
2559
2560 2020-06-18 Pedro Alves <palves@redhat.com>
2561
2562 * corelow.c (core_target::close): Use switch_to_no_thread instead
2563 of writing to inferior_ptid directly.
2564 (add_to_thread_list, core_target_open): Use switch_to_thread
2565 instead of writing to inferior_ptid directly.
2566
2567 2020-06-18 Pedro Alves <palves@redhat.com>
2568
2569 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2570 inferior_ptid.
2571 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2572 inferior_ptid.
2573 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2574 inferior_ptid directly.
2575 (darwin_nat_target::init_thread_list): Switch to thread, instead
2576 of writing to inferior_ptid.
2577 (darwin_nat_target::attach): Don't write to inferior_ptid.
2578 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2579
2580 2020-06-18 Pedro Alves <palves@redhat.com>
2581
2582 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2583 thread.
2584 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2585 Instead use switch_to_thread.
2586 (gnu_nat_target::detach): Use switch_to_no_thread
2587 instead of writing to inferior_ptid directly. Used passed-in
2588 inferior instead of looking up the inferior by pid.
2589
2590 2020-06-18 Pedro Alves <palves@redhat.com>
2591
2592 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2593 inferior_ptid.
2594
2595 2020-06-18 Pedro Alves <palves@redhat.com>
2596
2597 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2598 inferior_ptid.
2599 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2600 thread.
2601 (nto_procfs_target::detach): Avoid referencing
2602 inferior_ptid. Use switch_to_no_thread instead of writing to
2603 inferior_ptid directly.
2604 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2605 instead of writing to inferior_ptid directly.
2606 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2607 to thread.
2608
2609 2020-06-18 Pedro Alves <palves@redhat.com>
2610
2611 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2612 after creating it, instead of writing to inferior_ptid.
2613 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2614 to inferior_ptid directly.
2615 (gdbsim_target::wait): Don't write to inferior_ptid.
2616
2617 2020-06-18 Pedro Alves <palves@redhat.com>
2618
2619 * remote.c (remote_target::remote_notice_new_inferior): Use
2620 switch_to_thread instead of writing to inferior_ptid directly.
2621 (remote_target::add_current_inferior_and_thread): Use
2622 switch_to_no_thread instead of writing to inferior_ptid directly.
2623 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2624 and switch_to_thread instead of using set_current_inferior or
2625 writing to inferior_ptid directly.
2626
2627 2020-06-18 Pedro Alves <palves@redhat.com>
2628
2629 * tracectf.c (ctf_target_open): Switch to added thread instead of
2630 writing to inferior_ptid directly.
2631 (ctf_target::close): Use switch_to_no_thread instead of writing to
2632 inferior_ptid directly.
2633
2634 2020-06-18 Pedro Alves <palves@redhat.com>
2635
2636 * tracefile-tfile.c (tfile_target_open): Don't write to
2637 inferior_ptid directly, instead switch to added thread.
2638 (tfile_target::close): Use switch_to_no_thread instead of writing
2639 to inferior_ptid directly.
2640
2641 2020-06-18 Pedro Alves <palves@redhat.com>
2642
2643 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2644 (procfs_target::detach): Use switch_to_no_thread
2645 instead of writing to inferior_ptid directly.
2646 (do_attach): Change return type to void. Switch to the added
2647 thread.
2648 (procfs_target::create_inferior): Switch to the added thread.
2649 (procfs_do_thread_registers): Don't write to inferior_ptid.
2650
2651 2020-06-18 Pedro Alves <palves@redhat.com>
2652
2653 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2654 of writing to inferior_ptid.
2655 (scoped_restore_exited_inferior): Delete.
2656 (handle_vfork_child_exec_or_exit): Simplify using
2657 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2658 instead of writing to inferior_ptid.
2659 (THREAD_STOPPED_BY): Delete.
2660 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2661 (thread_stopped_by_hw_breakpoint): Delete.
2662 (save_waitstatus): Use
2663 scoped_restore_current_thread+switch_to_thread, and call
2664 target_stopped_by_watchpoint instead of
2665 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2666 instead of thread_stopped_by_sw_breakpoint, and
2667 target_stopped_by_hw_breakpoint instead of
2668 thread_stopped_by_hw_breakpoint.
2669 (handle_inferior_event)
2670 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2671 inferior_ptid directly, nor
2672 set_current_inferior/set_current_program_space. Use
2673 switch_to_thread / switch_to_inferior_no_thread instead.
2674
2675 2020-06-18 Pedro Alves <palves@redhat.com>
2676
2677 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2678 instead of writing to inferior_ptid.
2679
2680 2020-06-18 Pedro Alves <palves@redhat.com>
2681
2682 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2683 added thread.
2684 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2685 to the added thread.
2686 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2687 instead of writing to inferior_ptid.
2688
2689 2020-06-18 Pedro Alves <palves@redhat.com>
2690
2691 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2692 (register_to_value_test): Mock a program_space too. Heap-allocate
2693 the address space. Don't write to inferior_ptid. Use
2694 switch_to_thread instead.
2695
2696 2020-06-18 Pedro Alves <palves@redhat.com>
2697
2698 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2699 Delete.
2700 (find_signalled_thread()): New, factored out from
2701 linux_make_corefile_notes and adjusted to handle exited threads.
2702 (linux_make_corefile_notes): Adjust to use the new
2703 find_signalled_thread.
2704
2705 2020-06-18 Pedro Alves <palves@redhat.com>
2706
2707 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2708 of saving/restoring inferior_ptid.
2709
2710 2020-06-17 Tom Tromey <tom@tromey.com>
2711
2712 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2713 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2714 declare.
2715 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2716
2717 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
2718
2719 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2720 of partial symtabs.
2721
2722 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2723
2724 * regformats/reg-arm.dat: Remove.
2725 * regformats/reg-bfin.dat: Remove.
2726 * regformats/reg-cris.dat: Remove.
2727 * regformats/reg-crisv32.dat: Remove.
2728 * regformats/reg-m32r.dat: Remove.
2729 * regformats/reg-tilegx.dat: Remove.
2730 * regformats/reg-tilegx32.dat: Remove.
2731
2732 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2733
2734 * features/Makefile (WHICH): Remove arm files.
2735 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2736 * regformats/arm/arm-with-neon.dat: Remove.
2737 * regformats/arm/arm-with-vfpv2.dat: Remove.
2738 * regformats/arm/arm-with-vfpv3.dat: Remove.
2739
2740 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2741
2742 * features/Makefile (XMLTOC): Remove rx.xml.
2743
2744 2020-06-17 Pedro Alves <palves@redhat.com>
2745
2746 * gdbthread.h (thread_control_state) <trap_expected> Update
2747 comments.
2748
2749 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2750
2751 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2752 ada_language::lookup_symbol_nonlocal.
2753 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2754 (ada_language::lookup_symbol_nonlocal): New member function,
2755 implementation from ada_lookup_symbol_nonlocal.
2756 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2757 initializer.
2758 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2759 initializer.
2760 (cplus_language::lookup_symbol_nonlocal): New member function.
2761 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2762 (minimal_language_data) Likewise.
2763 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2764 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2765 initializer.
2766 (d_language::lookup_symbol_nonlocal): New member function.
2767 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2768 initializer.
2769 (f_language::lookup_symbol_nonlocal): New member function.
2770 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2771 initializer.
2772 * language.c (unknown_language_data): Likewise.
2773 (auto_language_data): Likewise.
2774 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2775 field.
2776 (language_defn::lookup_symbol_nonlocal): New member function.
2777 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2778 initializer.
2779 * objc-lang.c (objc_language_data): Likewise.
2780 * opencl-lang.c (opencl_language_data): Likewise.
2781 * p-lang.c (pascal_language_data): Likewise.
2782 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2783 rust_language::lookup_symbol_nonlocal.
2784 (rust_language_data): Delete la_lookup_symbol_nonlocal
2785 initializer.
2786 (rust_language::lookup_symbol_nonlocal): New member function,
2787 implementation from rust_lookup_symbol_nonlocal.
2788 * symtab.c (lookup_symbol_aux): Update call to
2789 lookup_symbol_nonlocal.
2790 (basic_lookup_symbol_nonlocal): Rename to...
2791 (language_defn::lookup_symbol_nonlocal): ...this, and update
2792 header comment. Remove language_defn parameter, and replace with
2793 uses of `this'.
2794 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2795
2796 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2797
2798 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2799 initializer.
2800 (ada_language::value_print_inner): New member function.
2801 * c-lang.c (c_language_data): Delete la_value_print_inner
2802 initializer.
2803 (cplus_language_data): Likewise.
2804 (asm_language_data): Likewise.
2805 (minimal_language_data): Likewise.
2806 * d-lang.c (d_language_data): Likewise.
2807 (d_language::value_print_inner): New member function.
2808 * f-lang.c (f_language_data): Delete la_value_print_inner
2809 initializer.
2810 (f_language::value_print_inner): New member function.
2811 * f-lang.h (f_value_print_innner): Rename to...
2812 (f_value_print_inner): ...this (note spelling of 'inner').
2813 * f-valprint.c (f_value_print_innner): Rename to...
2814 (f_value_print_inner): ...this (note spelling of 'inner').
2815 * go-lang.c (go_language_data): Delete la_value_print_inner
2816 initializer.
2817 (go_language::value_print_inner): New member function.
2818 * language.c (language_defn::value_print_inner): Define new member
2819 function.
2820 (unk_lang_value_print_inner): Delete.
2821 (unknown_language_data): Delete la_value_print_inner initializer.
2822 (unknown_language::value_print_inner): New member function.
2823 (auto_language_data): Delete la_value_print_inner initializer.
2824 (auto_language::value_print_inner): New member function.
2825 * language.h (language_data): Delete la_value_print_inner field.
2826 (language_defn::value_print_inner): Delcare new member function.
2827 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2828 initializer.
2829 (m2_language::value_print_inner): New member function.
2830 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2831 initializer.
2832 * opencl-lang.c (opencl_language_data): Likewise.
2833 * p-lang.c (pascal_language_data): Likewise.
2834 (pascal_language::value_print_inner): New member function.
2835 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2836 initializer.
2837 (rust_language::value_print_inner): New member function.
2838 * valprint.c (do_val_print): Update call to value_print_inner.
2839
2840 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2841
2842 * ada-lang.c (ada_language_data): Delete la_value_print
2843 initializer.
2844 (ada_language::value_print): New member function.
2845 * c-lang.c (c_language_data): Delete la_value_print initializer.
2846 (cplus_language_data): Likewise.
2847 (asm_language_data): Likewise.
2848 (minimal_language_data): Likewise.
2849 * d-lang.c (d_language_data): Likewise.
2850 * f-lang.c (f_language_data): Likewise.
2851 * go-lang.c (go_language_data): Likewise.
2852 * language.c (unk_lang_value_print): Delete.
2853 (language_defn::value_print): Define new member function.
2854 (unknown_language_data): Delete la_value_print initializer.
2855 (unknown_language::value_print): New member function.
2856 (auto_language_data): Delete la_value_print initializer.
2857 (auto_language::value_print): New member function.
2858 * language.h (language_data): Delete la_value_print field.
2859 (language_defn::value_print): Declare new member function.
2860 (LA_VALUE_PRINT): Update call to value_print.
2861 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2862 * objc-lang.c (objc_language_data): Likewise.
2863 * opencl-lang.c (opencl_language_data): Likewise.
2864 * p-lang.c (pascal_language_data): Likewise.
2865 (pascal_language::value_print): New member function.
2866 * rust-lang.c (rust_language_data): Delete la_value_print
2867 initializer.
2868
2869 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2870
2871 * ada-lang.c (ada_watch_location_expression): Rename to
2872 ada_language::watch_location_expression.
2873 (ada_language_data): Delete la_watch_location_expression
2874 initializer.
2875 (ada_language::watch_location_expression): New member function,
2876 implementation from ada_watch_location_expression.
2877 * breakpoint.c (watch_command_1): Update call to
2878 watch_location_expression.
2879 * c-lang.c (c_watch_location_expression): Rename to
2880 language_defn::watch_location_expression.
2881 (c_language_data): Delete la_watch_location_expression
2882 initializer.
2883 (cplus_language_data): Likewise.
2884 (asm_language_data): Likewise.
2885 (minimal_language_data): Likewise.
2886 * c-lang.h (c_watch_location_expression): Delete declaration.
2887 * d-lang.c (d_language_data): Delete la_watch_location_expression
2888 initializer.
2889 * f-lang.c (f_language_data): Likewise.
2890 * go-lang.c (go_language_data): Likewise.
2891 * language.c (language_defn::watch_location_expression): Member
2892 function implementation from c_watch_location_expression.
2893 (unknown_language_data): Delete la_watch_location_expression
2894 initializer.
2895 (auto_language_data): Likewise.
2896 * language.h (language_data): Delete la_watch_location_expression
2897 field.
2898 (language_defn::watch_location_expression): Declare new member
2899 function.
2900 * m2-lang.c (m2_language_data): Delete
2901 la_watch_location_expression initializer.
2902 * objc-lang.c (objc_language_data): Likewise.
2903 * opencl-lang.c (opencl_language_data): Likewise.
2904 * p-lang.c (pascal_language_data): Likewise.
2905 * rust-lang.c (rust_watch_location_expression): Rename to
2906 rust_language::watch_location_expression.
2907 (rust_language_data): Delete la_watch_location_expression
2908 initializer.
2909 (rust_language::watch_location_expression): New member function,
2910 implementation from rust_watch_location_expression.
2911
2912 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2913
2914 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2915 ada_language::collect_symbol_completion_matches.
2916 (ada_language_data): Delete la_collect_symbol_completion_matches
2917 initializer.
2918 (ada_language::collect_symbol_completion_matches): New member
2919 function, implementation from
2920 ada_collect_symbol_completion_matches.
2921 * c-lang.c (c_language_data): Delete
2922 la_collect_symbol_completion_matches initializer.
2923 (cplus_language_data): Likewise.
2924 (asm_language_data): Likewise.
2925 (minimal_language_data): Likewise.
2926 * d-lang.c (d_language_data): Likewise.
2927 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2928 f_language::collect_symbol_completion_matches.
2929 (f_language_data): Delete la_collect_symbol_completion_matches
2930 initializer.
2931 (f_language::collect_symbol_completion_matches) New member
2932 function, implementation from f_collect_symbol_completion_matches.
2933 * go-lang.c (go_language_data): Delete
2934 la_collect_symbol_completion_matches initializer.
2935 * language.c (unknown_language_data): Likewise.
2936 (auto_language_data): Likewise.
2937 * language.h (language_data): Delete
2938 la_collect_symbol_completion_matches field.
2939 (language_defn::collect_symbol_completion_matches): New member
2940 function.
2941 * m2-lang.c (m2_language_data): Delete
2942 la_collect_symbol_completion_matches initializer.
2943 * objc-lang.c (objc_language_data): Likewise.
2944 * opencl-lang.c (opencl_language_data): Likewise.
2945 * p-lang.c (pascal_language_data): Likewise.
2946 * rust-lang.c (rust_language_data): Likewise.
2947 * symtab.c (default_collect_symbol_completion_matches): Delete.
2948 (collect_symbol_completion_matches): Update call to
2949 collect_symbol_completion_matches.
2950 (collect_symbol_completion_matches_type): Likewise.
2951 * symtab.h (default_collect_symbol_completion_matches): Delete
2952 declaration.
2953
2954 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2955
2956 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2957 (ada_language_data): Delete la_word_break_characters initializer.
2958 (ada_language::word_break_characters): New member function.
2959 * c-lang.c (c_language_data): Delete la_word_break_characters
2960 initializer.
2961 (cplus_language_data): Likewise.
2962 (asm_language_data): Likewise.
2963 (minimal_language_data): Likewise.
2964 * completer.c: Update global comment.
2965 (advance_to_expression_complete_word_point): Update call to
2966 word_break_characters.
2967 (complete_files_symbols): Likewise.
2968 (complete_line_internal_1): Likewise.
2969 (default_completer_handle_brkchars): Likewise.
2970 (skip_quoted_chars): Likewise.
2971 * d-lang.c (d_language_data): Delete la_word_break_characters
2972 initializer.
2973 * f-lang.c (f_word_break_characters): Delete.
2974 (f_language_data): Delete la_word_break_characters initializer.
2975 (f_language::word_break_characters): New member function.
2976 * go-lang.c (go_language_data): Delete la_word_break_characters
2977 initializer.
2978 * language.c (unknown_language_data): Likewise.
2979 (auto_language_data): Likewise.
2980 * language.h (default_word_break_characters): Move declaration to
2981 earlier in the file.
2982 (language_data): Delete la_word_break_characters field.
2983 (language_defn::word_break_characters): New member function.
2984 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2985 initializer.
2986 * objc-lang.c (objc_language_data): Likewise.
2987 * opencl-lang.c (opencl_language_data): Likewise.
2988 * p-lang.c (pascal_language_data): Likewise.
2989 * rust-lang.c (rust_language_data): Likewise.
2990
2991 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2992
2993 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2994 (ada_language_data): Delete la_get_symbol_name_matcher
2995 initializer.
2996 (language_defn::get_symbol_name_matcher_inner): New member
2997 function.
2998 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2999 initializer.
3000 (cplus_language_data): Likewise.
3001 (cplus_language::get_symbol_name_matcher_inner): New member
3002 function.
3003 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
3004 (minimal_language_data): Likewise.
3005 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
3006 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
3007 initializer.
3008 * dictionary.c (iter_match_first_hashed): Update call to
3009 get_symbol_name_matcher.
3010 (iter_match_next_hashed): Likewise.
3011 (iter_match_next_linear): Likewise.
3012 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
3013 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
3014 initializer.
3015 (f_language::get_symbol_name_matcher_inner): New member function.
3016 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
3017 initializer.
3018 * language.c (default_symbol_name_matcher): Update header comment,
3019 make static.
3020 (language_defn::get_symbol_name_matcher): New definition.
3021 (language_defn::get_symbol_name_matcher_inner): Likewise.
3022 (get_symbol_name_matcher): Delete.
3023 (unknown_language_data): Delete la_get_symbol_name_matcher
3024 initializer.
3025 (auto_language_data): Likewise.
3026 * language.h (language_data): Delete la_get_symbol_name_matcher
3027 field.
3028 (language_defn::get_symbol_name_matcher): New member function.
3029 (language_defn::get_symbol_name_matcher_inner): Likewise.
3030 (default_symbol_name_matcher): Delete declaration.
3031 * linespec.c (find_methods): Update call to
3032 get_symbol_name_matcher.
3033 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
3034 initializer.
3035 * minsyms.c (lookup_minimal_symbol): Update call to
3036 get_symbol_name_matcher.
3037 (iterate_over_minimal_symbols): Likewise.
3038 * objc-lang.c (objc_language_data): Delete
3039 la_get_symbol_name_matcher initializer.
3040 * opencl-lang.c (opencl_language_data): Likewise.
3041 * p-lang.c (pascal_language_data): Likewise.
3042 * psymtab.c (psymbol_name_matches): Update call to
3043 get_symbol_name_matcher.
3044 * rust-lang.c (rust_language_data): Delete
3045 la_get_symbol_name_matcher initializer.
3046 * symtab.c (symbol_matches_search_name): Update call to
3047 get_symbol_name_matcher.
3048 (compare_symbol_name): Likewise.
3049
3050 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3051
3052 * ada-lang.c (ada_language_data): Delete la_compute_program
3053 initializer.
3054 * c-lang.c (c_language_data): Likewise.
3055 (c_language::compute_program): New member function.
3056 (cplus_language_data): Delete la_compute_program initializer.
3057 (cplus_language::compute_program): New member function.
3058 (asm_language_data): Delete la_compute_program initializer.
3059 (minimal_language_data): Likewise.
3060 * c-lang.h (c_compute_program): Update comment.
3061 (cplus_compute_program): Likewise.
3062 * compile/compile-c-support.c (c_compute_program): Likewise.
3063 (cplus_compute_program): Likewise.
3064 * compile/compile.c (compile_to_object): Update call to
3065 la_compute_program.
3066 * d-lang.c (d_language_data): Delete la_compute_program
3067 initializer.
3068 * f-lang.c (f_language_data): Likewise.
3069 * go-lang.c (go_language_data): Likewise.
3070 * language.c (unknown_language_data): Likewise.
3071 (auto_language_data): Likewise.
3072 * language.h (language_data): Delete la_compute_program field.
3073 (language_defn::compute_program): New member function.
3074 * m2-lang.c (m2_language_data): Delete la_compute_program
3075 initializer.
3076 * objc-lang.c (objc_language_data): Likewise.
3077 * opencl-lang.c (opencl_language_data): Likewise.
3078 * p-lang.c (pascal_language_data): Likewise.
3079 * rust-lang.c (rust_language_data): Likewise.
3080
3081 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3082
3083 * ada-lang.c (ada_language_data) Delete
3084 la_class_name_from_physname initializer.
3085 * c-lang.c (c_language_data): Likewise.
3086 (cplus_language_data): Likewise.
3087 (cplus_language::class_name_from_physname): New member function.
3088 (asm_language_data): Delete la_class_name_from_physname
3089 initializer.
3090 (minimal_language_data): Likewise.
3091 * d-lang.c (d_language_data): Likewise.
3092 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
3093 method on language_defn class.
3094 (guess_full_die_structure_name): Likewise.
3095 * f-lang.c (f_language_data): Delete la_class_name_from_physname
3096 initializer.
3097 * go-lang.c (go_language_data): Likewise.
3098 * language.c (language_class_name_from_physname): Delete.
3099 (unk_lang_class_name): Delete.
3100 (unknown_language_data): Delete la_class_name_from_physname
3101 initializer.
3102 (auto_language_data): Likewise.
3103 * language.h (language_data): Delete la_class_name_from_physname
3104 field.
3105 (language_defn::class_name_from_physname): New function.
3106 (language_class_name_from_physname): Delete declaration.
3107 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
3108 initializer.
3109 * objc-lang.c (objc_language_data): Likewise.
3110 * opencl-lang.c (opencl_language_data): Likewise.
3111 * p-lang.c (pascal_language_data): Likewise.
3112 * rust-lang.c (rust_language_data): Likewise.
3113
3114 2020-06-16 Tom Tromey <tom@tromey.com>
3115
3116 * tui/tui-data.h (STATUS_NAME): New macro.
3117 * tui/tui-layout.c (tui_remove_some_windows)
3118 (initialize_known_windows, tui_register_window)
3119 (tui_layout_split::remove_windows, initialize_layouts)
3120 (tui_new_layout_command): Don't use hard-coded window names.
3121
3122 2020-06-16 Tom Tromey <tom@tromey.com>
3123
3124 PR tui/25348:
3125 * tui/tui.c (tui_ensure_readline_initialized): Rename from
3126 tui_initialize_readline. Only run once. Call rl_initialize.
3127 * tui/tui.h (tui_ensure_readline_initialized): Rename from
3128 tui_initialize_readline.
3129 * tui/tui-io.c (tui_setup_io): Call
3130 tui_ensure_readline_initialized.
3131 * tui/tui-interp.c (tui_interp::init): Update.
3132
3133 2020-06-16 Tom Tromey <tom@tromey.com>
3134
3135 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
3136 Also preserve the status window.
3137
3138 2020-06-16 Tom Tromey <tom@tromey.com>
3139
3140 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
3141 where m_window==nullptr.
3142
3143 2020-06-15 Tom Tromey <tromey@adacore.com>
3144
3145 * windows-nat.c (windows_nat::handle_output_debug_string):
3146 Update.
3147 (windows_nat::handle_ms_vc_exception): Update.
3148 * target.h (target_read_string): Change API.
3149 * target.c (target_read_string): Change API.
3150 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
3151 Update.
3152 * solib-frv.c (frv_current_sos): Update.
3153 * solib-dsbt.c (dsbt_current_sos): Update.
3154 * solib-darwin.c (darwin_current_sos): Update.
3155 * linux-thread-db.c (inferior_has_bug): Update.
3156 * expprint.c (print_subexp_standard): Update.
3157 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
3158 (ada_exception_message_1): Update.
3159
3160 2020-06-15 Tom Tromey <tromey@adacore.com>
3161
3162 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
3163
3164 2020-06-15 Tom Tromey <tromey@adacore.com>
3165
3166 * valprint.c (read_string): Update comment.
3167 * target.c (MIN): Remove.
3168 (target_read_string): Rewrite.
3169
3170 2020-06-15 Tom Tromey <tromey@adacore.com>
3171
3172 * corefile.c (read_memory_string): Remove.
3173 * ada-valprint.c (ada_value_print_ptr): Update.
3174 * ada-lang.h (ada_tag_name): Change return type.
3175 * ada-lang.c (type_from_tag): Update.
3176 (ada_tag_name_from_tsd): Change return type. Use
3177 target_read_string.
3178 (ada_tag_name): Likewise.
3179 * gdbcore.h (read_memory_string): Don't declare.
3180
3181 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
3182
3183 * symtab.c (rbreak_command): Ignore Windows drive colon.
3184
3185 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
3186
3187 * NEWS: Mention removed GDBserver host support.
3188
3189 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
3190
3191 * features/riscv/rebuild-csr-xml.sh: Updated.
3192
3193 2020-06-11 Tom Tromey <tom@tromey.com>
3194
3195 PR gdb/18318:
3196 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3197
3198 2020-06-09 Jonny Grant <jg@jguk.org>
3199 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3200
3201 * main.c (captured_main_1): Don't print new line after help.
3202 (print_gdb_help): add mailing list and IRC channel information
3203 to --help. Add new lines between items in the footer. Remove
3204 quotes around bug url.
3205
3206 2020-06-11 Keith Seitz <keiths@redhat.com>
3207
3208 PR gdb/21356
3209 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3210 Resolve typedefs for type length calculations.
3211
3212 2020-06-10 Tom de Vries <tdevries@suse.de>
3213
3214 PR ada/24713
3215 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3216 (write_psymbols): Enable .gdb_index for ada.
3217 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3218 ada.
3219
3220 2020-06-10 Tom de Vries <tdevries@suse.de>
3221
3222 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3223 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3224 namei" instead of "const char *name" argument.
3225 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3226 dw2_symtab_iter_init.
3227
3228 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3229
3230 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3231 to use type::field and field::type instead.
3232
3233 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3234
3235 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3236 to use field::type instead.
3237
3238 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3239
3240 * gdbtypes.h (struct field) <type, set_type>: New methods.
3241 Rename `type` field to...
3242 <m_type>: ... this. Change references throughout to use type or
3243 set_type methods.
3244 (FIELD_TYPE): Use field::type. Change call sites that modify
3245 the field's type to use field::set_type instead.
3246
3247 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3248
3249 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3250 to use type::index_type instead.
3251
3252 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3253
3254 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3255 methods.
3256 (TYPE_INDEX_TYPE): Use type::index_type.
3257 * gdbtypes.c (create_array_type_with_stride): Likewise.
3258
3259 2020-06-07 Tom Tromey <tom@tromey.com>
3260
3261 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3262 parameter.
3263 (generic_value_print): Update.
3264
3265 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3266
3267 Revert commit 982a38f60b0.
3268 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3269
3270 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3271
3272 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3273 avoid use after free.
3274
3275 2020-06-05 Tom de Vries <tdevries@suse.de>
3276
3277 * NEWS: Fix typos.
3278
3279 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
3280
3281 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3282 the per_bfd object.
3283 (dwarf2_read_debug_names): Likewise.
3284 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3285 object when re-using a per_bfd object with an index.
3286
3287 2020-06-03 Tom de Vries <tdevries@suse.de>
3288
3289 PR symtab/26046
3290 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3291 children for C++.
3292 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3293 DW_TAG_subprogram.
3294
3295 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3296
3297 * ada-lang.c (ada_language_data): Delete skip_trampoline
3298 initializer.
3299 * c-lang.c (c_language_data): Likewise.
3300 (cplus_language_data): Likewise.
3301 (cplus_language::skip_trampoline): New member function.
3302 (asm_language_data): Delete skip_trampoline initializer.
3303 (minimal_language_data): Likewise.
3304 * d-lang.c (d_language_data): Likewise.
3305 * f-lang.c (f_language_data): Likewise.
3306 * go-lang.c (go_language_data): Likewise.
3307 * language.c (unk_lang_trampoline): Delete function.
3308 (skip_language_trampoline): Update.
3309 (unknown_language_data): Delete skip_trampoline initializer.
3310 (auto_language_data): Likewise.
3311 * language.h (language_data): Delete skip_trampoline field.
3312 (language_defn::skip_trampoline): New function.
3313 * m2-lang.c (m2_language_data): Delete skip_trampoline
3314 initializer.
3315 * objc-lang.c (objc_skip_trampoline): Delete function, move
3316 implementation to objc_language::skip_trampoline.
3317 (objc_language_data): Delete skip_trampoline initializer.
3318 (objc_language::skip_trampoline): New member function with
3319 implementation from objc_skip_trampoline.
3320 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3321 initializer.
3322 * p-lang.c (pascal_language_data): Likewise.
3323 * rust-lang.c (rust_language_data): Likewise.
3324
3325 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3326
3327 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3328 (ada_language::demangle): New member function.
3329 * c-lang.c (c_language_data): Delete la_demangle initializer.
3330 (cplus_language_data): Delete la_demangle initializer.
3331 (cplus_language::demangle): New member function.
3332 (asm_language_data): Delete la_demangle initializer.
3333 (minimal_language_data): Delete la_demangle initializer.
3334 * d-lang.c (d_language_data): Delete la_demangle initializer.
3335 (d_language::demangle): New member function.
3336 * f-lang.c (f_language_data): Delete la_demangle initializer.
3337 (f_language::demangle): New member function.
3338 * go-lang.c (go_language_data): Delete la_demangle initializer.
3339 (go_language::demangle): New member function.
3340 * language.c (language_demangle): Update.
3341 (unk_lang_demangle): Delete.
3342 (unknown_language_data): Delete la_demangle initializer.
3343 (unknown_language::demangle): New member function.
3344 (auto_language_data): Delete la_demangle initializer.
3345 (auto_language::demangle): New member function.
3346 * language.h (language_data): Delete la_demangle field.
3347 (language_defn::demangle): New function.
3348 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3349 * objc-lang.c (objc_language_data): Delete la_demangle
3350 initializer.
3351 (objc_language::demangle): New member function.
3352 * opencl-lang.c (opencl_language_data): Delete la_demangle
3353 initializer.
3354 * p-lang.c (pascal_language_data): Likewise.
3355 * rust-lang.c (rust_language_data): Likewise.
3356 (rust_language::demangle): New member function.
3357
3358 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3359
3360 * ada-lang.c (ada_language_data): Delete la_print_type
3361 initializer.
3362 (ada_language::print_type): New member function.
3363 * c-lang.c (c_language_data): Delete la_print_type initializer.
3364 (c_language::print_type): New member function.
3365 (cplus_language_data): Delete la_print_type initializer.
3366 (cplus_language::print_type): New member function.
3367 (asm_language_data): Delete la_print_type initializer.
3368 (asm_language::print_type): New member function.
3369 (minimal_language_data): Delete la_print_type initializer.
3370 (minimal_language::print_type): New member function.
3371 * d-lang.c (d_language_data): Delete la_print_type initializer.
3372 (d_language::print_type): New member function.
3373 * f-lang.c (f_language_data): Delete la_print_type initializer.
3374 (f_language::print_type): New member function.
3375 * go-lang.c (go_language_data): Delete la_print_type initializer.
3376 (go_language::print_type): New member function.
3377 * language.c (unk_lang_print_type): Delete.
3378 (unknown_language_data): Delete la_print_type initializer.
3379 (unknown_language::print_type): New member function.
3380 (auto_language_data): Delete la_print_type initializer.
3381 (auto_language::print_type): New member function.
3382 * language.h (language_data): Delete la_print_type field.
3383 (language_defn::print_type): New function.
3384 (LA_PRINT_TYPE): Update.
3385 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3386 (m2_language::print_type): New member function.
3387 * objc-lang.c (objc_language_data): Delete la_print_type
3388 initializer.
3389 (objc_language::print_type): New member function.
3390 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3391 to opencl_language::print_type.
3392 (opencl_language_data): Delete la_print_type initializer.
3393 (opencl_language::print_type): New member function, implementation
3394 from opencl_print_type.
3395 * p-lang.c (pascal_language_data): Delete la_print_type
3396 initializer.
3397 (pascal_language::print_type): New member function.
3398 * rust-lang.c (rust_print_type): Delete, implementation moved to
3399 rust_language::print_type.
3400 (rust_language_data): Delete la_print_type initializer.
3401 (rust_language::print_type): New member function, implementation
3402 from rust_print_type.
3403
3404 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3405
3406 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3407 implementation moves to...
3408 (ada_language::sniff_from_mangled_name): ...here. Update return
3409 type.
3410 (ada_language_data): Delete la_sniff_from_mangled_name
3411 initializer.
3412 * c-lang.c (c_language_data): Likewise.
3413 (cplus_language_data): Likewise.
3414 (cplus_language::sniff_from_mangled_name): New member function,
3415 implementation taken from gdb_sniff_from_mangled_name.
3416 (asm_language_data): Delete la_sniff_from_mangled_name
3417 initializer.
3418 (minimal_language_data): Likewise.
3419 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3420 implementation moves to cplus_language::sniff_from_mangled_name.
3421 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3422 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3423 moves to...
3424 (d_language::sniff_from_mangled_name): ...here.
3425 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3426 * f-lang.c (f_language_data): Likewise.
3427 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3428 moves to...
3429 (go_language::sniff_from_mangled_name): ...here.
3430 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3431 * language.c (language_sniff_from_mangled_name): Delete.
3432 (unknown_language_data): Delete la_sniff_from_mangled_name
3433 initializer.
3434 (auto_language_data): Likewise.
3435 * language.h (language_data): Delete la_sniff_from_mangled_name
3436 field.
3437 (language_defn::sniff_from_mangled_name): New function.
3438 (language_sniff_from_mangled_name): Delete declaration.
3439 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3440 field.
3441 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3442 implementation moves to...
3443 (objc_language::sniff_from_mangled_name): ...here.
3444 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3445 * opencl-lang.c (opencl_language_data): Likewise.
3446 * p-lang.c (pascal_language_data): Likewise.
3447 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3448 implementation moves to...
3449 (rust_language::sniff_from_mangled_name): ...here.
3450 (rust_language_data): Delete la_sniff_from_mangled_name
3451 initializer.
3452 * symtab.c (symbol_find_demangled_name): Call
3453 sniff_from_mangled_name member function.
3454
3455 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3456
3457 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3458 initializer.
3459 * c-lang.c (c_language_data): Likewise.
3460 (cplus_language_data): Likewise.
3461 (cplus_language::search_name_hash): New member function.
3462 (asm_language_data): Delete la_search_name_hash initializer.
3463 (minimal_language_data): Likewise.
3464 * d-lang.c (d_language_data): Likewise.
3465 * dictionary.c (default_search_name_hash): Rename to...
3466 (language_defn::search_name_hash): ...this.
3467 * f-lang.c (f_language_data): Likewise.
3468 (f_language::search_name_hash): New member function.
3469 * go-lang.c (go_language_data): Delete la_search_name_hash
3470 initializer.
3471 * language.c (unknown_language_data): Likewise.
3472 (auto_language_data): Likewise.
3473 * language.h (struct language_data): Delete la_search_name_hash
3474 field.
3475 (language_defn::search_name_hash): Declare new member function.
3476 (default_search_name_hash): Delete declaration.
3477 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3478 initializer.
3479 * objc-lang.c (objc_language_data): Likewise.
3480 * opencl-lang.c (opencl_language_data): Likewise.
3481 * p-lang.c (pascal_language_data): Likewise.
3482 * rust-lang.c (rust_language_data): Likewise.
3483 * symtab.c (search_name_hash): Update call.
3484
3485 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3486
3487 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3488 initializer.
3489 * c-lang.c (class compile_instance): Declare.
3490 (c_language_data): Delete la_get_compile_instance initializer.
3491 (c_language::get_compile_instance): New member function.
3492 (cplus_language_data): Delete la_get_compile_instance initializer.
3493 (cplus_language::get_compile_instance): New member function.
3494 (asm_language_data): Delete la_get_compile_instance initializer.
3495 (minimal_language_data): Likewise.
3496 * c-lang.h (c_get_compile_context): Update comment.
3497 (cplus_get_compile_context): Update comment.
3498 * compile/compile.c (compile_to_object): Update calls, don't rely
3499 on function pointer being NULL.
3500 * d-lang.c (d_language_data): Delete la_get_compile_instance
3501 initializer.
3502 * f-lang.c (f_language_data): Likewise.
3503 * go-lang.c (go_language_data): Likewise.
3504 * language.c (unknown_language_data): Likewise.
3505 (auto_language_data): Likewise.
3506 * language.h (language_data): Delete la_get_compile_instance field.
3507 (language_defn::get_compile_instance): New member function.
3508 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3509 initializer.
3510 * objc-lang.c (objc_language_data): Likewise.
3511 * opencl-lang.c (opencl_language_data): Likewise.
3512 * p-lang.c (pascal_language_data): Likewise.
3513 * rust-lang.c (rust_language_data): Likewise.
3514
3515 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3516
3517 * ada-lang.c (ada_add_all_symbols): Update comment.
3518 (ada_iterate_over_symbols): Delete, move implementation to...
3519 (ada_language::iterate_over_symbols): ...here, a new member
3520 function, rewrite to use range based for loop.
3521 (ada_language_data): Delete la_iterate_over_symbols initializer.
3522 * c-lang.c (c_language_data): Likewise.
3523 (cplus_language_data): Likewise.
3524 (asm_language_data): Likewise.
3525 (minimal_language_data): Likewise.
3526 * d-lang.c (d_language_data): Likewise.
3527 * f-lang.c (f_language_data): Likewise.
3528 * go-lang.c (go_language_data): Likewise.
3529 * language.c (unknown_language_data): Likewise.
3530 (auto_language_data): Likewise.
3531 * language.h (language_data): Delete la_iterate_over_symbols field.
3532 (language_defn::iterate_over_symbols): New member function.
3533 (LA_ITERATE_OVER_SYMBOLS): Update.
3534 * linespec.c (iterate_over_all_matching_symtabs): Update.
3535 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3536 initializer.
3537 * objc-lang.c (objc_language_data): Likewise.
3538 * opencl-lang.c (opencl_language_data): Likewise.
3539 * p-lang.c (pascal_language_data): Likewise.
3540 * rust-lang.c (rust_language_data): Likewise.
3541
3542 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3543
3544 * ada-lang.c (ada_language_data): Delete
3545 la_lookup_transparent_type initializer.
3546 * c-lang.c (c_language_data): Likewise.
3547 (cplus_language_data): Likewise.
3548 (cplus_language::lookup_transparent_type): New member function.
3549 (asm_language_data): Delete la_lookup_transparent_type
3550 initializer.
3551 (minimal_language_data): Likewise.
3552 * d-lang.c (d_language_data): Likewise.
3553 * f-lang.c (f_language_data): Likewise.
3554 * go-lang.c (go_language_data): Likewise.
3555 * language.c (unknown_language_data): Likewise.
3556 (auto_language_data): Likewise.
3557 * language.h (struct language_data): Delete
3558 la_lookup_transparent_type field.
3559 (language_defn::lookup_transparent_type): New member function.
3560 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3561 initializer.
3562 * objc-lang.c (objc_language_data): Likewise.
3563 * opencl-lang.c (opencl_language_data): Likewise.
3564 * p-lang.c (pascal_language_data): Likewise.
3565 * rust-lang.c (rust_language_data): Likewise.
3566 * symtab.c (symbol_matches_domain): Update call.
3567
3568 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3569
3570 * ada-lang.c (ada_language_arch_info): Delete function, move
3571 implementation to...
3572 (ada_language::language_arch_info): ...here, a new member
3573 function.
3574 (ada_language_data): Delete la_language_arch_info.
3575 * c-lang.c (c_language_data): Likewise.
3576 (c_language::language_arch_info): New member function.
3577 (cplus_language_arch_info): Delete function, move
3578 implementation to...
3579 (cplus_language::language_arch_info): ...here, a new member
3580 function.
3581 (cplus_language_data): Delete la_language_arch_info.
3582 (asm_language_data): Likewise.
3583 (asm_language::language_arch_info): New member function.
3584 (minimal_language_data): Delete la_language_arch_info.
3585 (minimal_language::language_arch_info): New member function.
3586 * d-lang.c (d_language_arch_info): Delete function, move
3587 implementation to...
3588 (d_language::language_arch_info): ...here, a new member
3589 function.
3590 (d_language_data): Delete la_language_arch_info.
3591 * f-lang.c (f_language_arch_info): Delete function, move
3592 implementation to...
3593 (f_language::language_arch_info): ...here, a new member
3594 function.
3595 (f_language_data): Delete la_language_arch_info.
3596 * go-lang.c (go_language_arch_info): Delete function, move
3597 implementation to...
3598 (go_language::language_arch_info): ...here, a new member
3599 function.
3600 (go_language_data): Delete la_language_arch_info.
3601 * language.c (unknown_language_data): Likewise.
3602 (unknown_language::language_arch_info): New member function.
3603 (auto_language_data): Delete la_language_arch_info.
3604 (auto_language::language_arch_info): New member function.
3605 (language_gdbarch_post_init): Update call to
3606 la_language_arch_info.
3607 * language.h (language_data): Delete la_language_arch_info
3608 function pointer.
3609 (language_defn::language_arch_info): New function.
3610 * m2-lang.c (m2_language_arch_info): Delete function, move
3611 implementation to...
3612 (m2_language::language_arch_info): ...here, a new member
3613 function.
3614 (m2_language_data): Delete la_language_arch_info.
3615 * objc-lang.c (objc_language_arch_info): Delete function, move
3616 implementation to...
3617 (objc_language::language_arch_info): ...here, a new member
3618 function.
3619 (objc_language_data): Delete la_language_arch_info.
3620 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3621 implementation to...
3622 (opencl_language::language_arch_info): ...here, a new member
3623 function.
3624 (opencl_language_data): Delete la_language_arch_info.
3625 * p-lang.c (pascal_language_arch_info): Delete function, move
3626 implementation to...
3627 (pascal_language::language_arch_info): ...here, a new member
3628 function.
3629 (pascal_language_data): Delete la_language_arch_info.
3630 * rust-lang.c (rust_language_arch_info): Delete function, move
3631 implementation to...
3632 (rust_language::language_arch_info): ...here, a new member
3633 function.
3634 (rust_language_data): Delete la_language_arch_info.
3635
3636 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3637
3638 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3639 initializer.
3640 * c-lang.c (c_language_data): Likewise.
3641 (cplus_language_data): Likewise.
3642 (cplus_language::pass_by_reference_info): New method.
3643 (asm_language_data): Delete la_pass_by_reference initializer.
3644 (minimal_language_data): Likewise.
3645 * cp-abi.c (cp_pass_by_reference): Remove use of
3646 default_pass_by_reference.
3647 * d-lang.c (d_language_data): Likewise.
3648 * f-lang.c (f_language_data): Likewise.
3649 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3650 default_pass_by_reference.
3651 * go-lang.c (go_language_data): Likewise.
3652 * language.c (language_pass_by_reference): Update.
3653 (default_pass_by_reference): Delete.
3654 (unknown_language_data): Delete la_pass_by_reference
3655 initializer.
3656 (auto_language_data): Likewise.
3657 * language.h (struct language_data): Delete la_pass_by_reference
3658 field.
3659 (language_defn::pass_by_reference_info): New member function.
3660 (default_pass_by_reference): Delete declaration.
3661 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3662 initializer.
3663 * objc-lang.c (objc_language_data): Likewise.
3664 * opencl-lang.c (opencl_language_data): Likewise.
3665 * p-lang.c (pascal_language_data): Likewise.
3666 * rust-lang.c (rust_language_data): Likewise.
3667
3668 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3669
3670 * ada-lang.c (ada_read_var_value): Delete function, move
3671 implementation to...
3672 (ada_language::read_var_value): ...here.
3673 (ada_language_data): Delete la_read_var_value initializer.
3674 * c-lang.c (c_language_data): Likewise.
3675 (cplus_language_data): Likewise.
3676 (minimal_language_data): Likewise.
3677 * d-lang.c (d_language_data): Likewise.
3678 * f-lang.c (f_language_data): Likewise.
3679 * findvar.c (default_read_var_value): Rename to...
3680 (language_defn::read_var_value): ...this.
3681 * findvar.c (read_var_value): Update header comment, and change to
3682 call member function instead of function pointer.
3683 * go-lang.c (go_language_data): Likewise.
3684 * language.c (unknown_language_data): Delete la_read_var_value
3685 initializer.
3686 (auto_language_data): Likewise.
3687 * language.h (struct language_data): Delete la_read_var_value
3688 field.
3689 (language_defn::read_var_value): New member function.
3690 (default_read_var_value): Delete declaration.
3691 * m2-lang.c (m2_language_data): Delete la_read_var_value
3692 initializer.
3693 * objc-lang.c (objc_language_data): Likewise.
3694 * opencl-lang.c (opencl_language_data): Likewise.
3695 * p-lang.c (pascal_language_data): Likewise.
3696 * rust-lang.c (rust_language_data): Likewise.
3697 * value.h (default_read_var_value): Delete declaration.
3698
3699 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3700
3701 * ada-lang.c (ada_print_array_index): Delete function, move
3702 implementation to...
3703 (ada_language::print_array_index): ...here.
3704 (ada_language_data): Delete la_print_array_index initializer.
3705 * c-lang.c (c_language_data): Likewise.
3706 (cplus_language_data): Likewise.
3707 (minimal_language_data): Likewise.
3708 * d-lang.c (d_language_data): Likewise.
3709 * f-lang.c (f_language_data): Likewise.
3710 * go-lang.c (go_language_data): Likewise.
3711 * language.c (default_print_array_index): Delete function, move
3712 implementation to...
3713 (language_defn::print_array_index): ...here.
3714 (unknown_language_data): Delete la_print_array_index initializer.
3715 (auto_language_data): Likewise.
3716 * language.h (struct language_data): Delete la_print_array_index
3717 field.
3718 (language_defn::print_array_index): New member function.
3719 (LA_PRINT_ARRAY_INDEX): Update.
3720 (default_print_array_index): Delete declaration.
3721 * m2-lang.c (m2_language_data): Delete la_print_array_index
3722 initializer.
3723 * objc-lang.c (objc_language_data): Likewise.
3724 * opencl-lang.c (opencl_language_data): Likewise.
3725 * p-lang.c (pascal_language_data): Likewise.
3726 * rust-lang.c (rust_language_data): Likewise.
3727
3728 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3729
3730 * gdb/ada-lang.c (ada_language_defn): Convert to...
3731 (ada_language_data): ...this.
3732 (class ada_language): New class.
3733 (ada_language_defn): New static global.
3734 * gdb/c-lang.c (c_language_defn): Convert to...
3735 (c_language_data): ...this.
3736 (class c_language): New class.
3737 (c_language_defn): New static global.
3738 (cplus_language_defn): Convert to...
3739 (cplus_language_data): ...this.
3740 (class cplus_language): New class.
3741 (cplus_language_defn): New static global.
3742 (asm_language_defn): Convert to...
3743 (asm_language_data): ...this.
3744 (class asm_language): New class.
3745 (asm_language_defn): New static global.
3746 (minimal_language_defn): Convert to...
3747 (minimal_language_data): ...this.
3748 (class minimal_language): New class.
3749 (minimal_language_defn): New static global.
3750 * gdb/d-lang.c (d_language_defn): Convert to...
3751 (d_language_data): ...this.
3752 (class d_language): New class.
3753 (d_language_defn): New static global.
3754 * gdb/f-lang.c (f_language_defn): Convert to...
3755 (f_language_data): ...this.
3756 (class f_language): New class.
3757 (f_language_defn): New static global.
3758 * gdb/go-lang.c (go_language_defn): Convert to...
3759 (go_language_data): ...this.
3760 (class go_language): New class.
3761 (go_language_defn): New static global.
3762 * gdb/language.c (unknown_language_defn): Remove declaration.
3763 (current_language): Initialize to nullptr, real initialization is
3764 moved to _initialize_language.
3765 (languages): Delete global.
3766 (language_defn::languages): Define.
3767 (set_language_command): Use language_defn::languages.
3768 (set_language): Likewise.
3769 (range_error): Likewise.
3770 (language_enum): Likewise.
3771 (language_def): Likewise.
3772 (add_set_language_command): Use language_def::languages for the
3773 language list, and language_def to lookup language pointers.
3774 (skip_language_trampoline): Use language_defn::languages.
3775 (unknown_language_defn): Convert to...
3776 (unknown_language_data): ...this.
3777 (class unknown_language): New class.
3778 (unknown_language_defn): New static global.
3779 (auto_language_defn): Convert to...
3780 (auto_language_data): ...this.
3781 (class auto_language): New class.
3782 (auto_language_defn): New static global.
3783 (language_gdbarch_post_init): Use language_defn::languages.
3784 (_initialize_language): Initialize current_language.
3785 * gdb/language.h (struct language_defn): Rename to...
3786 (struct language_data): ...this.
3787 (struct language_defn): New.
3788 (auto_language_defn): Delete.
3789 (unknown_language_defn): Delete.
3790 (minimal_language_defn): Delete.
3791 (ada_language_defn): Delete.
3792 (asm_language_defn): Delete.
3793 (c_language_defn): Delete.
3794 (cplus_language_defn): Delete.
3795 (d_language_defn): Delete.
3796 (f_language_defn): Delete.
3797 (go_language_defn): Delete.
3798 (m2_language_defn): Delete.
3799 (objc_language_defn): Delete.
3800 (opencl_language_defn): Delete.
3801 (pascal_language_defn): Delete.
3802 (rust_language_defn): Delete.
3803 * gdb/m2-lang.c (m2_language_defn): Convert to...
3804 (m2_language_data): ...this.
3805 (class m2_language): New class.
3806 (m2_language_defn): New static global.
3807 * gdb/objc-lang.c (objc_language_defn): Convert to...
3808 (objc_language_data): ...this.
3809 (class objc_language): New class.
3810 (objc_language_defn): New static global.
3811 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3812 (opencl_language_data): ...this.
3813 (class opencl_language): New class.
3814 (opencl_language_defn): New static global.
3815 * gdb/p-lang.c (pascal_language_defn): Convert to...
3816 (pascal_language_data): ...this.
3817 (class pascal_language): New class.
3818 (pascal_language_defn): New static global.
3819 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3820 language pointer, update comment format.
3821 * gdb/rust-lang.c (rust_language_defn): Convert to...
3822 (rust_language_data): ...this.
3823 (class rust_language): New class.
3824 (rust_language_defn): New static global.
3825
3826 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3827
3828 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3829 member variable.
3830 <m_stmt_at_address>: New member variable.
3831 (lnp_state_machine::record_line): Don't record some lines, update
3832 tracking of is_stmt at the same address.
3833 (lnp_state_machine::lnp_state_machine): Initialise new member
3834 variables.
3835
3836 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3837
3838 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3839 "-include gnu-nat-mig.h".
3840 * gnu-nat-mig.h: New file.
3841 * gnu-nat.c: Include "gnu-nat-mig.h".
3842 (exc_server, msg_reply_server, notify_server,
3843 process_reply_server): Remove declarations.
3844
3845 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3846
3847 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3848 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3849 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3850 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3851 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3852 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3853 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3854 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3855 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3856 to gnu_nat_target class.
3857 * gnu-nat.c: Likewise.
3858 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3859 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3860 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3861 object.
3862 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3863 instead of `gnu_target'.
3864
3865 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3866
3867 * i386-gnu-tdep.c: Include "gdbcore.h"
3868 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3869 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3870 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3871 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3872 i386_gnu_sigcontext_addr): New functions
3873 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3874 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3875 tdep.
3876
3877 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3878
3879 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3880 before fork_inferior call. Avoid calling it if target_is_pushed returns
3881 true.
3882
3883 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3884
3885 * gnu-nat.h (gnu_target): New variable declaration.
3886 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3887 gnu_target.
3888 * gnu-nat.c (gnu_target): New variable.
3889 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3890 add_thread_silent, and add_thread calls.
3891 (gnu_nat_target::create_inferior): Pass gnu_target to
3892 add_thread_silent, thread_change_ptid call.
3893 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3894 call.
3895
3896 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3897
3898 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3899 (gnu_nat_target::find_memory_regions): Remove unused
3900 `old_address' variable.
3901
3902 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3903
3904 * gnu-nat.c: Include "gdbarch.h".
3905
3906 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3907
3908 * reply_mig_hack.awk (Error return): Cast function through
3909 void *, to bypass compiler function call check.
3910
3911 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3912
3913 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3914 $(srcdir)/reply_mig_hack.awk.
3915
3916 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3917
3918 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3919
3920 2020-05-30 Jonny Grant <jg@jguk.org>
3921
3922 * configure.ac (ACX_BUGURL): change bug URL to https.
3923
3924 2020-05-30 Pedro Alves <palves@redhat.com>
3925
3926 * cp-support.c (replace_typedefs_template): New.
3927 (replace_typedefs_qualified_name): Handle
3928 DEMANGLE_COMPONENT_TEMPLATE.
3929
3930 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
3931
3932 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3933 dwarf2/index-cache.h, dwarf2/index-write.c,
3934 dwarf2/index-write.h, dwarf2/line-header.c,
3935 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3936 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3937 variables and fields from `dwarf2_per_objfile` to just
3938 `per_objfile` throughout.
3939
3940 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3941
3942 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3943 <push_dwarf_reg_entry_value>: Add comment.
3944
3945 2020-05-28 Kevin Buettner <kevinb@redhat.com>
3946 Keith Seitz <keiths@redhat.com>
3947
3948 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3949 instead of PyEval_ReleaseLock.
3950 (class gdbpy_gil): Move to earlier in file.
3951 (finalize_python): Set gdb_python_initialized.
3952 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3953 when not initialized.
3954
3955 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
3956
3957 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3958 <push_dwarf_reg_entry_value>: Remove assert. Override
3959 per_objfile with caller_per_objfile.
3960
3961 2020-05-28 Tom de Vries <tdevries@suse.de>
3962
3963 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3964 PR gold/15646 workaround to symbol kind "type".
3965
3966 2020-05-27 Tom Tromey <tromey@adacore.com>
3967
3968 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3969
3970 2020-05-27 Tom Tromey <tromey@adacore.com>
3971
3972 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3973 Use htab_find_with_hash.
3974 <add_abbrev>: Remove "abbrev_number" parameter.
3975 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3976 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3977 (hash_abbrev): Add comment.
3978 (abbrev_table::lookup_abbrev): Move to header file.
3979 (abbrev_table::read): Update.
3980
3981 2020-05-27 Tom Tromey <tromey@adacore.com>
3982
3983 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3984 method.
3985 <canonical_name>: New member.
3986 <raw_name>: Rename from "name".
3987 (partial_die_info): Initialize canonical_name.
3988 (scan_partial_symbols): Check raw_name.
3989 (partial_die_parent_scope, partial_die_full_name)
3990 (add_partial_symbol, add_partial_subprogram)
3991 (add_partial_enumeration, load_partial_dies): Use "name" method.
3992 (partial_die_info::name): New method.
3993 (partial_die_info::read, guess_partial_die_structure_name)
3994 (partial_die_info::fixup): Update.
3995
3996 2020-05-27 Tom Tromey <tromey@adacore.com>
3997
3998 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3999 <get_ref_die_offset>: Inline.
4000 <get_ref_die_offset_complaint>: New method.
4001 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
4002 (attribute::get_ref_die_offset_complaint): Rename from
4003 get_ref_die_offset. Just issue complaint.
4004
4005 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4006
4007 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
4008
4009 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4010
4011 * exec.c (exec_file_attach): Use errno value of first openp failure.
4012
4013 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4014
4015 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
4016 Don't close thread handle.
4017
4018 2020-05-27 Tom Tromey <tom@tromey.com>
4019 Simon Marchi <simon.marchi@efficios.com>
4020
4021 * objfiles.h (struct objfile) <partial_symtabs>: Now a
4022 shared_ptr.
4023 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
4024 member.
4025 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
4026 dwarf2_per_bfd_objfile_data_key>: New globals.
4027 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
4028 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
4029 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
4030 shared.
4031 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
4032 short-circuit when sharing.
4033 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
4034 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
4035
4036 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4037
4038 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
4039 to...
4040 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
4041 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
4042
4043 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4044
4045 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
4046 build_name_components, find_name_components_bounds>:
4047 Add per_objfile parameter.
4048 (struct mapped_index) <symbol_name_at>: Likewise.
4049 (struct mapped_debug_names): Remove constructor.
4050 <dwarf2_per_objfile>: Remove field.
4051 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
4052 (mapped_index_base::find_name_components_bounds,
4053 mapped_index_base::build_name_components,
4054 dw2_expand_symtabs_matching_symbol): Likewise.
4055 (class mock_mapped_index) <symbol_name_at>: Likewise.
4056 (check_match): Likewise.
4057 (check_find_bounds_finds): Likewise.
4058 (test_mapped_index_find_name_component_bounds): Update.
4059 (CHECK_MATCH): Update.
4060 (dw2_expand_symtabs_matching): Update.
4061 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
4062 per_objfile parameter.
4063 <find_vec_in_debug_names>: Likewise.
4064 <m_per_objfile>: New field.
4065 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
4066 parameter.
4067 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
4068 (dw2_debug_names_iterator::next): Update.
4069 (dw2_debug_names_lookup_symbol): Update.
4070 (dw2_debug_names_expand_symtabs_for_function): Update.
4071 (dw2_debug_names_map_matching_symbols): Update.
4072 (dw2_debug_names_expand_symtabs_matching): Update.
4073 (dwarf2_read_debug_names): Update.
4074
4075 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4076
4077 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
4078 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
4079 move to dwarf2_per_objfile.
4080 <read_in_chain>: Remove.
4081 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
4082 remove_all_cus, age_comp_units>: New methods.
4083 <m_dwarf2_cus>: New member.
4084 (struct dwarf2_per_cu_data) <cu>: Remove.
4085 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
4086 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
4087 moved to methods of dwarf2_per_objfile.
4088 (dwarf2_clear_marks): Remove.
4089 (dwarf2_queue_item::~dwarf2_queue_item): Update.
4090 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
4091 (dwarf2_per_bfd::free_cached_comp_units): Remove.
4092 (dwarf2_per_objfile::remove_all_cus): New.
4093 (class free_cached_comp_units) <~free_cached_comp_units>:
4094 Update.
4095 (load_cu): Update.
4096 (dw2_do_instantiate_symtab): Adjust.
4097 (fill_in_sig_entry_from_dwo_entry): Adjust.
4098 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4099 (cutu_reader::cutu_reader): Likewise.
4100 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
4101 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
4102 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
4103 and dwarf2_per_objfile::age_comp_units.
4104 (load_partial_comp_unit): Update.
4105 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
4106 (process_queue): Likewise.
4107 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
4108 backlink.
4109 (dwarf2_read_addr_index): Likewise.
4110 (follow_die_offset): Likewise.
4111 (dwarf2_fetch_die_loc_sect_off): Likewise.
4112 (dwarf2_fetch_constant_bytes): Likewise.
4113 (dwarf2_fetch_die_type_sect_off): Likewise.
4114 (follow_die_sig_1): Likewise.
4115 (load_full_type_unit): Likewise.
4116 (read_signatured_type): Likewise.
4117 (dwarf2_cu::dwarf2_cu): Don't set cu field.
4118 (dwarf2_cu::~dwarf2_cu): Remove.
4119 (dwarf2_per_objfile::get_cu): New.
4120 (dwarf2_per_objfile::set_cu): New.
4121 (age_cached_comp_units): Rename to...
4122 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
4123 to std::unordered_map.
4124 (free_one_cached_comp_unit): Rename to...
4125 (dwarf2_per_objfile::remove_cu): ... this. Adjust
4126 to std::unordered_map.
4127 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
4128 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
4129 a dwarf2_per_objfile in data.
4130 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
4131 (dwarf2_clear_marks): Remove.
4132
4133 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4134
4135 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
4136 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
4137 (init_tu_and_read_dwo_dies): Likewise.
4138 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
4139 (cutu_reader::cutu_reader): Likewise.
4140 (load_partial_comp_unit): Likewise.
4141 (process_psymtab_comp_unit): Update.
4142 (build_type_psymtabs_1): Update.
4143 (process_skeletonless_type_unit): Update.
4144 (load_full_comp_unit): Update.
4145 (find_partial_die): Update.
4146 (dwarf2_read_addr_index): Update.
4147 (read_signatured_type): Update.
4148
4149 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4150
4151 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
4152 m_header_read_in>: New fields.
4153 <get_header>: New method.
4154 * dwarf2/read.c (per_cu_header_read_in): Remove.
4155 (dwarf2_per_cu_data::get_header): New.
4156 (dwarf2_per_cu_data::addr_size): Update.
4157 (dwarf2_per_cu_data::offset_size): Update.
4158 (dwarf2_per_cu_data::ref_addr_size): Update.
4159
4160 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4161
4162 * dwarf2/read.c (load_cu): Return dwarf2_cu.
4163 (dw2_do_instantiate_symtab): Update.
4164 (queue_and_load_all_dwo_tus): Change parameter from
4165 dwarf2_per_cu_data to dwarf2_cu.
4166 (dwarf2_fetch_die_loc_sect_off): Update.
4167 (dwarf2_fetch_constant_bytes): Update.
4168 (dwarf2_fetch_die_type_sect_off): Update.
4169
4170 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4171
4172 * dwarf2/read.c (process_full_comp_unit,
4173 process_full_type_unit): Remove per_cu, per_objfile paramters.
4174 Add dwarf2_cu parameter.
4175 (process_queue): Update.
4176
4177 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4178
4179 * dwarf2/read.c (create_cu_from_index_list): Replace
4180 dwarf2_per_objfile parameter with dwarf2_per_bfd.
4181 (create_cus_from_index_list): Likewise.
4182 (create_cus_from_index): Likewise.
4183 (create_signatured_type_table_from_index): Likewise.
4184 (create_cus_from_debug_names_list): Likewise.
4185 (create_cus_from_debug_names): Likewise.
4186 (dwarf2_read_gdb_index): Update.
4187 (dwarf2_read_debug_names): Update.
4188
4189 2020-05-27 Tom Tromey <tom@tromey.com>
4190 Simon Marchi <simon.marchi@efficios.com>
4191
4192 * dwarf2/read.h (struct dwarf2_per_objfile)
4193 <get_type_for_signatured_type, set_type_for_signatured_type>:
4194 New methods.
4195 <m_type_map>: New member.
4196 (struct signatured_type) <type>: Remove.
4197 * dwarf2/read.c
4198 (dwarf2_per_objfile::get_type_for_signatured_type,
4199 dwarf2_per_objfile::set_type_for_signatured_type): New.
4200 (get_signatured_type): Use new methods.
4201
4202 2020-05-27 Tom Tromey <tom@tromey.com>
4203 Simon Marchi <simon.marchi@efficios.com>
4204
4205 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4206 (struct dwarf2_per_objfile) <type_units>: New member.
4207 <get_type_unit_group_unshareable>: New method.
4208 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4209 num_symtabs, symtabs>: Remove; move to
4210 type_unit_group_unshareable.
4211 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4212 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4213 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4214
4215 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4216
4217 * dwarf2/read.h (struct dwarf2_per_cu_data):
4218 <dwarf2_per_objfile>: Remove.
4219 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4220 dwarf2_per_objfile.
4221 (create_signatured_type_table_from_index): Likewise.
4222 (create_signatured_type_table_from_debug_names): Likewise.
4223 (create_debug_type_hash_table): Likewise.
4224 (fill_in_sig_entry_from_dwo_entry): Likewise.
4225 (create_type_unit_group): Likewise.
4226 (read_comp_units_from_section): Likewise.
4227 (create_cus_hash_table): Likewise.
4228
4229 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4230
4231 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4232 dwarf2_per_cu_data::dwarf2_per_objfile.
4233 (compute_compunit_symtab_includes): Likewise.
4234 (dwarf2_cu::start_symtab): Likewise.
4235
4236 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4237
4238 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4239 parameter.
4240 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4241 (read_namespace_alias): Update.
4242 (lookup_die_type): Update.
4243 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4244 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4245 Update.
4246 (disassemble_dwarf_expression): Update.
4247
4248 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4249
4250 * dwarf2/read.h (struct dwarf2_queue_item): Add
4251 dwarf2_per_objfile parameter, assign new parameter.
4252 <per_objfile>: New field.
4253 * dwarf2/read.c (free_one_cached_comp_unit): Add
4254 dwarf2_per_objfile parameter.
4255 (queue_comp_unit): Likewise.
4256 (dw2_do_instantiate_symtab): Update.
4257 (process_psymtab_comp_unit): Update.
4258 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4259 (process_imported_unit_die): Update.
4260 (queue_and_load_dwo_tu): Update.
4261 (follow_die_offset): Update.
4262 (follow_die_sig_1): Update.
4263
4264 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4265
4266 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4267 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4268 (read_call_site_scope): Assign per_objfile.
4269 (dwarf2_per_cu_data::objfile): Remove.
4270 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4271 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4272 dwarf2_per_objfile parameter.
4273 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4274 dwarf2_per_objfile parameter.
4275 (dwarf_expr_reg_to_entry_parameter): Add output
4276 dwarf2_per_objfile parameter.
4277 (locexpr_get_frame_base): Update.
4278 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4279 <push_dwarf_reg_entry_value>: Update.
4280 <call_site_to_target_addr>: Update.
4281 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4282 parameter.
4283 (value_of_dwarf_reg_entry): Update.
4284 (rw_pieced_value): Update.
4285 (indirect_synthetic_pointer): Update.
4286 (dwarf2_evaluate_property): Update.
4287 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4288 parameter.
4289 (locexpr_read_variable): Update.
4290 (locexpr_get_symbol_read_needs): Update.
4291 (loclist_read_variable): Update.
4292
4293 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4294
4295 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4296 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4297 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4298 parameter.
4299 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4300 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4301 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4302 parameter.
4303 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4304 sect_variable_value): Add dwarf2_per_objfile parameter.
4305 (class dwarf_evaluate_loc_desc) <dwarf_call,
4306 dwarf_variable_value>: Update.
4307 (fetch_const_value_from_synthetic_pointer): Add
4308 dwarf2_per_objfile parameter.
4309 (fetch_const_value_from_synthetic_pointer): Update.
4310 (coerced_pieced_ref): Update.
4311 (class symbol_needs_eval_context) <dwarf_call,
4312 dwarf_variable_value>: Update.
4313 (dwarf2_compile_expr_to_ax): Update.
4314
4315 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4316
4317 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4318 parameter.
4319 (dwarf2_evaluate_loc_desc_full): Update.
4320
4321 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4322
4323 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4324 parameter.
4325 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4326 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4327 dwarf2_per_objfile parameter.
4328 (decode_debug_loc_dwo_addresses): Likewise.
4329 (dwarf2_find_location_expression): Update.
4330 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4331 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4332 parameter.
4333 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4334 parameter.
4335 (locexpr_describe_location_1): Likewise.
4336 (locexpr_describe_location): Update.
4337
4338 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4339
4340 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4341 Remove.
4342 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4343 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4344 (dwarf2_compile_property_to_c): Update.
4345 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4346 use text offset from objfile.
4347 (locexpr_tracepoint_var_ref): Update.
4348 (locexpr_generate_c_location): Update.
4349 (loclist_describe_location): Update.
4350 (loclist_tracepoint_var_ref): Update.
4351 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4352 dwarf2_per_objfile parameter.
4353 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4354 use text offset from objfile.
4355 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4356
4357 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4358
4359 * dwarf2/expr.h (struct dwarf_expr_context)
4360 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4361 <offset>: Remove.
4362 <per_objfile>: New member.
4363 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4364 dwarf2_per_objfile parameter. Don't set offset, set
4365 per_objfile.
4366 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4367 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4368 a dwarf2_per_objfile object instead of an offset.
4369 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4370 constructor.
4371 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4372 to dwarf2_expr_executor constructor. Don't set offset.
4373 (dwarf2_fetch_cfa_info): Update.
4374 (struct dwarf2_frame_cache) <text_offset>: Remove.
4375 <per_objfile>: New field.
4376 (dwarf2_frame_cache): Update.
4377 (dwarf2_frame_prev_register): Update.
4378 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4379 <dwarf_evaluate_loc_desc>: Add constructor.
4380 (dwarf2_evaluate_loc_desc_full): Update.
4381 (dwarf2_locexpr_baton_eval): Update.
4382 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4383 Add constructor.
4384 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4385
4386 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4387
4388 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4389 addr_sized_int_type>: Move to dwarf2_cu.
4390 <int_type>: Move to dwarf2_per_objfile.
4391 (struct dwarf2_per_objfile) <int_type>: Move here.
4392 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4393 addr_sized_int_type>: Move here.
4394 (read_func_scope): Update.
4395 (read_array_type): Update.
4396 (read_tag_string_type): Update.
4397 (attr_to_dynamic_prop): Update.
4398 (dwarf2_per_cu_data::int_type): Rename to...
4399 (dwarf2_per_objfile::int_type): ... this.
4400 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4401 (dwarf2_cu::addr_sized_int_type): ... this.
4402 (read_subrange_type): Update.
4403 (dwarf2_per_cu_data::addr_type): Rename to...
4404 (dwarf2_cu::addr_type): ... this.
4405 (set_die_type): Update.
4406
4407 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4408
4409 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4410 data through per_cu->cu.
4411
4412 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4413
4414 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4415 dwarf2_per_cu_data parameter fo dwarf2_cu.
4416 (lookup_dwo_type_unit): Likewise.
4417 (read_cutu_die_from_dwo): Likewise.
4418 (lookup_dwo_unit): Likewise.
4419 (open_and_init_dwo_file): Likewise.
4420 (lookup_dwo_cutu): Likewise.
4421 (lookup_dwo_comp_unit): Likewise.
4422 (lookup_dwo_type_unit): Likewise.
4423 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4424 (cutu_reader::cutu_reader): Update.
4425
4426 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4427
4428 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4429 parameter.
4430 (process_full_type_unit): Likewise.
4431 (process_queue): Update.
4432
4433 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4434
4435 * dwarf2/read.c (recursively_compute_inclusions): Add
4436 dwarf2_per_objfile parameter.
4437 (compute_compunit_symtab_includes): Likewise.
4438 (process_cu_includes): Update.
4439
4440 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4441
4442 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4443 parameter.
4444 (create_type_unit_group): Update.
4445 (process_psymtab_comp_unit_reader): Update.
4446 (build_type_psymtabs_reader): Update.
4447
4448 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4449
4450 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4451 object through m_this_cu->cu.
4452
4453 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4454
4455 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4456 the info parameter.
4457 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4458
4459 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4460
4461 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4462 per_objfile parameter.
4463 (load_full_type_unit): Add per_objfile parameter.
4464 (read_signatured_type): Likewise.
4465 (load_full_comp_unit): Likewise.
4466 (load_cu): Likewise.
4467 (dw2_do_instantiate_symtab): Likewise.
4468 (dw2_get_file_names): Likewise.
4469 (dw2_map_symtabs_matching_filename): Update.
4470 (dw_expand_symtabs_matching_file_matcher): Update.
4471 (dw2_map_symbol_filenames): Update.
4472 (process_psymtab_comp_unit): Add per_objfile parameter.
4473 (build_type_psymtabs_1): Update.
4474 (process_skeletonless_type_unit): Update.
4475 (dwarf2_build_psymtabs_hard): Update.
4476 (load_partial_comp_unit): Add per_objfile parameter.
4477 (scan_partial_symbols): Update.
4478 (load_full_comp_unit): Add per_objfile parameter.
4479 (process_imported_unit_die): Update.
4480 (create_cus_hash_table): Update.
4481 (find_partial_die): Update.
4482 (dwarf2_read_addr_index): Update.
4483 (follow_die_offset): Update.
4484 (dwarf2_fetch_die_loc_sect_off): Update.
4485 (dwarf2_fetch_constant_bytes): Update.
4486 (dwarf2_fetch_die_type_sect_off): Update.
4487 (follow_die_sig_1): Update.
4488 (load_full_type_unit): Add per_objfile parameter.
4489 (read_signatured_type): Likewise.
4490
4491 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4492
4493 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4494 of objfile_name.
4495
4496 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4497
4498 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4499 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4500 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4501 field.
4502 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4503 (create_cus_from_index): Update.
4504 (dwarf2_read_gdb_index): Update.
4505 (create_cus_from_debug_names): Update.
4506 (dwarf2_read_debug_names): Update.
4507 (get_abbrev_section_for_cu): Update.
4508 (create_all_comp_units): Update.
4509 (read_attribute_value): Update.
4510 (get_debug_line_section): Update.
4511 * dwarf2/index-cache.c (index_cache::store): Update.
4512 * dwarf2/index-write.c (save_gdb_index_command): Update.
4513 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4514
4515 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4516
4517 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4518 member.
4519 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4520 dwarf2_per_cu_data::per_bfd.
4521 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4522 (create_type_unit_group): Likewise.
4523 (queue_comp_unit): Remove reference to
4524 per_cu->dwarf2_per_objfile.
4525 (maybe_queue_comp_unit): Likewise.
4526 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4527 (create_cus_hash_table): Assign new field.
4528
4529 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4530
4531 * dwarf2/read.c: Replace
4532 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4533 dwarf2_cu->per_objfile throughout.
4534
4535 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4536
4537 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4538 parameter, don't use per_cu->dwarf2_per_objfile.
4539 (dw2_instantiate_symtab): Likewise.
4540 (dw2_find_last_source_symtab): Update.
4541 (dw2_map_expand_apply): Update.
4542 (dw2_lookup_symbol): Update.
4543 (dw2_expand_symtabs_for_function): Update.
4544 (dw2_expand_all_symtabs): Update.
4545 (dw2_expand_symtabs_with_fullname): Update.
4546 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4547 don't use per_cu->dwarf2_per_objfile.
4548 (dw2_expand_marked_cus): Update.
4549 (dw2_find_pc_sect_compunit_symtab): Update.
4550 (dw2_debug_names_lookup_symbol): Update.
4551 (dw2_debug_names_expand_symtabs_for_function): Update.
4552 (dw2_debug_names_map_matching_symbols): Update.
4553 (dwarf2_psymtab::expand_psymtab): Update.
4554
4555 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4556
4557 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4558 <per_objfile>: New member.
4559 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4560 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4561 call to dwarf2_cu.
4562 (cutu_reader::cutu_reader): Update.
4563 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4564
4565 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4566
4567 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4568 struct dwarf2_per_objfile.
4569 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4570 dwarf2_per_bfd.
4571 * dwarf2/read.c (set_die_type): Update.
4572 (get_die_type_at_offset): Update.
4573
4574 2020-05-27 Tom Tromey <tom@tromey.com>
4575 Simon Marchi <simon.marchi@efficios.com>
4576
4577 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4578 method.
4579 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4580 get_symtab, set_symtab>: New methods.
4581 <m_symtabs>: New field.
4582 (struct dwarf2_psymtab): Derive from partial_symtab.
4583 <readin_p, get_compunit_symtab>: Declare methods.
4584 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4585 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4586 New methods.
4587 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4588 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4589 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4590 (dw2_symtab_iter_next, dw2_print_stats)
4591 (dw2_expand_symtabs_with_fullname)
4592 (dw2_expand_symtabs_matching_one)
4593 (dw_expand_symtabs_matching_file_matcher)
4594 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4595 (dw2_debug_names_iterator::next)
4596 (dw2_debug_names_map_matching_symbols)
4597 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4598 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4599 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4600 New methods.
4601 (get_compunit_symtab, process_full_comp_unit)
4602 (process_full_type_unit): Update.
4603 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4604
4605 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4606
4607 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4608 then introduce a new dwarf2_per_objfile type.
4609 <read_line_string>: Move to the new dwarf2_per_objfile type.
4610 <objfile>: Likewise.
4611 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4612 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4613 dwarf2_per_objfile->per_bfd.
4614 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4615 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4616 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4617 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4618 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4619 (dwarf2_per_objfile::locate_sections): Rename to...
4620 (dwarf2_per_bfd::locate_sections): ... this.
4621 (dwarf2_per_objfile::get_cutu): Rename to...
4622 (dwarf2_per_bfd::get_cutu): ... this.
4623 (dwarf2_per_objfile::get_cu): Rename to...
4624 (dwarf2_per_bfd::get_cu): ... this.
4625 (dwarf2_per_objfile::get_tu): Rename to...
4626 (dwarf2_per_bfd::get_tu): ... this.
4627 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4628 (dwarf2_per_bfd::allocate_per_cu): ... this.
4629 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4630 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4631 (get_gdb_index_contents_ftype): Change parameter from
4632 dwarf2_per_objfile to dwarf2_per_bfd.
4633 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4634 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4635
4636 2020-05-27 Tom Tromey <tom@tromey.com>
4637 Simon Marchi <simon.marchi@efficios.com>
4638
4639 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4640 (allocate_piece_closure): Set "per_objfile" member.
4641 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4642 (locexpr_describe_location, loclist_describe_location): Use new
4643 member.
4644 * dwarf2/read.c (read_call_site_scope)
4645 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4646 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4647 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4648 handle_data_member_location): Set per_objfile member.
4649 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4650 member.
4651 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4652
4653 2020-05-27 Tom Tromey <tom@tromey.com>
4654
4655 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4656 allocate_signatured_type>: Declare new methods.
4657 <m_num_psymtabs>: New member.
4658 (struct dwarf2_per_cu_data) <index>: New member.
4659 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4660 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4661 (create_cu_from_index_list): Use allocate_per_cu.
4662 (create_signatured_type_table_from_index)
4663 (create_signatured_type_table_from_debug_names)
4664 (create_debug_type_hash_table, add_type_unit)
4665 (read_comp_units_from_section): Use allocate_signatured_type.
4666
4667 2020-05-27 Tom Tromey <tom@tromey.com>
4668
4669 * psymtab.c (partial_map_expand_apply)
4670 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4671 (psym_lookup_global_symbol_language)
4672 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4673 (psym_print_stats, psym_expand_symtabs_for_function)
4674 (psym_map_symbol_filenames, psym_map_matching_symbols)
4675 (psym_expand_symtabs_matching)
4676 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4677 (maintenance_check_psymtabs): Update.
4678 * psympriv.h (struct partial_symtab) <readin_p,
4679 get_compunit_symtab>: Add objfile parameter.
4680 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4681 Likewise.
4682 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4683 get_compunit_symtab>: Likewise.
4684 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4685
4686 2020-05-27 Tom Tromey <tom@tromey.com>
4687
4688 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4689 member.
4690 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4691 (create_cu_from_index_list)
4692 (create_signatured_type_table_from_index)
4693 (create_signatured_type_table_from_debug_names)
4694 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4695 (dwarf2_create_include_psymtab)
4696 (create_debug_type_hash_table, add_type_unit)
4697 (create_type_unit_group, read_comp_units_from_section)
4698 (dwarf2_compute_name, create_cus_hash_table)
4699 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4700 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4701 obstack.
4702 (dw2_get_real_path): Likewise. Change argument to
4703 dwarf2_per_objfile.
4704
4705 2020-05-27 Luis Machado <luis.machado@linaro.org>
4706
4707 PR tdep/26000
4708 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4709 for ldrd (immediate).
4710
4711 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4712
4713 * command.h: Add comment giving the name of class_tui.
4714 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4715 create the fake command for the help for class_tui.
4716
4717 2020-05-26 Tom Tromey <tromey@adacore.com>
4718
4719 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4720 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4721 (val_atr): New function.
4722 (value_val_atr): Use it.
4723 * ada-valprint.c (print_optional_low_bound): Change low bound
4724 handling for enums.
4725 (val_print_packed_array_elements): Don't call discrete_position.
4726 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4727 discrete_position for enum types.
4728 * language.c (default_print_array_index): Change type.
4729 * language.h (struct language_defn) <la_print_array_index>: Add
4730 index_type parameter, change type of index_value.
4731 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4732 (default_print_array_index): Update.
4733 * valprint.c (maybe_print_array_index): Don't call
4734 value_from_longest. Update.
4735 (value_print_array_elements): Don't call discrete_position.
4736
4737 2020-05-26 Tom Tromey <tromey@adacore.com>
4738
4739 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4740 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4741
4742 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4743
4744 PR gdb/13519
4745 * avr-tdep.c (avr_integer_to_address): Return data or code
4746 address accordingly to the second 'type' argument of the
4747 function.
4748
4749 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4750
4751 * infcmd.c, inferior.h: (construct_inferior_arguments):
4752 Moved function from here to gdbsupport/common-inferior.{h,cc}
4753
4754 2020-05-23 Tom Tromey <tom@tromey.com>
4755
4756 Revert commit eca1f90c:
4757 * NEWS: Remove entry for completion styling.
4758 * completer.c (_rl_completion_prefix_display_length): Move
4759 declaration later.
4760 (gdb_fnprint): Revert.
4761 (gdb_display_match_list_1): Likewise.
4762 * cli/cli-style.c (completion_prefix_style)
4763 (completion_difference_style, completion_suffix_style): Remove.
4764 (_initialize_cli_style): Revert.
4765 * cli/cli-style.h (completion_prefix_style)
4766 (completion_difference_style, completion_suffix_style): Don't
4767 declare.
4768
4769 2020-05-24 Pedro Alves <palves@redhat.com>
4770
4771 * symtab.c (completion_list_add_name): Return boolean indication
4772 of whether the symbol matched.
4773 (completion_list_add_symbol): Don't try to remove C++ aliases if
4774 the symbol didn't match in the first place.
4775 * symtab.h (completion_list_add_name): Return bool.
4776
4777 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4778
4779 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4780 type::field.
4781
4782 2020-05-23 Joel Brobecker <brobecker@adacore.com>
4783
4784 GDB 9.2 released.
4785
4786 2020-05-23 Tom Tromey <tom@tromey.com>
4787
4788 * NEWS: Add entry for completion styling.
4789 * completer.c (_rl_completion_prefix_display_length): Move
4790 declaration earlier.
4791 (gdb_fnprint): Use completion_style.
4792 (gdb_display_match_list_1): Likewise.
4793 * cli/cli-style.c (completion_prefix_style)
4794 (completion_difference_style, completion_suffix_style): New
4795 globals.
4796 (_initialize_cli_style): Register new globals.
4797 * cli/cli-style.h (completion_prefix_style)
4798 (completion_difference_style, completion_suffix_style): Declare.
4799
4800 2020-05-23 Pedro Alves <palves@redhat.com>
4801
4802 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4803 (parse_escape): Use ISDIGIT instead of isdigit.
4804 (puts_debug): Use gdb_isprint instead of isprint.
4805 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4806 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4807 ISSPACE instead of isspace.
4808 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4809 instead of isspace.
4810 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4811 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4812 instead of isxdigit and ISDIGIT instead of isdigit.
4813
4814 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4815
4816 * gdbtypes.h (struct type) <field>: New method.
4817 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4818 or type::field.
4819
4820 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4821
4822 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4823 (TYPE_FIELDS): Use type::fields. Change all call sites that
4824 modify the propery to use type::set_fields instead.
4825
4826 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4827
4828 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4829 type::num_fields instead.
4830
4831 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4832
4833 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4834 methods.
4835 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4836 that modify the number of fields to use type::set_num_fields
4837 instead.
4838
4839 2020-05-22 Tom Tromey <tromey@adacore.com>
4840
4841 * compile/compile-object-load.h (munmap_list_free): Don't
4842 declare.
4843
4844 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4845
4846 * annotate.c (annotate_source_line): Update return type, add call
4847 to update current symtab and line.
4848 * annotate.h (annotate_source_line): Update return type, and
4849 extend header comment.
4850 * source.c (info_line_command): Check annotation_level before
4851 calling annotate_source_line.
4852 * stack.c (print_frame_info): If calling annotate_source_line
4853 returns true, then don't print any other source line information.
4854
4855 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4856
4857 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4858
4859 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4860
4861 * coffread.c (patch_type): Remove NULL check before xfree.
4862 * corefile.c (set_gnutarget): Likewise.
4863 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4864 * exec.c (build_section_table): Likewise.
4865 * remote.c (remote_target::pass_signals): Likewise.
4866 * utils.c (n_spaces): Likewise.
4867 * cli/cli-script.c (document_command): Likewise.
4868 * i386-windows-tdep.c (core_process_module_section): Likewise.
4869 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4870
4871 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
4872
4873 * symfile.c (reread_symbols): Clear objfile's section_offsets
4874 vector and section indices, re-compute them by calling
4875 sym_offsets.
4876
4877 2020-05-20 Tom Tromey <tromey@adacore.com>
4878
4879 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
4880 (desc_one_bound, desc_index_type): Compute field name.
4881
4882 2020-05-20 Tom de Vries <tdevries@suse.de>
4883
4884 PR symtab/25833
4885 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4886
4887 2020-05-20 Alan Modra <amodra@gmail.com>
4888
4889 PR 25993
4890 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4891 bfd_set_filename.
4892 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4893 passed to bfd_set_filename.
4894 * symfile-mem.c (add_vsyscall_page): Likewise for string
4895 passed to symbol_file_add_from_memory.
4896 (symbol_file_add_from_memory): Make name param a const char* and
4897 don't strdup.
4898
4899 2020-05-20 Alan Modra <amodra@gmail.com>
4900
4901 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4902 rather than accessing bfd->filename directly.
4903 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4904 and use bfd_section_name.
4905 * dwarf2/frame.c (decode_frame_entry): Likewise.
4906 * exec.c (exec_set_section_address): Likewise.
4907 * solib-aix.c (solib_aix_bfd_open): Likewise.
4908 * stap-probe.c (get_stap_base_address): Likewise.
4909 * symfile.c (reread_symbols): Likewise.
4910
4911 2020-05-19 Tom Tromey <tromey@adacore.com>
4912
4913 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4914
4915 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4916
4917 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4918
4919 2020-05-19 Pedro Alves <palves@redhat.com>
4920
4921 * NEWS (set exec-file-mismatch): Adjust entry.
4922 * exec.c: Include "build-id.h".
4923 (validate_exec_file): Try to match build IDs instead of filenames.
4924 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4925 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4926 and pass down 'warn_if_slow'.
4927 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4928 gdb_bfd_open_closure to pass it down.
4929 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4930
4931 2020-05-19 Pedro Alves <palves@redhat.com>
4932
4933 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4934 * target.c (target_fileio_open_1): Rename to target_fileio_open
4935 and make extern. Use bool.
4936 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4937 (target_fileio_read_alloc_1): Adjust.
4938 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4939 (target_fileio_open_warn_if_slow): Delete declaration.
4940
4941 2020-05-19 Pedro Alves <palves@redhat.com>
4942
4943 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4944 Adjust all callers.
4945
4946 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4947
4948 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4949 whether disp is negative.
4950
4951 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4952
4953 * symfile.h (struct symfile_segment_data)
4954 <~symfile_segment_data>: Remove.
4955 <segment_info>: Change to std::vector.
4956 * symfile.c (default_symfile_segments): Update.
4957 * elfread.c (elf_symfile_segments): Update.
4958
4959 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4960
4961 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4962 <segments>: New.
4963 <segment_bases, segment_sizes>: Remove.
4964 * symfile.c (default_symfile_segments): Update.
4965 * elfread.c (elf_symfile_segments): Update.
4966 * remote.c (remote_target::get_offsets): Update.
4967 * solib-target.c (solib_target_relocate_section_addresses):
4968 Update.
4969
4970 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4971
4972 * symfile.h (struct symfile_segment_data): Initialize fields.
4973 <~symfile_segment_data>: Add.
4974 (symfile_segment_data_up): New.
4975 (struct sym_fns) <sym_segments>: Return a
4976 symfile_segment_data_up.
4977 (default_symfile_segments): Return a symfile_segment_data_up.
4978 (free_symfile_segment_data): Remove.
4979 (get_symfile_segment_data): Return a symfile_segment_data_up.
4980 * symfile.c (default_symfile_segments): Likewise.
4981 (get_symfile_segment_data): Likewise.
4982 (free_symfile_segment_data): Remove.
4983 (symfile_find_segment_sections): Update.
4984 * elfread.c (elf_symfile_segments): Return a
4985 symfile_segment_data_up.
4986 * remote.c (remote_target::get_offsets): Update.
4987 * solib-target.c (solib_target_relocate_section_addresses):
4988 Update.
4989 * symfile-debug.c (debug_sym_segments): Return a
4990 symfile_segment_data_up.
4991
4992 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4993
4994 PR build/25981
4995 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4996 Hardcode register numbers.
4997
4998 PR build/25981
4999 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
5000 procfs_find_LDT_entry): Remove.
5001 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
5002 procfs_find_LDT_entry): Remove.
5003 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
5004 Remove.
5005
5006 2020-05-17 Pedro Alves <palves@redhat.com>
5007 Andrew Burgess <andrew.burgess@embecosm.com>
5008 Keno Fischer <keno@juliacomputing.com>
5009
5010 PR gdb/25741
5011 * breakpoint.c (build_target_condition_list): Update comments.
5012 (build_target_command_list): Update comments and skip matching
5013 locations.
5014 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
5015 a separate function. Simplify "set breakpoint auto-hw off"
5016 handling.
5017 (insert_breakpoints): Update comment.
5018 (tracepoint_locations_match): New parameter. For breakpoints,
5019 compare location types too, if the caller wants to.
5020 (handle_automatic_hardware_breakpoints): New functions.
5021 (bp_location_is_less_than): Also sort by location type and
5022 hardware breakpoint length.
5023 (update_global_location_list): Handle "set breakpoint auto-hw on"
5024 here.
5025 (update_breakpoint_locations): Ask breakpoint_locations_match to
5026 ignore location types.
5027
5028 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5029
5030 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
5031 type::name instead.
5032
5033 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5034
5035 * gdbtypes.h (struct type) <name, set_name>: New methods.
5036 (TYPE_CODE): Use type::name. Change all call sites used to set
5037 the name to use type::set_name instead.
5038
5039 2020-05-16 Tom Tromey <tom@tromey.com>
5040
5041 * top.c (quit_force): Update.
5042 * infrun.c (handle_no_resumed): Update.
5043 * top.h (all_uis): New function.
5044 (ALL_UIS): Remove.
5045
5046 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5047
5048 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
5049
5050 2020-05-16 Pedro Alves <palves@redhat.com>
5051
5052 * ia64-linux-nat.c
5053 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
5054 Declare method.
5055 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
5056
5057 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
5058
5059 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
5060 (sparc64_adi_info): Likewise.
5061
5062 2020-05-15 Tom Tromey <tom@tromey.com>
5063
5064 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
5065 block_objfile.
5066 (lookup_objfile_from_block): Remove.
5067 (lookup_symbol_in_block, lookup_symbol_in_static_block)
5068 (lookup_global_symbol): Use block_objfile.
5069 * symtab.h (lookup_objfile_from_block): Don't declare.
5070 * printcmd.c (clear_dangling_display_expressions): Use
5071 block_objfile.
5072 * parse.c (operator_check_standard): Use block_objfile.
5073
5074 2020-05-15 Tom Tromey <tom@tromey.com>
5075
5076 * language.c (language_alloc_type_symbol): Set
5077 SYMBOL_SECTION.
5078 * symtab.c (initialize_objfile_symbol): Remove.
5079 (allocate_symbol): Remove.
5080 (allocate_template_symbol): Remove.
5081 * dwarf2/read.c (fixup_go_packaging): Use "new".
5082 (new_symbol): Use "new".
5083 (read_variable): Don't call initialize_objfile_symbol. Use
5084 "new".
5085 (read_func_scope): Use "new".
5086 * xcoffread.c (process_xcoff_symbol): Don't call
5087 initialize_objfile_symbol.
5088 (SYMBOL_DUP): Remove.
5089 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
5090 "new".
5091 * symtab.h (allocate_symbol, initialize_objfile_symbol)
5092 (allocate_template_symbol): Don't declare.
5093 (struct symbol): Add copy constructor. Change defaults.
5094 * jit.c (finalize_symtab): Use "new".
5095 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
5096 Use "new".
5097 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5098 (common_block_end): Use "new".
5099 * mdebugread.c (parse_symbol): Use "new".
5100 (new_symbol): Likewise.
5101
5102 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5103
5104 * NEWS: Mention changes to help and apropos.
5105
5106 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5107
5108 * command.h (enum command_class): Improve comments, document
5109 that class_alias is for user-defined aliases, give the class
5110 name for each class, remove unused class_xdb.
5111 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
5112 * breakpoint.c (_initialize_breakpoint): Replace class_alias
5113 by a precise class.
5114 * infcmd.c (_initialize_infcmd): Likewise.
5115 * reverse.c (_initialize_reverse): Likewise.
5116 * stack.c (_initialize_stack): Likewise.
5117 * symfile.c (_initialize_symfile): Likewise.
5118 * tracepoint.c (_initialize_tracepoint): Likewise.
5119
5120 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5121
5122 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
5123 when their aliased command is traversed.
5124 (help_cmd): Add fput_command_names_styled call to
5125 output command name and aliases when command has an alias.
5126
5127 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5128
5129 * cli/cli-decode.h (help_cmd_list): Remove declaration.
5130 * cli/cli-decode.c (help_cmd_list): Declare as static,
5131 remove prefix argument, use bool for recurse arg, rework to show the aliases of
5132 a command together with the command.
5133 (fput_command_name_styled, fput_command_names_styled): New functions.
5134 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
5135 fput_command_name_styled.
5136 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
5137 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
5138
5139 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5140
5141 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
5142 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
5143 * command.h (cmd_show_list): Likewise.
5144 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
5145 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
5146
5147 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5148
5149 * unittests/command-def-selftests.c (traverse_command_structure):
5150 Verify all commands of a list have the same prefix command and
5151 that only the top cmdlist commands have a null prefix.
5152
5153 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5154
5155 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
5156 as prefix, not one of its aliases.
5157 (set_cmd_prefix): Remove.
5158 (do_add_cmd): Centralize the setting of the prefix of a command, when
5159 command is defined after its full chain of prefix commands.
5160 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
5161 (add_setshow_cmd_full): Likewise.
5162 (update_prefix_field_of_prefixed_commands): New function.
5163 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
5164 update_prefix_field_of_prefixed_commands.
5165 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
5166 addresses of remote_set_cmdlist and remote_show_cmdlist given
5167 as argument, not the address of an argument.
5168 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5169 * gdb/remote.c (_initialize_remote): Likewise.
5170
5171 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5172
5173 * cli/cli-cmds.c (alias_command): Check for an existing alias
5174 using lookup_cmd_composition, as valid_command_p is too strict
5175 and forbids aliases that are the prefix of an existing alias
5176 or command.
5177 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5178 command is properly recognised as a valid command.
5179
5180 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5181
5182 * unittests/help-doc-selftests.c: Rename to
5183 unittests/command-def-selftests.c
5184 * unittests/command-def-selftests.c (help_doc_tests): Update some
5185 comments.
5186 (command_structure_tests, traverse_command_structure): New namespace
5187 and function.
5188 (command_structure_invariants_tests): New function.
5189 (_initialize_command_def_selftests) Renamed from
5190 _initialize_help_doc_selftests, register command_structure_invariants
5191 selftest.
5192
5193 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5194
5195 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5196 an alias of 'show'.
5197
5198 2020-05-15 Joel Brobecker <brobecker@adacore.com>
5199
5200 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5201 ada_is_fixed_point_type. Update all callers.
5202 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5203 all callers.
5204 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5205 Update all callers.
5206 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5207 print_fixed_point_type. Update all callers.
5208 * ada-valprint.c (ada_value_print_num): Replace call to
5209 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5210
5211 2020-05-14 Kevin Buettner <kevinb@redhat.com>
5212
5213 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5214 processors.
5215 (cpu_supports_bts): Add CV_AMD case.
5216
5217 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5218 Simon Marchi <simon.marchi@efficios.com>
5219
5220 * infrun.c (stop_all_threads): Collect multiple wait events at
5221 each pass.
5222
5223 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5224
5225 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5226 type::code instead.
5227
5228 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5229
5230 * gdbtypes.h (struct type) <code, set_code>: New methods.
5231 (TYPE_CODE): Use type::code. Change all call sites used to set
5232 the code to use type::set_code instead.
5233
5234 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5235 Tom de Vries <tdevries@suse.de>
5236 Pedro Alves <palves@redhat.com>
5237
5238 PR threads/25478
5239 * infrun.c (stop_all_threads): Do NOT ignore
5240 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5241 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5242 received.
5243 (handle_no_resumed): Remove code handling a live inferior with no
5244 threads.
5245 * remote.c (has_single_non_exited_thread): New.
5246 (remote_target::update_thread_list): Do not delete a thread if is
5247 the last thread of the process.
5248 * thread.c (thread_select): Call delete_exited_threads instead of
5249 prune_threads.
5250
5251 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5252
5253 * infrun.c (stop_all_threads): Enable/disable thread events of all
5254 targets. Move a debug message denoting the end of the function
5255 into the SCOPED_EXIT block.
5256
5257 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5258
5259 * process-stratum-target.h: Include <set>.
5260 (all_non_exited_process_targets, switch_to_target_no_thread): New
5261 function declarations.
5262 * process-stratum-target.c (all_non_exited_process_targets)
5263 (switch_to_target_no_thread): New function implementations.
5264
5265 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5266
5267 * infrun.c (handle_inferior_event): Extract out a piece of code
5268 into...
5269 (mark_non_executing_threads): ...this new function.
5270
5271 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5272
5273 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5274 use.
5275
5276 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5277
5278 * regcache.c (regcache_read_pc_protected): New function
5279 implementation that returns 0 if the PC cannot read via
5280 'regcache_read_pc'.
5281 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5282 instead of 'regcache_read_pc'.
5283 (keep_going_pass_signal): Ditto.
5284
5285 2020-05-13 Tom Tromey <tromey@adacore.com>
5286
5287 * ada-lang.c (align_value): Remove.
5288 (ada_template_to_fixed_record_type_1): Use align_up.
5289
5290 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5291
5292 * async-event.c: Update the copyright year.
5293 * async-event.h: Update the copyright year.
5294
5295 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
5296
5297 * objfiles.h (is_addr_in_objfile,
5298 shared_objfile_contains_address_p): Return bool.
5299 * objfile.c (is_addr_in_objfile,
5300 shared_objfile_contains_address_p): Return bool.
5301
5302 2020-05-11 Tom Tromey <tromey@adacore.com>
5303
5304 * cli/cli-cmds.c (info_command): Restore.
5305 (_initialize_cli_cmds): Use add_prefix_command for "info".
5306 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5307
5308 2020-05-11 Tom Tromey <tromey@adacore.com>
5309
5310 * ada-lang.c (ada_value_primitive_field): Now public.
5311 * ada-lang.h (ada_value_primitive_field): Declare.
5312 * ada-valprint.c (print_field_values): Use
5313 ada_value_primitive_field for wrapper fields.
5314
5315 2020-05-11 Tom de Vries <tdevries@suse.de>
5316
5317 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5318 MODULE_DOMAIN.
5319
5320 2020-05-11 Tom de Vries <tdevries@suse.de>
5321
5322 PR symtab/25941
5323 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5324 with length 0, if not gdb-produced.
5325 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5326
5327 2020-05-09 Tom de Vries <tdevries@suse.de>
5328
5329 PR gdb/25955
5330 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5331 calculation.
5332
5333 2020-05-09 Tom Tromey <tom@tromey.com>
5334
5335 * top.c (server_command): Now bool.
5336 * top.h (server_command): Now bool.
5337
5338 2020-05-08 Tom Tromey <tromey@adacore.com>
5339
5340 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5341 already being processed.
5342
5343 2020-05-08 Tom Tromey <tom@tromey.com>
5344
5345 * printcmd.c (struct display) <next>: Remove.
5346 <display>: New constructor.
5347 <exp_string>: Now a std::string.
5348 <enabled_p>: Now a bool.
5349 (display_number): Move definition earlier.
5350 (displays): Rename from display_chain. Now a std::vector.
5351 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5352 (display_command): Update.
5353 (do_one_display, disable_display)
5354 (enable_disable_display_command, do_enable_disable_display):
5355 Update.
5356 (free_display): Remove.
5357 (clear_displays): Rewrite.
5358 (delete_display): Update.
5359 (map_display_numbers): Use function_view. Remove "data"
5360 parameter. Update.
5361 (do_delete_display): Remove.
5362 (undisplay_command): Update.
5363 (do_one_display, do_displays, disable_display)
5364 (info_display_command): Update.
5365 (do_enable_disable_display): Remove.
5366 (enable_disable_display_command)
5367 (clear_dangling_display_expressions): Update.
5368
5369 2020-05-08 Tom Tromey <tom@tromey.com>
5370
5371 * symtab.c (set_symbol_cache_size)
5372 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5373 (maintenance_print_symbol_cache_statistics): Update.
5374 * symmisc.c (print_symbol_bcache_statistics)
5375 (print_objfile_statistics, maintenance_print_objfiles)
5376 (maintenance_info_symtabs, maintenance_check_symtabs)
5377 (maintenance_expand_symtabs, maintenance_info_line_tables):
5378 Update.
5379 * symfile-debug.c (set_debug_symfile): Update.
5380 * source.c (forget_cached_source_info): Update.
5381 * python/python.c (gdbpy_progspaces): Update.
5382 * psymtab.c (maintenance_info_psymtabs): Update.
5383 * probe.c (parse_probes): Update.
5384 * linespec.c (iterate_over_all_matching_symtabs)
5385 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5386 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5387 * exec.c (exec_target::close): Update.
5388 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5389 * breakpoint.c (print_one_breakpoint_location)
5390 (create_longjmp_master_breakpoint)
5391 (create_std_terminate_master_breakpoint): Update.
5392 * progspace.c (program_spaces): Now a std::vector.
5393 (maybe_new_address_space): Update.
5394 (add_program_space): Remove.
5395 (program_space::program_space): Update.
5396 (remove_program_space): Update.
5397 (number_of_program_spaces): Remove.
5398 (print_program_space, update_address_spaces): Update.
5399 * progspace.h (program_spaces): Change type.
5400 (ALL_PSPACES): Remove.
5401 (number_of_program_spaces): Don't declare.
5402 (struct program_space) <next>: Remove.
5403
5404 2020-05-08 Tom Tromey <tom@tromey.com>
5405
5406 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5407 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5408 (enable_break): Update.
5409 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5410 (frv_fdpic_find_canonical_descriptor): Update.
5411 (frv_fetch_objfile_link_map): Update.
5412 * progspace.c (program_space::free_all_objfiles): Update.
5413 (program_space::solibs): New method.
5414 * progspace.h (struct program_space) <solibs>: New method.
5415 * solist.h (master_so_list): Don't declare.
5416 (ALL_SO_LIBS): Remove.
5417 * solib.h (so_list_head): Remove.
5418 (update_solib_list): Update comment.
5419 * solib.c (master_so_list): Remove.
5420 (solib_used, update_solib_list, solib_add)
5421 (info_sharedlibrary_command, clear_solib)
5422 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5423
5424 2020-05-08 Tom Tromey <tom@tromey.com>
5425
5426 * extension.c (extension_languages): Now a std::array.
5427 (ALL_EXTENSION_LANGUAGES): Remove.
5428 (get_ext_lang_defn, get_ext_lang_of_file)
5429 (eval_ext_lang_from_control_command): Update.
5430 (finish_ext_lang_initialization)
5431 (auto_load_ext_lang_scripts_for_objfile)
5432 (ext_lang_type_printers::ext_lang_type_printers)
5433 (apply_ext_lang_type_printers)
5434 (ext_lang_type_printers::~ext_lang_type_printers)
5435 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5436 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5437 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5438 (get_matching_xmethod_workers, ext_lang_colorize)
5439 (ext_lang_before_prompt): Update.
5440 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5441
5442 2020-05-08 Tom Tromey <tom@tromey.com>
5443
5444 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5445 overload.
5446 <swap_string, m_string>: Remove.
5447 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5448 Update.
5449 * stabsread.c (define_symbol, read_type): Update.
5450 * linespec.c (find_linespec_symbols): Update.
5451 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5452 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5453 * dbxread.c (read_dbx_symtab): Update.
5454 * cp-support.h (cp_canonicalize_string_full)
5455 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5456 Return unique_xmalloc_ptr.
5457 * cp-support.c (inspect_type): Update.
5458 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5459 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5460 Likewise.
5461 * c-typeprint.c (print_name_maybe_canonical): Update.
5462 * break-catch-throw.c (check_status_exception_catchpoint):
5463 Update.
5464
5465 2020-05-08 Tom de Vries <tdevries@suse.de>
5466
5467 * infrun.c (follow_fork): Copy current_line and current_symtab to
5468 child thread.
5469
5470 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5471
5472 * async-event.c (struct async_signal_handler, struct
5473 async_event_handler): Reformat, remove typedef.
5474
5475 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5476
5477 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5478 access thistype->main_type->dyn_prop_list directly.
5479
5480 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5481
5482 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5483 (remove_dyn_prop): Remove. Update all users to use
5484 type::remove_dyn_prop.
5485 * gdbtypes.c (remove_dyn_prop): Rename to...
5486 (type::remove_dyn_prop): ... this.
5487
5488 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5489
5490 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5491 (add_dyn_prop): Remove. Update all users to use
5492 type::add_dyn_prop.
5493 * gdbtypes.c (add_dyn_prop): Rename to...
5494 (type::add_dyn_prop): ... this.
5495
5496 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5497
5498 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5499 (get_dyn_prop): Remove. Update all users to use
5500 type::dyn_prop.
5501 * gdbtypes.c (get_dyn_prop): Rename to...
5502 (type::dyn_prop): ... this.
5503
5504 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5505
5506 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5507
5508 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5509
5510 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5511 instruction, skip it if it's there.
5512
5513 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
5514
5515 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5516
5517 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
5518
5519 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5520 * gdbtypes.c (recursive_dump_type): Remove use of
5521 TYPE_INCOMPLETE.
5522
5523 2020-05-03 Tom Tromey <tom@tromey.com>
5524
5525 * breakpoint.c (catch_command, tcatch_command): Remove.
5526 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5527 add_show_prefix_cmd.
5528 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5529 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5530 Remove.
5531 (add_internal_problem_command): Use add_basic_prefix_cmd,
5532 add_show_prefix_cmd.
5533 * mips-tdep.c (set_mipsfpu_command): Remove.
5534 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5535 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5536 (_initialize_index_cache): Use add_basic_prefix_cmd.
5537 * memattr.c (dummy_cmd): Remove.
5538 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5539 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5540 (_initialize_tui_win): Use add_basic_prefix_cmd,
5541 add_show_prefix_cmd.
5542 * cli/cli-logging.c (set_logging_command): Remove.
5543 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5544 add_show_prefix_cmd.
5545 (show_logging_command): Remove.
5546 * target.c (target_command): Remove.
5547 (add_target): Use add_basic_prefix_cmd.
5548
5549 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
5550
5551 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5552
5553 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5554
5555 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5556 info_command.
5557
5558 2020-04-30 Kamil Rytarowski <n54@gmx.com>
5559
5560 * nbsd-nat.c (nbsd_enable_proc_events)
5561 (nbsd_nat_target::post_startup_inferior): Add.
5562 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5563 (nbsd_nat_target::update_thread_list): Rewrite.
5564 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5565 "PTRACE_LWP_CREATE".
5566 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5567
5568 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5569
5570 * stack.c (_initialize_stack): Remove duplicated creation
5571 of "frame" command and "f" alias.
5572
5573 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5574
5575 PR gdb/18706
5576 * gdbtypes.c (check_typedef): Calculate size of array of
5577 stubbed type.
5578
5579 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5580
5581 PR gdb/15559
5582 * i386-tdep.c (i386_push_dummy_call): Call
5583 i386_thiscall_push_dummy_call.
5584 (i386_thiscall_push_dummy_call): New function.
5585 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5586 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5587 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5588
5589 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5590
5591 * gdbarch.sh (do_read): Add shellcheck disable directive for
5592 warning SC2162.
5593
5594 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5595
5596 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5597 "referenced but not assigned" warning.
5598
5599 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5600
5601 * gdbarch.sh: Remove code that sets fallbackdefault.
5602
5603 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5604
5605 * gdbarch.sh: Use shell operators && and || instead of
5606 -a and -o.
5607
5608 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5609
5610 * gdbarch.sh: Use $(...) instead of `...`.
5611
5612 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5613
5614 * gdbarch.sh: Use double quotes around variables.
5615
5616 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5617
5618 * gdbarch.sh: Use %s with printf, instead of variables in the
5619 format string.
5620
5621 2020-04-29 Tom Tromey <tromey@adacore.com>
5622
5623 PR ada/25875:
5624 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5625 type fields here.
5626 (read_enumeration_type): Call
5627 update_enumeration_type_from_children later. Update comments.
5628 (process_enumeration_scope): Don't create type fields.
5629
5630 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5631
5632 * nbsd-tdep.c: Include "xml-syscall.h".
5633 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5634
5635 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5636
5637 * nbsd-nat.c: Include "sys/wait.h".
5638 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5639 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5640 (nbsd_nat_target::remove_exec_catchpoint)
5641 (nbsd_nat_target::set_syscall_catchpoint): Add.
5642 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5643 (nbsd_nat_target::insert_exec_catchpoint)
5644 (nbsd_nat_target::remove_exec_catchpoint)
5645 (nbsd_nat_target::set_syscall_catchpoint): Add.
5646 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5647 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5648 `nbsd_get_syscall_number'.
5649
5650 2020-04-29 Tom Tromey <tom@tromey.com>
5651
5652 * stack.c (print_block_frame_labels): Remove.
5653
5654 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
5655
5656 PR gdb/17320
5657 * ada-valprint.c (val_print_packed_array_elements): Move array
5658 end bracket to new line.
5659 (ada_val_print_string): Remove extra spaces before first array
5660 element.
5661 * c-valprint.c (c_value_print_array): Likewise.
5662 * m2-valprint.c (m2_print_array_contents): Likewise.
5663 (m2_value_print_inner): Likewise.
5664 * p-valprint.c (pascal_value_print_inner): Likewise.
5665 * valprint.c (generic_val_print_array): Likewise.
5666 (value_print_array_elements): Move first array element and array
5667 end bracket to new line.
5668
5669 2020-04-29 Tom de Vries <tdevries@suse.de>
5670
5671 PR symtab/25889
5672 * linespec.c (find_method): Fix ix calculation.
5673
5674 2020-04-28 Kamil Rytarowski <n54@gmx.com>
5675
5676 * syscalls/update-netbsd.sh: New file.
5677 * syscalls/netbsd.xml: Regenerate.
5678 * data-directory/Makefile.in: Register `netbsd.xml' in
5679 `SYSCALLS_FILES'.
5680
5681 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5682
5683 * syscalls/update-freebsd.sh: Add double quotes.
5684
5685 2020-04-28 Tom Tromey <tom@tromey.com>
5686
5687 * NEWS: Update.
5688 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5689 (cmdpy_init): Allow class_tui.
5690
5691 2020-04-28 Mark Williams <mark@myosotissp.com>
5692
5693 PR gdb/24480
5694 * dwarf2read.c: Add missing assingments to list_in_scope when
5695 start_symtab was already called.
5696
5697 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5698
5699 PR gdb/25881
5700 * dwarf2/read.c (offset_map_type): Use
5701 gdb:hash_enum<sect_offset> as hash function.
5702
5703 2020-04-28 Tom de Vries <tdevries@suse.de>
5704
5705 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5706 with DW_AT_signature.
5707
5708 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
5709
5710 * configure.ac: Remove check for fs_base/gs_base in
5711 user_regs_struct.
5712 * configure: Re-generate.
5713 * config.in: Re-generate.
5714 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5715 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5716 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5717
5718 2020-04-27 Luis Machado <luis.machado@linaro.org>
5719
5720 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5721 problematic inline frame unwinding situation.
5722 * frame.c (frame_id_computed_p): New function.
5723 * frame.h (frame_id_computed_p): New prototype.
5724
5725 2020-04-26 Tom Tromey <tom@tromey.com>
5726
5727 * command.h (enum command_class) <class_pseudo>: Remove.
5728
5729 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5730
5731 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5732 and whitespace.
5733
5734 2020-04-25 Kamil Rytarowski <n54@gmx.com>
5735
5736 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5737 `PT_GET_PROCESS_STATE' block.
5738
5739 2020-04-24 Tom Tromey <tom@tromey.com>
5740
5741 * symtab.h (symbol_get_demangled_name): Don't declare.
5742 * symtab.c (symbol_get_demangled_name): Remove.
5743 (general_symbol_info::natural_name)
5744 (general_symbol_info::demangled_name): Update.
5745
5746 2020-04-24 Tom Tromey <tom@tromey.com>
5747
5748 PR rust/25025:
5749 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5750
5751 2020-04-24 Tom Tromey <tom@tromey.com>
5752
5753 PR symtab/12707:
5754 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5755 exists.
5756 (new_symbol): Likewise.
5757 * compile/compile-object-load.c (get_out_value_type): Use
5758 symbol_matches_search_name.
5759
5760 2020-04-24 Tom Tromey <tom@tromey.com>
5761
5762 * dwarf2/read.c (add_partial_symbol): Do not call
5763 compute_and_set_names.
5764
5765 2020-04-24 Tom Tromey <tom@tromey.com>
5766
5767 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5768 overload.
5769
5770 2020-04-24 Tom Tromey <tom@tromey.com>
5771
5772 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5773 (add_psymbol_to_list): New overload. Make old overload call new
5774 one.
5775 * psympriv.h (add_psymbol_to_list): New overload.
5776
5777 2020-04-24 Tom Tromey <tom@tromey.com>
5778
5779 * dwarf2/read.c (partial_die_info::read) <case
5780 DW_AT_linkage_name>: Use value_as_string.
5781 (dwarf2_string_attr): Use value_as_string.
5782 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5783 method.
5784 * dwarf2/attribute.c (attribute::value_as_string): New method.
5785
5786 2020-04-24 Tom Tromey <tom@tromey.com>
5787
5788 * symtab.c (general_symbol_info::natural_name)
5789 (general_symbol_info::demangled_name): Check for language_rust.
5790
5791 2020-04-24 Tom Tromey <tom@tromey.com>
5792
5793 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5794 (dwarf2_physname): ... from here.
5795 (partial_die_info::read): Add Rust "{" hack.
5796
5797 2020-04-24 Tom Tromey <tom@tromey.com>
5798
5799 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5800 method.
5801 (symbol_set_demangled_name): Don't declare.
5802 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5803 symbol_set_demangled_name.
5804 (general_symbol_info::set_language)
5805 (general_symbol_info::compute_and_set_names): Update.
5806 * minsyms.c (minimal_symbol_reader::install): Update.
5807 * dwarf2/read.c (new_symbol): Update.
5808
5809 2020-04-24 Tom Tromey <tromey@adacore.com>
5810
5811 PR python/23662:
5812 * python/py-type.c (convert_field): Handle
5813 FIELD_LOC_KIND_DWARF_BLOCK.
5814 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5815 (typy_get_dynamic): Nw function.
5816 (type_object_getset): Add "dynamic".
5817 * NEWS: Add entry.
5818
5819 2020-04-24 Tom Tromey <tromey@adacore.com>
5820
5821 * ada-typeprint.c (print_choices, print_variant_part)
5822 (print_record_field_types_dynamic): New functions.
5823 (print_record_field_types): Use print_record_field_types_dynamic.
5824
5825 2020-04-24 Tom Tromey <tromey@adacore.com>
5826
5827 * dwarf2/read.c (handle_data_member_location): New overload.
5828 (dwarf2_add_field): Use it.
5829 (decode_locdesc): Add "computed" parameter. Update comment.
5830 * gdbtypes.c (is_dynamic_type_internal): Also look for
5831 FIELD_LOC_KIND_DWARF_BLOCK.
5832 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5833 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5834 virtual base classes.
5835 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5836 FIELD_LOC_KIND_DWARF_BLOCK.
5837
5838 2020-04-24 Tom Tromey <tromey@adacore.com>
5839
5840 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5841 * gdbtypes.c (is_dynamic_type_internal): Check
5842 TYPE_HAS_DYNAMIC_LENGTH.
5843 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5844 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5845 New macros.
5846 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5847 constant.
5848
5849 2020-04-24 Tom Tromey <tromey@adacore.com>
5850
5851 * dwarf2/read.c (struct variant_field): Rewrite.
5852 (struct variant_part_builder): New.
5853 (struct nextfield): Remove "variant" field. Add "offset".
5854 (struct field_info): Add "current_variant_part" and
5855 "variant_parts".
5856 (alloc_discriminant_info): Remove.
5857 (alloc_rust_variant): New function.
5858 (quirk_rust_enum): Update.
5859 (dwarf2_add_field): Set "offset" member. Don't handle
5860 DW_TAG_variant_part.
5861 (offset_map_type): New typedef.
5862 (convert_variant_range, create_one_variant)
5863 (create_one_variant_part, create_variant_parts)
5864 (add_variant_property): New functions.
5865 (dwarf2_attach_fields_to_type): Call add_variant_property.
5866 (read_structure_type): Don't handle DW_TAG_variant_part.
5867 (handle_variant_part, handle_variant): New functions.
5868 (handle_struct_member_die): Use them.
5869 (process_structure_scope): Don't handle variant parts.
5870 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5871 (struct discriminant_info): Remove.
5872 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5873 (struct main_type) <flag_discriminated_union>: Remove.
5874 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5875 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5876 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5877 Update.
5878 * valops.c (value_union_variant): Remove.
5879 * value.h (value_union_variant): Don't declare.
5880
5881 2020-04-24 Tom Tromey <tromey@adacore.com>
5882
5883 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5884 (ada_value_primitive_packed_val): Update.
5885 * ada-valprint.c (ada_value_print_1): Update.
5886 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5887 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5888 just an address. Use evaluate_for_locexpr_baton.
5889 (dwarf2_evaluate_property): Update.
5890 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5891 array_view.
5892 * findvar.c (default_read_var_value): Update.
5893 * gdbtypes.c (compute_variant_fields_inner)
5894 (resolve_dynamic_type_internal): Update.
5895 (resolve_dynamic_type): Change type of valaddr parameter.
5896 * gdbtypes.h (resolve_dynamic_type): Update.
5897 * valarith.c (value_subscripted_rvalue): Update.
5898 * value.c (value_from_contents_and_address): Update.
5899
5900 2020-04-24 Tom Tromey <tromey@adacore.com>
5901
5902 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5903 "push_initial_value" parameter.
5904 (dwarf2_evaluate_property): Likewise.
5905 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5906
5907 2020-04-24 Tom Tromey <tromey@adacore.com>
5908
5909 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5910 (variant::matches, compute_variant_fields_recurse)
5911 (compute_variant_fields_inner, compute_variant_fields): New
5912 functions.
5913 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5914 Use resolved_type after type is made.
5915 (operator==): Add new cases.
5916 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5917 (struct discriminant_range, struct variant, struct variant_part):
5918 New.
5919 (union dynamic_prop_data) <variant_parts, original_type>: New
5920 members.
5921 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5922 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5923 constants.
5924 * value.c (unpack_bits_as_long): Now public.
5925 * value.h (unpack_bits_as_long): Declare.
5926
5927 2020-04-24 Tom Tromey <tromey@adacore.com>
5928
5929 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5930 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5931
5932 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
5933
5934 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5935
5936 2020-04-24 Kamil Rytarowski <n54@gmx.com>
5937
5938 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5939 (remove_fork_catchpoint, post_startup_inferior)
5940 (post_attach): Move...
5941 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5942 (remove_fork_catchpoint, post_startup_inferior)
5943 (post_attach): ...here.
5944 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5945 (remove_fork_catchpoint, post_startup_inferior)
5946 (post_attach): Move...
5947 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5948 (remove_fork_catchpoint, post_startup_inferior)
5949 (post_attach): ...here.
5950
5951 2020-04-24 Tom Tromey <tromey@adacore.com>
5952
5953 * nat/windows-nat.h (struct windows_thread_info)
5954 <pc_adjusted>: New member.
5955 * windows-nat.c (windows_fetch_one_register): Check
5956 pc_adjusted.
5957 (windows_nat_target::get_windows_debug_event)
5958 (windows_nat_target::wait): Set pc_adjusted.
5959
5960 2020-04-24 Tom de Vries <tdevries@suse.de>
5961
5962 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5963 Run gdb-add-index inside temp dir.
5964
5965 2020-04-23 Tom Tromey <tromey@adacore.com>
5966
5967 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5968 in loop.
5969
5970 2020-04-23 Luis Machado <luis.machado@linaro.org>
5971
5972 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5973 get_frame_register instead of gdbarch_unwind_pc.
5974
5975 2020-04-23 Tom de Vries <tdevries@suse.de>
5976
5977 * symtab.c (lookup_global_symbol): Prefer def over decl.
5978
5979 2020-04-23 Tom de Vries <tdevries@suse.de>
5980
5981 PR symtab/25807
5982 * block.c (best_symbol, better_symbol): Promote to external.
5983 * block.h (best_symbol, better_symbol): Declare.
5984 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5985 decl.
5986
5987 2020-04-23 Tom Tromey <tromey@adacore.com>
5988
5989 PR ada/25837:
5990 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5991 "const char *", not a "const std::string &".
5992 <name_and_matcher::operator==>: Update.
5993 * unittests/lookup_name_info-selftests.c: Change type of
5994 "result".
5995
5996 2020-04-23 Tom Tromey <tom@tromey.com>
5997
5998 * inferior.h (iterate_over_inferiors): Don't declare.
5999 * inferior.c (iterate_over_inferiors): Remove.
6000 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
6001 Remove.
6002 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
6003 use iterate_over_inferiors.
6004 (darwin_resume_inferior_it)
6005 (struct resume_inferior_threads_param)
6006 (darwin_resume_inferior_threads_it): Remove.
6007 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
6008
6009 2020-04-23 Tom de Vries <tdevries@suse.de>
6010
6011 * blockframe.c (find_pc_partial_function): Use
6012 find_pc_sect_compunit_symtab rather than
6013 objfile->sf->qf->find_pc_sect_compunit_symtab.
6014
6015 2020-04-22 Tom de Vries <tdevries@suse.de>
6016
6017 PR symtab/25764
6018 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
6019 in psymtabs.
6020
6021 2020-04-22 Tom de Vries <tdevries@suse.de>
6022
6023 PR symtab/25801
6024 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
6025 symtabs.
6026
6027 2020-04-22 Tom de Vries <tdevries@suse.de>
6028
6029 PR symtab/25700
6030 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
6031 CU if already created.
6032
6033 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6034
6035 * infrun.c (displaced_step_fixup): Switch to the event_thread
6036 before calling displaced_step_restore, not after.
6037
6038 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6039
6040 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
6041 its inferior is not recorded by us.
6042 (record_btrace_target_open): Replace call to
6043 all_non_exited_threads () with call to current_inferior
6044 ()->non_exited_threads ().
6045 (record_btrace_target::stop_recording): Likewise.
6046 (record_btrace_target::close): Likewise.
6047 (record_btrace_target::wait): Likewise.
6048 (record_btrace_target::record_stop_replaying): Likewise.
6049
6050 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6051
6052 * btrace.c (btrace_enable): Throw an error on double enables and
6053 when enabling recording fails.
6054 (btrace_disable): Throw an error if the thread is not recorded.
6055
6056 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6057
6058 * record-btrace.c (record_btrace_target::fetch_registers): Forward
6059 request if we do not have a thread_info.
6060
6061 2020-04-21 Tom de Vries <tdevries@suse.de>
6062
6063 PR gdb/25471
6064 * thread.c
6065 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
6066 exception in get_frame_id.
6067
6068 2020-04-20 Tom Tromey <tromey@adacore.com>
6069
6070 * python/python.c (struct gdbpy_event): Mark move constructor as
6071 noexcept.
6072 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
6073 constructor as noexcept.
6074 * completer.h (struct completion_result): Mark move constructor as
6075 noexcept.
6076 * completer.c (completion_result::completion_result): Use
6077 initialization style. Don't call reset_match_list.
6078
6079 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
6080
6081 * MAINTAINERS (Write After Approval): Add myself.
6082
6083 2020-04-18 Tom Tromey <tom@tromey.com>
6084
6085 * windows-tdep.c (init_w32_command_list)
6086 (w32_prefix_command_valid): Restore.
6087 (_initialize_windows_tdep): Call init_w32_command_list.
6088
6089 2020-04-18 Tom Tromey <tom@tromey.com>
6090
6091 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
6092 * value.c (value_fn_field): Update.
6093 * valops.c (find_function_in_inferior)
6094 (value_allocate_space_in_inferior): Update.
6095 * tui/tui-winsource.c (tui_update_source_windows_with_line):
6096 Update.
6097 * tui/tui-source.c (tui_source_window::set_contents): Update.
6098 * symtab.c (lookup_global_or_static_symbol)
6099 (find_function_start_sal_1, skip_prologue_sal)
6100 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
6101 * symmisc.c (dump_msymbols, dump_symtab_1)
6102 (maintenance_print_one_line_table): Update.
6103 * symfile.c (init_entry_point_info, section_is_mapped)
6104 (list_overlays_command, simple_read_overlay_table)
6105 (simple_overlay_update_1): Update.
6106 * stap-probe.c (handle_stap_probe): Update.
6107 * stabsread.c (dbx_init_float_type, define_symbol)
6108 (read_one_struct_field, read_enum_type, read_range_type): Update.
6109 * source.c (info_line_command): Update.
6110 * python/python.c (gdbpy_source_objfile_script)
6111 (gdbpy_execute_objfile_script): Update.
6112 * python/py-type.c (save_objfile_types): Update.
6113 * python/py-objfile.c (py_free_objfile): Update.
6114 * python/py-inferior.c (python_new_objfile): Update.
6115 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
6116 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
6117 (maintenance_check_psymtabs): Update.
6118 * printcmd.c (info_address_command): Update.
6119 * objfiles.h (struct objfile) <arch>: New method, from
6120 get_objfile_arch.
6121 (get_objfile_arch): Don't declare.
6122 * objfiles.c (get_objfile_arch): Remove.
6123 (filter_overlapping_sections): Update.
6124 * minsyms.c (msymbol_is_function): Update.
6125 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
6126 (output_nondebug_symbol): Update.
6127 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
6128 (mdebug_expand_psymtab): Update.
6129 * machoread.c (macho_add_oso_symfile): Update.
6130 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
6131 Update.
6132 * linux-fork.c (checkpoint_command): Update.
6133 * linespec.c (convert_linespec_to_sals): Update.
6134 * jit.c (finalize_symtab): Update.
6135 * infrun.c (insert_exception_resume_from_probe): Update.
6136 * ia64-tdep.c (ia64_find_unwind_table): Update.
6137 * hppa-tdep.c (internalize_unwinds): Update.
6138 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
6139 Update.
6140 * gcore.c (call_target_sbrk): Update.
6141 * elfread.c (record_minimal_symbol, elf_symtab_read)
6142 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
6143 (elf_gnu_ifunc_resolve_by_got): Update.
6144 * dwarf2/read.c (create_addrmap_from_index)
6145 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6146 (read_debug_names_from_section)
6147 (process_psymtab_comp_unit_reader, add_partial_symbol)
6148 (add_partial_subprogram, process_full_comp_unit)
6149 (read_file_scope, read_func_scope, read_lexical_block_scope)
6150 (read_call_site_scope, dwarf2_ranges_read)
6151 (dwarf2_record_block_ranges, dwarf2_add_field)
6152 (mark_common_block_symbol_computed, read_tag_pointer_type)
6153 (read_tag_string_type, dwarf2_init_float_type)
6154 (dwarf2_init_complex_target_type, read_base_type)
6155 (partial_die_info::read, partial_die_info::read)
6156 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
6157 (dwarf2_fetch_die_loc_sect_off): Update.
6158 * dwarf2/loc.c (dwarf2_find_location_expression)
6159 (class dwarf_evaluate_loc_desc, rw_pieced_value)
6160 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
6161 (dwarf2_loc_desc_get_symbol_read_needs)
6162 (locexpr_describe_location_piece, locexpr_describe_location_1)
6163 (loclist_describe_location): Update.
6164 * dwarf2/index-write.c (write_debug_names): Update.
6165 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
6166 * dtrace-probe.c (dtrace_process_dof): Update.
6167 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6168 (process_one_symbol): Update.
6169 * ctfread.c (ctf_init_float_type, read_base_type): Update.
6170 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6171 (coff_read_enum_type): Update.
6172 * cli/cli-cmds.c (edit_command, list_command): Update.
6173 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6174 * breakpoint.c (create_overlay_event_breakpoint)
6175 (create_longjmp_master_breakpoint)
6176 (create_std_terminate_master_breakpoint)
6177 (create_exception_master_breakpoint, get_sal_arch): Update.
6178 * block.c (block_gdbarch): Update.
6179 * annotate.c (annotate_source_line): Update.
6180
6181 2020-04-17 Tom Tromey <tromey@adacore.com>
6182
6183 * auto-load.c (show_auto_load_cmd): Remove.
6184 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6185 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6186 (maintenance_print_arc_command): Remove.
6187 * tui/tui-win.c (tui_command): Remove.
6188 (tui_get_cmd_list): Use add_basic_prefix_cmd.
6189 * tui/tui-layout.c (tui_layout_command): Remove.
6190 (_initialize_tui_layout): Use add_basic_prefix_cmd.
6191 * python/python.c (user_set_python, user_show_python): Remove.
6192 (_initialize_python): Use add_basic_prefix_cmd,
6193 add_show_prefix_cmd.
6194 * guile/guile.c (set_guile_command, show_guile_command): Remove.
6195 (install_gdb_commands): Use add_basic_prefix_cmd,
6196 add_show_prefix_cmd.
6197 (info_guile_command): Remove.
6198 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6199 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6200 add_show_prefix_cmd.
6201 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6202 Remove do_set and do_show parameters.
6203 * cli/cli-style.c (set_style, show_style): Remove.
6204 (_initialize_cli_style): Use add_basic_prefix_cmd,
6205 add_show_prefix_cmd.
6206 (cli_style_option::add_setshow_commands): Remove do_set and
6207 do_show parameters.
6208 (cli_style_option::add_setshow_commands): Use
6209 add_basic_prefix_cmd, add_show_prefix_cmd.
6210 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6211 (set_style_name): Remove.
6212 * cli/cli-dump.c (dump_command, append_command): Remove.
6213 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6214 (tekhex_dump_command, binary_dump_command)
6215 (binary_append_command): Remove.
6216 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6217 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6218 (init_w32_command_list): Remove; move into ...
6219 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6220 * valprint.c (set_print, show_print, set_print_raw)
6221 (show_print_raw): Remove.
6222 (_initialize_valprint): Use add_basic_prefix_cmd,
6223 add_show_prefix_cmd.
6224 * typeprint.c (set_print_type, show_print_type): Remove.
6225 (_initialize_typeprint): Use add_basic_prefix_cmd,
6226 add_show_prefix_cmd.
6227 * record.c (set_record_command, show_record_command): Remove.
6228 (_initialize_record): Use add_basic_prefix_cmd,
6229 add_show_prefix_cmd.
6230 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6231 add_show_prefix_cmd.
6232 (info_command, show_command, set_debug, show_debug): Remove.
6233 * top.h (set_history, show_history): Don't declare.
6234 * top.c (set_history, show_history): Remove.
6235 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6236 (unset_tdesc_cmd): Remove.
6237 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6238 add_show_prefix_cmd.
6239 * symtab.c (info_module_command): Remove.
6240 (_initialize_symtab): Use add_basic_prefix_cmd.
6241 * symfile.c (overlay_command): Remove.
6242 (_initialize_symfile): Use add_basic_prefix_cmd.
6243 * sparc64-tdep.c (info_adi_command): Remove.
6244 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6245 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6246 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6247 add_show_prefix_cmd.
6248 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6249 (_initialize_serial): Use add_basic_prefix_cmd,
6250 add_show_prefix_cmd.
6251 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6252 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6253 add_show_prefix_cmd.
6254 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6255 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6256 add_show_prefix_cmd.
6257 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6258 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6259 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6260 add_show_prefix_cmd.
6261 * remote.c (remote_command, set_remote_cmd): Remove.
6262 (_initialize_remote): Use add_basic_prefix_cmd.
6263 * record-full.c (set_record_full_command)
6264 (show_record_full_command): Remove.
6265 (_initialize_record_full): Use add_basic_prefix_cmd,
6266 add_show_prefix_cmd.
6267 * record-btrace.c (cmd_set_record_btrace)
6268 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6269 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6270 (cmd_show_record_btrace_pt): Remove.
6271 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6272 add_show_prefix_cmd.
6273 * ravenscar-thread.c (set_ravenscar_command)
6274 (show_ravenscar_command): Remove.
6275 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6276 add_show_prefix_cmd.
6277 * mips-tdep.c (show_mips_command, set_mips_command)
6278 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6279 add_show_prefix_cmd.
6280 * maint.c (maintenance_command, maintenance_info_command)
6281 (maintenance_check_command, maintenance_print_command)
6282 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6283 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6284 add_show_prefix_cmd.
6285 (show_per_command_cmd): Remove.
6286 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6287 Remove.
6288 (maintenance_show_test_settings_cmd): Remove.
6289 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6290 add_show_prefix_cmd.
6291 * maint-test-options.c (maintenance_test_options_command):
6292 Remove.
6293 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6294 * macrocmd.c (macro_command): Remove
6295 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6296 * language.c (set_check, show_check): Remove.
6297 (_initialize_language): Use add_basic_prefix_cmd,
6298 add_show_prefix_cmd.
6299 * infcmd.c (unset_command): Remove.
6300 (_initialize_infcmd): Use add_basic_prefix_cmd.
6301 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6302 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6303 add_show_prefix_cmd.
6304 * go32-nat.c (go32_info_dos_command): Remove.
6305 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6306 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6307 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6308 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6309 (_initialize_frame): Use add_basic_prefix_cmd,
6310 add_show_prefix_cmd.
6311 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6312 (_initialize_dcache): Use add_basic_prefix_cmd,
6313 add_show_prefix_cmd.
6314 * cp-support.c (maint_cplus_command): Remove.
6315 (_initialize_cp_support): Use add_basic_prefix_cmd.
6316 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6317 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6318 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6319 add_basic_prefix_cmd, add_show_prefix_cmd.
6320 * breakpoint.c (save_command): Remove.
6321 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6322 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6323 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6324 add_show_prefix_cmd.
6325 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6326 (set_ada_command, show_ada_command): Remove.
6327 (_initialize_ada_language): Use add_basic_prefix_cmd,
6328 add_show_prefix_cmd.
6329 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6330
6331 2020-04-16 Kamil Rytarowski <n54@gmx.com>
6332
6333 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6334 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6335
6336 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6337
6338 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6339 warning messages.
6340
6341 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6342
6343 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6344 import table is not at beginning of .idata section.
6345
6346 2020-04-16 Pedro Alves <palves@redhat.com>
6347
6348 * inferior.c (delete_inferior): Use delete operator directly
6349 instead of delete_program_space.
6350 * progspace.c (add_program_space): New, factored out from
6351 program_space::program_space.
6352 (remove_program_space): New, factored out from
6353 delete_program_space.
6354 (program_space::program_space): Remove intro comment. Rewrite.
6355 (program_space::~program_space): Remove intro comment. Call
6356 remove_program_space.
6357 (delete_program_space): Delete.
6358 * progspace.h (program_space::program_space): Make explicit. Move
6359 intro comment here, adjusted.
6360 (program_space::~program_space): Move intro comment here,
6361 adjusted.
6362 (delete_program_space): Remove.
6363
6364 2020-04-16 Tom Tromey <tromey@adacore.com>
6365
6366 * windows-nat.c (windows_nat::handle_access_violation): New
6367 function.
6368 * nat/windows-nat.h (handle_access_violation): Declare.
6369 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6370 windows-nat.c. Call handle_access_violation.
6371
6372 2020-04-16 Tom de Vries <tdevries@suse.de>
6373
6374 PR symtab/25791
6375 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6376 CUs without psymtab.
6377
6378 2020-04-16 Kevin Buettner <kevinb@redhat.com>
6379
6380 * python/python.c (do_start_initialization): Don't call
6381 PyEval_InitThreads for Python 3.9 and beyond.
6382
6383 2020-04-15 Kamil Rytarowski <n54@gmx.com>
6384
6385 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6386 thread functions.
6387 (obsd_nat_target::wait): Likewise.
6388
6389 2020-04-15 Tom Tromey <tromey@adacore.com>
6390
6391 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6392 (DEBUG_EXCEPT): Use debug_printf.
6393
6394 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6395
6396 * completer.c (class completion_tracker::completion_hash_entry)
6397 <hash_name>: New member function.
6398 (completion_tracker::discard_completions): New callback to hash a
6399 completion_hash_entry, pass this to htab_create_alloc.
6400
6401 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6402
6403 * windows-nat.c (windows_make_so): Warn rather than stopping with
6404 an error if realpath() fails.
6405
6406 2020-04-14 Kamil Rytarowski <n54@gmx.com>
6407
6408 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6409 (nbsd_nat_target::info_proc): Add do_status.
6410
6411 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6412 Tom de Vries <tdevries@suse.de>
6413
6414 PR symtab/25718
6415 * psympriv.h (struct partial_symtab::read_symtab)
6416 (struct partial_symtab::expand_psymtab)
6417 (struct partial_symtab::read_dependencies): Update comments.
6418 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6419 read_symtab for includer.
6420 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6421 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6422 (struct dwarf2_include_psymtab::m_readin): Remove.
6423 (struct dwarf2_include_psymtab::includer): New member function.
6424 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6425
6426 2020-04-14 Tom de Vries <tdevries@suse.de>
6427
6428 PR symtab/25720
6429 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6430 with NULL symbol_matcher and lookup_name.
6431 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6432 and lookup_name.
6433 * dwarf2/read.c (dw2_expand_symtabs_matching)
6434 (dw2_debug_names_expand_symtabs_matching): Same.
6435 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6436 Make lookup_name a pointer. Update comment.
6437 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6438 lookup_name being a pointer.
6439 * symfile.c (expand_symtabs_matching): Same.
6440 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6441 * linespec.c (iterate_over_all_matching_symtabs): Same.
6442
6443 2020-04-13 Tom Tromey <tom@tromey.com>
6444
6445 * run-on-main-thread.c: Update include.
6446 * unittests/main-thread-selftests.c: Update include.
6447 * tui/tui-win.c: Update include.
6448 * tui/tui-io.c: Update include.
6449 * tui/tui-interp.c: Update include.
6450 * tui/tui-hooks.c: Update include.
6451 * top.h: Update include.
6452 * top.c: Update include.
6453 * ser-base.c: Update include.
6454 * remote.c: Update include.
6455 * remote-notif.c: Update include.
6456 * remote-fileio.c: Update include.
6457 * record-full.c: Update include.
6458 * record-btrace.c: Update include.
6459 * python/python.c: Update include.
6460 * posix-hdep.c: Update include.
6461 * mingw-hdep.c: Update include.
6462 * mi/mi-main.c: Update include.
6463 * mi/mi-interp.c: Update include.
6464 * main.c: Update include.
6465 * linux-nat.c: Update include.
6466 * interps.c: Update include.
6467 * infrun.c: Update include.
6468 * inf-loop.c: Update include.
6469 * event-top.c: Update include.
6470 * event-loop.c: Move to ../gdbsupport/.
6471 * event-loop.h: Move to ../gdbsupport/.
6472 * async-event.h: Update include.
6473 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6474
6475 2020-04-13 Tom Tromey <tom@tromey.com>
6476
6477 * tui/tui-win.c: Include async-event.h.
6478 * remote.c: Include async-event.h.
6479 * remote-notif.c: Include async-event.h.
6480 * record-full.c: Include async-event.h.
6481 * record-btrace.c: Include async-event.h.
6482 * infrun.c: Include async-event.h.
6483 * event-top.c: Include async-event.h.
6484 * event-loop.h: Move some declarations to async-event.h.
6485 * event-loop.c: Don't include ser-event.h or top.h. Move some
6486 code to async-event.c.
6487 * async-event.h: New file.
6488 * async-event.c: New file.
6489 * Makefile.in (COMMON_SFILES): Add async-event.c.
6490 (HFILES_NO_SRCDIR): Add async-event.h.
6491
6492 2020-04-13 Tom Tromey <tom@tromey.com>
6493
6494 * utils.c (flush_streams): New function.
6495 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6496
6497 2020-04-13 Tom Tromey <tom@tromey.com>
6498
6499 * event-loop.c (handle_file_event): Use warning, not
6500 printf_unfiltered.
6501
6502 2020-04-13 Tom Tromey <tom@tromey.com>
6503
6504 * event-loop.c: Include <chrono>.
6505
6506 2020-04-13 Tom Tromey <tom@tromey.com>
6507
6508 * gdb_select.h: Move to ../gdbsupport/.
6509 * event-loop.c: Update include path.
6510 * top.c: Update include path.
6511 * ser-base.c: Update include path.
6512 * ui-file.c: Update include path.
6513 * ser-tcp.c: Update include path.
6514 * guile/scm-ports.c: Update include path.
6515 * posix-hdep.c: Update include path.
6516 * ser-unix.c: Update include path.
6517 * gdb_usleep.c: Update include path.
6518 * mingw-hdep.c: Update include path.
6519 * inflow.c: Update include path.
6520 * infrun.c: Update include path.
6521 * event-top.c: Update include path.
6522
6523 2020-04-13 Tom Tromey <tom@tromey.com>
6524
6525 * configure: Rebuild.
6526 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6527
6528 2020-04-13 Tom Tromey <tom@tromey.com>
6529
6530 * event-loop.h (start_event_loop): Don't declare.
6531 * event-loop.c (start_event_loop): Move...
6532 * main.c (start_event_loop): ...here. Now static.
6533
6534 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6535
6536 * MAINTAINERS: Update my email address.
6537
6538 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6539
6540 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6541 IP_ALL.
6542
6543 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6544
6545 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
6546 (nbsd_nat_target::info_proc): Add do_cmdline.
6547
6548 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6549
6550 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
6551 (nbsd_nat_target::info_proc): Add do_cwd.
6552
6553 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6554
6555 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6556
6557 2020-04-11 Kamil Rytarowski <n54@gmx.com>
6558
6559 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6560 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6561 (nbsd_nat_target::info_proc): New functions.
6562 * nbsd-nat.c (kinfo_get_vmmap): New function.
6563 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6564 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6565 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6566 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6567 functions.
6568 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6569 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6570 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6571 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6572 (KINFO_VME_FLAG_GROWS_DOWN): New.
6573
6574 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6575
6576 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6577 bit shift.
6578
6579 2020-04-10 Tom Tromey <tromey@adacore.com>
6580
6581 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6582
6583 2020-04-10 Tom Tromey <tromey@adacore.com>
6584
6585 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6586 separate debug files.
6587
6588 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
6589
6590 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6591 Move to...
6592 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6593 ... here.
6594 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6595 Check for STATUS_WX86_BREAKPOINT.
6596 (windows_nat_target::wait): Same.
6597
6598 2020-04-10 Tom de Vries <tdevries@suse.de>
6599
6600 PR cli/25808
6601 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6602
6603 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6604
6605 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6606 (Write After Approval): Remove Tom de Vries.
6607
6608 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6609
6610 revert partially:
6611 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6612
6613 * buildsym.c (record_line): Fix undefined behavior and preserve
6614 lines at eof.
6615
6616 2020-04-09 Kamil Rytarowski <n54@gmx.com>
6617
6618 * auxv.h (svr4_auxv_parse): New.
6619 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6620 and generic_auxv_parse.
6621 (svr4_auxv_parse): Add.
6622 * obsd-tdep.c: Include "auxv.h".
6623 (obsd_auxv_parse): Remove.
6624 (obsd_init_abi): Remove comment.
6625 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6626 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6627 * nbsd-tdep.c: Include "auxv.h".
6628 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6629
6630 2020-04-08 Tom Tromey <tromey@adacore.com>
6631
6632 * nat/windows-nat.h (last_wait_event): Don't declare.
6633 (wait_for_debug_event): Update comment.
6634 * nat/windows-nat.c (last_wait_event): Now static.
6635
6636 2020-04-08 Tom Tromey <tromey@adacore.com>
6637
6638 * windows-nat.c (wait_for_debug_event): Move to
6639 nat/windows-nat.c.
6640 * nat/windows-nat.h (wait_for_debug_event): Declare.
6641 * nat/windows-nat.c (wait_for_debug_event): Move from
6642 windows-nat.c. No longer static.
6643
6644 2020-04-08 Tom Tromey <tromey@adacore.com>
6645
6646 * windows-nat.c (get_windows_debug_event): Use
6647 fetch_pending_stop.
6648 * nat/windows-nat.h (fetch_pending_stop): Declare.
6649 * nat/windows-nat.c (fetch_pending_stop): New function.
6650
6651 2020-04-08 Tom Tromey <tromey@adacore.com>
6652
6653 * windows-nat.c (windows_continue): Use matching_pending_stop and
6654 continue_last_debug_event.
6655 * nat/windows-nat.h (matching_pending_stop)
6656 (continue_last_debug_event): Declare.
6657 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6658 (matching_pending_stop, continue_last_debug_event): New
6659 functions.
6660
6661 2020-04-08 Tom Tromey <tromey@adacore.com>
6662
6663 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6664 (handle_exception_result): Move to nat/windows-nat.h.
6665 (DEBUG_EXCEPTION_SIMPLE): Remove.
6666 (windows_nat::handle_ms_vc_exception): New function.
6667 (handle_exception): Move to nat/windows-nat.c.
6668 (get_windows_debug_event): Update.
6669 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6670 nat/windows-nat.c.
6671 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6672 (handle_exception_result): Move from windows-nat.c.
6673 (handle_exception): Declare.
6674 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6675 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6676 windows-nat.c.
6677
6678 2020-04-08 Tom Tromey <tromey@adacore.com>
6679
6680 * windows-nat.c (exception_count, event_count): Remove.
6681 (handle_exception, get_windows_debug_event)
6682 (do_initial_windows_stuff): Update.
6683
6684 2020-04-08 Tom Tromey <tromey@adacore.com>
6685
6686 * windows-nat.c (windows_nat::handle_load_dll)
6687 (windows_nat::handle_unload_dll): Rename. No longer static.
6688 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6689 Declare.
6690
6691 2020-04-08 Tom Tromey <tromey@adacore.com>
6692
6693 * complaints.h (stop_whining): Declare at top-level.
6694 (complaint): Don't declare stop_whining.
6695
6696 2020-04-08 Tom Tromey <tromey@adacore.com>
6697
6698 * windows-nat.c (windows_nat::handle_output_debug_string):
6699 Rename. No longer static.
6700 * nat/windows-nat.h (handle_output_debug_string): Declare.
6701
6702 2020-04-08 Tom Tromey <tromey@adacore.com>
6703
6704 * windows-nat.c (current_process_handle, current_process_id)
6705 (main_thread_id, last_sig, current_event, last_wait_event)
6706 (current_windows_thread, desired_stop_thread_id, pending_stops)
6707 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6708 (display_selectors, fake_create_process)
6709 (get_windows_debug_event): Update.
6710 * nat/windows-nat.h (current_process_handle, current_process_id)
6711 (main_thread_id, last_sig, current_event, last_wait_event)
6712 (current_windows_thread, desired_stop_thread_id, pending_stops)
6713 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6714 * nat/windows-nat.c (current_process_handle, current_process_id)
6715 (main_thread_id, last_sig, current_event, last_wait_event)
6716 (current_windows_thread, desired_stop_thread_id, pending_stops)
6717 (siginfo_er): New globals. Move from windows-nat.c.
6718
6719 2020-04-08 Tom Tromey <tromey@adacore.com>
6720
6721 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6722 (handle_load_dll): Update.
6723 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6724
6725 2020-04-08 Tom Tromey <tromey@adacore.com>
6726
6727 * windows-nat.c (enum thread_disposition_type): Move to
6728 nat/windows-nat.h.
6729 (windows_nat::thread_rec): Rename from thread_rec. No longer
6730 static.
6731 (windows_add_thread, windows_nat_target::fetch_registers)
6732 (windows_nat_target::store_registers, handle_exception)
6733 (windows_nat_target::resume, get_windows_debug_event)
6734 (windows_nat_target::get_tib_address)
6735 (windows_nat_target::thread_name)
6736 (windows_nat_target::thread_alive): Update.
6737 * nat/windows-nat.h (enum thread_disposition_type): Move from
6738 windows-nat.c.
6739 (thread_rec): Declare.
6740
6741 2020-04-08 Tom Tromey <tromey@adacore.com>
6742
6743 * windows-nat.c: Add "using namespace".
6744 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6745 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6746
6747 2020-04-08 Tom Tromey <tromey@adacore.com>
6748
6749 * nat/windows-nat.h (struct windows_thread_info): Declare
6750 destructor.
6751 * nat/windows-nat.c (~windows_thread_info): New.
6752
6753 2020-04-08 Tom Tromey <tromey@adacore.com>
6754
6755 PR gdb/22992
6756 * windows-nat.c (current_event): Update comment.
6757 (last_wait_event, desired_stop_thread_id): New globals.
6758 (struct pending_stop): New.
6759 (pending_stops): New global.
6760 (windows_nat_target) <stopped_by_sw_breakpoint>
6761 <supports_stopped_by_sw_breakpoint>: New methods.
6762 (windows_fetch_one_register): Add assertions. Adjust PC.
6763 (windows_continue): Handle pending stops. Suspend other threads
6764 when stepping. Use last_wait_event
6765 (wait_for_debug_event): New function.
6766 (get_windows_debug_event): Use wait_for_debug_event. Handle
6767 pending stops. Queue spurious stops.
6768 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6769 (windows_nat_target::kill): Use wait_for_debug_event.
6770 * nat/windows-nat.h (struct windows_thread_info)
6771 <stopped_at_software_breakpoint>: New field.
6772 * nat/windows-nat.c (windows_thread_info::resume): Clear
6773 stopped_at_software_breakpoint.
6774
6775 2020-04-08 Tom Tromey <tromey@adacore.com>
6776
6777 * windows-nat.c (enum thread_disposition_type): New.
6778 (thread_rec): Replace "get_context" parameter with "disposition";
6779 change type.
6780 (windows_add_thread, windows_nat_target::fetch_registers)
6781 (windows_nat_target::store_registers, handle_exception)
6782 (windows_nat_target::resume, get_windows_debug_event)
6783 (windows_nat_target::get_tib_address)
6784 (windows_nat_target::thread_name)
6785 (windows_nat_target::thread_alive): Update.
6786
6787 2020-04-08 Tom Tromey <tromey@adacore.com>
6788
6789 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6790 (windows_continue): Use windows_continue::resume.
6791 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6792 resume>: Declare new methods.
6793 * nat/windows-nat.c: New file.
6794 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6795
6796 2020-04-08 Tom Tromey <tromey@adacore.com>
6797
6798 * windows-nat.c (windows_add_thread, windows_delete_thread)
6799 (windows_nat_target::fetch_registers)
6800 (windows_nat_target::store_registers, fake_create_process)
6801 (windows_nat_target::resume, windows_nat_target::resume)
6802 (get_windows_debug_event, windows_nat_target::wait)
6803 (windows_nat_target::pid_to_str)
6804 (windows_nat_target::get_tib_address)
6805 (windows_nat_target::get_ada_task_ptid)
6806 (windows_nat_target::thread_name)
6807 (windows_nat_target::thread_alive): Use lwp, not tid.
6808
6809 2020-04-08 Tom Tromey <tromey@adacore.com>
6810
6811 * windows-nat.c (handle_exception)
6812 (windows_nat_target::thread_name): Update.
6813 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6814 <name>: Now unique_xmalloc_ptr.
6815
6816 2020-04-08 Tom Tromey <tromey@adacore.com>
6817
6818 * windows-nat.c (thread_rec)
6819 (windows_nat_target::fetch_registers): Update.
6820 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6821 Update comment.
6822 <debug_registers_changed, reload_context>: Now bool.
6823
6824 2020-04-08 Tom Tromey <tromey@adacore.com>
6825
6826 * windows-nat.c (windows_add_thread): Use new.
6827 (windows_init_thread_list, windows_delete_thread): Use delete.
6828 (get_windows_debug_event): Update.
6829 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6830 destructor, and initializers.
6831
6832 2020-04-08 Tom Tromey <tromey@adacore.com>
6833
6834 * windows-nat.c (struct windows_thread_info): Remove.
6835 * nat/windows-nat.h: New file.
6836
6837 2020-04-08 Tom Tromey <tromey@adacore.com>
6838
6839 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6840 (thread_rec, windows_add_thread, windows_delete_thread)
6841 (windows_continue): Update.
6842
6843 2020-04-08 Tom Tromey <tromey@adacore.com>
6844
6845 * windows-nat.c (struct windows_thread_info): Remove typedef.
6846 (thread_head): Remove.
6847 (thread_list): New global.
6848 (thread_rec, windows_add_thread, windows_init_thread_list)
6849 (windows_delete_thread, windows_continue): Update.
6850
6851 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6852
6853 * windows-tdep.h (windows_init_abi): Add comment.
6854 (cygwin_init_abi): New declaration.
6855 * windows-tdep.c: Split signal enumeration in two, one for
6856 Windows and one for Cygwin.
6857 (windows_gdb_signal_to_target): Only deal with signal of the
6858 Windows OS ABI.
6859 (cygwin_gdb_signal_to_target): New function.
6860 (windows_init_abi): Rename to windows_init_abi_common, don't set
6861 gdb_signal_to_target gdbarch method. Add new new function with
6862 this name.
6863 (cygwin_init_abi): New function.
6864 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6865 comment. Don't call windows_init_abi.
6866 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6867 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6868 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6869 i386_windows_init_abi_common, don't call windows_init_abi. Add
6870 a new function of this name.
6871 (i386_cygwin_init_abi): New function.
6872 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6873 OS ABI Cygwin.
6874
6875 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6876
6877 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6878 parameter.c.
6879 (dwarf2_read_gdb_index): Update.
6880
6881 2020-04-07 Kamil Rytarowski <n54@gmx.com>
6882
6883 * nbsd-tdep.c: Include "objfiles.h".
6884 (nbsd_skip_solib_resolver): New.
6885 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6886
6887 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6888
6889 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6890 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6891 with DW_LLE_base_addressx are being emitted in DWARFv5.
6892 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6893 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6894 unsigned integer.
6895
6896 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6897
6898 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6899 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6900 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6901 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6902 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6903 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6904 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6905
6906
6907 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6908
6909 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6910 (read_loclist_index): New function definition.
6911 (lookup_loclist_base): New function definition.
6912 (read_loclist_header): New function definition.
6913 (dwarf2_cu): Add loclist_base and loclist_header field.
6914 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6915 (read_full_die_1): Read the value of DW_AT_loclists_base.
6916 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6917 (read_attribute_value): Handle DW_FORM_loclistx.
6918 (skip_one_die): Handle DW_FORM_loclistx.
6919 (loclist_header): New structure declaration.
6920 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6921
6922 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6923
6924 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6925 constructor. Remove `addr` parameter from other constructor and
6926 add `per_cu` parameter.
6927 * dwarf2/read.c (create_partial_symtab): Update.
6928
6929 2020-04-07 Tom de Vries <tdevries@suse.de>
6930
6931 PR symtab/25796
6932 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6933 (partial_die_info::fixup): Inherit has_const_value.
6934
6935 2020-04-07 Tom de Vries <tdevries@suse.de>
6936
6937 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6938 symbols without address.
6939
6940 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6941
6942 * nbsd-nat.h (struct thread_info): Add forward declaration.
6943 (nbsd_nat_target::thread_alive): Add.
6944 (nbsd_nat_target::thread_name): Likewise.
6945 (nbsd_nat_target::update_thread_list): Likewise.
6946 (update_thread_list::post_attach): Likewise.
6947 (post_attach::pid_to_str): Likewise.
6948 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6949 (nbsd_thread_lister): Add.
6950 (nbsd_nat_target::thread_alive): Likewise.
6951 (nbsd_nat_target::thread_name): Likewise.
6952 (nbsd_add_threads): Likewise.
6953 (update_thread_list::post_attach): Likewise.
6954 (nbsd_nat_target::update_thread_list): Likewise.
6955 (post_attach::pid_to_str): Likewise.
6956
6957 2020-04-06 Tom Tromey <tromey@adacore.com>
6958
6959 * ada-valprint.c (print_variant_part): Extract the variant field.
6960 (print_field_values): Use the field as the outer value when
6961 recursing.
6962
6963 2020-04-06 Tom Tromey <tromey@adacore.com>
6964
6965 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6966 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6967 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6968 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6969 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6970
6971 2020-04-06 Tom Tromey <tromey@adacore.com>
6972
6973 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6974 TYPE_CODE_ERROR.
6975
6976 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6977
6978 * nbsd-tdep.c: Include "gdbarch.h".
6979 Define enum with NetBSD signal numbers.
6980 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6981 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6982 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6983 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6984 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6985 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6986 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6987 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6988 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6989 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6990 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6991 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6992
6993 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
6994
6995 PR gdb/25325
6996 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6997
6998 2020-04-03 Tom Tromey <tromey@adacore.com>
6999
7000 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
7001 Read constant block.
7002
7003 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7004
7005 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
7006 (gdb_bfd_get_full_section_contents): New declaration.
7007 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
7008 * windows-tdep.c (is_linked_with_cygwin_dll): Use
7009 gdb_bfd_get_full_section_contents.
7010
7011 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7012
7013 * exec.c (build_section_table): Replace internal_error with
7014 gdb_assert.
7015 (section_table_xfer_memory_partial): Likewise.
7016 * mdebugread.c (parse_partial_symbols): Likewise.
7017 * psymtab.c (lookup_partial_symbol): Likewise.
7018 * utils.c (wrap_here): Likewise.
7019
7020 2020-04-02 Tom Tromey <tromey@adacore.com>
7021
7022 * f-lang.c (build_fortran_types): Use arch_type to initialize
7023 builtin_complex_s32 in the TYPE_CODE_ERROR case.
7024
7025 2020-04-02 Tom Tromey <tromey@adacore.com>
7026
7027 * dwarf2/read.c (partial_die_info::read): Do not create a vector
7028 of attributes.
7029
7030 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
7031 Bernd Edlinger <bernd.edlinger@hotmail.de>
7032 Tom Tromey <tromey@adacore.com>
7033
7034 * buildsym.c (buildsym_compunit::record_line): Remove
7035 deduplication code.
7036
7037 2020-04-02 Tom de Vries <tdevries@suse.de>
7038
7039 PR ada/24671
7040 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
7041
7042 2020-04-02 Tom de Vries <tdevries@suse.de>
7043
7044 * dwarf2/read.c (dwarf2_gdb_index_functions,
7045 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
7046 NULL.
7047 * psymtab.c (psym_lookup_global_symbol_language): New function.
7048 (psym_functions): Init psym_lookup_global_symbol_language with
7049 psym_lookup_global_symbol_language.
7050 * symfile-debug.c (debug_sym_quick_functions): Init
7051 lookup_global_symbol_language with NULL.
7052 * symfile.c (set_initial_language): Remove fixme comment.
7053 * symfile.h (struct quick_symbol_functions): Add
7054 lookup_global_symbol_language.
7055 * symtab.c (find_quick_global_symbol_language): New function.
7056 (find_main_name): Use find_quick_global_symbol_language.
7057
7058 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
7059
7060 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
7061
7062 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7063
7064 * buildsym.c (record_line): Fix undefined behavior and preserve
7065 lines at eof.
7066
7067 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7068
7069 * buildsym.c (record_line): Fix the resizing condition.
7070
7071 2020-04-01 Tom Tromey <tom@tromey.com>
7072
7073 * value.h (value_literal_complex): Add comment.
7074 * valops.c (value_literal_complex): Refer to value.h.
7075
7076 2020-04-01 Tom Tromey <tom@tromey.com>
7077
7078 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
7079 (scalar_type): New rule, from typebase.
7080 (typebase): Use scalar_type. Recognize complex types.
7081 (field_name): Handle FLOAT_KEYWORD.
7082 (ident_tokens): Add _Complex and __complex__.
7083
7084 2020-04-01 Tom Tromey <tom@tromey.com>
7085
7086 PR exp/25299:
7087 * valarith.c (promotion_type, complex_binop): New functions.
7088 (scalar_binop): Handle complex numbers. Use promotion_type.
7089 (value_pos, value_neg, value_complement): Handle complex numbers.
7090
7091 2020-04-01 Tom Tromey <tom@tromey.com>
7092
7093 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
7094 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
7095 (parse_number): Handle complex numbers.
7096
7097 2020-04-01 Tom Tromey <tom@tromey.com>
7098
7099 * c-valprint.c (c_decorations): Change complex suffix to "i".
7100
7101 2020-04-01 Tom Tromey <tom@tromey.com>
7102
7103 * valprint.c (generic_value_print_complex): Use accessors.
7104 * value.h (value_real_part, value_imaginary_part): Declare.
7105 * valops.c (value_real_part, value_imaginary_part): New
7106 functions.
7107 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
7108
7109 2020-04-01 Tom Tromey <tom@tromey.com>
7110
7111 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
7112 (read_range_type): Update.
7113 * mdebugread.c (basic_type): Update.
7114 * go-lang.c (build_go_types): Use init_complex_type.
7115 * gdbtypes.h (struct main_type) <complex_type>: New member.
7116 (init_complex_type): Update.
7117 (arch_complex_type): Don't declare.
7118 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
7119 Make name if none given. Use alloc_type_copy. Look for cached
7120 complex type.
7121 (arch_complex_type): Remove.
7122 (gdbtypes_post_init): Use init_complex_type.
7123 * f-lang.c (build_fortran_types): Use init_complex_type.
7124 * dwarf2/read.c (read_base_type): Update.
7125 * d-lang.c (build_d_types): Use init_complex_type.
7126 * ctfread.c (read_base_type): Update.
7127
7128 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7129
7130 * infrun.c (stop_all_threads): Update assertion, plus when
7131 stopping threads, take into account that we might be trying
7132 to stop an all-stop target.
7133 (stop_waiting): Call 'stop_all_threads' if there exists a
7134 non-stop target.
7135
7136 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7137
7138 * target.h (exists_non_stop_target): New function declaration.
7139 * target.c (exists_non_stop_target): New function.
7140
7141 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
7142
7143 PR gdb/24789
7144 * eval.c (is_integral_or_integral_reference): New function.
7145 (evaluate_subexp_standard): Allow integer references in
7146 pointer arithmetic.
7147
7148 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7149
7150 * remote.c (remote_target::remote_parse_stop_reply): Remove the
7151 check for no ptid in the stop reply when the target is non-stop.
7152
7153 2020-04-01 Tom Tromey <tromey@adacore.com>
7154
7155 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
7156 "name" parameter to rvalue reference. Initialize m_name_holder.
7157 <lookup_name_info>: New overloads.
7158 <name>: Return gdb::string_view.
7159 <c_str>: New method.
7160 <make_ignore_params>: Update.
7161 <search_name_hash>: Update.
7162 <language_lookup_name>: Return const char *.
7163 <m_name>: Change type.
7164 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
7165 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
7166 (lookup_name_info::match_any): Update.
7167 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7168 Update.
7169 * minsyms.c (linkage_name_str): Update.
7170 * language.c (default_symbol_name_matcher): Update.
7171 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7172 Update.
7173 * ada-lang.c (ada_fold_name): Change parameter to string_view.
7174 (ada_lookup_name_info::ada_lookup_name_info): Update.
7175 (literal_symbol_name_matcher): Update.
7176
7177 2020-04-01 Tom Tromey <tromey@adacore.com>
7178
7179 * psymtab.c (psymtab_search_name): Remove function.
7180 (psym_lookup_symbol): Create search name and lookup name here.
7181 (lookup_partial_symbol): Remove "name" parameter; add
7182 lookup_name.
7183 (psym_expand_symtabs_for_function): Update.
7184
7185 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
7186
7187 PR tui/25597:
7188 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7189
7190 2020-03-31 Tom Tromey <tromey@adacore.com>
7191
7192 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7193 memcpy.
7194
7195 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
7196
7197 * features/riscv/32bit-csr.xml: Regenerated.
7198 * features/riscv/64bit-csr.xml: Regenerated.
7199
7200 2020-03-30 Tom Tromey <tromey@adacore.com>
7201
7202 * ada-valprint.c (print_variant_part): Update.
7203 * ada-lang.h (ada_which_variant_applies): Update.
7204 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7205 outer_valaddr parameters; replace with "outer" value parameter.
7206 (to_fixed_variant_branch_type): Update.
7207
7208 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7209
7210 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7211 <list>. Remove inclusion of observable.h.
7212 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7213 (struct arch_lwp_info): New struct.
7214 (class ppc_linux_dreg_interface): New class.
7215 (struct ppc_linux_process_info): New struct.
7216 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7217 <low_new_clone, low_forget_process, low_prepare_to_resume>
7218 <copy_thread_dreg_state, mark_thread_stale>
7219 <mark_debug_registers_changed, register_hw_breakpoint>
7220 <clear_hw_breakpoint, register_wp, clear_wp>
7221 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7222 <num_memory_accesses, get_trigger_type>
7223 <create_watchpoint_request, hwdebug_point_cmp>
7224 <init_arch_lwp_info, get_arch_lwp_info>
7225 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7226 methods.
7227 <struct ptid_hash>: New inner struct.
7228 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7229 members.
7230 (saved_dabr_value, hwdebug_info, max_slots_number)
7231 (struct hw_break_tuple, struct thread_points, ppc_threads)
7232 (have_ptrace_hwdebug_interface)
7233 (hwdebug_find_thread_points_by_tid)
7234 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7235 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7236 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7237 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7238 use m_dreg_interface.
7239 (hwdebug_point_cmp): Change to...
7240 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7241 reference arguments instead of pointers.
7242 (ppc_linux_nat_target::ranged_break_num_registers): Use
7243 m_dreg_interface.
7244 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7245 m_dreg_interface. Call register_hw_breakpoint.
7246 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7247 m_dreg_interface. Call clear_hw_breakpoint.
7248 (get_trigger_type): Change to...
7249 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7250 comment.
7251 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7252 use m_dreg_interface. Call register_hw_breakpoint.
7253 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7254 use m_dreg_interface. Call clear_hw_breakpoint.
7255 (can_use_watchpoint_cond_accel): Change to...
7256 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7257 method. Update comment, use m_dreg_interface and
7258 m_process_info.
7259 (calculate_dvc): Change to...
7260 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7261 m_dreg_interface.
7262 (num_memory_accesses): Change to...
7263 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7264 (check_condition): Change to...
7265 (ppc_linux_nat_target::check_condition): ...this method.
7266 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7267 comment, use m_dreg_interface.
7268 (create_watchpoint_request): Change to...
7269 (ppc_linux_nat_target::create_watchpoint_request): ...this
7270 method. Use m_dreg_interface.
7271 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7272 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7273 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7274 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7275 (ppc_linux_nat_target::low_forget_process)
7276 (ppc_linux_nat_target::low_new_fork)
7277 (ppc_linux_nat_target::low_new_clone)
7278 (ppc_linux_nat_target::low_delete_thread)
7279 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7280 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7281 only call mark_thread_stale.
7282 (ppc_linux_thread_exit): Remove.
7283 (ppc_linux_nat_target::stopped_data_address): Change to...
7284 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7285 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7286 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7287 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7288 comment. Call low_stopped_data_address.
7289 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7290 m_dreg_interface.
7291 (ppc_linux_nat_target::masked_watch_num_registers): Use
7292 m_dreg_interface.
7293 (ppc_linux_nat_target::copy_thread_dreg_state)
7294 (ppc_linux_nat_target::mark_thread_stale)
7295 (ppc_linux_nat_target::mark_debug_registers_changed)
7296 (ppc_linux_nat_target::register_hw_breakpoint)
7297 (ppc_linux_nat_target::clear_hw_breakpoint)
7298 (ppc_linux_nat_target::register_wp)
7299 (ppc_linux_nat_target::clear_wp)
7300 (ppc_linux_nat_target::init_arch_lwp_info)
7301 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7302 (_initialize_ppc_linux_nat): Remove observer callback.
7303
7304 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7305
7306 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7307 (ppc_linux_nat_target::auxv_parse)
7308 (ppc_linux_nat_target::read_description)
7309 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7310 Move up.
7311
7312 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7313
7314 * linux-nat.h (low_new_clone): New method.
7315 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7316
7317 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7318
7319 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7320 (dbx_expand_psymtab): ... this.
7321 (start_psymtab): Update.
7322 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7323 (mdebug_expand_psymtab): ... this.
7324 (parse_partial_symbols): Update.
7325 (new_psymtab): Update.
7326 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7327 (xcoff_expand_psymtab): ... this.
7328 (xcoff_start_psymtab): Update.
7329
7330 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7331
7332 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7333 <expand_dependencies>: ... this.
7334 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7335 (partial_symtab::expand_dependencies): ... this.
7336 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7337 Update.
7338 (dwarf2_psymtab::expand_psymtab): Update.
7339 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7340 * mdebugread.c (psymtab_to_symtab_1): Update.
7341 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7342
7343 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7344
7345 * psympriv.h (discard_psymtab): Remove.
7346 * dbxread.c (dbx_end_psymtab): Update.
7347 * xcoffread.c (xcoff_end_psymtab): Update.
7348
7349 2020-03-28 Tom Tromey <tom@tromey.com>
7350
7351 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7352 comment.
7353
7354 2020-03-28 Tom Tromey <tom@tromey.com>
7355
7356 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7357
7358 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
7359
7360 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7361
7362 2020-03-26 John Baldwin <jhb@FreeBSD.org>
7363
7364 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7365
7366 2020-03-26 Tom Tromey <tom@tromey.com>
7367
7368 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7369 (mark_common_block_symbol_computed, read_tag_string_type)
7370 (attr_to_dynamic_prop, read_subrange_type): Update.
7371 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7372 to be methods on struct attribute.
7373 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7374 (read_call_site_scope, partial_die_info::read)
7375 (partial_die_info::read, lookup_die_type, follow_die_ref):
7376 Update.
7377 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7378 from dwarf2_get_ref_die_offset.
7379 (attribute::constant_value): New method, from
7380 dwarf2_get_attr_constant_value.
7381 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7382 Declare method.
7383 <constant_value>: New method.
7384
7385 2020-03-26 Tom Tromey <tom@tromey.com>
7386
7387 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7388 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7389 (dwarf_type_encoding_name): Move to stringify.c.
7390 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7391 * dwarf2/stringify.c: New file.
7392 * dwarf2/stringify.h: New file.
7393
7394 2020-03-26 Tom Tromey <tom@tromey.com>
7395
7396 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7397 Rewrite.
7398
7399 2020-03-26 Tom Tromey <tom@tromey.com>
7400
7401 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7402 methods.
7403 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7404 (lookup_ranges_base): Likewise.
7405 (read_cutu_die_from_dwo, read_full_die_1): Update.
7406
7407 2020-03-26 Tom Tromey <tom@tromey.com>
7408
7409 * dwarf2/read.c (read_import_statement, read_file_scope)
7410 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7411 (read_lexical_block_scope, read_call_site_scope)
7412 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7413 (handle_struct_member_die, process_structure_scope)
7414 (update_enumeration_type_from_children)
7415 (process_enumeration_scope, read_array_type, read_common_block)
7416 (read_namespace, read_module, read_subroutine_type): Update.
7417 (sibling_die): Remove.
7418
7419 2020-03-26 Tom Tromey <tom@tromey.com>
7420
7421 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7422 (build_type_psymtabs_reader, read_structure_type)
7423 (read_enumeration_type, read_full_die_1): Update.
7424 (dwarf2_attr_no_follow): Move to die.h.
7425 * dwarf2/die.h (struct die_info) <attr>: New method.
7426
7427 2020-03-26 Tom Tromey <tom@tromey.com>
7428
7429 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7430 <base_address>: Now an optional.
7431 (dwarf2_find_base_address, dwarf2_rnglists_process)
7432 (dwarf2_ranges_process, fill_in_loclist_baton)
7433 (dwarf2_symbol_mark_computed): Update.
7434
7435 2020-03-26 Tom Tromey <tom@tromey.com>
7436
7437 * dwarf2/read.c (struct die_info): Move to die.h.
7438 * dwarf2/die.h: New file.
7439
7440 2020-03-26 Tom Tromey <tom@tromey.com>
7441
7442 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7443 * dwarf2/read.c
7444 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7445 Move to line-header.c.
7446 (read_checked_initial_length_and_offset, read_formatted_entries):
7447 Likewise.
7448 (dwarf_decode_line_header): Split into two.
7449 * dwarf2/line-header.c
7450 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7451 Move from read.c.
7452 (read_checked_initial_length_and_offset, read_formatted_entries):
7453 Likewise.
7454 (dwarf_decode_line_header): New function, split from read.c.
7455
7456 2020-03-26 Tom Tromey <tom@tromey.com>
7457
7458 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7459 Declare method.
7460 * dwarf2/read.c (read_attribute_value): Update.
7461 (dwarf2_per_objfile::read_line_string): Rename from
7462 read_indirect_line_string.
7463 (read_formatted_entries): Update.
7464
7465 2020-03-26 Tom Tromey <tom@tromey.com>
7466
7467 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7468 variable.
7469
7470 2020-03-26 Tom Tromey <tom@tromey.com>
7471
7472 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7473 const.
7474 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7475 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7476 parameter const.
7477
7478 2020-03-26 Tom Tromey <tom@tromey.com>
7479
7480 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7481 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7482 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7483 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7484
7485 2020-03-26 Tom Tromey <tom@tromey.com>
7486
7487 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7488 file_names_size, file_full_name, file_file_name>: Use const.
7489 <file_name_at, file_names>: Add const overload.
7490 * dwarf2/line-header.c (line_header::file_file_name)
7491 (line_header::file_full_name): Update.
7492
7493 2020-03-26 Tom Tromey <tom@tromey.com>
7494
7495 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7496 (macro_start_file, consume_improper_spaces)
7497 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7498 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7499 (dwarf_decode_macros): Move to macro.c.
7500 * dwarf2/macro.c: New file.
7501 * dwarf2/macro.h: New file.
7502 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7503
7504 2020-03-26 Tom Tromey <tom@tromey.com>
7505
7506 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7507 method.
7508 * dwarf2/section.c: New method. From
7509 read_indirect_string_at_offset_from.
7510 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7511 (read_indirect_string_at_offset_from): Move to section.c.
7512 (read_indirect_string_at_offset): Rewrite.
7513 (read_indirect_line_string_at_offset): Remove.
7514 (read_indirect_string, read_indirect_line_string)
7515 (dwarf_decode_macro_bytes): Update.
7516
7517 2020-03-26 Tom Tromey <tom@tromey.com>
7518
7519 * dwarf2/section.h (struct dwarf2_section_info)
7520 <overload_complaint>: Declare.
7521 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7522 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7523 Rename from dwarf2_section_buffer_overflow_complaint.
7524 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7525 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7526
7527 2020-03-26 Tom Tromey <tom@tromey.com>
7528
7529 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7530 Declare.
7531 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7532 Move from read.c.
7533 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7534 to section.c.
7535
7536 2020-03-26 Tom Tromey <tom@tromey.com>
7537
7538 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7539
7540 2020-03-26 Tom Tromey <tom@tromey.com>
7541
7542 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7543 "builder".
7544 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7545 parameter.
7546 (dwarf_decode_macros): Update.
7547
7548 2020-03-26 Tom Tromey <tom@tromey.com>
7549
7550 * dwarf2/read.c (read_attribute_value): Update.
7551 (read_indirect_string_from_dwz): Move to dwz.c; change into
7552 method.
7553 (dwarf_decode_macro_bytes): Update.
7554 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7555 * dwarf2/dwz.c: New file.
7556 * Makefile.in (COMMON_SFILES): Add dwz.c.
7557
7558 2020-03-26 Tom Tromey <tom@tromey.com>
7559
7560 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7561 * dwarf2/read.c: Add include.
7562 * dwarf2/index-write.c: Add include.
7563 * dwarf2/index-cache.c: Add include.
7564 * dwarf2/dwz.h: New file.
7565
7566 2020-03-25 Tom Tromey <tom@tromey.com>
7567
7568 * compile/compile-object-load.c (get_out_value_type): Mention
7569 correct symbol name in error message.
7570
7571 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
7572
7573 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7574
7575 2020-03-25 Tom de Vries <tdevries@suse.de>
7576
7577 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7578 * symmisc.c (dump_symtab_1): Print user and includes fields.
7579 (maintenance_info_symtabs): Same.
7580
7581 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7582
7583 PR gdb/25534
7584 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7585 (riscv_regcache_cooked_write): New function.
7586 (riscv_push_dummy_call): Use new function.
7587 (riscv_return_value): Likewise.
7588
7589 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7590
7591 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7592 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7593 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7594 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7595 * infrun.c (follow_fork): Likewise.
7596 (follow_fork_inferior): Likewise.
7597 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7598 * linux-nat.h (class linux_nat_target): Likewise.
7599 * remote.c (class remote_target) <follow_fork>: Likewise.
7600 (remote_target::follow_fork): Likewise.
7601 * target-delegates.c: Re-generate.
7602 * target.c (default_follow_fork): Likewise.
7603 (target_follow_fork): Likewise.
7604 * target.h (struct target_ops) <follow_fork>: Likewise.
7605 (target_follow_fork): Likewise.
7606
7607 2020-03-24 Tom de Vries <tdevries@suse.de>
7608
7609 * psymtab.c (maintenance_info_psymtabs): Print user field.
7610
7611 2020-03-20 Tom Tromey <tromey@adacore.com>
7612
7613 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7614 const.
7615 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7616 const.
7617
7618 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
7619
7620 * ptrace.m4: Don't check for ptrace declaration.
7621 * config.in: Re-generate.
7622 * configure: Re-generate.
7623 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7624 not defined.
7625
7626 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7627
7628 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7629 `PTRACE_TYPE_RET'.
7630 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7631 * sparc-nat.c (gdb_ptrace): Likewise.
7632 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7633
7634 2020-03-20 Tom Tromey <tromey@adacore.com>
7635
7636 * c-exp.y (lex_one_token): Fix assert.
7637
7638 2020-03-20 Tom Tromey <tromey@adacore.com>
7639
7640 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7641 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7642 strncpy call.
7643
7644 2020-03-20 Tom Tromey <tromey@adacore.com>
7645
7646 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7647
7648 2020-03-20 Tom Tromey <tromey@adacore.com>
7649
7650 * ada-valprint.c (print_variant_part): Remove parameters; switch
7651 to value-based API.
7652 (print_field_values): Likewise.
7653 (ada_val_print_struct_union): Likewise.
7654 (ada_value_print_1): Update.
7655
7656 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7657
7658 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7659 nbsd_nat_target instead of inf_ptrace_target.
7660 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7661 nbsd_nat_target.
7662
7663 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7664
7665 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7666 it to the ptrace call.
7667 * (store_registers): Likewise.
7668
7669 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7670
7671 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7672 it to the ptrace call.
7673 * (store_registers): Likewise.
7674
7675 2020-03-19 Luis Machado <luis.machado@linaro.org>
7676
7677 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7678 valid, fetch vg value from ptrace.
7679
7680 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7681 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7682 * inf-ptrace.c: Likewise.
7683 * (gdb_ptrace): Add.
7684 * (inf_ptrace_target::resume): Update.
7685 * (inf_ptrace_target::xfer_partial): Likewise.
7686 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7687 * (inf_ptrace_peek_poke): Update.
7688
7689 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7690
7691 * x86-bsd-nat.c (gdb_ptrace): New.
7692 * (x86bsd_dr_set): Add new argument `ptid'.
7693 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7694 x86bsd_dr_set_addr): Update.
7695
7696 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7697
7698 * remote.c (remote_target::process_stop_reply): Handle events for
7699 all threads differently.
7700
7701 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7702
7703 * completer.c (completion_tracker::remove_completion): Define new
7704 function.
7705 * completer.h (completion_tracker::remove_completion): Declare new
7706 function.
7707 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7708 when adding a C++ function symbol.
7709
7710 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7711
7712 * completer.c (completion_tracker::completion_hash_entry): Define
7713 new class.
7714 (advance_to_filename_complete_word_point): Call
7715 recompute_lowest_common_denominator.
7716 (completion_tracker::completion_tracker): Call discard_completions
7717 to setup the hash table.
7718 (completion_tracker::discard_completions): Allow for being called
7719 from the constructor, pass new equal function, and element deleter
7720 when constructing the hash table. Initialise new class member
7721 variables.
7722 (completion_tracker::maybe_add_completion): Remove use of
7723 m_entries_vec, and store more information into m_entries_hash.
7724 (completion_tracker::recompute_lcd_visitor): New function, most
7725 content taken from...
7726 (completion_tracker::recompute_lowest_common_denominator):
7727 ...here, this now just visits each item in the hash calling the
7728 above visitor.
7729 (completion_tracker::build_completion_result): Remove use of
7730 m_entries_vec, call recompute_lowest_common_denominator.
7731 * completer.h (completion_tracker::have_completions): Remove use
7732 of m_entries_vec.
7733 (completion_tracker::completion_hash_entry): Declare new class.
7734 (completion_tracker::recompute_lowest_common_denominator): Change
7735 function signature.
7736 (completion_tracker::recompute_lcd_visitor): Declare new function.
7737 (completion_tracker::m_entries_vec): Delete.
7738 (completion_tracker::m_entries_hash): Initialize to NULL.
7739 (completion_tracker::m_lowest_common_denominator_valid): New
7740 member variable.
7741 (completion_tracker::m_lowest_common_denominator_max_length): New
7742 member variable.
7743
7744 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7745
7746 * regformats/regdef.h: Put reg in gdb namespace.
7747
7748 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7749
7750 * i386-bsd-nat.c (gdb_ptrace): New.
7751 * (i386bsd_fetch_inferior_registers,
7752 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7753 * (i386bsd_fetch_inferior_registers,
7754 i386bsd_store_inferior_registers) Use gdb_ptrace.
7755
7756 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7757
7758 * amd64-bsd-nat.c (gdb_ptrace): New.
7759 * (amd64bsd_fetch_inferior_registers,
7760 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7761 * (amd64bsd_fetch_inferior_registers,
7762 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7763
7764 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7765
7766 * user-regs.c (user_reg::read): Rename to...
7767 (user_reg::xread): ...this.
7768 * (append_user_reg): Rename argument `read' to `xread'.
7769 * (user_reg_add_builtin): Likewise.
7770 * (user_reg_add): Likewise.
7771 * (value_of_user_reg): Likewise.
7772
7773 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7774
7775 * sparc-nat.c (gdb_ptrace): New.
7776 * sparc-nat.c (sparc_fetch_inferior_registers)
7777 (sparc_store_inferior_registers) Remove obsolete comment.
7778 * sparc-nat.c (sparc_fetch_inferior_registers)
7779 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7780 * sparc-nat.c (sparc_fetch_inferior_registers)
7781 (sparc_store_inferior_registers) Use gdb_ptrace.
7782
7783 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7784
7785 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7786 it to the ptrace call.
7787 * sh-nbsd-nat.c (store_registers): Likewise.
7788
7789 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7790
7791 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7792 nbsd_nat_target instead of inf_ptrace_target.
7793 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7794 nbsd_nat_target.
7795
7796 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7797
7798 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7799
7800 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7801
7802 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7803 <sys/sysctl.h>.
7804 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7805
7806 2020-03-17 Tom de Vries <tdevries@suse.de>
7807
7808 PR gdb/23710
7809 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7810 fields.
7811 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7812 fields.
7813 (process_imported_unit_die): Skip import of c++ CUs.
7814
7815 2020-03-16 Tom Tromey <tom@tromey.com>
7816
7817 * p-valprint.c (pascal_object_print_value): Initialize
7818 base_value.
7819
7820 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7821 Shahab Vahedi <shahab@synopsys.com>
7822
7823 * Makefile.in: Add arch/arc.o
7824 * configure.tgt: Likewise.
7825 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7826 (_initialize_arc_tdep): Don't initialize old target descriptions.
7827 (arc_read_description): New function to cache target descriptions.
7828 * arc-tdep.h (arc_read_description): Add proto type.
7829 * arch/arc.c: New file.
7830 * arch/arc.h: Likewise.
7831 * features/Makefile: Replace old target descriptions with new.
7832 * features/arc-arcompact.c: Remove.
7833 * features/arc-arcompact.xml: Likewise.
7834 * features/arc-v2.c: Likewise
7835 * features/arc-v2.xml: Likewise
7836 * features/arc/aux-arcompact.xml: New file.
7837 * features/arc/aux-v2.xml: Likewise.
7838 * features/arc/core-arcompact.xml: Likewise.
7839 * features/arc/core-v2.xml: Likewise.
7840 * features/arc/aux-arcompact.c: Generate.
7841 * features/arc/aux-v2.c: Likewise.
7842 * features/arc/core-arcompact.c: Likewise.
7843 * features/arc/core-v2.c: Likewise.
7844 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7845
7846 2020-03-16 Tom Tromey <tromey@adacore.com>
7847
7848 PR gdb/25663:
7849 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7850 putting value into bcache.
7851
7852 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7853
7854 PR gdb/21500
7855 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7856 to...
7857 (amd64_windows_init_abi_common): ... this. Don't set size of
7858 long type.
7859 (amd64_windows_init_abi): New function.
7860 (amd64_cygwin_init_abi): New function.
7861 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7862 the Cygwin OS ABI.
7863 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7864 comment.
7865
7866 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7867
7868 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7869 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7870 (pe_import_directory_entry): New struct type.
7871 (is_linked_with_cygwin_dll): New function.
7872 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7873 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7874 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7875
7876 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7877
7878 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7879 i386_cygwin_core_osabi_sniffer.
7880
7881 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7882
7883 * i386-cygwin-tdep.c: Rename to...
7884 * i386-windows-tdep.c: ... this.
7885 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7886 i386-windows-tdep.c.
7887 * configure.tgt: Likewise.
7888
7889 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7890
7891 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7892 * osabi.c (gdb_osabi_names): Add "Windows".
7893 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7894 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7895 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7896 i386_cygwin_osabi_sniffer.
7897 (_initialize_i386_cygwin_tdep): Register OS ABI
7898 GDB_OSABI_WINDOWS for i386.
7899 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7900 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7901 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7902 for x86-64.
7903 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7904 when the target matches '*-*-mingw*'.
7905
7906 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7907
7908 * defs.h (enum gdb_osabi): Move to...
7909 * osabi.h (enum gdb_osabi): ... here.
7910 * gdbarch.sh: Include osabi.h in gdbarch.h.
7911 * gdbarch.h: Re-generate.
7912
7913 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7914
7915 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7916 function.
7917 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7918
7919 2020-03-14 Tom Tromey <tom@tromey.com>
7920
7921 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7922 for C++.
7923 (c_type_print_modifier): Likewise. Add "language" parameter.
7924 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7925 (c_type_print_base_1): Update.
7926 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7927 constants.
7928 * type-stack.c (type_stack::insert): Handle tp_atomic and
7929 tp_restrict.
7930 (type_stack::follow_type_instance_flags): Likewise.
7931 (type_stack::follow_types): Likewise. Merge type-following code.
7932 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7933 (space_identifier, cv_with_space_id)
7934 (const_or_volatile_or_space_identifier_noopt)
7935 (const_or_volatile_or_space_identifier): Remove.
7936 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7937 rules.
7938 (ptr_operator, typebase): Update.
7939 (enum token_flag) <FLAG_C>: New constant.
7940 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7941 "_Atomic".
7942 (lex_one_token): Handle FLAG_C.
7943
7944 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7945
7946 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7947 it to the ptrace call.
7948 * m68k-bsd-nat.c (store_registers): Likewise.
7949
7950 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7951
7952 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7953 gdb_byte *.
7954 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7955 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7956 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7957
7958 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7959
7960 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7961 nbsd_nat_target instead of inf_ptrace_target.
7962 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7963 nbsd_nat_target.
7964
7965 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7966
7967 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7968 register_t.
7969
7970 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7971
7972 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7973 it to the ptrace call.
7974 * alpha-bsd-nat.c (store_registers): Likewise.
7975
7976 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7977
7978 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7979 includes.
7980 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7981 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7982 fill_fpregset): Likewise.
7983
7984 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7985
7986 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7987 nbsd_nat_target instead of inf_ptrace_target.
7988 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7989 nbsd_nat_target.
7990
7991 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7992
7993 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7994 register_t.
7995
7996 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7997
7998 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7999 it to the ptrace call.
8000 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
8001 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
8002 * arm-nbsd-nat.c (store_register): Likewise.
8003 * arm-nbsd-nat.c (store_regs): Likewise.
8004 * arm-nbsd-nat.c (store_fp_register): Likewise.
8005 * arm-nbsd-nat.c (store_fp_regs): Likewise.
8006
8007 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8008
8009 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
8010 nbsd_nat_target instead of inf_ptrace_target.
8011 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8012 nbsd_nat_target.
8013
8014 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8015
8016 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
8017 it to the ptrace call.
8018 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
8019
8020 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8021
8022 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
8023 it to the ptrace call.
8024 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
8025
8026 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8027
8028 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
8029 gdb_byte *.
8030 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
8031
8032 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8033
8034 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
8035 instead of inf_ptrace_target.
8036 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8037 nbsd_nat_target.
8038
8039 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8040
8041 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8042 register_t.
8043
8044 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8045
8046 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8047 register_t.
8048
8049 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8050
8051 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
8052 register_t.
8053
8054 2020-03-13 Tom Tromey <tom@tromey.com>
8055
8056 * value.h (val_print): Don't declare.
8057 * valprint.h (val_print_array_elements)
8058 (val_print_scalar_formatted, generic_val_print): Don't declare.
8059 * valprint.c (generic_val_print_array): Take a struct value.
8060 (generic_val_print_ptr, generic_val_print_memberptr)
8061 (generic_val_print_bool, generic_val_print_int)
8062 (generic_val_print_char, generic_val_print_complex)
8063 (generic_val_print): Remove.
8064 (generic_value_print): Update.
8065 (do_val_print): Remove unused parameters. Don't call
8066 la_val_print.
8067 (val_print): Remove.
8068 (common_val_print): Update. Don't call value_check_printable.
8069 (val_print_scalar_formatted, val_print_array_elements): Remove.
8070 * rust-lang.c (rust_val_print): Remove.
8071 (rust_language_defn): Update.
8072 * p-valprint.c (pascal_val_print): Remove.
8073 (pascal_value_print_inner): Update.
8074 (pascal_object_print_val_fields, pascal_object_print_val):
8075 Remove.
8076 (pascal_object_print_static_field): Update.
8077 * p-lang.h (pascal_val_print): Don't declare.
8078 * p-lang.c (pascal_language_defn): Update.
8079 * opencl-lang.c (opencl_language_defn): Update.
8080 * objc-lang.c (objc_language_defn): Update.
8081 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
8082 * m2-lang.h (m2_val_print): Don't declare.
8083 * m2-lang.c (m2_language_defn): Update.
8084 * language.h (struct language_defn) <la_val_print>: Remove.
8085 * language.c (unk_lang_value_print_inner): Rename. Change
8086 argument types.
8087 (unknown_language_defn, auto_language_defn): Update.
8088 * go-valprint.c (go_val_print): Remove.
8089 * go-lang.h (go_val_print): Don't declare.
8090 * go-lang.c (go_language_defn): Update.
8091 * f-valprint.c (f_val_print): Remove.
8092 * f-lang.h (f_value_print): Don't declare.
8093 * f-lang.c (f_language_defn): Update.
8094 * d-valprint.c (d_val_print): Remove.
8095 * d-lang.h (d_value_print): Don't declare.
8096 * d-lang.c (d_language_defn): Update.
8097 * cp-valprint.c (cp_print_value_fields)
8098 (cp_print_value_fields_rtti, cp_print_value): Remove.
8099 (cp_print_static_field): Update.
8100 * c-valprint.c (c_val_print_array, c_val_print_ptr)
8101 (c_val_print_struct, c_val_print_union, c_val_print_int)
8102 (c_val_print_memberptr, c_val_print): Remove.
8103 * c-lang.h (c_val_print_array, cp_print_value_fields)
8104 (cp_print_value_fields_rtti): Don't declare.
8105 * c-lang.c (c_language_defn, cplus_language_defn)
8106 (asm_language_defn, minimal_language_defn): Update.
8107 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
8108 (ada_val_print_enum): Take a struct value.
8109 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
8110 (ada_val_print): Remove.
8111 (ada_value_print_1): Update.
8112 (printable_val_type): Remove.
8113 * ada-lang.h (ada_val_print): Don't declare.
8114 * ada-lang.c (ada_language_defn): Update.
8115
8116 2020-03-13 Tom Tromey <tom@tromey.com>
8117
8118 * valprint.c (do_val_print): Update.
8119 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
8120 a struct value.
8121 (value_to_value_object_no_release): Declare.
8122 * python/py-value.c (value_to_value_object_no_release): New
8123 function.
8124 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
8125 struct value.
8126 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
8127 function.
8128 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
8129 a struct value.
8130 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
8131 Declare.
8132 (gdbscm_apply_val_pretty_printer): Take a struct value.
8133 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
8134 value.
8135 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
8136 value.
8137 * extension-priv.h (struct extension_language_ops)
8138 <apply_val_pretty_printer>: Take a struct value.
8139 * cp-valprint.c (cp_print_value): Create a struct value.
8140 (cp_print_value): Update.
8141
8142 2020-03-13 Tom Tromey <tom@tromey.com>
8143
8144 * ada-valprint.c (print_field_values): Call common_val_print.
8145
8146 2020-03-13 Tom Tromey <tom@tromey.com>
8147
8148 * ada-valprint.c (val_print_packed_array_elements): Remove
8149 bitoffset and val parameters. Call common_val_print.
8150 (ada_val_print_string): Remove offset, address, and original_value
8151 parameters.
8152 (ada_val_print_array): Update.
8153 (ada_value_print_array): New function.
8154 (ada_value_print_1): Call it.
8155
8156 2020-03-13 Tom Tromey <tom@tromey.com>
8157
8158 * ada-valprint.c (ada_value_print): Use common_val_print.
8159
8160 2020-03-13 Tom Tromey <tom@tromey.com>
8161
8162 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
8163
8164 2020-03-13 Tom Tromey <tom@tromey.com>
8165
8166 * ada-valprint.c (ada_value_print_num): New function.
8167 (ada_value_print_1): Use it.
8168
8169 2020-03-13 Tom Tromey <tom@tromey.com>
8170
8171 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8172
8173 2020-03-13 Tom Tromey <tom@tromey.com>
8174
8175 * ada-valprint.c (ada_value_print_ptr): New function.
8176 (ada_value_print_1): Use it.
8177
8178 2020-03-13 Tom Tromey <tom@tromey.com>
8179
8180 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8181 call common_val_print.
8182 (ada_val_print_1): Update.
8183 (ada_value_print_1): New function.
8184 (ada_value_print_inner): Rewrite.
8185
8186 2020-03-13 Tom Tromey <tom@tromey.com>
8187
8188 * cp-valprint.c (cp_print_value_fields): Update.
8189 (cp_print_value): New function.
8190
8191 2020-03-13 Tom Tromey <tom@tromey.com>
8192
8193 * m2-valprint.c (m2_value_print_inner): Use
8194 cp_print_value_fields.
8195 * cp-valprint.c (cp_print_value_fields): New function.
8196 * c-valprint.c (c_value_print_struct): New function.
8197 (c_value_print_inner): Use c_value_print_struct.
8198 * c-lang.h (cp_print_value_fields): Declare.
8199
8200 2020-03-13 Tom Tromey <tom@tromey.com>
8201
8202 * c-valprint.c (c_value_print_array): New function.
8203 (c_value_print_inner): Use it.
8204
8205 2020-03-13 Tom Tromey <tom@tromey.com>
8206
8207 * c-valprint.c (c_value_print_memberptr): New function.
8208 (c_value_print_inner): Use it.
8209
8210 2020-03-13 Tom Tromey <tom@tromey.com>
8211
8212 * c-valprint.c (c_value_print_int): New function.
8213 (c_value_print_inner): Use it.
8214
8215 2020-03-13 Tom Tromey <tom@tromey.com>
8216
8217 * c-valprint.c (c_value_print_ptr): New function.
8218 (c_value_print_inner): Use it.
8219
8220 2020-03-13 Tom Tromey <tom@tromey.com>
8221
8222 * c-valprint.c (c_value_print_inner): Rewrite.
8223
8224 2020-03-13 Tom Tromey <tom@tromey.com>
8225
8226 * valprint.c (generic_value_print_complex): New function.
8227 (generic_value_print): Use it.
8228
8229 2020-03-13 Tom Tromey <tom@tromey.com>
8230
8231 * valprint.c (generic_val_print_float): Don't call
8232 val_print_scalar_formatted.
8233 (generic_val_print, generic_value_print): Update.
8234
8235 2020-03-13 Tom Tromey <tom@tromey.com>
8236
8237 * valprint.c (generic_value_print_char): New function
8238 (generic_value_print): Use it.
8239
8240 2020-03-13 Tom Tromey <tom@tromey.com>
8241
8242 * valprint.c (generic_value_print_int): New function.
8243 (generic_value_print): Use it.
8244
8245 2020-03-13 Tom Tromey <tom@tromey.com>
8246
8247 * valprint.c (generic_value_print_bool): New function.
8248 (generic_value_print): Use it.
8249
8250 2020-03-13 Tom Tromey <tom@tromey.com>
8251
8252 * valprint.c (generic_val_print_func): Simplify.
8253 (generic_val_print, generic_value_print): Update.
8254
8255 2020-03-13 Tom Tromey <tom@tromey.com>
8256
8257 * valprint.c (generic_val_print_flags): Remove.
8258 (generic_val_print, generic_value_print): Update.
8259 (val_print_type_code_flags): Add original_value parameter.
8260
8261 2020-03-13 Tom Tromey <tom@tromey.com>
8262
8263 * valprint.c (generic_val_print): Update.
8264 (generic_value_print): Update.
8265 * valprint.c (generic_val_print_enum): Don't call
8266 val_print_scalar_formatted.
8267
8268 2020-03-13 Tom Tromey <tom@tromey.com>
8269
8270 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8271 * valprint.c (generic_value_print_ptr): New function.
8272
8273 2020-03-13 Tom Tromey <tom@tromey.com>
8274
8275 * valprint.c (generic_value_print): Rewrite.
8276
8277 2020-03-13 Tom Tromey <tom@tromey.com>
8278
8279 * p-valprint.c (pascal_object_print_value_fields)
8280 (pascal_object_print_value): New functions.
8281
8282 2020-03-13 Tom Tromey <tom@tromey.com>
8283
8284 * p-valprint.c (pascal_value_print_inner): Rewrite.
8285
8286 2020-03-13 Tom Tromey <tom@tromey.com>
8287
8288 * f-valprint.c (f_value_print_innner): Rewrite.
8289
8290 2020-03-13 Tom Tromey <tom@tromey.com>
8291
8292 * m2-valprint.c (m2_print_unbounded_array): New overload.
8293 (m2_print_unbounded_array): Update.
8294 (m2_print_array_contents): Take a struct value.
8295 (m2_value_print_inner): Rewrite.
8296
8297 2020-03-13 Tom Tromey <tom@tromey.com>
8298
8299 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8300 (d_value_print_inner): New function.
8301 * d-lang.h (d_value_print_inner): Declare.
8302 * d-lang.c (d_language_defn): Use d_value_print_inner.
8303
8304 2020-03-13 Tom Tromey <tom@tromey.com>
8305
8306 * go-valprint.c (go_value_print_inner): New function.
8307 * go-lang.h (go_value_print_inner): Declare.
8308 * go-lang.c (go_language_defn): Use go_value_print_inner.
8309
8310 2020-03-13 Tom Tromey <tom@tromey.com>
8311
8312 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8313 API.
8314 (rust_val_print): Rewrite.
8315 (rust_value_print_inner): New function, from rust_val_print.
8316 (rust_language_defn): Use rust_value_print_inner.
8317
8318 2020-03-13 Tom Tromey <tom@tromey.com>
8319
8320 * ada-valprint.c (ada_value_print_inner): New function.
8321 * ada-lang.h (ada_value_print_inner): Declare.
8322 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8323
8324 2020-03-13 Tom Tromey <tom@tromey.com>
8325
8326 * f-valprint.c (f_value_print_innner): New function.
8327 * f-lang.h (f_value_print_innner): Declare.
8328 * f-lang.c (f_language_defn): Use f_value_print_innner.
8329
8330 2020-03-13 Tom Tromey <tom@tromey.com>
8331
8332 * p-valprint.c (pascal_value_print_inner): New function.
8333 * p-lang.h (pascal_value_print_inner): Declare.
8334 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8335
8336 2020-03-13 Tom Tromey <tom@tromey.com>
8337
8338 * m2-valprint.c (m2_value_print_inner): New function.
8339 * m2-lang.h (m2_value_print_inner): Declare.
8340 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8341
8342 2020-03-13 Tom Tromey <tom@tromey.com>
8343
8344 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8345 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8346 * c-valprint.c (c_value_print_inner): New function.
8347 * c-lang.h (c_value_print_inner): Declare.
8348 * c-lang.c (c_language_defn, cplus_language_defn)
8349 (asm_language_defn, minimal_language_defn): Use
8350 c_value_print_inner.
8351
8352 2020-03-13 Tom Tromey <tom@tromey.com>
8353
8354 * p-valprint.c (pascal_object_print_value_fields): Now static.
8355 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8356
8357 2020-03-13 Tom Tromey <tom@tromey.com>
8358
8359 * c-valprint.c (c_val_print_array): Simplify.
8360
8361 2020-03-13 Tom Tromey <tom@tromey.com>
8362
8363 * valprint.c (value_print_array_elements): New function.
8364 * valprint.h (value_print_array_elements): Declare.
8365
8366 2020-03-13 Tom Tromey <tom@tromey.com>
8367
8368 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8369 * mips-tdep.c (mips_print_register): Use
8370 value_print_scalar_formatted.
8371
8372 2020-03-13 Tom Tromey <tom@tromey.com>
8373
8374 * valprint.h (value_print_scalar_formatted): Declare.
8375 * valprint.c (value_print_scalar_formatted): New function.
8376
8377 2020-03-13 Tom Tromey <tom@tromey.com>
8378
8379 * valprint.h (generic_value_print): Declare.
8380 * valprint.c (generic_value_print): New function.
8381
8382 2020-03-13 Tom Tromey <tom@tromey.com>
8383
8384 * valprint.c (do_val_print): Call la_value_print_inner, if
8385 available.
8386 * rust-lang.c (rust_language_defn): Update.
8387 * p-lang.c (pascal_language_defn): Update.
8388 * opencl-lang.c (opencl_language_defn): Update.
8389 * objc-lang.c (objc_language_defn): Update.
8390 * m2-lang.c (m2_language_defn): Update.
8391 * language.h (struct language_defn) <la_value_print_inner>: New
8392 member.
8393 * language.c (unknown_language_defn, auto_language_defn): Update.
8394 * go-lang.c (go_language_defn): Update.
8395 * f-lang.c (f_language_defn): Update.
8396 * d-lang.c (d_language_defn): Update.
8397 * c-lang.c (c_language_defn, cplus_language_defn)
8398 (asm_language_defn, minimal_language_defn): Update.
8399 * ada-lang.c (ada_language_defn): Update.
8400
8401 2020-03-13 Tom Tromey <tom@tromey.com>
8402
8403 * c-valprint.c (c_value_print): Use common_val_print.
8404
8405 2020-03-13 Tom Tromey <tom@tromey.com>
8406
8407 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8408
8409 2020-03-13 Tom Tromey <tom@tromey.com>
8410
8411 * f-valprint.c (f77_print_array_1, f_val_print): Use
8412 common_val_print.
8413
8414 2020-03-13 Tom Tromey <tom@tromey.com>
8415
8416 * riscv-tdep.c (riscv_print_one_register_info): Use
8417 common_val_print.
8418
8419 2020-03-13 Tom Tromey <tom@tromey.com>
8420
8421 * mi/mi-main.c (output_register): Use common_val_print.
8422
8423 2020-03-13 Tom Tromey <tom@tromey.com>
8424
8425 * infcmd.c (default_print_one_register_info): Use
8426 common_val_print.
8427
8428 2020-03-13 Tom Tromey <tom@tromey.com>
8429
8430 * valprint.h (common_val_print_checked): Declare.
8431 * valprint.c (common_val_print_checked): New function.
8432 * stack.c (print_frame_arg): Use common_val_print_checked.
8433
8434 2020-03-13 Tom Tromey <tom@tromey.com>
8435
8436 * valprint.c (do_val_print): New function, from val_print.
8437 (val_print): Use do_val_print.
8438 (common_val_print): Use do_val_print.
8439
8440 2020-03-13 Tom Tromey <tom@tromey.com>
8441
8442 * valprint.c (value_print): Use scoped_value_mark.
8443
8444 2020-03-13 Tom de Vries <tdevries@suse.de>
8445
8446 PR symtab/25646
8447 * psymtab.c (partial_symtab::partial_symtab): Don't set
8448 globals_offset and statics_offset. Push element onto
8449 current_global_psymbols and current_static_psymbols stacks.
8450 (concat): New function.
8451 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8452 element from current_global_psymbols and current_static_psymbols
8453 stacks. Concat popped elements to global_psymbols and
8454 static_symbols.
8455 (add_psymbol_to_list): Use current_global_psymbols and
8456 current_static_psymbols stacks.
8457 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8458 current_static_psymbols fields.
8459
8460 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8461
8462 * corelow.c (sniff_core_bfd): Remove.
8463 (class core_target) <m_core_vec>: Remove.
8464 (core_target::core_target): Update.
8465 (core_file_fns): Remove.
8466 (deprecated_add_core_fns): Remove.
8467 (default_core_sniffer): Remove.
8468 (sniff_core_bfd): Remove.
8469 (default_check_format): Remove.
8470 (gdb_check_format): Remove.
8471 (core_target_open): Update.
8472 (core_target::get_core_register_section): Update.
8473 (get_core_registers_cb): Update.
8474 (core_target::fetch_registers): Update.
8475 * gdbcore.h (struct core_fns): Remove.
8476 (deprecated_add_core_fns): Remove.
8477 (default_core_sniffer): Remove.
8478 (default_check_format): Remove.
8479
8480 2020-03-12 Tom Tromey <tom@tromey.com>
8481
8482 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8483 CORE_ADDR.
8484 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8485
8486 2020-03-12 Tom Tromey <tom@tromey.com>
8487
8488 * remote.c (remote_target::download_tracepoint)
8489 (remote_target::enable_tracepoint)
8490 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8491 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8492 sprintf_vma.
8493
8494 2020-03-12 Tom Tromey <tom@tromey.com>
8495
8496 * symfile-mem.c: Update CORE_ADDR size assert.
8497
8498 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8499
8500 * selftest.m4: Move to gdbsupport/.
8501 * acinclude.m4: Update path to selftest.m4.
8502
8503 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8504
8505 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8506 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8507 gdbarch-selfselftests.c and selftest-arch.c.
8508 (SUBDIR_UNITTESTS_OBS): Rename to...
8509 (SELFTESTS_OBS): ... this.
8510 (COMMON_SFILES): Remove disasm-selftests.c and
8511 gdbarch-selftests.c.
8512 * configure.ac: Don't add selftest-arch.{c,o} to
8513 CONFIG_{SRCS,OBS}.
8514 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8515 preprocessor conditions.
8516
8517 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8518
8519 * configure.ac: Don't source bfd/development.sh.
8520 * selftest.m4: Modify comment.
8521 * configure: Re-generate.
8522
8523 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8524
8525 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8526 not "true" or "false".
8527 * configure: Re-generate.
8528
8529 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8530
8531 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8532 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8533 renamed to arm_nbsd_supply_gregset.
8534 (fetch_register): Update to call arm_nbsd_supply_gregset.
8535 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8536 (arm_netbsd_nat_target::fetch_registers): Update.
8537 (fetch_elfcore_registers): Removed.
8538 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8539 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8540 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8541 not require NetBSD system headers.
8542 (arm_nbsd_regset): New struct.
8543 (arm_nbsd_iterate_over_regset_sections): New function.
8544 (arm_netbsd_init_abi_common): Updated to call
8545 set_gdbarch_iterate_over_regset_sections.
8546 * arm-nbsd-tdep.h: New file.
8547
8548 2020-03-11 Kevin Buettner <kevinb@redhat.com>
8549
8550 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8551 recursion.
8552
8553 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
8554
8555 * configure: Re-generate.
8556
8557 2020-03-11 Tom Tromey <tromey@adacore.com>
8558
8559 * ada-typeprint.c (print_choices): Fix comment.
8560
8561 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8562
8563 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8564 previous item in the list, when the list has no items.
8565
8566 2020-03-11 Tom de Vries <tdevries@suse.de>
8567
8568 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8569 PROP_LOCLIST handling code.
8570
8571 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8572
8573 * buildsym-legacy.c (record_line): Pass extra parameter to
8574 record_line.
8575 * buildsym.c (buildsym_compunit::record_line): Take an extra
8576 parameter, reduce duplication in the line table, and record the
8577 is_stmt flag in the line table.
8578 * buildsym.h (buildsym_compunit::record_line): Add extra
8579 parameter.
8580 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8581 non-statement lines.
8582 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8583 this to the symtab builder.
8584 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8585 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8586 through to dwarf_record_line_1.
8587 * infrun.c (process_event_stop_test): When stepping, don't stop at
8588 a non-statement instruction, and only refresh the step info when
8589 we land in the middle of a line's range. Also add an extra
8590 comment.
8591 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8592 field.
8593 * record-btrace.c (btrace_find_line_range): Only record lines
8594 marked as is-statement.
8595 * stack.c (frame_show_address): Show the frame address if we are
8596 in a non-statement sal.
8597 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8598 (maintenance_print_one_line_table): Print a header for the is_stmt
8599 column, and include is_stmt information in the output.
8600 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8601 preference to non-statements.
8602 (find_pcs_for_symtab_line): Prefer is-statement entries.
8603 (find_line_common): Likewise.
8604 * symtab.h (struct linetable_entry): Add is_stmt field.
8605 (struct symtab_and_line): Likewise.
8606 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8607 arranging the line table.
8608
8609 2020-03-07 Tom de Vries <tdevries@suse.de>
8610
8611 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8612 DIE.
8613
8614 2020-03-07 Tom Tromey <tom@tromey.com>
8615
8616 * valops.c (value_literal_complex): Remove obsolete comment.
8617 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8618 comment.
8619
8620 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8621
8622 * infrun.h: Forward-declare thread_info.
8623 (set_step_info): Add thread_info parameter, add doc.
8624 * infrun.c (set_step_info): Add thread_info parameter, move doc
8625 to header.
8626 * infrun.c (process_event_stop_test): Pass thread to
8627 set_step_info call.
8628 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8629 set_step_info.
8630 (prepare_one_step): Add thread_info parameter, pass it to
8631 set_step_frame and prepare_one_step (recursive) call.
8632 (step_1): Pass thread to prepare_one_step call.
8633 (step_command_fsm::should_stop): Pass thread to
8634 prepare_one_step.
8635 (until_next_fsm): Pass thread to set_step_frame call.
8636 (finish_command): Pass thread to set_step_info call.
8637
8638 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
8639
8640 * windows-tdep.c (windows_solib_create_inferior_hook):
8641 Check if inferior is running.
8642
8643 2020-03-06 Tom de Vries <tdevries@suse.de>
8644
8645 * NEWS: Fix "the the".
8646 * ctfread.c: Same.
8647
8648 2020-03-06 Tom de Vries <tdevries@suse.de>
8649
8650 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8651
8652 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8653
8654 * .dir-locals.el: Add a comment referencing the other copies of
8655 this file.
8656
8657 2020-03-05 John Baldwin <jhb@FreeBSD.org>
8658
8659 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8660 psargs.
8661
8662 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8663
8664 * .gitattributes: New file.
8665
8666 2020-03-04 Tom Tromey <tom@tromey.com>
8667
8668 * symmisc.c (print_symbol_bcache_statistics)
8669 (print_objfile_statistics): Update.
8670 * symfile.c (allocate_symtab): Use intern.
8671 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8672 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8673 macro_cache>: Remove.
8674 <string_cache>: New member.
8675 (struct objfile) <intern>: New methods.
8676 * elfread.c (elf_symtab_read): Use intern.
8677 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8678 (dwarf2_compute_name, dwarf2_physname)
8679 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8680 names.
8681 (guess_partial_die_structure_name): Update.
8682 (partial_die_info::fixup): Intern name.
8683 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8684 name.
8685 (dwarf2_name): Intern name. Update.
8686 * buildsym.c (buildsym_compunit::get_macro_table): Use
8687 string_cache.
8688
8689 2020-03-04 Tom Tromey <tom@tromey.com>
8690
8691 * jit.c (bfd_open_from_target_memory): Make "target" const.
8692 * corefile.c (gnutarget): Now const.
8693 * gdbcore.h (gnutarget): Now const.
8694
8695 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
8696
8697 * NEWS: Mention support for WOW64 processes.
8698 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8699 (amd64_windows_segment_register_p): Remove static.
8700 (_initialize_amd64_windows_nat): Update.
8701 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8702 * i386-windows-nat.c (context_offset): Update.
8703 (i386_mappings): Rename and remove static.
8704 (i386_windows_segment_register_p): Remove static.
8705 (_initialize_i386_windows_nat): Update.
8706 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8707 (STATUS_WX86_SINGLE_STEP): New macro.
8708 (EnumProcessModulesEx): New macro.
8709 (Wow64SuspendThread): New macro.
8710 (Wow64GetThreadContext): New macro.
8711 (Wow64SetThreadContext): New macro.
8712 (Wow64GetThreadSelectorEntry): New macro.
8713 (windows_set_context_register_offsets): Add static.
8714 (windows_set_segment_register_p): Likewise.
8715 (windows_add_thread): Adapt for WOW64 processes.
8716 (windows_fetch_one_register): Likewise.
8717 (windows_nat_target::fetch_registers): Likewise.
8718 (windows_store_one_register): Likewise.
8719 (display_selector): Likewise.
8720 (display_selectors): Likewise.
8721 (handle_exception): Likewise.
8722 (windows_continue): Likewise.
8723 (windows_nat_target::resume): Likewise.
8724 (windows_add_all_dlls): Likewise.
8725 (do_initial_windows_stuff): Likewise.
8726 (windows_nat_target::attach): Likewise.
8727 (windows_get_exec_module_filename): Likewise.
8728 (windows_nat_target::create_inferior): Likewise.
8729 (windows_xfer_siginfo): Likewise.
8730 (_initialize_loadable): Initialize Wow64SuspendThread,
8731 Wow64GetThreadContext, Wow64SetThreadContext,
8732 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8733 * windows-nat.h (windows_set_context_register_offsets):
8734 Remove declaration.
8735 (windows_set_segment_register_p): Likewise.
8736 (i386_windows_segment_register_p): Add declaration.
8737 (amd64_windows_segment_register_p): Likewise.
8738
8739 2020-03-04 Luis Machado <luis.machado@linaro.org>
8740
8741 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8742 in "info registers" for AArch64/ARM.
8743
8744 The change caused "info registers" to not print GPR's.
8745
8746 gdb/ChangeLog:
8747
8748 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8749
8750 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8751 when reg->group is empty and reggroup is not.
8752
8753 2020-03-03 Tom Tromey <tromey@adacore.com>
8754
8755 * dwarf2/frame.c (struct dwarf2_frame_cache)
8756 <checked_tailcall_bottom, entry_cfa_sp_offset,
8757 entry_cfa_sp_offset_p>: Remove members.
8758 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8759 (dwarf2_frame_prev_register): Don't call
8760 dwarf2_tailcall_sniffer_first.
8761 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8762 * frame-unwind.c (add_unwinder): New fuction.
8763 (frame_unwind_init): Use it. Add tailcall unwinder.
8764
8765 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8766 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8767
8768 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8769 value should be printed as true.
8770
8771 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
8772
8773 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8774 (windows_init_abi): Set and use windows_so_ops.
8775
8776 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8777
8778 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8779 when verifying if dealing with a convenience variable.
8780
8781 2020-03-03 Luis Machado <luis.machado@linaro.org>
8782
8783 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8784
8785 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8786
8787 * infrun.c (gdbarch_supports_displaced_stepping): New.
8788 (use_displaced_stepping): Break up conditions in smaller pieces.
8789 Use gdbarch_supports_displaced_stepping.
8790 (displaced_step_prepare_throw): Use
8791 gdbarch_supports_displaced_stepping.
8792
8793 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8794
8795 * NEWS: Mention new behaviour of the history filename.
8796 * top.c (write_history_p): Add comment.
8797 (show_write_history_p): Add header comment, give a different
8798 message when history writing is on, but the history filename is
8799 empty.
8800 (history_filename): Add comment.
8801 (history_filename_empty): New function.
8802 (show_history_filename): Add header comment, give a different
8803 message when the filename is empty.
8804 (init_history): Compare history_filename against nullptr, and only
8805 read history if the filename is not empty.
8806 (set_history_filename): Add header comment, and only make
8807 non-empty filenames absolute.
8808 (init_main): Make the filename argument to 'set history filename'
8809 optional.
8810
8811 2020-03-02 Christian Biesinger <cbiesinger@google.com>
8812
8813 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8814 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8815 (fetch_fp_register): Update.
8816 (fetch_fp_regs): Update.
8817 (store_fp_register): Update.
8818 (store_fp_regs): Update.
8819 (arm_netbsd_nat_target::read_description): New function.
8820 (fetch_elfcore_registers): Update.
8821
8822 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8823
8824 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8825 general_thread if the stop reply is missing a thread-id.
8826 (remote_target::process_stop_reply): Use the first non-exited
8827 thread if the target didn't pass a thread-id.
8828 * infrun.c (do_target_wait): Move call to
8829 switch_to_inferior_no_thread to ....
8830 (do_target_wait_1): ... here.
8831
8832 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8833
8834 * debuginfod-support.c: Include defs.h first.
8835
8836 2020-02-28 Tom de Vries <tdevries@suse.de>
8837
8838 * symfile.c (set_initial_language): Use default language for lookup.
8839
8840 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
8841
8842 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8843 reader variable, pass `this` to read_cutu_die_from_dwo.
8844
8845 2020-02-27 Aaron Merey <amerey@redhat.com>
8846
8847 * source.c (open_source_file): Check for nullptr when computing
8848 srcpath.
8849
8850 2020-02-27 Tom Tromey <tromey@adacore.com>
8851
8852 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8853 member.
8854 (dwarf2_add_field): Don't update nfields.
8855 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8856
8857 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8858
8859 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8860 abs.
8861
8862 2020-02-26 Tom Tromey <tom@tromey.com>
8863
8864 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8865 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8866 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8867 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8868 per_cu_data.
8869
8870 2020-02-26 Tom Tromey <tom@tromey.com>
8871
8872 * dwarf2/index-write.c (psym_index_map): Change type.
8873 (add_address_entry_worker, write_one_signatured_type)
8874 (recursively_count_psymbols, recursively_write_psymbols)
8875 (class debug_names, psyms_seen_size, write_gdbindex)
8876 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8877
8878 2020-02-26 Aaron Merey <amerey@redhat.com>
8879
8880 * Makefile.in: Handle optional debuginfod support.
8881 * NEWS: Update.
8882 * README: Add --with-debuginfod summary.
8883 * config.in: Regenerate.
8884 * configure: Regenerate.
8885 * configure.ac: Handle optional debuginfod support.
8886 * debuginfod-support.c: debuginfod helper functions.
8887 * debuginfod-support.h: Ditto.
8888 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8889 summary.
8890 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8891 when a dwz file cannot be found.
8892 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8893 debuginfo file cannot be found.
8894 * source.c (open_source_file): Query debuginfod servers when a
8895 source file cannot be found.
8896 * top.c (print_gdb_configuration): Include
8897 --{with,without}-debuginfod in the output.
8898
8899 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8900
8901 * thread.c (thr_try_catch_cmd): Print thread name.
8902
8903 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
8904
8905 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8906 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8907 dwarf2_fetch_die_type_sect_off): Move to...
8908 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8909 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8910 dwarf2_fetch_die_type_sect_off): ... here.
8911 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8912 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8913 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8914
8915 2020-02-26 Tom de Vries <tdevries@suse.de>
8916
8917 PR gdb/25603
8918 * symfile.c (set_initial_language): Exit-early if
8919 language_mode == language_mode_manual.
8920
8921 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8922
8923 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8924 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8925 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8926
8927 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8928
8929 * gdbtypes.c (create_array_type_with_stride): Handle negative
8930 array strides.
8931 * valarith.c (value_subscripted_rvalue): Likewise.
8932
8933 2020-02-25 Luis Machado <luis.machado@linaro.org>
8934
8935 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8936
8937 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8938
8939 * loc.h (dwarf2_get_die_type): Move to...
8940 * read.h (dwarf2_get_die_type): ... here.
8941 * read.c (dwarf2_get_die_type): Move doc to header.
8942
8943 2020-02-25 Joel Brobecker <brobecker@adacore.com>
8944
8945 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8946 'gnulib/Makefile.in' to the list.
8947
8948 2020-02-24 Tom Tromey <tom@tromey.com>
8949
8950 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8951 Remove.
8952 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8953 XOBNEWVEC.
8954
8955 2020-02-24 Tom Tromey <tom@tromey.com>
8956
8957 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8958 New method.
8959 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8960 (dw2_do_instantiate_symtab, dw2_get_file_names)
8961 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8962
8963 2020-02-24 Tom Tromey <tom@tromey.com>
8964
8965 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8966 make_scoped_restore.
8967 (dwarf2_psymtab::read_symtab): Don't clear
8968 reading_partial_symbols.
8969
8970 2020-02-24 Tom de Vries <tdevries@suse.de>
8971
8972 PR gdb/25592
8973 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8974
8975 2020-02-24 Tom de Vries <tdevries@suse.de>
8976
8977 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8978 commands layout next/prev/regs.
8979
8980 2020-02-22 Tom Tromey <tom@tromey.com>
8981
8982 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8983 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8984
8985 2020-02-22 Tom Tromey <tom@tromey.com>
8986
8987 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8988
8989 2020-02-22 Tom Tromey <tom@tromey.com>
8990
8991 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8992 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8993 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8994 * tui/tui.c (_initialize_tui): Add usage text.
8995
8996 2020-02-22 Tom Tromey <tom@tromey.com>
8997
8998 * tui/tui-win.c (tui_set_focus_command)
8999 (tui_set_win_height_command): Use error_no_arg.
9000 (_initialize_tui_win): Update help text.
9001 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
9002
9003 2020-02-22 Tom Tromey <tom@tromey.com>
9004
9005 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
9006 * tui/tui-disasm.h (struct tui_disasm_window)
9007 <display_start_addr>: Declare.
9008 * tui/tui-source.h (struct tui_source_window)
9009 <display_start_addr>: Declare.
9010 * tui/tui-winsource.h (struct tui_source_window_base)
9011 <show_source_line, display_start_addr>: New methods.
9012 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
9013 Rename and move to protected section.
9014 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
9015 (tui_source_window_base::do_erase_source_content): Update.
9016 (tui_source_window_base::show_source_line): Now a method.
9017 (tui_source_window_base::show_source_content)
9018 (tui_source_window_base::tui_source_window_base)
9019 (tui_source_window_base::rerender)
9020 (tui_source_window_base::refill)
9021 (tui_source_window_base::do_scroll_horizontal)
9022 (tui_source_window_base::set_is_exec_point_at)
9023 (tui_source_window_base::update_breakpoint_info)
9024 (tui_source_window_base::update_exec_info): Update.
9025 * tui/tui-source.c (tui_source_window::set_contents)
9026 (tui_source_window::showing_source_p)
9027 (tui_source_window::do_scroll_vertical)
9028 (tui_source_window::location_matches_p)
9029 (tui_source_window::line_is_displayed): Update.
9030 (tui_source_window::display_start_addr): New method.
9031 * tui/tui-disasm.c (tui_disasm_window::set_contents)
9032 (tui_disasm_window::do_scroll_vertical)
9033 (tui_disasm_window::location_matches_p): Update.
9034 (tui_disasm_window::display_start_addr): New method.
9035
9036 2020-02-22 Tom Tromey <tom@tromey.com>
9037
9038 * NEWS: Add entry for gdb.register_window_type.
9039 * tui/tui-layout.h (window_factory): New typedef.
9040 (tui_register_window): Declare.
9041 * tui/tui-layout.c (saved_tui_windows): New global.
9042 (tui_apply_current_layout): Use it.
9043 (tui_register_window): New function.
9044 * python/python.c (do_start_initialization): Call
9045 gdbpy_initialize_tui.
9046 (python_GdbMethods): Add "register_window_type" function.
9047 * python/python-internal.h (gdbpy_register_tui_window)
9048 (gdbpy_initialize_tui): Declare.
9049 * python/py-tui.c: New file.
9050 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
9051
9052 2020-02-22 Tom Tromey <tom@tromey.com>
9053
9054 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
9055
9056 2020-02-22 Tom Tromey <tom@tromey.com>
9057
9058 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
9059 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
9060 * tui/tui-data.c (tui_set_win_with_focus): Remove.
9061 (tui_set_win_focus_to): Move from tui-win.c.
9062
9063 2020-02-22 Tom Tromey <tom@tromey.com>
9064
9065 * tui/tui-layout.c (make_standard_window, get_locator_window): New
9066 functions.
9067 (known_window_types): New global.
9068 (tui_get_window_by_name): Reimplement.
9069 (initialize_known_windows): New function.
9070 (validate_window_name): Rewrite.
9071 (_initialize_tui_layout): Call initialize_known_windows.
9072
9073 2020-02-22 Tom Tromey <tom@tromey.com>
9074
9075 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
9076 Remove constants.
9077 * tui/tui-winsource.h (struct tui_source_window_base)
9078 <tui_source_window_base>: Remove parameter.
9079 * tui/tui-winsource.c
9080 (tui_source_window_base::tui_source_window_base): Remove
9081 parameter.
9082 (tui_source_window_base::refill): Update.
9083 * tui/tui-stack.h (struct tui_locator_window)
9084 <tui_locator_window>: Update.
9085 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
9086 Default the constructor.
9087 * tui/tui-regs.h (struct tui_data_item_window)
9088 <tui_data_item_window>: Default the constructor.
9089 (struct tui_data_window) <tui_data_window>: Likewise.
9090 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
9091 Default the constructor.
9092 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
9093 Default the constructor.
9094 <type>: Remove.
9095 (struct tui_win_info) <tui_win_info>: Default the constructor.
9096 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
9097 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
9098 Default the constructor.
9099
9100 2020-02-22 Tom Tromey <tom@tromey.com>
9101
9102 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
9103 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
9104 * tui/tui-win.c (tui_resize_all): Don't call
9105 tui_delete_invisible_windows.
9106 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
9107 done.
9108 (tui_set_layout): Update.
9109 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
9110 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
9111 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
9112
9113 2020-02-22 Tom Tromey <tom@tromey.com>
9114
9115 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
9116 correctly.
9117
9118 2020-02-22 Tom Tromey <tom@tromey.com>
9119
9120 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
9121
9122 2020-02-22 Tom Tromey <tom@tromey.com>
9123
9124 * tui/tui-winsource.h (struct tui_source_window_iterator)
9125 <inner_iterator>: New etytypedef.
9126 <tui_source_window_iterator>: Take "end" parameter.
9127 <tui_source_window_iterator>: Take iterator.
9128 <operator*, advance>: Update.
9129 <m_iter>: Change type.
9130 <m_end>: New field.
9131 (struct tui_source_windows) <begin, end>: Update.
9132 * tui/tui-layout.c (tui_windows): New global.
9133 (tui_apply_current_layout): Clear tui_windows.
9134 (tui_layout_window::apply): Update tui_windows.
9135 * tui/tui-data.h (tui_windows): Declare.
9136 (all_tui_windows): Now inline function.
9137 (class tui_window_iterator, struct all_tui_windows): Remove.
9138
9139 2020-02-22 Tom Tromey <tom@tromey.com>
9140
9141 PR tui/17850:
9142 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
9143 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
9144 "height" argument.
9145 (class tui_layout_window) <get_sizes>: Likewise.
9146 (class tui_layout_split) <tui_layout_split>: Add "vertical"
9147 argument.
9148 <get_sizes>: Add "height" argument.
9149 <m_vertical>: New field.
9150 * tui/tui-layout.c (tui_layout_split::clone): Update.
9151 (tui_layout_split::get_sizes): Add "height" argument.
9152 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
9153 (tui_new_layout_command): Parse "-horizontal".
9154 (_initialize_tui_layout): Update help string.
9155 (tui_layout_split::specification): Add "-horizontal" when needed.
9156 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
9157 argument.
9158 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
9159 New methods.
9160
9161 2020-02-22 Tom Tromey <tom@tromey.com>
9162
9163 * tui/tui-layout.h (enum tui_adjust_result): New.
9164 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
9165 (class tui_layout_window) <adjust_size>: Return
9166 tui_adjust_result. Rewrite.
9167 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9168 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9169
9170 2020-02-22 Tom Tromey <tom@tromey.com>
9171
9172 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9173 parameter and return types.
9174 (class tui_layout_base) <specification>: Add "depth".
9175 (class tui_layout_window) <specification>: Add "depth".
9176 (class tui_layout_split) <specification>: Add "depth".
9177 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9178 and return types.
9179 (tui_new_layout_command): Parse sub-layouts.
9180 (_initialize_tui_layout): Update help string.
9181 (tui_layout_window::specification): Add "depth".
9182 (add_layout_command): Update.
9183
9184 2020-02-22 Tom Tromey <tom@tromey.com>
9185
9186 * NEWS: Add "tui new-layout" item.
9187 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9188 Add new-layout command to help text.
9189 (validate_window_name): New function.
9190 (tui_new_layout_command): New function.
9191 (_initialize_tui_layout): Register "new-layout".
9192 (tui_layout_window::specification): New method.
9193 (tui_layout_window::specification): New method.
9194 * tui/tui-layout.h (class tui_layout_base) <specification>: New
9195 method.
9196 (class tui_layout_window) <specification>: New method.
9197 (class tui_layout_split) <specification>: New method.
9198
9199 2020-02-22 Tom Tromey <tom@tromey.com>
9200
9201 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9202 * tui/tui-win.c (window_name_completer): Update comment.
9203 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9204 Declare method.
9205 (class tui_layout_window) <replace_window>: Likewise.
9206 (class tui_layout_split) <replace_window>: Likewise.
9207 (tui_set_layout): Don't declare.
9208 (tui_set_initial_layout): Declare function.
9209 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9210 (asm_regs_layout): New globals.
9211 (tui_current_layout, show_layout): Remove.
9212 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9213 (find_layout, tui_apply_layout): New function.
9214 (layout_completer): Remove.
9215 (tui_next_layout): Reimplement.
9216 (tui_next_layout_command): New function.
9217 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9218 (tui_regs_layout): Reimplement.
9219 (tui_regs_layout_command): New function.
9220 (extract_display_start_addr): Rewrite.
9221 (next_layout, prev_layout): Remove.
9222 (tui_layout_window::replace_window): New method.
9223 (tui_layout_split::replace_window): New method.
9224 (destroy_layout): New function.
9225 (layout_list): New global.
9226 (add_layout_command): New function.
9227 (initialize_layouts): Update.
9228 (tui_layout_command): New function.
9229 (_initialize_tui_layout): Install "layout" commands.
9230 * tui/tui-data.h (enum tui_layout_type): Remove.
9231 (tui_current_layout): Don't declare.
9232
9233 2020-02-22 Tom Tromey <tom@tromey.com>
9234
9235 * tui/tui-regs.c (tui_reg_layout): Remove.
9236 (tui_reg_command): Use tui_regs_layout.
9237 * tui/tui-layout.h (tui_reg_command): Declare.
9238 * tui/tui-layout.c (tui_reg_command): New function.
9239
9240 2020-02-22 Tom Tromey <tom@tromey.com>
9241
9242 * tui/tui.c (tui_rl_delete_other_windows): Call
9243 tui_remove_some_windows.
9244 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9245 Declare method.
9246 (class tui_layout_window) <remove_windows>: New method.
9247 (class tui_layout_split) <remove_windows>: Declare.
9248 (tui_remove_some_windows): Declare.
9249 * tui/tui-layout.c (tui_remove_some_windows): New function.
9250 (tui_layout_split::remove_windows): New method.
9251
9252 2020-02-22 Tom Tromey <tom@tromey.com>
9253
9254 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9255 * tui/tui-layout.h (tui_next_layout): Declare.
9256 * tui/tui-layout.c (tui_next_layout): New function.
9257
9258 2020-02-22 Tom Tromey <tom@tromey.com>
9259
9260 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9261 correct coordinates.
9262
9263 2020-02-22 Tom Tromey <tom@tromey.com>
9264
9265 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9266 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9267 DATA_WIN case.
9268
9269 2020-02-22 Tom Tromey <tom@tromey.com>
9270
9271 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9272 TUI_DISASM_WIN, not tui_win_list.
9273
9274 2020-02-22 Tom Tromey <tom@tromey.com>
9275
9276 * valprint.c (generic_val_print_enum_1)
9277 (val_print_type_code_flags): Style member names.
9278 * rust-lang.c (val_print_struct, rust_print_enum)
9279 (rust_print_struct_def, rust_internal_print_type): Style member
9280 names.
9281 * p-valprint.c (pascal_object_print_value_fields): Style member
9282 names. Only call fprintf_symbol_filtered for static members.
9283 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9284 * f-valprint.c (f_val_print): Style member names.
9285 * f-typeprint.c (f_type_print_base): Style member names.
9286 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9287 call fprintf_symbol_filtered for static members.
9288 (cp_print_class_member): Style member names.
9289 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9290 member names.
9291 * ada-valprint.c (ada_print_scalar): Style enum names.
9292 (ada_val_print_enum): Likewise.
9293 * ada-typeprint.c (print_enum_type): Style enum names.
9294
9295 2020-02-21 Tom Tromey <tom@tromey.com>
9296
9297 * psympriv.h (struct partial_symtab): Update comment.
9298
9299 2020-02-21 Tom Tromey <tromey@adacore.com>
9300
9301 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9302 type is CORE_ADDR.
9303
9304 2020-02-21 Tom de Vries <tdevries@suse.de>
9305
9306 PR gdb/25534
9307 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9308 if dependencies[i]->user != NULL.
9309
9310 2020-02-21 Ali Tamur <tamur@google.com>
9311
9312 * dwarf2/read.c (dwarf2_name): Add null check.
9313
9314 2020-02-20 Tom Tromey <tom@tromey.com>
9315
9316 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9317 ">=", in binary search.
9318 (dwarf2_find_containing_comp_unit): New overload.
9319 (run_test): New self-test.
9320 (_initialize_dwarf2_read): Register new test.
9321
9322 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
9323
9324 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9325 * riscv-tdep.h: Likewise.
9326 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9327 rv32-only CSR.
9328 * features/riscv/64bit-csr.xml: Regenerated.
9329
9330 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9331 Tom Tromey <tom@tromey.com>
9332
9333 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9334 of 'fputc_unfiltered'.
9335 (putchar_unfiltered): Call 'fputc_unfiltered'.
9336 (fputc_unfiltered): Call 'fputs_unfiltered'.
9337
9338 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9339
9340 * config.in: Regenerate.
9341 * configure: Regenerate.
9342 * configure.ac: Add --with-python-libdir option.
9343 * main.c: Use WITH_PYTHON_LIBDIR.
9344
9345 2020-02-19 Tom Tromey <tom@tromey.com>
9346
9347 * symtab.c (general_symbol_info::compute_and_set_names): Use
9348 obstack_strndup. Simplify call to symbol_set_demangled_name.
9349
9350 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
9351
9352 * dwarf2/read.c (allocate_signatured_type_table,
9353 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9354 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9355 Remove objfile parameter, update all callers.
9356
9357 2020-02-19 Doug Evans <dje@google.com>
9358
9359 PR rust/25535
9360 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9361 rust_enum_variant calculation.
9362
9363 2020-02-19 Tom Tromey <tromey@adacore.com>
9364
9365 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9366
9367 2020-02-19 Tom Tromey <tromey@adacore.com>
9368
9369 * ada-lang.c (cache_symbol): Use obstack_strdup.
9370
9371 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9372
9373 * configure: Regenerate.
9374
9375 2020-02-19 Tom Tromey <tromey@adacore.com>
9376
9377 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9378 NULL check.
9379
9380 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
9381
9382 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9383
9384 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9385
9386 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9387 if GDBSERVER is not defined.
9388 (riscv_tdesc_cache): Likewise, also store const target_desc.
9389 (STATIC_IN_GDB): Define.
9390 (riscv_create_target_description): Update declaration with
9391 STATIC_IN_GDB.
9392 (riscv_lookup_target_description): New function, only define if
9393 GDBSERVER is not defined.
9394 * arch/riscv.h (riscv_create_target_description): Declare only
9395 when GDBSERVER is defined.
9396 (riscv_lookup_target_description): New declaration when GDBSERVER
9397 is not defined.
9398 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9399 (riscv_linux_read_features): ...this, and return
9400 riscv_gdbarch_features instead of target_desc.
9401 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9402 (riscv_linux_read_description): Rename to...
9403 (riscv_linux_read_features): ...this.
9404 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9405 Update to use riscv_gdbarch_features and
9406 riscv_lookup_target_description.
9407 * riscv-tdep.c (riscv_find_default_target_description): Use
9408 riscv_lookup_target_description instead of
9409 riscv_create_target_description.
9410
9411 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9412
9413 * valprint.c (generic_val_print_enum_1): When printing a flag
9414 enum with value 0 and there is no enumerator with value 0, print
9415 just "0" instead of "(unknown: 0x0)".
9416
9417 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9418
9419 * valprint.c (generic_val_print_enum_1): Print unknown part of
9420 flag enum in hex.
9421
9422 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9423
9424 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9425 flag enums to contain duplicate enumerators.
9426 * valprint.c (generic_val_print_enum_1): Update comment.
9427
9428 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9429
9430 * dwarf2/read.c: Include "count-one-bits.h".
9431 (update_enumeration_type_from_children): If an enumerator has
9432 multiple bits set, don't treat the enumeration as a "flag enum".
9433 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9434 of flag enums have 0 or 1 bit set.
9435
9436 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9437
9438 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9439 conversion.
9440 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9441 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9442 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9443 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9444 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9445
9446 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9447
9448 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9449
9450 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9451
9452 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9453 displaced_step_closure_up.
9454 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9455 (struct displaced_step_closure_up):
9456 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9457 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9458 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9459 Likewise.
9460 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9461 * gdbarch.c, gdbarch.h: Re-generate.
9462 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9463 displaced_step_closure_up.
9464 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9465 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9466 * infrun.h (displaced_step_closure_up): New type alias.
9467 (struct displaced_step_inferior_state) <step_closure>: Change
9468 type to displaced_step_closure_up.
9469 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9470 displaced_step_closure_up.
9471 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9472
9473 2020-02-14 Tom Tromey <tom@tromey.com>
9474
9475 * minidebug.c (gnu_debug_key): New global.
9476 (find_separate_debug_file_in_section): Use it.
9477
9478 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9479
9480 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9481 std::unique_ptr.
9482 * gdbarch.c: Re-generate.
9483 * gdbarch.h: Re-generate.
9484 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9485 change.
9486 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9487 type to std::unique_ptr.
9488 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9489 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9490 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9491 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9492 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9493 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9494 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9495 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9496 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9497
9498 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9499
9500 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9501 std::unique_ptr.
9502 (displaced_step_clear): Rename to...
9503 (displaced_step_reset): ... this. Just call displaced->reset ().
9504 (displaced_step_clear_cleanup): Rename to...
9505 (displaced_step_reset_cleanup): ... this.
9506 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9507 (displaced_step_fixup): Likewise.
9508 (resume_1): Likewise.
9509 (handle_inferior_event): Restore child's memory before calling
9510 displaced_step_fixup on the parent.
9511 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9512 to std::unique_ptr.
9513 <step_closure>: Change type to std::unique_ptr.
9514
9515 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9516
9517 * arm-tdep.c: Include count-one-bits.h.
9518 (cleanup_block_store_pc): Use count_one_bits.
9519 (cleanup_block_load_pc): Use count_one_bits.
9520 (arm_copy_block_xfer): Use count_one_bits.
9521 (thumb2_copy_block_xfer): Use count_one_bits.
9522 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9523 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9524 (thumb_get_next_pcs_raw): Use count_one_bits.
9525 (arm_get_next_pcs_raw): Use count_one_bits_l.
9526 * arch/arm.c (bitcount): Remove.
9527 * arch/arm.h (bitcount): Remove.
9528
9529 2020-02-14 Tom Tromey <tromey@adacore.com>
9530
9531 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9532 Update.
9533 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9534 * dwarf2/loc.c (call_site_find_chain_1): Return
9535 unique_xmalloc_ptr.
9536 (call_site_find_chain): Likewise.
9537
9538 2020-02-14 Richard Biener <rguenther@suse.de>
9539
9540 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9541 on expression with division operators.
9542
9543 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9544
9545 * MAINTAINERS (Write After Approval): Adding myself.
9546
9547 2020-02-12 Tom Tromey <tom@tromey.com>
9548
9549 * event-loop.c (event_data, gdb_event, event_handler_func):
9550 Remove.
9551
9552 2020-02-12 Tom Tromey <tom@tromey.com>
9553
9554 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9555 (dwarf2_frame_objfile_data): Add comment.
9556 (find_comp_unit, set_comp_unit): New functions.
9557 (dwarf2_frame_find_fde): Use find_comp_unit.
9558 (dwarf2_build_frame_info): Use set_comp_unit.
9559
9560 2020-02-12 Tom Tromey <tom@tromey.com>
9561
9562 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9563 (comp_unit): Don't initialize objfile.
9564 (execute_cfa_program): Add text_offset parameter.
9565 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9566 (dwarf2_frame_cache): Update.
9567 (dwarf2_build_frame_info): Don't set "objfile" member.
9568
9569 2020-02-12 Tom Tromey <tom@tromey.com>
9570
9571 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9572 (decode_frame_entry): Likewise.
9573 (dwarf2_build_frame_info): Update.
9574
9575 2020-02-12 Tom Tromey <tom@tromey.com>
9576
9577 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9578 (decode_frame_entry_1): Use the comp_unit obstack.
9579
9580 2020-02-12 Tom Tromey <tom@tromey.com>
9581
9582 * dwarf2/frame.c (struct comp_unit): Add initializers and
9583 constructor.
9584 (dwarf2_frame_objfile_data): Store a comp_unit.
9585 (dwarf2_frame_find_fde): Update.
9586 (dwarf2_build_frame_info): Use "new".
9587
9588 2020-02-12 Tom Tromey <tom@tromey.com>
9589
9590 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9591 (dwarf2_fde_table): Typedef for std::vector.
9592 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9593 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9594 (decode_frame_entry): Update.
9595 (dwarf2_build_frame_info): Use "new".
9596
9597 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9598
9599 * arm-tdep.c (arm_gdbarch_init): Update.
9600 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9601 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9602 have_neon, is_m>: Change to bool.
9603
9604 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9605
9606 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9607
9608 2020-02-12 Tom Tromey <tom@tromey.com>
9609
9610 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9611
9612 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
9613
9614 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9615 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9616
9617 2020-02-11 Tom Tromey <tom@tromey.com>
9618
9619 * psymtab.h: Update comment.
9620
9621 2020-02-11 Tom Tromey <tom@tromey.com>
9622
9623 * gdb_obstack.h (struct auto_obstack): Use
9624 DISABLE_COPY_AND_ASSIGN.
9625
9626 2020-02-11 Tom Tromey <tom@tromey.com>
9627
9628 * dwarf2/frame.h (struct objfile): Don't forward declare.
9629
9630 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9631
9632 * cris-tdep.c (cris_supply_gregset): Change signature to match
9633 what struct regset expects.
9634 (cris_regset): New struct.
9635 (fetch_core_registers): Remove.
9636 (cris_iterate_over_regset_sections): New function.
9637 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9638 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9639
9640 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9641
9642 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9643 registers.
9644
9645 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9646
9647 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9648
9649 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9650
9651 * configure: Re-generate.
9652
9653 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9654
9655 * configure: Re-generate.
9656
9657 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9658
9659 * acinclude: Update warning.m4 path.
9660 * warning.m4: Move to gdbsupport.
9661
9662 2020-02-11 Tom Tromey <tromey@adacore.com>
9663
9664 * remote.c (remote_console_output): Update.
9665 * printcmd.c (printf_command): Update.
9666 * event-loop.c (gdb_wait_for_event): Update.
9667 * linux-nat.c (sigchld_handler): Update.
9668 * remote-sim.c (gdb_os_write_stdout): Update.
9669 (gdb_os_flush_stdout): Update.
9670 (gdb_os_flush_stderr): Update.
9671 (gdb_os_write_stderr): Update.
9672 * exceptions.c (print_exception): Update.
9673 * remote-fileio.c (remote_fileio_func_read): Update.
9674 (remote_fileio_func_write): Update.
9675 * tui/tui.c (tui_enable): Update.
9676 * tui/tui-interp.c (tui_interp::init): Update.
9677 * utils.c (init_page_info): Update.
9678 (putchar_unfiltered, fputc_unfiltered): Update.
9679 (gdb_flush): Update.
9680 (emit_style_escape): Update.
9681 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9682 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9683 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9684 (stderr_file::write): Update.
9685 (stderr_file::puts): Update.
9686 * ui-file.h (ui_file_isatty, ui_file_write)
9687 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9688 (ui_file_puts): Don't declare.
9689
9690 2020-02-10 Tom de Vries <tdevries@suse.de>
9691
9692 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9693 sentinel to char *.
9694
9695 2020-02-09 Tom de Vries <tdevries@suse.de>
9696
9697 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9698 filename if it matches "<artificial>".
9699
9700 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9701
9702 * windows-tdep.c (struct enum_value_name): New struct.
9703 (create_enum): New function.
9704 (windows_get_siginfo_type): Create and use enum types.
9705
9706 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9707
9708 * NEWS: Mention $_siginfo support for Windows.
9709 * windows-nat.c (handle_exception): Set siginfo_er.
9710 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9711 (windows_xfer_siginfo): New function.
9712 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9713 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9714 (init_windows_gdbarch_data): New function.
9715 (get_windows_gdbarch_data): New function.
9716 (windows_get_siginfo_type): New function.
9717 (windows_init_abi): Register windows_get_siginfo_type.
9718 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9719
9720 2020-02-08 Tom Tromey <tom@tromey.com>
9721
9722 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9723 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9724 <keep>: Declare method.
9725 <m_keep>: Remove member.
9726 <~cutu_reader>: Remove.
9727 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9728 (cutu_reader::cutu_reader): Update.
9729 (cutu_reader::keep): Rename from ~cutu_reader.
9730 (process_psymtab_comp_unit, build_type_psymtabs_1)
9731 (process_skeletonless_type_unit, load_partial_comp_unit)
9732 (load_full_comp_unit, dwarf2_read_addr_index)
9733 (read_signatured_type): Update.
9734
9735 2020-02-08 Tom Tromey <tom@tromey.com>
9736
9737 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9738 "want_partial_unit" parameter.
9739 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9740 Inline check for DW_TAG_partial_unit.
9741 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9742
9743 2020-02-08 Tom Tromey <tom@tromey.com>
9744
9745 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9746 read.c.
9747 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9748 read.c.
9749
9750 2020-02-08 Tom Tromey <tom@tromey.com>
9751
9752 * dwarf2/read.c (read_address): Move to comp-unit.c.
9753 (dwarf2_rnglists_process, dwarf2_ranges_process)
9754 (read_attribute_value, dwarf_decode_lines_1)
9755 (var_decode_location, decode_locdesc): Update.
9756 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9757 read.c. Remove "cu" parameter.
9758 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9759 method.
9760
9761 2020-02-08 Tom Tromey <tom@tromey.com>
9762
9763 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9764 (read_indirect_line_string): Update.
9765 * dwarf2/comp-unit.c (read_offset): Remove.
9766 (read_comp_unit_head): Update.
9767 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9768 method.
9769 (read_offset): Don't declare.
9770
9771 2020-02-08 Tom Tromey <tom@tromey.com>
9772
9773 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9774 * dwarf2/read.c (struct comp_unit_head): Move to
9775 dwarf2/comp-unit.h.
9776 (enum class rcuh_kind): Move to comp-unit.h.
9777 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9778 (read_comp_unit_head, error_check_comp_unit_head)
9779 (read_and_check_comp_unit_head): Move to comp-unit.c.
9780 (read_offset, dwarf_unit_type_name): Likewise.
9781 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9782 (cutu_reader::cutu_reader, read_call_site_scope)
9783 (find_partial_die, follow_die_offset): Update.
9784 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9785
9786 2020-02-08 Tom Tromey <tom@tromey.com>
9787
9788 * dwarf2/read.c (read_offset_1): Move to leb.c.
9789 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9790 (dwarf_decode_macro_bytes): Update.
9791 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9792 * dwarf2/leb.h (read_offset): Declare.
9793
9794 2020-02-08 Tom Tromey <tom@tromey.com>
9795
9796 * dwarf2/read.c (dwarf2_section_size): Remove.
9797 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9798 Update.
9799 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9800
9801 2020-02-08 Tom Tromey <tom@tromey.com>
9802
9803 * dwarf2/read.c (read_initial_length): Move to leb.c.
9804 * dwarf2/leb.h (read_initial_length): Declare.
9805 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9806 handle_nonstd parameter.
9807 * dwarf2/frame.c (read_initial_length): Remove.
9808 (decode_frame_entry_1): Update.
9809
9810 2020-02-08 Tom Tromey <tom@tromey.com>
9811
9812 * dwarf2/loc.c (dwarf2_find_location_expression)
9813 (dwarf_evaluate_loc_desc::get_tls_address)
9814 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9815 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9816 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9817 (dwarf2_compile_property_to_c)
9818 (dwarf2_loc_desc_get_symbol_read_needs)
9819 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9820 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9821 (loclist_describe_location, loclist_tracepoint_var_ref)
9822 (loclist_generate_c_location): Update.
9823 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9824 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9825 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9826 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9827 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9828 (dwarf2_per_cu_data::addr_size)
9829 (dwarf2_per_cu_data::ref_addr_size)
9830 (dwarf2_per_cu_data::text_offset)
9831 (dwarf2_per_cu_data::addr_type): Now methods.
9832 (per_cu_header_read_in): Make per_cu "const".
9833 (dwarf2_version): Remove.
9834 (dwarf2_per_cu_data::int_type): Now a method.
9835 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9836 (set_die_type, read_array_type, read_subrange_index_type)
9837 (read_tag_string_type, read_subrange_type): Update.
9838 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9839 offset_size, ref_addr_size, text_offset, addr_type, version,
9840 objfile, int_type, addr_sized_int_type>: Declare methods.
9841
9842 2020-02-08 Tom Tromey <tom@tromey.com>
9843
9844 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9845 Move earlier.
9846
9847 2020-02-08 Tom Tromey <tom@tromey.com>
9848
9849 * dwarf2/read.h (dwarf_line_debug): Declare.
9850 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9851 * dwarf2/read.c: Move line_header code to new files.
9852 (dwarf_line_debug): No longer static.
9853 * dwarf2/line-header.c: New file.
9854 * dwarf2/line-header.h: New file.
9855
9856 2020-02-08 Tom Tromey <tom@tromey.com>
9857
9858 * dwarf2/read.c (struct line_header) <file_full_name,
9859 file_file_name>: Return unique_xmalloc_ptr.
9860 (line_header::file_file_name): Update.
9861 (line_header::file_full_name): Update.
9862 (dw2_get_file_names_reader): Update.
9863 (macro_start_file): Update.
9864
9865 2020-02-08 Tom Tromey <tom@tromey.com>
9866
9867 * dwarf2/read.c (struct line_header) <file_full_name,
9868 file_file_name>: Declare methods.
9869 (dw2_get_file_names_reader): Update.
9870 (file_file_name): Now a method.
9871 (file_full_name): Likewise.
9872 (macro_start_file): Update.
9873
9874 2020-02-08 Tom Tromey <tom@tromey.com>
9875
9876 * dwarf2/read.c (dwarf_always_disassemble)
9877 (show_dwarf_always_disassemble): Move to loc.c.
9878 (_initialize_dwarf2_read): Move "always-disassemble" registration
9879 to loc.c.
9880 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9881 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9882 static.
9883 (show_dwarf_always_disassemble): Move from read.c.
9884 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9885
9886 2020-02-08 Tom Tromey <tom@tromey.com>
9887
9888 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9889 (create_quick_file_names_table): Return htab_up.
9890 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9891 Update.
9892 * dwarf2/read.h (struct dwarf2_per_objfile)
9893 <quick_file_names_table>: Now htab_up.
9894
9895 2020-02-08 Tom Tromey <tom@tromey.com>
9896
9897 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9898
9899 2020-02-08 Tom Tromey <tom@tromey.com>
9900
9901 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9902 Rewrite.
9903 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9904 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9905 (abbrev_table::abbrev_table): No longer inline.
9906 (ABBREV_HASH_SIZE): Remove.
9907 (abbrev_table::m_abbrevs): Now an htab_up.
9908
9909 2020-02-08 Tom Tromey <tom@tromey.com>
9910
9911 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9912 (cutu_reader): Update.
9913 (build_type_psymtabs_1): Update.
9914 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9915 (abbrev_table::alloc_abbrev): Update.
9916 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9917 (abbrev_table::read): New static method, renamed from
9918 abbrev_table_read_table.
9919 (abbrev_table::alloc_abbrev)
9920 (abbrev_table::add_abbrev): Now private.
9921 (abbrev_table::abbrev_table): Now private.
9922 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9923
9924 2020-02-08 Tom Tromey <tom@tromey.com>
9925
9926 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9927 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9928 htab_up.
9929
9930 2020-02-08 Tom Tromey <tom@tromey.com>
9931
9932 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9933 htab_up.
9934 (lookup_dwo_unit_in_dwp): Update.
9935 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9936 on obstack.
9937
9938 2020-02-08 Tom Tromey <tom@tromey.com>
9939
9940 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9941 obstack.
9942
9943 2020-02-08 Tom Tromey <tom@tromey.com>
9944
9945 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9946 line_header_hash.
9947 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9948 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9949 Change type to htab_up.
9950
9951 2020-02-08 Tom Tromey <tom@tromey.com>
9952
9953 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9954 htab_up. Don't allocate on obstack.
9955 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9956 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9957 Change type to htab_up.
9958
9959 2020-02-08 Tom Tromey <tom@tromey.com>
9960
9961 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9962 Change type to htab_up.
9963 * dwarf2/read.c (create_signatured_type_table_from_index)
9964 (create_signatured_type_table_from_debug_names)
9965 (create_all_type_units, add_type_unit)
9966 (lookup_dwo_signatured_type, lookup_signatured_type)
9967 (process_skeletonless_type_unit): Update.
9968 (create_debug_type_hash_table, create_debug_types_hash_table):
9969 Change type of types_htab.
9970 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9971 htab_up. Don't allocate on obstack.
9972 (create_cus_hash_table): Change type of cus_htab parameter.
9973 (struct dwo_file) <cus, tus>: Now htab_up.
9974 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9975 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9976 (queue_and_load_all_dwo_tus): Update.
9977 * dwarf2/index-write.c (write_gdbindex): Update.
9978 (write_debug_names): Update.
9979
9980 2020-02-08 Tom Tromey <tom@tromey.com>
9981
9982 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9983 dwarf2/read.c. Remove "next" member. Add constructor ntad
9984 destructor.
9985 (struct dwarf2_per_objfile) <queue>: New member.
9986 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9987 dwarf2/read.h.
9988 (dwarf2_queue, dwarf2_queue_tail): Remove.
9989 (class dwarf2_queue_guard): Add parameter to constructor. Use
9990 DISABLE_COPY_AND_ASSIGN.
9991 <m_per_objfile>: New member.
9992 <~dwarf2_queue_guard>: Rewrite.
9993 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9994 Update.
9995 (~dwarf2_queue_item): New.
9996
9997 2020-02-08 Tom Tromey <tom@tromey.com>
9998
9999 * dwarf2/read.c (struct die_info) <has_children>: New member.
10000 (dw2_get_file_names_reader): Remove has_children.
10001 (dw2_get_file_names): Update.
10002 (read_cutu_die_from_dwo): Remove has_children.
10003 (cutu_reader::init_tu_and_read_dwo_dies)
10004 (cutu_reader::cutu_reader): Update.
10005 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
10006 Remove has_children.
10007 (build_type_psymtabs_1, process_skeletonless_type_unit)
10008 (load_partial_comp_unit, load_full_comp_unit): Update.
10009 (create_dwo_cu_reader): Remove has_children.
10010 (create_cus_hash_table, read_die_and_children): Update.
10011 (read_full_die_1,read_full_die): Remove has_children.
10012 (read_signatured_type): Update.
10013 (class cutu_reader) <has_children>: Remove.
10014
10015 2020-02-08 Tom Tromey <tom@tromey.com>
10016
10017 * dwarf2/expr.c: Rename from dwarf2expr.c.
10018 * dwarf2/expr.h: Rename from dwarf2expr.h.
10019 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
10020 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
10021 * dwarf2/frame.c: Rename from dwarf2-frame.c.
10022 * dwarf2/frame.h: Rename from dwarf2-frame.h.
10023 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
10024 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
10025 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
10026 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
10027 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
10028 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
10029 * dwarf2/loc.c: Rename from dwarf2loc.c.
10030 * dwarf2/loc.h: Rename from dwarf2loc.h.
10031 * dwarf2/read.c: Rename from dwarf2read.c.
10032 * dwarf2/read.h: Rename from dwarf2read.h.
10033 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
10034 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
10035 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
10036 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
10037 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
10038 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
10039 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
10040 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
10041 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
10042 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
10043 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
10044 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
10045 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
10046 Update.
10047 * Makefile.in (COMMON_SFILES): Update.
10048 (HFILES_NO_SRCDIR): Update.
10049
10050 2020-02-08 Tom Tromey <tom@tromey.com>
10051
10052 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
10053 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
10054
10055 2020-02-08 Tom Tromey <tom@tromey.com>
10056
10057 * dwarf2read.h (struct die_info): Don't declare.
10058
10059 2020-02-08 Tom Tromey <tom@tromey.com>
10060
10061 * dwarf2read.h (die_info_ptr): Remove typedef.
10062
10063 2020-02-08 Tom Tromey <tom@tromey.com>
10064
10065 * dwarf2read.c (read_call_site_scope)
10066 (handle_data_member_location, dwarf2_add_member_fn)
10067 (mark_common_block_symbol_computed, read_common_block)
10068 (attr_to_dynamic_prop, partial_die_info::read)
10069 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
10070 (dwarf2_symbol_mark_computed, set_die_type): Update.
10071 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
10072 method.
10073 (attr_form_is_block): Don't declare.
10074 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
10075
10076 2020-02-08 Tom Tromey <tom@tromey.com>
10077
10078 * dwarf2read.c (dwarf2_find_base_address, )
10079 (read_call_site_scope, rust_containing_type)
10080 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
10081 (handle_data_member_location, dwarf2_add_member_fn)
10082 (get_alignment, read_structure_type, process_structure_scope)
10083 (mark_common_block_symbol_computed, read_common_block)
10084 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
10085 (partial_die_info::read, read_attribute_value, new_symbol)
10086 (lookup_die_type, dwarf2_get_ref_die_offset)
10087 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
10088 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
10089 (dwarf2_symbol_mark_computed): Update.
10090 * dwarf2/attribute.h (struct attribute) <value_as_address,
10091 form_is_section_offset, form_is_constant, form_is_ref>: Declare
10092 methods.
10093 (value_as_address, attr_form_is_section_offset)
10094 (attr_form_is_constant, attr_form_is_ref): Don't declare.
10095 * dwarf2/attribute.c (attribute::value_as_address)
10096 (attribute::form_is_section_offset, attribute::form_is_constant)
10097 (attribute::form_is_ref): Now methods.
10098
10099 2020-02-08 Tom Tromey <tom@tromey.com>
10100
10101 * dwarf2read.c (struct attribute, DW_STRING)
10102 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
10103 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
10104 (attr_form_is_block, attr_form_is_section_offset)
10105 (attr_form_is_constant, attr_form_is_ref): Move.
10106 * dwarf2/attribute.h: New file.
10107 * dwarf2/attribute.c: New file, from dwarf2read.c.
10108 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
10109
10110 2020-02-08 Tom Tromey <tom@tromey.com>
10111
10112 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
10113 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
10114 Move.
10115 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
10116 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
10117 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
10118 abbrev.c.
10119 * dwarf2/abbrev.h: New file.
10120 * dwarf2/abbrev.c: New file, from dwarf2read.c.
10121 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
10122
10123 2020-02-08 Tom Tromey <tom@tromey.com>
10124
10125 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
10126 (dwarf2_section_size, dwarf2_get_section_info)
10127 (create_signatured_type_table_from_debug_names)
10128 (create_addrmap_from_aranges, read_debug_names_from_section)
10129 (get_gdb_index_contents_from_section, read_comp_unit_head)
10130 (error_check_comp_unit_head, read_abbrev_offset)
10131 (create_debug_type_hash_table, init_cu_die_reader)
10132 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
10133 (read_comp_units_from_section, create_cus_hash_table)
10134 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10135 (create_dwp_v2_section, dwarf2_rnglists_process)
10136 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
10137 (abbrev_table_read_table, read_indirect_string_at_offset_from)
10138 (read_indirect_string_from_dwz, read_addr_index_1)
10139 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
10140 (dwarf_decode_macro_bytes, dwarf_decode_macros)
10141 (fill_in_loclist_baton): Update.
10142 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
10143 get_containing_section, get_bfd_owner, get_bfd_section,
10144 get_file_name, get_id, get_flags, empty, read>: Declare methods.
10145 (dwarf2_read_section, get_section_name, get_section_file_name)
10146 (get_containing_section, get_section_bfd_owner)
10147 (get_section_bfd_section, get_section_name, get_section_file_name)
10148 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
10149 declare.
10150 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
10151 (dwarf2_section_info::get_bfd_owner)
10152 (dwarf2_section_info::get_bfd_section)
10153 (dwarf2_section_info::get_name)
10154 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
10155 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
10156 (dwarf2_section_info::read): Now methods.
10157 * dwarf-index-write.c (class debug_names): Update.
10158
10159 2020-02-08 Tom Tromey <tom@tromey.com>
10160
10161 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
10162 Move to dwarf2/section.h.
10163 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
10164 (get_section_bfd_section, get_section_name)
10165 (get_section_file_name, get_section_id, get_section_flags)
10166 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
10167 dwarf2/section.c.
10168 * dwarf2/section.h: New file.
10169 * dwarf2/section.c: New file, from dwarf2read.c.
10170 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10171
10172 2020-02-08 Tom Tromey <tom@tromey.com>
10173
10174 * dwarf2read.h (read_unsigned_leb128): Don't declare.
10175 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10176 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10177 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10178 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10179 * dwarf2/leb.h: New file, from dwarf2read.c.
10180 * dwarf2/leb.c: New file, from dwarf2read.c.
10181 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10182 Remove.
10183 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10184 (COMMON_SFILES): Add dwarf2/leb.c.
10185
10186 2020-02-08 Joel Brobecker <brobecker@adacore.com>
10187
10188 GDB 9.1 released.
10189
10190 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10191
10192 PR gdb/25190:
10193 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10194 * gdb/remote.c (remote_console_output): Update.
10195 * gdb/ui-file.c (fputs_unfiltered): Rename to...
10196 (ui_file_puts): ...this.
10197 * gdb/ui-file.h (ui_file_puts): Add declaration.
10198 * gdb/utils.c (emit_style_escape): Update.
10199 (flush_wrap_buffer): Update.
10200 (fputs_maybe_filtered): Update.
10201 (fputs_unfiltered): Add function.
10202
10203 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10204
10205 * gdb/event-loop.c (gdb_wait_for_event): Update.
10206 * gdb/printcmd.c (printf_command): Update.
10207 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10208 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10209 (gdb_os_flush_stderr): Update.
10210 * gdb/remote.c (remote_console_output): Update.
10211 * gdb/ui-file.c (gdb_flush): Rename to...
10212 (ui_file_flush): ...this.
10213 (stderr_file::write): Update.
10214 (stderr_file::puts): Update.
10215 * gdb/ui-file.h (gdb_flush): Rename to...
10216 (ui_file_flush): ...this.
10217 * gdb/utils.c (gdb_flush): Add function.
10218 * gdb/utils.h (gdb_flush): Add declaration.
10219
10220 2020-02-07 Tom Tromey <tromey@adacore.com>
10221
10222 PR breakpoints/24915:
10223 * source.c (find_and_open_source): Do not check basenames_may_differ.
10224
10225 2020-02-07 Tom Tromey <tom@tromey.com>
10226
10227 * README: Update gdbserver documentation.
10228 * gdbserver: Move to top level.
10229 * configure.tgt (build_gdbserver): Remove.
10230 * configure.ac: Remove --enable-gdbserver.
10231 * configure: Rebuild.
10232 * Makefile.in (distclean): Don't mention gdbserver.
10233
10234 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10235
10236 * source-cache.c (source_cache::ensure): Surround
10237 get_plain_source_lines with a try/catch.
10238 (source_cache::get_line_charpos): Get rid of try/catch
10239 and only check for the return value of "ensure".
10240 * tui/tui-source.c (tui_source_window::set_contents):
10241 Simplify "nlines" calculation.
10242
10243 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10244
10245 * MAINTAINERS (Write After Approval): Add myself.
10246
10247 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10248
10249 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10250 function call.
10251
10252 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10253
10254 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10255
10256 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
10257
10258 * nat/riscv-linux-tdesc.h: New file.
10259 * nat/riscv-linux-tdesc.c: New file, taking code from...
10260 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10261 ... here.
10262 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10263 NATDEPFILES.
10264
10265 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10266
10267 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10268 we don't set the fake simulator ptid to the null_ptid.
10269
10270 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
10271
10272 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10273 * gdbthread.h (class thread_info) <resumed>: Likewise.
10274 * infrun.c (resume_1): Likewise.
10275 (proceed): Likewise.
10276 (infrun_thread_stop_requested): Likewise.
10277 (stop_all_threads): Likewise.
10278 (handle_inferior_event): Likewise.
10279 (restart_threads): Likewise.
10280 (finish_step_over): Likewise.
10281 (keep_going_stepped_thread): Likewise.
10282 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10283 (linux_handle_extended_wait): Likewise.
10284 * record-btrace.c (get_thread_current_frame_id): Likewise.
10285 * record-full.c (record_full_wait_1): Likewise.
10286 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10287 * target.c (target_resume): Likewise.
10288 * thread.c (set_running_thread): Likewise.
10289
10290 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10291
10292 * f-valprint.c (f77_print_array_1): Changed datatype of index
10293 variable to LONGEST from int to enable it to contain bound
10294 values correctly.
10295
10296 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
10297
10298 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10299 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10300 offsets according to FLEN determined.
10301 (riscv_linux_nat_target::read_description): Determine FLEN
10302 dynamically.
10303 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10304 according to FLEN determined.
10305 (riscv_linux_nat_target::store_registers): Likewise.
10306
10307 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10308
10309 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10310 when reg->group is empty and reggroup is not.
10311
10312 2020-01-31 Tom Tromey <tromey@adacore.com>
10313
10314 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10315 Call beneath target's mourn_inferior after unpushing.
10316
10317 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10318
10319 PR tui/9765
10320 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10321 have enough lines to fill the screen, still return the lowest
10322 address we found.
10323
10324 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10325
10326 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10327 '-', '<', and '>' commands.
10328
10329 2020-01-29 Pedro Alves <palves@redhat.com>
10330 Sergio Durigan Junior <sergiodj@redhat.com>
10331
10332 * infcmd.c (construct_inferior_arguments): Assert that
10333 'argc' is greater than 0.
10334
10335 2020-01-29 Luis Machado <luis.machado@linaro.org>
10336
10337 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10338 (BRK_INSN_MASK): Define to 0xd4200000.
10339 (aarch64_program_breakpoint_here_p): New function.
10340 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10341 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10342 breakpoint.c.
10343 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10344 breakpoint.h
10345 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10346 call gdbarch_program_breakpoint_here_p.
10347 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10348 default_program_breakpoint_here_p, changed return type to bool and
10349 simplified.
10350 * breakpoint.h (program_breakpoint_here): Moved prototype to
10351 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10352 return type to bool.
10353 * gdbarch.c: Regenerate.
10354 * gdbarch.h: Regenerate.
10355 * gdbarch.sh (program_breakpoint_here_p): New method.
10356 * infrun.c (handle_signal_stop): Call
10357 gdbarch_program_breakpoint_here_p.
10358
10359 2020-01-26 Tom Tromey <tom@tromey.com>
10360
10361 * ctfread.c (struct ctf_fp_info): Reindent.
10362 (_initialize_ctfread): Remove.
10363
10364 2020-01-26 Tom Tromey <tom@tromey.com>
10365
10366 * psymtab.c (partial_map_expand_apply)
10367 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10368 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10369 (psym_print_stats, psym_expand_symtabs_for_function)
10370 (psym_map_symbol_filenames, psym_map_matching_symbols)
10371 (psym_expand_symtabs_matching)
10372 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10373 (maintenance_check_psymtabs): Use new methods.
10374 * psympriv.h (struct partial_symtab) <readin_p,
10375 get_compunit_symtab>: New methods.
10376 <readin, compunit_symtab>: Remove members.
10377 (struct standard_psymtab): New.
10378 (struct legacy_psymtab): Derive from standard_psymtab.
10379 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10380 standard_psymtab.
10381 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10382
10383 2020-01-26 Tom Tromey <tom@tromey.com>
10384
10385 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10386 read_dependencies. Add assert.
10387 * psymtab.c (partial_symtab::read_dependencies): New method.
10388 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10389 method.
10390 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10391 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10392 read_dependencies.
10393 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10394 Add assert.
10395
10396 2020-01-26 Tom Tromey <tom@tromey.com>
10397
10398 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10399 Call expand_psymtab.
10400 (xcoff_read_symtab): Call expand_psymtab.
10401 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10402 legacy_expand_psymtab.
10403 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10404 method.
10405 (struct legacy_psymtab) <expand_psymtab>: Implement.
10406 <legacy_expand_psymtab>: New member.
10407 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10408 (parse_partial_symbols): Set legacy_expand_psymtab.
10409 (psymtab_to_symtab_1): Change argument order. Call
10410 expand_psymtab.
10411 (new_psymtab): Set legacy_expand_psymtab.
10412 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10413 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10414 expand_psymtab.
10415 (dwarf2_psymtab::expand_psymtab): Rename from
10416 psymtab_to_symtab_1. Call expand_psymtab.
10417 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10418 (dbx_end_psymtab): Likewise.
10419 (dbx_psymtab_to_symtab_1): Change argument order. Call
10420 expand_psymtab.
10421 (dbx_read_symtab): Call expand_psymtab.
10422 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10423 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10424 (ctf_psymtab::read_symtab): Call expand_psymtab.
10425
10426 2020-01-26 Tom Tromey <tom@tromey.com>
10427
10428 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10429 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10430 messages.
10431 * mdebugread.c (mdebug_read_symtab): Remove prints.
10432 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10433 assert.
10434 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10435
10436 2020-01-26 Tom Tromey <tom@tromey.com>
10437
10438 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10439 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10440 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10441 legacy_symtab.
10442 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10443 * psymtab.c (psymtab_to_symtab): Call method.
10444 (dump_psymtab): Update.
10445 * psympriv.h (struct partial_symtab): Add virtual destructor.
10446 <read_symtab>: New method.
10447 (struct legacy_symtab): New.
10448 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10449 (struct pst_map) <pst>: Now a legacy_psymtab.
10450 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10451 (new_psymtab): Use legacy_psymtab.
10452 * dwarf2read.h (struct dwarf2_psymtab): New.
10453 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10454 * dwarf2read.c (dwarf2_create_include_psymtab)
10455 (dwarf2_build_include_psymtabs, create_type_unit_group)
10456 (create_partial_symtab, process_psymtab_comp_unit_reader)
10457 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10458 (set_partial_user): Use dwarf2_psymtab.
10459 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10460 (psymtab_to_symtab_1, process_full_comp_unit)
10461 (process_full_type_unit, dwarf2_ranges_read)
10462 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10463 (dwarf_decode_lines): Use dwarf2_psymtab.
10464 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10465 (add_address_entry_worker, write_one_signatured_type)
10466 (recursively_count_psymbols, recursively_write_psymbols)
10467 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10468 (write_debug_names): Likewise.
10469 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10470 <pst>: Now a legacy_psymtab.
10471 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10472 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10473 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10474 * ctfread.c (struct ctf_psymtab): New.
10475 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10476 ctf_psymtab.
10477 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10478 (create_partial_symtab): Return a ctf_psymtab.
10479 (scan_partial_symbols): Update.
10480
10481 2020-01-26 Tom Tromey <tom@tromey.com>
10482
10483 * xcoffread.c (xcoff_start_psymtab): Use new.
10484 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10485 renamed from start_psymtab_common.
10486 * psympriv.h (struct partial_symtab): Add new constructor.
10487 (start_psymtab_common): Don't declare.
10488 * mdebugread.c (parse_partial_symbols): Use new.
10489 * dwarf2read.c (create_partial_symtab): Use new.
10490 * dbxread.c (start_psymtab): Use new.
10491 * ctfread.c (create_partial_symtab): Use new.
10492
10493 2020-01-26 Tom Tromey <tom@tromey.com>
10494
10495 * xcoffread.c (xcoff_end_psymtab): Use new.
10496 * psymtab.c (start_psymtab_common): Use new.
10497 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10498 Update.
10499 * psympriv.h (struct partial_symtab): Add parameters to
10500 constructor. Don't inline.
10501 (allocate_psymtab): Don't declare.
10502 * mdebugread.c (new_psymtab): Use new.
10503 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10504 * dbxread.c (dbx_end_psymtab): Use new.
10505
10506 2020-01-26 Tom Tromey <tom@tromey.com>
10507
10508 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10509 allocate_psymtab. Update documentation.
10510 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10511 allocate_psymtab. Do not use new.
10512 (allocate_psymtab): Use new. Update.
10513
10514 2020-01-26 Tom Tromey <tom@tromey.com>
10515
10516 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10517 * psymtab.c (psym_print_stats): Update.
10518 * psympriv.h (struct partial_symtab) <readin,
10519 psymtabs_addrmap_supported, anonymous>: Now bool.
10520 * mdebugread.c (psymtab_to_symtab_1): Update.
10521 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10522 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10523 (process_full_comp_unit, process_full_type_unit): Update.
10524 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10525 * ctfread.c (psymtab_to_symtab): Update.
10526
10527 2020-01-26 Tom Tromey <tom@tromey.com>
10528
10529 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10530 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10531 * psymtab.c (psymtab_storage): Delete psymtabs.
10532 (psymtab_storage::allocate_psymtab): Use new.
10533 (psymtab_storage::discard_psymtab): Use delete.
10534 * psympriv.h (struct partial_symtab): Add constructor and
10535 initializers.
10536
10537 2020-01-26 Tom Tromey <tom@tromey.com>
10538
10539 * machoread.c: Do not include psympriv.h.
10540
10541 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10542
10543 * NEWS: Mention the new option and the set/show commands.
10544
10545 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10546
10547 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10548 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10549 (validate_exec_file): New variables, enums, functions.
10550 (exec_file_locate_attach, print_section_info): Style the filenames.
10551 (_initialize_exec): Install show_exec_file_mismatch_command and
10552 set_exec_file_mismatch_command.
10553 * gdbcore.h (validate_exec_file): Declare.
10554 * infcmd.c (attach_command): Call validate_exec_file.
10555 * remote.c ( remote_target::remote_add_inferior): Likewise.
10556
10557 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10558
10559 * frame.c (find_frame_sal): Move call to get_next_frame into more
10560 inner scope.
10561 * inline-frame.c (inilne_state) <inline_state>: Update argument
10562 types.
10563 (inilne_state) <skipped_symbol>: Rename to...
10564 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10565 (skip_inline_frames): Build vector of skipped symbols and use this
10566 to reate the inline_state.
10567 (inline_skipped_symbol): Add a comment and some assertions, fetch
10568 skipped symbol from the list.
10569
10570 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10571
10572 * buildsym.c (lte_is_less_than): Delete.
10573 (buildsym_compunit::end_symtab_with_blockvector): Create local
10574 lambda function to sort line table entries, and use
10575 std::stable_sort instead of std::sort.
10576 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10577 markers when looking for a previous line.
10578
10579 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10580
10581 * dwarf2read.c (lnp_state_machine::record_line): Include
10582 end_sequence parameter in debug print out. Record the line if we
10583 are at an end_sequence marker even if it's not the start of a
10584 statement.
10585 * symmisc.c (maintenance_print_one_line_table): Print end of
10586 sequence markers with 'END' not '0'.
10587
10588 2020-01-24 Pedro Alves <palves@redhat.com>
10589
10590 PR gdb/25410
10591 * thread.c (scoped_restore_current_thread::restore): Use
10592 switch_to_inferior_no_thread.
10593 * exec.c: Include "progspace-and-thread.h".
10594 (add_target_sections, remove_target_sections):
10595 scoped_restore_current_pspace_and_thread instead of
10596 scoped_restore_current_thread.
10597 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10598 and aspace to the inferior before calling clone_program_space.
10599 Remove stale comment.
10600
10601 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10602
10603 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10604 (arm_netbsd_nat_target::fetch_registers): ...this.
10605 (arm_nbsd_nat_target::store_registers): Rename to...
10606 (arm_netbsd_nat_target::store_registers): ...this.
10607
10608 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10609
10610 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10611 register_t.
10612
10613 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10614
10615 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10616 Update comment.
10617 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10618 Likewise.
10619 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10620 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10621 the correct replacement (iterate_over_regset_sections).
10622 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10623 Update comment.
10624
10625 2020-01-24 Graham Markall <graham.markall@embecosm.com>
10626
10627 PR gdb/23718
10628 * gdb/python/python.c (execute_gdb_command): Call
10629 async_enable_stdin in catch block.
10630
10631 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10632
10633 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10634 SWITCH_THRU_ALL_UIS.
10635
10636 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10637
10638 PR tui/9765
10639 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10640 comment, add extra parameter, and update to store previous symbol
10641 when appropriate.
10642 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10643 add extra parameter.
10644 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10645 remove unneeded parameter, add try/catch around gdb_print_insn,
10646 rewrite to add items to asm_lines vector.
10647 (tui_find_backward_disassembly_start_address): New function.
10648 (tui_find_disassembly_address): Updated throughout.
10649 (tui_disasm_window::set_contents): Update for changes to
10650 tui_disassemble.
10651 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10652 number of lines to scroll.
10653
10654 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10655
10656 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10657 (SECT_OFF_DATA): Likewise.
10658 (SECT_OFF_RODATA): Likewise.
10659 (SECT_OFF_TEXT): Likewise.
10660 (SECT_OFF_BSS): Likewise.
10661 (struct objfile) <text_section_offset, data_section_offset>: New
10662 methods.
10663 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10664 objfile::text_section_offset.
10665 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10666 * coffread.c (coff_symtab_read): Likewise.
10667 (enter_linenos): Likewise.
10668 (process_coff_symbol): Likewise.
10669 * ctfread.c (get_objfile_text_range): Likewise.
10670 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10671 Use objfile::data_section_offset.
10672 * dwarf2-frame.c (execute_cfa_program): Use
10673 objfile::text_section_offset.
10674 (dwarf2_frame_find_fde): Likewise.
10675 * dwarf2read.c (create_addrmap_from_index): Likewise.
10676 (create_addrmap_from_aranges): Likewise.
10677 (dw2_find_pc_sect_compunit_symtab): Likewise.
10678 (process_psymtab_comp_unit_reader): Likewise.
10679 (add_partial_symbol): Likewise.
10680 (add_partial_subprogram): Likewise.
10681 (process_full_comp_unit): Likewise.
10682 (read_file_scope): Likewise.
10683 (read_func_scope): Likewise.
10684 (read_lexical_block_scope): Likewise.
10685 (read_call_site_scope): Likewise.
10686 (dwarf2_rnglists_process): Likewise.
10687 (dwarf2_ranges_process): Likewise.
10688 (dwarf2_ranges_read): Likewise.
10689 (dwarf_decode_lines_1): Likewise.
10690 (new_symbol): Likewise.
10691 (dwarf2_fetch_die_loc_sect_off): Likewise.
10692 (dwarf2_per_cu_text_offset): Likewise.
10693 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10694 * hppa-tdep.c (read_unwind_info): Likewise.
10695 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10696 * psympriv.h (struct partial_symtab): Likewise.
10697 * psymtab.c (find_pc_sect_psymtab): Likewise.
10698 * solib-svr4.c (enable_break): Likewise.
10699 * stap-probe.c (relocate_address): Use
10700 objfile::data_section_offset.
10701 * xcoffread.c (enter_line_range): Use
10702 objfile::text_section_offset.
10703 (read_xcoff_symtab): Likewise.
10704
10705 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10706
10707 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10708 declaration to narrower scopes.
10709
10710 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10711
10712 * darwin-nat.h (struct darwin_exception_msg, enum
10713 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10714 Move up.
10715 (class darwin_nat_target) <wait_1, check_new_threads,
10716 decode_exception_message, decode_message, stop_inferior,
10717 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10718 * darwin-nat.c (darwin_check_new_threads): Rename to...
10719 (darwin_nat_target::check_new_threads): ... this.
10720 (darwin_suspend_inferior_it): Remove.
10721 (darwin_decode_exception_message): Rename to...
10722 (darwin_nat_target::decode_exception_message): ... this.
10723 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10724 (darwin_decode_message): Rename to...
10725 (darwin_nat_target::decode_message): ... this.
10726 (cancel_breakpoint): Rename to...
10727 (darwin_nat_target::cancel_breakpoint): ... this.
10728 (darwin_wait): Rename to...
10729 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10730 instead of iterate_over_inferiors.
10731 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10732 (darwin_stop_inferior): Rename to...
10733 (darwin_nat_target::stop_inferior): ... this.
10734 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10735 (darwin_init_thread_list): Rename to...
10736 (darwin_nat_target::init_thread_list): ... this.
10737 (darwin_ptrace_him): Rename to...
10738 (darwin_nat_target::ptrace_him): ... this.
10739 (darwin_nat_target::create_inferior): Pass lambda function to
10740 fork_inferior.
10741 (darwin_nat_target::detach): Call stop_inferior instead of
10742 darwin_stop_inferior.
10743 * fork-inferior.h (fork_inferior): Change init_trace_fun
10744 parameter to gdb::function_view.
10745 * fork-inferior.c (fork_inferior): Likewise.
10746
10747 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
10748
10749 * i386-cygwin-tdep.c (core_process_module_section): Update.
10750 * windows-nat.c (struct lm_info_windows): Add text_offset.
10751 (windows_xfer_shared_libraries): Update.
10752 * windows-tdep.c (windows_xfer_shared_library):
10753 Add text_offset_cached argument.
10754 * windows-tdep.h (windows_xfer_shared_library): Update.
10755
10756 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10757
10758 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10759
10760 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10761
10762 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10763 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10764 replace with range-based for.
10765 (gdbsim_interrupt_inferior): Remove.
10766 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10767 with a range-based for. Inline code from
10768 gdbsim_interrupt_inferior.
10769
10770 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10771
10772 * infrun.c (proceed): Fix indentation.
10773
10774 2020-01-21 Tom Tromey <tromey@adacore.com>
10775
10776 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10777 * python/python.c (python_extension_ops): Update.
10778 (gdbpy_colorize): New function.
10779 * python/lib/gdb/__init__.py (colorize): New function.
10780 * extension.h (ext_lang_colorize): Declare.
10781 * extension.c (ext_lang_colorize): New function.
10782 * extension-priv.h (struct extension_language_ops) <colorize>: New
10783 member.
10784 * cli/cli-style.c (_initialize_cli_style): Update help text.
10785
10786 2020-01-21 Luis Machado <luis.machado@linaro.org>
10787
10788 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10789 <cond>: Change type to bool.
10790 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10791 (aarch64_displaced_step_cb): Likewise.
10792 (aarch64_displaced_step_tb): Likewise.
10793
10794 2020-01-21 Luis Machado <luis.machado@linaro.org>
10795
10796 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10797 output.
10798
10799 2020-01-21 Luis Machado <luis.machado@linaro.org>
10800
10801 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10802 <pc_adjust>: Adjust the documentation.
10803 (aarch64_displaced_step_fixup): Check if PC really moved before
10804 adjusting it.
10805
10806 2020-01-19 Tom Tromey <tom@tromey.com>
10807
10808 * disasm.c (~gdb_disassembler): New destructor.
10809 (gdb_buffered_insn_length): Call disassemble_free_target.
10810 * disasm.h (class gdb_disassembler): Declare destructor. Use
10811 DISABLE_COPY_AND_ASSIGN.
10812
10813 2020-01-19 Tom Tromey <tom@tromey.com>
10814
10815 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10816 (die_reader_func_ftype): Remove.
10817 (cutu_reader): New class.
10818 (dw2_get_file_names_reader): Remove "data" parameter.
10819 (dw2_get_file_names): Use cutu_reader.
10820 (create_debug_type_hash_table): Update.
10821 (read_cutu_die_from_dwo): Update comment.
10822 (lookup_dwo_unit): Add dwo_name parameter.
10823 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10824 die_reader_func_ftype and data parameters.
10825 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10826 Remove die_reader_func_ftype and data parameters.
10827 (~cutu_reader): New; from init_cutu_and_read_dies.
10828 (cutu_reader::cutu_reader): Rename from
10829 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10830 and data parameters.
10831 (init_cutu_and_read_dies_simple): Remove.
10832 (struct process_psymtab_comp_unit_data): Remove.
10833 (process_psymtab_comp_unit_reader): Remove data parameter; add
10834 want_partial_unit and pretend_language parameters.
10835 (process_psymtab_comp_unit): Use cutu_reader.
10836 (build_type_psymtabs_reader): Remove data parameter.
10837 (build_type_psymtabs_1): Use cutu_reader.
10838 (process_skeletonless_type_unit): Likewise.
10839 (load_partial_comp_unit_reader): Remove.
10840 (load_partial_comp_unit): Use cutu_reader.
10841 (load_full_comp_unit_reader): Remove.
10842 (load_full_comp_unit): Use cutu_reader.
10843 (struct create_dwo_cu_data): Remove.
10844 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10845 dwo_unit parameters.
10846 (create_cus_hash_table): Use cutu_reader.
10847 (struct dwarf2_read_addr_index_data): Remove.
10848 (dwarf2_read_addr_index_reader): Remove.
10849 (dwarf2_read_addr_index): Use cutu_reader.
10850 (read_signatured_type_reader): Remove.
10851 (read_signatured_type): Use cutu_reader.
10852
10853 2020-01-19 Tom Tromey <tom@tromey.com>
10854
10855 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10856 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10857 (tui_wrefresh): Declare.
10858 * tui/tui-wingeneral.c (suppress_output): New global.
10859 (tui_suppress_output, ~tui_suppress_output): New constructor and
10860 destructor.
10861 (tui_wrefresh): New function.
10862 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10863 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10864 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10865 method.
10866 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10867 tui_wrefresh.
10868 (tui_data_window::no_refresh): New method.
10869 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10870 (tui_reg_command): Use tui_suppress_output
10871 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10872 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10873 method.
10874 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10875
10876 2020-01-19 Tom Tromey <tom@tromey.com>
10877
10878 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10879 Handle case where symtab is null.
10880
10881 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10882
10883 * linux-fork.c (one_fork_p): Simplify.
10884
10885 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10886
10887 * top.c (struct qt_args): Remove.
10888 (kill_or_detach): Change return type to void, replace `void *`
10889 parameter with a proper one.
10890 (print_inferior_quit_action): Likewise.
10891 (quit_confirm): Use range-based for loop to iterate over inferiors.
10892 (quit_force): Likewise.
10893
10894 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10895
10896 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10897 `void *` parameter with proper parameters.
10898 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10899 (print_one_inferior): Change return type to void, replace `void *`
10900 parameter with proper parameters.
10901 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10902 inferiors.
10903 (get_other_inferior): Remove.
10904 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10905 inferiors.
10906
10907 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10908
10909 * mi/mi-interp.c (report_initial_inferior): Remove.
10910 (mi_interp::init): Use range-based for to iterate over inferiors.
10911
10912 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10913
10914 * python/py-inferior.c (build_inferior_list): Remove.
10915 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10916
10917 2020-01-16 Christian Biesinger <cbiesinger@google.com>
10918
10919 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10920 (btrace_stitch_trace): Likewise.
10921 * charset.c (intermediate_encoding): Likewise (vaild).
10922 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10923 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10924 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10925
10926 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
10927
10928 * windows-tdep.c (windows_get_tlb_type):
10929 Add rtl_user_process_parameters type.
10930
10931 2020-01-16 Pedro Alves <palves@redhat.com>
10932 Norbert Lange <nolange79@gmail.com>
10933
10934 PR build/24805
10935 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10936 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10937 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10938 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10939 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10940 (ps_plog): Redeclare exported functions with default visibility.
10941
10942 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10943
10944 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10945 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10946
10947 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
10948
10949 * infcmd.c (post_create_inferior): Use get_thread_regcache
10950 instead of get_current_regcache.
10951
10952 2020-01-14 Tom Tromey <tom@tromey.com>
10953
10954 PR symtab/12535:
10955 * python/python.c (gdbpy_decode_line): Treat empty string the same
10956 as no argument.
10957
10958 2020-01-14 Tom Tromey <tom@tromey.com>
10959
10960 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10961
10962 2020-01-14 Tom Tromey <tom@tromey.com>
10963
10964 * nat/linux-btrace.c: Don't include <config.h>.
10965 * nat/linux-ptrace.c: Don't include <config.h>.
10966 * nat/x86-linux-dregs.c: Don't include <config.h>.
10967
10968 2020-01-14 Tom Tromey <tom@tromey.com>
10969
10970 * configure: Rebuild.
10971 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10972
10973 2020-01-14 Tom Tromey <tom@tromey.com>
10974
10975 * nat/x86-linux-dregs.c: Include configh.h.
10976 * nat/linux-ptrace.c: Include configh.h.
10977 * nat/linux-btrace.c: Include configh.h.
10978 * defs.h: Include config.h, bfd.h.
10979 * configure.ac: Don't source common.host.
10980 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10981 * configure: Rebuild.
10982 * acinclude.m4: Update path.
10983 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10984 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10985 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10986 (CLIBS): Add LIBSUPPORT.
10987 (CDEPS): Likewise.
10988 (COMMON_SFILES): Remove gdbsupport files.
10989 (HFILES_NO_SRCDIR): Likewise.
10990 (stamp-version): Update path to create-version.sh.
10991 (ALLDEPFILES): Remove gdbsupport files.
10992
10993 2020-01-14 Tom Tromey <tom@tromey.com>
10994
10995 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10996 USE_WIN32API when needed.
10997 * configure.ac (USE_WIN32API): Don't define.
10998 (WIN32LIBS): Use WIN32APILIBS.
10999 * configure: Rebuild.
11000
11001 2020-01-14 Tom Tromey <tom@tromey.com>
11002
11003 * configure: Rebuild.
11004 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
11005
11006 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
11007
11008 * skip.c (skip_function_command): Make skip w/o arguments use the
11009 name of the inlined function if pc is inside any inlined function.
11010
11011 2020-01-14 Luis Machado <luis.machado@linaro.org>
11012
11013 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
11014 * infrun.c (resume_1): Likewise.
11015 (handle_inferior_event): Remove stale comment.
11016 * linux-nat.c (linux_nat_target::resume): Update comments.
11017 (save_stop_reason): Likewise.
11018 (linux_nat_filter_event): Likewise.
11019 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
11020
11021 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11022
11023 * elfread.c (record_minimal_symbol): Set section index to 0 for
11024 non-allocatable sections.
11025
11026
11027 2020-01-13 Ali Tamur <tamur@google.com>
11028
11029 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
11030 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
11031 to gdb::optional. Update comments.
11032 (dwo_file): Update comments.
11033 (read_attribute): Update API to take an additional out parameter,
11034 need_reprocess. This is used to mark attributes that need other
11035 attributes (e.g. str_offsets_base) for correct computation which may not
11036 have been read yet.
11037 (read_attribute_reprocess): New function declaration.
11038 (read_addr_index): Likewise.
11039 (read_dwo_str_index): Likewise.
11040 (read_stub_str_index): Likewise.
11041 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
11042 (lookup_addr_base): New function definition.
11043 (lookup_ranges_base): Likewise.
11044 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
11045 lookup_ranges_base.
11046 (init_cutu_and_read_dies): Update comments.
11047 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
11048 unit. This is used to inherit parent's str_offsets_base and addr_base.
11049 Update comments.
11050 (init_cutu_and_read_dies_simple): Reflect API changes.
11051 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
11052 (create_cus_hash_table): Change API to take parent compile unit.
11053 Reflect API changes.
11054 (open_and_init_dwo_file): Reflect API changes.
11055 (dwarf2_get_pc_bounds): Update comments.
11056 (dwarf2_record_block_ranges): Likewise.
11057 (read_full_die_1): Change implementation to reprocess attributes that
11058 need str_offsets_base and addr_base.
11059 (partial_die_info::read): Likewise.
11060 (read_attribute_reprocess): New function definition.
11061 (read_attribute_value): Change API to take an additional out parameter,
11062 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
11063 when a non-dwo compile unit has index based attributes.
11064 (read_attribute): Reflect API changes.
11065 (read_addr_index_1): Reflect API changes. Update comments.
11066 (dwarf2_read_addr_index_data): Reflect API changes.
11067 (dwarf2_read_addr_index): Likewise.
11068 (read_str_index): Change API and implementation. This becomes a helper
11069 to be used by the new string index related methods. Update error
11070 message and comments.
11071 (read_dwo_str_index): New function definition.
11072 (read_stub_str_index): Likewise.
11073 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
11074 * symfile.h (dwarf2_debug_sections): Likewise.
11075 * xcoffread.c (dwarf2_debug_sections): Likewise.
11076
11077 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11078
11079 * gdbcore.h (struct core_fns) <core_read_registers>: Change
11080 core_reg_sect type to gdb_byte *.
11081 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
11082 * cris-tdep.c (fetch_core_registers): Likewise.
11083 * corelow.c (core_target::get_core_register_section): Change
11084 type of `contents` to gdb::byte_vector.
11085
11086 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11087
11088 * tui/tui-wingeneral.c (box_win): Position the title in the center
11089 of the border.
11090
11091 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11092
11093 * corelow.c (core_target::get_core_register_section): Use
11094 std::vector instead of alloca.
11095
11096 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11097
11098 * warning.m4: Add -Wmissing-declarations to build_warnings.
11099 * configure: Re-generate.
11100
11101 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11102
11103 * python/python.c (init__gdb_module): Add declaration.
11104
11105 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11106
11107 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
11108 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
11109 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
11110 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
11111 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
11112 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
11113 * ada-exp.y (_initialize_ada_exp): Add declaration.
11114 * ada-lang.c (_initialize_ada_language): Add declaration.
11115 * ada-tasks.c (_initialize_tasks): Add declaration.
11116 * agent.c (_initialize_agent): Add declaration.
11117 * aix-thread.c (_initialize_aix_thread): Add declaration.
11118 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
11119 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
11120 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
11121 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
11122 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
11123 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
11124 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
11125 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
11126 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
11127 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
11128 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
11129 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
11130 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
11131 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
11132 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
11133 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
11134 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
11135 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
11136 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
11137 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
11138 * annotate.c (_initialize_annotate): Add declaration.
11139 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
11140 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
11141 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
11142 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
11143 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
11144 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
11145 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
11146 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
11147 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
11148 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
11149 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
11150 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
11151 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
11152 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
11153 * auto-load.c (_initialize_auto_load): Add declaration.
11154 * auxv.c (_initialize_auxv): Add declaration.
11155 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
11156 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
11157 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
11158 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
11159 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
11160 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
11161 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
11162 * breakpoint.c (_initialize_breakpoint): Add declaration.
11163 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
11164 * btrace.c (_initialize_btrace): Add declaration.
11165 * charset.c (_initialize_charset): Add declaration.
11166 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
11167 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11168 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11169 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11170 * cli/cli-script.c (_initialize_cli_script): Add declaration.
11171 * cli/cli-style.c (_initialize_cli_style): Add declaration.
11172 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11173 * coffread.c (_initialize_coffread): Add declaration.
11174 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11175 * compile/compile.c (_initialize_compile): Add declaration.
11176 * complaints.c (_initialize_complaints): Add declaration.
11177 * completer.c (_initialize_completer): Add declaration.
11178 * copying.c (_initialize_copying): Add declaration.
11179 * corefile.c (_initialize_core): Add declaration.
11180 * corelow.c (_initialize_corelow): Add declaration.
11181 * cp-abi.c (_initialize_cp_abi): Add declaration.
11182 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11183 * cp-support.c (_initialize_cp_support): Add declaration.
11184 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11185 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11186 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11187 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11188 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11189 * ctfread.c (_initialize_ctfread): Add declaration.
11190 * d-lang.c (_initialize_d_language): Add declaration.
11191 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11192 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11193 * dbxread.c (_initialize_dbxread): Add declaration.
11194 * dcache.c (_initialize_dcache): Add declaration.
11195 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11196 * disasm.c (_initialize_disasm): Add declaration.
11197 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11198 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11199 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11200 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11201 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11202 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11203 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11204 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11205 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11206 * elfread.c (_initialize_elfread): Add declaration.
11207 * exec.c (_initialize_exec): Add declaration.
11208 * extension.c (_initialize_extension): Add declaration.
11209 * f-lang.c (_initialize_f_language): Add declaration.
11210 * f-valprint.c (_initialize_f_valprint): Add declaration.
11211 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11212 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11213 * filesystem.c (_initialize_filesystem): Add declaration.
11214 * findcmd.c (_initialize_mem_search): Add declaration.
11215 * findvar.c (_initialize_findvar): Add declaration.
11216 * fork-child.c (_initialize_fork_child): Add declaration.
11217 * frame-base.c (_initialize_frame_base): Add declaration.
11218 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11219 * frame.c (_initialize_frame): Add declaration.
11220 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11221 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11222 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11223 * gcore.c (_initialize_gcore): Add declaration.
11224 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11225 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11226 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11227 * gdbarch.c (_initialize_gdbarch): Add declaration.
11228 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11229 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11230 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11231 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11232 * go-lang.c (_initialize_go_language): Add declaration.
11233 * go32-nat.c (_initialize_go32_nat): Add declaration.
11234 * guile/guile.c (_initialize_guile): Add declaration.
11235 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11236 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11237 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11238 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11239 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11240 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11241 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11242 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11243 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11244 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11245 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11246 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11247 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11248 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11249 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11250 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11251 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11252 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11253 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11254 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11255 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11256 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11257 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11258 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11259 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11260 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11261 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11262 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11263 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11264 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11265 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11266 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11267 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11268 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11269 * infcall.c (_initialize_infcall): Add declaration.
11270 * infcmd.c (_initialize_infcmd): Add declaration.
11271 * inflow.c (_initialize_inflow): Add declaration.
11272 * infrun.c (_initialize_infrun): Add declaration.
11273 * interps.c (_initialize_interpreter): Add declaration.
11274 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11275 * jit.c (_initialize_jit): Add declaration.
11276 * language.c (_initialize_language): Add declaration.
11277 * linux-fork.c (_initialize_linux_fork): Add declaration.
11278 * linux-nat.c (_initialize_linux_nat): Add declaration.
11279 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11280 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11281 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11282 * m2-lang.c (_initialize_m2_language): Add declaration.
11283 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11284 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11285 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11286 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11287 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11288 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11289 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11290 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11291 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11292 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11293 * machoread.c (_initialize_machoread): Add declaration.
11294 * macrocmd.c (_initialize_macrocmd): Add declaration.
11295 * macroscope.c (_initialize_macroscope): Add declaration.
11296 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11297 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11298 * maint.c (_initialize_maint_cmds): Add declaration.
11299 * mdebugread.c (_initialize_mdebugread): Add declaration.
11300 * memattr.c (_initialize_mem): Add declaration.
11301 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11302 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11303 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11304 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11305 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11306 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11307 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11308 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11309 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11310 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11311 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11312 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11313 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11314 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11315 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11316 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11317 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11318 * mipsread.c (_initialize_mipsread): Add declaration.
11319 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11320 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11321 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11322 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11323 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11324 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11325 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11326 * nto-procfs.c (_initialize_procfs): Add declaration.
11327 * objc-lang.c (_initialize_objc_language): Add declaration.
11328 * observable.c (_initialize_observer): Add declaration.
11329 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11330 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11331 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11332 * osabi.c (_initialize_gdb_osabi): Add declaration.
11333 * osdata.c (_initialize_osdata): Add declaration.
11334 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11335 * parse.c (_initialize_parse): Add declaration.
11336 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11337 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11338 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11339 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11340 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11341 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11342 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11343 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11344 * printcmd.c (_initialize_printcmd): Add declaration.
11345 * probe.c (_initialize_probe): Add declaration.
11346 * proc-api.c (_initialize_proc_api): Add declaration.
11347 * proc-events.c (_initialize_proc_events): Add declaration.
11348 * proc-service.c (_initialize_proc_service): Add declaration.
11349 * procfs.c (_initialize_procfs): Add declaration.
11350 * producer.c (_initialize_producer): Add declaration.
11351 * psymtab.c (_initialize_psymtab): Add declaration.
11352 * python/python.c (_initialize_python): Add declaration.
11353 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11354 * record-btrace.c (_initialize_record_btrace): Add declaration.
11355 * record-full.c (_initialize_record_full): Add declaration.
11356 * record.c (_initialize_record): Add declaration.
11357 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11358 * regcache.c (_initialize_regcache): Add declaration.
11359 * reggroups.c (_initialize_reggroup): Add declaration.
11360 * remote-notif.c (_initialize_notif): Add declaration.
11361 * remote-sim.c (_initialize_remote_sim): Add declaration.
11362 * remote.c (_initialize_remote): Add declaration.
11363 * reverse.c (_initialize_reverse): Add declaration.
11364 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11365 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11366 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11367 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11368 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11369 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11370 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11371 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11372 Add declaration.
11373 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11374 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11375 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11376 * rust-exp.y (_initialize_rust_exp): Add declaration.
11377 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11378 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11379 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11380 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11381 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11382 * score-tdep.c (_initialize_score_tdep): Add declaration.
11383 * ser-go32.c (_initialize_ser_dos): Add declaration.
11384 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11385 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11386 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11387 * ser-uds.c (_initialize_ser_socket): Add declaration.
11388 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11389 * serial.c (_initialize_serial): Add declaration.
11390 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11391 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11392 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11393 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11394 * skip.c (_initialize_step_skip): Add declaration.
11395 * sol-thread.c (_initialize_sol_thread): Add declaration.
11396 * solib-aix.c (_initialize_solib_aix): Add declaration.
11397 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11398 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11399 * solib-frv.c (_initialize_frv_solib): Add declaration.
11400 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11401 * solib-target.c (_initialize_solib_target): Add declaration.
11402 * solib.c (_initialize_solib): Add declaration.
11403 * source-cache.c (_initialize_source_cache): Add declaration.
11404 * source.c (_initialize_source): Add declaration.
11405 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11406 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11407 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11408 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11409 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11410 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11411 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11412 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11413 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11414 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11415 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11416 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11417 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11418 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11419 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11420 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11421 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11422 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11423 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11424 * stabsread.c (_initialize_stabsread): Add declaration.
11425 * stack.c (_initialize_stack): Add declaration.
11426 * stap-probe.c (_initialize_stap_probe): Add declaration.
11427 * std-regs.c (_initialize_frame_reg): Add declaration.
11428 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11429 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11430 * symfile.c (_initialize_symfile): Add declaration.
11431 * symmisc.c (_initialize_symmisc): Add declaration.
11432 * symtab.c (_initialize_symtab): Add declaration.
11433 * target.c (_initialize_target): Add declaration.
11434 * target-connection.c (_initialize_target_connection): Add
11435 declaration.
11436 * target-dcache.c (_initialize_target_dcache): Add declaration.
11437 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11438 * thread.c (_initialize_thread): Add declaration.
11439 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11440 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11441 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11442 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11443 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11444 * tracectf.c (_initialize_ctf): Add declaration.
11445 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11446 * tracefile.c (_initialize_tracefile): Add declaration.
11447 * tracepoint.c (_initialize_tracepoint): Add declaration.
11448 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11449 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11450 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11451 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11452 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11453 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11454 * tui/tui.c (_initialize_tui): Add declaration.
11455 * typeprint.c (_initialize_typeprint): Add declaration.
11456 * ui-style.c (_initialize_ui_style): Add declaration.
11457 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11458 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11459 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11460 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11461 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11462 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11463 * unittests/filtered_iterator-selftests.c
11464 (_initialize_filtered_iterator_selftests): Add declaration.
11465 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11466 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11467 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11468 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11469 * unittests/main-thread-selftests.c
11470 (_initialize_main_thread_selftests): Add declaration.
11471 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11472 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11473 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11474 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11475 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11476 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11477 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11478 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11479 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11480 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11481 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11482 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11483 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11484 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11485 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11486 declaration.
11487 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11488 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11489 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11490 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11491 * user-regs.c (_initialize_user_regs): Add declaration.
11492 * utils.c (_initialize_utils): Add declaration.
11493 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11494 * valops.c (_initialize_valops): Add declaration.
11495 * valprint.c (_initialize_valprint): Add declaration.
11496 * value.c (_initialize_values): Add declaration.
11497 * varobj.c (_initialize_varobj): Add declaration.
11498 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11499 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11500 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11501 * windows-nat.c (_initialize_windows_nat): Add declaration.
11502 (_initialize_check_for_gdb_ini): Add declaration.
11503 (_initialize_loadable): Add declaration.
11504 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11505 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11506 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11507 * xcoffread.c (_initialize_xcoffread): Add declaration.
11508 * xml-support.c (_initialize_xml_support): Add declaration.
11509 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11510 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11511 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11512 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11513
11514 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11515
11516 * regformats/regdat.sh: Generate declaration for init function.
11517
11518 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11519
11520 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11521 up.
11522 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11523 close_one_inferior>: New methods.
11524 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11525 pass down target to find_inferior_pid.
11526 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11527 Pass down target to find_inferior_ptid.
11528 (gdbsim_target::create_inferior): Pass down target to
11529 add_thread_silent.
11530 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11531 target down to find_inferior_ptid and switch_to_thread.
11532 (gdbsim_target::close): Update to call close_one_inferior.
11533 (struct resume_data): Remove.
11534 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11535 directly, rather than through a void pointer.
11536 (gdbsim_target::resume): Update to call resume_one_inferior.
11537
11538 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11539
11540 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11541
11542 2020-01-12 Pedro Alves <palves@redhat.com>
11543
11544 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11545 directly for the current inferior instead of
11546 discard_all_inferiors.
11547 (discard_all_inferiors): Delete.
11548
11549 2020-01-11 Tom Tromey <tom@tromey.com>
11550
11551 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11552 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11553 deprecated_safe_get_selected_frame.
11554
11555 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11556
11557 * inferior.c (print_inferior): Switch inferior before printing it.
11558
11559 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11560 Pedro Alves <palves@redhat.com>
11561
11562 * progspace-and-thread.c (switch_to_program_space_and_thread):
11563 Assert there's an inferior for PSPACE. Use
11564 switch_to_inferior_no_thread to switch the inferior too.
11565 * progspace.c (program_space::~program_space): Call
11566 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11567 (program_space::free_all_objfiles): Don't call clear_symtab_users
11568 here.
11569 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11570
11571 2020-01-10 Pedro Alves <palves@redhat.com>
11572
11573 * NEWS: Mention multi-target debugging, "info connections", and
11574 "add-inferior -no-connection".
11575
11576 2020-01-10 Pedro Alves <palves@redhat.com>
11577
11578 * infrun.c: Include "target-connection.h".
11579 (check_multi_target_resumption): New.
11580 (proceed): Call it.
11581 * target-connection.c (make_target_connection_string): Make
11582 extern.
11583 * target-connection.h (make_target_connection_string): Declare.
11584
11585 2020-01-10 Pedro Alves <palves@redhat.com>
11586
11587 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11588 * inferior.c (uiout_field_connection): New function.
11589 (print_inferior): Add new "connection-id" column.
11590 (add_inferior_command): Show connection number/string of added
11591 inferior.
11592 * process-stratum-target.h
11593 (process_stratum_target::connection_string): New virtual method.
11594 (process_stratum_target::connection_number): New field.
11595 * remote.c (remote_target::connection_string): New override.
11596 * target-connection.c: New file.
11597 * target-connection.h: New file.
11598 * target.c (decref_target): Remove process_stratum targets from
11599 the connection list.
11600 (target_stack::push): Add process_stratum targets to the
11601 connection list.
11602
11603 2020-01-10 Pedro Alves <palves@redhat.com>
11604
11605 Revert:
11606 2016-04-12 Pedro Alves <palves@redhat.com>
11607 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11608 Remove references to name.
11609 * serial.h (struct serial) <name>: Delete.
11610
11611 2020-01-10 Pedro Alves <palves@redhat.com>
11612
11613 * gdbarch-selftests.c (register_to_value_test): Remove "target
11614 already pushed" check.
11615
11616 2020-01-10 Pedro Alves <palves@redhat.com>
11617 John Baldwin <jhb@FreeBSD.org>
11618
11619 * aarch64-linux-nat.c
11620 (aarch64_linux_nat_target::thread_architecture): Adjust.
11621 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11622 (task_command_1): Likewise.
11623 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11624 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11625 (aix_thread_target::store_registers)
11626 (aix_thread_target::thread_alive): Adjust.
11627 * amd64-fbsd-tdep.c: Include "inferior.h".
11628 (amd64fbsd_get_thread_local_address): Pass down target.
11629 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11630 thread's gdbarch instead of target_gdbarch.
11631 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11632 get_last_target_status.
11633 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11634 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11635 inferiors.
11636 (update_inserted_breakpoint_locations): Skip if inferiors with no
11637 execution.
11638 (update_global_location_list): When handling moribund locations,
11639 find representative inferior for location's pspace, and use thread
11640 count of its process_stratum target.
11641 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11642 * bsd-uthread.c (bsd_uthread_target::wait): Use
11643 as_process_stratum_target and adjust thread_change_ptid and
11644 add_thread calls.
11645 (bsd_uthread_target::update_thread_list): Use
11646 as_process_stratum_target and adjust find_thread_ptid,
11647 thread_change_ptid and add_thread calls.
11648 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11649 find_thread_ptid call.
11650 * corelow.c (add_to_thread_list): Adjust add_thread call.
11651 (core_target_open): Adjust add_thread_silent and thread_count
11652 calls.
11653 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11654 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11655 * event-top.c (async_disconnect): Pop targets from all inferiors.
11656 * exec.c (add_target_sections): Push exec target on all inferiors
11657 sharing the program space.
11658 (remove_target_sections): Remove the exec target from all
11659 inferiors sharing the program space.
11660 (exec_on_vfork): New.
11661 * exec.h (exec_on_vfork): Declare.
11662 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11663 Pass it down.
11664 (fbsd_nat_target::update_thread_list): Adjust.
11665 (fbsd_nat_target::resume): Adjust.
11666 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11667 down.
11668 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11669 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11670 get_thread_arch_regcache call.
11671 * fork-child.c (gdb_startup_inferior): Pass target down to
11672 startup_inferior and set_executing.
11673 * gdbthread.h (struct process_stratum_target): Forward declare.
11674 (add_thread, add_thread_silent, add_thread_with_info)
11675 (in_thread_list): Add process_stratum_target parameter.
11676 (find_thread_ptid(inferior*, ptid_t)): New overload.
11677 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11678 parameter.
11679 (all_threads()): Delete overload.
11680 (all_threads, all_non_exited_threads): Add process_stratum_target
11681 parameter.
11682 (all_threads_safe): Use brace initialization.
11683 (thread_count): Add process_stratum_target parameter.
11684 (set_resumed, set_running, set_stop_requested, set_executing)
11685 (threads_are_executing, finish_thread_state): Add
11686 process_stratum_target parameter.
11687 (switch_to_thread): Use is_current_thread.
11688 * i386-fbsd-tdep.c: Include "inferior.h".
11689 (i386fbsd_get_thread_local_address): Pass down target.
11690 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11691 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11692 have_inferiors check.
11693 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11694 (inf_ptrace_target::attach): Adjust.
11695 * infcall.c (run_inferior_call): Adjust.
11696 * infcmd.c (run_command_1): Pass target to
11697 scoped_finish_thread_state.
11698 (proceed_thread_callback): Skip inferiors with no execution.
11699 (continue_command): Rename 'all_threads' local to avoid hiding
11700 'all_threads' function. Adjust get_last_target_status call.
11701 (prepare_one_step): Adjust set_running call.
11702 (signal_command): Use user_visible_resume_target. Compare thread
11703 pointers instead of inferior_ptid.
11704 (info_program_command): Adjust to pass down target.
11705 (attach_command): Mark target's 'thread_executing' flag.
11706 (stop_current_target_threads_ns): New, factored out from ...
11707 (interrupt_target_1): ... this. Switch inferior before making
11708 target calls.
11709 * inferior-iter.h
11710 (struct all_inferiors_iterator, struct all_inferiors_range)
11711 (struct all_inferiors_safe_range)
11712 (struct all_non_exited_inferiors_range): Filter on
11713 process_stratum_target too. Remove explicit.
11714 * inferior.c (inferior::inferior): Push dummy target on target
11715 stack.
11716 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11717 Add process_stratum_target parameter, and pass it down.
11718 (have_live_inferiors): Adjust.
11719 (switch_to_inferior_and_push_target): New.
11720 (add_inferior_command, clone_inferior_command): Handle
11721 "-no-connection" parameter. Use
11722 switch_to_inferior_and_push_target.
11723 (_initialize_inferior): Mention "-no-connection" option in
11724 the help of "add-inferior" and "clone-inferior" commands.
11725 * inferior.h: Include "process-stratum-target.h".
11726 (interrupt_target_1): Use bool.
11727 (struct inferior) <push_target, unpush_target, target_is_pushed,
11728 find_target_beneath, top_target, process_target, target_at,
11729 m_stack>: New.
11730 (discard_all_inferiors): Delete.
11731 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11732 (all_inferiors, all_non_exited_inferiors): Add
11733 process_stratum_target parameter.
11734 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11735 (target_last_proc_target): New global.
11736 (follow_fork_inferior): Push target on new inferior. Pass target
11737 to add_thread_silent. Call exec_on_vfork. Handle target's
11738 reference count.
11739 (follow_fork): Adjust get_last_target_status call. Also consider
11740 target.
11741 (follow_exec): Push target on new inferior.
11742 (struct execution_control_state) <target>: New field.
11743 (user_visible_resume_target): New.
11744 (do_target_resume): Call target_async.
11745 (resume_1): Set target's threads_executing flag. Consider resume
11746 target.
11747 (commit_resume_all_targets): New.
11748 (proceed): Also consider resume target. Skip threads of inferiors
11749 with no execution. Commit resumtion in all targets.
11750 (start_remote): Pass current inferior to wait_for_inferior.
11751 (infrun_thread_stop_requested): Consider target as well. Pass
11752 thread_info pointer to clear_inline_frame_state instead of ptid.
11753 (infrun_thread_thread_exit): Consider target as well.
11754 (random_pending_event_thread): New inferior parameter. Use it.
11755 (do_target_wait): Rename to ...
11756 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11757 down.
11758 (threads_are_resumed_pending_p, do_target_wait): New.
11759 (prepare_for_detach): Adjust calls.
11760 (wait_for_inferior): New inferior parameter. Handle it. Use
11761 do_target_wait_1 instead of do_target_wait.
11762 (fetch_inferior_event): Adjust. Switch to representative
11763 inferior. Pass target down.
11764 (set_last_target_status): Add process_stratum_target parameter.
11765 Save target in global.
11766 (get_last_target_status): Add process_stratum_target parameter and
11767 handle it.
11768 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11769 (context_switch): Check inferior_ptid == null_ptid before calling
11770 inferior_thread().
11771 (get_inferior_stop_soon): Pass down target.
11772 (wait_one): Rename to ...
11773 (poll_one_curr_target): ... this.
11774 (struct wait_one_event): New.
11775 (wait_one): New.
11776 (stop_all_threads): Adjust.
11777 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11778 event's target.
11779 (switch_back_to_stepped_thread): Also consider target.
11780 (print_stop_event): Update.
11781 (normal_stop): Update. Also consider the resume target.
11782 * infrun.h (wait_for_inferior): Remove declaration.
11783 (user_visible_resume_target): New declaration.
11784 (get_last_target_status, set_last_target_status): New
11785 process_stratum_target parameter.
11786 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11787 process_stratum_target parameter, and use it.
11788 (clear_inline_frame_state (thread_info*)): New.
11789 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11790 process_stratum_target parameter.
11791 (clear_inline_frame_state (thread_info*)): Declare.
11792 * linux-fork.c (delete_checkpoint_command): Pass target down to
11793 find_thread_ptid.
11794 (checkpoint_command): Adjust.
11795 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11796 instead of just tweaking inferior_ptid.
11797 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11798 (exit_lwp): Pass target down to find_thread_ptid.
11799 (attach_proc_task_lwp_callback): Pass target down to
11800 add_thread/set_running/set_executing.
11801 (linux_nat_target::attach): Pass target down to
11802 thread_change_ptid.
11803 (get_detach_signal): Pass target down to find_thread_ptid.
11804 Consider last target status's target.
11805 (linux_resume_one_lwp_throw, resume_lwp)
11806 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11807 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11808 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11809 (linux_nat_target::async_wait_fd): New.
11810 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11811 target down.
11812 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11813 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11814 * linux-thread-db.c (struct thread_db_info::process_target): New
11815 field.
11816 (add_thread_db_info): Save target.
11817 (get_thread_db_info): New process_stratum_target parameter. Also
11818 match target.
11819 (delete_thread_db_info): New process_stratum_target parameter.
11820 Also match target.
11821 (thread_from_lwp): Adjust to pass down target.
11822 (thread_db_notice_clone): Pass down target.
11823 (check_thread_db_callback): Pass down target.
11824 (try_thread_db_load_1): Always push the thread_db target.
11825 (try_thread_db_load, record_thread): Pass target down.
11826 (thread_db_target::detach): Pass target down. Always unpush the
11827 thread_db target.
11828 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11829 target down. Always unpush the thread_db target.
11830 (find_new_threads_callback, thread_db_find_new_threads_2)
11831 (thread_db_target::update_thread_list): Pass target down.
11832 (thread_db_target::pid_to_str): Pass current inferior down.
11833 (thread_db_target::get_thread_local_address): Pass target down.
11834 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11835 target down.
11836 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11837 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11838 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11839 (procfs_init_inferior): Rename to ...
11840 (procfs_target::procfs_init_inferior): ... this and adjust.
11841 (procfs_target::create_inferior, procfs_notice_thread)
11842 (procfs_do_thread_registers): Adjust.
11843 * ppc-fbsd-tdep.c: Include "inferior.h".
11844 (ppcfbsd_get_thread_local_address): Pass down target.
11845 * proc-service.c (ps_xfer_memory): Switch current inferior and
11846 program space as well.
11847 (get_ps_regcache): Pass target down.
11848 * process-stratum-target.c
11849 (process_stratum_target::thread_address_space)
11850 (process_stratum_target::thread_architecture): Pass target down.
11851 * process-stratum-target.h
11852 (process_stratum_target::threads_executing): New field.
11853 (as_process_stratum_target): New.
11854 * ravenscar-thread.c
11855 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11856 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11857 down.
11858 * record-btrace.c (record_btrace_target::info_record): Adjust.
11859 (record_btrace_target::record_method)
11860 (record_btrace_target::record_is_replaying)
11861 (record_btrace_target::fetch_registers)
11862 (get_thread_current_frame_id, record_btrace_target::resume)
11863 (record_btrace_target::wait, record_btrace_target::stop): Pass
11864 target down.
11865 * record-full.c (record_full_wait_1): Switch to event thread.
11866 Pass target down.
11867 * regcache.c (regcache::regcache)
11868 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11869 process_stratum_target parameter and handle it.
11870 (current_thread_target): New global.
11871 (get_thread_regcache): Add process_stratum_target parameter and
11872 handle it. Switch inferior before calling target method.
11873 (get_thread_regcache): Pass target down.
11874 (get_thread_regcache_for_ptid): Pass target down.
11875 (registers_changed_ptid): Add process_stratum_target parameter and
11876 handle it.
11877 (registers_changed_thread, registers_changed): Pass target down.
11878 (test_get_thread_arch_aspace_regcache): New.
11879 (current_regcache_test): Define a couple local test_target_ops
11880 instances and use them for testing.
11881 (readwrite_regcache): Pass process_stratum_target parameter.
11882 (cooked_read_test, cooked_write_test): Pass mock_target down.
11883 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11884 (get_thread_arch_aspace_regcache): Add process_stratum_target
11885 parameter.
11886 (regcache::target): New method.
11887 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11888 (regcache::registers_changed_ptid): Add process_stratum_target
11889 parameter.
11890 (regcache::m_target): New field.
11891 (registers_changed_ptid): Add process_stratum_target parameter.
11892 * remote.c (remote_state::supports_vCont_probed): New field.
11893 (remote_target::async_wait_fd): New method.
11894 (remote_unpush_and_throw): Add remote_target parameter.
11895 (get_current_remote_target): Adjust.
11896 (remote_target::remote_add_inferior): Push target.
11897 (remote_target::remote_add_thread)
11898 (remote_target::remote_notice_new_inferior)
11899 (get_remote_thread_info): Pass target down.
11900 (remote_target::update_thread_list): Skip threads of inferiors
11901 bound to other targets. (remote_target::close): Don't discard
11902 inferiors. (remote_target::add_current_inferior_and_thread)
11903 (remote_target::process_initial_stop_replies)
11904 (remote_target::start_remote)
11905 (remote_target::remote_serial_quit_handler): Pass down target.
11906 (remote_target::remote_unpush_target): New remote_target
11907 parameter. Unpush the target from all inferiors.
11908 (remote_target::remote_unpush_and_throw): New remote_target
11909 parameter. Pass it down.
11910 (remote_target::open_1): Check whether the current inferior has
11911 execution instead of checking whether any inferior is live. Pass
11912 target down.
11913 (remote_target::remote_detach_1): Pass down target. Use
11914 remote_unpush_target.
11915 (extended_remote_target::attach): Pass down target.
11916 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11917 (remote_target::append_resumption): Pass down target.
11918 (remote_target::append_pending_thread_resumptions)
11919 (remote_target::remote_resume_with_hc, remote_target::resume)
11920 (remote_target::commit_resume): Pass down target.
11921 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11922 (remote_target::interrupt_query)
11923 (remote_target::remove_new_fork_children)
11924 (remote_target::check_pending_events_prevent_wildcard_vcont)
11925 (remote_target::remote_parse_stop_reply)
11926 (remote_target::process_stop_reply): Pass down target.
11927 (first_remote_resumed_thread): New remote_target parameter. Pass
11928 it down.
11929 (remote_target::wait_as): Pass down target.
11930 (unpush_and_perror): New remote_target parameter. Pass it down.
11931 (remote_target::readchar, remote_target::remote_serial_write)
11932 (remote_target::getpkt_or_notif_sane_1)
11933 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11934 down target.
11935 (remote_target::mourn_inferior): Pass down target. Use
11936 remote_unpush_target.
11937 (remote_target::core_of_thread)
11938 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11939 (remote_target::pid_to_exec_file)
11940 (remote_target::thread_handle_to_thread_info): Pass down target.
11941 (remote_target::async_wait_fd): New.
11942 * riscv-fbsd-tdep.c: Include "inferior.h".
11943 (riscv_fbsd_get_thread_local_address): Pass down target.
11944 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11945 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11946 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11947 Adjust.
11948 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11949 * solib-svr4.c (enable_break): Pass down target.
11950 * spu-multiarch.c (parse_spufs_run): Pass down target.
11951 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11952 * target-delegates.c: Regenerate.
11953 * target.c (g_target_stack): Delete.
11954 (current_top_target): Return the current inferior's top target.
11955 (target_has_execution_1): Refer to the passed-in inferior's top
11956 target.
11957 (target_supports_terminal_ours): Check whether the initial
11958 inferior was already created.
11959 (decref_target): New.
11960 (target_stack::push): Incref/decref the target.
11961 (push_target, push_target, unpush_target): Adjust.
11962 (target_stack::unpush): Defref target.
11963 (target_is_pushed): Return bool. Adjust to refer to the current
11964 inferior's target stack.
11965 (dispose_inferior): Delete, and inline parts ...
11966 (target_preopen): ... here. Only dispose of the current inferior.
11967 (target_detach): Hold strong target reference while detaching.
11968 Pass target down.
11969 (target_thread_name): Add assertion.
11970 (target_resume): Pass down target.
11971 (target_ops::beneath, find_target_at): Adjust to refer to the
11972 current inferior's target stack.
11973 (get_dummy_target): New.
11974 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11975 has a thread running.
11976 (initialize_targets): Rename to ...
11977 (_initialize_target): ... this.
11978 * target.h: Include "gdbsupport/refcounted-object.h".
11979 (struct target_ops): Inherit refcounted_object.
11980 (target_ops::shortname, target_ops::longname): Make const.
11981 (target_ops::async_wait_fd): New method.
11982 (decref_target): Declare.
11983 (struct target_ops_ref_policy): New.
11984 (target_ops_ref): New typedef.
11985 (get_dummy_target): Declare function.
11986 (target_is_pushed): Return bool.
11987 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11988 (all_matching_threads_iterator::all_matching_threads_iterator):
11989 Handle filter target.
11990 * thread-iter.h (struct all_matching_threads_iterator, struct
11991 all_matching_threads_range, class all_non_exited_threads_range):
11992 Filter by target too. Remove explicit.
11993 * thread.c (threads_executing): Delete.
11994 (inferior_thread): Pass down current inferior.
11995 (clear_thread_inferior_resources): Pass down thread pointer
11996 instead of ptid_t.
11997 (add_thread_silent, add_thread_with_info, add_thread): Add
11998 process_stratum_target parameter. Use it for thread and inferior
11999 searches.
12000 (is_current_thread): New.
12001 (thread_info::deletable): Use it.
12002 (find_thread_ptid, thread_count, in_thread_list)
12003 (thread_change_ptid, set_resumed, set_running): New
12004 process_stratum_target parameter. Pass it down.
12005 (set_executing): New process_stratum_target parameter. Pass it
12006 down. Adjust reference to 'threads_executing'.
12007 (threads_are_executing): New process_stratum_target parameter.
12008 Adjust reference to 'threads_executing'.
12009 (set_stop_requested, finish_thread_state): New
12010 process_stratum_target parameter. Pass it down.
12011 (switch_to_thread): Also match inferior.
12012 (switch_to_thread): New process_stratum_target parameter. Pass it
12013 down.
12014 (update_threads_executing): Reimplement.
12015 * top.c (quit_force): Pop targets from all inferior.
12016 (gdb_init): Don't call initialize_targets.
12017 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
12018 Declare.
12019 (windows_add_thread, windows_delete_thread): Adjust.
12020 (get_windows_debug_event): Rename to ...
12021 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
12022 * tracefile-tfile.c (tfile_target_open): Pass down target.
12023 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
12024 Forward declare.
12025 (switch_to_thread): Add process_stratum_target parameter.
12026 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
12027 parameter. Use it.
12028 (mi_on_resume): Pass target down.
12029 * nat/fork-inferior.c (startup_inferior): Add
12030 process_stratum_target parameter. Pass it down.
12031 * nat/fork-inferior.h (startup_inferior): Add
12032 process_stratum_target parameter.
12033 * python/py-threadevent.c (py_get_event_thread): Pass target down.
12034
12035 2020-01-10 Pedro Alves <palves@redhat.com>
12036
12037 * remote.c (remote_target::start_remote): Don't set inferior_ptid
12038 directly. Instead find the first thread in the thread list and
12039 use switch_to_thread.
12040
12041 2020-01-10 Pedro Alves <palves@redhat.com>
12042
12043 * remote.c (remote_target::remote_add_inferior): Don't bind a
12044 process to the current inferior if the current inferior is already
12045 bound to a process.
12046
12047 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12048 Pedro Alves <palves@redhat.com>
12049
12050 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
12051 If no process is specified, return null_ptid instead of
12052 inferior_ptid.
12053 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
12054 TARGET_WAITKIND_SIGNALLED with no pid.
12055
12056 2020-01-10 Pedro Alves <palves@redhat.com>
12057
12058 * remote.c (first_remote_resumed_thread): New.
12059 (remote_target::wait_as): Use it as default event_ptid instead of
12060 inferior_ptid.
12061
12062 2020-01-10 Pedro Alves <palves@redhat.com>
12063
12064 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
12065
12066 2020-01-10 Pedro Alves <palves@redhat.com>
12067
12068 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
12069 not -1.
12070
12071 2020-01-10 Pedro Alves <palves@redhat.com>
12072
12073 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
12074 ptid to get_last_target_status.
12075 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
12076 ptid to get_last_target_status.
12077 * infcmd.c (continue_command): Don't pass a target_waitstatus to
12078 get_last_target_status.
12079 (info_program_command): Don't pass a target_waitstatus to
12080 get_last_target_status.
12081 * infrun.c (init_wait_for_inferior): Use
12082 nullify_last_target_wait_ptid.
12083 (get_last_target_status): Handle nullptr arguments.
12084 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
12085 (print_stop_event): Don't pass a ptid to get_last_target_status.
12086 (normal_stop): Don't pass a ptid to get_last_target_status.
12087 * infrun.h (get_last_target_status, set_last_target_status): Move
12088 comments here and update.
12089 (nullify_last_target_wait_ptid): Declare.
12090 * linux-fork.c (fork_load_infrun_state): Remove local extern
12091 declaration of nullify_last_target_wait_ptid.
12092 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
12093 to get_last_target_status.
12094
12095 2020-01-10 Pedro Alves <palves@redhat.com>
12096
12097 * gdbthread.h (scoped_restore_current_thread)
12098 <dont_restore, restore, m_dont_restore>: Declare.
12099 * thread.c (thread_alive): Add assertion. Return bool.
12100 (switch_to_thread_if_alive): New.
12101 (prune_threads): Switch inferior/thread.
12102 (print_thread_info_1): Switch thread before calling target methods.
12103 (scoped_restore_current_thread::restore): New, factored out from
12104 ...
12105 (scoped_restore_current_thread::~scoped_restore_current_thread):
12106 ... this.
12107 (scoped_restore_current_thread::scoped_restore_current_thread):
12108 Add assertion.
12109 (thread_apply_all_command, thread_select): Use
12110 switch_to_thread_if_alive.
12111 * infrun.c (proceed, restart_threads, handle_signal_stop)
12112 (switch_back_to_stepped_thread): Switch current thread before
12113 calling target methods.
12114
12115 2020-01-10 Pedro Alves <palves@redhat.com>
12116
12117 * inferior.c (switch_to_inferior_no_thread): New function,
12118 factored out from ...
12119 (inferior_command): ... here.
12120 * inferior.h (switch_to_inferior_no_thread): Declare.
12121 * mi/mi-main.c (run_one_inferior): Use
12122 switch_to_inferior_no_thread.
12123
12124 2020-01-10 Pedro Alves <palves@redhat.com>
12125
12126 * infcmd.c (kill_command): Remove dead code.
12127
12128 2020-01-10 Pedro Alves <palves@redhat.com>
12129
12130 * remote.c (remote_target::mourn_inferior): No longer check
12131 whether the target is running.
12132
12133 2020-01-10 Pedro Alves <palves@redhat.com>
12134
12135 * corelow.c (core_target::has_execution): Change parameter type to
12136 inferior pointer.
12137 * inferior.c (number_of_live_inferiors): Use
12138 inferior::has_execution instead of target_has_execution_1.
12139 * inferior.h (inferior::has_execution): New.
12140 * linux-thread-db.c (thread_db_target::update_thread_list): Use
12141 inferior::has_execution instead of target_has_execution_1.
12142 * process-stratum-target.c
12143 (process_stratum_target::has_execution): Change parameter type to
12144 inferior pointer. Check the inferior's PID instead of
12145 inferior_ptid.
12146 * process-stratum-target.h
12147 (process_stratum_target::has_execution): Change parameter type to
12148 inferior pointer.
12149 * record-full.c (record_full_core_target::has_execution): Change
12150 parameter type to inferior pointer.
12151 * target.c (target_has_execution_1): Change parameter type to
12152 inferior pointer.
12153 (target_has_execution_current): Adjust.
12154 * target.h (target_ops::has_execution): Change parameter type to
12155 inferior pointer.
12156 (target_has_execution_1): Change parameter type to inferior
12157 pointer. Change return type to bool.
12158 * tracefile.h (tracefile_target::has_execution): Change parameter
12159 type to inferior pointer.
12160
12161 2020-01-10 Pedro Alves <palves@redhat.com>
12162
12163 * exceptions.c (print_flush): Remove current_top_target() check.
12164
12165 2020-01-10 Pedro Alves <palves@redhat.com>
12166
12167 * remote.c (show_remote_exec_file): Show the current inferior's
12168 exec-file instead of the command variable's value.
12169
12170 2020-01-10 Pedro Alves <palves@redhat.com>
12171
12172 * record-full.c (record_full_resume_ptid): New global.
12173 (record_full_target::resume): Set it.
12174 (record_full_wait_1): Use record_full_resume_ptid instead of
12175 inferior_ptid.
12176
12177 2020-01-10 Pedro Alves <palves@redhat.com>
12178
12179 * gdbthread.h (scoped_restore_current_thread)
12180 <dont_restore, restore, m_dont_restore>: Declare.
12181 * thread.c (thread_alive): Add assertion. Return bool.
12182 (switch_to_thread_if_alive): New.
12183 (prune_threads): Switch inferior/thread.
12184 (print_thread_info_1): Switch thread before calling target methods.
12185 (scoped_restore_current_thread::restore): New, factored out from
12186 ...
12187 (scoped_restore_current_thread::~scoped_restore_current_thread):
12188 ... this.
12189 (scoped_restore_current_thread::scoped_restore_current_thread):
12190 Add assertion.
12191 (thread_apply_all_command, thread_select): Use
12192 switch_to_thread_if_alive.
12193
12194 2020-01-10 George Barrett <bob@bob131.so>
12195
12196 * stap-probe.c (stap_modify_semaphore): Don't check for null
12197 semaphores.
12198 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12199 for null semaphores.
12200
12201 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12202
12203 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12204 all source windows, and maintain horizontal scroll status while
12205 doing so.
12206
12207 2020-01-09 Tom Tromey <tom@tromey.com>
12208
12209 PR tui/18932:
12210 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12211 update_source_window, not print_source_lines.
12212
12213 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12214
12215 * tui/tui.c (tui_enable): Register tui hooks after calling
12216 tui_display_main.
12217
12218 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12219
12220 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12221
12222 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
12223
12224 * thread.c (print_thread_info_1): Fix indentation.
12225
12226 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12227
12228 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12229 unique_xmalloc_ptr outside the if to always free the demangled name.
12230
12231 2020-01-08 Tom Tromey <tromey@adacore.com>
12232
12233 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12234 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12235 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12236 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12237 Remove.
12238 (section_offsets): New typedef.
12239 * symtab.c (fixup_section, get_msymbol_address): Update.
12240 * symmisc.c (dump_msymbols): Update.
12241 * symfile.h (relative_addr_info_to_section_offsets)
12242 (symfile_map_offsets_to_segments): Update.
12243 * symfile.c (build_section_addr_info_from_objfile)
12244 (init_objfile_sect_indices): Update.
12245 (struct place_section_arg): Change type of "offsets".
12246 (place_section): Update.
12247 (relative_addr_info_to_section_offsets): Change type of
12248 "section_offsets". Remove "num_sections" parameter.
12249 (default_symfile_offsets, syms_from_objfile_1)
12250 (set_objfile_default_section_offset): Update.
12251 (reread_symbols): No need to preserve section offsets by hand.
12252 (symfile_map_offsets_to_segments): Change type of "offsets".
12253 * stap-probe.c (relocate_address): Update.
12254 * stabsread.h (process_one_symbol): Update.
12255 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12256 (solib_target_relocate_section_addresses): Update.
12257 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12258 Update.
12259 * solib-frv.c (frv_relocate_main_executable): Update.
12260 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12261 * solib-aix.c (solib_aix_get_section_offsets): Change return
12262 type.
12263 (solib_aix_solib_create_inferior_hook): Update.
12264 * remote.c (remote_target::get_offsets): Update.
12265 * psymtab.c (find_pc_sect_psymtab): Update.
12266 * psympriv.h (struct partial_symbol) <address, text_low,
12267 text_high>: Update.
12268 * objfiles.h (obj_section_offset): Update.
12269 (struct objfile) <section_offsets>: Change type.
12270 <num_sections>: Remove.
12271 (objfile_relocate): Update.
12272 * objfiles.c (entry_point_address_query): Update
12273 (relocate_one_symbol): Change type of "section_offsets".
12274 (objfile_relocate1, objfile_relocate1): Change type of
12275 "new_offsets".
12276 (objfile_rebase1): Update.
12277 * mipsread.c (mipscoff_symfile_read): Update.
12278 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12279 parameter.
12280 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12281 (parse_external, psymtab_to_symtab_1): Update.
12282 * machoread.c (macho_symfile_offsets): Update.
12283 * ia64-tdep.c (ia64_find_unwind_table): Update.
12284 * hppa-tdep.c (read_unwind_info): Update.
12285 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12286 * dwarf2read.c (create_addrmap_from_index)
12287 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12288 (process_psymtab_comp_unit_reader, add_partial_symbol)
12289 (add_partial_subprogram, process_full_comp_unit)
12290 (read_file_scope, read_func_scope, read_lexical_block_scope)
12291 (read_call_site_scope, dwarf2_rnglists_process)
12292 (dwarf2_ranges_process, dwarf2_ranges_read)
12293 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12294 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12295 Update.
12296 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12297 Update.
12298 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12299 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12300 (process_one_symbol): Change type of "section_offsets".
12301 * ctfread.c (get_objfile_text_range): Update.
12302 * coffread.c (coff_symtab_read, enter_linenos)
12303 (process_coff_symbol): Update.
12304 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12305 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12306
12307 2020-01-08 Tom Tromey <tromey@adacore.com>
12308
12309 * dwarf2read.c (parse_macro_definition): Use std::string.
12310 (parse_macro_definition): Likewise.
12311
12312 2020-01-08 Tom Tromey <tromey@adacore.com>
12313
12314 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12315 (ATTR_ALLOC_CHUNK): Remove.
12316
12317 2020-01-08 Tom Tromey <tromey@adacore.com>
12318
12319 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12320
12321 2020-01-08 Tom Tromey <tromey@adacore.com>
12322
12323 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12324 (dwarf2_compute_name, open_dwo_file): Likewise.
12325 (process_enumeration_scope): Use std::vector.
12326 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12327 (partial_die_info::fixup, dwarf2_start_subfile)
12328 (guess_full_die_structure_name, dwarf2_name): Likewise.
12329 (determine_prefix): Update.
12330 (guess_full_die_structure_name): Make return type const.
12331 (partial_die_full_name): Return unique_xmalloc_ptr.
12332 (DW_FIELD_ALLOC_CHUNK): Remove.
12333
12334 2020-01-07 Tom Tromey <tromey@adacore.com>
12335
12336 PR build/24937:
12337 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12338
12339 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12340
12341 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12342
12343 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12344
12345 * stack.c (print_frame_info): Move disassemble_next_line code
12346 inside source_print block.
12347
12348 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12349
12350 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12351 gdb/signals.h, as we are now using native signal symbols.
12352
12353 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12354
12355 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12356 overflow by an early check of content vs threshold.
12357 * tui/tui-source.c (tui_source_window::line_is_displayed):
12358 Likewise.
12359
12360 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12361
12362 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12363
12364 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12365
12366 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12367 export table if no section contains it's RVA.
12368
12369 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12370
12371 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12372
12373 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
12374
12375 * source.c (print_source_lines_base): Set last_line_listed.
12376
12377 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12378
12379 * tui/tui-disasm.c: Remove trailing spaces.
12380
12381 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12382 Pedro Alves <palves@redhat.com>
12383
12384 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12385 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12386 (windows_gdb_signal_to_target): New function, uses the above
12387 enumeration to convert GDB internal signal codes to equivalent
12388 Windows codes.
12389 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12390 * windows-nat.c: Include "gdb_wait.h".
12391 (get_windows_debug_event): Extract the fatal exception from the
12392 exit status and convert to the equivalent Posix signal number.
12393 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12394 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12395 * gdbsupport/gdb_wait.c: New file, implements
12396 windows_status_to_termsig.
12397 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12398 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12399
12400 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12401
12402 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12403 show_layout.
12404
12405 2020-01-05 Luis Machado <luis.machado@linaro.org>
12406
12407 * aarch64-linux-nat.c
12408 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12409 and bfd_mach_aarch64.
12410
12411 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12412
12413 * ui-file.c (stdio_file::can_emit_style_escape)
12414 (tee_file::can_emit_style_escape): Ensure style is used also on
12415 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12416 to gdb_stdout.
12417 * main.c (set_gdb_data_directory): Use file style to output the
12418 warning that the given pathname is not a directory.
12419 * top.c (show_history_filename, gdb_safe_append_history)
12420 (show_gdb_datadir): Use file style.
12421
12422 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12423
12424 * solib-target.c (struct lm_info_target):
12425 Change offsets to be a unique_xmalloc_ptr.
12426 (solib_target_relocate_section_addresses): Update.
12427
12428 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12429
12430 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12431
12432 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12433
12434 * MAINTAINERS (Write After Approval): Add myself.
12435
12436 2020-01-02 Luis Machado <luis.machado@linaro.org>
12437
12438 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12439 Cell BE architecture.
12440 * target.h (struct target_ops) <thread_architecture>: Likewise.
12441
12442 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12443
12444 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12445
12446 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12447
12448 * MAINTAINERS (Write After Approval): Add myself.
12449
12450 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12451
12452 * gdbarch.sh: Update copyright year range of generated files.
12453
12454 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12455
12456 Update copyright year range in all GDB files.
12457
12458 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12459
12460 * copyright.py: Convert to Python 3.
12461
12462 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12463
12464 * copyright.py: Adapt after move of gnulib directory from gdb
12465 directory to toplevel directory.
12466
12467 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12468
12469 * copyright.py (main): Exit if run from the wrong directory.
12470
12471 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12472
12473 * top.c (print_gdb_version): Change copyright year to 2020.
12474
12475 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12476
12477 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
12478
12479 For older changes see ChangeLog-2019.
12480 \f
12481 Local Variables:
12482 mode: change-log
12483 left-margin: 8
12484 fill-column: 74
12485 version-control: never
12486 coding: utf-8
12487 End: