]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
gdb: fix indentation of struct field_info
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * dwarf2/read.c (struct field_info): Fix indentation.
4
5 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
6
7 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
8 ordering in comment.
9 * frame.c (frame_id_eq): Fix indentation.
10
11 2020-08-31 Scott Linder <scott@scottlinder.com>
12 Simon Marchi <simon.marchi@efficios.com>
13
14 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
15 inline frame ids in outer frame.
16
17 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
18
19 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
20 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
21 (outer_frame_id): Use FID_STACK_OUTER instead of
22 FID_STACK_INVALID.
23 (frame_id_p): Don't check for outer_frame_id.
24
25 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
26
27 * frame-unwind.c (frame_unwind_got_optimized): Don't set
28 regnum/frame in value. Call allocate_value_lazy.
29 * frame.c (frame_unwind_register_value): Use
30 val_print_not_saved.
31
32 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
33
34 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
35
36 2020-08-29 Pedro Alves <pedro@palves.net>
37
38 * progspace.c (print_program_space): Use all_inferiors. Switch to
39 the inferior before calling target_pid_to_str.
40
41 2020-08-28 Tom Tromey <tom@tromey.com>
42
43 * xcoffread.c (xcoff_end_psymtab): Update comment.
44 * dbxread.c (dbx_end_psymtab): Update comment.
45
46 2020-08-28 Tom de Vries <tdevries@suse.de>
47
48 PR breakpoint/26544
49 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
50 event_location.
51 (create_breakpoint): Same.
52 (base_breakpoint_decode_location): Same.
53 (bkpt_create_sals_from_location): Same.
54 (bkpt_decode_location): Same.
55 (bkpt_probe_create_sals_from_location): Same.
56 (bkpt_probe_decode_location): Same.
57 (tracepoint_create_sals_from_location): Same.
58 (tracepoint_decode_location): Same.
59 (tracepoint_probe_decode_location): Same.
60 (strace_marker_create_sals_from_location): Same.
61 (strace_marker_decode_location): Same.
62 (create_sals_from_location_default): Same.
63 (decode_location_default): Same.
64 * breakpoint.h (struct breakpoint_ops): Same.
65 (create_breakpoint): Same.
66 * linespec.h (decode_line_full): Same.
67 * linespec.c (decode_line_full): Same. Throw error if
68 result.size () == 0.
69
70 2020-08-27 Pedro Alves <pedro@palves.net>
71
72 PR gdb/26524
73 * breakpoint.c (until_break_fsm) <location_breakpoint,
74 caller_breakpoint>: Delete fields.
75 <breakpoints>: New field.
76 <until_break_fsm>: Adjust to save a breakpoint vector instead of
77 two individual breakpoints.
78 (until_break_fsm::should_stop): Loop over breakpoints in the
79 breakpoint vector.
80 (until_break_fsm::clean_up): Adjust to clear the breakpoints
81 vector.
82 (until_break_command): Handle location expanding into multiple
83 sals.
84
85 2020-08-27 Pedro Alves <pedro@palves.net>
86
87 PR gdb/26523
88 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
89 bp_until breakpoints user-specified locations. Update intro
90 comment.
91
92 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
93
94 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
95 gdb_bfd_sections): New.
96 * maint.c (print_bfd_section_info): Change param type to
97 maint_print_section_data.
98 (print_objfile_section_info): Likewise.
99 (print_bfd_section_info_maybe_relocated): Likewise.
100 (maintenance_info_sections): Use gdb_bfd_sections.
101
102 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
103
104 * MAINTAINERS: Add ARC target and maintainer.
105
106 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
107
108 * configure.tgt: ARC support for GNU/Linux.
109 * Makefile.in (ALL_TARGET_OBJS): Likewise.
110 * arc-linux-tdep.c: New file.
111 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
112 * arc-tdep.c (arc_write_pc): Use it.
113
114 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
115
116 * arc-tdep.c (arc_check_for_hardware_loop): New.
117 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
118
119 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
120
121 * arc-tdep.h: Include "gdbarch.h".
122
123 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
124
125 * arch/arc.h
126 (arc_gdbarch_features): New class to stir the selection of target XML.
127 (arc_create_target_description): Use FEATURES to choose XML target.
128 (arc_lookup_target_description): Use arc_create_target_description
129 to create _new_ target descriptions or return the already created
130 ones if the FEATURES is the same.
131 * arch/arc.c: Implementation of prototypes described above.
132 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
133 (arc_gdbarch_features_init): Initialize the FEATURES struct.
134 * arc-tdep.c (*_feature_name): Make feature names consistent.
135 (arc_register_feature): A new struct to hold information about
136 registers of a particular target/feature.
137 (arc_check_tdesc_feature): Check if XML provides registers in
138 compliance with ARC_REGISTER_FEATURE structs.
139 (arc_update_acc_reg_names): Add aliases for r58 and r59.
140 (determine_*_reg_feature_set): Which feature name to look for.
141 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
142 (mach_type_to_arc_isa): Convert from a set of binutils machine types
143 to expected ISA enums to be used in arc_gdbarch_features structs.
144 * features/Makefile (FEATURE_XMLFILES): Add new files.
145 * gdb/features/arc/v1-aux.c: New file.
146 * gdb/features/arc/v1-aux.xml: Likewise.
147 * gdb/features/arc/v1-core.c: Likewise.
148 * gdb/features/arc/v1-core.xml: Likewise.
149 * gdb/features/arc/v2-aux.c: Likewise.
150 * gdb/features/arc/v2-aux.xml: Likewise.
151 * gdb/features/arc/v2-core.c: Likewise.
152 * gdb/features/arc/v2-core.xml: Likewise.
153 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
154
155 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
156 Andrew Burgess <andrew.burgess@embecosm.com>
157
158 PR m2/26372
159 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
160 an assert. Remove single element array indexing pattern as the
161 MULTI_SUBSCRIPT support will handle this case too.
162
163 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
164
165 * value.h (valprint_check_validity): Move declaration from
166 here...
167 * valprint.h (valprint_check_validity): ... to here.
168
169 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
170
171 * debug.h: New file.
172 * debug.c (debug_prefixed_vprintf): New function.
173 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
174 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
175
176 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
177
178 * infrun.h (infrun_debug_printf_1): New function declaration.
179 (infrun_debug_printf): New macro.
180 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
181 throughout.
182 (infrun_debug_printf): New function.
183 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
184 (handle_jit_event): Likewise.
185
186 2020-08-21 Mark Wielaard <mark@klomp.org>
187
188 * ada-lex.l: Extend register warnings diagnostics comment for g++.
189
190 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
191
192 * frame.c (enum class frame_id_status): New.
193 (struct frame_info) <this_id::p>: Change type to frame_id_status.
194 (fprintf_frame): Update.
195 (compute_frame_id): Set frame id status to "computing" on entry.
196 Set it back to "not_computed" on failure and to "computed" on
197 success.
198 (get_frame_id): Assert the frame id is not being computed.
199 (create_sentinel_frame): Use frame_id_status::COMPUTED.
200 (create_new_frame): Likewise.
201 (frame_cleanup_after_sniffer): Update assert.
202
203 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
204
205 * regcache.c (pid_ptid_regcache_map): New type.
206 (target_ptid_regcache_map): Remove.
207 (target_pid_ptid_regcache_map): New type.
208 (regcaches): Change type to target_pid_ptid_regcache_map.
209 (get_thread_arch_aspace_regcache): Update.
210 (regcache_thread_ptid_changed): Update, handle pid-like ptid
211 case.
212 (regcaches_size): Update.
213 (regcache_count): Update.
214 (registers_changed_ptid_target_pid_test): New.
215 (_initialize_regcache): Register new test.
216
217 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
218
219 * regcache.c (regcache_count): New.
220 (struct regcache_test_data): New.
221 (regcache_test_data_up): New.
222 (populate_regcaches_for_test): New.
223 (regcaches_test): Remove.
224 (get_thread_arch_aspace_regcache_test): New.
225 (registers_changed_ptid_all_test): New.
226 (registers_changed_ptid_target_test): New.
227 (registers_changed_ptid_target_ptid_test): New.
228 (regcache_thread_ptid_changed): Remove regcache_count lambda.
229 (_initialize_regcache): Register new tests.
230
231 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
232
233 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
234 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
235 gdbarch and aspace parameter. Use current inferior's aspace.
236 Validate regcache's arch value.
237 (regcaches_test): Update.
238
239 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
240
241 * regcache.c (regcaches_test): Call registers_changed.
242
243 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
244
245 * infrun.c (process_event_stop_test): Fix typo "breapoint".
246
247 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
248
249 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
250 to find the end of prologue for flang compiled binaries.
251 * arm-tdep.c (arm_skip_prologue): Likewise.
252 * i386-tdep.c (i386_skip_prologue): Likewise.
253 * producer.c (producer_is_llvm): New function.
254 (producer_parsing_tests): Added new tests for clang/flang.
255 * producer.h (producer_is_llvm): New declaration.
256
257 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
258
259 * linux-nat.c (linux_nat_debug_printf): New function.
260 (linux_nat_debug_printf_1): New macro. Use throughout the file.
261
262 2020-08-18 Aaron Merey <amerey@redhat.com>
263
264 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
265 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
266 (CLIBS): Add DEBUGINFOD_LIBS.
267
268 2020-08-17 Sergei Trofimovich <siarheit@google.com>
269
270 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
271 'gdbarch_num_regs'.
272
273 2020-08-17 Tom Tromey <tromey@adacore.com>
274
275 * ada-varobj.c (ada_varobj_decode_var): Handle case where
276 ada_get_decoded_value returns NULL.
277
278 2020-08-17 Tom Tromey <tromey@adacore.com>
279
280 * python/py-inferior.c (infpy_search_memory): Use
281 gdb_py_object_from_ulongest.
282 * python/py-infevents.c (create_inferior_call_event_object)
283 (create_memory_changed_event_object): Use
284 gdb_py_object_from_ulongest.
285 * python/py-linetable.c (ltpy_entry_get_pc): Use
286 gdb_py_object_from_ulongest.
287
288 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
289
290 * loc.c (class symbol_needs_eval_context): Fix indentation.
291
292 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
293
294 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
295 bool.
296
297 2020-08-17 Tom de Vries <tdevries@suse.de>
298
299 PR gdb/26393
300 * gdbtypes.c (dump_dynamic_prop): New function.
301 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
302
303 2020-08-15 Tom de Vries <tdevries@suse.de>
304
305 PR backtrace/26390
306 * stack.c (print_frame_args): Temporarily set the selected
307 frame to FRAME while printing the frame's arguments.
308
309 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
310
311 PR breakpoints/26385
312 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
313 Always clear watchpoint with PTRACE_SET_DEBUGREG.
314
315 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
316
317 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
318 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
319 and >= to check return value instead of == -1 and != -1.
320
321 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
322
323 * utils.h (class gdb_argv) <as_array_view>: New method.
324 * utils.c (gdb_argv_as_array_view_test): New.
325 (_initialize_utils): Register selftest.
326 * maint.c (maintenance_selftest): Use the new method.
327
328 2020-08-13 Kamil Rytarowski <n54@gmx.com>
329
330 * target.h (supports_dumpcore, dumpcore): New
331 function declarations.
332 * target.c (supports_dumpcore, dumpcore): New
333 functions.
334 * target-delegates.c: Rebuild.
335 * gcore.c (gcore_command): Use target_supports_dumpcore ()
336 and target_dumpcore ().
337
338 2020-08-13 Aaron Merey <amerey@redhat.com>
339
340 * debuginfod-support.c: Replace global variables with user_data.
341
342 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
343
344 * maint.c (maintenance_selftest): Split args and pass array_view
345 to run_tests.
346
347 2020-08-12 Luis Machado <luis.machado@linaro.org>
348
349 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
350 type's length.
351 Use %s and pulongest to print the length.
352
353 2020-08-12 Pedro Alves <palves@redhat.com>
354
355 * NEWS: Move "Multi-target debugging support" item to the
356 "Changes since GDB 9" section.
357
358 2020-08-12 Pedro Alves <palves@redhat.com>
359
360 PR gdb/26336
361 * progspace.c (program_space::remove_objfile): Invalidate the
362 frame cache.
363
364 2020-08-11 Tom de Vries <tdevries@suse.de>
365
366 * MAINTAINERS: Mark ms1 as deleted.
367
368 2020-08-10 Luis Machado <luis.machado@linaro.org>
369
370 PR gdb/26310
371
372 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
373 act accordingly.
374 (aarch64_analyze_prologue_test): Add more unit tests to exercise
375 movz/str/stur/stp skipping behavior.
376
377 2020-08-10 Luis Machado <luis.machado@linaro.org>
378
379 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
380 struct user_sve_header instead of struct sve_context.
381
382 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
383
384 * read.h (dwarf2_fetch_die_loc_sect_off,
385 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
386 `void *` parameter with function_view.
387 * read.c (dwarf2_fetch_die_loc_sect_off,
388 dwarf2_fetch_die_loc_cu_off): Likewise.
389 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
390 (per_cu_dwarf_call): Adjust.
391 (get_frame_address_in_block_wrapper): Remove.
392 (indirect_synthetic_pointer): Adjust.
393 (get_ax_pc): Remove.
394 (dwarf2_compile_expr_to_ax): Adjust.
395
396 2020-08-08 Tom de Vries <tdevries@suse.de>
397
398 PR build/26344
399 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
400 constructor.
401 * regcache.c (get_thread_arch_aspace_regcache): Same.
402
403 2020-08-07 Tom Tromey <tromey@adacore.com>
404
405 * ravenscar-thread.c
406 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
407 New method.
408 (ravenscar_thread_target::wait): Check
409 runtime_initialized.
410 (ravenscar_thread_target::prepare_to_store)
411 (ravenscar_thread_target::stopped_by_sw_breakpoint)
412 (ravenscar_thread_target::stopped_by_hw_breakpoint)
413 (ravenscar_thread_target::stopped_by_watchpoint)
414 (ravenscar_thread_target::stopped_data_address)
415 (ravenscar_thread_target::core_of_thread): Use
416 scoped_restore_current_thread and
417 set_base_thread_from_ravenscar_task.
418
419 2020-08-07 Tom Tromey <tromey@adacore.com>
420
421 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
422
423 2020-08-07 Tom Tromey <tromey@adacore.com>
424
425 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
426 update_inferior_ptid before update_thread_list.
427 (temporarily_change_regcache_ptid): New class.
428 (ravenscar_thread_target::fetch_registers)
429 (ravenscar_thread_target::store_registers)
430 (ravenscar_thread_target::prepare_to_store): Use base thread when
431 forwarding operation.
432
433 2020-08-07 Tom Tromey <tromey@adacore.com>
434
435 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
436 "is_pid" case.
437
438 2020-08-07 Tom Tromey <tromey@adacore.com>
439
440 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
441 New methods.
442 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
443 first.
444 (ravenscar_thread_target::add_thread): Rename from
445 ravenscar_add_thread.
446 (ravenscar_thread_target::update_thread_list): Use a lambda.
447 (ravenscar_thread_target::xfer_partial): New method.
448
449 2020-08-07 Tom Tromey <tromey@adacore.com>
450
451 * ada-lang.h (ada_task_list_iterator_ftype): Now a
452 gdb::function_view.
453 (iterate_over_live_ada_tasks): Change type of argument.
454 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
455 of argument.
456
457 2020-08-07 Tom Tromey <tromey@adacore.com>
458
459 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
460 Remove.
461 (ravenscar_thread_target::extra_thread_info): Remove.
462 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
463 defer to target beneath for non-Ravenscar threads.
464
465 2020-08-07 Tom Tromey <tromey@adacore.com>
466
467 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
468 get_base_thread_from_ravenscar_task>: Now methods.
469 <m_cpu_map>: New member.
470 (ravenscar_thread_target::get_thread_base_cpu): Rename from
471 ravenscar_get_thread_base_cpu. Check m_cpu_map.
472 (ravenscar_thread_target::task_is_currently_active): Update.
473 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
474 Now a method.
475 (ravenscar_thread_target::add_active_thread): Put initial thread
476 into the m_cpu_map.
477
478 2020-08-07 Tom Tromey <tromey@adacore.com>
479
480 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
481 event_ptid.
482
483 2020-08-07 Tom Tromey <tromey@adacore.com>
484
485 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
486 runtime_initialized.
487
488 2020-08-07 Tom Tromey <tromey@adacore.com>
489
490 * ravenscar-thread.c (ravenscar_thread_target): Don't call
491 add_active_thread.
492 (ravenscar_thread_target::add_active_thread): Now public.
493 (ravenscar_inferior_created): Call add_active_thread after pushing
494 the target.
495
496 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
497
498 * regcache.c (ptid_regcache_map): New type.
499 (target_ptid_regcache_map): New type.
500 (regcaches): Change type to target_ptid_regcache_map.
501 (get_thread_arch_aspace_regcache): Update to regcaches' new
502 type.
503 (regcache_thread_ptid_changed): Likewise.
504 (registers_changed_ptid): Likewise.
505 (regcaches_size): Likewise.
506 (regcaches_test): Update.
507 (regcache_thread_ptid_changed): Update.
508 * regcache.h (regcache_up): New type.
509 * gdbsupport/ptid.h (hash_ptid): New struct.
510
511 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
512
513 * observable.h (thread_ptid_changed): Add parameter
514 `process_stratum_target *`.
515 * infrun.c (infrun_thread_ptid_changed): Add parameter
516 `process_stratum_target *` and use it.
517 (selftests): New namespace.
518 (infrun_thread_ptid_changed): New function.
519 (_initialize_infrun): Register selftest.
520 * regcache.c (regcache_thread_ptid_changed): Add parameter
521 `process_stratum_target *` and use it.
522 (regcache_thread_ptid_changed): New function.
523 (_initialize_regcache): Register selftest.
524 * thread.c (thread_change_ptid): Pass target to
525 thread_ptid_changed observable.
526
527 2020-08-06 Caroline Tice <cmtice@google.com>
528
529 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
530 (struct dwp_sections): Update field comments. Add loclists and
531 rnglists fields.
532 (struct virtual_v2_dwo_sections): Rename struct to
533 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
534 size & offset fields for loclists and rnglists.
535 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
536 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
537 skipping dummy type units.
538 (create_dwp_hash_table): Update the large comment above the function to
539 discuss Version 5 DWP files as well, with references. Update all the
540 version checks in the function to check for version 5 as well. Add new
541 section at the end to create dwp hash table for version 5.
542 (create_dwp_v2_section): Rename function to
543 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
544 Add V5 to error message text.
545 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
546 into calls to create_dwp_v2_or_v5_section.
547 (create_dwo_unit_in_dwp_v5): New function.
548 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
549 check for version2; add else clause to handle version 5.
550 (open_and_init_dwo_file): Add code to check dwarf version & only call
551 create_debug_types_hash_table (with sections.types) if version is not 5;
552 else call create_debug_type_hash_table, with sections.info.
553 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
554 version 5.
555 (dwarf2_locate_v5_dwp_sections): New function.
556 (open_and_init_dwp_file): Add else-if clause for version 5 to call
557 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
558
559 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
560
561 * regcache.h (class regcache): Remove friend
562 registers_changed_ptid.
563 <regcache_thread_ptid_changed>: Remove.
564 <regcaches>: Remove.
565 * regcache.c (regcache::regcaches): Rename to...
566 (regcaches): ... this. Make static.
567 (get_thread_arch_aspace_regcache): Update.
568 (regcache::regcache_thread_ptid_changed): Rename to...
569 (regcache_thread_ptid_changed): ... this. Update.
570 (class regcache_access): Remove.
571 (regcaches_test): Update.
572 (_initialize_regcache): Update.
573 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
574 <forward_list>.
575
576 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
577
578 * regcache.h (class regcache) <current_regcache>: Rename to...
579 <regcaches>: ... this. Move doc here.
580 * regcache.c (regcache::current_regcache) Rename to...
581 (regcache::regcaches): ... this. Move doc to header.
582 (get_thread_arch_aspace_regcache): Update.
583 (regcache::regcache_thread_ptid_changed): Update.
584 (registers_changed_ptid): Update.
585 (class regcache_access) <current_regcache_size>: Rename to...
586 <regcaches_size>: ... this.
587 (current_regcache_test): Rename to...
588 (regcaches_test): ... this.
589 (_initialize_regcache): Update.
590
591 2020-08-06 Victor Collod <vcollod@nvidia.com>
592
593 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
594
595 2020-08-05 Kevin Buettner <kevinb@redhat.com>
596
597 * corelow.c (core_target::build_file_mappings): Don't output
598 null pathname in warning.
599
600 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
601
602 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
603 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
604 gdb.dwarf2/dw2-single-line-discriminators.exp,
605 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
606
607 2020-08-05 Tom Tromey <tromey@adacore.com>
608
609 PR rust/26197:
610 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
611 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
612 Fix off-by-one and type size errors in ordinary case.
613
614 2020-08-05 Tom de Vries <tdevries@suse.de>
615
616 * gdbtypes.c (type_not_allocated, type_not_associated): Use
617 "prop->const_val () == 0" instead of "prop->const_val () != 0".
618
619 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
620
621 * frame.h (frame_id_p): Return bool.
622 (frame_id_artificial_p): Return bool.
623 (frame_id_eq): Return bool.
624 (has_stack_frames): Return bool.
625 (get_selected_frame): Fix typo in comment.
626 (get_frame_pc_if_available): Return bool.
627 (get_frame_address_in_block_if_available): Return bool.
628 (get_frame_func_if_available): Return bool.
629 (read_frame_register_unsigned): Return bool.
630 (get_frame_register_bytes): Return bool.
631 (safe_frame_unwind_memory): Return bool.
632 (deprecated_frame_register_read): Return bool.
633 (frame_unwinder_is): Return bool.
634 * frame.c (struct frame_info) <prev_arch::p>: Change type to
635 bool.
636 <this_id::p>: Likewise.
637 <prev_p>: Likewise.
638 (frame_stash_add): Return bool.
639 (get_frame_id): Use bool.
640 (frame_id_build_special) Use bool.
641 (frame_id_build_unavailable_stack): Use bool.
642 (frame_id_build): Use bool.
643 (frame_id_p): Return bool, use true/false instead of 1/0.
644 (frame_id_artificial_p): Likewise.
645 (frame_id_eq): Likewise.
646 (frame_id_inner): Likewise.
647 (get_frame_func_if_available): Likewise.
648 (read_frame_register_unsigned): Likewise.
649 (deprecated_frame_register_read): Likewise.
650 (get_frame_register_bytes): Likewise.
651 (has_stack_frames): Likewise.
652 (inside_main_func): Likewise.
653 (inside_entry_func): Likewise.
654 (get_frame_pc_if_available): Likewise.
655 (get_frame_address_in_block_if_available): Likewise.
656 (frame_unwinder_is): Likewise.
657 (safe_frame_unwind_memory): Likewise.
658 (frame_unwind_arch): Likewise.
659
660 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
661
662 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
663 type to cached_copy_status.
664 (fprintf_frame): Adjust.
665 (get_frame_func_if_available): Adjust.
666 (frame_cleanup_after_sniffer): Adjust.
667
668 2020-08-04 Mark Wielaard <mark@klomp.org>
669
670 * MAINTAINERS (Write After Approval): Update email address.
671
672 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
673
674 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
675 dynamic_prop::const_val.
676
677 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
678
679 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
680 dynamic_prop::kind.
681
682 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
683
684 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
685
686 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
687
688 * configure.tgt: Set gdb_sim for bpf-*-* targets.
689
690 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
691 Jose E. Marchesi <jose.marchesi@oracle.com>
692
693 * configure.tgt: Add entry for bpf-*-*.
694 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
695 (ALLDEPFILES): Add bpf-tdep.c.
696 * bpf-tdep.c: New file.
697 * MAINTAINERS: Add bpf target and maintainer.
698 * NEWS: Mention the support for the new target.
699
700 2020-08-04 Tom de Vries <tdevries@suse.de>
701
702 PR symtab/23270
703 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
704 Error.
705
706 2020-08-03 John Baldwin <jhb@FreeBSD.org>
707
708 * syscalls/freebsd.xml: Regenerate.
709
710 2020-08-03 John Baldwin <jhb@FreeBSD.org>
711
712 * syscalls/update-freebsd.sh: Fix usage and year range.
713
714 2020-08-03 Tom de Vries <tdevries@suse.de>
715
716 PR symtab/26333
717 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
718 DW_LNE_lo_user/DW_LNE_hi_user range.
719
720 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
721
722 PR ada/26318
723 * ada-lang.c (ada_modulus): Return 0 if property is not of const
724 kind.
725
726 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
727
728 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
729
730 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
731
732 * breakpoint.c (set_breakpoint_condition): Update the condition
733 expressions after checking that the input condition string parses
734 successfully and does not contain junk at the end.
735
736 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
737
738 * breakpoint.c (set_breakpoint_condition): Update the
739 condition string after parsing the new condition successfully.
740
741 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
742
743 * proc-api.c (_STRUCTURED_PROC): Don't define.
744 * proc-events.c: Likewise.
745 * proc-flags.c: Likewise.
746 * proc-why.c: Likewise.
747 * procfs.c: Likewise.
748
749 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
750 * configure, config.in: Regenerate.
751
752 2020-07-30 Tom de Vries <tdevries@suse.de>
753
754 PR build/26320
755 * ui-style.h (struct ui_file_style::color): Wrap m_value and
756 m_red/m_green/m_blue in a union.
757
758 2020-07-29 Tom de Vries <tdevries@suse.de>
759
760 PR tdep/26280
761 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
762
763 2020-07-28 Tom Tromey <tromey@adacore.com>
764
765 PR symtab/26270:
766 * symtab.h (find_pc_partial_function_sym): Declare.
767 * cli/cli-cmds.c (disassemble_command): Use
768 find_pc_partial_function_sym. Check asm_demangle.
769 * blockframe.c (cache_pc_function_sym): New global.
770 (cache_pc_function_name): Remove.
771 (clear_pc_function_cache): Update.
772 (find_pc_partial_function_sym): New function, from
773 find_pc_partial_function.
774 (find_pc_partial_function): Rewrite using
775 find_pc_partial_function_sym.
776
777 2020-07-28 Tom Tromey <tromey@adacore.com>
778
779 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
780 help. Add usage.
781
782 2020-07-28 Tom Tromey <tromey@adacore.com>
783
784 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
785 <DW_OP_GNU_variable_value>: Cast to address type.
786
787 2020-07-28 Kamil Rytarowski <n54@gmx.com>
788
789 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
790 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
791 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
792 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
793 (nbsd_get_siginfo_type): New.
794 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
795 (_initialize_nbsd_tdep): New.
796
797 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
798
799 PR binutils/26301
800 * configure: Regenerated.
801
802 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
803
804 PR binutils/26301
805 * configure: Regenerated.
806
807 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
808
809 * python/py-frame.c: Remove 'user-regs.h' include.
810 (frapy_read_register): Rewrite to make use of
811 gdbpy_parse_register_id.
812 * python/py-registers.c (gdbpy_parse_register_id): New function,
813 moved here from python/py-unwind.c. Updated the return type, and
814 also accepts register descriptor objects.
815 * python/py-unwind.c: Remove 'user-regs.h' include.
816 (pyuw_parse_register_id): Moved to python/py-registers.c.
817 (unwind_infopy_add_saved_register): Update to use
818 gdbpy_parse_register_id.
819 (pending_framepy_read_register): Likewise.
820 * python/python-internal.h (gdbpy_parse_register_id): Declare.
821
822 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
823
824 * python/py-registers.c: Add 'user-regs.h' include.
825 (register_descriptor_iter_find): New function.
826 (register_descriptor_iterator_object_methods): New static global
827 methods array.
828 (register_descriptor_iterator_object_type): Add pointer to methods
829 array.
830
831 2020-07-27 John Baldwin <jhb@FreeBSD.org>
832
833 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
834 for all architectures on FreeBSD 11.3 and later.
835
836 2020-07-27 Tom Tromey <tromey@adacore.com>
837
838 * gcore.h (load_corefile): Don't declare.
839
840 2020-07-27 Tom de Vries <tdevries@suse.de>
841
842 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
843 * config.in: Regenerate.
844 * configure: Regenerate.
845
846 2020-07-26 Eli Zaretskii <eliz@gnu.org>
847
848 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
849 ws2tcpip.h. When checking whether socklen_t type is defined, use
850 ws2tcpip.h if it is available and sys/socket.h isn't.
851 * configure: Regenerate.
852 * config.in: Regenerate.
853
854 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
855
856 PR fortran/23051
857 PR fortran/26139
858 * valops.c (value_ind): Pass address to
859 readjust_indirect_value_type.
860 * value.c (readjust_indirect_value_type): Make parameter
861 non-const, and add extra address parameter. Resolve original type
862 before using it.
863 * value.h (readjust_indirect_value_type): Update function
864 signature and comment.
865
866 2020-07-25 Tom de Vries <tdevries@suse.de>
867
868 PR symtab/26243
869 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
870 entries.
871
872 2020-07-24 Aaron Merey <amerey@redhat.com>
873
874 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
875 * configure: Rebuild.
876
877 2020-07-23 Kevin Buettner <kevinb@redhat.com>
878
879 PR corefiles/26294
880 * corelow.c (_initialize_corelow): Add period to help text
881 for "maintenance print core-file-backed-mappings".
882
883 2020-07-23 Pedro Alves <pedro@palves.net>
884
885 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
886 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
887 meanwhile.
888 * frame.c (frame_cache_generation, get_frame_cache_generation):
889 New.
890 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
891 (get_prev_frame_if_no_cycle): On exception, don't touch
892 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
893 * frame.h (get_frame_cache_generation): Declare.
894
895 2020-07-23 Tom de Vries <tdevries@suse.de>
896
897 PR tui/26282
898 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
899 New default constructor.
900
901 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
902
903 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
904 exclude non-statement entries.
905
906 2020-07-22 Kevin Buettner <kevinb@redhat.com>
907
908 * NEWS (New commands): Mention new command
909 "maintenance print core-file-backed-mappings".
910
911 2020-07-22 Kevin Buettner <kevinb@redhat.com>
912
913 * corelow.c (gdbcmd.h): Include.
914 (core_target::info_proc_mappings): New method.
915 (get_current_core_target): New function.
916 (maintenance_print_core_file_backed_mappings): New function.
917 (_initialize_corelow): Add core-file-backed-mappings to
918 "maint print" commands.
919
920 2020-07-22 Kevin Buettner <kevinb@redhat.com>
921
922 * linux-tdep.c (dump_note_entry_p): New function.
923 (linux_dump_mapping_p_ftype): New typedef.
924 (linux_find_memory_regions_full): Add new parameter,
925 should_dump_mapping_p.
926 (linux_find_memory_regions): Adjust call to
927 linux_find_memory_regions_full.
928 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
929 call to linux_find_memory_regions_full.
930
931 2020-07-22 Kevin Buettner <kevinb@redhat.com>
932
933 * corelow.c (solist.h, unordered_map): Include.
934 (class core_target): Add field m_core_file_mappings and
935 method build_file_mappings.
936 (core_target::core_target): Call build_file_mappings.
937 (core_target::~core_target): Free memory associated with
938 m_core_file_mappings.
939 (core_target::build_file_mappings): New method.
940 (core_target::xfer_partial): Use m_core_file_mappings
941 for memory transfers.
942 * linux-tdep.c (linux_read_core_file_mappings): New
943 function.
944 (linux_core_info_proc_mappings): Rewrite to use
945 linux_read_core_file_mappings.
946 (linux_init_abi): Register linux_read_core_file_mappings.
947
948 2020-07-22 Kevin Buettner <kevinb@redhat.com>
949
950 * arch-utils.c (default_read_core_file_mappings): New function.
951 * arch-utils.c (default_read_core_file_mappings): Declare.
952 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
953 * gdbarch.h, gdbarch.c: Regenerate.
954
955 2020-07-22 Kevin Buettner <kevinb@redhat.com>
956
957 PR corefiles/25631
958 * corelow.c (core_target:xfer_partial): Revise
959 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
960 case after first checking the stratum beneath the core
961 target.
962 (has_all_memory): Return true.
963 * target.c (raw_memory_xfer_partial): Revise comment
964 regarding use of has_all_memory.
965
966 2020-07-22 Kevin Buettner <kevinb@redhat.com>
967
968 * exec.h (section_table_xfer_memory): Revise declaration,
969 replacing section name parameter with an optional callback
970 predicate.
971 * exec.c (section_table_xfer_memory): Likewise.
972 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
973 of section_table_xfer_memory.
974
975 2020-07-22 Tom Tromey <tromey@adacore.com>
976
977 * mi/mi-cmd-stack.c (list_args_or_locals): Use
978 lookup_symbol_search_name.
979
980 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
981
982 * python/py-registers.c (gdbpy_register_object_data_init): Remove
983 redundant local variable.
984 (gdbpy_get_register_descriptor): Extract descriptor vector as a
985 reference, not pointer, update code accordingly.
986
987 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
988 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
989
990 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
991 * jit.c (jit_breakpoint_re_set_internal): Use the
992 `skip_jit_symbol_lookup` field.
993
994 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
995 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
996
997 * jit.c (jit_read_descriptor): Define the descriptor address once,
998 use twice.
999 (jit_breakpoint_deleted): Move the declaration of the loop variable
1000 `iter` into the loop header.
1001 (jit_breakpoint_re_set_internal): Move the declaration of the local
1002 variable `objf_data` to the first point of definition.
1003 (jit_event_handler): Move the declaration of local variables
1004 `code_entry`, `entry_addr`, and `objf` to their first point of use.
1005 Rename `objf` to `jited`.
1006
1007 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1008
1009 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
1010 Remove.
1011 * jit.c (get_jiter_objfile_data): Update.
1012
1013 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1014 Simon Marchi <simon.marchi@polymtl.ca>
1015
1016 * jit.c (struct jit_program_space_data): Remove.
1017 (jit_program_space_key): Remove.
1018 (jiter_objfile_data::~jiter_objfile_data): Remove program space
1019 stuff.
1020 (get_jit_program_space_data): Remove.
1021 (jit_breakpoint_deleted): Iterate on all of the program space's
1022 objfiles.
1023 (jit_inferior_init): Likewise.
1024 (jit_breakpoint_re_set_internal): Likewise. Also change return
1025 type to void.
1026 (jit_breakpoint_re_set): Pass current_program_space to
1027 jit_breakpoint_re_set_internal.
1028
1029 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1030
1031 * jit.h (struct jiter_objfile_data) <cached_code_address,
1032 jit_breakpoint>: Move to here from ...
1033 * jit.c (jit_program_space_data): ... here.
1034 (jiter_objfile_data::~jiter_objfile_data): Update.
1035 (jit_breakpoint_deleted): Update.
1036 (jit_breakpoint_re_set_internal): Update.
1037
1038 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1039
1040 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
1041 checks.
1042 (jit_read_descriptor): Remove NULL check.
1043 (jit_event_handler): Add an assertion.
1044
1045 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1046
1047 * jit.h (struct jit_objfile_data): Split into...
1048 (struct jiter_objfile_data): ... this ...
1049 (struct jited_objfile_data): ... and this.
1050 * objfiles.h (struct objfile) <jit_data>: Remove.
1051 <jiter_data, jited_data>: New fields.
1052 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
1053 (jiter_objfile_data::~jiter_objfile_data): ... this.
1054 (get_jit_objfile_data): Rename to ...
1055 (get_jiter_objfile_data): ... this.
1056 (add_objfile_entry): Update.
1057 (jit_read_descriptor): Use get_jiter_objfile_data.
1058 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
1059 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
1060 (jit_inferior_exit_hook): Use objfile's jited_data field.
1061
1062 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1063
1064 * jit.h: Forward-declare `struct minimal_symbol`.
1065 (struct jit_objfile_data): Migrate to here from jit.c; also add a
1066 constructor, destructor, and an objfile* field.
1067 * jit.c (jit_objfile_data): Remove.
1068 (struct jit_objfile_data): Migrate from here to jit.h.
1069 (jit_objfile_data::~jit_objfile_data): New destructor
1070 implementation with code moved from free_objfile_data.
1071 (free_objfile_data): Delete.
1072 (get_jit_objfile_data): Update to use the jit_data field of objfile.
1073 (jit_find_objf_with_entry_addr): Ditto.
1074 (jit_inferior_exit_hook): Ditto.
1075 (_initialize_jit): Remove the call to
1076 register_objfile_data_with_cleanup.
1077 * objfiles.h (struct objfile) <jit_data>: New field.
1078
1079 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1080
1081 * jit.h: Forward-declare `struct objfile`.
1082 (jit_event_handler): Add a second parameter, the JITer objfile.
1083 * jit.c (jit_read_descriptor): Change the signature to take the
1084 JITer objfile as an argument instead of the jit_program_space_data.
1085 (jit_inferior_init): Update the call to jit_read_descriptor.
1086 (jit_event_handler): Use the new JITer objfile argument when calling
1087 jit_read_descriptor.
1088 * breakpoint.c (handle_jit_event): Update the call to
1089 jit_event_handler to pass the JITer objfile.
1090
1091 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1092
1093 * gdbarch.c: Regenerate.
1094 * gdbarch.h: Regenerate.
1095 * gdbarch.sh (handle_segmentation_fault): Remove method.
1096 * infrun.c (handle_segmentation_fault): Remove.
1097 (print_signal_received_reason): Remove call to
1098 handle_segmentation_fault.
1099
1100 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1101
1102 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1103 Rename to sparc64_linux_report_signal_info and add siggnal
1104 argument.
1105 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
1106 instead of sparc64_linux_handle_segmentation_fault.
1107
1108 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1109
1110 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
1111 i386_linux_report_signal_info instead of
1112 i386_linux_handle_segmentation_fault.
1113 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
1114 to i386_linux_report_signal_info and add siggnal argument.
1115 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
1116 of i386_linux_handle_segmentation_fault.
1117 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
1118 to i386_linux_report_signal_info and add siggnal argument.
1119
1120 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1121
1122 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1123 hook if present.
1124
1125 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1126
1127 * gdbarch.c: Regenerate.
1128 * gdbarch.h: Regenerate.
1129 * gdbarch.sh (report_signal_info): New method.
1130 * infrun.c (print_signal_received_reason): Invoke gdbarch
1131 report_signal_info hook if present.
1132
1133 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1134
1135 * python/py-registers.c : Add 'unordered_map' include.
1136 (gdbpy_new_reggroup): Renamed to...
1137 (gdbpy_get_reggroup): ...this. Update to only create register
1138 group descriptors when needed.
1139 (gdbpy_reggroup_iter_next): Update.
1140
1141 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1142
1143 * python/py-registers.c (gdbpy_register_object_data): New static
1144 global.
1145 (gdbpy_register_object_data_init): New function.
1146 (gdbpy_new_register_descriptor): Renamed to...
1147 (gdbpy_get_register_descriptor): ...this, and update to reuse
1148 existing register descriptors where possible.
1149 (gdbpy_register_descriptor_iter_next): Update.
1150 (gdbpy_initialize_registers): Register new gdbarch data.
1151
1152 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
1153
1154 * linux-nat.c (stopped_pids): Make static.
1155
1156 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1157
1158 PR ada/26235
1159 * gdbtypes.c (ada_discrete_type_low_bound,
1160 ada_discrete_type_high_bound): Handle undefined bounds.
1161
1162 2020-07-21 Kamil Rytarowski <n54@gmx.com>
1163
1164 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1165 declaration.
1166 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1167 function.
1168
1169 2020-07-20 John Baldwin <jhb@FreeBSD.org>
1170
1171 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1172 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1173 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1174 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1175 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1176 method.
1177
1178 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1179
1180 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1181 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1182 which are deprecated in Guile 3.0.
1183 * configure.ac (try_guile_versions): Add "guile-3.0".
1184 * configure (try_guile_versions): Regenerate.
1185 * NEWS: Update entry.
1186
1187 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1188 Doug Evans <dje@google.com>
1189
1190 PR gdb/21104
1191 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1192 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1193 USING_GUILE_BEFORE_2_2.
1194 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1195 Change type to 'scm_t_port_type *'.
1196 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1197 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1198 parameter and honor it. Update callers.
1199 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1200 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1201 functions.
1202 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1203 USING_GUILE_BEFORE_2_2.
1204 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1205 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1206 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1207 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1208 and 'SCM_PORT_TYPE'.
1209 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1210 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1211 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1212 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1213 [!USING_GUILE_BEFORE_2_2]: New functions.
1214 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1215 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1216 'gdbscm_memory_port_read'.
1217 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1218 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1219 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1220 function.
1221 (ioscm_init_memory_port): Remove.
1222 (ioscm_init_memory_port_stream): New function
1223 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1224 function.
1225 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1226 Return scm_from_uint (0).
1227 (gdbscm_set_memory_port_read_buffer_size_x)
1228 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1229 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1230 Return scm_from_uint (0).
1231 (gdbscm_set_memory_port_write_buffer_size_x)
1232 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1233 * configure.ac (try_guile_versions): Add "guile-2.2".
1234 * configure: Regenerate.
1235 * NEWS: Add entry.
1236
1237 2020-07-18 Tom Tromey <tom@tromey.com>
1238
1239 * linux-nat.c (linux_multi_process): Remove.
1240 (linux_nat_target::supports_multi_process): Return true.
1241
1242 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1243
1244 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1245 (riscv_lookup_target_description): Return pointer out of
1246 unique_ptr.
1247 * target-descriptions.c (allocate_target_description): Add
1248 comment.
1249 (target_desc_deleter::operator()): Likewise.
1250 * target-descriptions.h (struct target_desc_deleter): Moved to
1251 gdbsupport/tdesc.h.
1252 (target_desc_up): Likewise.
1253
1254 2020-07-17 Tom Tromey <tromey@adacore.com>
1255
1256 * linux-nat.c (linux_nat_target::supports_non_stop)
1257 (linux_nat_target::always_non_stop_p): Use "true".
1258 (linux_nat_target::supports_disable_randomization): Use "true" and
1259 "false".
1260
1261 2020-07-16 Caroline Tice <cmtice@google.com>
1262
1263 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1264 (RNGLIST_HEADER_SIZE64): New constant definition.
1265 (struct dwop_section_names): Add rnglists_dwo.
1266 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1267 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1268 (struct dwo_sections): Add rnglists field.
1269 (read_attribut_reprocess): Add tag parameter.
1270 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1271 (cu_debug_rnglists_section): New function (decl & definition).
1272 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1273 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1274 die whose range is being checked; get rnglist section from
1275 cu_debug_rnglists_section, to get from either objfile or dwo file as
1276 appropriate. Add cases for DW_RLE_base_addressx,
1277 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1278 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1279 test inside if-condition and updating complaint message.
1280 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1281 dwarf2_rnglists_process.
1282 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1283 dwarf2_ranges_process.
1284 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1285 need_ranges_base and update comment appropriately. Also pass die tag
1286 to dwarf2_ranges_read.
1287 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1288 need_ranges_base and update comment appropriately. Also pass die tag
1289 to dwarf2_ranges_process.
1290 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1291 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1292 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1293 need_ranges_base and update comment appropriately. Also pass die tag
1294 to read_attribute_reprocess and dwarf2_ranges_read.
1295 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1296 and update function comment appropriately.
1297 (read_loclist_index): Call read_loclists_rnglists_header instead of
1298 read_loclist_header.
1299 (read_rnglist_index): New function.
1300 (read_attribute_reprocess): Add tag parameter. Add code for
1301 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1302 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1303
1304 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1305
1306 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1307 being resolved.
1308
1309 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1310
1311 * arch-utils.c (show_architecture): Update formatting of messages.
1312
1313 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1314
1315 * gdbtypes.h (struct type) <bounds>: Handle array and string
1316 types.
1317 * ada-lang.c (assign_aggregate): Use type::bounds on
1318 array/string type.
1319 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1320 * c-varobj.c (c_number_of_children): Likewise.
1321 (c_describe_child): Likewise.
1322 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1323 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1324 (f_type_print_base): Likewise.
1325 * f-valprint.c (f77_array_offset_tbl): Likewise.
1326 (f77_get_upperbound): Likewise.
1327 (f77_print_array_1): Likewise.
1328 * guile/scm-type.c (gdbscm_type_range): Likewise.
1329 * m2-typeprint.c (m2_array): Likewise.
1330 (m2_is_long_set_of_type): Likewise.
1331 * m2-valprint.c (get_long_set_bounds): Likewise.
1332 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1333 * python/py-type.c (typy_range): Likewise.
1334 * rust-lang.c (rust_internal_print_type): Likewise.
1335 * type-stack.c (type_stack::follow_types): Likewise.
1336 * valarith.c (value_subscripted_rvalue): Likewise.
1337 * valops.c (value_cast): Likewise.
1338
1339 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1340
1341 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1342 callers to use the equivalent accessor methods.
1343
1344 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1345
1346 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1347 (struct type) <bit_stride>: New method.
1348 (TYPE_BIT_STRIDE): Remove.
1349 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1350
1351 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1352
1353 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1354 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1355 callers to use the equivalent accessor methods instead.
1356
1357 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1358
1359 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1360 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1361 callers to use the equivalent accessor methods instead.
1362
1363 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1364
1365 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1366 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1367 to use dynamic_prop::kind.
1368
1369 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1370
1371 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1372 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1373 to get the bound property's kind and check against
1374 PROP_UNDEFINED.
1375
1376 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1377
1378 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1379 all callers to use type::range_bounds followed by
1380 dynamic_prop::{low,high}.
1381
1382 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1383
1384 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1385 const_val, set_const_val, baton, set_locexpr, set_loclist,
1386 set_addr_offset, variant_parts, set_variant_parts,
1387 original_type, set_original_type>: New methods.
1388 <kind>: Rename to...
1389 <m_kind>: ... this. Update all users to use the new methods
1390 instead.
1391 <data>: Rename to...
1392 <m_data>: ... this. Update all users to use the new methods
1393 instead.
1394
1395 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1396
1397 * gdbtypes.c (get_discrete_bounds): Return failure if
1398 the range type's bounds are not both defined and constant
1399 values.
1400 (get_array_bounds): Update comment. Remove undefined bound check.
1401
1402 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1403
1404 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1405 the type::bounds method directly.
1406
1407 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1408
1409 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1410 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1411 are used to set the range type's bounds to use set_bounds.
1412
1413 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1414
1415 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1416
1417 2020-07-10 Pedro Alves <pedro@palves.net>
1418
1419 * gdbthread.h (inferior_ref): Define.
1420 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1421 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1422 * thread.c
1423 (scoped_restore_current_thread::restore):
1424 Adjust to gdb::ref_ptr.
1425 (scoped_restore_current_thread::~scoped_restore_current_thread):
1426 Remove manual decref handling.
1427 (scoped_restore_current_thread::scoped_restore_current_thread):
1428 Adjust to use
1429 inferior_ref::new_reference/thread_info_ref::new_reference.
1430 Incref the thread before calling get_frame_id instead of after.
1431 Let TARGET_CLOSE_ERROR propagate.
1432
1433 2020-07-10 Pedro Alves <pedro@palves.net>
1434
1435 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1436 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1437 NOT_AVAILABLE_ERROR.
1438 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1439 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1440
1441 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1442 Pedro Alves <pedro@palves.net>
1443
1444 PR gdb/26199
1445 * infrun.c (threads_are_resumed_pending_p): Delete.
1446 (do_target_wait): Remove threads_are_executing and
1447 threads_are_resumed_pending_p checks from the inferior_matches
1448 lambda. Update comments.
1449
1450 2020-07-10 Pedro Alves <pedro@palves.net>
1451
1452 PR gdb/26199
1453 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1454 executing threads.
1455
1456 2020-07-10 Pedro Alves <pedro@palves.net>
1457
1458 PR gdb/26199
1459 * infrun.c (handle_no_resumed): Handle multiple targets.
1460
1461 2020-07-10 Pedro Alves <pedro@palves.net>
1462
1463 PR gdb/26199
1464 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1465 target_is_async_p.
1466
1467 2020-07-10 Pedro Alves <pedro@palves.net>
1468
1469 PR gdb/26199
1470 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1471 threads, not all threads.
1472
1473 2020-07-10 Pedro Alves <pedro@palves.net>
1474
1475 PR gdb/26199
1476 * remote.c (remote_target::open_1): Pass remote target pointer as
1477 data to create_async_event_handler.
1478 (remote_async_inferior_event_handler): Mark async event handler
1479 before returning if the remote target still has either pending
1480 events or unacknowledged notifications.
1481
1482 2020-07-10 John Baldwin <jhb@FreeBSD.org>
1483
1484 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1485 declaration.
1486 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1487 function.
1488
1489 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1490
1491 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1492 inferior_ptid.
1493
1494 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1495
1496 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1497 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1498 AT_FREEBSD_PS_STRINGS.
1499
1500 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
1501
1502 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1503 of debugfile path on Windows.
1504
1505 2020-07-08 John Baldwin <jhb@FreeBSD.org>
1506
1507 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1508 argument to 'data'.
1509
1510 2020-07-08 Tom Tromey <tromey@adacore.com>
1511
1512 * ada-lang.c (ada_exception_message_1): Use read_memory.
1513
1514 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1515
1516 PR python/22748
1517 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1518 special handling for inline frames.
1519 * findvar.c (value_of_register_lazy): Skip inline frames when
1520 creating lazy register values.
1521 * frame.c (frame_id_computed_p): Delete definition.
1522 * frame.h (frame_id_computed_p): Delete declaration.
1523
1524 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1525
1526 * NEWS: Mention additions to Python API.
1527 * python/py-arch.c (archpy_register_groups): New function.
1528 (arch_object_methods): Add 'register_groups' method.
1529 * python/py-registers.c (reggroup_iterator_object): New struct.
1530 (reggroup_object): New struct.
1531 (gdbpy_new_reggroup): New function.
1532 (gdbpy_reggroup_to_string): New function.
1533 (gdbpy_reggroup_name): New function.
1534 (gdbpy_reggroup_iter): New function.
1535 (gdbpy_reggroup_iter_next): New function.
1536 (gdbpy_new_reggroup_iterator): New function
1537 (gdbpy_initialize_registers): Register new types.
1538 (reggroup_iterator_object_type): Define new Python type.
1539 (gdbpy_reggroup_getset): New static global.
1540 (reggroup_object_type): Define new Python type.
1541 * python/python-internal.h
1542
1543 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1544
1545 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1546 * python/py-arch.c (archpy_registers): New function.
1547 (arch_object_methods): Add 'registers' method.
1548 * python/py-registers.c: New file.
1549 * python/python-internal.h
1550 (gdbpy_new_register_descriptor_iterator): Declare.
1551 (gdbpy_initialize_registers): Declare.
1552 * python/python.c (do_start_initialization): Call
1553 gdbpy_initialize_registers.
1554 * NEWS: Mention additions to the Python API.
1555
1556 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1557
1558 * NEWS: Mention new Python API method.
1559 * python/py-unwind.c (pending_framepy_architecture): New function.
1560 (pending_frame_object_methods): Add architecture method.
1561
1562 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1563
1564 * gdbarch.c: Regenerate.
1565 * gdbarch.h: Regenerate.
1566 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1567 (gdbarch_data): Use internal_error for the case where
1568 deprecated_set_gdbarch_data was originally needed.
1569 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1570 and use passed in obstack.
1571 (libunwind_frame_set_descr): Should no longer get back NULL from
1572 gdbarch_data.
1573 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1574 type.
1575 * user-regs.c (user_regs_init): Update parameters, and use passed
1576 in obstack.
1577 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1578 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1579
1580 2020-07-06 Tom de Vries <tdevries@suse.de>
1581
1582 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1583 End-Of-Sequence in lte_is_less_than.
1584 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1585 "gdb: Don't reorder line table entries too much when sorting".
1586
1587 2020-07-06 Tom de Vries <tdevries@suse.de>
1588
1589 PR tui/26205
1590 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1591
1592 2020-07-05 Tom de Vries <tdevries@suse.de>
1593
1594 PR build/26187
1595 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1596 std::uncaught_exceptions instead of deprecated
1597 std::uncaught_exception.
1598
1599 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1600
1601 * macroexp.h (macro_stringify): Return
1602 gdb::unique_xmalloc_ptr<char>.
1603 * macroexp.c (macro_stringify): Likewise.
1604 * macrotab.c (fixup_definition): Update.
1605
1606 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1607
1608 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1609 (lex_one_token): Update.
1610 * macroexp.c (struct macro_buffer) <release>: Return
1611 gdb::unique_xmalloc_ptr<char>.
1612 (macro_stringify): Update.
1613 (macro_expand): Update.
1614 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1615 * macroexp.h (macro_expand_next): Likewise.
1616
1617 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
1618
1619 * macroexp.h (macro_lookup_ftype): Remove.
1620 (macro_expand, macro_expand_once, macro_expand_next): Remove
1621 lookup function parameters, add scope parameter.
1622 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1623 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1624 * macroscope.h (standard_macro_lookup): Change parameter type
1625 to macro_scope.
1626 * macroscope.c (standard_macro_lookup): Likewise.
1627 * c-exp.y (lex_one_token): Update.
1628 * macrocmd.c (macro_expand_command): Likewise.
1629 (macro_expand_once_command): Likewise.
1630
1631 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1632
1633 * inf-loop.c (inferior_event_handler): Remove client_data param.
1634 * inf-loop.h (inferior_event_handler): Likewise.
1635 * infcmd.c (step_1): Adjust.
1636 * infrun.c (proceed): Adjust.
1637 (fetch_inferior_event): Remove client_data param.
1638 (infrun_async_inferior_event_handler): Adjust.
1639 * infrun.h (fetch_inferior_event): Remove `void *` param.
1640 * linux-nat.c (handle_target_event): Adjust.
1641 * record-btrace.c (record_btrace_handle_async_inferior_event):
1642 Adjust.
1643 * record-full.c (record_full_async_inferior_event_handler):
1644 Adjust.
1645 * remote.c (remote_async_inferior_event_handler): Adjust.
1646
1647 2020-07-01 Tom Tromey <tom@tromey.com>
1648
1649 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1650 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1651
1652 2020-07-01 Tom Tromey <tom@tromey.com>
1653
1654 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1655 tui_gen_win_info.
1656 (tui_win_info::make_window): Merge with
1657 tui_gen_win_info::make_window.
1658 (tui_win_info::make_visible): Move from tui_gen_win_info.
1659 * tui/tui-win.c (tui_win_info::max_width): Move from
1660 tui_gen_win_info.
1661 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1662 type.
1663 <window_factory>: Likewise.
1664 * tui/tui-layout.c (tui_win_info::resize): Move from
1665 tui_gen_win_info.
1666 (make_standard_window): Change return type.
1667 (get_locator_window, tui_get_window_by_name): Likewise.
1668 (tui_layout_window::apply): Remove a cast.
1669 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1670 (struct tui_win_info): Merge with tui_gen_win_info.
1671 (struct tui_gen_win_info): Remove.
1672
1673 2020-07-01 Tom Tromey <tom@tromey.com>
1674
1675 * tui/tui-stack.h (struct tui_locator_window): Derive from
1676 tui_win_info.
1677 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1678 <can_box>: New method.
1679
1680 2020-07-01 Tom Tromey <tom@tromey.com>
1681
1682 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1683
1684 2020-07-01 Tom Tromey <tom@tromey.com>
1685
1686 * tui/tui-regs.c (tui_data_window::display_registers_from)
1687 (tui_data_window::display_registers_from)
1688 (tui_data_window::first_data_item_displayed)
1689 (tui_data_window::delete_data_content_windows): Update.
1690 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1691 Remove.
1692 (tui_data_window::check_register_values): Update.
1693 (tui_data_item_window::rerender): Add parameters. Update.
1694 (tui_data_item_window::refresh_window): Remove.
1695 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1696 virtual.
1697 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1698 tui_gen_win_info.
1699 <refresh_window, max_height, min_height>: Remove.
1700 <rerender>: Add parameters.
1701 <x, y, visible>: New members.
1702 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1703 <m_item_width>: New member.
1704
1705 2020-07-01 Tom Tromey <tom@tromey.com>
1706
1707 * tui/tui-regs.c (tui_data_window::show_register_group)
1708 (tui_data_window::check_register_values): Update.
1709 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1710 from item_no.
1711
1712 2020-07-01 Tom Tromey <tom@tromey.com>
1713
1714 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1715 useless "if".
1716
1717 2020-07-01 Tom Tromey <tom@tromey.com>
1718
1719 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1720 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1721
1722 2020-07-01 Tom Tromey <tom@tromey.com>
1723
1724 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1725 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1726 (struct tui_line_or_address): Move from tui-data.h.
1727 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1728 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1729 (tui_cmd_window, tui_source_window_base, tui_source_window)
1730 (tui_disasm_window): Don't declare.
1731 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1732 to tui-winsource.h.
1733 (SINGLE_KEY): Move to tui-stack.c.
1734
1735 2020-07-01 Tom Tromey <tom@tromey.com>
1736
1737 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1738 std::string.
1739 * tui/tui-regs.c (class tab_expansion_file): New.
1740 (tab_expansion_file::write): New method.
1741 (tui_register_format): Change return type. Use
1742 tab_expansion_file.
1743 (tui_get_register, tui_data_window::display_registers_from)
1744 (tui_data_item_window::rerender): Update.
1745 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1746 * tui/tui-io.c (tui_expand_tabs): Remove.
1747
1748 2020-07-01 Tom Tromey <tom@tromey.com>
1749
1750 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1751
1752 2020-07-01 Fangrui Song <maskray@google.com>
1753
1754 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1755
1756 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1757
1758 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1759 forms for DW_AT_associated and DW_AT_allocated attributes,
1760 which is already checked in function attr_to_dynamic_prop.
1761
1762 2020-06-30 Tom Tromey <tromey@adacore.com>
1763
1764 * dwarf2/read.c (quirk_rust_enum): Correctly call
1765 alloc_rust_variant for default-less enum.
1766
1767 2020-06-30 Tom Tromey <tromey@adacore.com>
1768
1769 PR build/26183:
1770 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1771 gdb::to_string.
1772
1773 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
1774
1775 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1776 * gdbarch.h: Re-generate.
1777
1778 2020-06-28 Tom Tromey <tom@tromey.com>
1779
1780 * command.h (cmd_types): Remove.
1781 (cmd_type): Don't declare.
1782 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1783 typedef.
1784 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1785 * cli/cli-decode.c (cmd_type): Remove.
1786
1787 2020-06-27 Pedro Alves <palves@redhat.com>
1788
1789 * fork-child.c (prefork_hook): Adjust.
1790 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1791 Delete.
1792 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1793 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1794 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1795 Remove declarations.
1796 (struct inferior) <set_tty, tty>: New methods.
1797 (struct inferior) <terminal>: Rename to ...
1798 (struct inferior) <m_terminal>: ... this and make private.
1799 * main.c (captured_main_1): Adjust.
1800 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1801 (mi_cmd_inferior_tty_show): Adjust.
1802 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1803 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1804
1805 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
1806
1807 * configure.ac: Add --enable-libctf: handle --disable-static
1808 properly.
1809 * acinclude.m4: sinclude ../config/enable.m4.
1810 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1811 (LIBCTF): Substitute in.
1812 (CTF_DEPS): New, likewise.
1813 (CLIBS): libctf needs symbols from libbfd: move earlier.
1814 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1815 flags.
1816 * ctfread.c: Surround in ENABLE_LIBCTF.
1817 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1818 * configure: Regenerate.
1819 * config.in: Likewise.
1820
1821 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1822
1823 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1824
1825 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1826
1827 * inferior.h (struct inferior) <terminal>: Change type to
1828 gdb::unique_xmalloc_ptr<char>.
1829 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1830 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1831 field, adjust to unique pointer.
1832 (get_inferior_io_terminal): Adjust to unique pointer.
1833
1834 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1835
1836 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1837 registers, not just the known core set of registers.
1838
1839 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1840
1841 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1842 fflags, frm, and fcsr registers.
1843 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1844 restore groups.
1845 (riscv_tdesc_unknown_reg): New function.
1846 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1847 tdesc_use_registers.
1848 * riscv-tdep.h (struct gdbarch_tdep): Add
1849 unknown_csrs_first_regnum, unknown_csrs_count,
1850 duplicate_fflags_regnum, duplicate_frm_regnum, and
1851 duplicate_fcsr_regnum fields.
1852
1853 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1854
1855 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1856 callback, use the callback (when not null) to help number unknown
1857 registers.
1858 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1859 (tdesc_use_registers): Add extra parameter to declaration.
1860
1861 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1862
1863 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1864 in the file.
1865 (class riscv_pending_register_alias): Likewise.
1866 (riscv_register_feature::register_info): Change 'required_p' field
1867 to 'required', and change its type. Add 'check' member function.
1868 (riscv_register_feature::register_info::check): Define new member
1869 function.
1870 (riscv_xreg_feature): Change initialisation of 'required' field.
1871 (riscv_freg_feature): Likewise.
1872 (riscv_virtual_feature): Likewise.
1873 (riscv_csr_feature): Likewise.
1874 (riscv_check_tdesc_feature): Take extra parameter, the csr
1875 tdesc_feature, rewrite the function to use the new
1876 riscv_register_feature::register_info::check function.
1877 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1878
1879 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1880
1881 * features/Makefile: Remove all references to the deleted files
1882 below.
1883 * features/riscv/32bit-csr.c: Deleted.
1884 * features/riscv/32bit-csr.xml: Deleted.
1885 * features/riscv/64bit-csr.c: Deleted.
1886 * features/riscv/64bit-csr.xml: Deleted.
1887 * features/riscv/rebuild-csr-xml.sh: Deleted.
1888
1889 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1890
1891 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1892 whitespace error for declaration of names member variable.
1893 (struct riscv_register_feature): Add new prefer_first_name member
1894 variable, and fix whitespace error in declaration of registers.
1895 (riscv_xreg_feature): Initialize prefer_first_name field.
1896 (riscv_freg_feature): Likewise.
1897 (riscv_virtual_feature): Likewise.
1898 (riscv_csr_feature): Likewise.
1899 (riscv_register_name): Expand on comments. Remove register name
1900 modifications for CSR and virtual registers.
1901
1902 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1903
1904 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1905 errors.
1906
1907 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1908
1909 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1910 riscv-opc.h.
1911 (class riscv_pending_register_alias): New class.
1912 (riscv_check_tdesc_feature): Take vector of pending aliases and
1913 populate it as appropriate.
1914 (riscv_setup_register_aliases): Delete.
1915 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1916 to riscv_check_tdesc_feature in all cases. Use the vector to
1917 create the register aliases.
1918
1919 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1920
1921 * sol2-tdep.c (sol2_static_transform_name): Remove.
1922 (sol2_init_abi): Don't register it.
1923 * gdbarch.sh (static_transform_name): Remove.
1924 * gdbarch.c, gdbarch.h: Regenerate.
1925
1926 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1927 gdbarch_static_transform_name.
1928 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1929 * stabsread.c (define_symbol) <'X'>: Remove.
1930 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1931 handling.
1932 <'V'>: Likewise.
1933 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1934 <'S'>: Remove call to gdbarch_static_transform_name.
1935
1936 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1937
1938 * procfs.c (procfs_pre_trace): New function.
1939 (procfs_target::create_inferior): Pass it to fork_inferior.
1940
1941 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1942
1943 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1944 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1945 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1946 sol2-tdep.o, sparc-sol2-tdep.o.
1947 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1948 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1949 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1950 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1951
1952 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1953
1954 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1955 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1956 Call sol2_init_abi.
1957 Remove calls to set_gdbarch_skip_solib_resolver,
1958 set_gdbarch_core_pid_to_str.
1959 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1960 (i386_sol2_static_transform_name): Remove.
1961 (i386_sol2_init_abi): Call sol2_init_abi.
1962 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1963 set_gdbarch_static_transform_name,
1964 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1965 Use sol2_sigtramp_p.
1966 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1967 (sol2_sigtramp_p): New function.
1968 (sol2_static_transform_name): New function.
1969 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1970 (sol2_init_abi): New function.
1971 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1972 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1973 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1974 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1975 (sparc_sol2_static_transform_name): Remove.
1976 (sparc32_sol2_init_abi): Call sol2_init_abi.
1977 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1978 set_gdbarch_static_transform_name,
1979 set_gdbarch_skip_solib_resolver,
1980 set_gdbarch_core_pid_to_str.
1981 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1982 (sparc_sol2_static_transform_name): Remove
1983 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1984 call sol2_sigtramp_p.
1985 (sparc64_sol2_init_abi): Call sol2_init_abi.
1986 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1987 set_gdbarch_static_transform_name,
1988 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1989
1990 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1991
1992 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1993 * exec.c (validate_exec_file): If from_tty, set both
1994 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1995 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1996 and from_tty, unconditionally ask a confirmation.
1997
1998 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1999
2000 * target-descriptions.c (tdesc_architecture_name): Protect against
2001 NULL pointer dereference.
2002 (maint_print_xml_tdesc_cmd): New function.
2003 (_initialize_target_descriptions): Register new 'maint print
2004 xml-tdesc' command and give it the filename completer.
2005 * NEWS: Mention new 'maint print xml-tdesc' command.
2006
2007 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2008
2009 * target-descriptions.c (class tdesc_compatible_info): New class.
2010 (struct target_desc): Change type of compatible vector.
2011 (tdesc_compatible_p): Update for change in type of
2012 target_desc::compatible.
2013 (tdesc_compatible_info_list): New function.
2014 (tdesc_compatible_info_arch_name): New function.
2015 (tdesc_add_compatible): Update for change in type of
2016 target_desc::compatible.
2017 (print_c_tdesc::visit_pre): Likewise.
2018
2019 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2020
2021 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
2022 whitespace to underscore.
2023 (maint_print_c_tdesc_cmd): Use fake filename for target
2024 descriptions that came from the target.
2025 (_initialize_target_descriptions): Add filename command completion
2026 for 'maint print c-tdesc'.
2027
2028 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2029
2030 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
2031 lines.
2032
2033 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2034
2035 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
2036 lines.
2037 (dwarf2_find_location_expression): Likewise.
2038 (call_site_parameter_matches): Likewise.
2039 (dwarf2_compile_expr_to_ax): Likewise.
2040 (disassemble_dwarf_expression): Likewise.
2041 (loclist_describe_location): Likewise.
2042
2043 2020-06-23 Pedro Alves <palves@redhat.com>
2044
2045 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
2046 progspace-and-thread.h. Include scoped-mock-context.h instead.
2047 (register_to_value_test): Use scoped_mock_context.
2048 * regcache.c: Include "scoped-mock-context.h".
2049 (cooked_read_test): Don't error out if a target is already pushed.
2050 Use scoped_mock_context. Adjust.
2051 * scoped-mock-context.h: New file.
2052
2053 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2054
2055 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
2056 initializer.
2057 (ada_language::is_string_type_p): New member function.
2058 * c-lang.c (c_language_data): Delete la_is_string_type_p
2059 initializer.
2060 (cplus_language_data): Likewise.
2061 (asm_language_data): Likewise.
2062 (minimal_language_data): Likewise.
2063 * d-lang.c (d_language_data): Likewise.
2064 * f-lang.c (f_is_string_type_p): Delete function, implementation
2065 moved to f_language::is_string_type_p.
2066 (f_language_data): Delete la_is_string_type_p initializer.
2067 (f_language::is_string_type_p): New member function,
2068 implementation from f_is_string_type_p.
2069 * go-lang.c (go_is_string_type_p): Delete function, implementation
2070 moved to go_language::is_string_type_p.
2071 (go_language_data): Delete la_is_string_type_p initializer.
2072 (go_language::is_string_type_p): New member function,
2073 implementation from go_is_string_type_p.
2074 * language.c (language_defn::is_string_type_p): Define new member
2075 function.
2076 (default_is_string_type_p): Make static, add comment copied from
2077 header file.
2078 (unknown_language_data): Delete la_is_string_type_p initializer.
2079 (unknown_language::is_string_type_p): New member function.
2080 (auto_language_data): Delete la_is_string_type_p initializer.
2081 (auto_language::is_string_type_p): New member function.
2082 * language.h (language_data): Delete la_is_string_type_p field.
2083 (language_defn::is_string_type_p): Declare new function.
2084 (default_is_string_type_p): Delete desclaration, move comment to
2085 definition.
2086 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
2087 moved to m2_language::is_string_type_p.
2088 (m2_language_data): Delete la_is_string_type_p initializer.
2089 (m2_language::is_string_type_p): New member function,
2090 implementation from m2_is_string_type_p.
2091 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
2092 initializer.
2093 * opencl-lang.c (opencl_language_data): Likewise.
2094 * p-lang.c (pascal_is_string_type_p): Delete function,
2095 implementation moved to pascal_language::is_string_type_p.
2096 (pascal_language_data): Delete la_is_string_type_p initializer.
2097 (pascal_language::is_string_type_p): New member function,
2098 implementation from pascal_is_string_type_p.
2099 * rust-lang.c (rust_is_string_type_p): Delete function,
2100 implementation moved to rust_language::is_string_type_p.
2101 (rust_language_data): Delete la_is_string_type_p initializer.
2102 (rust_language::is_string_type_p): New member function,
2103 implementation from rust_is_string_type_p.
2104 * valprint.c (val_print_scalar_or_string_type_p): Update call to
2105 is_string_type_p.
2106
2107 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2108
2109 * ada-lang.c (ada_language_data): Delete la_print_typedef
2110 initializer.
2111 (ada_language::print_typedef): New member function.
2112 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
2113 (cplus_language_data): Likewise.
2114 (asm_language_data): Likewise.
2115 (minimal_language_data): Likewise.
2116 * d-lang.c (d_language_data): Likewise.
2117 * f-lang.c (f_language_data): Likewise.
2118 (f_language::print_typedef): New member function.
2119 * go-lang.c (go_language_data): Delete la_print_typedef
2120 initializer.
2121 * language.c (language_defn::print_typedef): Define member
2122 function.
2123 (unknown_language_data): Delete la_print_typedef initializer.
2124 (unknown_language::print_typedef): New member function.
2125 (auto_language_data): Delete la_print_typedef initializer.
2126 (auto_language::print_typedef): New member function.
2127 * language.h (language_data): Delete la_print_typedef field.
2128 (language_defn::print_typedef): Declare new member function.
2129 (LA_PRINT_TYPEDEF): Update call to print_typedef.
2130 (default_print_typedef): Delete declaration.
2131 * m2-lang.c (m2_language_data): Delete la_print_typedef
2132 initializer.
2133 (m2_language::print_typedef): New member function.
2134 * objc-lang.c (objc_language_data): Delete la_print_typedef
2135 initializer.
2136 * opencl-lang.c (opencl_language_data): Likewise.
2137 * p-lang.c (pascal_language_data): Likewise.
2138 (pascal_language::print_typedef): New member function.
2139 * rust-lang.c (rust_print_typedef): Delete function,
2140 implementation moved to rust_language::print_typedef.
2141 (rust_language): Delete la_print_typedef initializer.
2142 (rust_language::print_typedef): New member function,
2143 implementation from rust_print_typedef.
2144 * typeprint.c (default_print_typedef): Delete.
2145
2146 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2147
2148 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2149 (ada_language::printstr): New member function.
2150 * c-lang.c (c_language_data): Delete la_printstr initializer.
2151 (cplus_language_data): Likewise.
2152 (asm_language_data): Likewise.
2153 (minimal_language_data): Likewise.
2154 * d-lang.c (d_language_data): Likewise.
2155 * f-lang.c (f_printstr): Rename to f_language::printstr.
2156 (f_language_data): Delete la_printstr initializer.
2157 (f_language::printstr): New member function, implementation from
2158 f_printstr.
2159 * go-lang.c (go_language_data): Delete la_printstr initializer.
2160 * language.c (language_defn::printstr): Define new member
2161 function.
2162 (unk_lang_printstr): Delete.
2163 (unknown_language_data): Delete la_printstr initializer.
2164 (unknown_language::printstr): New member function.
2165 (auto_language_data): Delete la_printstr initializer.
2166 (auto_language::printstr): New member function.
2167 * language.h (language_data): Delete la_printstr field.
2168 (language_defn::printstr): Declare new member function.
2169 (LA_PRINT_STRING): Update call to printstr.
2170 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2171 (m2_language_data): Delete la_printstr initializer.
2172 (m2_language::printstr): New member function, implementation from
2173 m2_printstr.
2174 * objc-lang.c (objc_language_data): Delete la_printstr
2175 initializer.
2176 * opencl-lang.c (opencl_language_data): Likewise.
2177 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2178 (pascal_language_data): Delete la_printstr initializer.
2179 (pascal_language::printstr): New member function, implementation
2180 from pascal_printstr.
2181 * p-lang.h (pascal_printstr): Delete declaration.
2182 * rust-lang.c (rust_printstr): Update header comment.
2183 (rust_language_data): Delete la_printstr initializer.
2184 (rust_language::printstr): New member function.
2185
2186 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2187
2188 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2189 (ada_language::printchar): New member function.
2190 * c-lang.c (c_language_data): Delete la_printchar initializer.
2191 (cplus_language_data): Likewise.
2192 (asm_language_data): Likewise.
2193 (minimal_language_data): Likewise.
2194 * d-lang.c (d_language_data): Likewise.
2195 * f-lang.c (f_printchar): Rename to f_language::printchar.
2196 (f_language_data): Delete la_printchar initializer.
2197 (f_language::printchar): New member function, implementation from
2198 f_printchar.
2199 * go-lang.c (go_language_data): Delete la_printchar initializer.
2200 * language.c (unk_lang_printchar): Delete.
2201 (language_defn::printchar): Define new member function.
2202 (unknown_language_data): Delete la_printchar initializer.
2203 (unknown_language::printchar): New member function.
2204 (auto_language_data): Delete la_printchar initializer.
2205 (auto_language::printchar): New member function.
2206 * language.h (language_data): Delete la_printchar field.
2207 (language_defn::printchar): Declare new member function.
2208 (LA_PRINT_CHAR): Update call to printchar.
2209 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2210 (m2_language::printchar): New member function.
2211 * objc-lang.c (objc_language_data): Delete la_printchar
2212 initializer.
2213 * opencl-lang.c (opencl_language_data): Likewise.
2214 * p-lang.c (pascal_language_data): Delete la_printchar
2215 initializer.
2216 (pascal_language::printchar): New member function.
2217 * rust-lang.c (rust_printchar): Rename to
2218 rust_language::printchar.
2219 (rust_language_data): Delete la_printchar initializer.
2220 (rust_language::printchar): New member function, implementation
2221 from rust_printchar.
2222
2223 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2224
2225 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2226 (ada_language_data): Delete la_emitchar initializer.
2227 (ada_language::emitchar): New member function, implementation from
2228 emit_char.
2229 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2230 (cplus_language_data): Likewise.
2231 (asm_language_data): Likewise.
2232 (minimal_language_data): Likewise.
2233 * d-lang.c (d_language_data): Likewise.
2234 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2235 (f_language_data): Delete la_emitchar initializer.
2236 (f_language::emitchar): New member function, implementation from
2237 f_emit_char.
2238 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2239 * language.c (unk_lang_emit_char): Delete.
2240 (language_defn::emitchar): New member function definition.
2241 (unknown_language_data): Delete la_emitchar initializer.
2242 (unknown_language::emitchar): New member function.
2243 (auto_language_data): Delete la_emitchar initializer.
2244 (auto_language::emitchar): New member function.
2245 * language.h (language_data): Delete la_emitchar field.
2246 (language_defn::emitchar): New member field declaration.
2247 (LA_EMIT_CHAR): Update call to emitchar.
2248 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2249 (m2_language_data): Delete la_emitchar initializer.
2250 (m2_language::emitchar): New member function, implementation from
2251 m2_emit_char.
2252 * objc-lang.c (objc_language_data): Delete la_emitchar
2253 initializer.
2254 * opencl-lang.c (opencl_language_data): Likewise.
2255 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2256 (pascal_language_data): Delete la_emitchar initializer.
2257 (pascal_language::emitchar): New member function, implementation
2258 from pascal_emit_char.
2259 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2260 (rust_language_data): Delete la_emitchar initializer.
2261 (rust_language::emitchar): New member function, implementation
2262 from rust_emitchar.
2263
2264 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2265
2266 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2267 (ada_language_data): Delete la_post_parser initializer.
2268 (ada_language::post_parser): New member function.
2269 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2270 (cplus_language_data): Likewise.
2271 (asm_language_data): Likewise.
2272 (minimal_language_data): Likewise.
2273 * d-lang.c (d_language_data): Likewise.
2274 * f-lang.c (f_language_data): Likewise.
2275 * go-lang.c (go_language_data): Likewise.
2276 * language.c (unknown_language_data): Likewise.
2277 (auto_language_data): Likewise.
2278 * language.h (language_data): Delete la_post_parser field.
2279 (language_defn::post_parser): New member function.
2280 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2281 * objc-lang.c (objc_language_data): Likewise.
2282 * opencl-lang.c (opencl_language_data): Likewise.
2283 * p-lang.c (pascal_language_data): Likewise.
2284 * parse.c (parse_exp_in_context): Update call to post_parser.
2285 (null_post_parser): Delete definition.
2286 * parser-defs.h (null_post_parser): Delete declaration.
2287 * rust-lang.c (rust_language_data): Delete la_post_parser
2288 initializer.
2289
2290 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2291
2292 * ada-lang.c (parse): Rename to ada_language::parser.
2293 (ada_language_data): Delete la_parser initializer.
2294 (ada_language::parser): New member function, implementation from
2295 parse.
2296 * c-lang.c (c_language_data): Delete la_parser initializer.
2297 (cplus_language_data): Likewise.
2298 (asm_language_data): Likewise.
2299 (minimal_language_data): Likewise.
2300 * d-lang.c (d_language_data): Likewise.
2301 (d_language::parser): New member function.
2302 * f-lang.c (f_language_data): Delete la_parser initializer.
2303 (f_language::parser): New member function.
2304 * go-lang.c (go_language_data): Delete la_parser initializer.
2305 (go_language::parser): New member function.
2306 * language.c (unk_lang_parser): Delete.
2307 (language_defn::parser): Define new member function.
2308 (unknown_language_data): Delete la_parser initializer.
2309 (unknown_language::parser): New member function.
2310 (auto_language_data): Delete la_parser initializer.
2311 (auto_language::parser): New member function.
2312 * language.h (language_data): Delete la_parser field.
2313 (language_defn::parser): Declare new member function.
2314 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2315 (m2_language::parser): New member function.
2316 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2317 * opencl-lang.c (opencl_language_data): Likewise.
2318 * p-lang.c (pascal_language_data): Likewise.
2319 (pascal_language::parser): New member function.
2320 * parse.c (parse_exp_in_context): Update call to parser.
2321 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2322 (rust_language::parser): New member function.
2323
2324 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2325
2326 * top.c (print_gdb_configuration): Print --with-python-libdir
2327 configuration value.
2328
2329 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2330
2331 * NEWS: Mention change to the alias command.
2332
2333 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2334
2335 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2336 (alias_command_completer)
2337 (make_alias_options_def_group): New functions.
2338 (alias_opts, alias_option_defs): New struct and array.
2339 (alias_usage_error): Update usage.
2340 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2341 Use option framework.
2342 (_initialize_cli_cmds): Update alias command help.
2343 Update aliases command help.
2344 (show_user):
2345 Add NULL for new default_args lookup_cmd argument.
2346 (valid_command_p): Rename to validate_aliased_command.
2347 Add NULL for new default_args lookup_cmd argument. Verify that the
2348 aliased_command has no default args.
2349 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2350 (lookup_cmd_1, lookup_cmd): New argument default_args.
2351 (add_alias_cmd):
2352 Add NULL for new default_args lookup_cmd argument.
2353 (print_help_for_command): Show default args under the layout
2354 alias some_alias = some_aliased_cmd some_alias_default_arg.
2355 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2356 xfree default_args in destructor.
2357 * cli/cli-script.c (process_next_line, do_define_command):
2358 Add NULL for new default_args lookup_cmd argument.
2359 * command.h: Declare new default_args argument in lookup_cmd
2360 and lookup_cmd_1.
2361 * completer.c (complete_line_internal_1):
2362 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2363 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2364 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2365 Likewise.
2366 * infcmd.c (_initialize_infcmd): Likewise.
2367 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2368 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2369 * python/py-param.c (add_setshow_generic): Likewise.
2370 * remote.c (_initialize_remote): Likewise.
2371 * top.c (execute_command): Prepend default_args if command has some.
2372 (set_verbose):
2373 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2374 * tracepoint.c (validate_actionline, encode_actions_1):
2375 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2376
2377 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2378
2379 * jit.c (jit_read_descriptor): Use bool as the return type.
2380 (jit_breakpoint_re_set_internal): Use bool as the return type.
2381 Invert the return value logic; return true if the jit breakpoint
2382 has been successfully initialized.
2383 (jit_inferior_init): Update the call to
2384 jit_breakpoint_re_set_internal.
2385
2386 2020-06-22 Pedro Alves <palves@redhat.com>
2387
2388 PR gdb/25939
2389 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2390 Use the current inferior instead. Don't return
2391 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2392 wait again.
2393 * sol-thread.c (sol_thread_target::wait): Don't reference
2394 inferior_ptid.
2395 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2396 (sol_update_thread_list_callback): Use the current inferior's pid
2397 instead of inferior_ptid.
2398
2399 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2400
2401 * procfs.c: Cleanup many comments.
2402
2403 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2404 (AFTER_WATCHFLAG): Replace by value.
2405
2406 (MAIN_PROC_NAME_FORMAT): Inline ...
2407 (create_procinfo): ... here.
2408
2409 (procfs_debug_inferior): Remove SYS_exec handling.
2410 (syscall_is_exec): Likewise.
2411 (procfs_set_exec_trap): Likewise.
2412
2413 (syscall_is_lwp_exit): Inline in callers.
2414 (syscall_is_exit): Likewise.
2415 (syscall_is_exec): Likewise.
2416 (syscall_is_lwp_create): Likewise.
2417
2418 (invalidate_cache): Remove #if 0 code.
2419
2420 (make_signal_thread_runnable): Remove.
2421 (procfs_target::resume): Remove #if 0 code.
2422
2423 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2424
2425 PR gdb/25939
2426 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2427 call ...
2428 (procfs_target::create_inferior): ... here.
2429
2430 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2431
2432 * exec.c (validate_exec_file): Ensure the build-id is up to
2433 date by calling reopen_exec_file (that checks file timestamp
2434 to decide to re-read the file).
2435
2436 2020-06-18 Pedro Alves <palves@redhat.com>
2437
2438 PR gdb/25412
2439 * gdbthread.h (delete_thread, delete_thread_silent)
2440 (find_thread_ptid): Update comments.
2441 * thread.c (current_thread_): New global.
2442 (is_current_thread): Move higher, and reimplement.
2443 (inferior_thread): Reimplement.
2444 (set_thread_exited): Use bool. Add assertions.
2445 (add_thread_silent): Simplify thread-reuse handling by always
2446 calling delete_thread.
2447 (delete_thread): Remove intro comment.
2448 (find_thread_ptid): Skip exited threads.
2449 (switch_to_thread_no_regs): Write to current_thread_.
2450 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2451 INFERIOR_PTID. Clear current_thread_.
2452
2453 2020-06-18 Pedro Alves <palves@redhat.com>
2454
2455 * aix-thread.c (pd_update): Use switch_to_thread.
2456
2457 2020-06-18 Pedro Alves <palves@redhat.com>
2458
2459 * ravenscar-thread.c (ravenscar_thread_target): Update.
2460 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2461 (ravenscar_thread_target::add_active_thread): ... this. Don't
2462 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2463 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2464
2465 2020-06-18 Pedro Alves <palves@redhat.com>
2466
2467 * nat/windows-nat.c (current_windows_thread): Remove.
2468 * nat/windows-nat.h (current_windows_thread): Remove.
2469 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2470 Adjust.
2471 (display_selectors): Adjust to fetch the current
2472 windows_thread_info based on inferior_ptid.
2473 (fake_create_process): No longer write to current_windows_thread.
2474 (windows_nat_target::get_windows_debug_event):
2475 Don't set inferior_ptid or current_windows_thread.
2476 (windows_nat_target::wait): Adjust to not rely on
2477 current_windows_thread.
2478 (do_initial_windows_stuff): Now a method of windows_nat_target.
2479 Switch to the last_ptid thread.
2480 (windows_nat_target::attach): Adjust.
2481 (windows_nat_target::detach): Use switch_to_no_thread instead of
2482 writing to inferior_ptid directly.
2483 (windows_nat_target::create_inferior): Adjust.
2484
2485 2020-06-18 Pedro Alves <palves@redhat.com>
2486
2487 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2488
2489 2020-06-18 Pedro Alves <palves@redhat.com>
2490
2491 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2492 after creating it, instead of writing to inferior_ptid. Don't
2493 write to inferior_ptid.
2494
2495 2020-06-18 Pedro Alves <palves@redhat.com>
2496
2497 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2498
2499 2020-06-18 Pedro Alves <palves@redhat.com>
2500
2501 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2502 it, instead of writing to inferior_ptid.
2503
2504 2020-06-18 Pedro Alves <palves@redhat.com>
2505
2506 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2507 to inferior_ptid.
2508
2509 2020-06-18 Pedro Alves <palves@redhat.com>
2510
2511 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2512 instead of writing to inferior_ptid directly.
2513
2514 2020-06-18 Pedro Alves <palves@redhat.com>
2515
2516 * corelow.c (core_target::close): Use switch_to_no_thread instead
2517 of writing to inferior_ptid directly.
2518 (add_to_thread_list, core_target_open): Use switch_to_thread
2519 instead of writing to inferior_ptid directly.
2520
2521 2020-06-18 Pedro Alves <palves@redhat.com>
2522
2523 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2524 inferior_ptid.
2525 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2526 inferior_ptid.
2527 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2528 inferior_ptid directly.
2529 (darwin_nat_target::init_thread_list): Switch to thread, instead
2530 of writing to inferior_ptid.
2531 (darwin_nat_target::attach): Don't write to inferior_ptid.
2532 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2533
2534 2020-06-18 Pedro Alves <palves@redhat.com>
2535
2536 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2537 thread.
2538 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2539 Instead use switch_to_thread.
2540 (gnu_nat_target::detach): Use switch_to_no_thread
2541 instead of writing to inferior_ptid directly. Used passed-in
2542 inferior instead of looking up the inferior by pid.
2543
2544 2020-06-18 Pedro Alves <palves@redhat.com>
2545
2546 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2547 inferior_ptid.
2548
2549 2020-06-18 Pedro Alves <palves@redhat.com>
2550
2551 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2552 inferior_ptid.
2553 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2554 thread.
2555 (nto_procfs_target::detach): Avoid referencing
2556 inferior_ptid. Use switch_to_no_thread instead of writing to
2557 inferior_ptid directly.
2558 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2559 instead of writing to inferior_ptid directly.
2560 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2561 to thread.
2562
2563 2020-06-18 Pedro Alves <palves@redhat.com>
2564
2565 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2566 after creating it, instead of writing to inferior_ptid.
2567 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2568 to inferior_ptid directly.
2569 (gdbsim_target::wait): Don't write to inferior_ptid.
2570
2571 2020-06-18 Pedro Alves <palves@redhat.com>
2572
2573 * remote.c (remote_target::remote_notice_new_inferior): Use
2574 switch_to_thread instead of writing to inferior_ptid directly.
2575 (remote_target::add_current_inferior_and_thread): Use
2576 switch_to_no_thread instead of writing to inferior_ptid directly.
2577 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2578 and switch_to_thread instead of using set_current_inferior or
2579 writing to inferior_ptid directly.
2580
2581 2020-06-18 Pedro Alves <palves@redhat.com>
2582
2583 * tracectf.c (ctf_target_open): Switch to added thread instead of
2584 writing to inferior_ptid directly.
2585 (ctf_target::close): Use switch_to_no_thread instead of writing to
2586 inferior_ptid directly.
2587
2588 2020-06-18 Pedro Alves <palves@redhat.com>
2589
2590 * tracefile-tfile.c (tfile_target_open): Don't write to
2591 inferior_ptid directly, instead switch to added thread.
2592 (tfile_target::close): Use switch_to_no_thread instead of writing
2593 to inferior_ptid directly.
2594
2595 2020-06-18 Pedro Alves <palves@redhat.com>
2596
2597 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2598 (procfs_target::detach): Use switch_to_no_thread
2599 instead of writing to inferior_ptid directly.
2600 (do_attach): Change return type to void. Switch to the added
2601 thread.
2602 (procfs_target::create_inferior): Switch to the added thread.
2603 (procfs_do_thread_registers): Don't write to inferior_ptid.
2604
2605 2020-06-18 Pedro Alves <palves@redhat.com>
2606
2607 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2608 of writing to inferior_ptid.
2609 (scoped_restore_exited_inferior): Delete.
2610 (handle_vfork_child_exec_or_exit): Simplify using
2611 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2612 instead of writing to inferior_ptid.
2613 (THREAD_STOPPED_BY): Delete.
2614 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2615 (thread_stopped_by_hw_breakpoint): Delete.
2616 (save_waitstatus): Use
2617 scoped_restore_current_thread+switch_to_thread, and call
2618 target_stopped_by_watchpoint instead of
2619 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2620 instead of thread_stopped_by_sw_breakpoint, and
2621 target_stopped_by_hw_breakpoint instead of
2622 thread_stopped_by_hw_breakpoint.
2623 (handle_inferior_event)
2624 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2625 inferior_ptid directly, nor
2626 set_current_inferior/set_current_program_space. Use
2627 switch_to_thread / switch_to_inferior_no_thread instead.
2628
2629 2020-06-18 Pedro Alves <palves@redhat.com>
2630
2631 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2632 instead of writing to inferior_ptid.
2633
2634 2020-06-18 Pedro Alves <palves@redhat.com>
2635
2636 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2637 added thread.
2638 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2639 to the added thread.
2640 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2641 instead of writing to inferior_ptid.
2642
2643 2020-06-18 Pedro Alves <palves@redhat.com>
2644
2645 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2646 (register_to_value_test): Mock a program_space too. Heap-allocate
2647 the address space. Don't write to inferior_ptid. Use
2648 switch_to_thread instead.
2649
2650 2020-06-18 Pedro Alves <palves@redhat.com>
2651
2652 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2653 Delete.
2654 (find_signalled_thread()): New, factored out from
2655 linux_make_corefile_notes and adjusted to handle exited threads.
2656 (linux_make_corefile_notes): Adjust to use the new
2657 find_signalled_thread.
2658
2659 2020-06-18 Pedro Alves <palves@redhat.com>
2660
2661 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2662 of saving/restoring inferior_ptid.
2663
2664 2020-06-17 Tom Tromey <tom@tromey.com>
2665
2666 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2667 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2668 declare.
2669 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2670
2671 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
2672
2673 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2674 of partial symtabs.
2675
2676 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2677
2678 * regformats/reg-arm.dat: Remove.
2679 * regformats/reg-bfin.dat: Remove.
2680 * regformats/reg-cris.dat: Remove.
2681 * regformats/reg-crisv32.dat: Remove.
2682 * regformats/reg-m32r.dat: Remove.
2683 * regformats/reg-tilegx.dat: Remove.
2684 * regformats/reg-tilegx32.dat: Remove.
2685
2686 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2687
2688 * features/Makefile (WHICH): Remove arm files.
2689 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2690 * regformats/arm/arm-with-neon.dat: Remove.
2691 * regformats/arm/arm-with-vfpv2.dat: Remove.
2692 * regformats/arm/arm-with-vfpv3.dat: Remove.
2693
2694 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2695
2696 * features/Makefile (XMLTOC): Remove rx.xml.
2697
2698 2020-06-17 Pedro Alves <palves@redhat.com>
2699
2700 * gdbthread.h (thread_control_state) <trap_expected> Update
2701 comments.
2702
2703 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2704
2705 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2706 ada_language::lookup_symbol_nonlocal.
2707 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2708 (ada_language::lookup_symbol_nonlocal): New member function,
2709 implementation from ada_lookup_symbol_nonlocal.
2710 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2711 initializer.
2712 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2713 initializer.
2714 (cplus_language::lookup_symbol_nonlocal): New member function.
2715 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2716 (minimal_language_data) Likewise.
2717 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2718 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2719 initializer.
2720 (d_language::lookup_symbol_nonlocal): New member function.
2721 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2722 initializer.
2723 (f_language::lookup_symbol_nonlocal): New member function.
2724 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2725 initializer.
2726 * language.c (unknown_language_data): Likewise.
2727 (auto_language_data): Likewise.
2728 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2729 field.
2730 (language_defn::lookup_symbol_nonlocal): New member function.
2731 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2732 initializer.
2733 * objc-lang.c (objc_language_data): Likewise.
2734 * opencl-lang.c (opencl_language_data): Likewise.
2735 * p-lang.c (pascal_language_data): Likewise.
2736 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2737 rust_language::lookup_symbol_nonlocal.
2738 (rust_language_data): Delete la_lookup_symbol_nonlocal
2739 initializer.
2740 (rust_language::lookup_symbol_nonlocal): New member function,
2741 implementation from rust_lookup_symbol_nonlocal.
2742 * symtab.c (lookup_symbol_aux): Update call to
2743 lookup_symbol_nonlocal.
2744 (basic_lookup_symbol_nonlocal): Rename to...
2745 (language_defn::lookup_symbol_nonlocal): ...this, and update
2746 header comment. Remove language_defn parameter, and replace with
2747 uses of `this'.
2748 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2749
2750 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2751
2752 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2753 initializer.
2754 (ada_language::value_print_inner): New member function.
2755 * c-lang.c (c_language_data): Delete la_value_print_inner
2756 initializer.
2757 (cplus_language_data): Likewise.
2758 (asm_language_data): Likewise.
2759 (minimal_language_data): Likewise.
2760 * d-lang.c (d_language_data): Likewise.
2761 (d_language::value_print_inner): New member function.
2762 * f-lang.c (f_language_data): Delete la_value_print_inner
2763 initializer.
2764 (f_language::value_print_inner): New member function.
2765 * f-lang.h (f_value_print_innner): Rename to...
2766 (f_value_print_inner): ...this (note spelling of 'inner').
2767 * f-valprint.c (f_value_print_innner): Rename to...
2768 (f_value_print_inner): ...this (note spelling of 'inner').
2769 * go-lang.c (go_language_data): Delete la_value_print_inner
2770 initializer.
2771 (go_language::value_print_inner): New member function.
2772 * language.c (language_defn::value_print_inner): Define new member
2773 function.
2774 (unk_lang_value_print_inner): Delete.
2775 (unknown_language_data): Delete la_value_print_inner initializer.
2776 (unknown_language::value_print_inner): New member function.
2777 (auto_language_data): Delete la_value_print_inner initializer.
2778 (auto_language::value_print_inner): New member function.
2779 * language.h (language_data): Delete la_value_print_inner field.
2780 (language_defn::value_print_inner): Delcare new member function.
2781 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2782 initializer.
2783 (m2_language::value_print_inner): New member function.
2784 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2785 initializer.
2786 * opencl-lang.c (opencl_language_data): Likewise.
2787 * p-lang.c (pascal_language_data): Likewise.
2788 (pascal_language::value_print_inner): New member function.
2789 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2790 initializer.
2791 (rust_language::value_print_inner): New member function.
2792 * valprint.c (do_val_print): Update call to value_print_inner.
2793
2794 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2795
2796 * ada-lang.c (ada_language_data): Delete la_value_print
2797 initializer.
2798 (ada_language::value_print): New member function.
2799 * c-lang.c (c_language_data): Delete la_value_print initializer.
2800 (cplus_language_data): Likewise.
2801 (asm_language_data): Likewise.
2802 (minimal_language_data): Likewise.
2803 * d-lang.c (d_language_data): Likewise.
2804 * f-lang.c (f_language_data): Likewise.
2805 * go-lang.c (go_language_data): Likewise.
2806 * language.c (unk_lang_value_print): Delete.
2807 (language_defn::value_print): Define new member function.
2808 (unknown_language_data): Delete la_value_print initializer.
2809 (unknown_language::value_print): New member function.
2810 (auto_language_data): Delete la_value_print initializer.
2811 (auto_language::value_print): New member function.
2812 * language.h (language_data): Delete la_value_print field.
2813 (language_defn::value_print): Declare new member function.
2814 (LA_VALUE_PRINT): Update call to value_print.
2815 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2816 * objc-lang.c (objc_language_data): Likewise.
2817 * opencl-lang.c (opencl_language_data): Likewise.
2818 * p-lang.c (pascal_language_data): Likewise.
2819 (pascal_language::value_print): New member function.
2820 * rust-lang.c (rust_language_data): Delete la_value_print
2821 initializer.
2822
2823 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2824
2825 * ada-lang.c (ada_watch_location_expression): Rename to
2826 ada_language::watch_location_expression.
2827 (ada_language_data): Delete la_watch_location_expression
2828 initializer.
2829 (ada_language::watch_location_expression): New member function,
2830 implementation from ada_watch_location_expression.
2831 * breakpoint.c (watch_command_1): Update call to
2832 watch_location_expression.
2833 * c-lang.c (c_watch_location_expression): Rename to
2834 language_defn::watch_location_expression.
2835 (c_language_data): Delete la_watch_location_expression
2836 initializer.
2837 (cplus_language_data): Likewise.
2838 (asm_language_data): Likewise.
2839 (minimal_language_data): Likewise.
2840 * c-lang.h (c_watch_location_expression): Delete declaration.
2841 * d-lang.c (d_language_data): Delete la_watch_location_expression
2842 initializer.
2843 * f-lang.c (f_language_data): Likewise.
2844 * go-lang.c (go_language_data): Likewise.
2845 * language.c (language_defn::watch_location_expression): Member
2846 function implementation from c_watch_location_expression.
2847 (unknown_language_data): Delete la_watch_location_expression
2848 initializer.
2849 (auto_language_data): Likewise.
2850 * language.h (language_data): Delete la_watch_location_expression
2851 field.
2852 (language_defn::watch_location_expression): Declare new member
2853 function.
2854 * m2-lang.c (m2_language_data): Delete
2855 la_watch_location_expression initializer.
2856 * objc-lang.c (objc_language_data): Likewise.
2857 * opencl-lang.c (opencl_language_data): Likewise.
2858 * p-lang.c (pascal_language_data): Likewise.
2859 * rust-lang.c (rust_watch_location_expression): Rename to
2860 rust_language::watch_location_expression.
2861 (rust_language_data): Delete la_watch_location_expression
2862 initializer.
2863 (rust_language::watch_location_expression): New member function,
2864 implementation from rust_watch_location_expression.
2865
2866 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2867
2868 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2869 ada_language::collect_symbol_completion_matches.
2870 (ada_language_data): Delete la_collect_symbol_completion_matches
2871 initializer.
2872 (ada_language::collect_symbol_completion_matches): New member
2873 function, implementation from
2874 ada_collect_symbol_completion_matches.
2875 * c-lang.c (c_language_data): Delete
2876 la_collect_symbol_completion_matches initializer.
2877 (cplus_language_data): Likewise.
2878 (asm_language_data): Likewise.
2879 (minimal_language_data): Likewise.
2880 * d-lang.c (d_language_data): Likewise.
2881 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2882 f_language::collect_symbol_completion_matches.
2883 (f_language_data): Delete la_collect_symbol_completion_matches
2884 initializer.
2885 (f_language::collect_symbol_completion_matches) New member
2886 function, implementation from f_collect_symbol_completion_matches.
2887 * go-lang.c (go_language_data): Delete
2888 la_collect_symbol_completion_matches initializer.
2889 * language.c (unknown_language_data): Likewise.
2890 (auto_language_data): Likewise.
2891 * language.h (language_data): Delete
2892 la_collect_symbol_completion_matches field.
2893 (language_defn::collect_symbol_completion_matches): New member
2894 function.
2895 * m2-lang.c (m2_language_data): Delete
2896 la_collect_symbol_completion_matches initializer.
2897 * objc-lang.c (objc_language_data): Likewise.
2898 * opencl-lang.c (opencl_language_data): Likewise.
2899 * p-lang.c (pascal_language_data): Likewise.
2900 * rust-lang.c (rust_language_data): Likewise.
2901 * symtab.c (default_collect_symbol_completion_matches): Delete.
2902 (collect_symbol_completion_matches): Update call to
2903 collect_symbol_completion_matches.
2904 (collect_symbol_completion_matches_type): Likewise.
2905 * symtab.h (default_collect_symbol_completion_matches): Delete
2906 declaration.
2907
2908 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2909
2910 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2911 (ada_language_data): Delete la_word_break_characters initializer.
2912 (ada_language::word_break_characters): New member function.
2913 * c-lang.c (c_language_data): Delete la_word_break_characters
2914 initializer.
2915 (cplus_language_data): Likewise.
2916 (asm_language_data): Likewise.
2917 (minimal_language_data): Likewise.
2918 * completer.c: Update global comment.
2919 (advance_to_expression_complete_word_point): Update call to
2920 word_break_characters.
2921 (complete_files_symbols): Likewise.
2922 (complete_line_internal_1): Likewise.
2923 (default_completer_handle_brkchars): Likewise.
2924 (skip_quoted_chars): Likewise.
2925 * d-lang.c (d_language_data): Delete la_word_break_characters
2926 initializer.
2927 * f-lang.c (f_word_break_characters): Delete.
2928 (f_language_data): Delete la_word_break_characters initializer.
2929 (f_language::word_break_characters): New member function.
2930 * go-lang.c (go_language_data): Delete la_word_break_characters
2931 initializer.
2932 * language.c (unknown_language_data): Likewise.
2933 (auto_language_data): Likewise.
2934 * language.h (default_word_break_characters): Move declaration to
2935 earlier in the file.
2936 (language_data): Delete la_word_break_characters field.
2937 (language_defn::word_break_characters): New member function.
2938 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2939 initializer.
2940 * objc-lang.c (objc_language_data): Likewise.
2941 * opencl-lang.c (opencl_language_data): Likewise.
2942 * p-lang.c (pascal_language_data): Likewise.
2943 * rust-lang.c (rust_language_data): Likewise.
2944
2945 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2946
2947 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2948 (ada_language_data): Delete la_get_symbol_name_matcher
2949 initializer.
2950 (language_defn::get_symbol_name_matcher_inner): New member
2951 function.
2952 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2953 initializer.
2954 (cplus_language_data): Likewise.
2955 (cplus_language::get_symbol_name_matcher_inner): New member
2956 function.
2957 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2958 (minimal_language_data): Likewise.
2959 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2960 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2961 initializer.
2962 * dictionary.c (iter_match_first_hashed): Update call to
2963 get_symbol_name_matcher.
2964 (iter_match_next_hashed): Likewise.
2965 (iter_match_next_linear): Likewise.
2966 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2967 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2968 initializer.
2969 (f_language::get_symbol_name_matcher_inner): New member function.
2970 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2971 initializer.
2972 * language.c (default_symbol_name_matcher): Update header comment,
2973 make static.
2974 (language_defn::get_symbol_name_matcher): New definition.
2975 (language_defn::get_symbol_name_matcher_inner): Likewise.
2976 (get_symbol_name_matcher): Delete.
2977 (unknown_language_data): Delete la_get_symbol_name_matcher
2978 initializer.
2979 (auto_language_data): Likewise.
2980 * language.h (language_data): Delete la_get_symbol_name_matcher
2981 field.
2982 (language_defn::get_symbol_name_matcher): New member function.
2983 (language_defn::get_symbol_name_matcher_inner): Likewise.
2984 (default_symbol_name_matcher): Delete declaration.
2985 * linespec.c (find_methods): Update call to
2986 get_symbol_name_matcher.
2987 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2988 initializer.
2989 * minsyms.c (lookup_minimal_symbol): Update call to
2990 get_symbol_name_matcher.
2991 (iterate_over_minimal_symbols): Likewise.
2992 * objc-lang.c (objc_language_data): Delete
2993 la_get_symbol_name_matcher initializer.
2994 * opencl-lang.c (opencl_language_data): Likewise.
2995 * p-lang.c (pascal_language_data): Likewise.
2996 * psymtab.c (psymbol_name_matches): Update call to
2997 get_symbol_name_matcher.
2998 * rust-lang.c (rust_language_data): Delete
2999 la_get_symbol_name_matcher initializer.
3000 * symtab.c (symbol_matches_search_name): Update call to
3001 get_symbol_name_matcher.
3002 (compare_symbol_name): Likewise.
3003
3004 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3005
3006 * ada-lang.c (ada_language_data): Delete la_compute_program
3007 initializer.
3008 * c-lang.c (c_language_data): Likewise.
3009 (c_language::compute_program): New member function.
3010 (cplus_language_data): Delete la_compute_program initializer.
3011 (cplus_language::compute_program): New member function.
3012 (asm_language_data): Delete la_compute_program initializer.
3013 (minimal_language_data): Likewise.
3014 * c-lang.h (c_compute_program): Update comment.
3015 (cplus_compute_program): Likewise.
3016 * compile/compile-c-support.c (c_compute_program): Likewise.
3017 (cplus_compute_program): Likewise.
3018 * compile/compile.c (compile_to_object): Update call to
3019 la_compute_program.
3020 * d-lang.c (d_language_data): Delete la_compute_program
3021 initializer.
3022 * f-lang.c (f_language_data): Likewise.
3023 * go-lang.c (go_language_data): Likewise.
3024 * language.c (unknown_language_data): Likewise.
3025 (auto_language_data): Likewise.
3026 * language.h (language_data): Delete la_compute_program field.
3027 (language_defn::compute_program): New member function.
3028 * m2-lang.c (m2_language_data): Delete la_compute_program
3029 initializer.
3030 * objc-lang.c (objc_language_data): Likewise.
3031 * opencl-lang.c (opencl_language_data): Likewise.
3032 * p-lang.c (pascal_language_data): Likewise.
3033 * rust-lang.c (rust_language_data): Likewise.
3034
3035 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3036
3037 * ada-lang.c (ada_language_data) Delete
3038 la_class_name_from_physname initializer.
3039 * c-lang.c (c_language_data): Likewise.
3040 (cplus_language_data): Likewise.
3041 (cplus_language::class_name_from_physname): New member function.
3042 (asm_language_data): Delete la_class_name_from_physname
3043 initializer.
3044 (minimal_language_data): Likewise.
3045 * d-lang.c (d_language_data): Likewise.
3046 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
3047 method on language_defn class.
3048 (guess_full_die_structure_name): Likewise.
3049 * f-lang.c (f_language_data): Delete la_class_name_from_physname
3050 initializer.
3051 * go-lang.c (go_language_data): Likewise.
3052 * language.c (language_class_name_from_physname): Delete.
3053 (unk_lang_class_name): Delete.
3054 (unknown_language_data): Delete la_class_name_from_physname
3055 initializer.
3056 (auto_language_data): Likewise.
3057 * language.h (language_data): Delete la_class_name_from_physname
3058 field.
3059 (language_defn::class_name_from_physname): New function.
3060 (language_class_name_from_physname): Delete declaration.
3061 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
3062 initializer.
3063 * objc-lang.c (objc_language_data): Likewise.
3064 * opencl-lang.c (opencl_language_data): Likewise.
3065 * p-lang.c (pascal_language_data): Likewise.
3066 * rust-lang.c (rust_language_data): Likewise.
3067
3068 2020-06-16 Tom Tromey <tom@tromey.com>
3069
3070 * tui/tui-data.h (STATUS_NAME): New macro.
3071 * tui/tui-layout.c (tui_remove_some_windows)
3072 (initialize_known_windows, tui_register_window)
3073 (tui_layout_split::remove_windows, initialize_layouts)
3074 (tui_new_layout_command): Don't use hard-coded window names.
3075
3076 2020-06-16 Tom Tromey <tom@tromey.com>
3077
3078 PR tui/25348:
3079 * tui/tui.c (tui_ensure_readline_initialized): Rename from
3080 tui_initialize_readline. Only run once. Call rl_initialize.
3081 * tui/tui.h (tui_ensure_readline_initialized): Rename from
3082 tui_initialize_readline.
3083 * tui/tui-io.c (tui_setup_io): Call
3084 tui_ensure_readline_initialized.
3085 * tui/tui-interp.c (tui_interp::init): Update.
3086
3087 2020-06-16 Tom Tromey <tom@tromey.com>
3088
3089 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
3090 Also preserve the status window.
3091
3092 2020-06-16 Tom Tromey <tom@tromey.com>
3093
3094 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
3095 where m_window==nullptr.
3096
3097 2020-06-15 Tom Tromey <tromey@adacore.com>
3098
3099 * windows-nat.c (windows_nat::handle_output_debug_string):
3100 Update.
3101 (windows_nat::handle_ms_vc_exception): Update.
3102 * target.h (target_read_string): Change API.
3103 * target.c (target_read_string): Change API.
3104 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
3105 Update.
3106 * solib-frv.c (frv_current_sos): Update.
3107 * solib-dsbt.c (dsbt_current_sos): Update.
3108 * solib-darwin.c (darwin_current_sos): Update.
3109 * linux-thread-db.c (inferior_has_bug): Update.
3110 * expprint.c (print_subexp_standard): Update.
3111 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
3112 (ada_exception_message_1): Update.
3113
3114 2020-06-15 Tom Tromey <tromey@adacore.com>
3115
3116 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
3117
3118 2020-06-15 Tom Tromey <tromey@adacore.com>
3119
3120 * valprint.c (read_string): Update comment.
3121 * target.c (MIN): Remove.
3122 (target_read_string): Rewrite.
3123
3124 2020-06-15 Tom Tromey <tromey@adacore.com>
3125
3126 * corefile.c (read_memory_string): Remove.
3127 * ada-valprint.c (ada_value_print_ptr): Update.
3128 * ada-lang.h (ada_tag_name): Change return type.
3129 * ada-lang.c (type_from_tag): Update.
3130 (ada_tag_name_from_tsd): Change return type. Use
3131 target_read_string.
3132 (ada_tag_name): Likewise.
3133 * gdbcore.h (read_memory_string): Don't declare.
3134
3135 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
3136
3137 * symtab.c (rbreak_command): Ignore Windows drive colon.
3138
3139 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
3140
3141 * NEWS: Mention removed GDBserver host support.
3142
3143 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
3144
3145 * features/riscv/rebuild-csr-xml.sh: Updated.
3146
3147 2020-06-11 Tom Tromey <tom@tromey.com>
3148
3149 PR gdb/18318:
3150 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3151
3152 2020-06-09 Jonny Grant <jg@jguk.org>
3153 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3154
3155 * main.c (captured_main_1): Don't print new line after help.
3156 (print_gdb_help): add mailing list and IRC channel information
3157 to --help. Add new lines between items in the footer. Remove
3158 quotes around bug url.
3159
3160 2020-06-11 Keith Seitz <keiths@redhat.com>
3161
3162 PR gdb/21356
3163 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3164 Resolve typedefs for type length calculations.
3165
3166 2020-06-10 Tom de Vries <tdevries@suse.de>
3167
3168 PR ada/24713
3169 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3170 (write_psymbols): Enable .gdb_index for ada.
3171 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3172 ada.
3173
3174 2020-06-10 Tom de Vries <tdevries@suse.de>
3175
3176 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3177 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3178 namei" instead of "const char *name" argument.
3179 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3180 dw2_symtab_iter_init.
3181
3182 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3183
3184 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3185 to use type::field and field::type instead.
3186
3187 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3188
3189 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3190 to use field::type instead.
3191
3192 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3193
3194 * gdbtypes.h (struct field) <type, set_type>: New methods.
3195 Rename `type` field to...
3196 <m_type>: ... this. Change references throughout to use type or
3197 set_type methods.
3198 (FIELD_TYPE): Use field::type. Change call sites that modify
3199 the field's type to use field::set_type instead.
3200
3201 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3202
3203 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3204 to use type::index_type instead.
3205
3206 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3207
3208 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3209 methods.
3210 (TYPE_INDEX_TYPE): Use type::index_type.
3211 * gdbtypes.c (create_array_type_with_stride): Likewise.
3212
3213 2020-06-07 Tom Tromey <tom@tromey.com>
3214
3215 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3216 parameter.
3217 (generic_value_print): Update.
3218
3219 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3220
3221 Revert commit 982a38f60b0.
3222 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3223
3224 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3225
3226 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3227 avoid use after free.
3228
3229 2020-06-05 Tom de Vries <tdevries@suse.de>
3230
3231 * NEWS: Fix typos.
3232
3233 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
3234
3235 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3236 the per_bfd object.
3237 (dwarf2_read_debug_names): Likewise.
3238 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3239 object when re-using a per_bfd object with an index.
3240
3241 2020-06-03 Tom de Vries <tdevries@suse.de>
3242
3243 PR symtab/26046
3244 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3245 children for C++.
3246 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3247 DW_TAG_subprogram.
3248
3249 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3250
3251 * ada-lang.c (ada_language_data): Delete skip_trampoline
3252 initializer.
3253 * c-lang.c (c_language_data): Likewise.
3254 (cplus_language_data): Likewise.
3255 (cplus_language::skip_trampoline): New member function.
3256 (asm_language_data): Delete skip_trampoline initializer.
3257 (minimal_language_data): Likewise.
3258 * d-lang.c (d_language_data): Likewise.
3259 * f-lang.c (f_language_data): Likewise.
3260 * go-lang.c (go_language_data): Likewise.
3261 * language.c (unk_lang_trampoline): Delete function.
3262 (skip_language_trampoline): Update.
3263 (unknown_language_data): Delete skip_trampoline initializer.
3264 (auto_language_data): Likewise.
3265 * language.h (language_data): Delete skip_trampoline field.
3266 (language_defn::skip_trampoline): New function.
3267 * m2-lang.c (m2_language_data): Delete skip_trampoline
3268 initializer.
3269 * objc-lang.c (objc_skip_trampoline): Delete function, move
3270 implementation to objc_language::skip_trampoline.
3271 (objc_language_data): Delete skip_trampoline initializer.
3272 (objc_language::skip_trampoline): New member function with
3273 implementation from objc_skip_trampoline.
3274 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3275 initializer.
3276 * p-lang.c (pascal_language_data): Likewise.
3277 * rust-lang.c (rust_language_data): Likewise.
3278
3279 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3280
3281 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3282 (ada_language::demangle): New member function.
3283 * c-lang.c (c_language_data): Delete la_demangle initializer.
3284 (cplus_language_data): Delete la_demangle initializer.
3285 (cplus_language::demangle): New member function.
3286 (asm_language_data): Delete la_demangle initializer.
3287 (minimal_language_data): Delete la_demangle initializer.
3288 * d-lang.c (d_language_data): Delete la_demangle initializer.
3289 (d_language::demangle): New member function.
3290 * f-lang.c (f_language_data): Delete la_demangle initializer.
3291 (f_language::demangle): New member function.
3292 * go-lang.c (go_language_data): Delete la_demangle initializer.
3293 (go_language::demangle): New member function.
3294 * language.c (language_demangle): Update.
3295 (unk_lang_demangle): Delete.
3296 (unknown_language_data): Delete la_demangle initializer.
3297 (unknown_language::demangle): New member function.
3298 (auto_language_data): Delete la_demangle initializer.
3299 (auto_language::demangle): New member function.
3300 * language.h (language_data): Delete la_demangle field.
3301 (language_defn::demangle): New function.
3302 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3303 * objc-lang.c (objc_language_data): Delete la_demangle
3304 initializer.
3305 (objc_language::demangle): New member function.
3306 * opencl-lang.c (opencl_language_data): Delete la_demangle
3307 initializer.
3308 * p-lang.c (pascal_language_data): Likewise.
3309 * rust-lang.c (rust_language_data): Likewise.
3310 (rust_language::demangle): New member function.
3311
3312 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3313
3314 * ada-lang.c (ada_language_data): Delete la_print_type
3315 initializer.
3316 (ada_language::print_type): New member function.
3317 * c-lang.c (c_language_data): Delete la_print_type initializer.
3318 (c_language::print_type): New member function.
3319 (cplus_language_data): Delete la_print_type initializer.
3320 (cplus_language::print_type): New member function.
3321 (asm_language_data): Delete la_print_type initializer.
3322 (asm_language::print_type): New member function.
3323 (minimal_language_data): Delete la_print_type initializer.
3324 (minimal_language::print_type): New member function.
3325 * d-lang.c (d_language_data): Delete la_print_type initializer.
3326 (d_language::print_type): New member function.
3327 * f-lang.c (f_language_data): Delete la_print_type initializer.
3328 (f_language::print_type): New member function.
3329 * go-lang.c (go_language_data): Delete la_print_type initializer.
3330 (go_language::print_type): New member function.
3331 * language.c (unk_lang_print_type): Delete.
3332 (unknown_language_data): Delete la_print_type initializer.
3333 (unknown_language::print_type): New member function.
3334 (auto_language_data): Delete la_print_type initializer.
3335 (auto_language::print_type): New member function.
3336 * language.h (language_data): Delete la_print_type field.
3337 (language_defn::print_type): New function.
3338 (LA_PRINT_TYPE): Update.
3339 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3340 (m2_language::print_type): New member function.
3341 * objc-lang.c (objc_language_data): Delete la_print_type
3342 initializer.
3343 (objc_language::print_type): New member function.
3344 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3345 to opencl_language::print_type.
3346 (opencl_language_data): Delete la_print_type initializer.
3347 (opencl_language::print_type): New member function, implementation
3348 from opencl_print_type.
3349 * p-lang.c (pascal_language_data): Delete la_print_type
3350 initializer.
3351 (pascal_language::print_type): New member function.
3352 * rust-lang.c (rust_print_type): Delete, implementation moved to
3353 rust_language::print_type.
3354 (rust_language_data): Delete la_print_type initializer.
3355 (rust_language::print_type): New member function, implementation
3356 from rust_print_type.
3357
3358 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3359
3360 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3361 implementation moves to...
3362 (ada_language::sniff_from_mangled_name): ...here. Update return
3363 type.
3364 (ada_language_data): Delete la_sniff_from_mangled_name
3365 initializer.
3366 * c-lang.c (c_language_data): Likewise.
3367 (cplus_language_data): Likewise.
3368 (cplus_language::sniff_from_mangled_name): New member function,
3369 implementation taken from gdb_sniff_from_mangled_name.
3370 (asm_language_data): Delete la_sniff_from_mangled_name
3371 initializer.
3372 (minimal_language_data): Likewise.
3373 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3374 implementation moves to cplus_language::sniff_from_mangled_name.
3375 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3376 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3377 moves to...
3378 (d_language::sniff_from_mangled_name): ...here.
3379 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3380 * f-lang.c (f_language_data): Likewise.
3381 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3382 moves to...
3383 (go_language::sniff_from_mangled_name): ...here.
3384 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3385 * language.c (language_sniff_from_mangled_name): Delete.
3386 (unknown_language_data): Delete la_sniff_from_mangled_name
3387 initializer.
3388 (auto_language_data): Likewise.
3389 * language.h (language_data): Delete la_sniff_from_mangled_name
3390 field.
3391 (language_defn::sniff_from_mangled_name): New function.
3392 (language_sniff_from_mangled_name): Delete declaration.
3393 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3394 field.
3395 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3396 implementation moves to...
3397 (objc_language::sniff_from_mangled_name): ...here.
3398 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3399 * opencl-lang.c (opencl_language_data): Likewise.
3400 * p-lang.c (pascal_language_data): Likewise.
3401 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3402 implementation moves to...
3403 (rust_language::sniff_from_mangled_name): ...here.
3404 (rust_language_data): Delete la_sniff_from_mangled_name
3405 initializer.
3406 * symtab.c (symbol_find_demangled_name): Call
3407 sniff_from_mangled_name member function.
3408
3409 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3410
3411 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3412 initializer.
3413 * c-lang.c (c_language_data): Likewise.
3414 (cplus_language_data): Likewise.
3415 (cplus_language::search_name_hash): New member function.
3416 (asm_language_data): Delete la_search_name_hash initializer.
3417 (minimal_language_data): Likewise.
3418 * d-lang.c (d_language_data): Likewise.
3419 * dictionary.c (default_search_name_hash): Rename to...
3420 (language_defn::search_name_hash): ...this.
3421 * f-lang.c (f_language_data): Likewise.
3422 (f_language::search_name_hash): New member function.
3423 * go-lang.c (go_language_data): Delete la_search_name_hash
3424 initializer.
3425 * language.c (unknown_language_data): Likewise.
3426 (auto_language_data): Likewise.
3427 * language.h (struct language_data): Delete la_search_name_hash
3428 field.
3429 (language_defn::search_name_hash): Declare new member function.
3430 (default_search_name_hash): Delete declaration.
3431 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3432 initializer.
3433 * objc-lang.c (objc_language_data): Likewise.
3434 * opencl-lang.c (opencl_language_data): Likewise.
3435 * p-lang.c (pascal_language_data): Likewise.
3436 * rust-lang.c (rust_language_data): Likewise.
3437 * symtab.c (search_name_hash): Update call.
3438
3439 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3440
3441 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3442 initializer.
3443 * c-lang.c (class compile_instance): Declare.
3444 (c_language_data): Delete la_get_compile_instance initializer.
3445 (c_language::get_compile_instance): New member function.
3446 (cplus_language_data): Delete la_get_compile_instance initializer.
3447 (cplus_language::get_compile_instance): New member function.
3448 (asm_language_data): Delete la_get_compile_instance initializer.
3449 (minimal_language_data): Likewise.
3450 * c-lang.h (c_get_compile_context): Update comment.
3451 (cplus_get_compile_context): Update comment.
3452 * compile/compile.c (compile_to_object): Update calls, don't rely
3453 on function pointer being NULL.
3454 * d-lang.c (d_language_data): Delete la_get_compile_instance
3455 initializer.
3456 * f-lang.c (f_language_data): Likewise.
3457 * go-lang.c (go_language_data): Likewise.
3458 * language.c (unknown_language_data): Likewise.
3459 (auto_language_data): Likewise.
3460 * language.h (language_data): Delete la_get_compile_instance field.
3461 (language_defn::get_compile_instance): New member function.
3462 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3463 initializer.
3464 * objc-lang.c (objc_language_data): Likewise.
3465 * opencl-lang.c (opencl_language_data): Likewise.
3466 * p-lang.c (pascal_language_data): Likewise.
3467 * rust-lang.c (rust_language_data): Likewise.
3468
3469 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3470
3471 * ada-lang.c (ada_add_all_symbols): Update comment.
3472 (ada_iterate_over_symbols): Delete, move implementation to...
3473 (ada_language::iterate_over_symbols): ...here, a new member
3474 function, rewrite to use range based for loop.
3475 (ada_language_data): Delete la_iterate_over_symbols initializer.
3476 * c-lang.c (c_language_data): Likewise.
3477 (cplus_language_data): Likewise.
3478 (asm_language_data): Likewise.
3479 (minimal_language_data): Likewise.
3480 * d-lang.c (d_language_data): Likewise.
3481 * f-lang.c (f_language_data): Likewise.
3482 * go-lang.c (go_language_data): Likewise.
3483 * language.c (unknown_language_data): Likewise.
3484 (auto_language_data): Likewise.
3485 * language.h (language_data): Delete la_iterate_over_symbols field.
3486 (language_defn::iterate_over_symbols): New member function.
3487 (LA_ITERATE_OVER_SYMBOLS): Update.
3488 * linespec.c (iterate_over_all_matching_symtabs): Update.
3489 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3490 initializer.
3491 * objc-lang.c (objc_language_data): Likewise.
3492 * opencl-lang.c (opencl_language_data): Likewise.
3493 * p-lang.c (pascal_language_data): Likewise.
3494 * rust-lang.c (rust_language_data): Likewise.
3495
3496 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3497
3498 * ada-lang.c (ada_language_data): Delete
3499 la_lookup_transparent_type initializer.
3500 * c-lang.c (c_language_data): Likewise.
3501 (cplus_language_data): Likewise.
3502 (cplus_language::lookup_transparent_type): New member function.
3503 (asm_language_data): Delete la_lookup_transparent_type
3504 initializer.
3505 (minimal_language_data): Likewise.
3506 * d-lang.c (d_language_data): Likewise.
3507 * f-lang.c (f_language_data): Likewise.
3508 * go-lang.c (go_language_data): Likewise.
3509 * language.c (unknown_language_data): Likewise.
3510 (auto_language_data): Likewise.
3511 * language.h (struct language_data): Delete
3512 la_lookup_transparent_type field.
3513 (language_defn::lookup_transparent_type): New member function.
3514 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3515 initializer.
3516 * objc-lang.c (objc_language_data): Likewise.
3517 * opencl-lang.c (opencl_language_data): Likewise.
3518 * p-lang.c (pascal_language_data): Likewise.
3519 * rust-lang.c (rust_language_data): Likewise.
3520 * symtab.c (symbol_matches_domain): Update call.
3521
3522 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3523
3524 * ada-lang.c (ada_language_arch_info): Delete function, move
3525 implementation to...
3526 (ada_language::language_arch_info): ...here, a new member
3527 function.
3528 (ada_language_data): Delete la_language_arch_info.
3529 * c-lang.c (c_language_data): Likewise.
3530 (c_language::language_arch_info): New member function.
3531 (cplus_language_arch_info): Delete function, move
3532 implementation to...
3533 (cplus_language::language_arch_info): ...here, a new member
3534 function.
3535 (cplus_language_data): Delete la_language_arch_info.
3536 (asm_language_data): Likewise.
3537 (asm_language::language_arch_info): New member function.
3538 (minimal_language_data): Delete la_language_arch_info.
3539 (minimal_language::language_arch_info): New member function.
3540 * d-lang.c (d_language_arch_info): Delete function, move
3541 implementation to...
3542 (d_language::language_arch_info): ...here, a new member
3543 function.
3544 (d_language_data): Delete la_language_arch_info.
3545 * f-lang.c (f_language_arch_info): Delete function, move
3546 implementation to...
3547 (f_language::language_arch_info): ...here, a new member
3548 function.
3549 (f_language_data): Delete la_language_arch_info.
3550 * go-lang.c (go_language_arch_info): Delete function, move
3551 implementation to...
3552 (go_language::language_arch_info): ...here, a new member
3553 function.
3554 (go_language_data): Delete la_language_arch_info.
3555 * language.c (unknown_language_data): Likewise.
3556 (unknown_language::language_arch_info): New member function.
3557 (auto_language_data): Delete la_language_arch_info.
3558 (auto_language::language_arch_info): New member function.
3559 (language_gdbarch_post_init): Update call to
3560 la_language_arch_info.
3561 * language.h (language_data): Delete la_language_arch_info
3562 function pointer.
3563 (language_defn::language_arch_info): New function.
3564 * m2-lang.c (m2_language_arch_info): Delete function, move
3565 implementation to...
3566 (m2_language::language_arch_info): ...here, a new member
3567 function.
3568 (m2_language_data): Delete la_language_arch_info.
3569 * objc-lang.c (objc_language_arch_info): Delete function, move
3570 implementation to...
3571 (objc_language::language_arch_info): ...here, a new member
3572 function.
3573 (objc_language_data): Delete la_language_arch_info.
3574 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3575 implementation to...
3576 (opencl_language::language_arch_info): ...here, a new member
3577 function.
3578 (opencl_language_data): Delete la_language_arch_info.
3579 * p-lang.c (pascal_language_arch_info): Delete function, move
3580 implementation to...
3581 (pascal_language::language_arch_info): ...here, a new member
3582 function.
3583 (pascal_language_data): Delete la_language_arch_info.
3584 * rust-lang.c (rust_language_arch_info): Delete function, move
3585 implementation to...
3586 (rust_language::language_arch_info): ...here, a new member
3587 function.
3588 (rust_language_data): Delete la_language_arch_info.
3589
3590 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3591
3592 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3593 initializer.
3594 * c-lang.c (c_language_data): Likewise.
3595 (cplus_language_data): Likewise.
3596 (cplus_language::pass_by_reference_info): New method.
3597 (asm_language_data): Delete la_pass_by_reference initializer.
3598 (minimal_language_data): Likewise.
3599 * cp-abi.c (cp_pass_by_reference): Remove use of
3600 default_pass_by_reference.
3601 * d-lang.c (d_language_data): Likewise.
3602 * f-lang.c (f_language_data): Likewise.
3603 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3604 default_pass_by_reference.
3605 * go-lang.c (go_language_data): Likewise.
3606 * language.c (language_pass_by_reference): Update.
3607 (default_pass_by_reference): Delete.
3608 (unknown_language_data): Delete la_pass_by_reference
3609 initializer.
3610 (auto_language_data): Likewise.
3611 * language.h (struct language_data): Delete la_pass_by_reference
3612 field.
3613 (language_defn::pass_by_reference_info): New member function.
3614 (default_pass_by_reference): Delete declaration.
3615 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3616 initializer.
3617 * objc-lang.c (objc_language_data): Likewise.
3618 * opencl-lang.c (opencl_language_data): Likewise.
3619 * p-lang.c (pascal_language_data): Likewise.
3620 * rust-lang.c (rust_language_data): Likewise.
3621
3622 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3623
3624 * ada-lang.c (ada_read_var_value): Delete function, move
3625 implementation to...
3626 (ada_language::read_var_value): ...here.
3627 (ada_language_data): Delete la_read_var_value initializer.
3628 * c-lang.c (c_language_data): Likewise.
3629 (cplus_language_data): Likewise.
3630 (minimal_language_data): Likewise.
3631 * d-lang.c (d_language_data): Likewise.
3632 * f-lang.c (f_language_data): Likewise.
3633 * findvar.c (default_read_var_value): Rename to...
3634 (language_defn::read_var_value): ...this.
3635 * findvar.c (read_var_value): Update header comment, and change to
3636 call member function instead of function pointer.
3637 * go-lang.c (go_language_data): Likewise.
3638 * language.c (unknown_language_data): Delete la_read_var_value
3639 initializer.
3640 (auto_language_data): Likewise.
3641 * language.h (struct language_data): Delete la_read_var_value
3642 field.
3643 (language_defn::read_var_value): New member function.
3644 (default_read_var_value): Delete declaration.
3645 * m2-lang.c (m2_language_data): Delete la_read_var_value
3646 initializer.
3647 * objc-lang.c (objc_language_data): Likewise.
3648 * opencl-lang.c (opencl_language_data): Likewise.
3649 * p-lang.c (pascal_language_data): Likewise.
3650 * rust-lang.c (rust_language_data): Likewise.
3651 * value.h (default_read_var_value): Delete declaration.
3652
3653 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3654
3655 * ada-lang.c (ada_print_array_index): Delete function, move
3656 implementation to...
3657 (ada_language::print_array_index): ...here.
3658 (ada_language_data): Delete la_print_array_index initializer.
3659 * c-lang.c (c_language_data): Likewise.
3660 (cplus_language_data): Likewise.
3661 (minimal_language_data): Likewise.
3662 * d-lang.c (d_language_data): Likewise.
3663 * f-lang.c (f_language_data): Likewise.
3664 * go-lang.c (go_language_data): Likewise.
3665 * language.c (default_print_array_index): Delete function, move
3666 implementation to...
3667 (language_defn::print_array_index): ...here.
3668 (unknown_language_data): Delete la_print_array_index initializer.
3669 (auto_language_data): Likewise.
3670 * language.h (struct language_data): Delete la_print_array_index
3671 field.
3672 (language_defn::print_array_index): New member function.
3673 (LA_PRINT_ARRAY_INDEX): Update.
3674 (default_print_array_index): Delete declaration.
3675 * m2-lang.c (m2_language_data): Delete la_print_array_index
3676 initializer.
3677 * objc-lang.c (objc_language_data): Likewise.
3678 * opencl-lang.c (opencl_language_data): Likewise.
3679 * p-lang.c (pascal_language_data): Likewise.
3680 * rust-lang.c (rust_language_data): Likewise.
3681
3682 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3683
3684 * gdb/ada-lang.c (ada_language_defn): Convert to...
3685 (ada_language_data): ...this.
3686 (class ada_language): New class.
3687 (ada_language_defn): New static global.
3688 * gdb/c-lang.c (c_language_defn): Convert to...
3689 (c_language_data): ...this.
3690 (class c_language): New class.
3691 (c_language_defn): New static global.
3692 (cplus_language_defn): Convert to...
3693 (cplus_language_data): ...this.
3694 (class cplus_language): New class.
3695 (cplus_language_defn): New static global.
3696 (asm_language_defn): Convert to...
3697 (asm_language_data): ...this.
3698 (class asm_language): New class.
3699 (asm_language_defn): New static global.
3700 (minimal_language_defn): Convert to...
3701 (minimal_language_data): ...this.
3702 (class minimal_language): New class.
3703 (minimal_language_defn): New static global.
3704 * gdb/d-lang.c (d_language_defn): Convert to...
3705 (d_language_data): ...this.
3706 (class d_language): New class.
3707 (d_language_defn): New static global.
3708 * gdb/f-lang.c (f_language_defn): Convert to...
3709 (f_language_data): ...this.
3710 (class f_language): New class.
3711 (f_language_defn): New static global.
3712 * gdb/go-lang.c (go_language_defn): Convert to...
3713 (go_language_data): ...this.
3714 (class go_language): New class.
3715 (go_language_defn): New static global.
3716 * gdb/language.c (unknown_language_defn): Remove declaration.
3717 (current_language): Initialize to nullptr, real initialization is
3718 moved to _initialize_language.
3719 (languages): Delete global.
3720 (language_defn::languages): Define.
3721 (set_language_command): Use language_defn::languages.
3722 (set_language): Likewise.
3723 (range_error): Likewise.
3724 (language_enum): Likewise.
3725 (language_def): Likewise.
3726 (add_set_language_command): Use language_def::languages for the
3727 language list, and language_def to lookup language pointers.
3728 (skip_language_trampoline): Use language_defn::languages.
3729 (unknown_language_defn): Convert to...
3730 (unknown_language_data): ...this.
3731 (class unknown_language): New class.
3732 (unknown_language_defn): New static global.
3733 (auto_language_defn): Convert to...
3734 (auto_language_data): ...this.
3735 (class auto_language): New class.
3736 (auto_language_defn): New static global.
3737 (language_gdbarch_post_init): Use language_defn::languages.
3738 (_initialize_language): Initialize current_language.
3739 * gdb/language.h (struct language_defn): Rename to...
3740 (struct language_data): ...this.
3741 (struct language_defn): New.
3742 (auto_language_defn): Delete.
3743 (unknown_language_defn): Delete.
3744 (minimal_language_defn): Delete.
3745 (ada_language_defn): Delete.
3746 (asm_language_defn): Delete.
3747 (c_language_defn): Delete.
3748 (cplus_language_defn): Delete.
3749 (d_language_defn): Delete.
3750 (f_language_defn): Delete.
3751 (go_language_defn): Delete.
3752 (m2_language_defn): Delete.
3753 (objc_language_defn): Delete.
3754 (opencl_language_defn): Delete.
3755 (pascal_language_defn): Delete.
3756 (rust_language_defn): Delete.
3757 * gdb/m2-lang.c (m2_language_defn): Convert to...
3758 (m2_language_data): ...this.
3759 (class m2_language): New class.
3760 (m2_language_defn): New static global.
3761 * gdb/objc-lang.c (objc_language_defn): Convert to...
3762 (objc_language_data): ...this.
3763 (class objc_language): New class.
3764 (objc_language_defn): New static global.
3765 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3766 (opencl_language_data): ...this.
3767 (class opencl_language): New class.
3768 (opencl_language_defn): New static global.
3769 * gdb/p-lang.c (pascal_language_defn): Convert to...
3770 (pascal_language_data): ...this.
3771 (class pascal_language): New class.
3772 (pascal_language_defn): New static global.
3773 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3774 language pointer, update comment format.
3775 * gdb/rust-lang.c (rust_language_defn): Convert to...
3776 (rust_language_data): ...this.
3777 (class rust_language): New class.
3778 (rust_language_defn): New static global.
3779
3780 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3781
3782 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3783 member variable.
3784 <m_stmt_at_address>: New member variable.
3785 (lnp_state_machine::record_line): Don't record some lines, update
3786 tracking of is_stmt at the same address.
3787 (lnp_state_machine::lnp_state_machine): Initialise new member
3788 variables.
3789
3790 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3791
3792 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3793 "-include gnu-nat-mig.h".
3794 * gnu-nat-mig.h: New file.
3795 * gnu-nat.c: Include "gnu-nat-mig.h".
3796 (exc_server, msg_reply_server, notify_server,
3797 process_reply_server): Remove declarations.
3798
3799 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3800
3801 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3802 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3803 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3804 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3805 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3806 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3807 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3808 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3809 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3810 to gnu_nat_target class.
3811 * gnu-nat.c: Likewise.
3812 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3813 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3814 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3815 object.
3816 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3817 instead of `gnu_target'.
3818
3819 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3820
3821 * i386-gnu-tdep.c: Include "gdbcore.h"
3822 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3823 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3824 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3825 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3826 i386_gnu_sigcontext_addr): New functions
3827 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3828 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3829 tdep.
3830
3831 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3832
3833 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3834 before fork_inferior call. Avoid calling it if target_is_pushed returns
3835 true.
3836
3837 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3838
3839 * gnu-nat.h (gnu_target): New variable declaration.
3840 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3841 gnu_target.
3842 * gnu-nat.c (gnu_target): New variable.
3843 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3844 add_thread_silent, and add_thread calls.
3845 (gnu_nat_target::create_inferior): Pass gnu_target to
3846 add_thread_silent, thread_change_ptid call.
3847 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3848 call.
3849
3850 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3851
3852 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3853 (gnu_nat_target::find_memory_regions): Remove unused
3854 `old_address' variable.
3855
3856 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3857
3858 * gnu-nat.c: Include "gdbarch.h".
3859
3860 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3861
3862 * reply_mig_hack.awk (Error return): Cast function through
3863 void *, to bypass compiler function call check.
3864
3865 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3866
3867 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3868 $(srcdir)/reply_mig_hack.awk.
3869
3870 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3871
3872 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3873
3874 2020-05-30 Jonny Grant <jg@jguk.org>
3875
3876 * configure.ac (ACX_BUGURL): change bug URL to https.
3877
3878 2020-05-30 Pedro Alves <palves@redhat.com>
3879
3880 * cp-support.c (replace_typedefs_template): New.
3881 (replace_typedefs_qualified_name): Handle
3882 DEMANGLE_COMPONENT_TEMPLATE.
3883
3884 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
3885
3886 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3887 dwarf2/index-cache.h, dwarf2/index-write.c,
3888 dwarf2/index-write.h, dwarf2/line-header.c,
3889 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3890 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3891 variables and fields from `dwarf2_per_objfile` to just
3892 `per_objfile` throughout.
3893
3894 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3895
3896 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3897 <push_dwarf_reg_entry_value>: Add comment.
3898
3899 2020-05-28 Kevin Buettner <kevinb@redhat.com>
3900 Keith Seitz <keiths@redhat.com>
3901
3902 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3903 instead of PyEval_ReleaseLock.
3904 (class gdbpy_gil): Move to earlier in file.
3905 (finalize_python): Set gdb_python_initialized.
3906 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3907 when not initialized.
3908
3909 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
3910
3911 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3912 <push_dwarf_reg_entry_value>: Remove assert. Override
3913 per_objfile with caller_per_objfile.
3914
3915 2020-05-28 Tom de Vries <tdevries@suse.de>
3916
3917 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3918 PR gold/15646 workaround to symbol kind "type".
3919
3920 2020-05-27 Tom Tromey <tromey@adacore.com>
3921
3922 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3923
3924 2020-05-27 Tom Tromey <tromey@adacore.com>
3925
3926 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3927 Use htab_find_with_hash.
3928 <add_abbrev>: Remove "abbrev_number" parameter.
3929 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3930 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3931 (hash_abbrev): Add comment.
3932 (abbrev_table::lookup_abbrev): Move to header file.
3933 (abbrev_table::read): Update.
3934
3935 2020-05-27 Tom Tromey <tromey@adacore.com>
3936
3937 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3938 method.
3939 <canonical_name>: New member.
3940 <raw_name>: Rename from "name".
3941 (partial_die_info): Initialize canonical_name.
3942 (scan_partial_symbols): Check raw_name.
3943 (partial_die_parent_scope, partial_die_full_name)
3944 (add_partial_symbol, add_partial_subprogram)
3945 (add_partial_enumeration, load_partial_dies): Use "name" method.
3946 (partial_die_info::name): New method.
3947 (partial_die_info::read, guess_partial_die_structure_name)
3948 (partial_die_info::fixup): Update.
3949
3950 2020-05-27 Tom Tromey <tromey@adacore.com>
3951
3952 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3953 <get_ref_die_offset>: Inline.
3954 <get_ref_die_offset_complaint>: New method.
3955 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3956 (attribute::get_ref_die_offset_complaint): Rename from
3957 get_ref_die_offset. Just issue complaint.
3958
3959 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3960
3961 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3962
3963 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3964
3965 * exec.c (exec_file_attach): Use errno value of first openp failure.
3966
3967 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3968
3969 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3970 Don't close thread handle.
3971
3972 2020-05-27 Tom Tromey <tom@tromey.com>
3973 Simon Marchi <simon.marchi@efficios.com>
3974
3975 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3976 shared_ptr.
3977 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3978 member.
3979 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3980 dwarf2_per_bfd_objfile_data_key>: New globals.
3981 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3982 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3983 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3984 shared.
3985 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3986 short-circuit when sharing.
3987 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3988 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3989
3990 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3991
3992 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3993 to...
3994 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3995 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3996
3997 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3998
3999 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
4000 build_name_components, find_name_components_bounds>:
4001 Add per_objfile parameter.
4002 (struct mapped_index) <symbol_name_at>: Likewise.
4003 (struct mapped_debug_names): Remove constructor.
4004 <dwarf2_per_objfile>: Remove field.
4005 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
4006 (mapped_index_base::find_name_components_bounds,
4007 mapped_index_base::build_name_components,
4008 dw2_expand_symtabs_matching_symbol): Likewise.
4009 (class mock_mapped_index) <symbol_name_at>: Likewise.
4010 (check_match): Likewise.
4011 (check_find_bounds_finds): Likewise.
4012 (test_mapped_index_find_name_component_bounds): Update.
4013 (CHECK_MATCH): Update.
4014 (dw2_expand_symtabs_matching): Update.
4015 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
4016 per_objfile parameter.
4017 <find_vec_in_debug_names>: Likewise.
4018 <m_per_objfile>: New field.
4019 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
4020 parameter.
4021 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
4022 (dw2_debug_names_iterator::next): Update.
4023 (dw2_debug_names_lookup_symbol): Update.
4024 (dw2_debug_names_expand_symtabs_for_function): Update.
4025 (dw2_debug_names_map_matching_symbols): Update.
4026 (dw2_debug_names_expand_symtabs_matching): Update.
4027 (dwarf2_read_debug_names): Update.
4028
4029 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4030
4031 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
4032 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
4033 move to dwarf2_per_objfile.
4034 <read_in_chain>: Remove.
4035 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
4036 remove_all_cus, age_comp_units>: New methods.
4037 <m_dwarf2_cus>: New member.
4038 (struct dwarf2_per_cu_data) <cu>: Remove.
4039 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
4040 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
4041 moved to methods of dwarf2_per_objfile.
4042 (dwarf2_clear_marks): Remove.
4043 (dwarf2_queue_item::~dwarf2_queue_item): Update.
4044 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
4045 (dwarf2_per_bfd::free_cached_comp_units): Remove.
4046 (dwarf2_per_objfile::remove_all_cus): New.
4047 (class free_cached_comp_units) <~free_cached_comp_units>:
4048 Update.
4049 (load_cu): Update.
4050 (dw2_do_instantiate_symtab): Adjust.
4051 (fill_in_sig_entry_from_dwo_entry): Adjust.
4052 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4053 (cutu_reader::cutu_reader): Likewise.
4054 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
4055 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
4056 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
4057 and dwarf2_per_objfile::age_comp_units.
4058 (load_partial_comp_unit): Update.
4059 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
4060 (process_queue): Likewise.
4061 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
4062 backlink.
4063 (dwarf2_read_addr_index): Likewise.
4064 (follow_die_offset): Likewise.
4065 (dwarf2_fetch_die_loc_sect_off): Likewise.
4066 (dwarf2_fetch_constant_bytes): Likewise.
4067 (dwarf2_fetch_die_type_sect_off): Likewise.
4068 (follow_die_sig_1): Likewise.
4069 (load_full_type_unit): Likewise.
4070 (read_signatured_type): Likewise.
4071 (dwarf2_cu::dwarf2_cu): Don't set cu field.
4072 (dwarf2_cu::~dwarf2_cu): Remove.
4073 (dwarf2_per_objfile::get_cu): New.
4074 (dwarf2_per_objfile::set_cu): New.
4075 (age_cached_comp_units): Rename to...
4076 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
4077 to std::unordered_map.
4078 (free_one_cached_comp_unit): Rename to...
4079 (dwarf2_per_objfile::remove_cu): ... this. Adjust
4080 to std::unordered_map.
4081 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
4082 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
4083 a dwarf2_per_objfile in data.
4084 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
4085 (dwarf2_clear_marks): Remove.
4086
4087 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4088
4089 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
4090 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
4091 (init_tu_and_read_dwo_dies): Likewise.
4092 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
4093 (cutu_reader::cutu_reader): Likewise.
4094 (load_partial_comp_unit): Likewise.
4095 (process_psymtab_comp_unit): Update.
4096 (build_type_psymtabs_1): Update.
4097 (process_skeletonless_type_unit): Update.
4098 (load_full_comp_unit): Update.
4099 (find_partial_die): Update.
4100 (dwarf2_read_addr_index): Update.
4101 (read_signatured_type): Update.
4102
4103 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4104
4105 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
4106 m_header_read_in>: New fields.
4107 <get_header>: New method.
4108 * dwarf2/read.c (per_cu_header_read_in): Remove.
4109 (dwarf2_per_cu_data::get_header): New.
4110 (dwarf2_per_cu_data::addr_size): Update.
4111 (dwarf2_per_cu_data::offset_size): Update.
4112 (dwarf2_per_cu_data::ref_addr_size): Update.
4113
4114 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4115
4116 * dwarf2/read.c (load_cu): Return dwarf2_cu.
4117 (dw2_do_instantiate_symtab): Update.
4118 (queue_and_load_all_dwo_tus): Change parameter from
4119 dwarf2_per_cu_data to dwarf2_cu.
4120 (dwarf2_fetch_die_loc_sect_off): Update.
4121 (dwarf2_fetch_constant_bytes): Update.
4122 (dwarf2_fetch_die_type_sect_off): Update.
4123
4124 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4125
4126 * dwarf2/read.c (process_full_comp_unit,
4127 process_full_type_unit): Remove per_cu, per_objfile paramters.
4128 Add dwarf2_cu parameter.
4129 (process_queue): Update.
4130
4131 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4132
4133 * dwarf2/read.c (create_cu_from_index_list): Replace
4134 dwarf2_per_objfile parameter with dwarf2_per_bfd.
4135 (create_cus_from_index_list): Likewise.
4136 (create_cus_from_index): Likewise.
4137 (create_signatured_type_table_from_index): Likewise.
4138 (create_cus_from_debug_names_list): Likewise.
4139 (create_cus_from_debug_names): Likewise.
4140 (dwarf2_read_gdb_index): Update.
4141 (dwarf2_read_debug_names): Update.
4142
4143 2020-05-27 Tom Tromey <tom@tromey.com>
4144 Simon Marchi <simon.marchi@efficios.com>
4145
4146 * dwarf2/read.h (struct dwarf2_per_objfile)
4147 <get_type_for_signatured_type, set_type_for_signatured_type>:
4148 New methods.
4149 <m_type_map>: New member.
4150 (struct signatured_type) <type>: Remove.
4151 * dwarf2/read.c
4152 (dwarf2_per_objfile::get_type_for_signatured_type,
4153 dwarf2_per_objfile::set_type_for_signatured_type): New.
4154 (get_signatured_type): Use new methods.
4155
4156 2020-05-27 Tom Tromey <tom@tromey.com>
4157 Simon Marchi <simon.marchi@efficios.com>
4158
4159 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4160 (struct dwarf2_per_objfile) <type_units>: New member.
4161 <get_type_unit_group_unshareable>: New method.
4162 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4163 num_symtabs, symtabs>: Remove; move to
4164 type_unit_group_unshareable.
4165 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4166 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4167 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4168
4169 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4170
4171 * dwarf2/read.h (struct dwarf2_per_cu_data):
4172 <dwarf2_per_objfile>: Remove.
4173 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4174 dwarf2_per_objfile.
4175 (create_signatured_type_table_from_index): Likewise.
4176 (create_signatured_type_table_from_debug_names): Likewise.
4177 (create_debug_type_hash_table): Likewise.
4178 (fill_in_sig_entry_from_dwo_entry): Likewise.
4179 (create_type_unit_group): Likewise.
4180 (read_comp_units_from_section): Likewise.
4181 (create_cus_hash_table): Likewise.
4182
4183 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4184
4185 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4186 dwarf2_per_cu_data::dwarf2_per_objfile.
4187 (compute_compunit_symtab_includes): Likewise.
4188 (dwarf2_cu::start_symtab): Likewise.
4189
4190 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4191
4192 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4193 parameter.
4194 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4195 (read_namespace_alias): Update.
4196 (lookup_die_type): Update.
4197 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4198 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4199 Update.
4200 (disassemble_dwarf_expression): Update.
4201
4202 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4203
4204 * dwarf2/read.h (struct dwarf2_queue_item): Add
4205 dwarf2_per_objfile parameter, assign new parameter.
4206 <per_objfile>: New field.
4207 * dwarf2/read.c (free_one_cached_comp_unit): Add
4208 dwarf2_per_objfile parameter.
4209 (queue_comp_unit): Likewise.
4210 (dw2_do_instantiate_symtab): Update.
4211 (process_psymtab_comp_unit): Update.
4212 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4213 (process_imported_unit_die): Update.
4214 (queue_and_load_dwo_tu): Update.
4215 (follow_die_offset): Update.
4216 (follow_die_sig_1): Update.
4217
4218 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4219
4220 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4221 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4222 (read_call_site_scope): Assign per_objfile.
4223 (dwarf2_per_cu_data::objfile): Remove.
4224 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4225 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4226 dwarf2_per_objfile parameter.
4227 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4228 dwarf2_per_objfile parameter.
4229 (dwarf_expr_reg_to_entry_parameter): Add output
4230 dwarf2_per_objfile parameter.
4231 (locexpr_get_frame_base): Update.
4232 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4233 <push_dwarf_reg_entry_value>: Update.
4234 <call_site_to_target_addr>: Update.
4235 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4236 parameter.
4237 (value_of_dwarf_reg_entry): Update.
4238 (rw_pieced_value): Update.
4239 (indirect_synthetic_pointer): Update.
4240 (dwarf2_evaluate_property): Update.
4241 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4242 parameter.
4243 (locexpr_read_variable): Update.
4244 (locexpr_get_symbol_read_needs): Update.
4245 (loclist_read_variable): Update.
4246
4247 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4248
4249 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4250 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4251 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4252 parameter.
4253 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4254 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4255 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4256 parameter.
4257 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4258 sect_variable_value): Add dwarf2_per_objfile parameter.
4259 (class dwarf_evaluate_loc_desc) <dwarf_call,
4260 dwarf_variable_value>: Update.
4261 (fetch_const_value_from_synthetic_pointer): Add
4262 dwarf2_per_objfile parameter.
4263 (fetch_const_value_from_synthetic_pointer): Update.
4264 (coerced_pieced_ref): Update.
4265 (class symbol_needs_eval_context) <dwarf_call,
4266 dwarf_variable_value>: Update.
4267 (dwarf2_compile_expr_to_ax): Update.
4268
4269 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4270
4271 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4272 parameter.
4273 (dwarf2_evaluate_loc_desc_full): Update.
4274
4275 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4276
4277 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4278 parameter.
4279 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4280 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4281 dwarf2_per_objfile parameter.
4282 (decode_debug_loc_dwo_addresses): Likewise.
4283 (dwarf2_find_location_expression): Update.
4284 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4285 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4286 parameter.
4287 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4288 parameter.
4289 (locexpr_describe_location_1): Likewise.
4290 (locexpr_describe_location): Update.
4291
4292 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4293
4294 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4295 Remove.
4296 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4297 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4298 (dwarf2_compile_property_to_c): Update.
4299 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4300 use text offset from objfile.
4301 (locexpr_tracepoint_var_ref): Update.
4302 (locexpr_generate_c_location): Update.
4303 (loclist_describe_location): Update.
4304 (loclist_tracepoint_var_ref): Update.
4305 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4306 dwarf2_per_objfile parameter.
4307 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4308 use text offset from objfile.
4309 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4310
4311 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4312
4313 * dwarf2/expr.h (struct dwarf_expr_context)
4314 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4315 <offset>: Remove.
4316 <per_objfile>: New member.
4317 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4318 dwarf2_per_objfile parameter. Don't set offset, set
4319 per_objfile.
4320 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4321 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4322 a dwarf2_per_objfile object instead of an offset.
4323 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4324 constructor.
4325 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4326 to dwarf2_expr_executor constructor. Don't set offset.
4327 (dwarf2_fetch_cfa_info): Update.
4328 (struct dwarf2_frame_cache) <text_offset>: Remove.
4329 <per_objfile>: New field.
4330 (dwarf2_frame_cache): Update.
4331 (dwarf2_frame_prev_register): Update.
4332 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4333 <dwarf_evaluate_loc_desc>: Add constructor.
4334 (dwarf2_evaluate_loc_desc_full): Update.
4335 (dwarf2_locexpr_baton_eval): Update.
4336 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4337 Add constructor.
4338 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4339
4340 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4341
4342 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4343 addr_sized_int_type>: Move to dwarf2_cu.
4344 <int_type>: Move to dwarf2_per_objfile.
4345 (struct dwarf2_per_objfile) <int_type>: Move here.
4346 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4347 addr_sized_int_type>: Move here.
4348 (read_func_scope): Update.
4349 (read_array_type): Update.
4350 (read_tag_string_type): Update.
4351 (attr_to_dynamic_prop): Update.
4352 (dwarf2_per_cu_data::int_type): Rename to...
4353 (dwarf2_per_objfile::int_type): ... this.
4354 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4355 (dwarf2_cu::addr_sized_int_type): ... this.
4356 (read_subrange_type): Update.
4357 (dwarf2_per_cu_data::addr_type): Rename to...
4358 (dwarf2_cu::addr_type): ... this.
4359 (set_die_type): Update.
4360
4361 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4362
4363 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4364 data through per_cu->cu.
4365
4366 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4367
4368 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4369 dwarf2_per_cu_data parameter fo dwarf2_cu.
4370 (lookup_dwo_type_unit): Likewise.
4371 (read_cutu_die_from_dwo): Likewise.
4372 (lookup_dwo_unit): Likewise.
4373 (open_and_init_dwo_file): Likewise.
4374 (lookup_dwo_cutu): Likewise.
4375 (lookup_dwo_comp_unit): Likewise.
4376 (lookup_dwo_type_unit): Likewise.
4377 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4378 (cutu_reader::cutu_reader): Update.
4379
4380 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4381
4382 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4383 parameter.
4384 (process_full_type_unit): Likewise.
4385 (process_queue): Update.
4386
4387 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4388
4389 * dwarf2/read.c (recursively_compute_inclusions): Add
4390 dwarf2_per_objfile parameter.
4391 (compute_compunit_symtab_includes): Likewise.
4392 (process_cu_includes): Update.
4393
4394 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4395
4396 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4397 parameter.
4398 (create_type_unit_group): Update.
4399 (process_psymtab_comp_unit_reader): Update.
4400 (build_type_psymtabs_reader): Update.
4401
4402 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4403
4404 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4405 object through m_this_cu->cu.
4406
4407 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4408
4409 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4410 the info parameter.
4411 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4412
4413 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4414
4415 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4416 per_objfile parameter.
4417 (load_full_type_unit): Add per_objfile parameter.
4418 (read_signatured_type): Likewise.
4419 (load_full_comp_unit): Likewise.
4420 (load_cu): Likewise.
4421 (dw2_do_instantiate_symtab): Likewise.
4422 (dw2_get_file_names): Likewise.
4423 (dw2_map_symtabs_matching_filename): Update.
4424 (dw_expand_symtabs_matching_file_matcher): Update.
4425 (dw2_map_symbol_filenames): Update.
4426 (process_psymtab_comp_unit): Add per_objfile parameter.
4427 (build_type_psymtabs_1): Update.
4428 (process_skeletonless_type_unit): Update.
4429 (dwarf2_build_psymtabs_hard): Update.
4430 (load_partial_comp_unit): Add per_objfile parameter.
4431 (scan_partial_symbols): Update.
4432 (load_full_comp_unit): Add per_objfile parameter.
4433 (process_imported_unit_die): Update.
4434 (create_cus_hash_table): Update.
4435 (find_partial_die): Update.
4436 (dwarf2_read_addr_index): Update.
4437 (follow_die_offset): Update.
4438 (dwarf2_fetch_die_loc_sect_off): Update.
4439 (dwarf2_fetch_constant_bytes): Update.
4440 (dwarf2_fetch_die_type_sect_off): Update.
4441 (follow_die_sig_1): Update.
4442 (load_full_type_unit): Add per_objfile parameter.
4443 (read_signatured_type): Likewise.
4444
4445 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4446
4447 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4448 of objfile_name.
4449
4450 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4451
4452 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4453 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4454 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4455 field.
4456 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4457 (create_cus_from_index): Update.
4458 (dwarf2_read_gdb_index): Update.
4459 (create_cus_from_debug_names): Update.
4460 (dwarf2_read_debug_names): Update.
4461 (get_abbrev_section_for_cu): Update.
4462 (create_all_comp_units): Update.
4463 (read_attribute_value): Update.
4464 (get_debug_line_section): Update.
4465 * dwarf2/index-cache.c (index_cache::store): Update.
4466 * dwarf2/index-write.c (save_gdb_index_command): Update.
4467 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4468
4469 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4470
4471 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4472 member.
4473 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4474 dwarf2_per_cu_data::per_bfd.
4475 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4476 (create_type_unit_group): Likewise.
4477 (queue_comp_unit): Remove reference to
4478 per_cu->dwarf2_per_objfile.
4479 (maybe_queue_comp_unit): Likewise.
4480 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4481 (create_cus_hash_table): Assign new field.
4482
4483 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4484
4485 * dwarf2/read.c: Replace
4486 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4487 dwarf2_cu->per_objfile throughout.
4488
4489 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4490
4491 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4492 parameter, don't use per_cu->dwarf2_per_objfile.
4493 (dw2_instantiate_symtab): Likewise.
4494 (dw2_find_last_source_symtab): Update.
4495 (dw2_map_expand_apply): Update.
4496 (dw2_lookup_symbol): Update.
4497 (dw2_expand_symtabs_for_function): Update.
4498 (dw2_expand_all_symtabs): Update.
4499 (dw2_expand_symtabs_with_fullname): Update.
4500 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4501 don't use per_cu->dwarf2_per_objfile.
4502 (dw2_expand_marked_cus): Update.
4503 (dw2_find_pc_sect_compunit_symtab): Update.
4504 (dw2_debug_names_lookup_symbol): Update.
4505 (dw2_debug_names_expand_symtabs_for_function): Update.
4506 (dw2_debug_names_map_matching_symbols): Update.
4507 (dwarf2_psymtab::expand_psymtab): Update.
4508
4509 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4510
4511 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4512 <per_objfile>: New member.
4513 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4514 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4515 call to dwarf2_cu.
4516 (cutu_reader::cutu_reader): Update.
4517 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4518
4519 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4520
4521 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4522 struct dwarf2_per_objfile.
4523 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4524 dwarf2_per_bfd.
4525 * dwarf2/read.c (set_die_type): Update.
4526 (get_die_type_at_offset): Update.
4527
4528 2020-05-27 Tom Tromey <tom@tromey.com>
4529 Simon Marchi <simon.marchi@efficios.com>
4530
4531 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4532 method.
4533 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4534 get_symtab, set_symtab>: New methods.
4535 <m_symtabs>: New field.
4536 (struct dwarf2_psymtab): Derive from partial_symtab.
4537 <readin_p, get_compunit_symtab>: Declare methods.
4538 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4539 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4540 New methods.
4541 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4542 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4543 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4544 (dw2_symtab_iter_next, dw2_print_stats)
4545 (dw2_expand_symtabs_with_fullname)
4546 (dw2_expand_symtabs_matching_one)
4547 (dw_expand_symtabs_matching_file_matcher)
4548 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4549 (dw2_debug_names_iterator::next)
4550 (dw2_debug_names_map_matching_symbols)
4551 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4552 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4553 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4554 New methods.
4555 (get_compunit_symtab, process_full_comp_unit)
4556 (process_full_type_unit): Update.
4557 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4558
4559 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4560
4561 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4562 then introduce a new dwarf2_per_objfile type.
4563 <read_line_string>: Move to the new dwarf2_per_objfile type.
4564 <objfile>: Likewise.
4565 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4566 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4567 dwarf2_per_objfile->per_bfd.
4568 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4569 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4570 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4571 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4572 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4573 (dwarf2_per_objfile::locate_sections): Rename to...
4574 (dwarf2_per_bfd::locate_sections): ... this.
4575 (dwarf2_per_objfile::get_cutu): Rename to...
4576 (dwarf2_per_bfd::get_cutu): ... this.
4577 (dwarf2_per_objfile::get_cu): Rename to...
4578 (dwarf2_per_bfd::get_cu): ... this.
4579 (dwarf2_per_objfile::get_tu): Rename to...
4580 (dwarf2_per_bfd::get_tu): ... this.
4581 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4582 (dwarf2_per_bfd::allocate_per_cu): ... this.
4583 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4584 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4585 (get_gdb_index_contents_ftype): Change parameter from
4586 dwarf2_per_objfile to dwarf2_per_bfd.
4587 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4588 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4589
4590 2020-05-27 Tom Tromey <tom@tromey.com>
4591 Simon Marchi <simon.marchi@efficios.com>
4592
4593 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4594 (allocate_piece_closure): Set "per_objfile" member.
4595 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4596 (locexpr_describe_location, loclist_describe_location): Use new
4597 member.
4598 * dwarf2/read.c (read_call_site_scope)
4599 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4600 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4601 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4602 handle_data_member_location): Set per_objfile member.
4603 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4604 member.
4605 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4606
4607 2020-05-27 Tom Tromey <tom@tromey.com>
4608
4609 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4610 allocate_signatured_type>: Declare new methods.
4611 <m_num_psymtabs>: New member.
4612 (struct dwarf2_per_cu_data) <index>: New member.
4613 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4614 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4615 (create_cu_from_index_list): Use allocate_per_cu.
4616 (create_signatured_type_table_from_index)
4617 (create_signatured_type_table_from_debug_names)
4618 (create_debug_type_hash_table, add_type_unit)
4619 (read_comp_units_from_section): Use allocate_signatured_type.
4620
4621 2020-05-27 Tom Tromey <tom@tromey.com>
4622
4623 * psymtab.c (partial_map_expand_apply)
4624 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4625 (psym_lookup_global_symbol_language)
4626 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4627 (psym_print_stats, psym_expand_symtabs_for_function)
4628 (psym_map_symbol_filenames, psym_map_matching_symbols)
4629 (psym_expand_symtabs_matching)
4630 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4631 (maintenance_check_psymtabs): Update.
4632 * psympriv.h (struct partial_symtab) <readin_p,
4633 get_compunit_symtab>: Add objfile parameter.
4634 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4635 Likewise.
4636 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4637 get_compunit_symtab>: Likewise.
4638 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4639
4640 2020-05-27 Tom Tromey <tom@tromey.com>
4641
4642 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4643 member.
4644 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4645 (create_cu_from_index_list)
4646 (create_signatured_type_table_from_index)
4647 (create_signatured_type_table_from_debug_names)
4648 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4649 (dwarf2_create_include_psymtab)
4650 (create_debug_type_hash_table, add_type_unit)
4651 (create_type_unit_group, read_comp_units_from_section)
4652 (dwarf2_compute_name, create_cus_hash_table)
4653 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4654 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4655 obstack.
4656 (dw2_get_real_path): Likewise. Change argument to
4657 dwarf2_per_objfile.
4658
4659 2020-05-27 Luis Machado <luis.machado@linaro.org>
4660
4661 PR tdep/26000
4662 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4663 for ldrd (immediate).
4664
4665 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4666
4667 * command.h: Add comment giving the name of class_tui.
4668 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4669 create the fake command for the help for class_tui.
4670
4671 2020-05-26 Tom Tromey <tromey@adacore.com>
4672
4673 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4674 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4675 (val_atr): New function.
4676 (value_val_atr): Use it.
4677 * ada-valprint.c (print_optional_low_bound): Change low bound
4678 handling for enums.
4679 (val_print_packed_array_elements): Don't call discrete_position.
4680 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4681 discrete_position for enum types.
4682 * language.c (default_print_array_index): Change type.
4683 * language.h (struct language_defn) <la_print_array_index>: Add
4684 index_type parameter, change type of index_value.
4685 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4686 (default_print_array_index): Update.
4687 * valprint.c (maybe_print_array_index): Don't call
4688 value_from_longest. Update.
4689 (value_print_array_elements): Don't call discrete_position.
4690
4691 2020-05-26 Tom Tromey <tromey@adacore.com>
4692
4693 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4694 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4695
4696 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4697
4698 PR gdb/13519
4699 * avr-tdep.c (avr_integer_to_address): Return data or code
4700 address accordingly to the second 'type' argument of the
4701 function.
4702
4703 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4704
4705 * infcmd.c, inferior.h: (construct_inferior_arguments):
4706 Moved function from here to gdbsupport/common-inferior.{h,cc}
4707
4708 2020-05-23 Tom Tromey <tom@tromey.com>
4709
4710 Revert commit eca1f90c:
4711 * NEWS: Remove entry for completion styling.
4712 * completer.c (_rl_completion_prefix_display_length): Move
4713 declaration later.
4714 (gdb_fnprint): Revert.
4715 (gdb_display_match_list_1): Likewise.
4716 * cli/cli-style.c (completion_prefix_style)
4717 (completion_difference_style, completion_suffix_style): Remove.
4718 (_initialize_cli_style): Revert.
4719 * cli/cli-style.h (completion_prefix_style)
4720 (completion_difference_style, completion_suffix_style): Don't
4721 declare.
4722
4723 2020-05-24 Pedro Alves <palves@redhat.com>
4724
4725 * symtab.c (completion_list_add_name): Return boolean indication
4726 of whether the symbol matched.
4727 (completion_list_add_symbol): Don't try to remove C++ aliases if
4728 the symbol didn't match in the first place.
4729 * symtab.h (completion_list_add_name): Return bool.
4730
4731 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4732
4733 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4734 type::field.
4735
4736 2020-05-23 Joel Brobecker <brobecker@adacore.com>
4737
4738 GDB 9.2 released.
4739
4740 2020-05-23 Tom Tromey <tom@tromey.com>
4741
4742 * NEWS: Add entry for completion styling.
4743 * completer.c (_rl_completion_prefix_display_length): Move
4744 declaration earlier.
4745 (gdb_fnprint): Use completion_style.
4746 (gdb_display_match_list_1): Likewise.
4747 * cli/cli-style.c (completion_prefix_style)
4748 (completion_difference_style, completion_suffix_style): New
4749 globals.
4750 (_initialize_cli_style): Register new globals.
4751 * cli/cli-style.h (completion_prefix_style)
4752 (completion_difference_style, completion_suffix_style): Declare.
4753
4754 2020-05-23 Pedro Alves <palves@redhat.com>
4755
4756 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4757 (parse_escape): Use ISDIGIT instead of isdigit.
4758 (puts_debug): Use gdb_isprint instead of isprint.
4759 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4760 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4761 ISSPACE instead of isspace.
4762 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4763 instead of isspace.
4764 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4765 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4766 instead of isxdigit and ISDIGIT instead of isdigit.
4767
4768 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4769
4770 * gdbtypes.h (struct type) <field>: New method.
4771 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4772 or type::field.
4773
4774 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4775
4776 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4777 (TYPE_FIELDS): Use type::fields. Change all call sites that
4778 modify the propery to use type::set_fields instead.
4779
4780 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4781
4782 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4783 type::num_fields instead.
4784
4785 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4786
4787 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4788 methods.
4789 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4790 that modify the number of fields to use type::set_num_fields
4791 instead.
4792
4793 2020-05-22 Tom Tromey <tromey@adacore.com>
4794
4795 * compile/compile-object-load.h (munmap_list_free): Don't
4796 declare.
4797
4798 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4799
4800 * annotate.c (annotate_source_line): Update return type, add call
4801 to update current symtab and line.
4802 * annotate.h (annotate_source_line): Update return type, and
4803 extend header comment.
4804 * source.c (info_line_command): Check annotation_level before
4805 calling annotate_source_line.
4806 * stack.c (print_frame_info): If calling annotate_source_line
4807 returns true, then don't print any other source line information.
4808
4809 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4810
4811 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4812
4813 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4814
4815 * coffread.c (patch_type): Remove NULL check before xfree.
4816 * corefile.c (set_gnutarget): Likewise.
4817 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4818 * exec.c (build_section_table): Likewise.
4819 * remote.c (remote_target::pass_signals): Likewise.
4820 * utils.c (n_spaces): Likewise.
4821 * cli/cli-script.c (document_command): Likewise.
4822 * i386-windows-tdep.c (core_process_module_section): Likewise.
4823 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4824
4825 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
4826
4827 * symfile.c (reread_symbols): Clear objfile's section_offsets
4828 vector and section indices, re-compute them by calling
4829 sym_offsets.
4830
4831 2020-05-20 Tom Tromey <tromey@adacore.com>
4832
4833 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
4834 (desc_one_bound, desc_index_type): Compute field name.
4835
4836 2020-05-20 Tom de Vries <tdevries@suse.de>
4837
4838 PR symtab/25833
4839 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4840
4841 2020-05-20 Alan Modra <amodra@gmail.com>
4842
4843 PR 25993
4844 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4845 bfd_set_filename.
4846 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4847 passed to bfd_set_filename.
4848 * symfile-mem.c (add_vsyscall_page): Likewise for string
4849 passed to symbol_file_add_from_memory.
4850 (symbol_file_add_from_memory): Make name param a const char* and
4851 don't strdup.
4852
4853 2020-05-20 Alan Modra <amodra@gmail.com>
4854
4855 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4856 rather than accessing bfd->filename directly.
4857 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4858 and use bfd_section_name.
4859 * dwarf2/frame.c (decode_frame_entry): Likewise.
4860 * exec.c (exec_set_section_address): Likewise.
4861 * solib-aix.c (solib_aix_bfd_open): Likewise.
4862 * stap-probe.c (get_stap_base_address): Likewise.
4863 * symfile.c (reread_symbols): Likewise.
4864
4865 2020-05-19 Tom Tromey <tromey@adacore.com>
4866
4867 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4868
4869 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4870
4871 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4872
4873 2020-05-19 Pedro Alves <palves@redhat.com>
4874
4875 * NEWS (set exec-file-mismatch): Adjust entry.
4876 * exec.c: Include "build-id.h".
4877 (validate_exec_file): Try to match build IDs instead of filenames.
4878 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4879 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4880 and pass down 'warn_if_slow'.
4881 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4882 gdb_bfd_open_closure to pass it down.
4883 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4884
4885 2020-05-19 Pedro Alves <palves@redhat.com>
4886
4887 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4888 * target.c (target_fileio_open_1): Rename to target_fileio_open
4889 and make extern. Use bool.
4890 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4891 (target_fileio_read_alloc_1): Adjust.
4892 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4893 (target_fileio_open_warn_if_slow): Delete declaration.
4894
4895 2020-05-19 Pedro Alves <palves@redhat.com>
4896
4897 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4898 Adjust all callers.
4899
4900 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4901
4902 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4903 whether disp is negative.
4904
4905 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4906
4907 * symfile.h (struct symfile_segment_data)
4908 <~symfile_segment_data>: Remove.
4909 <segment_info>: Change to std::vector.
4910 * symfile.c (default_symfile_segments): Update.
4911 * elfread.c (elf_symfile_segments): Update.
4912
4913 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4914
4915 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4916 <segments>: New.
4917 <segment_bases, segment_sizes>: Remove.
4918 * symfile.c (default_symfile_segments): Update.
4919 * elfread.c (elf_symfile_segments): Update.
4920 * remote.c (remote_target::get_offsets): Update.
4921 * solib-target.c (solib_target_relocate_section_addresses):
4922 Update.
4923
4924 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4925
4926 * symfile.h (struct symfile_segment_data): Initialize fields.
4927 <~symfile_segment_data>: Add.
4928 (symfile_segment_data_up): New.
4929 (struct sym_fns) <sym_segments>: Return a
4930 symfile_segment_data_up.
4931 (default_symfile_segments): Return a symfile_segment_data_up.
4932 (free_symfile_segment_data): Remove.
4933 (get_symfile_segment_data): Return a symfile_segment_data_up.
4934 * symfile.c (default_symfile_segments): Likewise.
4935 (get_symfile_segment_data): Likewise.
4936 (free_symfile_segment_data): Remove.
4937 (symfile_find_segment_sections): Update.
4938 * elfread.c (elf_symfile_segments): Return a
4939 symfile_segment_data_up.
4940 * remote.c (remote_target::get_offsets): Update.
4941 * solib-target.c (solib_target_relocate_section_addresses):
4942 Update.
4943 * symfile-debug.c (debug_sym_segments): Return a
4944 symfile_segment_data_up.
4945
4946 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4947
4948 PR build/25981
4949 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4950 Hardcode register numbers.
4951
4952 PR build/25981
4953 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4954 procfs_find_LDT_entry): Remove.
4955 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4956 procfs_find_LDT_entry): Remove.
4957 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4958 Remove.
4959
4960 2020-05-17 Pedro Alves <palves@redhat.com>
4961 Andrew Burgess <andrew.burgess@embecosm.com>
4962 Keno Fischer <keno@juliacomputing.com>
4963
4964 PR gdb/25741
4965 * breakpoint.c (build_target_condition_list): Update comments.
4966 (build_target_command_list): Update comments and skip matching
4967 locations.
4968 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4969 a separate function. Simplify "set breakpoint auto-hw off"
4970 handling.
4971 (insert_breakpoints): Update comment.
4972 (tracepoint_locations_match): New parameter. For breakpoints,
4973 compare location types too, if the caller wants to.
4974 (handle_automatic_hardware_breakpoints): New functions.
4975 (bp_location_is_less_than): Also sort by location type and
4976 hardware breakpoint length.
4977 (update_global_location_list): Handle "set breakpoint auto-hw on"
4978 here.
4979 (update_breakpoint_locations): Ask breakpoint_locations_match to
4980 ignore location types.
4981
4982 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4983
4984 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4985 type::name instead.
4986
4987 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4988
4989 * gdbtypes.h (struct type) <name, set_name>: New methods.
4990 (TYPE_CODE): Use type::name. Change all call sites used to set
4991 the name to use type::set_name instead.
4992
4993 2020-05-16 Tom Tromey <tom@tromey.com>
4994
4995 * top.c (quit_force): Update.
4996 * infrun.c (handle_no_resumed): Update.
4997 * top.h (all_uis): New function.
4998 (ALL_UIS): Remove.
4999
5000 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5001
5002 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
5003
5004 2020-05-16 Pedro Alves <palves@redhat.com>
5005
5006 * ia64-linux-nat.c
5007 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
5008 Declare method.
5009 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
5010
5011 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
5012
5013 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
5014 (sparc64_adi_info): Likewise.
5015
5016 2020-05-15 Tom Tromey <tom@tromey.com>
5017
5018 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
5019 block_objfile.
5020 (lookup_objfile_from_block): Remove.
5021 (lookup_symbol_in_block, lookup_symbol_in_static_block)
5022 (lookup_global_symbol): Use block_objfile.
5023 * symtab.h (lookup_objfile_from_block): Don't declare.
5024 * printcmd.c (clear_dangling_display_expressions): Use
5025 block_objfile.
5026 * parse.c (operator_check_standard): Use block_objfile.
5027
5028 2020-05-15 Tom Tromey <tom@tromey.com>
5029
5030 * language.c (language_alloc_type_symbol): Set
5031 SYMBOL_SECTION.
5032 * symtab.c (initialize_objfile_symbol): Remove.
5033 (allocate_symbol): Remove.
5034 (allocate_template_symbol): Remove.
5035 * dwarf2/read.c (fixup_go_packaging): Use "new".
5036 (new_symbol): Use "new".
5037 (read_variable): Don't call initialize_objfile_symbol. Use
5038 "new".
5039 (read_func_scope): Use "new".
5040 * xcoffread.c (process_xcoff_symbol): Don't call
5041 initialize_objfile_symbol.
5042 (SYMBOL_DUP): Remove.
5043 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
5044 "new".
5045 * symtab.h (allocate_symbol, initialize_objfile_symbol)
5046 (allocate_template_symbol): Don't declare.
5047 (struct symbol): Add copy constructor. Change defaults.
5048 * jit.c (finalize_symtab): Use "new".
5049 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
5050 Use "new".
5051 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5052 (common_block_end): Use "new".
5053 * mdebugread.c (parse_symbol): Use "new".
5054 (new_symbol): Likewise.
5055
5056 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5057
5058 * NEWS: Mention changes to help and apropos.
5059
5060 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5061
5062 * command.h (enum command_class): Improve comments, document
5063 that class_alias is for user-defined aliases, give the class
5064 name for each class, remove unused class_xdb.
5065 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
5066 * breakpoint.c (_initialize_breakpoint): Replace class_alias
5067 by a precise class.
5068 * infcmd.c (_initialize_infcmd): Likewise.
5069 * reverse.c (_initialize_reverse): Likewise.
5070 * stack.c (_initialize_stack): Likewise.
5071 * symfile.c (_initialize_symfile): Likewise.
5072 * tracepoint.c (_initialize_tracepoint): Likewise.
5073
5074 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5075
5076 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
5077 when their aliased command is traversed.
5078 (help_cmd): Add fput_command_names_styled call to
5079 output command name and aliases when command has an alias.
5080
5081 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5082
5083 * cli/cli-decode.h (help_cmd_list): Remove declaration.
5084 * cli/cli-decode.c (help_cmd_list): Declare as static,
5085 remove prefix argument, use bool for recurse arg, rework to show the aliases of
5086 a command together with the command.
5087 (fput_command_name_styled, fput_command_names_styled): New functions.
5088 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
5089 fput_command_name_styled.
5090 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
5091 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
5092
5093 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5094
5095 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
5096 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
5097 * command.h (cmd_show_list): Likewise.
5098 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
5099 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
5100
5101 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5102
5103 * unittests/command-def-selftests.c (traverse_command_structure):
5104 Verify all commands of a list have the same prefix command and
5105 that only the top cmdlist commands have a null prefix.
5106
5107 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5108
5109 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
5110 as prefix, not one of its aliases.
5111 (set_cmd_prefix): Remove.
5112 (do_add_cmd): Centralize the setting of the prefix of a command, when
5113 command is defined after its full chain of prefix commands.
5114 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
5115 (add_setshow_cmd_full): Likewise.
5116 (update_prefix_field_of_prefixed_commands): New function.
5117 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
5118 update_prefix_field_of_prefixed_commands.
5119 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
5120 addresses of remote_set_cmdlist and remote_show_cmdlist given
5121 as argument, not the address of an argument.
5122 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5123 * gdb/remote.c (_initialize_remote): Likewise.
5124
5125 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5126
5127 * cli/cli-cmds.c (alias_command): Check for an existing alias
5128 using lookup_cmd_composition, as valid_command_p is too strict
5129 and forbids aliases that are the prefix of an existing alias
5130 or command.
5131 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5132 command is properly recognised as a valid command.
5133
5134 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5135
5136 * unittests/help-doc-selftests.c: Rename to
5137 unittests/command-def-selftests.c
5138 * unittests/command-def-selftests.c (help_doc_tests): Update some
5139 comments.
5140 (command_structure_tests, traverse_command_structure): New namespace
5141 and function.
5142 (command_structure_invariants_tests): New function.
5143 (_initialize_command_def_selftests) Renamed from
5144 _initialize_help_doc_selftests, register command_structure_invariants
5145 selftest.
5146
5147 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5148
5149 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5150 an alias of 'show'.
5151
5152 2020-05-15 Joel Brobecker <brobecker@adacore.com>
5153
5154 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5155 ada_is_fixed_point_type. Update all callers.
5156 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5157 all callers.
5158 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5159 Update all callers.
5160 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5161 print_fixed_point_type. Update all callers.
5162 * ada-valprint.c (ada_value_print_num): Replace call to
5163 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5164
5165 2020-05-14 Kevin Buettner <kevinb@redhat.com>
5166
5167 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5168 processors.
5169 (cpu_supports_bts): Add CV_AMD case.
5170
5171 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5172 Simon Marchi <simon.marchi@efficios.com>
5173
5174 * infrun.c (stop_all_threads): Collect multiple wait events at
5175 each pass.
5176
5177 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5178
5179 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5180 type::code instead.
5181
5182 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5183
5184 * gdbtypes.h (struct type) <code, set_code>: New methods.
5185 (TYPE_CODE): Use type::code. Change all call sites used to set
5186 the code to use type::set_code instead.
5187
5188 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5189 Tom de Vries <tdevries@suse.de>
5190 Pedro Alves <palves@redhat.com>
5191
5192 PR threads/25478
5193 * infrun.c (stop_all_threads): Do NOT ignore
5194 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5195 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5196 received.
5197 (handle_no_resumed): Remove code handling a live inferior with no
5198 threads.
5199 * remote.c (has_single_non_exited_thread): New.
5200 (remote_target::update_thread_list): Do not delete a thread if is
5201 the last thread of the process.
5202 * thread.c (thread_select): Call delete_exited_threads instead of
5203 prune_threads.
5204
5205 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5206
5207 * infrun.c (stop_all_threads): Enable/disable thread events of all
5208 targets. Move a debug message denoting the end of the function
5209 into the SCOPED_EXIT block.
5210
5211 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5212
5213 * process-stratum-target.h: Include <set>.
5214 (all_non_exited_process_targets, switch_to_target_no_thread): New
5215 function declarations.
5216 * process-stratum-target.c (all_non_exited_process_targets)
5217 (switch_to_target_no_thread): New function implementations.
5218
5219 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5220
5221 * infrun.c (handle_inferior_event): Extract out a piece of code
5222 into...
5223 (mark_non_executing_threads): ...this new function.
5224
5225 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5226
5227 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5228 use.
5229
5230 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5231
5232 * regcache.c (regcache_read_pc_protected): New function
5233 implementation that returns 0 if the PC cannot read via
5234 'regcache_read_pc'.
5235 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5236 instead of 'regcache_read_pc'.
5237 (keep_going_pass_signal): Ditto.
5238
5239 2020-05-13 Tom Tromey <tromey@adacore.com>
5240
5241 * ada-lang.c (align_value): Remove.
5242 (ada_template_to_fixed_record_type_1): Use align_up.
5243
5244 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5245
5246 * async-event.c: Update the copyright year.
5247 * async-event.h: Update the copyright year.
5248
5249 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
5250
5251 * objfiles.h (is_addr_in_objfile,
5252 shared_objfile_contains_address_p): Return bool.
5253 * objfile.c (is_addr_in_objfile,
5254 shared_objfile_contains_address_p): Return bool.
5255
5256 2020-05-11 Tom Tromey <tromey@adacore.com>
5257
5258 * cli/cli-cmds.c (info_command): Restore.
5259 (_initialize_cli_cmds): Use add_prefix_command for "info".
5260 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5261
5262 2020-05-11 Tom Tromey <tromey@adacore.com>
5263
5264 * ada-lang.c (ada_value_primitive_field): Now public.
5265 * ada-lang.h (ada_value_primitive_field): Declare.
5266 * ada-valprint.c (print_field_values): Use
5267 ada_value_primitive_field for wrapper fields.
5268
5269 2020-05-11 Tom de Vries <tdevries@suse.de>
5270
5271 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5272 MODULE_DOMAIN.
5273
5274 2020-05-11 Tom de Vries <tdevries@suse.de>
5275
5276 PR symtab/25941
5277 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5278 with length 0, if not gdb-produced.
5279 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5280
5281 2020-05-09 Tom de Vries <tdevries@suse.de>
5282
5283 PR gdb/25955
5284 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5285 calculation.
5286
5287 2020-05-09 Tom Tromey <tom@tromey.com>
5288
5289 * top.c (server_command): Now bool.
5290 * top.h (server_command): Now bool.
5291
5292 2020-05-08 Tom Tromey <tromey@adacore.com>
5293
5294 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5295 already being processed.
5296
5297 2020-05-08 Tom Tromey <tom@tromey.com>
5298
5299 * printcmd.c (struct display) <next>: Remove.
5300 <display>: New constructor.
5301 <exp_string>: Now a std::string.
5302 <enabled_p>: Now a bool.
5303 (display_number): Move definition earlier.
5304 (displays): Rename from display_chain. Now a std::vector.
5305 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5306 (display_command): Update.
5307 (do_one_display, disable_display)
5308 (enable_disable_display_command, do_enable_disable_display):
5309 Update.
5310 (free_display): Remove.
5311 (clear_displays): Rewrite.
5312 (delete_display): Update.
5313 (map_display_numbers): Use function_view. Remove "data"
5314 parameter. Update.
5315 (do_delete_display): Remove.
5316 (undisplay_command): Update.
5317 (do_one_display, do_displays, disable_display)
5318 (info_display_command): Update.
5319 (do_enable_disable_display): Remove.
5320 (enable_disable_display_command)
5321 (clear_dangling_display_expressions): Update.
5322
5323 2020-05-08 Tom Tromey <tom@tromey.com>
5324
5325 * symtab.c (set_symbol_cache_size)
5326 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5327 (maintenance_print_symbol_cache_statistics): Update.
5328 * symmisc.c (print_symbol_bcache_statistics)
5329 (print_objfile_statistics, maintenance_print_objfiles)
5330 (maintenance_info_symtabs, maintenance_check_symtabs)
5331 (maintenance_expand_symtabs, maintenance_info_line_tables):
5332 Update.
5333 * symfile-debug.c (set_debug_symfile): Update.
5334 * source.c (forget_cached_source_info): Update.
5335 * python/python.c (gdbpy_progspaces): Update.
5336 * psymtab.c (maintenance_info_psymtabs): Update.
5337 * probe.c (parse_probes): Update.
5338 * linespec.c (iterate_over_all_matching_symtabs)
5339 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5340 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5341 * exec.c (exec_target::close): Update.
5342 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5343 * breakpoint.c (print_one_breakpoint_location)
5344 (create_longjmp_master_breakpoint)
5345 (create_std_terminate_master_breakpoint): Update.
5346 * progspace.c (program_spaces): Now a std::vector.
5347 (maybe_new_address_space): Update.
5348 (add_program_space): Remove.
5349 (program_space::program_space): Update.
5350 (remove_program_space): Update.
5351 (number_of_program_spaces): Remove.
5352 (print_program_space, update_address_spaces): Update.
5353 * progspace.h (program_spaces): Change type.
5354 (ALL_PSPACES): Remove.
5355 (number_of_program_spaces): Don't declare.
5356 (struct program_space) <next>: Remove.
5357
5358 2020-05-08 Tom Tromey <tom@tromey.com>
5359
5360 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5361 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5362 (enable_break): Update.
5363 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5364 (frv_fdpic_find_canonical_descriptor): Update.
5365 (frv_fetch_objfile_link_map): Update.
5366 * progspace.c (program_space::free_all_objfiles): Update.
5367 (program_space::solibs): New method.
5368 * progspace.h (struct program_space) <solibs>: New method.
5369 * solist.h (master_so_list): Don't declare.
5370 (ALL_SO_LIBS): Remove.
5371 * solib.h (so_list_head): Remove.
5372 (update_solib_list): Update comment.
5373 * solib.c (master_so_list): Remove.
5374 (solib_used, update_solib_list, solib_add)
5375 (info_sharedlibrary_command, clear_solib)
5376 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5377
5378 2020-05-08 Tom Tromey <tom@tromey.com>
5379
5380 * extension.c (extension_languages): Now a std::array.
5381 (ALL_EXTENSION_LANGUAGES): Remove.
5382 (get_ext_lang_defn, get_ext_lang_of_file)
5383 (eval_ext_lang_from_control_command): Update.
5384 (finish_ext_lang_initialization)
5385 (auto_load_ext_lang_scripts_for_objfile)
5386 (ext_lang_type_printers::ext_lang_type_printers)
5387 (apply_ext_lang_type_printers)
5388 (ext_lang_type_printers::~ext_lang_type_printers)
5389 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5390 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5391 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5392 (get_matching_xmethod_workers, ext_lang_colorize)
5393 (ext_lang_before_prompt): Update.
5394 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5395
5396 2020-05-08 Tom Tromey <tom@tromey.com>
5397
5398 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5399 overload.
5400 <swap_string, m_string>: Remove.
5401 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5402 Update.
5403 * stabsread.c (define_symbol, read_type): Update.
5404 * linespec.c (find_linespec_symbols): Update.
5405 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5406 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5407 * dbxread.c (read_dbx_symtab): Update.
5408 * cp-support.h (cp_canonicalize_string_full)
5409 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5410 Return unique_xmalloc_ptr.
5411 * cp-support.c (inspect_type): Update.
5412 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5413 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5414 Likewise.
5415 * c-typeprint.c (print_name_maybe_canonical): Update.
5416 * break-catch-throw.c (check_status_exception_catchpoint):
5417 Update.
5418
5419 2020-05-08 Tom de Vries <tdevries@suse.de>
5420
5421 * infrun.c (follow_fork): Copy current_line and current_symtab to
5422 child thread.
5423
5424 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5425
5426 * async-event.c (struct async_signal_handler, struct
5427 async_event_handler): Reformat, remove typedef.
5428
5429 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5430
5431 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5432 access thistype->main_type->dyn_prop_list directly.
5433
5434 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5435
5436 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5437 (remove_dyn_prop): Remove. Update all users to use
5438 type::remove_dyn_prop.
5439 * gdbtypes.c (remove_dyn_prop): Rename to...
5440 (type::remove_dyn_prop): ... this.
5441
5442 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5443
5444 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5445 (add_dyn_prop): Remove. Update all users to use
5446 type::add_dyn_prop.
5447 * gdbtypes.c (add_dyn_prop): Rename to...
5448 (type::add_dyn_prop): ... this.
5449
5450 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5451
5452 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5453 (get_dyn_prop): Remove. Update all users to use
5454 type::dyn_prop.
5455 * gdbtypes.c (get_dyn_prop): Rename to...
5456 (type::dyn_prop): ... this.
5457
5458 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5459
5460 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5461
5462 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5463
5464 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5465 instruction, skip it if it's there.
5466
5467 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
5468
5469 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5470
5471 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
5472
5473 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5474 * gdbtypes.c (recursive_dump_type): Remove use of
5475 TYPE_INCOMPLETE.
5476
5477 2020-05-03 Tom Tromey <tom@tromey.com>
5478
5479 * breakpoint.c (catch_command, tcatch_command): Remove.
5480 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5481 add_show_prefix_cmd.
5482 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5483 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5484 Remove.
5485 (add_internal_problem_command): Use add_basic_prefix_cmd,
5486 add_show_prefix_cmd.
5487 * mips-tdep.c (set_mipsfpu_command): Remove.
5488 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5489 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5490 (_initialize_index_cache): Use add_basic_prefix_cmd.
5491 * memattr.c (dummy_cmd): Remove.
5492 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5493 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5494 (_initialize_tui_win): Use add_basic_prefix_cmd,
5495 add_show_prefix_cmd.
5496 * cli/cli-logging.c (set_logging_command): Remove.
5497 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5498 add_show_prefix_cmd.
5499 (show_logging_command): Remove.
5500 * target.c (target_command): Remove.
5501 (add_target): Use add_basic_prefix_cmd.
5502
5503 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
5504
5505 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5506
5507 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5508
5509 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5510 info_command.
5511
5512 2020-04-30 Kamil Rytarowski <n54@gmx.com>
5513
5514 * nbsd-nat.c (nbsd_enable_proc_events)
5515 (nbsd_nat_target::post_startup_inferior): Add.
5516 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5517 (nbsd_nat_target::update_thread_list): Rewrite.
5518 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5519 "PTRACE_LWP_CREATE".
5520 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5521
5522 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5523
5524 * stack.c (_initialize_stack): Remove duplicated creation
5525 of "frame" command and "f" alias.
5526
5527 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5528
5529 PR gdb/18706
5530 * gdbtypes.c (check_typedef): Calculate size of array of
5531 stubbed type.
5532
5533 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5534
5535 PR gdb/15559
5536 * i386-tdep.c (i386_push_dummy_call): Call
5537 i386_thiscall_push_dummy_call.
5538 (i386_thiscall_push_dummy_call): New function.
5539 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5540 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5541 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5542
5543 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5544
5545 * gdbarch.sh (do_read): Add shellcheck disable directive for
5546 warning SC2162.
5547
5548 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5549
5550 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5551 "referenced but not assigned" warning.
5552
5553 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5554
5555 * gdbarch.sh: Remove code that sets fallbackdefault.
5556
5557 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5558
5559 * gdbarch.sh: Use shell operators && and || instead of
5560 -a and -o.
5561
5562 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5563
5564 * gdbarch.sh: Use $(...) instead of `...`.
5565
5566 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5567
5568 * gdbarch.sh: Use double quotes around variables.
5569
5570 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5571
5572 * gdbarch.sh: Use %s with printf, instead of variables in the
5573 format string.
5574
5575 2020-04-29 Tom Tromey <tromey@adacore.com>
5576
5577 PR ada/25875:
5578 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5579 type fields here.
5580 (read_enumeration_type): Call
5581 update_enumeration_type_from_children later. Update comments.
5582 (process_enumeration_scope): Don't create type fields.
5583
5584 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5585
5586 * nbsd-tdep.c: Include "xml-syscall.h".
5587 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5588
5589 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5590
5591 * nbsd-nat.c: Include "sys/wait.h".
5592 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5593 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5594 (nbsd_nat_target::remove_exec_catchpoint)
5595 (nbsd_nat_target::set_syscall_catchpoint): Add.
5596 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5597 (nbsd_nat_target::insert_exec_catchpoint)
5598 (nbsd_nat_target::remove_exec_catchpoint)
5599 (nbsd_nat_target::set_syscall_catchpoint): Add.
5600 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5601 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5602 `nbsd_get_syscall_number'.
5603
5604 2020-04-29 Tom Tromey <tom@tromey.com>
5605
5606 * stack.c (print_block_frame_labels): Remove.
5607
5608 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
5609
5610 PR gdb/17320
5611 * ada-valprint.c (val_print_packed_array_elements): Move array
5612 end bracket to new line.
5613 (ada_val_print_string): Remove extra spaces before first array
5614 element.
5615 * c-valprint.c (c_value_print_array): Likewise.
5616 * m2-valprint.c (m2_print_array_contents): Likewise.
5617 (m2_value_print_inner): Likewise.
5618 * p-valprint.c (pascal_value_print_inner): Likewise.
5619 * valprint.c (generic_val_print_array): Likewise.
5620 (value_print_array_elements): Move first array element and array
5621 end bracket to new line.
5622
5623 2020-04-29 Tom de Vries <tdevries@suse.de>
5624
5625 PR symtab/25889
5626 * linespec.c (find_method): Fix ix calculation.
5627
5628 2020-04-28 Kamil Rytarowski <n54@gmx.com>
5629
5630 * syscalls/update-netbsd.sh: New file.
5631 * syscalls/netbsd.xml: Regenerate.
5632 * data-directory/Makefile.in: Register `netbsd.xml' in
5633 `SYSCALLS_FILES'.
5634
5635 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5636
5637 * syscalls/update-freebsd.sh: Add double quotes.
5638
5639 2020-04-28 Tom Tromey <tom@tromey.com>
5640
5641 * NEWS: Update.
5642 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5643 (cmdpy_init): Allow class_tui.
5644
5645 2020-04-28 Mark Williams <mark@myosotissp.com>
5646
5647 PR gdb/24480
5648 * dwarf2read.c: Add missing assingments to list_in_scope when
5649 start_symtab was already called.
5650
5651 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5652
5653 PR gdb/25881
5654 * dwarf2/read.c (offset_map_type): Use
5655 gdb:hash_enum<sect_offset> as hash function.
5656
5657 2020-04-28 Tom de Vries <tdevries@suse.de>
5658
5659 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5660 with DW_AT_signature.
5661
5662 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
5663
5664 * configure.ac: Remove check for fs_base/gs_base in
5665 user_regs_struct.
5666 * configure: Re-generate.
5667 * config.in: Re-generate.
5668 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5669 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5670 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5671
5672 2020-04-27 Luis Machado <luis.machado@linaro.org>
5673
5674 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5675 problematic inline frame unwinding situation.
5676 * frame.c (frame_id_computed_p): New function.
5677 * frame.h (frame_id_computed_p): New prototype.
5678
5679 2020-04-26 Tom Tromey <tom@tromey.com>
5680
5681 * command.h (enum command_class) <class_pseudo>: Remove.
5682
5683 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5684
5685 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5686 and whitespace.
5687
5688 2020-04-25 Kamil Rytarowski <n54@gmx.com>
5689
5690 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5691 `PT_GET_PROCESS_STATE' block.
5692
5693 2020-04-24 Tom Tromey <tom@tromey.com>
5694
5695 * symtab.h (symbol_get_demangled_name): Don't declare.
5696 * symtab.c (symbol_get_demangled_name): Remove.
5697 (general_symbol_info::natural_name)
5698 (general_symbol_info::demangled_name): Update.
5699
5700 2020-04-24 Tom Tromey <tom@tromey.com>
5701
5702 PR rust/25025:
5703 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5704
5705 2020-04-24 Tom Tromey <tom@tromey.com>
5706
5707 PR symtab/12707:
5708 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5709 exists.
5710 (new_symbol): Likewise.
5711 * compile/compile-object-load.c (get_out_value_type): Use
5712 symbol_matches_search_name.
5713
5714 2020-04-24 Tom Tromey <tom@tromey.com>
5715
5716 * dwarf2/read.c (add_partial_symbol): Do not call
5717 compute_and_set_names.
5718
5719 2020-04-24 Tom Tromey <tom@tromey.com>
5720
5721 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5722 overload.
5723
5724 2020-04-24 Tom Tromey <tom@tromey.com>
5725
5726 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5727 (add_psymbol_to_list): New overload. Make old overload call new
5728 one.
5729 * psympriv.h (add_psymbol_to_list): New overload.
5730
5731 2020-04-24 Tom Tromey <tom@tromey.com>
5732
5733 * dwarf2/read.c (partial_die_info::read) <case
5734 DW_AT_linkage_name>: Use value_as_string.
5735 (dwarf2_string_attr): Use value_as_string.
5736 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5737 method.
5738 * dwarf2/attribute.c (attribute::value_as_string): New method.
5739
5740 2020-04-24 Tom Tromey <tom@tromey.com>
5741
5742 * symtab.c (general_symbol_info::natural_name)
5743 (general_symbol_info::demangled_name): Check for language_rust.
5744
5745 2020-04-24 Tom Tromey <tom@tromey.com>
5746
5747 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5748 (dwarf2_physname): ... from here.
5749 (partial_die_info::read): Add Rust "{" hack.
5750
5751 2020-04-24 Tom Tromey <tom@tromey.com>
5752
5753 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5754 method.
5755 (symbol_set_demangled_name): Don't declare.
5756 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5757 symbol_set_demangled_name.
5758 (general_symbol_info::set_language)
5759 (general_symbol_info::compute_and_set_names): Update.
5760 * minsyms.c (minimal_symbol_reader::install): Update.
5761 * dwarf2/read.c (new_symbol): Update.
5762
5763 2020-04-24 Tom Tromey <tromey@adacore.com>
5764
5765 PR python/23662:
5766 * python/py-type.c (convert_field): Handle
5767 FIELD_LOC_KIND_DWARF_BLOCK.
5768 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5769 (typy_get_dynamic): Nw function.
5770 (type_object_getset): Add "dynamic".
5771 * NEWS: Add entry.
5772
5773 2020-04-24 Tom Tromey <tromey@adacore.com>
5774
5775 * ada-typeprint.c (print_choices, print_variant_part)
5776 (print_record_field_types_dynamic): New functions.
5777 (print_record_field_types): Use print_record_field_types_dynamic.
5778
5779 2020-04-24 Tom Tromey <tromey@adacore.com>
5780
5781 * dwarf2/read.c (handle_data_member_location): New overload.
5782 (dwarf2_add_field): Use it.
5783 (decode_locdesc): Add "computed" parameter. Update comment.
5784 * gdbtypes.c (is_dynamic_type_internal): Also look for
5785 FIELD_LOC_KIND_DWARF_BLOCK.
5786 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5787 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5788 virtual base classes.
5789 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5790 FIELD_LOC_KIND_DWARF_BLOCK.
5791
5792 2020-04-24 Tom Tromey <tromey@adacore.com>
5793
5794 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5795 * gdbtypes.c (is_dynamic_type_internal): Check
5796 TYPE_HAS_DYNAMIC_LENGTH.
5797 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5798 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5799 New macros.
5800 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5801 constant.
5802
5803 2020-04-24 Tom Tromey <tromey@adacore.com>
5804
5805 * dwarf2/read.c (struct variant_field): Rewrite.
5806 (struct variant_part_builder): New.
5807 (struct nextfield): Remove "variant" field. Add "offset".
5808 (struct field_info): Add "current_variant_part" and
5809 "variant_parts".
5810 (alloc_discriminant_info): Remove.
5811 (alloc_rust_variant): New function.
5812 (quirk_rust_enum): Update.
5813 (dwarf2_add_field): Set "offset" member. Don't handle
5814 DW_TAG_variant_part.
5815 (offset_map_type): New typedef.
5816 (convert_variant_range, create_one_variant)
5817 (create_one_variant_part, create_variant_parts)
5818 (add_variant_property): New functions.
5819 (dwarf2_attach_fields_to_type): Call add_variant_property.
5820 (read_structure_type): Don't handle DW_TAG_variant_part.
5821 (handle_variant_part, handle_variant): New functions.
5822 (handle_struct_member_die): Use them.
5823 (process_structure_scope): Don't handle variant parts.
5824 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5825 (struct discriminant_info): Remove.
5826 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5827 (struct main_type) <flag_discriminated_union>: Remove.
5828 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5829 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5830 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5831 Update.
5832 * valops.c (value_union_variant): Remove.
5833 * value.h (value_union_variant): Don't declare.
5834
5835 2020-04-24 Tom Tromey <tromey@adacore.com>
5836
5837 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5838 (ada_value_primitive_packed_val): Update.
5839 * ada-valprint.c (ada_value_print_1): Update.
5840 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5841 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5842 just an address. Use evaluate_for_locexpr_baton.
5843 (dwarf2_evaluate_property): Update.
5844 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5845 array_view.
5846 * findvar.c (default_read_var_value): Update.
5847 * gdbtypes.c (compute_variant_fields_inner)
5848 (resolve_dynamic_type_internal): Update.
5849 (resolve_dynamic_type): Change type of valaddr parameter.
5850 * gdbtypes.h (resolve_dynamic_type): Update.
5851 * valarith.c (value_subscripted_rvalue): Update.
5852 * value.c (value_from_contents_and_address): Update.
5853
5854 2020-04-24 Tom Tromey <tromey@adacore.com>
5855
5856 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5857 "push_initial_value" parameter.
5858 (dwarf2_evaluate_property): Likewise.
5859 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5860
5861 2020-04-24 Tom Tromey <tromey@adacore.com>
5862
5863 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5864 (variant::matches, compute_variant_fields_recurse)
5865 (compute_variant_fields_inner, compute_variant_fields): New
5866 functions.
5867 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5868 Use resolved_type after type is made.
5869 (operator==): Add new cases.
5870 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5871 (struct discriminant_range, struct variant, struct variant_part):
5872 New.
5873 (union dynamic_prop_data) <variant_parts, original_type>: New
5874 members.
5875 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5876 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5877 constants.
5878 * value.c (unpack_bits_as_long): Now public.
5879 * value.h (unpack_bits_as_long): Declare.
5880
5881 2020-04-24 Tom Tromey <tromey@adacore.com>
5882
5883 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5884 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5885
5886 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
5887
5888 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5889
5890 2020-04-24 Kamil Rytarowski <n54@gmx.com>
5891
5892 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5893 (remove_fork_catchpoint, post_startup_inferior)
5894 (post_attach): Move...
5895 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5896 (remove_fork_catchpoint, post_startup_inferior)
5897 (post_attach): ...here.
5898 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5899 (remove_fork_catchpoint, post_startup_inferior)
5900 (post_attach): Move...
5901 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5902 (remove_fork_catchpoint, post_startup_inferior)
5903 (post_attach): ...here.
5904
5905 2020-04-24 Tom Tromey <tromey@adacore.com>
5906
5907 * nat/windows-nat.h (struct windows_thread_info)
5908 <pc_adjusted>: New member.
5909 * windows-nat.c (windows_fetch_one_register): Check
5910 pc_adjusted.
5911 (windows_nat_target::get_windows_debug_event)
5912 (windows_nat_target::wait): Set pc_adjusted.
5913
5914 2020-04-24 Tom de Vries <tdevries@suse.de>
5915
5916 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5917 Run gdb-add-index inside temp dir.
5918
5919 2020-04-23 Tom Tromey <tromey@adacore.com>
5920
5921 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5922 in loop.
5923
5924 2020-04-23 Luis Machado <luis.machado@linaro.org>
5925
5926 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5927 get_frame_register instead of gdbarch_unwind_pc.
5928
5929 2020-04-23 Tom de Vries <tdevries@suse.de>
5930
5931 * symtab.c (lookup_global_symbol): Prefer def over decl.
5932
5933 2020-04-23 Tom de Vries <tdevries@suse.de>
5934
5935 PR symtab/25807
5936 * block.c (best_symbol, better_symbol): Promote to external.
5937 * block.h (best_symbol, better_symbol): Declare.
5938 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5939 decl.
5940
5941 2020-04-23 Tom Tromey <tromey@adacore.com>
5942
5943 PR ada/25837:
5944 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5945 "const char *", not a "const std::string &".
5946 <name_and_matcher::operator==>: Update.
5947 * unittests/lookup_name_info-selftests.c: Change type of
5948 "result".
5949
5950 2020-04-23 Tom Tromey <tom@tromey.com>
5951
5952 * inferior.h (iterate_over_inferiors): Don't declare.
5953 * inferior.c (iterate_over_inferiors): Remove.
5954 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5955 Remove.
5956 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5957 use iterate_over_inferiors.
5958 (darwin_resume_inferior_it)
5959 (struct resume_inferior_threads_param)
5960 (darwin_resume_inferior_threads_it): Remove.
5961 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5962
5963 2020-04-23 Tom de Vries <tdevries@suse.de>
5964
5965 * blockframe.c (find_pc_partial_function): Use
5966 find_pc_sect_compunit_symtab rather than
5967 objfile->sf->qf->find_pc_sect_compunit_symtab.
5968
5969 2020-04-22 Tom de Vries <tdevries@suse.de>
5970
5971 PR symtab/25764
5972 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5973 in psymtabs.
5974
5975 2020-04-22 Tom de Vries <tdevries@suse.de>
5976
5977 PR symtab/25801
5978 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5979 symtabs.
5980
5981 2020-04-22 Tom de Vries <tdevries@suse.de>
5982
5983 PR symtab/25700
5984 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5985 CU if already created.
5986
5987 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5988
5989 * infrun.c (displaced_step_fixup): Switch to the event_thread
5990 before calling displaced_step_restore, not after.
5991
5992 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5993
5994 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5995 its inferior is not recorded by us.
5996 (record_btrace_target_open): Replace call to
5997 all_non_exited_threads () with call to current_inferior
5998 ()->non_exited_threads ().
5999 (record_btrace_target::stop_recording): Likewise.
6000 (record_btrace_target::close): Likewise.
6001 (record_btrace_target::wait): Likewise.
6002 (record_btrace_target::record_stop_replaying): Likewise.
6003
6004 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6005
6006 * btrace.c (btrace_enable): Throw an error on double enables and
6007 when enabling recording fails.
6008 (btrace_disable): Throw an error if the thread is not recorded.
6009
6010 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6011
6012 * record-btrace.c (record_btrace_target::fetch_registers): Forward
6013 request if we do not have a thread_info.
6014
6015 2020-04-21 Tom de Vries <tdevries@suse.de>
6016
6017 PR gdb/25471
6018 * thread.c
6019 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
6020 exception in get_frame_id.
6021
6022 2020-04-20 Tom Tromey <tromey@adacore.com>
6023
6024 * python/python.c (struct gdbpy_event): Mark move constructor as
6025 noexcept.
6026 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
6027 constructor as noexcept.
6028 * completer.h (struct completion_result): Mark move constructor as
6029 noexcept.
6030 * completer.c (completion_result::completion_result): Use
6031 initialization style. Don't call reset_match_list.
6032
6033 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
6034
6035 * MAINTAINERS (Write After Approval): Add myself.
6036
6037 2020-04-18 Tom Tromey <tom@tromey.com>
6038
6039 * windows-tdep.c (init_w32_command_list)
6040 (w32_prefix_command_valid): Restore.
6041 (_initialize_windows_tdep): Call init_w32_command_list.
6042
6043 2020-04-18 Tom Tromey <tom@tromey.com>
6044
6045 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
6046 * value.c (value_fn_field): Update.
6047 * valops.c (find_function_in_inferior)
6048 (value_allocate_space_in_inferior): Update.
6049 * tui/tui-winsource.c (tui_update_source_windows_with_line):
6050 Update.
6051 * tui/tui-source.c (tui_source_window::set_contents): Update.
6052 * symtab.c (lookup_global_or_static_symbol)
6053 (find_function_start_sal_1, skip_prologue_sal)
6054 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
6055 * symmisc.c (dump_msymbols, dump_symtab_1)
6056 (maintenance_print_one_line_table): Update.
6057 * symfile.c (init_entry_point_info, section_is_mapped)
6058 (list_overlays_command, simple_read_overlay_table)
6059 (simple_overlay_update_1): Update.
6060 * stap-probe.c (handle_stap_probe): Update.
6061 * stabsread.c (dbx_init_float_type, define_symbol)
6062 (read_one_struct_field, read_enum_type, read_range_type): Update.
6063 * source.c (info_line_command): Update.
6064 * python/python.c (gdbpy_source_objfile_script)
6065 (gdbpy_execute_objfile_script): Update.
6066 * python/py-type.c (save_objfile_types): Update.
6067 * python/py-objfile.c (py_free_objfile): Update.
6068 * python/py-inferior.c (python_new_objfile): Update.
6069 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
6070 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
6071 (maintenance_check_psymtabs): Update.
6072 * printcmd.c (info_address_command): Update.
6073 * objfiles.h (struct objfile) <arch>: New method, from
6074 get_objfile_arch.
6075 (get_objfile_arch): Don't declare.
6076 * objfiles.c (get_objfile_arch): Remove.
6077 (filter_overlapping_sections): Update.
6078 * minsyms.c (msymbol_is_function): Update.
6079 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
6080 (output_nondebug_symbol): Update.
6081 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
6082 (mdebug_expand_psymtab): Update.
6083 * machoread.c (macho_add_oso_symfile): Update.
6084 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
6085 Update.
6086 * linux-fork.c (checkpoint_command): Update.
6087 * linespec.c (convert_linespec_to_sals): Update.
6088 * jit.c (finalize_symtab): Update.
6089 * infrun.c (insert_exception_resume_from_probe): Update.
6090 * ia64-tdep.c (ia64_find_unwind_table): Update.
6091 * hppa-tdep.c (internalize_unwinds): Update.
6092 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
6093 Update.
6094 * gcore.c (call_target_sbrk): Update.
6095 * elfread.c (record_minimal_symbol, elf_symtab_read)
6096 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
6097 (elf_gnu_ifunc_resolve_by_got): Update.
6098 * dwarf2/read.c (create_addrmap_from_index)
6099 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6100 (read_debug_names_from_section)
6101 (process_psymtab_comp_unit_reader, add_partial_symbol)
6102 (add_partial_subprogram, process_full_comp_unit)
6103 (read_file_scope, read_func_scope, read_lexical_block_scope)
6104 (read_call_site_scope, dwarf2_ranges_read)
6105 (dwarf2_record_block_ranges, dwarf2_add_field)
6106 (mark_common_block_symbol_computed, read_tag_pointer_type)
6107 (read_tag_string_type, dwarf2_init_float_type)
6108 (dwarf2_init_complex_target_type, read_base_type)
6109 (partial_die_info::read, partial_die_info::read)
6110 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
6111 (dwarf2_fetch_die_loc_sect_off): Update.
6112 * dwarf2/loc.c (dwarf2_find_location_expression)
6113 (class dwarf_evaluate_loc_desc, rw_pieced_value)
6114 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
6115 (dwarf2_loc_desc_get_symbol_read_needs)
6116 (locexpr_describe_location_piece, locexpr_describe_location_1)
6117 (loclist_describe_location): Update.
6118 * dwarf2/index-write.c (write_debug_names): Update.
6119 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
6120 * dtrace-probe.c (dtrace_process_dof): Update.
6121 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6122 (process_one_symbol): Update.
6123 * ctfread.c (ctf_init_float_type, read_base_type): Update.
6124 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6125 (coff_read_enum_type): Update.
6126 * cli/cli-cmds.c (edit_command, list_command): Update.
6127 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6128 * breakpoint.c (create_overlay_event_breakpoint)
6129 (create_longjmp_master_breakpoint)
6130 (create_std_terminate_master_breakpoint)
6131 (create_exception_master_breakpoint, get_sal_arch): Update.
6132 * block.c (block_gdbarch): Update.
6133 * annotate.c (annotate_source_line): Update.
6134
6135 2020-04-17 Tom Tromey <tromey@adacore.com>
6136
6137 * auto-load.c (show_auto_load_cmd): Remove.
6138 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6139 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6140 (maintenance_print_arc_command): Remove.
6141 * tui/tui-win.c (tui_command): Remove.
6142 (tui_get_cmd_list): Use add_basic_prefix_cmd.
6143 * tui/tui-layout.c (tui_layout_command): Remove.
6144 (_initialize_tui_layout): Use add_basic_prefix_cmd.
6145 * python/python.c (user_set_python, user_show_python): Remove.
6146 (_initialize_python): Use add_basic_prefix_cmd,
6147 add_show_prefix_cmd.
6148 * guile/guile.c (set_guile_command, show_guile_command): Remove.
6149 (install_gdb_commands): Use add_basic_prefix_cmd,
6150 add_show_prefix_cmd.
6151 (info_guile_command): Remove.
6152 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6153 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6154 add_show_prefix_cmd.
6155 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6156 Remove do_set and do_show parameters.
6157 * cli/cli-style.c (set_style, show_style): Remove.
6158 (_initialize_cli_style): Use add_basic_prefix_cmd,
6159 add_show_prefix_cmd.
6160 (cli_style_option::add_setshow_commands): Remove do_set and
6161 do_show parameters.
6162 (cli_style_option::add_setshow_commands): Use
6163 add_basic_prefix_cmd, add_show_prefix_cmd.
6164 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6165 (set_style_name): Remove.
6166 * cli/cli-dump.c (dump_command, append_command): Remove.
6167 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6168 (tekhex_dump_command, binary_dump_command)
6169 (binary_append_command): Remove.
6170 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6171 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6172 (init_w32_command_list): Remove; move into ...
6173 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6174 * valprint.c (set_print, show_print, set_print_raw)
6175 (show_print_raw): Remove.
6176 (_initialize_valprint): Use add_basic_prefix_cmd,
6177 add_show_prefix_cmd.
6178 * typeprint.c (set_print_type, show_print_type): Remove.
6179 (_initialize_typeprint): Use add_basic_prefix_cmd,
6180 add_show_prefix_cmd.
6181 * record.c (set_record_command, show_record_command): Remove.
6182 (_initialize_record): Use add_basic_prefix_cmd,
6183 add_show_prefix_cmd.
6184 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6185 add_show_prefix_cmd.
6186 (info_command, show_command, set_debug, show_debug): Remove.
6187 * top.h (set_history, show_history): Don't declare.
6188 * top.c (set_history, show_history): Remove.
6189 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6190 (unset_tdesc_cmd): Remove.
6191 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6192 add_show_prefix_cmd.
6193 * symtab.c (info_module_command): Remove.
6194 (_initialize_symtab): Use add_basic_prefix_cmd.
6195 * symfile.c (overlay_command): Remove.
6196 (_initialize_symfile): Use add_basic_prefix_cmd.
6197 * sparc64-tdep.c (info_adi_command): Remove.
6198 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6199 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6200 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6201 add_show_prefix_cmd.
6202 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6203 (_initialize_serial): Use add_basic_prefix_cmd,
6204 add_show_prefix_cmd.
6205 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6206 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6207 add_show_prefix_cmd.
6208 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6209 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6210 add_show_prefix_cmd.
6211 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6212 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6213 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6214 add_show_prefix_cmd.
6215 * remote.c (remote_command, set_remote_cmd): Remove.
6216 (_initialize_remote): Use add_basic_prefix_cmd.
6217 * record-full.c (set_record_full_command)
6218 (show_record_full_command): Remove.
6219 (_initialize_record_full): Use add_basic_prefix_cmd,
6220 add_show_prefix_cmd.
6221 * record-btrace.c (cmd_set_record_btrace)
6222 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6223 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6224 (cmd_show_record_btrace_pt): Remove.
6225 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6226 add_show_prefix_cmd.
6227 * ravenscar-thread.c (set_ravenscar_command)
6228 (show_ravenscar_command): Remove.
6229 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6230 add_show_prefix_cmd.
6231 * mips-tdep.c (show_mips_command, set_mips_command)
6232 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6233 add_show_prefix_cmd.
6234 * maint.c (maintenance_command, maintenance_info_command)
6235 (maintenance_check_command, maintenance_print_command)
6236 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6237 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6238 add_show_prefix_cmd.
6239 (show_per_command_cmd): Remove.
6240 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6241 Remove.
6242 (maintenance_show_test_settings_cmd): Remove.
6243 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6244 add_show_prefix_cmd.
6245 * maint-test-options.c (maintenance_test_options_command):
6246 Remove.
6247 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6248 * macrocmd.c (macro_command): Remove
6249 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6250 * language.c (set_check, show_check): Remove.
6251 (_initialize_language): Use add_basic_prefix_cmd,
6252 add_show_prefix_cmd.
6253 * infcmd.c (unset_command): Remove.
6254 (_initialize_infcmd): Use add_basic_prefix_cmd.
6255 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6256 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6257 add_show_prefix_cmd.
6258 * go32-nat.c (go32_info_dos_command): Remove.
6259 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6260 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6261 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6262 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6263 (_initialize_frame): Use add_basic_prefix_cmd,
6264 add_show_prefix_cmd.
6265 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6266 (_initialize_dcache): Use add_basic_prefix_cmd,
6267 add_show_prefix_cmd.
6268 * cp-support.c (maint_cplus_command): Remove.
6269 (_initialize_cp_support): Use add_basic_prefix_cmd.
6270 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6271 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6272 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6273 add_basic_prefix_cmd, add_show_prefix_cmd.
6274 * breakpoint.c (save_command): Remove.
6275 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6276 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6277 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6278 add_show_prefix_cmd.
6279 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6280 (set_ada_command, show_ada_command): Remove.
6281 (_initialize_ada_language): Use add_basic_prefix_cmd,
6282 add_show_prefix_cmd.
6283 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6284
6285 2020-04-16 Kamil Rytarowski <n54@gmx.com>
6286
6287 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6288 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6289
6290 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6291
6292 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6293 warning messages.
6294
6295 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6296
6297 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6298 import table is not at beginning of .idata section.
6299
6300 2020-04-16 Pedro Alves <palves@redhat.com>
6301
6302 * inferior.c (delete_inferior): Use delete operator directly
6303 instead of delete_program_space.
6304 * progspace.c (add_program_space): New, factored out from
6305 program_space::program_space.
6306 (remove_program_space): New, factored out from
6307 delete_program_space.
6308 (program_space::program_space): Remove intro comment. Rewrite.
6309 (program_space::~program_space): Remove intro comment. Call
6310 remove_program_space.
6311 (delete_program_space): Delete.
6312 * progspace.h (program_space::program_space): Make explicit. Move
6313 intro comment here, adjusted.
6314 (program_space::~program_space): Move intro comment here,
6315 adjusted.
6316 (delete_program_space): Remove.
6317
6318 2020-04-16 Tom Tromey <tromey@adacore.com>
6319
6320 * windows-nat.c (windows_nat::handle_access_violation): New
6321 function.
6322 * nat/windows-nat.h (handle_access_violation): Declare.
6323 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6324 windows-nat.c. Call handle_access_violation.
6325
6326 2020-04-16 Tom de Vries <tdevries@suse.de>
6327
6328 PR symtab/25791
6329 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6330 CUs without psymtab.
6331
6332 2020-04-16 Kevin Buettner <kevinb@redhat.com>
6333
6334 * python/python.c (do_start_initialization): Don't call
6335 PyEval_InitThreads for Python 3.9 and beyond.
6336
6337 2020-04-15 Kamil Rytarowski <n54@gmx.com>
6338
6339 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6340 thread functions.
6341 (obsd_nat_target::wait): Likewise.
6342
6343 2020-04-15 Tom Tromey <tromey@adacore.com>
6344
6345 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6346 (DEBUG_EXCEPT): Use debug_printf.
6347
6348 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6349
6350 * completer.c (class completion_tracker::completion_hash_entry)
6351 <hash_name>: New member function.
6352 (completion_tracker::discard_completions): New callback to hash a
6353 completion_hash_entry, pass this to htab_create_alloc.
6354
6355 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6356
6357 * windows-nat.c (windows_make_so): Warn rather than stopping with
6358 an error if realpath() fails.
6359
6360 2020-04-14 Kamil Rytarowski <n54@gmx.com>
6361
6362 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6363 (nbsd_nat_target::info_proc): Add do_status.
6364
6365 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6366 Tom de Vries <tdevries@suse.de>
6367
6368 PR symtab/25718
6369 * psympriv.h (struct partial_symtab::read_symtab)
6370 (struct partial_symtab::expand_psymtab)
6371 (struct partial_symtab::read_dependencies): Update comments.
6372 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6373 read_symtab for includer.
6374 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6375 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6376 (struct dwarf2_include_psymtab::m_readin): Remove.
6377 (struct dwarf2_include_psymtab::includer): New member function.
6378 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6379
6380 2020-04-14 Tom de Vries <tdevries@suse.de>
6381
6382 PR symtab/25720
6383 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6384 with NULL symbol_matcher and lookup_name.
6385 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6386 and lookup_name.
6387 * dwarf2/read.c (dw2_expand_symtabs_matching)
6388 (dw2_debug_names_expand_symtabs_matching): Same.
6389 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6390 Make lookup_name a pointer. Update comment.
6391 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6392 lookup_name being a pointer.
6393 * symfile.c (expand_symtabs_matching): Same.
6394 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6395 * linespec.c (iterate_over_all_matching_symtabs): Same.
6396
6397 2020-04-13 Tom Tromey <tom@tromey.com>
6398
6399 * run-on-main-thread.c: Update include.
6400 * unittests/main-thread-selftests.c: Update include.
6401 * tui/tui-win.c: Update include.
6402 * tui/tui-io.c: Update include.
6403 * tui/tui-interp.c: Update include.
6404 * tui/tui-hooks.c: Update include.
6405 * top.h: Update include.
6406 * top.c: Update include.
6407 * ser-base.c: Update include.
6408 * remote.c: Update include.
6409 * remote-notif.c: Update include.
6410 * remote-fileio.c: Update include.
6411 * record-full.c: Update include.
6412 * record-btrace.c: Update include.
6413 * python/python.c: Update include.
6414 * posix-hdep.c: Update include.
6415 * mingw-hdep.c: Update include.
6416 * mi/mi-main.c: Update include.
6417 * mi/mi-interp.c: Update include.
6418 * main.c: Update include.
6419 * linux-nat.c: Update include.
6420 * interps.c: Update include.
6421 * infrun.c: Update include.
6422 * inf-loop.c: Update include.
6423 * event-top.c: Update include.
6424 * event-loop.c: Move to ../gdbsupport/.
6425 * event-loop.h: Move to ../gdbsupport/.
6426 * async-event.h: Update include.
6427 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6428
6429 2020-04-13 Tom Tromey <tom@tromey.com>
6430
6431 * tui/tui-win.c: Include async-event.h.
6432 * remote.c: Include async-event.h.
6433 * remote-notif.c: Include async-event.h.
6434 * record-full.c: Include async-event.h.
6435 * record-btrace.c: Include async-event.h.
6436 * infrun.c: Include async-event.h.
6437 * event-top.c: Include async-event.h.
6438 * event-loop.h: Move some declarations to async-event.h.
6439 * event-loop.c: Don't include ser-event.h or top.h. Move some
6440 code to async-event.c.
6441 * async-event.h: New file.
6442 * async-event.c: New file.
6443 * Makefile.in (COMMON_SFILES): Add async-event.c.
6444 (HFILES_NO_SRCDIR): Add async-event.h.
6445
6446 2020-04-13 Tom Tromey <tom@tromey.com>
6447
6448 * utils.c (flush_streams): New function.
6449 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6450
6451 2020-04-13 Tom Tromey <tom@tromey.com>
6452
6453 * event-loop.c (handle_file_event): Use warning, not
6454 printf_unfiltered.
6455
6456 2020-04-13 Tom Tromey <tom@tromey.com>
6457
6458 * event-loop.c: Include <chrono>.
6459
6460 2020-04-13 Tom Tromey <tom@tromey.com>
6461
6462 * gdb_select.h: Move to ../gdbsupport/.
6463 * event-loop.c: Update include path.
6464 * top.c: Update include path.
6465 * ser-base.c: Update include path.
6466 * ui-file.c: Update include path.
6467 * ser-tcp.c: Update include path.
6468 * guile/scm-ports.c: Update include path.
6469 * posix-hdep.c: Update include path.
6470 * ser-unix.c: Update include path.
6471 * gdb_usleep.c: Update include path.
6472 * mingw-hdep.c: Update include path.
6473 * inflow.c: Update include path.
6474 * infrun.c: Update include path.
6475 * event-top.c: Update include path.
6476
6477 2020-04-13 Tom Tromey <tom@tromey.com>
6478
6479 * configure: Rebuild.
6480 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6481
6482 2020-04-13 Tom Tromey <tom@tromey.com>
6483
6484 * event-loop.h (start_event_loop): Don't declare.
6485 * event-loop.c (start_event_loop): Move...
6486 * main.c (start_event_loop): ...here. Now static.
6487
6488 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6489
6490 * MAINTAINERS: Update my email address.
6491
6492 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6493
6494 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6495 IP_ALL.
6496
6497 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6498
6499 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
6500 (nbsd_nat_target::info_proc): Add do_cmdline.
6501
6502 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6503
6504 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
6505 (nbsd_nat_target::info_proc): Add do_cwd.
6506
6507 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6508
6509 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6510
6511 2020-04-11 Kamil Rytarowski <n54@gmx.com>
6512
6513 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6514 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6515 (nbsd_nat_target::info_proc): New functions.
6516 * nbsd-nat.c (kinfo_get_vmmap): New function.
6517 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6518 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6519 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6520 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6521 functions.
6522 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6523 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6524 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6525 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6526 (KINFO_VME_FLAG_GROWS_DOWN): New.
6527
6528 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6529
6530 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6531 bit shift.
6532
6533 2020-04-10 Tom Tromey <tromey@adacore.com>
6534
6535 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6536
6537 2020-04-10 Tom Tromey <tromey@adacore.com>
6538
6539 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6540 separate debug files.
6541
6542 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
6543
6544 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6545 Move to...
6546 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6547 ... here.
6548 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6549 Check for STATUS_WX86_BREAKPOINT.
6550 (windows_nat_target::wait): Same.
6551
6552 2020-04-10 Tom de Vries <tdevries@suse.de>
6553
6554 PR cli/25808
6555 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6556
6557 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6558
6559 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6560 (Write After Approval): Remove Tom de Vries.
6561
6562 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6563
6564 revert partially:
6565 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6566
6567 * buildsym.c (record_line): Fix undefined behavior and preserve
6568 lines at eof.
6569
6570 2020-04-09 Kamil Rytarowski <n54@gmx.com>
6571
6572 * auxv.h (svr4_auxv_parse): New.
6573 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6574 and generic_auxv_parse.
6575 (svr4_auxv_parse): Add.
6576 * obsd-tdep.c: Include "auxv.h".
6577 (obsd_auxv_parse): Remove.
6578 (obsd_init_abi): Remove comment.
6579 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6580 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6581 * nbsd-tdep.c: Include "auxv.h".
6582 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6583
6584 2020-04-08 Tom Tromey <tromey@adacore.com>
6585
6586 * nat/windows-nat.h (last_wait_event): Don't declare.
6587 (wait_for_debug_event): Update comment.
6588 * nat/windows-nat.c (last_wait_event): Now static.
6589
6590 2020-04-08 Tom Tromey <tromey@adacore.com>
6591
6592 * windows-nat.c (wait_for_debug_event): Move to
6593 nat/windows-nat.c.
6594 * nat/windows-nat.h (wait_for_debug_event): Declare.
6595 * nat/windows-nat.c (wait_for_debug_event): Move from
6596 windows-nat.c. No longer static.
6597
6598 2020-04-08 Tom Tromey <tromey@adacore.com>
6599
6600 * windows-nat.c (get_windows_debug_event): Use
6601 fetch_pending_stop.
6602 * nat/windows-nat.h (fetch_pending_stop): Declare.
6603 * nat/windows-nat.c (fetch_pending_stop): New function.
6604
6605 2020-04-08 Tom Tromey <tromey@adacore.com>
6606
6607 * windows-nat.c (windows_continue): Use matching_pending_stop and
6608 continue_last_debug_event.
6609 * nat/windows-nat.h (matching_pending_stop)
6610 (continue_last_debug_event): Declare.
6611 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6612 (matching_pending_stop, continue_last_debug_event): New
6613 functions.
6614
6615 2020-04-08 Tom Tromey <tromey@adacore.com>
6616
6617 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6618 (handle_exception_result): Move to nat/windows-nat.h.
6619 (DEBUG_EXCEPTION_SIMPLE): Remove.
6620 (windows_nat::handle_ms_vc_exception): New function.
6621 (handle_exception): Move to nat/windows-nat.c.
6622 (get_windows_debug_event): Update.
6623 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6624 nat/windows-nat.c.
6625 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6626 (handle_exception_result): Move from windows-nat.c.
6627 (handle_exception): Declare.
6628 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6629 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6630 windows-nat.c.
6631
6632 2020-04-08 Tom Tromey <tromey@adacore.com>
6633
6634 * windows-nat.c (exception_count, event_count): Remove.
6635 (handle_exception, get_windows_debug_event)
6636 (do_initial_windows_stuff): Update.
6637
6638 2020-04-08 Tom Tromey <tromey@adacore.com>
6639
6640 * windows-nat.c (windows_nat::handle_load_dll)
6641 (windows_nat::handle_unload_dll): Rename. No longer static.
6642 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6643 Declare.
6644
6645 2020-04-08 Tom Tromey <tromey@adacore.com>
6646
6647 * complaints.h (stop_whining): Declare at top-level.
6648 (complaint): Don't declare stop_whining.
6649
6650 2020-04-08 Tom Tromey <tromey@adacore.com>
6651
6652 * windows-nat.c (windows_nat::handle_output_debug_string):
6653 Rename. No longer static.
6654 * nat/windows-nat.h (handle_output_debug_string): Declare.
6655
6656 2020-04-08 Tom Tromey <tromey@adacore.com>
6657
6658 * windows-nat.c (current_process_handle, current_process_id)
6659 (main_thread_id, last_sig, current_event, last_wait_event)
6660 (current_windows_thread, desired_stop_thread_id, pending_stops)
6661 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6662 (display_selectors, fake_create_process)
6663 (get_windows_debug_event): Update.
6664 * nat/windows-nat.h (current_process_handle, current_process_id)
6665 (main_thread_id, last_sig, current_event, last_wait_event)
6666 (current_windows_thread, desired_stop_thread_id, pending_stops)
6667 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6668 * nat/windows-nat.c (current_process_handle, current_process_id)
6669 (main_thread_id, last_sig, current_event, last_wait_event)
6670 (current_windows_thread, desired_stop_thread_id, pending_stops)
6671 (siginfo_er): New globals. Move from windows-nat.c.
6672
6673 2020-04-08 Tom Tromey <tromey@adacore.com>
6674
6675 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6676 (handle_load_dll): Update.
6677 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6678
6679 2020-04-08 Tom Tromey <tromey@adacore.com>
6680
6681 * windows-nat.c (enum thread_disposition_type): Move to
6682 nat/windows-nat.h.
6683 (windows_nat::thread_rec): Rename from thread_rec. No longer
6684 static.
6685 (windows_add_thread, windows_nat_target::fetch_registers)
6686 (windows_nat_target::store_registers, handle_exception)
6687 (windows_nat_target::resume, get_windows_debug_event)
6688 (windows_nat_target::get_tib_address)
6689 (windows_nat_target::thread_name)
6690 (windows_nat_target::thread_alive): Update.
6691 * nat/windows-nat.h (enum thread_disposition_type): Move from
6692 windows-nat.c.
6693 (thread_rec): Declare.
6694
6695 2020-04-08 Tom Tromey <tromey@adacore.com>
6696
6697 * windows-nat.c: Add "using namespace".
6698 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6699 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6700
6701 2020-04-08 Tom Tromey <tromey@adacore.com>
6702
6703 * nat/windows-nat.h (struct windows_thread_info): Declare
6704 destructor.
6705 * nat/windows-nat.c (~windows_thread_info): New.
6706
6707 2020-04-08 Tom Tromey <tromey@adacore.com>
6708
6709 PR gdb/22992
6710 * windows-nat.c (current_event): Update comment.
6711 (last_wait_event, desired_stop_thread_id): New globals.
6712 (struct pending_stop): New.
6713 (pending_stops): New global.
6714 (windows_nat_target) <stopped_by_sw_breakpoint>
6715 <supports_stopped_by_sw_breakpoint>: New methods.
6716 (windows_fetch_one_register): Add assertions. Adjust PC.
6717 (windows_continue): Handle pending stops. Suspend other threads
6718 when stepping. Use last_wait_event
6719 (wait_for_debug_event): New function.
6720 (get_windows_debug_event): Use wait_for_debug_event. Handle
6721 pending stops. Queue spurious stops.
6722 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6723 (windows_nat_target::kill): Use wait_for_debug_event.
6724 * nat/windows-nat.h (struct windows_thread_info)
6725 <stopped_at_software_breakpoint>: New field.
6726 * nat/windows-nat.c (windows_thread_info::resume): Clear
6727 stopped_at_software_breakpoint.
6728
6729 2020-04-08 Tom Tromey <tromey@adacore.com>
6730
6731 * windows-nat.c (enum thread_disposition_type): New.
6732 (thread_rec): Replace "get_context" parameter with "disposition";
6733 change type.
6734 (windows_add_thread, windows_nat_target::fetch_registers)
6735 (windows_nat_target::store_registers, handle_exception)
6736 (windows_nat_target::resume, get_windows_debug_event)
6737 (windows_nat_target::get_tib_address)
6738 (windows_nat_target::thread_name)
6739 (windows_nat_target::thread_alive): Update.
6740
6741 2020-04-08 Tom Tromey <tromey@adacore.com>
6742
6743 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6744 (windows_continue): Use windows_continue::resume.
6745 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6746 resume>: Declare new methods.
6747 * nat/windows-nat.c: New file.
6748 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6749
6750 2020-04-08 Tom Tromey <tromey@adacore.com>
6751
6752 * windows-nat.c (windows_add_thread, windows_delete_thread)
6753 (windows_nat_target::fetch_registers)
6754 (windows_nat_target::store_registers, fake_create_process)
6755 (windows_nat_target::resume, windows_nat_target::resume)
6756 (get_windows_debug_event, windows_nat_target::wait)
6757 (windows_nat_target::pid_to_str)
6758 (windows_nat_target::get_tib_address)
6759 (windows_nat_target::get_ada_task_ptid)
6760 (windows_nat_target::thread_name)
6761 (windows_nat_target::thread_alive): Use lwp, not tid.
6762
6763 2020-04-08 Tom Tromey <tromey@adacore.com>
6764
6765 * windows-nat.c (handle_exception)
6766 (windows_nat_target::thread_name): Update.
6767 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6768 <name>: Now unique_xmalloc_ptr.
6769
6770 2020-04-08 Tom Tromey <tromey@adacore.com>
6771
6772 * windows-nat.c (thread_rec)
6773 (windows_nat_target::fetch_registers): Update.
6774 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6775 Update comment.
6776 <debug_registers_changed, reload_context>: Now bool.
6777
6778 2020-04-08 Tom Tromey <tromey@adacore.com>
6779
6780 * windows-nat.c (windows_add_thread): Use new.
6781 (windows_init_thread_list, windows_delete_thread): Use delete.
6782 (get_windows_debug_event): Update.
6783 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6784 destructor, and initializers.
6785
6786 2020-04-08 Tom Tromey <tromey@adacore.com>
6787
6788 * windows-nat.c (struct windows_thread_info): Remove.
6789 * nat/windows-nat.h: New file.
6790
6791 2020-04-08 Tom Tromey <tromey@adacore.com>
6792
6793 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6794 (thread_rec, windows_add_thread, windows_delete_thread)
6795 (windows_continue): Update.
6796
6797 2020-04-08 Tom Tromey <tromey@adacore.com>
6798
6799 * windows-nat.c (struct windows_thread_info): Remove typedef.
6800 (thread_head): Remove.
6801 (thread_list): New global.
6802 (thread_rec, windows_add_thread, windows_init_thread_list)
6803 (windows_delete_thread, windows_continue): Update.
6804
6805 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6806
6807 * windows-tdep.h (windows_init_abi): Add comment.
6808 (cygwin_init_abi): New declaration.
6809 * windows-tdep.c: Split signal enumeration in two, one for
6810 Windows and one for Cygwin.
6811 (windows_gdb_signal_to_target): Only deal with signal of the
6812 Windows OS ABI.
6813 (cygwin_gdb_signal_to_target): New function.
6814 (windows_init_abi): Rename to windows_init_abi_common, don't set
6815 gdb_signal_to_target gdbarch method. Add new new function with
6816 this name.
6817 (cygwin_init_abi): New function.
6818 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6819 comment. Don't call windows_init_abi.
6820 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6821 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6822 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6823 i386_windows_init_abi_common, don't call windows_init_abi. Add
6824 a new function of this name.
6825 (i386_cygwin_init_abi): New function.
6826 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6827 OS ABI Cygwin.
6828
6829 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6830
6831 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6832 parameter.c.
6833 (dwarf2_read_gdb_index): Update.
6834
6835 2020-04-07 Kamil Rytarowski <n54@gmx.com>
6836
6837 * nbsd-tdep.c: Include "objfiles.h".
6838 (nbsd_skip_solib_resolver): New.
6839 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6840
6841 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6842
6843 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6844 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6845 with DW_LLE_base_addressx are being emitted in DWARFv5.
6846 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6847 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6848 unsigned integer.
6849
6850 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6851
6852 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6853 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6854 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6855 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6856 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6857 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6858 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6859
6860
6861 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6862
6863 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6864 (read_loclist_index): New function definition.
6865 (lookup_loclist_base): New function definition.
6866 (read_loclist_header): New function definition.
6867 (dwarf2_cu): Add loclist_base and loclist_header field.
6868 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6869 (read_full_die_1): Read the value of DW_AT_loclists_base.
6870 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6871 (read_attribute_value): Handle DW_FORM_loclistx.
6872 (skip_one_die): Handle DW_FORM_loclistx.
6873 (loclist_header): New structure declaration.
6874 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6875
6876 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6877
6878 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6879 constructor. Remove `addr` parameter from other constructor and
6880 add `per_cu` parameter.
6881 * dwarf2/read.c (create_partial_symtab): Update.
6882
6883 2020-04-07 Tom de Vries <tdevries@suse.de>
6884
6885 PR symtab/25796
6886 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6887 (partial_die_info::fixup): Inherit has_const_value.
6888
6889 2020-04-07 Tom de Vries <tdevries@suse.de>
6890
6891 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6892 symbols without address.
6893
6894 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6895
6896 * nbsd-nat.h (struct thread_info): Add forward declaration.
6897 (nbsd_nat_target::thread_alive): Add.
6898 (nbsd_nat_target::thread_name): Likewise.
6899 (nbsd_nat_target::update_thread_list): Likewise.
6900 (update_thread_list::post_attach): Likewise.
6901 (post_attach::pid_to_str): Likewise.
6902 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6903 (nbsd_thread_lister): Add.
6904 (nbsd_nat_target::thread_alive): Likewise.
6905 (nbsd_nat_target::thread_name): Likewise.
6906 (nbsd_add_threads): Likewise.
6907 (update_thread_list::post_attach): Likewise.
6908 (nbsd_nat_target::update_thread_list): Likewise.
6909 (post_attach::pid_to_str): Likewise.
6910
6911 2020-04-06 Tom Tromey <tromey@adacore.com>
6912
6913 * ada-valprint.c (print_variant_part): Extract the variant field.
6914 (print_field_values): Use the field as the outer value when
6915 recursing.
6916
6917 2020-04-06 Tom Tromey <tromey@adacore.com>
6918
6919 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6920 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6921 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6922 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6923 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6924
6925 2020-04-06 Tom Tromey <tromey@adacore.com>
6926
6927 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6928 TYPE_CODE_ERROR.
6929
6930 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6931
6932 * nbsd-tdep.c: Include "gdbarch.h".
6933 Define enum with NetBSD signal numbers.
6934 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6935 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6936 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6937 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6938 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6939 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6940 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6941 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6942 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6943 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6944 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6945 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6946
6947 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
6948
6949 PR gdb/25325
6950 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6951
6952 2020-04-03 Tom Tromey <tromey@adacore.com>
6953
6954 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6955 Read constant block.
6956
6957 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6958
6959 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6960 (gdb_bfd_get_full_section_contents): New declaration.
6961 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6962 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6963 gdb_bfd_get_full_section_contents.
6964
6965 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6966
6967 * exec.c (build_section_table): Replace internal_error with
6968 gdb_assert.
6969 (section_table_xfer_memory_partial): Likewise.
6970 * mdebugread.c (parse_partial_symbols): Likewise.
6971 * psymtab.c (lookup_partial_symbol): Likewise.
6972 * utils.c (wrap_here): Likewise.
6973
6974 2020-04-02 Tom Tromey <tromey@adacore.com>
6975
6976 * f-lang.c (build_fortran_types): Use arch_type to initialize
6977 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6978
6979 2020-04-02 Tom Tromey <tromey@adacore.com>
6980
6981 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6982 of attributes.
6983
6984 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6985 Bernd Edlinger <bernd.edlinger@hotmail.de>
6986 Tom Tromey <tromey@adacore.com>
6987
6988 * buildsym.c (buildsym_compunit::record_line): Remove
6989 deduplication code.
6990
6991 2020-04-02 Tom de Vries <tdevries@suse.de>
6992
6993 PR ada/24671
6994 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6995
6996 2020-04-02 Tom de Vries <tdevries@suse.de>
6997
6998 * dwarf2/read.c (dwarf2_gdb_index_functions,
6999 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
7000 NULL.
7001 * psymtab.c (psym_lookup_global_symbol_language): New function.
7002 (psym_functions): Init psym_lookup_global_symbol_language with
7003 psym_lookup_global_symbol_language.
7004 * symfile-debug.c (debug_sym_quick_functions): Init
7005 lookup_global_symbol_language with NULL.
7006 * symfile.c (set_initial_language): Remove fixme comment.
7007 * symfile.h (struct quick_symbol_functions): Add
7008 lookup_global_symbol_language.
7009 * symtab.c (find_quick_global_symbol_language): New function.
7010 (find_main_name): Use find_quick_global_symbol_language.
7011
7012 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
7013
7014 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
7015
7016 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7017
7018 * buildsym.c (record_line): Fix undefined behavior and preserve
7019 lines at eof.
7020
7021 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7022
7023 * buildsym.c (record_line): Fix the resizing condition.
7024
7025 2020-04-01 Tom Tromey <tom@tromey.com>
7026
7027 * value.h (value_literal_complex): Add comment.
7028 * valops.c (value_literal_complex): Refer to value.h.
7029
7030 2020-04-01 Tom Tromey <tom@tromey.com>
7031
7032 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
7033 (scalar_type): New rule, from typebase.
7034 (typebase): Use scalar_type. Recognize complex types.
7035 (field_name): Handle FLOAT_KEYWORD.
7036 (ident_tokens): Add _Complex and __complex__.
7037
7038 2020-04-01 Tom Tromey <tom@tromey.com>
7039
7040 PR exp/25299:
7041 * valarith.c (promotion_type, complex_binop): New functions.
7042 (scalar_binop): Handle complex numbers. Use promotion_type.
7043 (value_pos, value_neg, value_complement): Handle complex numbers.
7044
7045 2020-04-01 Tom Tromey <tom@tromey.com>
7046
7047 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
7048 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
7049 (parse_number): Handle complex numbers.
7050
7051 2020-04-01 Tom Tromey <tom@tromey.com>
7052
7053 * c-valprint.c (c_decorations): Change complex suffix to "i".
7054
7055 2020-04-01 Tom Tromey <tom@tromey.com>
7056
7057 * valprint.c (generic_value_print_complex): Use accessors.
7058 * value.h (value_real_part, value_imaginary_part): Declare.
7059 * valops.c (value_real_part, value_imaginary_part): New
7060 functions.
7061 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
7062
7063 2020-04-01 Tom Tromey <tom@tromey.com>
7064
7065 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
7066 (read_range_type): Update.
7067 * mdebugread.c (basic_type): Update.
7068 * go-lang.c (build_go_types): Use init_complex_type.
7069 * gdbtypes.h (struct main_type) <complex_type>: New member.
7070 (init_complex_type): Update.
7071 (arch_complex_type): Don't declare.
7072 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
7073 Make name if none given. Use alloc_type_copy. Look for cached
7074 complex type.
7075 (arch_complex_type): Remove.
7076 (gdbtypes_post_init): Use init_complex_type.
7077 * f-lang.c (build_fortran_types): Use init_complex_type.
7078 * dwarf2/read.c (read_base_type): Update.
7079 * d-lang.c (build_d_types): Use init_complex_type.
7080 * ctfread.c (read_base_type): Update.
7081
7082 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7083
7084 * infrun.c (stop_all_threads): Update assertion, plus when
7085 stopping threads, take into account that we might be trying
7086 to stop an all-stop target.
7087 (stop_waiting): Call 'stop_all_threads' if there exists a
7088 non-stop target.
7089
7090 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7091
7092 * target.h (exists_non_stop_target): New function declaration.
7093 * target.c (exists_non_stop_target): New function.
7094
7095 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
7096
7097 PR gdb/24789
7098 * eval.c (is_integral_or_integral_reference): New function.
7099 (evaluate_subexp_standard): Allow integer references in
7100 pointer arithmetic.
7101
7102 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7103
7104 * remote.c (remote_target::remote_parse_stop_reply): Remove the
7105 check for no ptid in the stop reply when the target is non-stop.
7106
7107 2020-04-01 Tom Tromey <tromey@adacore.com>
7108
7109 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
7110 "name" parameter to rvalue reference. Initialize m_name_holder.
7111 <lookup_name_info>: New overloads.
7112 <name>: Return gdb::string_view.
7113 <c_str>: New method.
7114 <make_ignore_params>: Update.
7115 <search_name_hash>: Update.
7116 <language_lookup_name>: Return const char *.
7117 <m_name>: Change type.
7118 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
7119 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
7120 (lookup_name_info::match_any): Update.
7121 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7122 Update.
7123 * minsyms.c (linkage_name_str): Update.
7124 * language.c (default_symbol_name_matcher): Update.
7125 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7126 Update.
7127 * ada-lang.c (ada_fold_name): Change parameter to string_view.
7128 (ada_lookup_name_info::ada_lookup_name_info): Update.
7129 (literal_symbol_name_matcher): Update.
7130
7131 2020-04-01 Tom Tromey <tromey@adacore.com>
7132
7133 * psymtab.c (psymtab_search_name): Remove function.
7134 (psym_lookup_symbol): Create search name and lookup name here.
7135 (lookup_partial_symbol): Remove "name" parameter; add
7136 lookup_name.
7137 (psym_expand_symtabs_for_function): Update.
7138
7139 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
7140
7141 PR tui/25597:
7142 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7143
7144 2020-03-31 Tom Tromey <tromey@adacore.com>
7145
7146 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7147 memcpy.
7148
7149 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
7150
7151 * features/riscv/32bit-csr.xml: Regenerated.
7152 * features/riscv/64bit-csr.xml: Regenerated.
7153
7154 2020-03-30 Tom Tromey <tromey@adacore.com>
7155
7156 * ada-valprint.c (print_variant_part): Update.
7157 * ada-lang.h (ada_which_variant_applies): Update.
7158 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7159 outer_valaddr parameters; replace with "outer" value parameter.
7160 (to_fixed_variant_branch_type): Update.
7161
7162 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7163
7164 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7165 <list>. Remove inclusion of observable.h.
7166 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7167 (struct arch_lwp_info): New struct.
7168 (class ppc_linux_dreg_interface): New class.
7169 (struct ppc_linux_process_info): New struct.
7170 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7171 <low_new_clone, low_forget_process, low_prepare_to_resume>
7172 <copy_thread_dreg_state, mark_thread_stale>
7173 <mark_debug_registers_changed, register_hw_breakpoint>
7174 <clear_hw_breakpoint, register_wp, clear_wp>
7175 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7176 <num_memory_accesses, get_trigger_type>
7177 <create_watchpoint_request, hwdebug_point_cmp>
7178 <init_arch_lwp_info, get_arch_lwp_info>
7179 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7180 methods.
7181 <struct ptid_hash>: New inner struct.
7182 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7183 members.
7184 (saved_dabr_value, hwdebug_info, max_slots_number)
7185 (struct hw_break_tuple, struct thread_points, ppc_threads)
7186 (have_ptrace_hwdebug_interface)
7187 (hwdebug_find_thread_points_by_tid)
7188 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7189 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7190 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7191 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7192 use m_dreg_interface.
7193 (hwdebug_point_cmp): Change to...
7194 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7195 reference arguments instead of pointers.
7196 (ppc_linux_nat_target::ranged_break_num_registers): Use
7197 m_dreg_interface.
7198 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7199 m_dreg_interface. Call register_hw_breakpoint.
7200 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7201 m_dreg_interface. Call clear_hw_breakpoint.
7202 (get_trigger_type): Change to...
7203 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7204 comment.
7205 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7206 use m_dreg_interface. Call register_hw_breakpoint.
7207 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7208 use m_dreg_interface. Call clear_hw_breakpoint.
7209 (can_use_watchpoint_cond_accel): Change to...
7210 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7211 method. Update comment, use m_dreg_interface and
7212 m_process_info.
7213 (calculate_dvc): Change to...
7214 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7215 m_dreg_interface.
7216 (num_memory_accesses): Change to...
7217 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7218 (check_condition): Change to...
7219 (ppc_linux_nat_target::check_condition): ...this method.
7220 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7221 comment, use m_dreg_interface.
7222 (create_watchpoint_request): Change to...
7223 (ppc_linux_nat_target::create_watchpoint_request): ...this
7224 method. Use m_dreg_interface.
7225 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7226 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7227 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7228 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7229 (ppc_linux_nat_target::low_forget_process)
7230 (ppc_linux_nat_target::low_new_fork)
7231 (ppc_linux_nat_target::low_new_clone)
7232 (ppc_linux_nat_target::low_delete_thread)
7233 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7234 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7235 only call mark_thread_stale.
7236 (ppc_linux_thread_exit): Remove.
7237 (ppc_linux_nat_target::stopped_data_address): Change to...
7238 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7239 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7240 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7241 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7242 comment. Call low_stopped_data_address.
7243 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7244 m_dreg_interface.
7245 (ppc_linux_nat_target::masked_watch_num_registers): Use
7246 m_dreg_interface.
7247 (ppc_linux_nat_target::copy_thread_dreg_state)
7248 (ppc_linux_nat_target::mark_thread_stale)
7249 (ppc_linux_nat_target::mark_debug_registers_changed)
7250 (ppc_linux_nat_target::register_hw_breakpoint)
7251 (ppc_linux_nat_target::clear_hw_breakpoint)
7252 (ppc_linux_nat_target::register_wp)
7253 (ppc_linux_nat_target::clear_wp)
7254 (ppc_linux_nat_target::init_arch_lwp_info)
7255 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7256 (_initialize_ppc_linux_nat): Remove observer callback.
7257
7258 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7259
7260 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7261 (ppc_linux_nat_target::auxv_parse)
7262 (ppc_linux_nat_target::read_description)
7263 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7264 Move up.
7265
7266 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7267
7268 * linux-nat.h (low_new_clone): New method.
7269 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7270
7271 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7272
7273 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7274 (dbx_expand_psymtab): ... this.
7275 (start_psymtab): Update.
7276 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7277 (mdebug_expand_psymtab): ... this.
7278 (parse_partial_symbols): Update.
7279 (new_psymtab): Update.
7280 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7281 (xcoff_expand_psymtab): ... this.
7282 (xcoff_start_psymtab): Update.
7283
7284 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7285
7286 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7287 <expand_dependencies>: ... this.
7288 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7289 (partial_symtab::expand_dependencies): ... this.
7290 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7291 Update.
7292 (dwarf2_psymtab::expand_psymtab): Update.
7293 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7294 * mdebugread.c (psymtab_to_symtab_1): Update.
7295 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7296
7297 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7298
7299 * psympriv.h (discard_psymtab): Remove.
7300 * dbxread.c (dbx_end_psymtab): Update.
7301 * xcoffread.c (xcoff_end_psymtab): Update.
7302
7303 2020-03-28 Tom Tromey <tom@tromey.com>
7304
7305 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7306 comment.
7307
7308 2020-03-28 Tom Tromey <tom@tromey.com>
7309
7310 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7311
7312 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
7313
7314 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7315
7316 2020-03-26 John Baldwin <jhb@FreeBSD.org>
7317
7318 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7319
7320 2020-03-26 Tom Tromey <tom@tromey.com>
7321
7322 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7323 (mark_common_block_symbol_computed, read_tag_string_type)
7324 (attr_to_dynamic_prop, read_subrange_type): Update.
7325 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7326 to be methods on struct attribute.
7327 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7328 (read_call_site_scope, partial_die_info::read)
7329 (partial_die_info::read, lookup_die_type, follow_die_ref):
7330 Update.
7331 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7332 from dwarf2_get_ref_die_offset.
7333 (attribute::constant_value): New method, from
7334 dwarf2_get_attr_constant_value.
7335 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7336 Declare method.
7337 <constant_value>: New method.
7338
7339 2020-03-26 Tom Tromey <tom@tromey.com>
7340
7341 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7342 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7343 (dwarf_type_encoding_name): Move to stringify.c.
7344 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7345 * dwarf2/stringify.c: New file.
7346 * dwarf2/stringify.h: New file.
7347
7348 2020-03-26 Tom Tromey <tom@tromey.com>
7349
7350 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7351 Rewrite.
7352
7353 2020-03-26 Tom Tromey <tom@tromey.com>
7354
7355 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7356 methods.
7357 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7358 (lookup_ranges_base): Likewise.
7359 (read_cutu_die_from_dwo, read_full_die_1): Update.
7360
7361 2020-03-26 Tom Tromey <tom@tromey.com>
7362
7363 * dwarf2/read.c (read_import_statement, read_file_scope)
7364 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7365 (read_lexical_block_scope, read_call_site_scope)
7366 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7367 (handle_struct_member_die, process_structure_scope)
7368 (update_enumeration_type_from_children)
7369 (process_enumeration_scope, read_array_type, read_common_block)
7370 (read_namespace, read_module, read_subroutine_type): Update.
7371 (sibling_die): Remove.
7372
7373 2020-03-26 Tom Tromey <tom@tromey.com>
7374
7375 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7376 (build_type_psymtabs_reader, read_structure_type)
7377 (read_enumeration_type, read_full_die_1): Update.
7378 (dwarf2_attr_no_follow): Move to die.h.
7379 * dwarf2/die.h (struct die_info) <attr>: New method.
7380
7381 2020-03-26 Tom Tromey <tom@tromey.com>
7382
7383 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7384 <base_address>: Now an optional.
7385 (dwarf2_find_base_address, dwarf2_rnglists_process)
7386 (dwarf2_ranges_process, fill_in_loclist_baton)
7387 (dwarf2_symbol_mark_computed): Update.
7388
7389 2020-03-26 Tom Tromey <tom@tromey.com>
7390
7391 * dwarf2/read.c (struct die_info): Move to die.h.
7392 * dwarf2/die.h: New file.
7393
7394 2020-03-26 Tom Tromey <tom@tromey.com>
7395
7396 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7397 * dwarf2/read.c
7398 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7399 Move to line-header.c.
7400 (read_checked_initial_length_and_offset, read_formatted_entries):
7401 Likewise.
7402 (dwarf_decode_line_header): Split into two.
7403 * dwarf2/line-header.c
7404 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7405 Move from read.c.
7406 (read_checked_initial_length_and_offset, read_formatted_entries):
7407 Likewise.
7408 (dwarf_decode_line_header): New function, split from read.c.
7409
7410 2020-03-26 Tom Tromey <tom@tromey.com>
7411
7412 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7413 Declare method.
7414 * dwarf2/read.c (read_attribute_value): Update.
7415 (dwarf2_per_objfile::read_line_string): Rename from
7416 read_indirect_line_string.
7417 (read_formatted_entries): Update.
7418
7419 2020-03-26 Tom Tromey <tom@tromey.com>
7420
7421 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7422 variable.
7423
7424 2020-03-26 Tom Tromey <tom@tromey.com>
7425
7426 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7427 const.
7428 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7429 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7430 parameter const.
7431
7432 2020-03-26 Tom Tromey <tom@tromey.com>
7433
7434 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7435 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7436 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7437 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7438
7439 2020-03-26 Tom Tromey <tom@tromey.com>
7440
7441 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7442 file_names_size, file_full_name, file_file_name>: Use const.
7443 <file_name_at, file_names>: Add const overload.
7444 * dwarf2/line-header.c (line_header::file_file_name)
7445 (line_header::file_full_name): Update.
7446
7447 2020-03-26 Tom Tromey <tom@tromey.com>
7448
7449 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7450 (macro_start_file, consume_improper_spaces)
7451 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7452 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7453 (dwarf_decode_macros): Move to macro.c.
7454 * dwarf2/macro.c: New file.
7455 * dwarf2/macro.h: New file.
7456 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7457
7458 2020-03-26 Tom Tromey <tom@tromey.com>
7459
7460 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7461 method.
7462 * dwarf2/section.c: New method. From
7463 read_indirect_string_at_offset_from.
7464 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7465 (read_indirect_string_at_offset_from): Move to section.c.
7466 (read_indirect_string_at_offset): Rewrite.
7467 (read_indirect_line_string_at_offset): Remove.
7468 (read_indirect_string, read_indirect_line_string)
7469 (dwarf_decode_macro_bytes): Update.
7470
7471 2020-03-26 Tom Tromey <tom@tromey.com>
7472
7473 * dwarf2/section.h (struct dwarf2_section_info)
7474 <overload_complaint>: Declare.
7475 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7476 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7477 Rename from dwarf2_section_buffer_overflow_complaint.
7478 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7479 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7480
7481 2020-03-26 Tom Tromey <tom@tromey.com>
7482
7483 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7484 Declare.
7485 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7486 Move from read.c.
7487 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7488 to section.c.
7489
7490 2020-03-26 Tom Tromey <tom@tromey.com>
7491
7492 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7493
7494 2020-03-26 Tom Tromey <tom@tromey.com>
7495
7496 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7497 "builder".
7498 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7499 parameter.
7500 (dwarf_decode_macros): Update.
7501
7502 2020-03-26 Tom Tromey <tom@tromey.com>
7503
7504 * dwarf2/read.c (read_attribute_value): Update.
7505 (read_indirect_string_from_dwz): Move to dwz.c; change into
7506 method.
7507 (dwarf_decode_macro_bytes): Update.
7508 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7509 * dwarf2/dwz.c: New file.
7510 * Makefile.in (COMMON_SFILES): Add dwz.c.
7511
7512 2020-03-26 Tom Tromey <tom@tromey.com>
7513
7514 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7515 * dwarf2/read.c: Add include.
7516 * dwarf2/index-write.c: Add include.
7517 * dwarf2/index-cache.c: Add include.
7518 * dwarf2/dwz.h: New file.
7519
7520 2020-03-25 Tom Tromey <tom@tromey.com>
7521
7522 * compile/compile-object-load.c (get_out_value_type): Mention
7523 correct symbol name in error message.
7524
7525 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
7526
7527 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7528
7529 2020-03-25 Tom de Vries <tdevries@suse.de>
7530
7531 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7532 * symmisc.c (dump_symtab_1): Print user and includes fields.
7533 (maintenance_info_symtabs): Same.
7534
7535 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7536
7537 PR gdb/25534
7538 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7539 (riscv_regcache_cooked_write): New function.
7540 (riscv_push_dummy_call): Use new function.
7541 (riscv_return_value): Likewise.
7542
7543 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7544
7545 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7546 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7547 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7548 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7549 * infrun.c (follow_fork): Likewise.
7550 (follow_fork_inferior): Likewise.
7551 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7552 * linux-nat.h (class linux_nat_target): Likewise.
7553 * remote.c (class remote_target) <follow_fork>: Likewise.
7554 (remote_target::follow_fork): Likewise.
7555 * target-delegates.c: Re-generate.
7556 * target.c (default_follow_fork): Likewise.
7557 (target_follow_fork): Likewise.
7558 * target.h (struct target_ops) <follow_fork>: Likewise.
7559 (target_follow_fork): Likewise.
7560
7561 2020-03-24 Tom de Vries <tdevries@suse.de>
7562
7563 * psymtab.c (maintenance_info_psymtabs): Print user field.
7564
7565 2020-03-20 Tom Tromey <tromey@adacore.com>
7566
7567 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7568 const.
7569 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7570 const.
7571
7572 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
7573
7574 * ptrace.m4: Don't check for ptrace declaration.
7575 * config.in: Re-generate.
7576 * configure: Re-generate.
7577 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7578 not defined.
7579
7580 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7581
7582 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7583 `PTRACE_TYPE_RET'.
7584 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7585 * sparc-nat.c (gdb_ptrace): Likewise.
7586 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7587
7588 2020-03-20 Tom Tromey <tromey@adacore.com>
7589
7590 * c-exp.y (lex_one_token): Fix assert.
7591
7592 2020-03-20 Tom Tromey <tromey@adacore.com>
7593
7594 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7595 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7596 strncpy call.
7597
7598 2020-03-20 Tom Tromey <tromey@adacore.com>
7599
7600 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7601
7602 2020-03-20 Tom Tromey <tromey@adacore.com>
7603
7604 * ada-valprint.c (print_variant_part): Remove parameters; switch
7605 to value-based API.
7606 (print_field_values): Likewise.
7607 (ada_val_print_struct_union): Likewise.
7608 (ada_value_print_1): Update.
7609
7610 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7611
7612 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7613 nbsd_nat_target instead of inf_ptrace_target.
7614 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7615 nbsd_nat_target.
7616
7617 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7618
7619 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7620 it to the ptrace call.
7621 * (store_registers): Likewise.
7622
7623 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7624
7625 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7626 it to the ptrace call.
7627 * (store_registers): Likewise.
7628
7629 2020-03-19 Luis Machado <luis.machado@linaro.org>
7630
7631 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7632 valid, fetch vg value from ptrace.
7633
7634 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7635 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7636 * inf-ptrace.c: Likewise.
7637 * (gdb_ptrace): Add.
7638 * (inf_ptrace_target::resume): Update.
7639 * (inf_ptrace_target::xfer_partial): Likewise.
7640 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7641 * (inf_ptrace_peek_poke): Update.
7642
7643 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7644
7645 * x86-bsd-nat.c (gdb_ptrace): New.
7646 * (x86bsd_dr_set): Add new argument `ptid'.
7647 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7648 x86bsd_dr_set_addr): Update.
7649
7650 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7651
7652 * remote.c (remote_target::process_stop_reply): Handle events for
7653 all threads differently.
7654
7655 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7656
7657 * completer.c (completion_tracker::remove_completion): Define new
7658 function.
7659 * completer.h (completion_tracker::remove_completion): Declare new
7660 function.
7661 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7662 when adding a C++ function symbol.
7663
7664 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7665
7666 * completer.c (completion_tracker::completion_hash_entry): Define
7667 new class.
7668 (advance_to_filename_complete_word_point): Call
7669 recompute_lowest_common_denominator.
7670 (completion_tracker::completion_tracker): Call discard_completions
7671 to setup the hash table.
7672 (completion_tracker::discard_completions): Allow for being called
7673 from the constructor, pass new equal function, and element deleter
7674 when constructing the hash table. Initialise new class member
7675 variables.
7676 (completion_tracker::maybe_add_completion): Remove use of
7677 m_entries_vec, and store more information into m_entries_hash.
7678 (completion_tracker::recompute_lcd_visitor): New function, most
7679 content taken from...
7680 (completion_tracker::recompute_lowest_common_denominator):
7681 ...here, this now just visits each item in the hash calling the
7682 above visitor.
7683 (completion_tracker::build_completion_result): Remove use of
7684 m_entries_vec, call recompute_lowest_common_denominator.
7685 * completer.h (completion_tracker::have_completions): Remove use
7686 of m_entries_vec.
7687 (completion_tracker::completion_hash_entry): Declare new class.
7688 (completion_tracker::recompute_lowest_common_denominator): Change
7689 function signature.
7690 (completion_tracker::recompute_lcd_visitor): Declare new function.
7691 (completion_tracker::m_entries_vec): Delete.
7692 (completion_tracker::m_entries_hash): Initialize to NULL.
7693 (completion_tracker::m_lowest_common_denominator_valid): New
7694 member variable.
7695 (completion_tracker::m_lowest_common_denominator_max_length): New
7696 member variable.
7697
7698 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7699
7700 * regformats/regdef.h: Put reg in gdb namespace.
7701
7702 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7703
7704 * i386-bsd-nat.c (gdb_ptrace): New.
7705 * (i386bsd_fetch_inferior_registers,
7706 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7707 * (i386bsd_fetch_inferior_registers,
7708 i386bsd_store_inferior_registers) Use gdb_ptrace.
7709
7710 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7711
7712 * amd64-bsd-nat.c (gdb_ptrace): New.
7713 * (amd64bsd_fetch_inferior_registers,
7714 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7715 * (amd64bsd_fetch_inferior_registers,
7716 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7717
7718 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7719
7720 * user-regs.c (user_reg::read): Rename to...
7721 (user_reg::xread): ...this.
7722 * (append_user_reg): Rename argument `read' to `xread'.
7723 * (user_reg_add_builtin): Likewise.
7724 * (user_reg_add): Likewise.
7725 * (value_of_user_reg): Likewise.
7726
7727 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7728
7729 * sparc-nat.c (gdb_ptrace): New.
7730 * sparc-nat.c (sparc_fetch_inferior_registers)
7731 (sparc_store_inferior_registers) Remove obsolete comment.
7732 * sparc-nat.c (sparc_fetch_inferior_registers)
7733 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7734 * sparc-nat.c (sparc_fetch_inferior_registers)
7735 (sparc_store_inferior_registers) Use gdb_ptrace.
7736
7737 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7738
7739 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7740 it to the ptrace call.
7741 * sh-nbsd-nat.c (store_registers): Likewise.
7742
7743 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7744
7745 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7746 nbsd_nat_target instead of inf_ptrace_target.
7747 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7748 nbsd_nat_target.
7749
7750 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7751
7752 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7753
7754 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7755
7756 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7757 <sys/sysctl.h>.
7758 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7759
7760 2020-03-17 Tom de Vries <tdevries@suse.de>
7761
7762 PR gdb/23710
7763 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7764 fields.
7765 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7766 fields.
7767 (process_imported_unit_die): Skip import of c++ CUs.
7768
7769 2020-03-16 Tom Tromey <tom@tromey.com>
7770
7771 * p-valprint.c (pascal_object_print_value): Initialize
7772 base_value.
7773
7774 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7775 Shahab Vahedi <shahab@synopsys.com>
7776
7777 * Makefile.in: Add arch/arc.o
7778 * configure.tgt: Likewise.
7779 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7780 (_initialize_arc_tdep): Don't initialize old target descriptions.
7781 (arc_read_description): New function to cache target descriptions.
7782 * arc-tdep.h (arc_read_description): Add proto type.
7783 * arch/arc.c: New file.
7784 * arch/arc.h: Likewise.
7785 * features/Makefile: Replace old target descriptions with new.
7786 * features/arc-arcompact.c: Remove.
7787 * features/arc-arcompact.xml: Likewise.
7788 * features/arc-v2.c: Likewise
7789 * features/arc-v2.xml: Likewise
7790 * features/arc/aux-arcompact.xml: New file.
7791 * features/arc/aux-v2.xml: Likewise.
7792 * features/arc/core-arcompact.xml: Likewise.
7793 * features/arc/core-v2.xml: Likewise.
7794 * features/arc/aux-arcompact.c: Generate.
7795 * features/arc/aux-v2.c: Likewise.
7796 * features/arc/core-arcompact.c: Likewise.
7797 * features/arc/core-v2.c: Likewise.
7798 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7799
7800 2020-03-16 Tom Tromey <tromey@adacore.com>
7801
7802 PR gdb/25663:
7803 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7804 putting value into bcache.
7805
7806 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7807
7808 PR gdb/21500
7809 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7810 to...
7811 (amd64_windows_init_abi_common): ... this. Don't set size of
7812 long type.
7813 (amd64_windows_init_abi): New function.
7814 (amd64_cygwin_init_abi): New function.
7815 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7816 the Cygwin OS ABI.
7817 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7818 comment.
7819
7820 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7821
7822 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7823 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7824 (pe_import_directory_entry): New struct type.
7825 (is_linked_with_cygwin_dll): New function.
7826 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7827 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7828 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7829
7830 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7831
7832 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7833 i386_cygwin_core_osabi_sniffer.
7834
7835 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7836
7837 * i386-cygwin-tdep.c: Rename to...
7838 * i386-windows-tdep.c: ... this.
7839 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7840 i386-windows-tdep.c.
7841 * configure.tgt: Likewise.
7842
7843 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7844
7845 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7846 * osabi.c (gdb_osabi_names): Add "Windows".
7847 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7848 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7849 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7850 i386_cygwin_osabi_sniffer.
7851 (_initialize_i386_cygwin_tdep): Register OS ABI
7852 GDB_OSABI_WINDOWS for i386.
7853 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7854 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7855 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7856 for x86-64.
7857 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7858 when the target matches '*-*-mingw*'.
7859
7860 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7861
7862 * defs.h (enum gdb_osabi): Move to...
7863 * osabi.h (enum gdb_osabi): ... here.
7864 * gdbarch.sh: Include osabi.h in gdbarch.h.
7865 * gdbarch.h: Re-generate.
7866
7867 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7868
7869 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7870 function.
7871 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7872
7873 2020-03-14 Tom Tromey <tom@tromey.com>
7874
7875 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7876 for C++.
7877 (c_type_print_modifier): Likewise. Add "language" parameter.
7878 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7879 (c_type_print_base_1): Update.
7880 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7881 constants.
7882 * type-stack.c (type_stack::insert): Handle tp_atomic and
7883 tp_restrict.
7884 (type_stack::follow_type_instance_flags): Likewise.
7885 (type_stack::follow_types): Likewise. Merge type-following code.
7886 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7887 (space_identifier, cv_with_space_id)
7888 (const_or_volatile_or_space_identifier_noopt)
7889 (const_or_volatile_or_space_identifier): Remove.
7890 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7891 rules.
7892 (ptr_operator, typebase): Update.
7893 (enum token_flag) <FLAG_C>: New constant.
7894 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7895 "_Atomic".
7896 (lex_one_token): Handle FLAG_C.
7897
7898 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7899
7900 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7901 it to the ptrace call.
7902 * m68k-bsd-nat.c (store_registers): Likewise.
7903
7904 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7905
7906 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7907 gdb_byte *.
7908 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7909 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7910 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7911
7912 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7913
7914 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7915 nbsd_nat_target instead of inf_ptrace_target.
7916 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7917 nbsd_nat_target.
7918
7919 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7920
7921 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7922 register_t.
7923
7924 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7925
7926 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7927 it to the ptrace call.
7928 * alpha-bsd-nat.c (store_registers): Likewise.
7929
7930 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7931
7932 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7933 includes.
7934 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7935 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7936 fill_fpregset): Likewise.
7937
7938 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7939
7940 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7941 nbsd_nat_target instead of inf_ptrace_target.
7942 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7943 nbsd_nat_target.
7944
7945 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7946
7947 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7948 register_t.
7949
7950 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7951
7952 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7953 it to the ptrace call.
7954 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7955 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7956 * arm-nbsd-nat.c (store_register): Likewise.
7957 * arm-nbsd-nat.c (store_regs): Likewise.
7958 * arm-nbsd-nat.c (store_fp_register): Likewise.
7959 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7960
7961 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7962
7963 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7964 nbsd_nat_target instead of inf_ptrace_target.
7965 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7966 nbsd_nat_target.
7967
7968 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7969
7970 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7971 it to the ptrace call.
7972 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7973
7974 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7975
7976 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7977 it to the ptrace call.
7978 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7979
7980 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7981
7982 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7983 gdb_byte *.
7984 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7985
7986 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7987
7988 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7989 instead of inf_ptrace_target.
7990 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7991 nbsd_nat_target.
7992
7993 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7994
7995 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7996 register_t.
7997
7998 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7999
8000 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8001 register_t.
8002
8003 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8004
8005 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
8006 register_t.
8007
8008 2020-03-13 Tom Tromey <tom@tromey.com>
8009
8010 * value.h (val_print): Don't declare.
8011 * valprint.h (val_print_array_elements)
8012 (val_print_scalar_formatted, generic_val_print): Don't declare.
8013 * valprint.c (generic_val_print_array): Take a struct value.
8014 (generic_val_print_ptr, generic_val_print_memberptr)
8015 (generic_val_print_bool, generic_val_print_int)
8016 (generic_val_print_char, generic_val_print_complex)
8017 (generic_val_print): Remove.
8018 (generic_value_print): Update.
8019 (do_val_print): Remove unused parameters. Don't call
8020 la_val_print.
8021 (val_print): Remove.
8022 (common_val_print): Update. Don't call value_check_printable.
8023 (val_print_scalar_formatted, val_print_array_elements): Remove.
8024 * rust-lang.c (rust_val_print): Remove.
8025 (rust_language_defn): Update.
8026 * p-valprint.c (pascal_val_print): Remove.
8027 (pascal_value_print_inner): Update.
8028 (pascal_object_print_val_fields, pascal_object_print_val):
8029 Remove.
8030 (pascal_object_print_static_field): Update.
8031 * p-lang.h (pascal_val_print): Don't declare.
8032 * p-lang.c (pascal_language_defn): Update.
8033 * opencl-lang.c (opencl_language_defn): Update.
8034 * objc-lang.c (objc_language_defn): Update.
8035 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
8036 * m2-lang.h (m2_val_print): Don't declare.
8037 * m2-lang.c (m2_language_defn): Update.
8038 * language.h (struct language_defn) <la_val_print>: Remove.
8039 * language.c (unk_lang_value_print_inner): Rename. Change
8040 argument types.
8041 (unknown_language_defn, auto_language_defn): Update.
8042 * go-valprint.c (go_val_print): Remove.
8043 * go-lang.h (go_val_print): Don't declare.
8044 * go-lang.c (go_language_defn): Update.
8045 * f-valprint.c (f_val_print): Remove.
8046 * f-lang.h (f_value_print): Don't declare.
8047 * f-lang.c (f_language_defn): Update.
8048 * d-valprint.c (d_val_print): Remove.
8049 * d-lang.h (d_value_print): Don't declare.
8050 * d-lang.c (d_language_defn): Update.
8051 * cp-valprint.c (cp_print_value_fields)
8052 (cp_print_value_fields_rtti, cp_print_value): Remove.
8053 (cp_print_static_field): Update.
8054 * c-valprint.c (c_val_print_array, c_val_print_ptr)
8055 (c_val_print_struct, c_val_print_union, c_val_print_int)
8056 (c_val_print_memberptr, c_val_print): Remove.
8057 * c-lang.h (c_val_print_array, cp_print_value_fields)
8058 (cp_print_value_fields_rtti): Don't declare.
8059 * c-lang.c (c_language_defn, cplus_language_defn)
8060 (asm_language_defn, minimal_language_defn): Update.
8061 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
8062 (ada_val_print_enum): Take a struct value.
8063 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
8064 (ada_val_print): Remove.
8065 (ada_value_print_1): Update.
8066 (printable_val_type): Remove.
8067 * ada-lang.h (ada_val_print): Don't declare.
8068 * ada-lang.c (ada_language_defn): Update.
8069
8070 2020-03-13 Tom Tromey <tom@tromey.com>
8071
8072 * valprint.c (do_val_print): Update.
8073 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
8074 a struct value.
8075 (value_to_value_object_no_release): Declare.
8076 * python/py-value.c (value_to_value_object_no_release): New
8077 function.
8078 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
8079 struct value.
8080 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
8081 function.
8082 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
8083 a struct value.
8084 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
8085 Declare.
8086 (gdbscm_apply_val_pretty_printer): Take a struct value.
8087 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
8088 value.
8089 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
8090 value.
8091 * extension-priv.h (struct extension_language_ops)
8092 <apply_val_pretty_printer>: Take a struct value.
8093 * cp-valprint.c (cp_print_value): Create a struct value.
8094 (cp_print_value): Update.
8095
8096 2020-03-13 Tom Tromey <tom@tromey.com>
8097
8098 * ada-valprint.c (print_field_values): Call common_val_print.
8099
8100 2020-03-13 Tom Tromey <tom@tromey.com>
8101
8102 * ada-valprint.c (val_print_packed_array_elements): Remove
8103 bitoffset and val parameters. Call common_val_print.
8104 (ada_val_print_string): Remove offset, address, and original_value
8105 parameters.
8106 (ada_val_print_array): Update.
8107 (ada_value_print_array): New function.
8108 (ada_value_print_1): Call it.
8109
8110 2020-03-13 Tom Tromey <tom@tromey.com>
8111
8112 * ada-valprint.c (ada_value_print): Use common_val_print.
8113
8114 2020-03-13 Tom Tromey <tom@tromey.com>
8115
8116 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
8117
8118 2020-03-13 Tom Tromey <tom@tromey.com>
8119
8120 * ada-valprint.c (ada_value_print_num): New function.
8121 (ada_value_print_1): Use it.
8122
8123 2020-03-13 Tom Tromey <tom@tromey.com>
8124
8125 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8126
8127 2020-03-13 Tom Tromey <tom@tromey.com>
8128
8129 * ada-valprint.c (ada_value_print_ptr): New function.
8130 (ada_value_print_1): Use it.
8131
8132 2020-03-13 Tom Tromey <tom@tromey.com>
8133
8134 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8135 call common_val_print.
8136 (ada_val_print_1): Update.
8137 (ada_value_print_1): New function.
8138 (ada_value_print_inner): Rewrite.
8139
8140 2020-03-13 Tom Tromey <tom@tromey.com>
8141
8142 * cp-valprint.c (cp_print_value_fields): Update.
8143 (cp_print_value): New function.
8144
8145 2020-03-13 Tom Tromey <tom@tromey.com>
8146
8147 * m2-valprint.c (m2_value_print_inner): Use
8148 cp_print_value_fields.
8149 * cp-valprint.c (cp_print_value_fields): New function.
8150 * c-valprint.c (c_value_print_struct): New function.
8151 (c_value_print_inner): Use c_value_print_struct.
8152 * c-lang.h (cp_print_value_fields): Declare.
8153
8154 2020-03-13 Tom Tromey <tom@tromey.com>
8155
8156 * c-valprint.c (c_value_print_array): New function.
8157 (c_value_print_inner): Use it.
8158
8159 2020-03-13 Tom Tromey <tom@tromey.com>
8160
8161 * c-valprint.c (c_value_print_memberptr): New function.
8162 (c_value_print_inner): Use it.
8163
8164 2020-03-13 Tom Tromey <tom@tromey.com>
8165
8166 * c-valprint.c (c_value_print_int): New function.
8167 (c_value_print_inner): Use it.
8168
8169 2020-03-13 Tom Tromey <tom@tromey.com>
8170
8171 * c-valprint.c (c_value_print_ptr): New function.
8172 (c_value_print_inner): Use it.
8173
8174 2020-03-13 Tom Tromey <tom@tromey.com>
8175
8176 * c-valprint.c (c_value_print_inner): Rewrite.
8177
8178 2020-03-13 Tom Tromey <tom@tromey.com>
8179
8180 * valprint.c (generic_value_print_complex): New function.
8181 (generic_value_print): Use it.
8182
8183 2020-03-13 Tom Tromey <tom@tromey.com>
8184
8185 * valprint.c (generic_val_print_float): Don't call
8186 val_print_scalar_formatted.
8187 (generic_val_print, generic_value_print): Update.
8188
8189 2020-03-13 Tom Tromey <tom@tromey.com>
8190
8191 * valprint.c (generic_value_print_char): New function
8192 (generic_value_print): Use it.
8193
8194 2020-03-13 Tom Tromey <tom@tromey.com>
8195
8196 * valprint.c (generic_value_print_int): New function.
8197 (generic_value_print): Use it.
8198
8199 2020-03-13 Tom Tromey <tom@tromey.com>
8200
8201 * valprint.c (generic_value_print_bool): New function.
8202 (generic_value_print): Use it.
8203
8204 2020-03-13 Tom Tromey <tom@tromey.com>
8205
8206 * valprint.c (generic_val_print_func): Simplify.
8207 (generic_val_print, generic_value_print): Update.
8208
8209 2020-03-13 Tom Tromey <tom@tromey.com>
8210
8211 * valprint.c (generic_val_print_flags): Remove.
8212 (generic_val_print, generic_value_print): Update.
8213 (val_print_type_code_flags): Add original_value parameter.
8214
8215 2020-03-13 Tom Tromey <tom@tromey.com>
8216
8217 * valprint.c (generic_val_print): Update.
8218 (generic_value_print): Update.
8219 * valprint.c (generic_val_print_enum): Don't call
8220 val_print_scalar_formatted.
8221
8222 2020-03-13 Tom Tromey <tom@tromey.com>
8223
8224 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8225 * valprint.c (generic_value_print_ptr): New function.
8226
8227 2020-03-13 Tom Tromey <tom@tromey.com>
8228
8229 * valprint.c (generic_value_print): Rewrite.
8230
8231 2020-03-13 Tom Tromey <tom@tromey.com>
8232
8233 * p-valprint.c (pascal_object_print_value_fields)
8234 (pascal_object_print_value): New functions.
8235
8236 2020-03-13 Tom Tromey <tom@tromey.com>
8237
8238 * p-valprint.c (pascal_value_print_inner): Rewrite.
8239
8240 2020-03-13 Tom Tromey <tom@tromey.com>
8241
8242 * f-valprint.c (f_value_print_innner): Rewrite.
8243
8244 2020-03-13 Tom Tromey <tom@tromey.com>
8245
8246 * m2-valprint.c (m2_print_unbounded_array): New overload.
8247 (m2_print_unbounded_array): Update.
8248 (m2_print_array_contents): Take a struct value.
8249 (m2_value_print_inner): Rewrite.
8250
8251 2020-03-13 Tom Tromey <tom@tromey.com>
8252
8253 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8254 (d_value_print_inner): New function.
8255 * d-lang.h (d_value_print_inner): Declare.
8256 * d-lang.c (d_language_defn): Use d_value_print_inner.
8257
8258 2020-03-13 Tom Tromey <tom@tromey.com>
8259
8260 * go-valprint.c (go_value_print_inner): New function.
8261 * go-lang.h (go_value_print_inner): Declare.
8262 * go-lang.c (go_language_defn): Use go_value_print_inner.
8263
8264 2020-03-13 Tom Tromey <tom@tromey.com>
8265
8266 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8267 API.
8268 (rust_val_print): Rewrite.
8269 (rust_value_print_inner): New function, from rust_val_print.
8270 (rust_language_defn): Use rust_value_print_inner.
8271
8272 2020-03-13 Tom Tromey <tom@tromey.com>
8273
8274 * ada-valprint.c (ada_value_print_inner): New function.
8275 * ada-lang.h (ada_value_print_inner): Declare.
8276 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8277
8278 2020-03-13 Tom Tromey <tom@tromey.com>
8279
8280 * f-valprint.c (f_value_print_innner): New function.
8281 * f-lang.h (f_value_print_innner): Declare.
8282 * f-lang.c (f_language_defn): Use f_value_print_innner.
8283
8284 2020-03-13 Tom Tromey <tom@tromey.com>
8285
8286 * p-valprint.c (pascal_value_print_inner): New function.
8287 * p-lang.h (pascal_value_print_inner): Declare.
8288 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8289
8290 2020-03-13 Tom Tromey <tom@tromey.com>
8291
8292 * m2-valprint.c (m2_value_print_inner): New function.
8293 * m2-lang.h (m2_value_print_inner): Declare.
8294 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8295
8296 2020-03-13 Tom Tromey <tom@tromey.com>
8297
8298 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8299 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8300 * c-valprint.c (c_value_print_inner): New function.
8301 * c-lang.h (c_value_print_inner): Declare.
8302 * c-lang.c (c_language_defn, cplus_language_defn)
8303 (asm_language_defn, minimal_language_defn): Use
8304 c_value_print_inner.
8305
8306 2020-03-13 Tom Tromey <tom@tromey.com>
8307
8308 * p-valprint.c (pascal_object_print_value_fields): Now static.
8309 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8310
8311 2020-03-13 Tom Tromey <tom@tromey.com>
8312
8313 * c-valprint.c (c_val_print_array): Simplify.
8314
8315 2020-03-13 Tom Tromey <tom@tromey.com>
8316
8317 * valprint.c (value_print_array_elements): New function.
8318 * valprint.h (value_print_array_elements): Declare.
8319
8320 2020-03-13 Tom Tromey <tom@tromey.com>
8321
8322 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8323 * mips-tdep.c (mips_print_register): Use
8324 value_print_scalar_formatted.
8325
8326 2020-03-13 Tom Tromey <tom@tromey.com>
8327
8328 * valprint.h (value_print_scalar_formatted): Declare.
8329 * valprint.c (value_print_scalar_formatted): New function.
8330
8331 2020-03-13 Tom Tromey <tom@tromey.com>
8332
8333 * valprint.h (generic_value_print): Declare.
8334 * valprint.c (generic_value_print): New function.
8335
8336 2020-03-13 Tom Tromey <tom@tromey.com>
8337
8338 * valprint.c (do_val_print): Call la_value_print_inner, if
8339 available.
8340 * rust-lang.c (rust_language_defn): Update.
8341 * p-lang.c (pascal_language_defn): Update.
8342 * opencl-lang.c (opencl_language_defn): Update.
8343 * objc-lang.c (objc_language_defn): Update.
8344 * m2-lang.c (m2_language_defn): Update.
8345 * language.h (struct language_defn) <la_value_print_inner>: New
8346 member.
8347 * language.c (unknown_language_defn, auto_language_defn): Update.
8348 * go-lang.c (go_language_defn): Update.
8349 * f-lang.c (f_language_defn): Update.
8350 * d-lang.c (d_language_defn): Update.
8351 * c-lang.c (c_language_defn, cplus_language_defn)
8352 (asm_language_defn, minimal_language_defn): Update.
8353 * ada-lang.c (ada_language_defn): Update.
8354
8355 2020-03-13 Tom Tromey <tom@tromey.com>
8356
8357 * c-valprint.c (c_value_print): Use common_val_print.
8358
8359 2020-03-13 Tom Tromey <tom@tromey.com>
8360
8361 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8362
8363 2020-03-13 Tom Tromey <tom@tromey.com>
8364
8365 * f-valprint.c (f77_print_array_1, f_val_print): Use
8366 common_val_print.
8367
8368 2020-03-13 Tom Tromey <tom@tromey.com>
8369
8370 * riscv-tdep.c (riscv_print_one_register_info): Use
8371 common_val_print.
8372
8373 2020-03-13 Tom Tromey <tom@tromey.com>
8374
8375 * mi/mi-main.c (output_register): Use common_val_print.
8376
8377 2020-03-13 Tom Tromey <tom@tromey.com>
8378
8379 * infcmd.c (default_print_one_register_info): Use
8380 common_val_print.
8381
8382 2020-03-13 Tom Tromey <tom@tromey.com>
8383
8384 * valprint.h (common_val_print_checked): Declare.
8385 * valprint.c (common_val_print_checked): New function.
8386 * stack.c (print_frame_arg): Use common_val_print_checked.
8387
8388 2020-03-13 Tom Tromey <tom@tromey.com>
8389
8390 * valprint.c (do_val_print): New function, from val_print.
8391 (val_print): Use do_val_print.
8392 (common_val_print): Use do_val_print.
8393
8394 2020-03-13 Tom Tromey <tom@tromey.com>
8395
8396 * valprint.c (value_print): Use scoped_value_mark.
8397
8398 2020-03-13 Tom de Vries <tdevries@suse.de>
8399
8400 PR symtab/25646
8401 * psymtab.c (partial_symtab::partial_symtab): Don't set
8402 globals_offset and statics_offset. Push element onto
8403 current_global_psymbols and current_static_psymbols stacks.
8404 (concat): New function.
8405 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8406 element from current_global_psymbols and current_static_psymbols
8407 stacks. Concat popped elements to global_psymbols and
8408 static_symbols.
8409 (add_psymbol_to_list): Use current_global_psymbols and
8410 current_static_psymbols stacks.
8411 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8412 current_static_psymbols fields.
8413
8414 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8415
8416 * corelow.c (sniff_core_bfd): Remove.
8417 (class core_target) <m_core_vec>: Remove.
8418 (core_target::core_target): Update.
8419 (core_file_fns): Remove.
8420 (deprecated_add_core_fns): Remove.
8421 (default_core_sniffer): Remove.
8422 (sniff_core_bfd): Remove.
8423 (default_check_format): Remove.
8424 (gdb_check_format): Remove.
8425 (core_target_open): Update.
8426 (core_target::get_core_register_section): Update.
8427 (get_core_registers_cb): Update.
8428 (core_target::fetch_registers): Update.
8429 * gdbcore.h (struct core_fns): Remove.
8430 (deprecated_add_core_fns): Remove.
8431 (default_core_sniffer): Remove.
8432 (default_check_format): Remove.
8433
8434 2020-03-12 Tom Tromey <tom@tromey.com>
8435
8436 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8437 CORE_ADDR.
8438 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8439
8440 2020-03-12 Tom Tromey <tom@tromey.com>
8441
8442 * remote.c (remote_target::download_tracepoint)
8443 (remote_target::enable_tracepoint)
8444 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8445 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8446 sprintf_vma.
8447
8448 2020-03-12 Tom Tromey <tom@tromey.com>
8449
8450 * symfile-mem.c: Update CORE_ADDR size assert.
8451
8452 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8453
8454 * selftest.m4: Move to gdbsupport/.
8455 * acinclude.m4: Update path to selftest.m4.
8456
8457 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8458
8459 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8460 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8461 gdbarch-selfselftests.c and selftest-arch.c.
8462 (SUBDIR_UNITTESTS_OBS): Rename to...
8463 (SELFTESTS_OBS): ... this.
8464 (COMMON_SFILES): Remove disasm-selftests.c and
8465 gdbarch-selftests.c.
8466 * configure.ac: Don't add selftest-arch.{c,o} to
8467 CONFIG_{SRCS,OBS}.
8468 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8469 preprocessor conditions.
8470
8471 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8472
8473 * configure.ac: Don't source bfd/development.sh.
8474 * selftest.m4: Modify comment.
8475 * configure: Re-generate.
8476
8477 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8478
8479 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8480 not "true" or "false".
8481 * configure: Re-generate.
8482
8483 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8484
8485 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8486 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8487 renamed to arm_nbsd_supply_gregset.
8488 (fetch_register): Update to call arm_nbsd_supply_gregset.
8489 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8490 (arm_netbsd_nat_target::fetch_registers): Update.
8491 (fetch_elfcore_registers): Removed.
8492 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8493 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8494 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8495 not require NetBSD system headers.
8496 (arm_nbsd_regset): New struct.
8497 (arm_nbsd_iterate_over_regset_sections): New function.
8498 (arm_netbsd_init_abi_common): Updated to call
8499 set_gdbarch_iterate_over_regset_sections.
8500 * arm-nbsd-tdep.h: New file.
8501
8502 2020-03-11 Kevin Buettner <kevinb@redhat.com>
8503
8504 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8505 recursion.
8506
8507 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
8508
8509 * configure: Re-generate.
8510
8511 2020-03-11 Tom Tromey <tromey@adacore.com>
8512
8513 * ada-typeprint.c (print_choices): Fix comment.
8514
8515 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8516
8517 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8518 previous item in the list, when the list has no items.
8519
8520 2020-03-11 Tom de Vries <tdevries@suse.de>
8521
8522 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8523 PROP_LOCLIST handling code.
8524
8525 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8526
8527 * buildsym-legacy.c (record_line): Pass extra parameter to
8528 record_line.
8529 * buildsym.c (buildsym_compunit::record_line): Take an extra
8530 parameter, reduce duplication in the line table, and record the
8531 is_stmt flag in the line table.
8532 * buildsym.h (buildsym_compunit::record_line): Add extra
8533 parameter.
8534 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8535 non-statement lines.
8536 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8537 this to the symtab builder.
8538 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8539 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8540 through to dwarf_record_line_1.
8541 * infrun.c (process_event_stop_test): When stepping, don't stop at
8542 a non-statement instruction, and only refresh the step info when
8543 we land in the middle of a line's range. Also add an extra
8544 comment.
8545 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8546 field.
8547 * record-btrace.c (btrace_find_line_range): Only record lines
8548 marked as is-statement.
8549 * stack.c (frame_show_address): Show the frame address if we are
8550 in a non-statement sal.
8551 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8552 (maintenance_print_one_line_table): Print a header for the is_stmt
8553 column, and include is_stmt information in the output.
8554 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8555 preference to non-statements.
8556 (find_pcs_for_symtab_line): Prefer is-statement entries.
8557 (find_line_common): Likewise.
8558 * symtab.h (struct linetable_entry): Add is_stmt field.
8559 (struct symtab_and_line): Likewise.
8560 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8561 arranging the line table.
8562
8563 2020-03-07 Tom de Vries <tdevries@suse.de>
8564
8565 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8566 DIE.
8567
8568 2020-03-07 Tom Tromey <tom@tromey.com>
8569
8570 * valops.c (value_literal_complex): Remove obsolete comment.
8571 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8572 comment.
8573
8574 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8575
8576 * infrun.h: Forward-declare thread_info.
8577 (set_step_info): Add thread_info parameter, add doc.
8578 * infrun.c (set_step_info): Add thread_info parameter, move doc
8579 to header.
8580 * infrun.c (process_event_stop_test): Pass thread to
8581 set_step_info call.
8582 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8583 set_step_info.
8584 (prepare_one_step): Add thread_info parameter, pass it to
8585 set_step_frame and prepare_one_step (recursive) call.
8586 (step_1): Pass thread to prepare_one_step call.
8587 (step_command_fsm::should_stop): Pass thread to
8588 prepare_one_step.
8589 (until_next_fsm): Pass thread to set_step_frame call.
8590 (finish_command): Pass thread to set_step_info call.
8591
8592 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
8593
8594 * windows-tdep.c (windows_solib_create_inferior_hook):
8595 Check if inferior is running.
8596
8597 2020-03-06 Tom de Vries <tdevries@suse.de>
8598
8599 * NEWS: Fix "the the".
8600 * ctfread.c: Same.
8601
8602 2020-03-06 Tom de Vries <tdevries@suse.de>
8603
8604 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8605
8606 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8607
8608 * .dir-locals.el: Add a comment referencing the other copies of
8609 this file.
8610
8611 2020-03-05 John Baldwin <jhb@FreeBSD.org>
8612
8613 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8614 psargs.
8615
8616 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8617
8618 * .gitattributes: New file.
8619
8620 2020-03-04 Tom Tromey <tom@tromey.com>
8621
8622 * symmisc.c (print_symbol_bcache_statistics)
8623 (print_objfile_statistics): Update.
8624 * symfile.c (allocate_symtab): Use intern.
8625 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8626 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8627 macro_cache>: Remove.
8628 <string_cache>: New member.
8629 (struct objfile) <intern>: New methods.
8630 * elfread.c (elf_symtab_read): Use intern.
8631 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8632 (dwarf2_compute_name, dwarf2_physname)
8633 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8634 names.
8635 (guess_partial_die_structure_name): Update.
8636 (partial_die_info::fixup): Intern name.
8637 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8638 name.
8639 (dwarf2_name): Intern name. Update.
8640 * buildsym.c (buildsym_compunit::get_macro_table): Use
8641 string_cache.
8642
8643 2020-03-04 Tom Tromey <tom@tromey.com>
8644
8645 * jit.c (bfd_open_from_target_memory): Make "target" const.
8646 * corefile.c (gnutarget): Now const.
8647 * gdbcore.h (gnutarget): Now const.
8648
8649 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
8650
8651 * NEWS: Mention support for WOW64 processes.
8652 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8653 (amd64_windows_segment_register_p): Remove static.
8654 (_initialize_amd64_windows_nat): Update.
8655 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8656 * i386-windows-nat.c (context_offset): Update.
8657 (i386_mappings): Rename and remove static.
8658 (i386_windows_segment_register_p): Remove static.
8659 (_initialize_i386_windows_nat): Update.
8660 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8661 (STATUS_WX86_SINGLE_STEP): New macro.
8662 (EnumProcessModulesEx): New macro.
8663 (Wow64SuspendThread): New macro.
8664 (Wow64GetThreadContext): New macro.
8665 (Wow64SetThreadContext): New macro.
8666 (Wow64GetThreadSelectorEntry): New macro.
8667 (windows_set_context_register_offsets): Add static.
8668 (windows_set_segment_register_p): Likewise.
8669 (windows_add_thread): Adapt for WOW64 processes.
8670 (windows_fetch_one_register): Likewise.
8671 (windows_nat_target::fetch_registers): Likewise.
8672 (windows_store_one_register): Likewise.
8673 (display_selector): Likewise.
8674 (display_selectors): Likewise.
8675 (handle_exception): Likewise.
8676 (windows_continue): Likewise.
8677 (windows_nat_target::resume): Likewise.
8678 (windows_add_all_dlls): Likewise.
8679 (do_initial_windows_stuff): Likewise.
8680 (windows_nat_target::attach): Likewise.
8681 (windows_get_exec_module_filename): Likewise.
8682 (windows_nat_target::create_inferior): Likewise.
8683 (windows_xfer_siginfo): Likewise.
8684 (_initialize_loadable): Initialize Wow64SuspendThread,
8685 Wow64GetThreadContext, Wow64SetThreadContext,
8686 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8687 * windows-nat.h (windows_set_context_register_offsets):
8688 Remove declaration.
8689 (windows_set_segment_register_p): Likewise.
8690 (i386_windows_segment_register_p): Add declaration.
8691 (amd64_windows_segment_register_p): Likewise.
8692
8693 2020-03-04 Luis Machado <luis.machado@linaro.org>
8694
8695 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8696 in "info registers" for AArch64/ARM.
8697
8698 The change caused "info registers" to not print GPR's.
8699
8700 gdb/ChangeLog:
8701
8702 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8703
8704 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8705 when reg->group is empty and reggroup is not.
8706
8707 2020-03-03 Tom Tromey <tromey@adacore.com>
8708
8709 * dwarf2/frame.c (struct dwarf2_frame_cache)
8710 <checked_tailcall_bottom, entry_cfa_sp_offset,
8711 entry_cfa_sp_offset_p>: Remove members.
8712 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8713 (dwarf2_frame_prev_register): Don't call
8714 dwarf2_tailcall_sniffer_first.
8715 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8716 * frame-unwind.c (add_unwinder): New fuction.
8717 (frame_unwind_init): Use it. Add tailcall unwinder.
8718
8719 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8720 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8721
8722 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8723 value should be printed as true.
8724
8725 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
8726
8727 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8728 (windows_init_abi): Set and use windows_so_ops.
8729
8730 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8731
8732 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8733 when verifying if dealing with a convenience variable.
8734
8735 2020-03-03 Luis Machado <luis.machado@linaro.org>
8736
8737 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8738
8739 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8740
8741 * infrun.c (gdbarch_supports_displaced_stepping): New.
8742 (use_displaced_stepping): Break up conditions in smaller pieces.
8743 Use gdbarch_supports_displaced_stepping.
8744 (displaced_step_prepare_throw): Use
8745 gdbarch_supports_displaced_stepping.
8746
8747 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8748
8749 * NEWS: Mention new behaviour of the history filename.
8750 * top.c (write_history_p): Add comment.
8751 (show_write_history_p): Add header comment, give a different
8752 message when history writing is on, but the history filename is
8753 empty.
8754 (history_filename): Add comment.
8755 (history_filename_empty): New function.
8756 (show_history_filename): Add header comment, give a different
8757 message when the filename is empty.
8758 (init_history): Compare history_filename against nullptr, and only
8759 read history if the filename is not empty.
8760 (set_history_filename): Add header comment, and only make
8761 non-empty filenames absolute.
8762 (init_main): Make the filename argument to 'set history filename'
8763 optional.
8764
8765 2020-03-02 Christian Biesinger <cbiesinger@google.com>
8766
8767 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8768 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8769 (fetch_fp_register): Update.
8770 (fetch_fp_regs): Update.
8771 (store_fp_register): Update.
8772 (store_fp_regs): Update.
8773 (arm_netbsd_nat_target::read_description): New function.
8774 (fetch_elfcore_registers): Update.
8775
8776 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8777
8778 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8779 general_thread if the stop reply is missing a thread-id.
8780 (remote_target::process_stop_reply): Use the first non-exited
8781 thread if the target didn't pass a thread-id.
8782 * infrun.c (do_target_wait): Move call to
8783 switch_to_inferior_no_thread to ....
8784 (do_target_wait_1): ... here.
8785
8786 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8787
8788 * debuginfod-support.c: Include defs.h first.
8789
8790 2020-02-28 Tom de Vries <tdevries@suse.de>
8791
8792 * symfile.c (set_initial_language): Use default language for lookup.
8793
8794 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
8795
8796 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8797 reader variable, pass `this` to read_cutu_die_from_dwo.
8798
8799 2020-02-27 Aaron Merey <amerey@redhat.com>
8800
8801 * source.c (open_source_file): Check for nullptr when computing
8802 srcpath.
8803
8804 2020-02-27 Tom Tromey <tromey@adacore.com>
8805
8806 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8807 member.
8808 (dwarf2_add_field): Don't update nfields.
8809 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8810
8811 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8812
8813 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8814 abs.
8815
8816 2020-02-26 Tom Tromey <tom@tromey.com>
8817
8818 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8819 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8820 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8821 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8822 per_cu_data.
8823
8824 2020-02-26 Tom Tromey <tom@tromey.com>
8825
8826 * dwarf2/index-write.c (psym_index_map): Change type.
8827 (add_address_entry_worker, write_one_signatured_type)
8828 (recursively_count_psymbols, recursively_write_psymbols)
8829 (class debug_names, psyms_seen_size, write_gdbindex)
8830 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8831
8832 2020-02-26 Aaron Merey <amerey@redhat.com>
8833
8834 * Makefile.in: Handle optional debuginfod support.
8835 * NEWS: Update.
8836 * README: Add --with-debuginfod summary.
8837 * config.in: Regenerate.
8838 * configure: Regenerate.
8839 * configure.ac: Handle optional debuginfod support.
8840 * debuginfod-support.c: debuginfod helper functions.
8841 * debuginfod-support.h: Ditto.
8842 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8843 summary.
8844 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8845 when a dwz file cannot be found.
8846 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8847 debuginfo file cannot be found.
8848 * source.c (open_source_file): Query debuginfod servers when a
8849 source file cannot be found.
8850 * top.c (print_gdb_configuration): Include
8851 --{with,without}-debuginfod in the output.
8852
8853 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8854
8855 * thread.c (thr_try_catch_cmd): Print thread name.
8856
8857 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
8858
8859 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8860 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8861 dwarf2_fetch_die_type_sect_off): Move to...
8862 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8863 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8864 dwarf2_fetch_die_type_sect_off): ... here.
8865 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8866 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8867 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8868
8869 2020-02-26 Tom de Vries <tdevries@suse.de>
8870
8871 PR gdb/25603
8872 * symfile.c (set_initial_language): Exit-early if
8873 language_mode == language_mode_manual.
8874
8875 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8876
8877 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8878 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8879 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8880
8881 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8882
8883 * gdbtypes.c (create_array_type_with_stride): Handle negative
8884 array strides.
8885 * valarith.c (value_subscripted_rvalue): Likewise.
8886
8887 2020-02-25 Luis Machado <luis.machado@linaro.org>
8888
8889 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8890
8891 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8892
8893 * loc.h (dwarf2_get_die_type): Move to...
8894 * read.h (dwarf2_get_die_type): ... here.
8895 * read.c (dwarf2_get_die_type): Move doc to header.
8896
8897 2020-02-25 Joel Brobecker <brobecker@adacore.com>
8898
8899 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8900 'gnulib/Makefile.in' to the list.
8901
8902 2020-02-24 Tom Tromey <tom@tromey.com>
8903
8904 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8905 Remove.
8906 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8907 XOBNEWVEC.
8908
8909 2020-02-24 Tom Tromey <tom@tromey.com>
8910
8911 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8912 New method.
8913 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8914 (dw2_do_instantiate_symtab, dw2_get_file_names)
8915 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8916
8917 2020-02-24 Tom Tromey <tom@tromey.com>
8918
8919 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8920 make_scoped_restore.
8921 (dwarf2_psymtab::read_symtab): Don't clear
8922 reading_partial_symbols.
8923
8924 2020-02-24 Tom de Vries <tdevries@suse.de>
8925
8926 PR gdb/25592
8927 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8928
8929 2020-02-24 Tom de Vries <tdevries@suse.de>
8930
8931 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8932 commands layout next/prev/regs.
8933
8934 2020-02-22 Tom Tromey <tom@tromey.com>
8935
8936 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8937 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8938
8939 2020-02-22 Tom Tromey <tom@tromey.com>
8940
8941 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8942
8943 2020-02-22 Tom Tromey <tom@tromey.com>
8944
8945 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8946 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8947 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8948 * tui/tui.c (_initialize_tui): Add usage text.
8949
8950 2020-02-22 Tom Tromey <tom@tromey.com>
8951
8952 * tui/tui-win.c (tui_set_focus_command)
8953 (tui_set_win_height_command): Use error_no_arg.
8954 (_initialize_tui_win): Update help text.
8955 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8956
8957 2020-02-22 Tom Tromey <tom@tromey.com>
8958
8959 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8960 * tui/tui-disasm.h (struct tui_disasm_window)
8961 <display_start_addr>: Declare.
8962 * tui/tui-source.h (struct tui_source_window)
8963 <display_start_addr>: Declare.
8964 * tui/tui-winsource.h (struct tui_source_window_base)
8965 <show_source_line, display_start_addr>: New methods.
8966 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8967 Rename and move to protected section.
8968 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8969 (tui_source_window_base::do_erase_source_content): Update.
8970 (tui_source_window_base::show_source_line): Now a method.
8971 (tui_source_window_base::show_source_content)
8972 (tui_source_window_base::tui_source_window_base)
8973 (tui_source_window_base::rerender)
8974 (tui_source_window_base::refill)
8975 (tui_source_window_base::do_scroll_horizontal)
8976 (tui_source_window_base::set_is_exec_point_at)
8977 (tui_source_window_base::update_breakpoint_info)
8978 (tui_source_window_base::update_exec_info): Update.
8979 * tui/tui-source.c (tui_source_window::set_contents)
8980 (tui_source_window::showing_source_p)
8981 (tui_source_window::do_scroll_vertical)
8982 (tui_source_window::location_matches_p)
8983 (tui_source_window::line_is_displayed): Update.
8984 (tui_source_window::display_start_addr): New method.
8985 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8986 (tui_disasm_window::do_scroll_vertical)
8987 (tui_disasm_window::location_matches_p): Update.
8988 (tui_disasm_window::display_start_addr): New method.
8989
8990 2020-02-22 Tom Tromey <tom@tromey.com>
8991
8992 * NEWS: Add entry for gdb.register_window_type.
8993 * tui/tui-layout.h (window_factory): New typedef.
8994 (tui_register_window): Declare.
8995 * tui/tui-layout.c (saved_tui_windows): New global.
8996 (tui_apply_current_layout): Use it.
8997 (tui_register_window): New function.
8998 * python/python.c (do_start_initialization): Call
8999 gdbpy_initialize_tui.
9000 (python_GdbMethods): Add "register_window_type" function.
9001 * python/python-internal.h (gdbpy_register_tui_window)
9002 (gdbpy_initialize_tui): Declare.
9003 * python/py-tui.c: New file.
9004 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
9005
9006 2020-02-22 Tom Tromey <tom@tromey.com>
9007
9008 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
9009
9010 2020-02-22 Tom Tromey <tom@tromey.com>
9011
9012 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
9013 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
9014 * tui/tui-data.c (tui_set_win_with_focus): Remove.
9015 (tui_set_win_focus_to): Move from tui-win.c.
9016
9017 2020-02-22 Tom Tromey <tom@tromey.com>
9018
9019 * tui/tui-layout.c (make_standard_window, get_locator_window): New
9020 functions.
9021 (known_window_types): New global.
9022 (tui_get_window_by_name): Reimplement.
9023 (initialize_known_windows): New function.
9024 (validate_window_name): Rewrite.
9025 (_initialize_tui_layout): Call initialize_known_windows.
9026
9027 2020-02-22 Tom Tromey <tom@tromey.com>
9028
9029 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
9030 Remove constants.
9031 * tui/tui-winsource.h (struct tui_source_window_base)
9032 <tui_source_window_base>: Remove parameter.
9033 * tui/tui-winsource.c
9034 (tui_source_window_base::tui_source_window_base): Remove
9035 parameter.
9036 (tui_source_window_base::refill): Update.
9037 * tui/tui-stack.h (struct tui_locator_window)
9038 <tui_locator_window>: Update.
9039 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
9040 Default the constructor.
9041 * tui/tui-regs.h (struct tui_data_item_window)
9042 <tui_data_item_window>: Default the constructor.
9043 (struct tui_data_window) <tui_data_window>: Likewise.
9044 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
9045 Default the constructor.
9046 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
9047 Default the constructor.
9048 <type>: Remove.
9049 (struct tui_win_info) <tui_win_info>: Default the constructor.
9050 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
9051 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
9052 Default the constructor.
9053
9054 2020-02-22 Tom Tromey <tom@tromey.com>
9055
9056 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
9057 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
9058 * tui/tui-win.c (tui_resize_all): Don't call
9059 tui_delete_invisible_windows.
9060 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
9061 done.
9062 (tui_set_layout): Update.
9063 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
9064 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
9065 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
9066
9067 2020-02-22 Tom Tromey <tom@tromey.com>
9068
9069 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
9070 correctly.
9071
9072 2020-02-22 Tom Tromey <tom@tromey.com>
9073
9074 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
9075
9076 2020-02-22 Tom Tromey <tom@tromey.com>
9077
9078 * tui/tui-winsource.h (struct tui_source_window_iterator)
9079 <inner_iterator>: New etytypedef.
9080 <tui_source_window_iterator>: Take "end" parameter.
9081 <tui_source_window_iterator>: Take iterator.
9082 <operator*, advance>: Update.
9083 <m_iter>: Change type.
9084 <m_end>: New field.
9085 (struct tui_source_windows) <begin, end>: Update.
9086 * tui/tui-layout.c (tui_windows): New global.
9087 (tui_apply_current_layout): Clear tui_windows.
9088 (tui_layout_window::apply): Update tui_windows.
9089 * tui/tui-data.h (tui_windows): Declare.
9090 (all_tui_windows): Now inline function.
9091 (class tui_window_iterator, struct all_tui_windows): Remove.
9092
9093 2020-02-22 Tom Tromey <tom@tromey.com>
9094
9095 PR tui/17850:
9096 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
9097 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
9098 "height" argument.
9099 (class tui_layout_window) <get_sizes>: Likewise.
9100 (class tui_layout_split) <tui_layout_split>: Add "vertical"
9101 argument.
9102 <get_sizes>: Add "height" argument.
9103 <m_vertical>: New field.
9104 * tui/tui-layout.c (tui_layout_split::clone): Update.
9105 (tui_layout_split::get_sizes): Add "height" argument.
9106 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
9107 (tui_new_layout_command): Parse "-horizontal".
9108 (_initialize_tui_layout): Update help string.
9109 (tui_layout_split::specification): Add "-horizontal" when needed.
9110 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
9111 argument.
9112 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
9113 New methods.
9114
9115 2020-02-22 Tom Tromey <tom@tromey.com>
9116
9117 * tui/tui-layout.h (enum tui_adjust_result): New.
9118 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
9119 (class tui_layout_window) <adjust_size>: Return
9120 tui_adjust_result. Rewrite.
9121 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9122 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9123
9124 2020-02-22 Tom Tromey <tom@tromey.com>
9125
9126 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9127 parameter and return types.
9128 (class tui_layout_base) <specification>: Add "depth".
9129 (class tui_layout_window) <specification>: Add "depth".
9130 (class tui_layout_split) <specification>: Add "depth".
9131 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9132 and return types.
9133 (tui_new_layout_command): Parse sub-layouts.
9134 (_initialize_tui_layout): Update help string.
9135 (tui_layout_window::specification): Add "depth".
9136 (add_layout_command): Update.
9137
9138 2020-02-22 Tom Tromey <tom@tromey.com>
9139
9140 * NEWS: Add "tui new-layout" item.
9141 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9142 Add new-layout command to help text.
9143 (validate_window_name): New function.
9144 (tui_new_layout_command): New function.
9145 (_initialize_tui_layout): Register "new-layout".
9146 (tui_layout_window::specification): New method.
9147 (tui_layout_window::specification): New method.
9148 * tui/tui-layout.h (class tui_layout_base) <specification>: New
9149 method.
9150 (class tui_layout_window) <specification>: New method.
9151 (class tui_layout_split) <specification>: New method.
9152
9153 2020-02-22 Tom Tromey <tom@tromey.com>
9154
9155 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9156 * tui/tui-win.c (window_name_completer): Update comment.
9157 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9158 Declare method.
9159 (class tui_layout_window) <replace_window>: Likewise.
9160 (class tui_layout_split) <replace_window>: Likewise.
9161 (tui_set_layout): Don't declare.
9162 (tui_set_initial_layout): Declare function.
9163 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9164 (asm_regs_layout): New globals.
9165 (tui_current_layout, show_layout): Remove.
9166 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9167 (find_layout, tui_apply_layout): New function.
9168 (layout_completer): Remove.
9169 (tui_next_layout): Reimplement.
9170 (tui_next_layout_command): New function.
9171 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9172 (tui_regs_layout): Reimplement.
9173 (tui_regs_layout_command): New function.
9174 (extract_display_start_addr): Rewrite.
9175 (next_layout, prev_layout): Remove.
9176 (tui_layout_window::replace_window): New method.
9177 (tui_layout_split::replace_window): New method.
9178 (destroy_layout): New function.
9179 (layout_list): New global.
9180 (add_layout_command): New function.
9181 (initialize_layouts): Update.
9182 (tui_layout_command): New function.
9183 (_initialize_tui_layout): Install "layout" commands.
9184 * tui/tui-data.h (enum tui_layout_type): Remove.
9185 (tui_current_layout): Don't declare.
9186
9187 2020-02-22 Tom Tromey <tom@tromey.com>
9188
9189 * tui/tui-regs.c (tui_reg_layout): Remove.
9190 (tui_reg_command): Use tui_regs_layout.
9191 * tui/tui-layout.h (tui_reg_command): Declare.
9192 * tui/tui-layout.c (tui_reg_command): New function.
9193
9194 2020-02-22 Tom Tromey <tom@tromey.com>
9195
9196 * tui/tui.c (tui_rl_delete_other_windows): Call
9197 tui_remove_some_windows.
9198 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9199 Declare method.
9200 (class tui_layout_window) <remove_windows>: New method.
9201 (class tui_layout_split) <remove_windows>: Declare.
9202 (tui_remove_some_windows): Declare.
9203 * tui/tui-layout.c (tui_remove_some_windows): New function.
9204 (tui_layout_split::remove_windows): New method.
9205
9206 2020-02-22 Tom Tromey <tom@tromey.com>
9207
9208 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9209 * tui/tui-layout.h (tui_next_layout): Declare.
9210 * tui/tui-layout.c (tui_next_layout): New function.
9211
9212 2020-02-22 Tom Tromey <tom@tromey.com>
9213
9214 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9215 correct coordinates.
9216
9217 2020-02-22 Tom Tromey <tom@tromey.com>
9218
9219 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9220 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9221 DATA_WIN case.
9222
9223 2020-02-22 Tom Tromey <tom@tromey.com>
9224
9225 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9226 TUI_DISASM_WIN, not tui_win_list.
9227
9228 2020-02-22 Tom Tromey <tom@tromey.com>
9229
9230 * valprint.c (generic_val_print_enum_1)
9231 (val_print_type_code_flags): Style member names.
9232 * rust-lang.c (val_print_struct, rust_print_enum)
9233 (rust_print_struct_def, rust_internal_print_type): Style member
9234 names.
9235 * p-valprint.c (pascal_object_print_value_fields): Style member
9236 names. Only call fprintf_symbol_filtered for static members.
9237 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9238 * f-valprint.c (f_val_print): Style member names.
9239 * f-typeprint.c (f_type_print_base): Style member names.
9240 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9241 call fprintf_symbol_filtered for static members.
9242 (cp_print_class_member): Style member names.
9243 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9244 member names.
9245 * ada-valprint.c (ada_print_scalar): Style enum names.
9246 (ada_val_print_enum): Likewise.
9247 * ada-typeprint.c (print_enum_type): Style enum names.
9248
9249 2020-02-21 Tom Tromey <tom@tromey.com>
9250
9251 * psympriv.h (struct partial_symtab): Update comment.
9252
9253 2020-02-21 Tom Tromey <tromey@adacore.com>
9254
9255 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9256 type is CORE_ADDR.
9257
9258 2020-02-21 Tom de Vries <tdevries@suse.de>
9259
9260 PR gdb/25534
9261 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9262 if dependencies[i]->user != NULL.
9263
9264 2020-02-21 Ali Tamur <tamur@google.com>
9265
9266 * dwarf2/read.c (dwarf2_name): Add null check.
9267
9268 2020-02-20 Tom Tromey <tom@tromey.com>
9269
9270 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9271 ">=", in binary search.
9272 (dwarf2_find_containing_comp_unit): New overload.
9273 (run_test): New self-test.
9274 (_initialize_dwarf2_read): Register new test.
9275
9276 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
9277
9278 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9279 * riscv-tdep.h: Likewise.
9280 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9281 rv32-only CSR.
9282 * features/riscv/64bit-csr.xml: Regenerated.
9283
9284 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9285 Tom Tromey <tom@tromey.com>
9286
9287 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9288 of 'fputc_unfiltered'.
9289 (putchar_unfiltered): Call 'fputc_unfiltered'.
9290 (fputc_unfiltered): Call 'fputs_unfiltered'.
9291
9292 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9293
9294 * config.in: Regenerate.
9295 * configure: Regenerate.
9296 * configure.ac: Add --with-python-libdir option.
9297 * main.c: Use WITH_PYTHON_LIBDIR.
9298
9299 2020-02-19 Tom Tromey <tom@tromey.com>
9300
9301 * symtab.c (general_symbol_info::compute_and_set_names): Use
9302 obstack_strndup. Simplify call to symbol_set_demangled_name.
9303
9304 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
9305
9306 * dwarf2/read.c (allocate_signatured_type_table,
9307 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9308 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9309 Remove objfile parameter, update all callers.
9310
9311 2020-02-19 Doug Evans <dje@google.com>
9312
9313 PR rust/25535
9314 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9315 rust_enum_variant calculation.
9316
9317 2020-02-19 Tom Tromey <tromey@adacore.com>
9318
9319 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9320
9321 2020-02-19 Tom Tromey <tromey@adacore.com>
9322
9323 * ada-lang.c (cache_symbol): Use obstack_strdup.
9324
9325 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9326
9327 * configure: Regenerate.
9328
9329 2020-02-19 Tom Tromey <tromey@adacore.com>
9330
9331 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9332 NULL check.
9333
9334 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
9335
9336 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9337
9338 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9339
9340 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9341 if GDBSERVER is not defined.
9342 (riscv_tdesc_cache): Likewise, also store const target_desc.
9343 (STATIC_IN_GDB): Define.
9344 (riscv_create_target_description): Update declaration with
9345 STATIC_IN_GDB.
9346 (riscv_lookup_target_description): New function, only define if
9347 GDBSERVER is not defined.
9348 * arch/riscv.h (riscv_create_target_description): Declare only
9349 when GDBSERVER is defined.
9350 (riscv_lookup_target_description): New declaration when GDBSERVER
9351 is not defined.
9352 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9353 (riscv_linux_read_features): ...this, and return
9354 riscv_gdbarch_features instead of target_desc.
9355 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9356 (riscv_linux_read_description): Rename to...
9357 (riscv_linux_read_features): ...this.
9358 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9359 Update to use riscv_gdbarch_features and
9360 riscv_lookup_target_description.
9361 * riscv-tdep.c (riscv_find_default_target_description): Use
9362 riscv_lookup_target_description instead of
9363 riscv_create_target_description.
9364
9365 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9366
9367 * valprint.c (generic_val_print_enum_1): When printing a flag
9368 enum with value 0 and there is no enumerator with value 0, print
9369 just "0" instead of "(unknown: 0x0)".
9370
9371 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9372
9373 * valprint.c (generic_val_print_enum_1): Print unknown part of
9374 flag enum in hex.
9375
9376 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9377
9378 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9379 flag enums to contain duplicate enumerators.
9380 * valprint.c (generic_val_print_enum_1): Update comment.
9381
9382 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9383
9384 * dwarf2/read.c: Include "count-one-bits.h".
9385 (update_enumeration_type_from_children): If an enumerator has
9386 multiple bits set, don't treat the enumeration as a "flag enum".
9387 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9388 of flag enums have 0 or 1 bit set.
9389
9390 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9391
9392 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9393 conversion.
9394 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9395 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9396 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9397 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9398 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9399
9400 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9401
9402 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9403
9404 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9405
9406 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9407 displaced_step_closure_up.
9408 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9409 (struct displaced_step_closure_up):
9410 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9411 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9412 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9413 Likewise.
9414 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9415 * gdbarch.c, gdbarch.h: Re-generate.
9416 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9417 displaced_step_closure_up.
9418 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9419 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9420 * infrun.h (displaced_step_closure_up): New type alias.
9421 (struct displaced_step_inferior_state) <step_closure>: Change
9422 type to displaced_step_closure_up.
9423 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9424 displaced_step_closure_up.
9425 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9426
9427 2020-02-14 Tom Tromey <tom@tromey.com>
9428
9429 * minidebug.c (gnu_debug_key): New global.
9430 (find_separate_debug_file_in_section): Use it.
9431
9432 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9433
9434 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9435 std::unique_ptr.
9436 * gdbarch.c: Re-generate.
9437 * gdbarch.h: Re-generate.
9438 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9439 change.
9440 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9441 type to std::unique_ptr.
9442 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9443 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9444 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9445 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9446 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9447 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9448 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9449 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9450 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9451
9452 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9453
9454 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9455 std::unique_ptr.
9456 (displaced_step_clear): Rename to...
9457 (displaced_step_reset): ... this. Just call displaced->reset ().
9458 (displaced_step_clear_cleanup): Rename to...
9459 (displaced_step_reset_cleanup): ... this.
9460 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9461 (displaced_step_fixup): Likewise.
9462 (resume_1): Likewise.
9463 (handle_inferior_event): Restore child's memory before calling
9464 displaced_step_fixup on the parent.
9465 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9466 to std::unique_ptr.
9467 <step_closure>: Change type to std::unique_ptr.
9468
9469 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9470
9471 * arm-tdep.c: Include count-one-bits.h.
9472 (cleanup_block_store_pc): Use count_one_bits.
9473 (cleanup_block_load_pc): Use count_one_bits.
9474 (arm_copy_block_xfer): Use count_one_bits.
9475 (thumb2_copy_block_xfer): Use count_one_bits.
9476 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9477 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9478 (thumb_get_next_pcs_raw): Use count_one_bits.
9479 (arm_get_next_pcs_raw): Use count_one_bits_l.
9480 * arch/arm.c (bitcount): Remove.
9481 * arch/arm.h (bitcount): Remove.
9482
9483 2020-02-14 Tom Tromey <tromey@adacore.com>
9484
9485 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9486 Update.
9487 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9488 * dwarf2/loc.c (call_site_find_chain_1): Return
9489 unique_xmalloc_ptr.
9490 (call_site_find_chain): Likewise.
9491
9492 2020-02-14 Richard Biener <rguenther@suse.de>
9493
9494 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9495 on expression with division operators.
9496
9497 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9498
9499 * MAINTAINERS (Write After Approval): Adding myself.
9500
9501 2020-02-12 Tom Tromey <tom@tromey.com>
9502
9503 * event-loop.c (event_data, gdb_event, event_handler_func):
9504 Remove.
9505
9506 2020-02-12 Tom Tromey <tom@tromey.com>
9507
9508 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9509 (dwarf2_frame_objfile_data): Add comment.
9510 (find_comp_unit, set_comp_unit): New functions.
9511 (dwarf2_frame_find_fde): Use find_comp_unit.
9512 (dwarf2_build_frame_info): Use set_comp_unit.
9513
9514 2020-02-12 Tom Tromey <tom@tromey.com>
9515
9516 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9517 (comp_unit): Don't initialize objfile.
9518 (execute_cfa_program): Add text_offset parameter.
9519 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9520 (dwarf2_frame_cache): Update.
9521 (dwarf2_build_frame_info): Don't set "objfile" member.
9522
9523 2020-02-12 Tom Tromey <tom@tromey.com>
9524
9525 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9526 (decode_frame_entry): Likewise.
9527 (dwarf2_build_frame_info): Update.
9528
9529 2020-02-12 Tom Tromey <tom@tromey.com>
9530
9531 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9532 (decode_frame_entry_1): Use the comp_unit obstack.
9533
9534 2020-02-12 Tom Tromey <tom@tromey.com>
9535
9536 * dwarf2/frame.c (struct comp_unit): Add initializers and
9537 constructor.
9538 (dwarf2_frame_objfile_data): Store a comp_unit.
9539 (dwarf2_frame_find_fde): Update.
9540 (dwarf2_build_frame_info): Use "new".
9541
9542 2020-02-12 Tom Tromey <tom@tromey.com>
9543
9544 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9545 (dwarf2_fde_table): Typedef for std::vector.
9546 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9547 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9548 (decode_frame_entry): Update.
9549 (dwarf2_build_frame_info): Use "new".
9550
9551 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9552
9553 * arm-tdep.c (arm_gdbarch_init): Update.
9554 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9555 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9556 have_neon, is_m>: Change to bool.
9557
9558 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9559
9560 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9561
9562 2020-02-12 Tom Tromey <tom@tromey.com>
9563
9564 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9565
9566 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
9567
9568 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9569 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9570
9571 2020-02-11 Tom Tromey <tom@tromey.com>
9572
9573 * psymtab.h: Update comment.
9574
9575 2020-02-11 Tom Tromey <tom@tromey.com>
9576
9577 * gdb_obstack.h (struct auto_obstack): Use
9578 DISABLE_COPY_AND_ASSIGN.
9579
9580 2020-02-11 Tom Tromey <tom@tromey.com>
9581
9582 * dwarf2/frame.h (struct objfile): Don't forward declare.
9583
9584 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9585
9586 * cris-tdep.c (cris_supply_gregset): Change signature to match
9587 what struct regset expects.
9588 (cris_regset): New struct.
9589 (fetch_core_registers): Remove.
9590 (cris_iterate_over_regset_sections): New function.
9591 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9592 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9593
9594 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9595
9596 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9597 registers.
9598
9599 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9600
9601 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9602
9603 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9604
9605 * configure: Re-generate.
9606
9607 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9608
9609 * configure: Re-generate.
9610
9611 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9612
9613 * acinclude: Update warning.m4 path.
9614 * warning.m4: Move to gdbsupport.
9615
9616 2020-02-11 Tom Tromey <tromey@adacore.com>
9617
9618 * remote.c (remote_console_output): Update.
9619 * printcmd.c (printf_command): Update.
9620 * event-loop.c (gdb_wait_for_event): Update.
9621 * linux-nat.c (sigchld_handler): Update.
9622 * remote-sim.c (gdb_os_write_stdout): Update.
9623 (gdb_os_flush_stdout): Update.
9624 (gdb_os_flush_stderr): Update.
9625 (gdb_os_write_stderr): Update.
9626 * exceptions.c (print_exception): Update.
9627 * remote-fileio.c (remote_fileio_func_read): Update.
9628 (remote_fileio_func_write): Update.
9629 * tui/tui.c (tui_enable): Update.
9630 * tui/tui-interp.c (tui_interp::init): Update.
9631 * utils.c (init_page_info): Update.
9632 (putchar_unfiltered, fputc_unfiltered): Update.
9633 (gdb_flush): Update.
9634 (emit_style_escape): Update.
9635 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9636 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9637 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9638 (stderr_file::write): Update.
9639 (stderr_file::puts): Update.
9640 * ui-file.h (ui_file_isatty, ui_file_write)
9641 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9642 (ui_file_puts): Don't declare.
9643
9644 2020-02-10 Tom de Vries <tdevries@suse.de>
9645
9646 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9647 sentinel to char *.
9648
9649 2020-02-09 Tom de Vries <tdevries@suse.de>
9650
9651 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9652 filename if it matches "<artificial>".
9653
9654 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9655
9656 * windows-tdep.c (struct enum_value_name): New struct.
9657 (create_enum): New function.
9658 (windows_get_siginfo_type): Create and use enum types.
9659
9660 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9661
9662 * NEWS: Mention $_siginfo support for Windows.
9663 * windows-nat.c (handle_exception): Set siginfo_er.
9664 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9665 (windows_xfer_siginfo): New function.
9666 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9667 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9668 (init_windows_gdbarch_data): New function.
9669 (get_windows_gdbarch_data): New function.
9670 (windows_get_siginfo_type): New function.
9671 (windows_init_abi): Register windows_get_siginfo_type.
9672 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9673
9674 2020-02-08 Tom Tromey <tom@tromey.com>
9675
9676 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9677 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9678 <keep>: Declare method.
9679 <m_keep>: Remove member.
9680 <~cutu_reader>: Remove.
9681 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9682 (cutu_reader::cutu_reader): Update.
9683 (cutu_reader::keep): Rename from ~cutu_reader.
9684 (process_psymtab_comp_unit, build_type_psymtabs_1)
9685 (process_skeletonless_type_unit, load_partial_comp_unit)
9686 (load_full_comp_unit, dwarf2_read_addr_index)
9687 (read_signatured_type): Update.
9688
9689 2020-02-08 Tom Tromey <tom@tromey.com>
9690
9691 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9692 "want_partial_unit" parameter.
9693 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9694 Inline check for DW_TAG_partial_unit.
9695 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9696
9697 2020-02-08 Tom Tromey <tom@tromey.com>
9698
9699 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9700 read.c.
9701 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9702 read.c.
9703
9704 2020-02-08 Tom Tromey <tom@tromey.com>
9705
9706 * dwarf2/read.c (read_address): Move to comp-unit.c.
9707 (dwarf2_rnglists_process, dwarf2_ranges_process)
9708 (read_attribute_value, dwarf_decode_lines_1)
9709 (var_decode_location, decode_locdesc): Update.
9710 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9711 read.c. Remove "cu" parameter.
9712 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9713 method.
9714
9715 2020-02-08 Tom Tromey <tom@tromey.com>
9716
9717 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9718 (read_indirect_line_string): Update.
9719 * dwarf2/comp-unit.c (read_offset): Remove.
9720 (read_comp_unit_head): Update.
9721 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9722 method.
9723 (read_offset): Don't declare.
9724
9725 2020-02-08 Tom Tromey <tom@tromey.com>
9726
9727 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9728 * dwarf2/read.c (struct comp_unit_head): Move to
9729 dwarf2/comp-unit.h.
9730 (enum class rcuh_kind): Move to comp-unit.h.
9731 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9732 (read_comp_unit_head, error_check_comp_unit_head)
9733 (read_and_check_comp_unit_head): Move to comp-unit.c.
9734 (read_offset, dwarf_unit_type_name): Likewise.
9735 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9736 (cutu_reader::cutu_reader, read_call_site_scope)
9737 (find_partial_die, follow_die_offset): Update.
9738 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9739
9740 2020-02-08 Tom Tromey <tom@tromey.com>
9741
9742 * dwarf2/read.c (read_offset_1): Move to leb.c.
9743 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9744 (dwarf_decode_macro_bytes): Update.
9745 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9746 * dwarf2/leb.h (read_offset): Declare.
9747
9748 2020-02-08 Tom Tromey <tom@tromey.com>
9749
9750 * dwarf2/read.c (dwarf2_section_size): Remove.
9751 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9752 Update.
9753 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9754
9755 2020-02-08 Tom Tromey <tom@tromey.com>
9756
9757 * dwarf2/read.c (read_initial_length): Move to leb.c.
9758 * dwarf2/leb.h (read_initial_length): Declare.
9759 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9760 handle_nonstd parameter.
9761 * dwarf2/frame.c (read_initial_length): Remove.
9762 (decode_frame_entry_1): Update.
9763
9764 2020-02-08 Tom Tromey <tom@tromey.com>
9765
9766 * dwarf2/loc.c (dwarf2_find_location_expression)
9767 (dwarf_evaluate_loc_desc::get_tls_address)
9768 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9769 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9770 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9771 (dwarf2_compile_property_to_c)
9772 (dwarf2_loc_desc_get_symbol_read_needs)
9773 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9774 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9775 (loclist_describe_location, loclist_tracepoint_var_ref)
9776 (loclist_generate_c_location): Update.
9777 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9778 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9779 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9780 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9781 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9782 (dwarf2_per_cu_data::addr_size)
9783 (dwarf2_per_cu_data::ref_addr_size)
9784 (dwarf2_per_cu_data::text_offset)
9785 (dwarf2_per_cu_data::addr_type): Now methods.
9786 (per_cu_header_read_in): Make per_cu "const".
9787 (dwarf2_version): Remove.
9788 (dwarf2_per_cu_data::int_type): Now a method.
9789 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9790 (set_die_type, read_array_type, read_subrange_index_type)
9791 (read_tag_string_type, read_subrange_type): Update.
9792 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9793 offset_size, ref_addr_size, text_offset, addr_type, version,
9794 objfile, int_type, addr_sized_int_type>: Declare methods.
9795
9796 2020-02-08 Tom Tromey <tom@tromey.com>
9797
9798 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9799 Move earlier.
9800
9801 2020-02-08 Tom Tromey <tom@tromey.com>
9802
9803 * dwarf2/read.h (dwarf_line_debug): Declare.
9804 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9805 * dwarf2/read.c: Move line_header code to new files.
9806 (dwarf_line_debug): No longer static.
9807 * dwarf2/line-header.c: New file.
9808 * dwarf2/line-header.h: New file.
9809
9810 2020-02-08 Tom Tromey <tom@tromey.com>
9811
9812 * dwarf2/read.c (struct line_header) <file_full_name,
9813 file_file_name>: Return unique_xmalloc_ptr.
9814 (line_header::file_file_name): Update.
9815 (line_header::file_full_name): Update.
9816 (dw2_get_file_names_reader): Update.
9817 (macro_start_file): Update.
9818
9819 2020-02-08 Tom Tromey <tom@tromey.com>
9820
9821 * dwarf2/read.c (struct line_header) <file_full_name,
9822 file_file_name>: Declare methods.
9823 (dw2_get_file_names_reader): Update.
9824 (file_file_name): Now a method.
9825 (file_full_name): Likewise.
9826 (macro_start_file): Update.
9827
9828 2020-02-08 Tom Tromey <tom@tromey.com>
9829
9830 * dwarf2/read.c (dwarf_always_disassemble)
9831 (show_dwarf_always_disassemble): Move to loc.c.
9832 (_initialize_dwarf2_read): Move "always-disassemble" registration
9833 to loc.c.
9834 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9835 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9836 static.
9837 (show_dwarf_always_disassemble): Move from read.c.
9838 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9839
9840 2020-02-08 Tom Tromey <tom@tromey.com>
9841
9842 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9843 (create_quick_file_names_table): Return htab_up.
9844 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9845 Update.
9846 * dwarf2/read.h (struct dwarf2_per_objfile)
9847 <quick_file_names_table>: Now htab_up.
9848
9849 2020-02-08 Tom Tromey <tom@tromey.com>
9850
9851 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9852
9853 2020-02-08 Tom Tromey <tom@tromey.com>
9854
9855 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9856 Rewrite.
9857 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9858 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9859 (abbrev_table::abbrev_table): No longer inline.
9860 (ABBREV_HASH_SIZE): Remove.
9861 (abbrev_table::m_abbrevs): Now an htab_up.
9862
9863 2020-02-08 Tom Tromey <tom@tromey.com>
9864
9865 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9866 (cutu_reader): Update.
9867 (build_type_psymtabs_1): Update.
9868 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9869 (abbrev_table::alloc_abbrev): Update.
9870 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9871 (abbrev_table::read): New static method, renamed from
9872 abbrev_table_read_table.
9873 (abbrev_table::alloc_abbrev)
9874 (abbrev_table::add_abbrev): Now private.
9875 (abbrev_table::abbrev_table): Now private.
9876 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9877
9878 2020-02-08 Tom Tromey <tom@tromey.com>
9879
9880 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9881 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9882 htab_up.
9883
9884 2020-02-08 Tom Tromey <tom@tromey.com>
9885
9886 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9887 htab_up.
9888 (lookup_dwo_unit_in_dwp): Update.
9889 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9890 on obstack.
9891
9892 2020-02-08 Tom Tromey <tom@tromey.com>
9893
9894 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9895 obstack.
9896
9897 2020-02-08 Tom Tromey <tom@tromey.com>
9898
9899 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9900 line_header_hash.
9901 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9902 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9903 Change type to htab_up.
9904
9905 2020-02-08 Tom Tromey <tom@tromey.com>
9906
9907 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9908 htab_up. Don't allocate on obstack.
9909 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9910 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9911 Change type to htab_up.
9912
9913 2020-02-08 Tom Tromey <tom@tromey.com>
9914
9915 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9916 Change type to htab_up.
9917 * dwarf2/read.c (create_signatured_type_table_from_index)
9918 (create_signatured_type_table_from_debug_names)
9919 (create_all_type_units, add_type_unit)
9920 (lookup_dwo_signatured_type, lookup_signatured_type)
9921 (process_skeletonless_type_unit): Update.
9922 (create_debug_type_hash_table, create_debug_types_hash_table):
9923 Change type of types_htab.
9924 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9925 htab_up. Don't allocate on obstack.
9926 (create_cus_hash_table): Change type of cus_htab parameter.
9927 (struct dwo_file) <cus, tus>: Now htab_up.
9928 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9929 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9930 (queue_and_load_all_dwo_tus): Update.
9931 * dwarf2/index-write.c (write_gdbindex): Update.
9932 (write_debug_names): Update.
9933
9934 2020-02-08 Tom Tromey <tom@tromey.com>
9935
9936 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9937 dwarf2/read.c. Remove "next" member. Add constructor ntad
9938 destructor.
9939 (struct dwarf2_per_objfile) <queue>: New member.
9940 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9941 dwarf2/read.h.
9942 (dwarf2_queue, dwarf2_queue_tail): Remove.
9943 (class dwarf2_queue_guard): Add parameter to constructor. Use
9944 DISABLE_COPY_AND_ASSIGN.
9945 <m_per_objfile>: New member.
9946 <~dwarf2_queue_guard>: Rewrite.
9947 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9948 Update.
9949 (~dwarf2_queue_item): New.
9950
9951 2020-02-08 Tom Tromey <tom@tromey.com>
9952
9953 * dwarf2/read.c (struct die_info) <has_children>: New member.
9954 (dw2_get_file_names_reader): Remove has_children.
9955 (dw2_get_file_names): Update.
9956 (read_cutu_die_from_dwo): Remove has_children.
9957 (cutu_reader::init_tu_and_read_dwo_dies)
9958 (cutu_reader::cutu_reader): Update.
9959 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9960 Remove has_children.
9961 (build_type_psymtabs_1, process_skeletonless_type_unit)
9962 (load_partial_comp_unit, load_full_comp_unit): Update.
9963 (create_dwo_cu_reader): Remove has_children.
9964 (create_cus_hash_table, read_die_and_children): Update.
9965 (read_full_die_1,read_full_die): Remove has_children.
9966 (read_signatured_type): Update.
9967 (class cutu_reader) <has_children>: Remove.
9968
9969 2020-02-08 Tom Tromey <tom@tromey.com>
9970
9971 * dwarf2/expr.c: Rename from dwarf2expr.c.
9972 * dwarf2/expr.h: Rename from dwarf2expr.h.
9973 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9974 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9975 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9976 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9977 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9978 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9979 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9980 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9981 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9982 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9983 * dwarf2/loc.c: Rename from dwarf2loc.c.
9984 * dwarf2/loc.h: Rename from dwarf2loc.h.
9985 * dwarf2/read.c: Rename from dwarf2read.c.
9986 * dwarf2/read.h: Rename from dwarf2read.h.
9987 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9988 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9989 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9990 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9991 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9992 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9993 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9994 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9995 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9996 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9997 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9998 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9999 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
10000 Update.
10001 * Makefile.in (COMMON_SFILES): Update.
10002 (HFILES_NO_SRCDIR): Update.
10003
10004 2020-02-08 Tom Tromey <tom@tromey.com>
10005
10006 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
10007 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
10008
10009 2020-02-08 Tom Tromey <tom@tromey.com>
10010
10011 * dwarf2read.h (struct die_info): Don't declare.
10012
10013 2020-02-08 Tom Tromey <tom@tromey.com>
10014
10015 * dwarf2read.h (die_info_ptr): Remove typedef.
10016
10017 2020-02-08 Tom Tromey <tom@tromey.com>
10018
10019 * dwarf2read.c (read_call_site_scope)
10020 (handle_data_member_location, dwarf2_add_member_fn)
10021 (mark_common_block_symbol_computed, read_common_block)
10022 (attr_to_dynamic_prop, partial_die_info::read)
10023 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
10024 (dwarf2_symbol_mark_computed, set_die_type): Update.
10025 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
10026 method.
10027 (attr_form_is_block): Don't declare.
10028 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
10029
10030 2020-02-08 Tom Tromey <tom@tromey.com>
10031
10032 * dwarf2read.c (dwarf2_find_base_address, )
10033 (read_call_site_scope, rust_containing_type)
10034 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
10035 (handle_data_member_location, dwarf2_add_member_fn)
10036 (get_alignment, read_structure_type, process_structure_scope)
10037 (mark_common_block_symbol_computed, read_common_block)
10038 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
10039 (partial_die_info::read, read_attribute_value, new_symbol)
10040 (lookup_die_type, dwarf2_get_ref_die_offset)
10041 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
10042 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
10043 (dwarf2_symbol_mark_computed): Update.
10044 * dwarf2/attribute.h (struct attribute) <value_as_address,
10045 form_is_section_offset, form_is_constant, form_is_ref>: Declare
10046 methods.
10047 (value_as_address, attr_form_is_section_offset)
10048 (attr_form_is_constant, attr_form_is_ref): Don't declare.
10049 * dwarf2/attribute.c (attribute::value_as_address)
10050 (attribute::form_is_section_offset, attribute::form_is_constant)
10051 (attribute::form_is_ref): Now methods.
10052
10053 2020-02-08 Tom Tromey <tom@tromey.com>
10054
10055 * dwarf2read.c (struct attribute, DW_STRING)
10056 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
10057 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
10058 (attr_form_is_block, attr_form_is_section_offset)
10059 (attr_form_is_constant, attr_form_is_ref): Move.
10060 * dwarf2/attribute.h: New file.
10061 * dwarf2/attribute.c: New file, from dwarf2read.c.
10062 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
10063
10064 2020-02-08 Tom Tromey <tom@tromey.com>
10065
10066 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
10067 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
10068 Move.
10069 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
10070 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
10071 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
10072 abbrev.c.
10073 * dwarf2/abbrev.h: New file.
10074 * dwarf2/abbrev.c: New file, from dwarf2read.c.
10075 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
10076
10077 2020-02-08 Tom Tromey <tom@tromey.com>
10078
10079 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
10080 (dwarf2_section_size, dwarf2_get_section_info)
10081 (create_signatured_type_table_from_debug_names)
10082 (create_addrmap_from_aranges, read_debug_names_from_section)
10083 (get_gdb_index_contents_from_section, read_comp_unit_head)
10084 (error_check_comp_unit_head, read_abbrev_offset)
10085 (create_debug_type_hash_table, init_cu_die_reader)
10086 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
10087 (read_comp_units_from_section, create_cus_hash_table)
10088 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10089 (create_dwp_v2_section, dwarf2_rnglists_process)
10090 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
10091 (abbrev_table_read_table, read_indirect_string_at_offset_from)
10092 (read_indirect_string_from_dwz, read_addr_index_1)
10093 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
10094 (dwarf_decode_macro_bytes, dwarf_decode_macros)
10095 (fill_in_loclist_baton): Update.
10096 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
10097 get_containing_section, get_bfd_owner, get_bfd_section,
10098 get_file_name, get_id, get_flags, empty, read>: Declare methods.
10099 (dwarf2_read_section, get_section_name, get_section_file_name)
10100 (get_containing_section, get_section_bfd_owner)
10101 (get_section_bfd_section, get_section_name, get_section_file_name)
10102 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
10103 declare.
10104 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
10105 (dwarf2_section_info::get_bfd_owner)
10106 (dwarf2_section_info::get_bfd_section)
10107 (dwarf2_section_info::get_name)
10108 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
10109 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
10110 (dwarf2_section_info::read): Now methods.
10111 * dwarf-index-write.c (class debug_names): Update.
10112
10113 2020-02-08 Tom Tromey <tom@tromey.com>
10114
10115 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
10116 Move to dwarf2/section.h.
10117 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
10118 (get_section_bfd_section, get_section_name)
10119 (get_section_file_name, get_section_id, get_section_flags)
10120 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
10121 dwarf2/section.c.
10122 * dwarf2/section.h: New file.
10123 * dwarf2/section.c: New file, from dwarf2read.c.
10124 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10125
10126 2020-02-08 Tom Tromey <tom@tromey.com>
10127
10128 * dwarf2read.h (read_unsigned_leb128): Don't declare.
10129 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10130 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10131 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10132 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10133 * dwarf2/leb.h: New file, from dwarf2read.c.
10134 * dwarf2/leb.c: New file, from dwarf2read.c.
10135 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10136 Remove.
10137 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10138 (COMMON_SFILES): Add dwarf2/leb.c.
10139
10140 2020-02-08 Joel Brobecker <brobecker@adacore.com>
10141
10142 GDB 9.1 released.
10143
10144 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10145
10146 PR gdb/25190:
10147 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10148 * gdb/remote.c (remote_console_output): Update.
10149 * gdb/ui-file.c (fputs_unfiltered): Rename to...
10150 (ui_file_puts): ...this.
10151 * gdb/ui-file.h (ui_file_puts): Add declaration.
10152 * gdb/utils.c (emit_style_escape): Update.
10153 (flush_wrap_buffer): Update.
10154 (fputs_maybe_filtered): Update.
10155 (fputs_unfiltered): Add function.
10156
10157 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10158
10159 * gdb/event-loop.c (gdb_wait_for_event): Update.
10160 * gdb/printcmd.c (printf_command): Update.
10161 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10162 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10163 (gdb_os_flush_stderr): Update.
10164 * gdb/remote.c (remote_console_output): Update.
10165 * gdb/ui-file.c (gdb_flush): Rename to...
10166 (ui_file_flush): ...this.
10167 (stderr_file::write): Update.
10168 (stderr_file::puts): Update.
10169 * gdb/ui-file.h (gdb_flush): Rename to...
10170 (ui_file_flush): ...this.
10171 * gdb/utils.c (gdb_flush): Add function.
10172 * gdb/utils.h (gdb_flush): Add declaration.
10173
10174 2020-02-07 Tom Tromey <tromey@adacore.com>
10175
10176 PR breakpoints/24915:
10177 * source.c (find_and_open_source): Do not check basenames_may_differ.
10178
10179 2020-02-07 Tom Tromey <tom@tromey.com>
10180
10181 * README: Update gdbserver documentation.
10182 * gdbserver: Move to top level.
10183 * configure.tgt (build_gdbserver): Remove.
10184 * configure.ac: Remove --enable-gdbserver.
10185 * configure: Rebuild.
10186 * Makefile.in (distclean): Don't mention gdbserver.
10187
10188 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10189
10190 * source-cache.c (source_cache::ensure): Surround
10191 get_plain_source_lines with a try/catch.
10192 (source_cache::get_line_charpos): Get rid of try/catch
10193 and only check for the return value of "ensure".
10194 * tui/tui-source.c (tui_source_window::set_contents):
10195 Simplify "nlines" calculation.
10196
10197 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10198
10199 * MAINTAINERS (Write After Approval): Add myself.
10200
10201 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10202
10203 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10204 function call.
10205
10206 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10207
10208 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10209
10210 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
10211
10212 * nat/riscv-linux-tdesc.h: New file.
10213 * nat/riscv-linux-tdesc.c: New file, taking code from...
10214 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10215 ... here.
10216 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10217 NATDEPFILES.
10218
10219 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10220
10221 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10222 we don't set the fake simulator ptid to the null_ptid.
10223
10224 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
10225
10226 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10227 * gdbthread.h (class thread_info) <resumed>: Likewise.
10228 * infrun.c (resume_1): Likewise.
10229 (proceed): Likewise.
10230 (infrun_thread_stop_requested): Likewise.
10231 (stop_all_threads): Likewise.
10232 (handle_inferior_event): Likewise.
10233 (restart_threads): Likewise.
10234 (finish_step_over): Likewise.
10235 (keep_going_stepped_thread): Likewise.
10236 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10237 (linux_handle_extended_wait): Likewise.
10238 * record-btrace.c (get_thread_current_frame_id): Likewise.
10239 * record-full.c (record_full_wait_1): Likewise.
10240 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10241 * target.c (target_resume): Likewise.
10242 * thread.c (set_running_thread): Likewise.
10243
10244 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10245
10246 * f-valprint.c (f77_print_array_1): Changed datatype of index
10247 variable to LONGEST from int to enable it to contain bound
10248 values correctly.
10249
10250 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
10251
10252 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10253 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10254 offsets according to FLEN determined.
10255 (riscv_linux_nat_target::read_description): Determine FLEN
10256 dynamically.
10257 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10258 according to FLEN determined.
10259 (riscv_linux_nat_target::store_registers): Likewise.
10260
10261 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10262
10263 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10264 when reg->group is empty and reggroup is not.
10265
10266 2020-01-31 Tom Tromey <tromey@adacore.com>
10267
10268 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10269 Call beneath target's mourn_inferior after unpushing.
10270
10271 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10272
10273 PR tui/9765
10274 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10275 have enough lines to fill the screen, still return the lowest
10276 address we found.
10277
10278 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10279
10280 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10281 '-', '<', and '>' commands.
10282
10283 2020-01-29 Pedro Alves <palves@redhat.com>
10284 Sergio Durigan Junior <sergiodj@redhat.com>
10285
10286 * infcmd.c (construct_inferior_arguments): Assert that
10287 'argc' is greater than 0.
10288
10289 2020-01-29 Luis Machado <luis.machado@linaro.org>
10290
10291 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10292 (BRK_INSN_MASK): Define to 0xd4200000.
10293 (aarch64_program_breakpoint_here_p): New function.
10294 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10295 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10296 breakpoint.c.
10297 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10298 breakpoint.h
10299 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10300 call gdbarch_program_breakpoint_here_p.
10301 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10302 default_program_breakpoint_here_p, changed return type to bool and
10303 simplified.
10304 * breakpoint.h (program_breakpoint_here): Moved prototype to
10305 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10306 return type to bool.
10307 * gdbarch.c: Regenerate.
10308 * gdbarch.h: Regenerate.
10309 * gdbarch.sh (program_breakpoint_here_p): New method.
10310 * infrun.c (handle_signal_stop): Call
10311 gdbarch_program_breakpoint_here_p.
10312
10313 2020-01-26 Tom Tromey <tom@tromey.com>
10314
10315 * ctfread.c (struct ctf_fp_info): Reindent.
10316 (_initialize_ctfread): Remove.
10317
10318 2020-01-26 Tom Tromey <tom@tromey.com>
10319
10320 * psymtab.c (partial_map_expand_apply)
10321 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10322 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10323 (psym_print_stats, psym_expand_symtabs_for_function)
10324 (psym_map_symbol_filenames, psym_map_matching_symbols)
10325 (psym_expand_symtabs_matching)
10326 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10327 (maintenance_check_psymtabs): Use new methods.
10328 * psympriv.h (struct partial_symtab) <readin_p,
10329 get_compunit_symtab>: New methods.
10330 <readin, compunit_symtab>: Remove members.
10331 (struct standard_psymtab): New.
10332 (struct legacy_psymtab): Derive from standard_psymtab.
10333 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10334 standard_psymtab.
10335 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10336
10337 2020-01-26 Tom Tromey <tom@tromey.com>
10338
10339 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10340 read_dependencies. Add assert.
10341 * psymtab.c (partial_symtab::read_dependencies): New method.
10342 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10343 method.
10344 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10345 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10346 read_dependencies.
10347 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10348 Add assert.
10349
10350 2020-01-26 Tom Tromey <tom@tromey.com>
10351
10352 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10353 Call expand_psymtab.
10354 (xcoff_read_symtab): Call expand_psymtab.
10355 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10356 legacy_expand_psymtab.
10357 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10358 method.
10359 (struct legacy_psymtab) <expand_psymtab>: Implement.
10360 <legacy_expand_psymtab>: New member.
10361 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10362 (parse_partial_symbols): Set legacy_expand_psymtab.
10363 (psymtab_to_symtab_1): Change argument order. Call
10364 expand_psymtab.
10365 (new_psymtab): Set legacy_expand_psymtab.
10366 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10367 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10368 expand_psymtab.
10369 (dwarf2_psymtab::expand_psymtab): Rename from
10370 psymtab_to_symtab_1. Call expand_psymtab.
10371 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10372 (dbx_end_psymtab): Likewise.
10373 (dbx_psymtab_to_symtab_1): Change argument order. Call
10374 expand_psymtab.
10375 (dbx_read_symtab): Call expand_psymtab.
10376 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10377 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10378 (ctf_psymtab::read_symtab): Call expand_psymtab.
10379
10380 2020-01-26 Tom Tromey <tom@tromey.com>
10381
10382 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10383 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10384 messages.
10385 * mdebugread.c (mdebug_read_symtab): Remove prints.
10386 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10387 assert.
10388 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10389
10390 2020-01-26 Tom Tromey <tom@tromey.com>
10391
10392 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10393 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10394 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10395 legacy_symtab.
10396 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10397 * psymtab.c (psymtab_to_symtab): Call method.
10398 (dump_psymtab): Update.
10399 * psympriv.h (struct partial_symtab): Add virtual destructor.
10400 <read_symtab>: New method.
10401 (struct legacy_symtab): New.
10402 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10403 (struct pst_map) <pst>: Now a legacy_psymtab.
10404 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10405 (new_psymtab): Use legacy_psymtab.
10406 * dwarf2read.h (struct dwarf2_psymtab): New.
10407 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10408 * dwarf2read.c (dwarf2_create_include_psymtab)
10409 (dwarf2_build_include_psymtabs, create_type_unit_group)
10410 (create_partial_symtab, process_psymtab_comp_unit_reader)
10411 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10412 (set_partial_user): Use dwarf2_psymtab.
10413 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10414 (psymtab_to_symtab_1, process_full_comp_unit)
10415 (process_full_type_unit, dwarf2_ranges_read)
10416 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10417 (dwarf_decode_lines): Use dwarf2_psymtab.
10418 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10419 (add_address_entry_worker, write_one_signatured_type)
10420 (recursively_count_psymbols, recursively_write_psymbols)
10421 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10422 (write_debug_names): Likewise.
10423 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10424 <pst>: Now a legacy_psymtab.
10425 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10426 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10427 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10428 * ctfread.c (struct ctf_psymtab): New.
10429 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10430 ctf_psymtab.
10431 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10432 (create_partial_symtab): Return a ctf_psymtab.
10433 (scan_partial_symbols): Update.
10434
10435 2020-01-26 Tom Tromey <tom@tromey.com>
10436
10437 * xcoffread.c (xcoff_start_psymtab): Use new.
10438 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10439 renamed from start_psymtab_common.
10440 * psympriv.h (struct partial_symtab): Add new constructor.
10441 (start_psymtab_common): Don't declare.
10442 * mdebugread.c (parse_partial_symbols): Use new.
10443 * dwarf2read.c (create_partial_symtab): Use new.
10444 * dbxread.c (start_psymtab): Use new.
10445 * ctfread.c (create_partial_symtab): Use new.
10446
10447 2020-01-26 Tom Tromey <tom@tromey.com>
10448
10449 * xcoffread.c (xcoff_end_psymtab): Use new.
10450 * psymtab.c (start_psymtab_common): Use new.
10451 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10452 Update.
10453 * psympriv.h (struct partial_symtab): Add parameters to
10454 constructor. Don't inline.
10455 (allocate_psymtab): Don't declare.
10456 * mdebugread.c (new_psymtab): Use new.
10457 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10458 * dbxread.c (dbx_end_psymtab): Use new.
10459
10460 2020-01-26 Tom Tromey <tom@tromey.com>
10461
10462 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10463 allocate_psymtab. Update documentation.
10464 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10465 allocate_psymtab. Do not use new.
10466 (allocate_psymtab): Use new. Update.
10467
10468 2020-01-26 Tom Tromey <tom@tromey.com>
10469
10470 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10471 * psymtab.c (psym_print_stats): Update.
10472 * psympriv.h (struct partial_symtab) <readin,
10473 psymtabs_addrmap_supported, anonymous>: Now bool.
10474 * mdebugread.c (psymtab_to_symtab_1): Update.
10475 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10476 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10477 (process_full_comp_unit, process_full_type_unit): Update.
10478 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10479 * ctfread.c (psymtab_to_symtab): Update.
10480
10481 2020-01-26 Tom Tromey <tom@tromey.com>
10482
10483 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10484 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10485 * psymtab.c (psymtab_storage): Delete psymtabs.
10486 (psymtab_storage::allocate_psymtab): Use new.
10487 (psymtab_storage::discard_psymtab): Use delete.
10488 * psympriv.h (struct partial_symtab): Add constructor and
10489 initializers.
10490
10491 2020-01-26 Tom Tromey <tom@tromey.com>
10492
10493 * machoread.c: Do not include psympriv.h.
10494
10495 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10496
10497 * NEWS: Mention the new option and the set/show commands.
10498
10499 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10500
10501 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10502 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10503 (validate_exec_file): New variables, enums, functions.
10504 (exec_file_locate_attach, print_section_info): Style the filenames.
10505 (_initialize_exec): Install show_exec_file_mismatch_command and
10506 set_exec_file_mismatch_command.
10507 * gdbcore.h (validate_exec_file): Declare.
10508 * infcmd.c (attach_command): Call validate_exec_file.
10509 * remote.c ( remote_target::remote_add_inferior): Likewise.
10510
10511 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10512
10513 * frame.c (find_frame_sal): Move call to get_next_frame into more
10514 inner scope.
10515 * inline-frame.c (inilne_state) <inline_state>: Update argument
10516 types.
10517 (inilne_state) <skipped_symbol>: Rename to...
10518 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10519 (skip_inline_frames): Build vector of skipped symbols and use this
10520 to reate the inline_state.
10521 (inline_skipped_symbol): Add a comment and some assertions, fetch
10522 skipped symbol from the list.
10523
10524 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10525
10526 * buildsym.c (lte_is_less_than): Delete.
10527 (buildsym_compunit::end_symtab_with_blockvector): Create local
10528 lambda function to sort line table entries, and use
10529 std::stable_sort instead of std::sort.
10530 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10531 markers when looking for a previous line.
10532
10533 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10534
10535 * dwarf2read.c (lnp_state_machine::record_line): Include
10536 end_sequence parameter in debug print out. Record the line if we
10537 are at an end_sequence marker even if it's not the start of a
10538 statement.
10539 * symmisc.c (maintenance_print_one_line_table): Print end of
10540 sequence markers with 'END' not '0'.
10541
10542 2020-01-24 Pedro Alves <palves@redhat.com>
10543
10544 PR gdb/25410
10545 * thread.c (scoped_restore_current_thread::restore): Use
10546 switch_to_inferior_no_thread.
10547 * exec.c: Include "progspace-and-thread.h".
10548 (add_target_sections, remove_target_sections):
10549 scoped_restore_current_pspace_and_thread instead of
10550 scoped_restore_current_thread.
10551 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10552 and aspace to the inferior before calling clone_program_space.
10553 Remove stale comment.
10554
10555 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10556
10557 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10558 (arm_netbsd_nat_target::fetch_registers): ...this.
10559 (arm_nbsd_nat_target::store_registers): Rename to...
10560 (arm_netbsd_nat_target::store_registers): ...this.
10561
10562 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10563
10564 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10565 register_t.
10566
10567 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10568
10569 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10570 Update comment.
10571 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10572 Likewise.
10573 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10574 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10575 the correct replacement (iterate_over_regset_sections).
10576 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10577 Update comment.
10578
10579 2020-01-24 Graham Markall <graham.markall@embecosm.com>
10580
10581 PR gdb/23718
10582 * gdb/python/python.c (execute_gdb_command): Call
10583 async_enable_stdin in catch block.
10584
10585 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10586
10587 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10588 SWITCH_THRU_ALL_UIS.
10589
10590 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10591
10592 PR tui/9765
10593 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10594 comment, add extra parameter, and update to store previous symbol
10595 when appropriate.
10596 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10597 add extra parameter.
10598 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10599 remove unneeded parameter, add try/catch around gdb_print_insn,
10600 rewrite to add items to asm_lines vector.
10601 (tui_find_backward_disassembly_start_address): New function.
10602 (tui_find_disassembly_address): Updated throughout.
10603 (tui_disasm_window::set_contents): Update for changes to
10604 tui_disassemble.
10605 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10606 number of lines to scroll.
10607
10608 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10609
10610 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10611 (SECT_OFF_DATA): Likewise.
10612 (SECT_OFF_RODATA): Likewise.
10613 (SECT_OFF_TEXT): Likewise.
10614 (SECT_OFF_BSS): Likewise.
10615 (struct objfile) <text_section_offset, data_section_offset>: New
10616 methods.
10617 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10618 objfile::text_section_offset.
10619 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10620 * coffread.c (coff_symtab_read): Likewise.
10621 (enter_linenos): Likewise.
10622 (process_coff_symbol): Likewise.
10623 * ctfread.c (get_objfile_text_range): Likewise.
10624 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10625 Use objfile::data_section_offset.
10626 * dwarf2-frame.c (execute_cfa_program): Use
10627 objfile::text_section_offset.
10628 (dwarf2_frame_find_fde): Likewise.
10629 * dwarf2read.c (create_addrmap_from_index): Likewise.
10630 (create_addrmap_from_aranges): Likewise.
10631 (dw2_find_pc_sect_compunit_symtab): Likewise.
10632 (process_psymtab_comp_unit_reader): Likewise.
10633 (add_partial_symbol): Likewise.
10634 (add_partial_subprogram): Likewise.
10635 (process_full_comp_unit): Likewise.
10636 (read_file_scope): Likewise.
10637 (read_func_scope): Likewise.
10638 (read_lexical_block_scope): Likewise.
10639 (read_call_site_scope): Likewise.
10640 (dwarf2_rnglists_process): Likewise.
10641 (dwarf2_ranges_process): Likewise.
10642 (dwarf2_ranges_read): Likewise.
10643 (dwarf_decode_lines_1): Likewise.
10644 (new_symbol): Likewise.
10645 (dwarf2_fetch_die_loc_sect_off): Likewise.
10646 (dwarf2_per_cu_text_offset): Likewise.
10647 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10648 * hppa-tdep.c (read_unwind_info): Likewise.
10649 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10650 * psympriv.h (struct partial_symtab): Likewise.
10651 * psymtab.c (find_pc_sect_psymtab): Likewise.
10652 * solib-svr4.c (enable_break): Likewise.
10653 * stap-probe.c (relocate_address): Use
10654 objfile::data_section_offset.
10655 * xcoffread.c (enter_line_range): Use
10656 objfile::text_section_offset.
10657 (read_xcoff_symtab): Likewise.
10658
10659 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10660
10661 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10662 declaration to narrower scopes.
10663
10664 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10665
10666 * darwin-nat.h (struct darwin_exception_msg, enum
10667 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10668 Move up.
10669 (class darwin_nat_target) <wait_1, check_new_threads,
10670 decode_exception_message, decode_message, stop_inferior,
10671 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10672 * darwin-nat.c (darwin_check_new_threads): Rename to...
10673 (darwin_nat_target::check_new_threads): ... this.
10674 (darwin_suspend_inferior_it): Remove.
10675 (darwin_decode_exception_message): Rename to...
10676 (darwin_nat_target::decode_exception_message): ... this.
10677 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10678 (darwin_decode_message): Rename to...
10679 (darwin_nat_target::decode_message): ... this.
10680 (cancel_breakpoint): Rename to...
10681 (darwin_nat_target::cancel_breakpoint): ... this.
10682 (darwin_wait): Rename to...
10683 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10684 instead of iterate_over_inferiors.
10685 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10686 (darwin_stop_inferior): Rename to...
10687 (darwin_nat_target::stop_inferior): ... this.
10688 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10689 (darwin_init_thread_list): Rename to...
10690 (darwin_nat_target::init_thread_list): ... this.
10691 (darwin_ptrace_him): Rename to...
10692 (darwin_nat_target::ptrace_him): ... this.
10693 (darwin_nat_target::create_inferior): Pass lambda function to
10694 fork_inferior.
10695 (darwin_nat_target::detach): Call stop_inferior instead of
10696 darwin_stop_inferior.
10697 * fork-inferior.h (fork_inferior): Change init_trace_fun
10698 parameter to gdb::function_view.
10699 * fork-inferior.c (fork_inferior): Likewise.
10700
10701 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
10702
10703 * i386-cygwin-tdep.c (core_process_module_section): Update.
10704 * windows-nat.c (struct lm_info_windows): Add text_offset.
10705 (windows_xfer_shared_libraries): Update.
10706 * windows-tdep.c (windows_xfer_shared_library):
10707 Add text_offset_cached argument.
10708 * windows-tdep.h (windows_xfer_shared_library): Update.
10709
10710 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10711
10712 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10713
10714 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10715
10716 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10717 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10718 replace with range-based for.
10719 (gdbsim_interrupt_inferior): Remove.
10720 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10721 with a range-based for. Inline code from
10722 gdbsim_interrupt_inferior.
10723
10724 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10725
10726 * infrun.c (proceed): Fix indentation.
10727
10728 2020-01-21 Tom Tromey <tromey@adacore.com>
10729
10730 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10731 * python/python.c (python_extension_ops): Update.
10732 (gdbpy_colorize): New function.
10733 * python/lib/gdb/__init__.py (colorize): New function.
10734 * extension.h (ext_lang_colorize): Declare.
10735 * extension.c (ext_lang_colorize): New function.
10736 * extension-priv.h (struct extension_language_ops) <colorize>: New
10737 member.
10738 * cli/cli-style.c (_initialize_cli_style): Update help text.
10739
10740 2020-01-21 Luis Machado <luis.machado@linaro.org>
10741
10742 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10743 <cond>: Change type to bool.
10744 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10745 (aarch64_displaced_step_cb): Likewise.
10746 (aarch64_displaced_step_tb): Likewise.
10747
10748 2020-01-21 Luis Machado <luis.machado@linaro.org>
10749
10750 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10751 output.
10752
10753 2020-01-21 Luis Machado <luis.machado@linaro.org>
10754
10755 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10756 <pc_adjust>: Adjust the documentation.
10757 (aarch64_displaced_step_fixup): Check if PC really moved before
10758 adjusting it.
10759
10760 2020-01-19 Tom Tromey <tom@tromey.com>
10761
10762 * disasm.c (~gdb_disassembler): New destructor.
10763 (gdb_buffered_insn_length): Call disassemble_free_target.
10764 * disasm.h (class gdb_disassembler): Declare destructor. Use
10765 DISABLE_COPY_AND_ASSIGN.
10766
10767 2020-01-19 Tom Tromey <tom@tromey.com>
10768
10769 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10770 (die_reader_func_ftype): Remove.
10771 (cutu_reader): New class.
10772 (dw2_get_file_names_reader): Remove "data" parameter.
10773 (dw2_get_file_names): Use cutu_reader.
10774 (create_debug_type_hash_table): Update.
10775 (read_cutu_die_from_dwo): Update comment.
10776 (lookup_dwo_unit): Add dwo_name parameter.
10777 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10778 die_reader_func_ftype and data parameters.
10779 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10780 Remove die_reader_func_ftype and data parameters.
10781 (~cutu_reader): New; from init_cutu_and_read_dies.
10782 (cutu_reader::cutu_reader): Rename from
10783 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10784 and data parameters.
10785 (init_cutu_and_read_dies_simple): Remove.
10786 (struct process_psymtab_comp_unit_data): Remove.
10787 (process_psymtab_comp_unit_reader): Remove data parameter; add
10788 want_partial_unit and pretend_language parameters.
10789 (process_psymtab_comp_unit): Use cutu_reader.
10790 (build_type_psymtabs_reader): Remove data parameter.
10791 (build_type_psymtabs_1): Use cutu_reader.
10792 (process_skeletonless_type_unit): Likewise.
10793 (load_partial_comp_unit_reader): Remove.
10794 (load_partial_comp_unit): Use cutu_reader.
10795 (load_full_comp_unit_reader): Remove.
10796 (load_full_comp_unit): Use cutu_reader.
10797 (struct create_dwo_cu_data): Remove.
10798 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10799 dwo_unit parameters.
10800 (create_cus_hash_table): Use cutu_reader.
10801 (struct dwarf2_read_addr_index_data): Remove.
10802 (dwarf2_read_addr_index_reader): Remove.
10803 (dwarf2_read_addr_index): Use cutu_reader.
10804 (read_signatured_type_reader): Remove.
10805 (read_signatured_type): Use cutu_reader.
10806
10807 2020-01-19 Tom Tromey <tom@tromey.com>
10808
10809 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10810 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10811 (tui_wrefresh): Declare.
10812 * tui/tui-wingeneral.c (suppress_output): New global.
10813 (tui_suppress_output, ~tui_suppress_output): New constructor and
10814 destructor.
10815 (tui_wrefresh): New function.
10816 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10817 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10818 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10819 method.
10820 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10821 tui_wrefresh.
10822 (tui_data_window::no_refresh): New method.
10823 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10824 (tui_reg_command): Use tui_suppress_output
10825 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10826 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10827 method.
10828 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10829
10830 2020-01-19 Tom Tromey <tom@tromey.com>
10831
10832 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10833 Handle case where symtab is null.
10834
10835 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10836
10837 * linux-fork.c (one_fork_p): Simplify.
10838
10839 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10840
10841 * top.c (struct qt_args): Remove.
10842 (kill_or_detach): Change return type to void, replace `void *`
10843 parameter with a proper one.
10844 (print_inferior_quit_action): Likewise.
10845 (quit_confirm): Use range-based for loop to iterate over inferiors.
10846 (quit_force): Likewise.
10847
10848 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10849
10850 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10851 `void *` parameter with proper parameters.
10852 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10853 (print_one_inferior): Change return type to void, replace `void *`
10854 parameter with proper parameters.
10855 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10856 inferiors.
10857 (get_other_inferior): Remove.
10858 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10859 inferiors.
10860
10861 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10862
10863 * mi/mi-interp.c (report_initial_inferior): Remove.
10864 (mi_interp::init): Use range-based for to iterate over inferiors.
10865
10866 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10867
10868 * python/py-inferior.c (build_inferior_list): Remove.
10869 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10870
10871 2020-01-16 Christian Biesinger <cbiesinger@google.com>
10872
10873 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10874 (btrace_stitch_trace): Likewise.
10875 * charset.c (intermediate_encoding): Likewise (vaild).
10876 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10877 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10878 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10879
10880 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
10881
10882 * windows-tdep.c (windows_get_tlb_type):
10883 Add rtl_user_process_parameters type.
10884
10885 2020-01-16 Pedro Alves <palves@redhat.com>
10886 Norbert Lange <nolange79@gmail.com>
10887
10888 PR build/24805
10889 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10890 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10891 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10892 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10893 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10894 (ps_plog): Redeclare exported functions with default visibility.
10895
10896 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10897
10898 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10899 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10900
10901 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
10902
10903 * infcmd.c (post_create_inferior): Use get_thread_regcache
10904 instead of get_current_regcache.
10905
10906 2020-01-14 Tom Tromey <tom@tromey.com>
10907
10908 PR symtab/12535:
10909 * python/python.c (gdbpy_decode_line): Treat empty string the same
10910 as no argument.
10911
10912 2020-01-14 Tom Tromey <tom@tromey.com>
10913
10914 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10915
10916 2020-01-14 Tom Tromey <tom@tromey.com>
10917
10918 * nat/linux-btrace.c: Don't include <config.h>.
10919 * nat/linux-ptrace.c: Don't include <config.h>.
10920 * nat/x86-linux-dregs.c: Don't include <config.h>.
10921
10922 2020-01-14 Tom Tromey <tom@tromey.com>
10923
10924 * configure: Rebuild.
10925 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10926
10927 2020-01-14 Tom Tromey <tom@tromey.com>
10928
10929 * nat/x86-linux-dregs.c: Include configh.h.
10930 * nat/linux-ptrace.c: Include configh.h.
10931 * nat/linux-btrace.c: Include configh.h.
10932 * defs.h: Include config.h, bfd.h.
10933 * configure.ac: Don't source common.host.
10934 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10935 * configure: Rebuild.
10936 * acinclude.m4: Update path.
10937 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10938 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10939 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10940 (CLIBS): Add LIBSUPPORT.
10941 (CDEPS): Likewise.
10942 (COMMON_SFILES): Remove gdbsupport files.
10943 (HFILES_NO_SRCDIR): Likewise.
10944 (stamp-version): Update path to create-version.sh.
10945 (ALLDEPFILES): Remove gdbsupport files.
10946
10947 2020-01-14 Tom Tromey <tom@tromey.com>
10948
10949 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10950 USE_WIN32API when needed.
10951 * configure.ac (USE_WIN32API): Don't define.
10952 (WIN32LIBS): Use WIN32APILIBS.
10953 * configure: Rebuild.
10954
10955 2020-01-14 Tom Tromey <tom@tromey.com>
10956
10957 * configure: Rebuild.
10958 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10959
10960 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10961
10962 * skip.c (skip_function_command): Make skip w/o arguments use the
10963 name of the inlined function if pc is inside any inlined function.
10964
10965 2020-01-14 Luis Machado <luis.machado@linaro.org>
10966
10967 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10968 * infrun.c (resume_1): Likewise.
10969 (handle_inferior_event): Remove stale comment.
10970 * linux-nat.c (linux_nat_target::resume): Update comments.
10971 (save_stop_reason): Likewise.
10972 (linux_nat_filter_event): Likewise.
10973 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10974
10975 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10976
10977 * elfread.c (record_minimal_symbol): Set section index to 0 for
10978 non-allocatable sections.
10979
10980
10981 2020-01-13 Ali Tamur <tamur@google.com>
10982
10983 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10984 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10985 to gdb::optional. Update comments.
10986 (dwo_file): Update comments.
10987 (read_attribute): Update API to take an additional out parameter,
10988 need_reprocess. This is used to mark attributes that need other
10989 attributes (e.g. str_offsets_base) for correct computation which may not
10990 have been read yet.
10991 (read_attribute_reprocess): New function declaration.
10992 (read_addr_index): Likewise.
10993 (read_dwo_str_index): Likewise.
10994 (read_stub_str_index): Likewise.
10995 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10996 (lookup_addr_base): New function definition.
10997 (lookup_ranges_base): Likewise.
10998 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10999 lookup_ranges_base.
11000 (init_cutu_and_read_dies): Update comments.
11001 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
11002 unit. This is used to inherit parent's str_offsets_base and addr_base.
11003 Update comments.
11004 (init_cutu_and_read_dies_simple): Reflect API changes.
11005 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
11006 (create_cus_hash_table): Change API to take parent compile unit.
11007 Reflect API changes.
11008 (open_and_init_dwo_file): Reflect API changes.
11009 (dwarf2_get_pc_bounds): Update comments.
11010 (dwarf2_record_block_ranges): Likewise.
11011 (read_full_die_1): Change implementation to reprocess attributes that
11012 need str_offsets_base and addr_base.
11013 (partial_die_info::read): Likewise.
11014 (read_attribute_reprocess): New function definition.
11015 (read_attribute_value): Change API to take an additional out parameter,
11016 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
11017 when a non-dwo compile unit has index based attributes.
11018 (read_attribute): Reflect API changes.
11019 (read_addr_index_1): Reflect API changes. Update comments.
11020 (dwarf2_read_addr_index_data): Reflect API changes.
11021 (dwarf2_read_addr_index): Likewise.
11022 (read_str_index): Change API and implementation. This becomes a helper
11023 to be used by the new string index related methods. Update error
11024 message and comments.
11025 (read_dwo_str_index): New function definition.
11026 (read_stub_str_index): Likewise.
11027 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
11028 * symfile.h (dwarf2_debug_sections): Likewise.
11029 * xcoffread.c (dwarf2_debug_sections): Likewise.
11030
11031 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11032
11033 * gdbcore.h (struct core_fns) <core_read_registers>: Change
11034 core_reg_sect type to gdb_byte *.
11035 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
11036 * cris-tdep.c (fetch_core_registers): Likewise.
11037 * corelow.c (core_target::get_core_register_section): Change
11038 type of `contents` to gdb::byte_vector.
11039
11040 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11041
11042 * tui/tui-wingeneral.c (box_win): Position the title in the center
11043 of the border.
11044
11045 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11046
11047 * corelow.c (core_target::get_core_register_section): Use
11048 std::vector instead of alloca.
11049
11050 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11051
11052 * warning.m4: Add -Wmissing-declarations to build_warnings.
11053 * configure: Re-generate.
11054
11055 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11056
11057 * python/python.c (init__gdb_module): Add declaration.
11058
11059 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11060
11061 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
11062 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
11063 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
11064 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
11065 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
11066 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
11067 * ada-exp.y (_initialize_ada_exp): Add declaration.
11068 * ada-lang.c (_initialize_ada_language): Add declaration.
11069 * ada-tasks.c (_initialize_tasks): Add declaration.
11070 * agent.c (_initialize_agent): Add declaration.
11071 * aix-thread.c (_initialize_aix_thread): Add declaration.
11072 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
11073 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
11074 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
11075 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
11076 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
11077 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
11078 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
11079 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
11080 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
11081 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
11082 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
11083 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
11084 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
11085 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
11086 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
11087 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
11088 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
11089 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
11090 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
11091 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
11092 * annotate.c (_initialize_annotate): Add declaration.
11093 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
11094 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
11095 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
11096 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
11097 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
11098 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
11099 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
11100 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
11101 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
11102 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
11103 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
11104 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
11105 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
11106 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
11107 * auto-load.c (_initialize_auto_load): Add declaration.
11108 * auxv.c (_initialize_auxv): Add declaration.
11109 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
11110 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
11111 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
11112 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
11113 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
11114 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
11115 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
11116 * breakpoint.c (_initialize_breakpoint): Add declaration.
11117 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
11118 * btrace.c (_initialize_btrace): Add declaration.
11119 * charset.c (_initialize_charset): Add declaration.
11120 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
11121 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11122 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11123 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11124 * cli/cli-script.c (_initialize_cli_script): Add declaration.
11125 * cli/cli-style.c (_initialize_cli_style): Add declaration.
11126 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11127 * coffread.c (_initialize_coffread): Add declaration.
11128 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11129 * compile/compile.c (_initialize_compile): Add declaration.
11130 * complaints.c (_initialize_complaints): Add declaration.
11131 * completer.c (_initialize_completer): Add declaration.
11132 * copying.c (_initialize_copying): Add declaration.
11133 * corefile.c (_initialize_core): Add declaration.
11134 * corelow.c (_initialize_corelow): Add declaration.
11135 * cp-abi.c (_initialize_cp_abi): Add declaration.
11136 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11137 * cp-support.c (_initialize_cp_support): Add declaration.
11138 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11139 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11140 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11141 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11142 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11143 * ctfread.c (_initialize_ctfread): Add declaration.
11144 * d-lang.c (_initialize_d_language): Add declaration.
11145 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11146 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11147 * dbxread.c (_initialize_dbxread): Add declaration.
11148 * dcache.c (_initialize_dcache): Add declaration.
11149 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11150 * disasm.c (_initialize_disasm): Add declaration.
11151 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11152 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11153 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11154 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11155 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11156 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11157 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11158 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11159 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11160 * elfread.c (_initialize_elfread): Add declaration.
11161 * exec.c (_initialize_exec): Add declaration.
11162 * extension.c (_initialize_extension): Add declaration.
11163 * f-lang.c (_initialize_f_language): Add declaration.
11164 * f-valprint.c (_initialize_f_valprint): Add declaration.
11165 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11166 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11167 * filesystem.c (_initialize_filesystem): Add declaration.
11168 * findcmd.c (_initialize_mem_search): Add declaration.
11169 * findvar.c (_initialize_findvar): Add declaration.
11170 * fork-child.c (_initialize_fork_child): Add declaration.
11171 * frame-base.c (_initialize_frame_base): Add declaration.
11172 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11173 * frame.c (_initialize_frame): Add declaration.
11174 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11175 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11176 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11177 * gcore.c (_initialize_gcore): Add declaration.
11178 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11179 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11180 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11181 * gdbarch.c (_initialize_gdbarch): Add declaration.
11182 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11183 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11184 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11185 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11186 * go-lang.c (_initialize_go_language): Add declaration.
11187 * go32-nat.c (_initialize_go32_nat): Add declaration.
11188 * guile/guile.c (_initialize_guile): Add declaration.
11189 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11190 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11191 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11192 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11193 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11194 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11195 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11196 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11197 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11198 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11199 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11200 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11201 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11202 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11203 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11204 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11205 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11206 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11207 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11208 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11209 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11210 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11211 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11212 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11213 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11214 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11215 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11216 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11217 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11218 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11219 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11220 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11221 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11222 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11223 * infcall.c (_initialize_infcall): Add declaration.
11224 * infcmd.c (_initialize_infcmd): Add declaration.
11225 * inflow.c (_initialize_inflow): Add declaration.
11226 * infrun.c (_initialize_infrun): Add declaration.
11227 * interps.c (_initialize_interpreter): Add declaration.
11228 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11229 * jit.c (_initialize_jit): Add declaration.
11230 * language.c (_initialize_language): Add declaration.
11231 * linux-fork.c (_initialize_linux_fork): Add declaration.
11232 * linux-nat.c (_initialize_linux_nat): Add declaration.
11233 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11234 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11235 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11236 * m2-lang.c (_initialize_m2_language): Add declaration.
11237 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11238 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11239 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11240 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11241 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11242 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11243 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11244 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11245 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11246 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11247 * machoread.c (_initialize_machoread): Add declaration.
11248 * macrocmd.c (_initialize_macrocmd): Add declaration.
11249 * macroscope.c (_initialize_macroscope): Add declaration.
11250 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11251 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11252 * maint.c (_initialize_maint_cmds): Add declaration.
11253 * mdebugread.c (_initialize_mdebugread): Add declaration.
11254 * memattr.c (_initialize_mem): Add declaration.
11255 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11256 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11257 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11258 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11259 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11260 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11261 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11262 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11263 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11264 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11265 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11266 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11267 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11268 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11269 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11270 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11271 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11272 * mipsread.c (_initialize_mipsread): Add declaration.
11273 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11274 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11275 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11276 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11277 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11278 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11279 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11280 * nto-procfs.c (_initialize_procfs): Add declaration.
11281 * objc-lang.c (_initialize_objc_language): Add declaration.
11282 * observable.c (_initialize_observer): Add declaration.
11283 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11284 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11285 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11286 * osabi.c (_initialize_gdb_osabi): Add declaration.
11287 * osdata.c (_initialize_osdata): Add declaration.
11288 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11289 * parse.c (_initialize_parse): Add declaration.
11290 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11291 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11292 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11293 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11294 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11295 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11296 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11297 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11298 * printcmd.c (_initialize_printcmd): Add declaration.
11299 * probe.c (_initialize_probe): Add declaration.
11300 * proc-api.c (_initialize_proc_api): Add declaration.
11301 * proc-events.c (_initialize_proc_events): Add declaration.
11302 * proc-service.c (_initialize_proc_service): Add declaration.
11303 * procfs.c (_initialize_procfs): Add declaration.
11304 * producer.c (_initialize_producer): Add declaration.
11305 * psymtab.c (_initialize_psymtab): Add declaration.
11306 * python/python.c (_initialize_python): Add declaration.
11307 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11308 * record-btrace.c (_initialize_record_btrace): Add declaration.
11309 * record-full.c (_initialize_record_full): Add declaration.
11310 * record.c (_initialize_record): Add declaration.
11311 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11312 * regcache.c (_initialize_regcache): Add declaration.
11313 * reggroups.c (_initialize_reggroup): Add declaration.
11314 * remote-notif.c (_initialize_notif): Add declaration.
11315 * remote-sim.c (_initialize_remote_sim): Add declaration.
11316 * remote.c (_initialize_remote): Add declaration.
11317 * reverse.c (_initialize_reverse): Add declaration.
11318 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11319 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11320 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11321 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11322 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11323 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11324 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11325 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11326 Add declaration.
11327 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11328 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11329 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11330 * rust-exp.y (_initialize_rust_exp): Add declaration.
11331 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11332 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11333 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11334 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11335 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11336 * score-tdep.c (_initialize_score_tdep): Add declaration.
11337 * ser-go32.c (_initialize_ser_dos): Add declaration.
11338 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11339 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11340 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11341 * ser-uds.c (_initialize_ser_socket): Add declaration.
11342 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11343 * serial.c (_initialize_serial): Add declaration.
11344 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11345 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11346 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11347 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11348 * skip.c (_initialize_step_skip): Add declaration.
11349 * sol-thread.c (_initialize_sol_thread): Add declaration.
11350 * solib-aix.c (_initialize_solib_aix): Add declaration.
11351 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11352 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11353 * solib-frv.c (_initialize_frv_solib): Add declaration.
11354 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11355 * solib-target.c (_initialize_solib_target): Add declaration.
11356 * solib.c (_initialize_solib): Add declaration.
11357 * source-cache.c (_initialize_source_cache): Add declaration.
11358 * source.c (_initialize_source): Add declaration.
11359 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11360 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11361 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11362 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11363 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11364 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11365 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11366 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11367 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11368 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11369 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11370 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11371 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11372 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11373 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11374 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11375 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11376 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11377 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11378 * stabsread.c (_initialize_stabsread): Add declaration.
11379 * stack.c (_initialize_stack): Add declaration.
11380 * stap-probe.c (_initialize_stap_probe): Add declaration.
11381 * std-regs.c (_initialize_frame_reg): Add declaration.
11382 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11383 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11384 * symfile.c (_initialize_symfile): Add declaration.
11385 * symmisc.c (_initialize_symmisc): Add declaration.
11386 * symtab.c (_initialize_symtab): Add declaration.
11387 * target.c (_initialize_target): Add declaration.
11388 * target-connection.c (_initialize_target_connection): Add
11389 declaration.
11390 * target-dcache.c (_initialize_target_dcache): Add declaration.
11391 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11392 * thread.c (_initialize_thread): Add declaration.
11393 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11394 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11395 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11396 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11397 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11398 * tracectf.c (_initialize_ctf): Add declaration.
11399 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11400 * tracefile.c (_initialize_tracefile): Add declaration.
11401 * tracepoint.c (_initialize_tracepoint): Add declaration.
11402 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11403 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11404 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11405 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11406 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11407 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11408 * tui/tui.c (_initialize_tui): Add declaration.
11409 * typeprint.c (_initialize_typeprint): Add declaration.
11410 * ui-style.c (_initialize_ui_style): Add declaration.
11411 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11412 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11413 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11414 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11415 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11416 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11417 * unittests/filtered_iterator-selftests.c
11418 (_initialize_filtered_iterator_selftests): Add declaration.
11419 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11420 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11421 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11422 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11423 * unittests/main-thread-selftests.c
11424 (_initialize_main_thread_selftests): Add declaration.
11425 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11426 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11427 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11428 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11429 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11430 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11431 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11432 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11433 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11434 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11435 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11436 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11437 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11438 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11439 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11440 declaration.
11441 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11442 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11443 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11444 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11445 * user-regs.c (_initialize_user_regs): Add declaration.
11446 * utils.c (_initialize_utils): Add declaration.
11447 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11448 * valops.c (_initialize_valops): Add declaration.
11449 * valprint.c (_initialize_valprint): Add declaration.
11450 * value.c (_initialize_values): Add declaration.
11451 * varobj.c (_initialize_varobj): Add declaration.
11452 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11453 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11454 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11455 * windows-nat.c (_initialize_windows_nat): Add declaration.
11456 (_initialize_check_for_gdb_ini): Add declaration.
11457 (_initialize_loadable): Add declaration.
11458 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11459 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11460 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11461 * xcoffread.c (_initialize_xcoffread): Add declaration.
11462 * xml-support.c (_initialize_xml_support): Add declaration.
11463 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11464 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11465 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11466 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11467
11468 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11469
11470 * regformats/regdat.sh: Generate declaration for init function.
11471
11472 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11473
11474 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11475 up.
11476 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11477 close_one_inferior>: New methods.
11478 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11479 pass down target to find_inferior_pid.
11480 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11481 Pass down target to find_inferior_ptid.
11482 (gdbsim_target::create_inferior): Pass down target to
11483 add_thread_silent.
11484 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11485 target down to find_inferior_ptid and switch_to_thread.
11486 (gdbsim_target::close): Update to call close_one_inferior.
11487 (struct resume_data): Remove.
11488 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11489 directly, rather than through a void pointer.
11490 (gdbsim_target::resume): Update to call resume_one_inferior.
11491
11492 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11493
11494 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11495
11496 2020-01-12 Pedro Alves <palves@redhat.com>
11497
11498 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11499 directly for the current inferior instead of
11500 discard_all_inferiors.
11501 (discard_all_inferiors): Delete.
11502
11503 2020-01-11 Tom Tromey <tom@tromey.com>
11504
11505 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11506 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11507 deprecated_safe_get_selected_frame.
11508
11509 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11510
11511 * inferior.c (print_inferior): Switch inferior before printing it.
11512
11513 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11514 Pedro Alves <palves@redhat.com>
11515
11516 * progspace-and-thread.c (switch_to_program_space_and_thread):
11517 Assert there's an inferior for PSPACE. Use
11518 switch_to_inferior_no_thread to switch the inferior too.
11519 * progspace.c (program_space::~program_space): Call
11520 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11521 (program_space::free_all_objfiles): Don't call clear_symtab_users
11522 here.
11523 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11524
11525 2020-01-10 Pedro Alves <palves@redhat.com>
11526
11527 * NEWS: Mention multi-target debugging, "info connections", and
11528 "add-inferior -no-connection".
11529
11530 2020-01-10 Pedro Alves <palves@redhat.com>
11531
11532 * infrun.c: Include "target-connection.h".
11533 (check_multi_target_resumption): New.
11534 (proceed): Call it.
11535 * target-connection.c (make_target_connection_string): Make
11536 extern.
11537 * target-connection.h (make_target_connection_string): Declare.
11538
11539 2020-01-10 Pedro Alves <palves@redhat.com>
11540
11541 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11542 * inferior.c (uiout_field_connection): New function.
11543 (print_inferior): Add new "connection-id" column.
11544 (add_inferior_command): Show connection number/string of added
11545 inferior.
11546 * process-stratum-target.h
11547 (process_stratum_target::connection_string): New virtual method.
11548 (process_stratum_target::connection_number): New field.
11549 * remote.c (remote_target::connection_string): New override.
11550 * target-connection.c: New file.
11551 * target-connection.h: New file.
11552 * target.c (decref_target): Remove process_stratum targets from
11553 the connection list.
11554 (target_stack::push): Add process_stratum targets to the
11555 connection list.
11556
11557 2020-01-10 Pedro Alves <palves@redhat.com>
11558
11559 Revert:
11560 2016-04-12 Pedro Alves <palves@redhat.com>
11561 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11562 Remove references to name.
11563 * serial.h (struct serial) <name>: Delete.
11564
11565 2020-01-10 Pedro Alves <palves@redhat.com>
11566
11567 * gdbarch-selftests.c (register_to_value_test): Remove "target
11568 already pushed" check.
11569
11570 2020-01-10 Pedro Alves <palves@redhat.com>
11571 John Baldwin <jhb@FreeBSD.org>
11572
11573 * aarch64-linux-nat.c
11574 (aarch64_linux_nat_target::thread_architecture): Adjust.
11575 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11576 (task_command_1): Likewise.
11577 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11578 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11579 (aix_thread_target::store_registers)
11580 (aix_thread_target::thread_alive): Adjust.
11581 * amd64-fbsd-tdep.c: Include "inferior.h".
11582 (amd64fbsd_get_thread_local_address): Pass down target.
11583 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11584 thread's gdbarch instead of target_gdbarch.
11585 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11586 get_last_target_status.
11587 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11588 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11589 inferiors.
11590 (update_inserted_breakpoint_locations): Skip if inferiors with no
11591 execution.
11592 (update_global_location_list): When handling moribund locations,
11593 find representative inferior for location's pspace, and use thread
11594 count of its process_stratum target.
11595 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11596 * bsd-uthread.c (bsd_uthread_target::wait): Use
11597 as_process_stratum_target and adjust thread_change_ptid and
11598 add_thread calls.
11599 (bsd_uthread_target::update_thread_list): Use
11600 as_process_stratum_target and adjust find_thread_ptid,
11601 thread_change_ptid and add_thread calls.
11602 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11603 find_thread_ptid call.
11604 * corelow.c (add_to_thread_list): Adjust add_thread call.
11605 (core_target_open): Adjust add_thread_silent and thread_count
11606 calls.
11607 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11608 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11609 * event-top.c (async_disconnect): Pop targets from all inferiors.
11610 * exec.c (add_target_sections): Push exec target on all inferiors
11611 sharing the program space.
11612 (remove_target_sections): Remove the exec target from all
11613 inferiors sharing the program space.
11614 (exec_on_vfork): New.
11615 * exec.h (exec_on_vfork): Declare.
11616 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11617 Pass it down.
11618 (fbsd_nat_target::update_thread_list): Adjust.
11619 (fbsd_nat_target::resume): Adjust.
11620 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11621 down.
11622 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11623 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11624 get_thread_arch_regcache call.
11625 * fork-child.c (gdb_startup_inferior): Pass target down to
11626 startup_inferior and set_executing.
11627 * gdbthread.h (struct process_stratum_target): Forward declare.
11628 (add_thread, add_thread_silent, add_thread_with_info)
11629 (in_thread_list): Add process_stratum_target parameter.
11630 (find_thread_ptid(inferior*, ptid_t)): New overload.
11631 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11632 parameter.
11633 (all_threads()): Delete overload.
11634 (all_threads, all_non_exited_threads): Add process_stratum_target
11635 parameter.
11636 (all_threads_safe): Use brace initialization.
11637 (thread_count): Add process_stratum_target parameter.
11638 (set_resumed, set_running, set_stop_requested, set_executing)
11639 (threads_are_executing, finish_thread_state): Add
11640 process_stratum_target parameter.
11641 (switch_to_thread): Use is_current_thread.
11642 * i386-fbsd-tdep.c: Include "inferior.h".
11643 (i386fbsd_get_thread_local_address): Pass down target.
11644 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11645 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11646 have_inferiors check.
11647 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11648 (inf_ptrace_target::attach): Adjust.
11649 * infcall.c (run_inferior_call): Adjust.
11650 * infcmd.c (run_command_1): Pass target to
11651 scoped_finish_thread_state.
11652 (proceed_thread_callback): Skip inferiors with no execution.
11653 (continue_command): Rename 'all_threads' local to avoid hiding
11654 'all_threads' function. Adjust get_last_target_status call.
11655 (prepare_one_step): Adjust set_running call.
11656 (signal_command): Use user_visible_resume_target. Compare thread
11657 pointers instead of inferior_ptid.
11658 (info_program_command): Adjust to pass down target.
11659 (attach_command): Mark target's 'thread_executing' flag.
11660 (stop_current_target_threads_ns): New, factored out from ...
11661 (interrupt_target_1): ... this. Switch inferior before making
11662 target calls.
11663 * inferior-iter.h
11664 (struct all_inferiors_iterator, struct all_inferiors_range)
11665 (struct all_inferiors_safe_range)
11666 (struct all_non_exited_inferiors_range): Filter on
11667 process_stratum_target too. Remove explicit.
11668 * inferior.c (inferior::inferior): Push dummy target on target
11669 stack.
11670 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11671 Add process_stratum_target parameter, and pass it down.
11672 (have_live_inferiors): Adjust.
11673 (switch_to_inferior_and_push_target): New.
11674 (add_inferior_command, clone_inferior_command): Handle
11675 "-no-connection" parameter. Use
11676 switch_to_inferior_and_push_target.
11677 (_initialize_inferior): Mention "-no-connection" option in
11678 the help of "add-inferior" and "clone-inferior" commands.
11679 * inferior.h: Include "process-stratum-target.h".
11680 (interrupt_target_1): Use bool.
11681 (struct inferior) <push_target, unpush_target, target_is_pushed,
11682 find_target_beneath, top_target, process_target, target_at,
11683 m_stack>: New.
11684 (discard_all_inferiors): Delete.
11685 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11686 (all_inferiors, all_non_exited_inferiors): Add
11687 process_stratum_target parameter.
11688 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11689 (target_last_proc_target): New global.
11690 (follow_fork_inferior): Push target on new inferior. Pass target
11691 to add_thread_silent. Call exec_on_vfork. Handle target's
11692 reference count.
11693 (follow_fork): Adjust get_last_target_status call. Also consider
11694 target.
11695 (follow_exec): Push target on new inferior.
11696 (struct execution_control_state) <target>: New field.
11697 (user_visible_resume_target): New.
11698 (do_target_resume): Call target_async.
11699 (resume_1): Set target's threads_executing flag. Consider resume
11700 target.
11701 (commit_resume_all_targets): New.
11702 (proceed): Also consider resume target. Skip threads of inferiors
11703 with no execution. Commit resumtion in all targets.
11704 (start_remote): Pass current inferior to wait_for_inferior.
11705 (infrun_thread_stop_requested): Consider target as well. Pass
11706 thread_info pointer to clear_inline_frame_state instead of ptid.
11707 (infrun_thread_thread_exit): Consider target as well.
11708 (random_pending_event_thread): New inferior parameter. Use it.
11709 (do_target_wait): Rename to ...
11710 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11711 down.
11712 (threads_are_resumed_pending_p, do_target_wait): New.
11713 (prepare_for_detach): Adjust calls.
11714 (wait_for_inferior): New inferior parameter. Handle it. Use
11715 do_target_wait_1 instead of do_target_wait.
11716 (fetch_inferior_event): Adjust. Switch to representative
11717 inferior. Pass target down.
11718 (set_last_target_status): Add process_stratum_target parameter.
11719 Save target in global.
11720 (get_last_target_status): Add process_stratum_target parameter and
11721 handle it.
11722 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11723 (context_switch): Check inferior_ptid == null_ptid before calling
11724 inferior_thread().
11725 (get_inferior_stop_soon): Pass down target.
11726 (wait_one): Rename to ...
11727 (poll_one_curr_target): ... this.
11728 (struct wait_one_event): New.
11729 (wait_one): New.
11730 (stop_all_threads): Adjust.
11731 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11732 event's target.
11733 (switch_back_to_stepped_thread): Also consider target.
11734 (print_stop_event): Update.
11735 (normal_stop): Update. Also consider the resume target.
11736 * infrun.h (wait_for_inferior): Remove declaration.
11737 (user_visible_resume_target): New declaration.
11738 (get_last_target_status, set_last_target_status): New
11739 process_stratum_target parameter.
11740 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11741 process_stratum_target parameter, and use it.
11742 (clear_inline_frame_state (thread_info*)): New.
11743 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11744 process_stratum_target parameter.
11745 (clear_inline_frame_state (thread_info*)): Declare.
11746 * linux-fork.c (delete_checkpoint_command): Pass target down to
11747 find_thread_ptid.
11748 (checkpoint_command): Adjust.
11749 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11750 instead of just tweaking inferior_ptid.
11751 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11752 (exit_lwp): Pass target down to find_thread_ptid.
11753 (attach_proc_task_lwp_callback): Pass target down to
11754 add_thread/set_running/set_executing.
11755 (linux_nat_target::attach): Pass target down to
11756 thread_change_ptid.
11757 (get_detach_signal): Pass target down to find_thread_ptid.
11758 Consider last target status's target.
11759 (linux_resume_one_lwp_throw, resume_lwp)
11760 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11761 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11762 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11763 (linux_nat_target::async_wait_fd): New.
11764 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11765 target down.
11766 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11767 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11768 * linux-thread-db.c (struct thread_db_info::process_target): New
11769 field.
11770 (add_thread_db_info): Save target.
11771 (get_thread_db_info): New process_stratum_target parameter. Also
11772 match target.
11773 (delete_thread_db_info): New process_stratum_target parameter.
11774 Also match target.
11775 (thread_from_lwp): Adjust to pass down target.
11776 (thread_db_notice_clone): Pass down target.
11777 (check_thread_db_callback): Pass down target.
11778 (try_thread_db_load_1): Always push the thread_db target.
11779 (try_thread_db_load, record_thread): Pass target down.
11780 (thread_db_target::detach): Pass target down. Always unpush the
11781 thread_db target.
11782 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11783 target down. Always unpush the thread_db target.
11784 (find_new_threads_callback, thread_db_find_new_threads_2)
11785 (thread_db_target::update_thread_list): Pass target down.
11786 (thread_db_target::pid_to_str): Pass current inferior down.
11787 (thread_db_target::get_thread_local_address): Pass target down.
11788 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11789 target down.
11790 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11791 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11792 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11793 (procfs_init_inferior): Rename to ...
11794 (procfs_target::procfs_init_inferior): ... this and adjust.
11795 (procfs_target::create_inferior, procfs_notice_thread)
11796 (procfs_do_thread_registers): Adjust.
11797 * ppc-fbsd-tdep.c: Include "inferior.h".
11798 (ppcfbsd_get_thread_local_address): Pass down target.
11799 * proc-service.c (ps_xfer_memory): Switch current inferior and
11800 program space as well.
11801 (get_ps_regcache): Pass target down.
11802 * process-stratum-target.c
11803 (process_stratum_target::thread_address_space)
11804 (process_stratum_target::thread_architecture): Pass target down.
11805 * process-stratum-target.h
11806 (process_stratum_target::threads_executing): New field.
11807 (as_process_stratum_target): New.
11808 * ravenscar-thread.c
11809 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11810 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11811 down.
11812 * record-btrace.c (record_btrace_target::info_record): Adjust.
11813 (record_btrace_target::record_method)
11814 (record_btrace_target::record_is_replaying)
11815 (record_btrace_target::fetch_registers)
11816 (get_thread_current_frame_id, record_btrace_target::resume)
11817 (record_btrace_target::wait, record_btrace_target::stop): Pass
11818 target down.
11819 * record-full.c (record_full_wait_1): Switch to event thread.
11820 Pass target down.
11821 * regcache.c (regcache::regcache)
11822 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11823 process_stratum_target parameter and handle it.
11824 (current_thread_target): New global.
11825 (get_thread_regcache): Add process_stratum_target parameter and
11826 handle it. Switch inferior before calling target method.
11827 (get_thread_regcache): Pass target down.
11828 (get_thread_regcache_for_ptid): Pass target down.
11829 (registers_changed_ptid): Add process_stratum_target parameter and
11830 handle it.
11831 (registers_changed_thread, registers_changed): Pass target down.
11832 (test_get_thread_arch_aspace_regcache): New.
11833 (current_regcache_test): Define a couple local test_target_ops
11834 instances and use them for testing.
11835 (readwrite_regcache): Pass process_stratum_target parameter.
11836 (cooked_read_test, cooked_write_test): Pass mock_target down.
11837 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11838 (get_thread_arch_aspace_regcache): Add process_stratum_target
11839 parameter.
11840 (regcache::target): New method.
11841 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11842 (regcache::registers_changed_ptid): Add process_stratum_target
11843 parameter.
11844 (regcache::m_target): New field.
11845 (registers_changed_ptid): Add process_stratum_target parameter.
11846 * remote.c (remote_state::supports_vCont_probed): New field.
11847 (remote_target::async_wait_fd): New method.
11848 (remote_unpush_and_throw): Add remote_target parameter.
11849 (get_current_remote_target): Adjust.
11850 (remote_target::remote_add_inferior): Push target.
11851 (remote_target::remote_add_thread)
11852 (remote_target::remote_notice_new_inferior)
11853 (get_remote_thread_info): Pass target down.
11854 (remote_target::update_thread_list): Skip threads of inferiors
11855 bound to other targets. (remote_target::close): Don't discard
11856 inferiors. (remote_target::add_current_inferior_and_thread)
11857 (remote_target::process_initial_stop_replies)
11858 (remote_target::start_remote)
11859 (remote_target::remote_serial_quit_handler): Pass down target.
11860 (remote_target::remote_unpush_target): New remote_target
11861 parameter. Unpush the target from all inferiors.
11862 (remote_target::remote_unpush_and_throw): New remote_target
11863 parameter. Pass it down.
11864 (remote_target::open_1): Check whether the current inferior has
11865 execution instead of checking whether any inferior is live. Pass
11866 target down.
11867 (remote_target::remote_detach_1): Pass down target. Use
11868 remote_unpush_target.
11869 (extended_remote_target::attach): Pass down target.
11870 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11871 (remote_target::append_resumption): Pass down target.
11872 (remote_target::append_pending_thread_resumptions)
11873 (remote_target::remote_resume_with_hc, remote_target::resume)
11874 (remote_target::commit_resume): Pass down target.
11875 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11876 (remote_target::interrupt_query)
11877 (remote_target::remove_new_fork_children)
11878 (remote_target::check_pending_events_prevent_wildcard_vcont)
11879 (remote_target::remote_parse_stop_reply)
11880 (remote_target::process_stop_reply): Pass down target.
11881 (first_remote_resumed_thread): New remote_target parameter. Pass
11882 it down.
11883 (remote_target::wait_as): Pass down target.
11884 (unpush_and_perror): New remote_target parameter. Pass it down.
11885 (remote_target::readchar, remote_target::remote_serial_write)
11886 (remote_target::getpkt_or_notif_sane_1)
11887 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11888 down target.
11889 (remote_target::mourn_inferior): Pass down target. Use
11890 remote_unpush_target.
11891 (remote_target::core_of_thread)
11892 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11893 (remote_target::pid_to_exec_file)
11894 (remote_target::thread_handle_to_thread_info): Pass down target.
11895 (remote_target::async_wait_fd): New.
11896 * riscv-fbsd-tdep.c: Include "inferior.h".
11897 (riscv_fbsd_get_thread_local_address): Pass down target.
11898 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11899 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11900 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11901 Adjust.
11902 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11903 * solib-svr4.c (enable_break): Pass down target.
11904 * spu-multiarch.c (parse_spufs_run): Pass down target.
11905 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11906 * target-delegates.c: Regenerate.
11907 * target.c (g_target_stack): Delete.
11908 (current_top_target): Return the current inferior's top target.
11909 (target_has_execution_1): Refer to the passed-in inferior's top
11910 target.
11911 (target_supports_terminal_ours): Check whether the initial
11912 inferior was already created.
11913 (decref_target): New.
11914 (target_stack::push): Incref/decref the target.
11915 (push_target, push_target, unpush_target): Adjust.
11916 (target_stack::unpush): Defref target.
11917 (target_is_pushed): Return bool. Adjust to refer to the current
11918 inferior's target stack.
11919 (dispose_inferior): Delete, and inline parts ...
11920 (target_preopen): ... here. Only dispose of the current inferior.
11921 (target_detach): Hold strong target reference while detaching.
11922 Pass target down.
11923 (target_thread_name): Add assertion.
11924 (target_resume): Pass down target.
11925 (target_ops::beneath, find_target_at): Adjust to refer to the
11926 current inferior's target stack.
11927 (get_dummy_target): New.
11928 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11929 has a thread running.
11930 (initialize_targets): Rename to ...
11931 (_initialize_target): ... this.
11932 * target.h: Include "gdbsupport/refcounted-object.h".
11933 (struct target_ops): Inherit refcounted_object.
11934 (target_ops::shortname, target_ops::longname): Make const.
11935 (target_ops::async_wait_fd): New method.
11936 (decref_target): Declare.
11937 (struct target_ops_ref_policy): New.
11938 (target_ops_ref): New typedef.
11939 (get_dummy_target): Declare function.
11940 (target_is_pushed): Return bool.
11941 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11942 (all_matching_threads_iterator::all_matching_threads_iterator):
11943 Handle filter target.
11944 * thread-iter.h (struct all_matching_threads_iterator, struct
11945 all_matching_threads_range, class all_non_exited_threads_range):
11946 Filter by target too. Remove explicit.
11947 * thread.c (threads_executing): Delete.
11948 (inferior_thread): Pass down current inferior.
11949 (clear_thread_inferior_resources): Pass down thread pointer
11950 instead of ptid_t.
11951 (add_thread_silent, add_thread_with_info, add_thread): Add
11952 process_stratum_target parameter. Use it for thread and inferior
11953 searches.
11954 (is_current_thread): New.
11955 (thread_info::deletable): Use it.
11956 (find_thread_ptid, thread_count, in_thread_list)
11957 (thread_change_ptid, set_resumed, set_running): New
11958 process_stratum_target parameter. Pass it down.
11959 (set_executing): New process_stratum_target parameter. Pass it
11960 down. Adjust reference to 'threads_executing'.
11961 (threads_are_executing): New process_stratum_target parameter.
11962 Adjust reference to 'threads_executing'.
11963 (set_stop_requested, finish_thread_state): New
11964 process_stratum_target parameter. Pass it down.
11965 (switch_to_thread): Also match inferior.
11966 (switch_to_thread): New process_stratum_target parameter. Pass it
11967 down.
11968 (update_threads_executing): Reimplement.
11969 * top.c (quit_force): Pop targets from all inferior.
11970 (gdb_init): Don't call initialize_targets.
11971 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11972 Declare.
11973 (windows_add_thread, windows_delete_thread): Adjust.
11974 (get_windows_debug_event): Rename to ...
11975 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11976 * tracefile-tfile.c (tfile_target_open): Pass down target.
11977 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11978 Forward declare.
11979 (switch_to_thread): Add process_stratum_target parameter.
11980 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11981 parameter. Use it.
11982 (mi_on_resume): Pass target down.
11983 * nat/fork-inferior.c (startup_inferior): Add
11984 process_stratum_target parameter. Pass it down.
11985 * nat/fork-inferior.h (startup_inferior): Add
11986 process_stratum_target parameter.
11987 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11988
11989 2020-01-10 Pedro Alves <palves@redhat.com>
11990
11991 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11992 directly. Instead find the first thread in the thread list and
11993 use switch_to_thread.
11994
11995 2020-01-10 Pedro Alves <palves@redhat.com>
11996
11997 * remote.c (remote_target::remote_add_inferior): Don't bind a
11998 process to the current inferior if the current inferior is already
11999 bound to a process.
12000
12001 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12002 Pedro Alves <palves@redhat.com>
12003
12004 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
12005 If no process is specified, return null_ptid instead of
12006 inferior_ptid.
12007 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
12008 TARGET_WAITKIND_SIGNALLED with no pid.
12009
12010 2020-01-10 Pedro Alves <palves@redhat.com>
12011
12012 * remote.c (first_remote_resumed_thread): New.
12013 (remote_target::wait_as): Use it as default event_ptid instead of
12014 inferior_ptid.
12015
12016 2020-01-10 Pedro Alves <palves@redhat.com>
12017
12018 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
12019
12020 2020-01-10 Pedro Alves <palves@redhat.com>
12021
12022 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
12023 not -1.
12024
12025 2020-01-10 Pedro Alves <palves@redhat.com>
12026
12027 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
12028 ptid to get_last_target_status.
12029 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
12030 ptid to get_last_target_status.
12031 * infcmd.c (continue_command): Don't pass a target_waitstatus to
12032 get_last_target_status.
12033 (info_program_command): Don't pass a target_waitstatus to
12034 get_last_target_status.
12035 * infrun.c (init_wait_for_inferior): Use
12036 nullify_last_target_wait_ptid.
12037 (get_last_target_status): Handle nullptr arguments.
12038 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
12039 (print_stop_event): Don't pass a ptid to get_last_target_status.
12040 (normal_stop): Don't pass a ptid to get_last_target_status.
12041 * infrun.h (get_last_target_status, set_last_target_status): Move
12042 comments here and update.
12043 (nullify_last_target_wait_ptid): Declare.
12044 * linux-fork.c (fork_load_infrun_state): Remove local extern
12045 declaration of nullify_last_target_wait_ptid.
12046 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
12047 to get_last_target_status.
12048
12049 2020-01-10 Pedro Alves <palves@redhat.com>
12050
12051 * gdbthread.h (scoped_restore_current_thread)
12052 <dont_restore, restore, m_dont_restore>: Declare.
12053 * thread.c (thread_alive): Add assertion. Return bool.
12054 (switch_to_thread_if_alive): New.
12055 (prune_threads): Switch inferior/thread.
12056 (print_thread_info_1): Switch thread before calling target methods.
12057 (scoped_restore_current_thread::restore): New, factored out from
12058 ...
12059 (scoped_restore_current_thread::~scoped_restore_current_thread):
12060 ... this.
12061 (scoped_restore_current_thread::scoped_restore_current_thread):
12062 Add assertion.
12063 (thread_apply_all_command, thread_select): Use
12064 switch_to_thread_if_alive.
12065 * infrun.c (proceed, restart_threads, handle_signal_stop)
12066 (switch_back_to_stepped_thread): Switch current thread before
12067 calling target methods.
12068
12069 2020-01-10 Pedro Alves <palves@redhat.com>
12070
12071 * inferior.c (switch_to_inferior_no_thread): New function,
12072 factored out from ...
12073 (inferior_command): ... here.
12074 * inferior.h (switch_to_inferior_no_thread): Declare.
12075 * mi/mi-main.c (run_one_inferior): Use
12076 switch_to_inferior_no_thread.
12077
12078 2020-01-10 Pedro Alves <palves@redhat.com>
12079
12080 * infcmd.c (kill_command): Remove dead code.
12081
12082 2020-01-10 Pedro Alves <palves@redhat.com>
12083
12084 * remote.c (remote_target::mourn_inferior): No longer check
12085 whether the target is running.
12086
12087 2020-01-10 Pedro Alves <palves@redhat.com>
12088
12089 * corelow.c (core_target::has_execution): Change parameter type to
12090 inferior pointer.
12091 * inferior.c (number_of_live_inferiors): Use
12092 inferior::has_execution instead of target_has_execution_1.
12093 * inferior.h (inferior::has_execution): New.
12094 * linux-thread-db.c (thread_db_target::update_thread_list): Use
12095 inferior::has_execution instead of target_has_execution_1.
12096 * process-stratum-target.c
12097 (process_stratum_target::has_execution): Change parameter type to
12098 inferior pointer. Check the inferior's PID instead of
12099 inferior_ptid.
12100 * process-stratum-target.h
12101 (process_stratum_target::has_execution): Change parameter type to
12102 inferior pointer.
12103 * record-full.c (record_full_core_target::has_execution): Change
12104 parameter type to inferior pointer.
12105 * target.c (target_has_execution_1): Change parameter type to
12106 inferior pointer.
12107 (target_has_execution_current): Adjust.
12108 * target.h (target_ops::has_execution): Change parameter type to
12109 inferior pointer.
12110 (target_has_execution_1): Change parameter type to inferior
12111 pointer. Change return type to bool.
12112 * tracefile.h (tracefile_target::has_execution): Change parameter
12113 type to inferior pointer.
12114
12115 2020-01-10 Pedro Alves <palves@redhat.com>
12116
12117 * exceptions.c (print_flush): Remove current_top_target() check.
12118
12119 2020-01-10 Pedro Alves <palves@redhat.com>
12120
12121 * remote.c (show_remote_exec_file): Show the current inferior's
12122 exec-file instead of the command variable's value.
12123
12124 2020-01-10 Pedro Alves <palves@redhat.com>
12125
12126 * record-full.c (record_full_resume_ptid): New global.
12127 (record_full_target::resume): Set it.
12128 (record_full_wait_1): Use record_full_resume_ptid instead of
12129 inferior_ptid.
12130
12131 2020-01-10 Pedro Alves <palves@redhat.com>
12132
12133 * gdbthread.h (scoped_restore_current_thread)
12134 <dont_restore, restore, m_dont_restore>: Declare.
12135 * thread.c (thread_alive): Add assertion. Return bool.
12136 (switch_to_thread_if_alive): New.
12137 (prune_threads): Switch inferior/thread.
12138 (print_thread_info_1): Switch thread before calling target methods.
12139 (scoped_restore_current_thread::restore): New, factored out from
12140 ...
12141 (scoped_restore_current_thread::~scoped_restore_current_thread):
12142 ... this.
12143 (scoped_restore_current_thread::scoped_restore_current_thread):
12144 Add assertion.
12145 (thread_apply_all_command, thread_select): Use
12146 switch_to_thread_if_alive.
12147
12148 2020-01-10 George Barrett <bob@bob131.so>
12149
12150 * stap-probe.c (stap_modify_semaphore): Don't check for null
12151 semaphores.
12152 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12153 for null semaphores.
12154
12155 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12156
12157 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12158 all source windows, and maintain horizontal scroll status while
12159 doing so.
12160
12161 2020-01-09 Tom Tromey <tom@tromey.com>
12162
12163 PR tui/18932:
12164 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12165 update_source_window, not print_source_lines.
12166
12167 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12168
12169 * tui/tui.c (tui_enable): Register tui hooks after calling
12170 tui_display_main.
12171
12172 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12173
12174 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12175
12176 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
12177
12178 * thread.c (print_thread_info_1): Fix indentation.
12179
12180 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12181
12182 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12183 unique_xmalloc_ptr outside the if to always free the demangled name.
12184
12185 2020-01-08 Tom Tromey <tromey@adacore.com>
12186
12187 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12188 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12189 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12190 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12191 Remove.
12192 (section_offsets): New typedef.
12193 * symtab.c (fixup_section, get_msymbol_address): Update.
12194 * symmisc.c (dump_msymbols): Update.
12195 * symfile.h (relative_addr_info_to_section_offsets)
12196 (symfile_map_offsets_to_segments): Update.
12197 * symfile.c (build_section_addr_info_from_objfile)
12198 (init_objfile_sect_indices): Update.
12199 (struct place_section_arg): Change type of "offsets".
12200 (place_section): Update.
12201 (relative_addr_info_to_section_offsets): Change type of
12202 "section_offsets". Remove "num_sections" parameter.
12203 (default_symfile_offsets, syms_from_objfile_1)
12204 (set_objfile_default_section_offset): Update.
12205 (reread_symbols): No need to preserve section offsets by hand.
12206 (symfile_map_offsets_to_segments): Change type of "offsets".
12207 * stap-probe.c (relocate_address): Update.
12208 * stabsread.h (process_one_symbol): Update.
12209 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12210 (solib_target_relocate_section_addresses): Update.
12211 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12212 Update.
12213 * solib-frv.c (frv_relocate_main_executable): Update.
12214 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12215 * solib-aix.c (solib_aix_get_section_offsets): Change return
12216 type.
12217 (solib_aix_solib_create_inferior_hook): Update.
12218 * remote.c (remote_target::get_offsets): Update.
12219 * psymtab.c (find_pc_sect_psymtab): Update.
12220 * psympriv.h (struct partial_symbol) <address, text_low,
12221 text_high>: Update.
12222 * objfiles.h (obj_section_offset): Update.
12223 (struct objfile) <section_offsets>: Change type.
12224 <num_sections>: Remove.
12225 (objfile_relocate): Update.
12226 * objfiles.c (entry_point_address_query): Update
12227 (relocate_one_symbol): Change type of "section_offsets".
12228 (objfile_relocate1, objfile_relocate1): Change type of
12229 "new_offsets".
12230 (objfile_rebase1): Update.
12231 * mipsread.c (mipscoff_symfile_read): Update.
12232 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12233 parameter.
12234 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12235 (parse_external, psymtab_to_symtab_1): Update.
12236 * machoread.c (macho_symfile_offsets): Update.
12237 * ia64-tdep.c (ia64_find_unwind_table): Update.
12238 * hppa-tdep.c (read_unwind_info): Update.
12239 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12240 * dwarf2read.c (create_addrmap_from_index)
12241 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12242 (process_psymtab_comp_unit_reader, add_partial_symbol)
12243 (add_partial_subprogram, process_full_comp_unit)
12244 (read_file_scope, read_func_scope, read_lexical_block_scope)
12245 (read_call_site_scope, dwarf2_rnglists_process)
12246 (dwarf2_ranges_process, dwarf2_ranges_read)
12247 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12248 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12249 Update.
12250 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12251 Update.
12252 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12253 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12254 (process_one_symbol): Change type of "section_offsets".
12255 * ctfread.c (get_objfile_text_range): Update.
12256 * coffread.c (coff_symtab_read, enter_linenos)
12257 (process_coff_symbol): Update.
12258 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12259 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12260
12261 2020-01-08 Tom Tromey <tromey@adacore.com>
12262
12263 * dwarf2read.c (parse_macro_definition): Use std::string.
12264 (parse_macro_definition): Likewise.
12265
12266 2020-01-08 Tom Tromey <tromey@adacore.com>
12267
12268 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12269 (ATTR_ALLOC_CHUNK): Remove.
12270
12271 2020-01-08 Tom Tromey <tromey@adacore.com>
12272
12273 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12274
12275 2020-01-08 Tom Tromey <tromey@adacore.com>
12276
12277 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12278 (dwarf2_compute_name, open_dwo_file): Likewise.
12279 (process_enumeration_scope): Use std::vector.
12280 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12281 (partial_die_info::fixup, dwarf2_start_subfile)
12282 (guess_full_die_structure_name, dwarf2_name): Likewise.
12283 (determine_prefix): Update.
12284 (guess_full_die_structure_name): Make return type const.
12285 (partial_die_full_name): Return unique_xmalloc_ptr.
12286 (DW_FIELD_ALLOC_CHUNK): Remove.
12287
12288 2020-01-07 Tom Tromey <tromey@adacore.com>
12289
12290 PR build/24937:
12291 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12292
12293 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12294
12295 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12296
12297 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12298
12299 * stack.c (print_frame_info): Move disassemble_next_line code
12300 inside source_print block.
12301
12302 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12303
12304 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12305 gdb/signals.h, as we are now using native signal symbols.
12306
12307 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12308
12309 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12310 overflow by an early check of content vs threshold.
12311 * tui/tui-source.c (tui_source_window::line_is_displayed):
12312 Likewise.
12313
12314 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12315
12316 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12317
12318 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12319
12320 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12321 export table if no section contains it's RVA.
12322
12323 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12324
12325 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12326
12327 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
12328
12329 * source.c (print_source_lines_base): Set last_line_listed.
12330
12331 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12332
12333 * tui/tui-disasm.c: Remove trailing spaces.
12334
12335 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12336 Pedro Alves <palves@redhat.com>
12337
12338 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12339 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12340 (windows_gdb_signal_to_target): New function, uses the above
12341 enumeration to convert GDB internal signal codes to equivalent
12342 Windows codes.
12343 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12344 * windows-nat.c: Include "gdb_wait.h".
12345 (get_windows_debug_event): Extract the fatal exception from the
12346 exit status and convert to the equivalent Posix signal number.
12347 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12348 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12349 * gdbsupport/gdb_wait.c: New file, implements
12350 windows_status_to_termsig.
12351 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12352 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12353
12354 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12355
12356 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12357 show_layout.
12358
12359 2020-01-05 Luis Machado <luis.machado@linaro.org>
12360
12361 * aarch64-linux-nat.c
12362 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12363 and bfd_mach_aarch64.
12364
12365 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12366
12367 * ui-file.c (stdio_file::can_emit_style_escape)
12368 (tee_file::can_emit_style_escape): Ensure style is used also on
12369 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12370 to gdb_stdout.
12371 * main.c (set_gdb_data_directory): Use file style to output the
12372 warning that the given pathname is not a directory.
12373 * top.c (show_history_filename, gdb_safe_append_history)
12374 (show_gdb_datadir): Use file style.
12375
12376 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12377
12378 * solib-target.c (struct lm_info_target):
12379 Change offsets to be a unique_xmalloc_ptr.
12380 (solib_target_relocate_section_addresses): Update.
12381
12382 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12383
12384 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12385
12386 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12387
12388 * MAINTAINERS (Write After Approval): Add myself.
12389
12390 2020-01-02 Luis Machado <luis.machado@linaro.org>
12391
12392 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12393 Cell BE architecture.
12394 * target.h (struct target_ops) <thread_architecture>: Likewise.
12395
12396 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12397
12398 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12399
12400 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12401
12402 * MAINTAINERS (Write After Approval): Add myself.
12403
12404 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12405
12406 * gdbarch.sh: Update copyright year range of generated files.
12407
12408 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12409
12410 Update copyright year range in all GDB files.
12411
12412 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12413
12414 * copyright.py: Convert to Python 3.
12415
12416 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12417
12418 * copyright.py: Adapt after move of gnulib directory from gdb
12419 directory to toplevel directory.
12420
12421 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12422
12423 * copyright.py (main): Exit if run from the wrong directory.
12424
12425 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12426
12427 * top.c (print_gdb_version): Change copyright year to 2020.
12428
12429 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12430
12431 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
12432
12433 For older changes see ChangeLog-2019.
12434 \f
12435 Local Variables:
12436 mode: change-log
12437 left-margin: 8
12438 fill-column: 74
12439 version-control: never
12440 coding: utf-8
12441 End: