]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
Add netbsd_nat::enable_proc_events in gdb/nat
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2
3 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4 * netbsd-nat.c: Include <sys/ptrace.h>.
5 * (netbsd_nat::enable_proc_events): Add.
6
7 2020-09-10 Kamil Rytarowski <n54@gmx.com>
8
9 * netbsd-nat.h: Include "gdbsupport/function-view.h".
10 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
11 (netbsd_nat::for_each_thread): Add.
12 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
13 "gdbsupport/common-debug.h".
14 * (netbsd_nat::netbsd_thread_lister)
15 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
16 (netbsd_nat::for_each_thread): Add.
17
18 2020-09-10 Kamil Rytarowski <n54@gmx.com>
19
20 * netbsd-nat.h: Include <unistd.h>.
21 * (netbsd_nat::pid_to_exec_file): Add.
22 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
23 * (netbsd_nat::pid_to_exec_file) Add.
24
25 2020-09-10 Kamil Rytarowski <n54@gmx.com>
26
27 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
28
29 2020-09-10 Kamil Rytarowski <n54@gmx.com>
30
31 * netbsd-nat.h: New file.
32 * netbsd-nat.c: Likewise.
33
34 2020-09-09 Tom Tromey <tromey@adacore.com>
35
36 * ada-lang.c (remove_extra_symbols): Do not increment when
37 removing an element
38
39 2020-09-08 Tom Tromey <tromey@adacore.com>
40
41 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
42
43 2020-09-08 Tom Tromey <tromey@adacore.com>
44
45 PR win32/25302:
46 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
47 (gdb_bfd_init_data): New function.
48 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
49
50 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
51
52 * infrun.c (fetch_inferior_event): Use
53 `switch_to_target_no_thread` to switch the target.
54
55 2020-09-06 Tom Tromey <tom@tromey.com>
56
57 * symfile.h (dwarf2_free_objfile): Don't declare.
58
59 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
60
61 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
62 to match 16 byte real/complex type generated by Flang compiler.
63
64 2020-09-03 Tom de Vries <tdevries@suse.de>
65
66 PR breakpoint/26546
67 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
68 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
69
70 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
71
72 * maint.c (index_digits): New function.
73 (struct maint_print_section_data): Remove.
74 (print_bfd_section_info): Remove print_data parameter, add arg
75 and index_digits.
76 (print_objfile_section_info): Likewise.
77 (print_bfd_section_info_maybe_relocated): Likewise (plus
78 objfile).
79 (maintenance_info_sections): Adjust calls.
80
81 2020-09-02 Tom Tromey <tromey@adacore.com>
82
83 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
84 for null pointers.
85 (ada_varobj_adjust_for_child_access): Special-case null pointers.
86
87 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
88
89 * bcache.h (struct bcache) <insert>: Change type of `added` to
90 pointer to bool.
91 * bcache.c (bcache::insert): Likewise.
92 * gdbtypes.c (check_types_worklist): Adjust.
93 * psymtab.c (add_psymbol_to_bcache): Adjust.
94
95 2020-08-31 Kevin Buettner <kevinb@redhat.com>
96
97 * corelow.c (unordered_set): Include.
98 (class core_target): Add field 'm_core_unavailable_mappings'.
99 (core_target::build_file_mappings): Print only one warning
100 per inaccessible file. Add unavailable/broken mappings
101 to m_core_unavailable_mappings.
102 (core_target::xfer_partial): Call...
103 (core_target::xfer_memory_via_mappings): New method.
104
105 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
106
107 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
108 type to bool.
109
110 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
111
112 * dwarf2/read.c (struct field_info): Fix indentation.
113
114 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
115
116 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
117 ordering in comment.
118 * frame.c (frame_id_eq): Fix indentation.
119
120 2020-08-31 Scott Linder <scott@scottlinder.com>
121 Simon Marchi <simon.marchi@efficios.com>
122
123 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
124 inline frame ids in outer frame.
125
126 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
127
128 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
129 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
130 (outer_frame_id): Use FID_STACK_OUTER instead of
131 FID_STACK_INVALID.
132 (frame_id_p): Don't check for outer_frame_id.
133
134 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
135
136 * frame-unwind.c (frame_unwind_got_optimized): Don't set
137 regnum/frame in value. Call allocate_value_lazy.
138 * frame.c (frame_unwind_register_value): Use
139 val_print_not_saved.
140
141 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
142
143 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
144
145 2020-08-29 Pedro Alves <pedro@palves.net>
146
147 * progspace.c (print_program_space): Use all_inferiors. Switch to
148 the inferior before calling target_pid_to_str.
149
150 2020-08-28 Tom Tromey <tom@tromey.com>
151
152 * xcoffread.c (xcoff_end_psymtab): Update comment.
153 * dbxread.c (dbx_end_psymtab): Update comment.
154
155 2020-08-28 Tom de Vries <tdevries@suse.de>
156
157 PR breakpoint/26544
158 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
159 event_location.
160 (create_breakpoint): Same.
161 (base_breakpoint_decode_location): Same.
162 (bkpt_create_sals_from_location): Same.
163 (bkpt_decode_location): Same.
164 (bkpt_probe_create_sals_from_location): Same.
165 (bkpt_probe_decode_location): Same.
166 (tracepoint_create_sals_from_location): Same.
167 (tracepoint_decode_location): Same.
168 (tracepoint_probe_decode_location): Same.
169 (strace_marker_create_sals_from_location): Same.
170 (strace_marker_decode_location): Same.
171 (create_sals_from_location_default): Same.
172 (decode_location_default): Same.
173 * breakpoint.h (struct breakpoint_ops): Same.
174 (create_breakpoint): Same.
175 * linespec.h (decode_line_full): Same.
176 * linespec.c (decode_line_full): Same. Throw error if
177 result.size () == 0.
178
179 2020-08-27 Pedro Alves <pedro@palves.net>
180
181 PR gdb/26524
182 * breakpoint.c (until_break_fsm) <location_breakpoint,
183 caller_breakpoint>: Delete fields.
184 <breakpoints>: New field.
185 <until_break_fsm>: Adjust to save a breakpoint vector instead of
186 two individual breakpoints.
187 (until_break_fsm::should_stop): Loop over breakpoints in the
188 breakpoint vector.
189 (until_break_fsm::clean_up): Adjust to clear the breakpoints
190 vector.
191 (until_break_command): Handle location expanding into multiple
192 sals.
193
194 2020-08-27 Pedro Alves <pedro@palves.net>
195
196 PR gdb/26523
197 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
198 bp_until breakpoints user-specified locations. Update intro
199 comment.
200
201 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
202
203 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
204 gdb_bfd_sections): New.
205 * maint.c (print_bfd_section_info): Change param type to
206 maint_print_section_data.
207 (print_objfile_section_info): Likewise.
208 (print_bfd_section_info_maybe_relocated): Likewise.
209 (maintenance_info_sections): Use gdb_bfd_sections.
210
211 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
212
213 * MAINTAINERS: Add ARC target and maintainer.
214
215 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
216
217 * configure.tgt: ARC support for GNU/Linux.
218 * Makefile.in (ALL_TARGET_OBJS): Likewise.
219 * arc-linux-tdep.c: New file.
220 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
221 * arc-tdep.c (arc_write_pc): Use it.
222
223 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
224
225 * arc-tdep.c (arc_check_for_hardware_loop): New.
226 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
227
228 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
229
230 * arc-tdep.h: Include "gdbarch.h".
231
232 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
233
234 * arch/arc.h
235 (arc_gdbarch_features): New class to stir the selection of target XML.
236 (arc_create_target_description): Use FEATURES to choose XML target.
237 (arc_lookup_target_description): Use arc_create_target_description
238 to create _new_ target descriptions or return the already created
239 ones if the FEATURES is the same.
240 * arch/arc.c: Implementation of prototypes described above.
241 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
242 (arc_gdbarch_features_init): Initialize the FEATURES struct.
243 * arc-tdep.c (*_feature_name): Make feature names consistent.
244 (arc_register_feature): A new struct to hold information about
245 registers of a particular target/feature.
246 (arc_check_tdesc_feature): Check if XML provides registers in
247 compliance with ARC_REGISTER_FEATURE structs.
248 (arc_update_acc_reg_names): Add aliases for r58 and r59.
249 (determine_*_reg_feature_set): Which feature name to look for.
250 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
251 (mach_type_to_arc_isa): Convert from a set of binutils machine types
252 to expected ISA enums to be used in arc_gdbarch_features structs.
253 * features/Makefile (FEATURE_XMLFILES): Add new files.
254 * gdb/features/arc/v1-aux.c: New file.
255 * gdb/features/arc/v1-aux.xml: Likewise.
256 * gdb/features/arc/v1-core.c: Likewise.
257 * gdb/features/arc/v1-core.xml: Likewise.
258 * gdb/features/arc/v2-aux.c: Likewise.
259 * gdb/features/arc/v2-aux.xml: Likewise.
260 * gdb/features/arc/v2-core.c: Likewise.
261 * gdb/features/arc/v2-core.xml: Likewise.
262 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
263
264 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
265 Andrew Burgess <andrew.burgess@embecosm.com>
266
267 PR m2/26372
268 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
269 an assert. Remove single element array indexing pattern as the
270 MULTI_SUBSCRIPT support will handle this case too.
271
272 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
273
274 * value.h (valprint_check_validity): Move declaration from
275 here...
276 * valprint.h (valprint_check_validity): ... to here.
277
278 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
279
280 * debug.h: New file.
281 * debug.c (debug_prefixed_vprintf): New function.
282 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
283 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
284
285 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
286
287 * infrun.h (infrun_debug_printf_1): New function declaration.
288 (infrun_debug_printf): New macro.
289 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
290 throughout.
291 (infrun_debug_printf): New function.
292 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
293 (handle_jit_event): Likewise.
294
295 2020-08-21 Mark Wielaard <mark@klomp.org>
296
297 * ada-lex.l: Extend register warnings diagnostics comment for g++.
298
299 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
300
301 * frame.c (enum class frame_id_status): New.
302 (struct frame_info) <this_id::p>: Change type to frame_id_status.
303 (fprintf_frame): Update.
304 (compute_frame_id): Set frame id status to "computing" on entry.
305 Set it back to "not_computed" on failure and to "computed" on
306 success.
307 (get_frame_id): Assert the frame id is not being computed.
308 (create_sentinel_frame): Use frame_id_status::COMPUTED.
309 (create_new_frame): Likewise.
310 (frame_cleanup_after_sniffer): Update assert.
311
312 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
313
314 * regcache.c (pid_ptid_regcache_map): New type.
315 (target_ptid_regcache_map): Remove.
316 (target_pid_ptid_regcache_map): New type.
317 (regcaches): Change type to target_pid_ptid_regcache_map.
318 (get_thread_arch_aspace_regcache): Update.
319 (regcache_thread_ptid_changed): Update, handle pid-like ptid
320 case.
321 (regcaches_size): Update.
322 (regcache_count): Update.
323 (registers_changed_ptid_target_pid_test): New.
324 (_initialize_regcache): Register new test.
325
326 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
327
328 * regcache.c (regcache_count): New.
329 (struct regcache_test_data): New.
330 (regcache_test_data_up): New.
331 (populate_regcaches_for_test): New.
332 (regcaches_test): Remove.
333 (get_thread_arch_aspace_regcache_test): New.
334 (registers_changed_ptid_all_test): New.
335 (registers_changed_ptid_target_test): New.
336 (registers_changed_ptid_target_ptid_test): New.
337 (regcache_thread_ptid_changed): Remove regcache_count lambda.
338 (_initialize_regcache): Register new tests.
339
340 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
341
342 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
343 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
344 gdbarch and aspace parameter. Use current inferior's aspace.
345 Validate regcache's arch value.
346 (regcaches_test): Update.
347
348 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
349
350 * regcache.c (regcaches_test): Call registers_changed.
351
352 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
353
354 * infrun.c (process_event_stop_test): Fix typo "breapoint".
355
356 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
357
358 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
359 to find the end of prologue for flang compiled binaries.
360 * arm-tdep.c (arm_skip_prologue): Likewise.
361 * i386-tdep.c (i386_skip_prologue): Likewise.
362 * producer.c (producer_is_llvm): New function.
363 (producer_parsing_tests): Added new tests for clang/flang.
364 * producer.h (producer_is_llvm): New declaration.
365
366 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
367
368 * linux-nat.c (linux_nat_debug_printf): New function.
369 (linux_nat_debug_printf_1): New macro. Use throughout the file.
370
371 2020-08-18 Aaron Merey <amerey@redhat.com>
372
373 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
374 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
375 (CLIBS): Add DEBUGINFOD_LIBS.
376
377 2020-08-17 Sergei Trofimovich <siarheit@google.com>
378
379 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
380 'gdbarch_num_regs'.
381
382 2020-08-17 Tom Tromey <tromey@adacore.com>
383
384 * ada-varobj.c (ada_varobj_decode_var): Handle case where
385 ada_get_decoded_value returns NULL.
386
387 2020-08-17 Tom Tromey <tromey@adacore.com>
388
389 * python/py-inferior.c (infpy_search_memory): Use
390 gdb_py_object_from_ulongest.
391 * python/py-infevents.c (create_inferior_call_event_object)
392 (create_memory_changed_event_object): Use
393 gdb_py_object_from_ulongest.
394 * python/py-linetable.c (ltpy_entry_get_pc): Use
395 gdb_py_object_from_ulongest.
396
397 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
398
399 * loc.c (class symbol_needs_eval_context): Fix indentation.
400
401 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
402
403 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
404 bool.
405
406 2020-08-17 Tom de Vries <tdevries@suse.de>
407
408 PR gdb/26393
409 * gdbtypes.c (dump_dynamic_prop): New function.
410 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
411
412 2020-08-15 Tom de Vries <tdevries@suse.de>
413
414 PR backtrace/26390
415 * stack.c (print_frame_args): Temporarily set the selected
416 frame to FRAME while printing the frame's arguments.
417
418 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
419
420 PR breakpoints/26385
421 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
422 Always clear watchpoint with PTRACE_SET_DEBUGREG.
423
424 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
425
426 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
427 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
428 and >= to check return value instead of == -1 and != -1.
429
430 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
431
432 * utils.h (class gdb_argv) <as_array_view>: New method.
433 * utils.c (gdb_argv_as_array_view_test): New.
434 (_initialize_utils): Register selftest.
435 * maint.c (maintenance_selftest): Use the new method.
436
437 2020-08-13 Kamil Rytarowski <n54@gmx.com>
438
439 * target.h (supports_dumpcore, dumpcore): New
440 function declarations.
441 * target.c (supports_dumpcore, dumpcore): New
442 functions.
443 * target-delegates.c: Rebuild.
444 * gcore.c (gcore_command): Use target_supports_dumpcore ()
445 and target_dumpcore ().
446
447 2020-08-13 Aaron Merey <amerey@redhat.com>
448
449 * debuginfod-support.c: Replace global variables with user_data.
450
451 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
452
453 * maint.c (maintenance_selftest): Split args and pass array_view
454 to run_tests.
455
456 2020-08-12 Luis Machado <luis.machado@linaro.org>
457
458 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
459 type's length.
460 Use %s and pulongest to print the length.
461
462 2020-08-12 Pedro Alves <palves@redhat.com>
463
464 * NEWS: Move "Multi-target debugging support" item to the
465 "Changes since GDB 9" section.
466
467 2020-08-12 Pedro Alves <palves@redhat.com>
468
469 PR gdb/26336
470 * progspace.c (program_space::remove_objfile): Invalidate the
471 frame cache.
472
473 2020-08-11 Tom de Vries <tdevries@suse.de>
474
475 * MAINTAINERS: Mark ms1 as deleted.
476
477 2020-08-10 Luis Machado <luis.machado@linaro.org>
478
479 PR gdb/26310
480
481 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
482 act accordingly.
483 (aarch64_analyze_prologue_test): Add more unit tests to exercise
484 movz/str/stur/stp skipping behavior.
485
486 2020-08-10 Luis Machado <luis.machado@linaro.org>
487
488 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
489 struct user_sve_header instead of struct sve_context.
490
491 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
492
493 * read.h (dwarf2_fetch_die_loc_sect_off,
494 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
495 `void *` parameter with function_view.
496 * read.c (dwarf2_fetch_die_loc_sect_off,
497 dwarf2_fetch_die_loc_cu_off): Likewise.
498 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
499 (per_cu_dwarf_call): Adjust.
500 (get_frame_address_in_block_wrapper): Remove.
501 (indirect_synthetic_pointer): Adjust.
502 (get_ax_pc): Remove.
503 (dwarf2_compile_expr_to_ax): Adjust.
504
505 2020-08-08 Tom de Vries <tdevries@suse.de>
506
507 PR build/26344
508 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
509 constructor.
510 * regcache.c (get_thread_arch_aspace_regcache): Same.
511
512 2020-08-07 Tom Tromey <tromey@adacore.com>
513
514 * ravenscar-thread.c
515 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
516 New method.
517 (ravenscar_thread_target::wait): Check
518 runtime_initialized.
519 (ravenscar_thread_target::prepare_to_store)
520 (ravenscar_thread_target::stopped_by_sw_breakpoint)
521 (ravenscar_thread_target::stopped_by_hw_breakpoint)
522 (ravenscar_thread_target::stopped_by_watchpoint)
523 (ravenscar_thread_target::stopped_data_address)
524 (ravenscar_thread_target::core_of_thread): Use
525 scoped_restore_current_thread and
526 set_base_thread_from_ravenscar_task.
527
528 2020-08-07 Tom Tromey <tromey@adacore.com>
529
530 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
531
532 2020-08-07 Tom Tromey <tromey@adacore.com>
533
534 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
535 update_inferior_ptid before update_thread_list.
536 (temporarily_change_regcache_ptid): New class.
537 (ravenscar_thread_target::fetch_registers)
538 (ravenscar_thread_target::store_registers)
539 (ravenscar_thread_target::prepare_to_store): Use base thread when
540 forwarding operation.
541
542 2020-08-07 Tom Tromey <tromey@adacore.com>
543
544 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
545 "is_pid" case.
546
547 2020-08-07 Tom Tromey <tromey@adacore.com>
548
549 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
550 New methods.
551 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
552 first.
553 (ravenscar_thread_target::add_thread): Rename from
554 ravenscar_add_thread.
555 (ravenscar_thread_target::update_thread_list): Use a lambda.
556 (ravenscar_thread_target::xfer_partial): New method.
557
558 2020-08-07 Tom Tromey <tromey@adacore.com>
559
560 * ada-lang.h (ada_task_list_iterator_ftype): Now a
561 gdb::function_view.
562 (iterate_over_live_ada_tasks): Change type of argument.
563 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
564 of argument.
565
566 2020-08-07 Tom Tromey <tromey@adacore.com>
567
568 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
569 Remove.
570 (ravenscar_thread_target::extra_thread_info): Remove.
571 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
572 defer to target beneath for non-Ravenscar threads.
573
574 2020-08-07 Tom Tromey <tromey@adacore.com>
575
576 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
577 get_base_thread_from_ravenscar_task>: Now methods.
578 <m_cpu_map>: New member.
579 (ravenscar_thread_target::get_thread_base_cpu): Rename from
580 ravenscar_get_thread_base_cpu. Check m_cpu_map.
581 (ravenscar_thread_target::task_is_currently_active): Update.
582 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
583 Now a method.
584 (ravenscar_thread_target::add_active_thread): Put initial thread
585 into the m_cpu_map.
586
587 2020-08-07 Tom Tromey <tromey@adacore.com>
588
589 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
590 event_ptid.
591
592 2020-08-07 Tom Tromey <tromey@adacore.com>
593
594 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
595 runtime_initialized.
596
597 2020-08-07 Tom Tromey <tromey@adacore.com>
598
599 * ravenscar-thread.c (ravenscar_thread_target): Don't call
600 add_active_thread.
601 (ravenscar_thread_target::add_active_thread): Now public.
602 (ravenscar_inferior_created): Call add_active_thread after pushing
603 the target.
604
605 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
606
607 * regcache.c (ptid_regcache_map): New type.
608 (target_ptid_regcache_map): New type.
609 (regcaches): Change type to target_ptid_regcache_map.
610 (get_thread_arch_aspace_regcache): Update to regcaches' new
611 type.
612 (regcache_thread_ptid_changed): Likewise.
613 (registers_changed_ptid): Likewise.
614 (regcaches_size): Likewise.
615 (regcaches_test): Update.
616 (regcache_thread_ptid_changed): Update.
617 * regcache.h (regcache_up): New type.
618 * gdbsupport/ptid.h (hash_ptid): New struct.
619
620 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
621
622 * observable.h (thread_ptid_changed): Add parameter
623 `process_stratum_target *`.
624 * infrun.c (infrun_thread_ptid_changed): Add parameter
625 `process_stratum_target *` and use it.
626 (selftests): New namespace.
627 (infrun_thread_ptid_changed): New function.
628 (_initialize_infrun): Register selftest.
629 * regcache.c (regcache_thread_ptid_changed): Add parameter
630 `process_stratum_target *` and use it.
631 (regcache_thread_ptid_changed): New function.
632 (_initialize_regcache): Register selftest.
633 * thread.c (thread_change_ptid): Pass target to
634 thread_ptid_changed observable.
635
636 2020-08-06 Caroline Tice <cmtice@google.com>
637
638 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
639 (struct dwp_sections): Update field comments. Add loclists and
640 rnglists fields.
641 (struct virtual_v2_dwo_sections): Rename struct to
642 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
643 size & offset fields for loclists and rnglists.
644 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
645 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
646 skipping dummy type units.
647 (create_dwp_hash_table): Update the large comment above the function to
648 discuss Version 5 DWP files as well, with references. Update all the
649 version checks in the function to check for version 5 as well. Add new
650 section at the end to create dwp hash table for version 5.
651 (create_dwp_v2_section): Rename function to
652 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
653 Add V5 to error message text.
654 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
655 into calls to create_dwp_v2_or_v5_section.
656 (create_dwo_unit_in_dwp_v5): New function.
657 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
658 check for version2; add else clause to handle version 5.
659 (open_and_init_dwo_file): Add code to check dwarf version & only call
660 create_debug_types_hash_table (with sections.types) if version is not 5;
661 else call create_debug_type_hash_table, with sections.info.
662 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
663 version 5.
664 (dwarf2_locate_v5_dwp_sections): New function.
665 (open_and_init_dwp_file): Add else-if clause for version 5 to call
666 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
667
668 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
669
670 * regcache.h (class regcache): Remove friend
671 registers_changed_ptid.
672 <regcache_thread_ptid_changed>: Remove.
673 <regcaches>: Remove.
674 * regcache.c (regcache::regcaches): Rename to...
675 (regcaches): ... this. Make static.
676 (get_thread_arch_aspace_regcache): Update.
677 (regcache::regcache_thread_ptid_changed): Rename to...
678 (regcache_thread_ptid_changed): ... this. Update.
679 (class regcache_access): Remove.
680 (regcaches_test): Update.
681 (_initialize_regcache): Update.
682 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
683 <forward_list>.
684
685 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
686
687 * regcache.h (class regcache) <current_regcache>: Rename to...
688 <regcaches>: ... this. Move doc here.
689 * regcache.c (regcache::current_regcache) Rename to...
690 (regcache::regcaches): ... this. Move doc to header.
691 (get_thread_arch_aspace_regcache): Update.
692 (regcache::regcache_thread_ptid_changed): Update.
693 (registers_changed_ptid): Update.
694 (class regcache_access) <current_regcache_size>: Rename to...
695 <regcaches_size>: ... this.
696 (current_regcache_test): Rename to...
697 (regcaches_test): ... this.
698 (_initialize_regcache): Update.
699
700 2020-08-06 Victor Collod <vcollod@nvidia.com>
701
702 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
703
704 2020-08-05 Kevin Buettner <kevinb@redhat.com>
705
706 * corelow.c (core_target::build_file_mappings): Don't output
707 null pathname in warning.
708
709 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
710
711 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
712 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
713 gdb.dwarf2/dw2-single-line-discriminators.exp,
714 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
715
716 2020-08-05 Tom Tromey <tromey@adacore.com>
717
718 PR rust/26197:
719 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
720 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
721 Fix off-by-one and type size errors in ordinary case.
722
723 2020-08-05 Tom de Vries <tdevries@suse.de>
724
725 * gdbtypes.c (type_not_allocated, type_not_associated): Use
726 "prop->const_val () == 0" instead of "prop->const_val () != 0".
727
728 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
729
730 * frame.h (frame_id_p): Return bool.
731 (frame_id_artificial_p): Return bool.
732 (frame_id_eq): Return bool.
733 (has_stack_frames): Return bool.
734 (get_selected_frame): Fix typo in comment.
735 (get_frame_pc_if_available): Return bool.
736 (get_frame_address_in_block_if_available): Return bool.
737 (get_frame_func_if_available): Return bool.
738 (read_frame_register_unsigned): Return bool.
739 (get_frame_register_bytes): Return bool.
740 (safe_frame_unwind_memory): Return bool.
741 (deprecated_frame_register_read): Return bool.
742 (frame_unwinder_is): Return bool.
743 * frame.c (struct frame_info) <prev_arch::p>: Change type to
744 bool.
745 <this_id::p>: Likewise.
746 <prev_p>: Likewise.
747 (frame_stash_add): Return bool.
748 (get_frame_id): Use bool.
749 (frame_id_build_special) Use bool.
750 (frame_id_build_unavailable_stack): Use bool.
751 (frame_id_build): Use bool.
752 (frame_id_p): Return bool, use true/false instead of 1/0.
753 (frame_id_artificial_p): Likewise.
754 (frame_id_eq): Likewise.
755 (frame_id_inner): Likewise.
756 (get_frame_func_if_available): Likewise.
757 (read_frame_register_unsigned): Likewise.
758 (deprecated_frame_register_read): Likewise.
759 (get_frame_register_bytes): Likewise.
760 (has_stack_frames): Likewise.
761 (inside_main_func): Likewise.
762 (inside_entry_func): Likewise.
763 (get_frame_pc_if_available): Likewise.
764 (get_frame_address_in_block_if_available): Likewise.
765 (frame_unwinder_is): Likewise.
766 (safe_frame_unwind_memory): Likewise.
767 (frame_unwind_arch): Likewise.
768
769 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
770
771 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
772 type to cached_copy_status.
773 (fprintf_frame): Adjust.
774 (get_frame_func_if_available): Adjust.
775 (frame_cleanup_after_sniffer): Adjust.
776
777 2020-08-04 Mark Wielaard <mark@klomp.org>
778
779 * MAINTAINERS (Write After Approval): Update email address.
780
781 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
782
783 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
784 dynamic_prop::const_val.
785
786 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
787
788 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
789 dynamic_prop::kind.
790
791 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
792
793 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
794
795 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
796
797 * configure.tgt: Set gdb_sim for bpf-*-* targets.
798
799 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
800 Jose E. Marchesi <jose.marchesi@oracle.com>
801
802 * configure.tgt: Add entry for bpf-*-*.
803 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
804 (ALLDEPFILES): Add bpf-tdep.c.
805 * bpf-tdep.c: New file.
806 * MAINTAINERS: Add bpf target and maintainer.
807 * NEWS: Mention the support for the new target.
808
809 2020-08-04 Tom de Vries <tdevries@suse.de>
810
811 PR symtab/23270
812 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
813 Error.
814
815 2020-08-03 John Baldwin <jhb@FreeBSD.org>
816
817 * syscalls/freebsd.xml: Regenerate.
818
819 2020-08-03 John Baldwin <jhb@FreeBSD.org>
820
821 * syscalls/update-freebsd.sh: Fix usage and year range.
822
823 2020-08-03 Tom de Vries <tdevries@suse.de>
824
825 PR symtab/26333
826 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
827 DW_LNE_lo_user/DW_LNE_hi_user range.
828
829 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
830
831 PR ada/26318
832 * ada-lang.c (ada_modulus): Return 0 if property is not of const
833 kind.
834
835 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
836
837 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
838
839 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
840
841 * breakpoint.c (set_breakpoint_condition): Update the condition
842 expressions after checking that the input condition string parses
843 successfully and does not contain junk at the end.
844
845 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
846
847 * breakpoint.c (set_breakpoint_condition): Update the
848 condition string after parsing the new condition successfully.
849
850 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
851
852 * proc-api.c (_STRUCTURED_PROC): Don't define.
853 * proc-events.c: Likewise.
854 * proc-flags.c: Likewise.
855 * proc-why.c: Likewise.
856 * procfs.c: Likewise.
857
858 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
859 * configure, config.in: Regenerate.
860
861 2020-07-30 Tom de Vries <tdevries@suse.de>
862
863 PR build/26320
864 * ui-style.h (struct ui_file_style::color): Wrap m_value and
865 m_red/m_green/m_blue in a union.
866
867 2020-07-29 Tom de Vries <tdevries@suse.de>
868
869 PR tdep/26280
870 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
871
872 2020-07-28 Tom Tromey <tromey@adacore.com>
873
874 PR symtab/26270:
875 * symtab.h (find_pc_partial_function_sym): Declare.
876 * cli/cli-cmds.c (disassemble_command): Use
877 find_pc_partial_function_sym. Check asm_demangle.
878 * blockframe.c (cache_pc_function_sym): New global.
879 (cache_pc_function_name): Remove.
880 (clear_pc_function_cache): Update.
881 (find_pc_partial_function_sym): New function, from
882 find_pc_partial_function.
883 (find_pc_partial_function): Rewrite using
884 find_pc_partial_function_sym.
885
886 2020-07-28 Tom Tromey <tromey@adacore.com>
887
888 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
889 help. Add usage.
890
891 2020-07-28 Tom Tromey <tromey@adacore.com>
892
893 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
894 <DW_OP_GNU_variable_value>: Cast to address type.
895
896 2020-07-28 Kamil Rytarowski <n54@gmx.com>
897
898 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
899 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
900 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
901 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
902 (nbsd_get_siginfo_type): New.
903 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
904 (_initialize_nbsd_tdep): New.
905
906 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
907
908 PR binutils/26301
909 * configure: Regenerated.
910
911 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
912
913 PR binutils/26301
914 * configure: Regenerated.
915
916 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
917
918 * python/py-frame.c: Remove 'user-regs.h' include.
919 (frapy_read_register): Rewrite to make use of
920 gdbpy_parse_register_id.
921 * python/py-registers.c (gdbpy_parse_register_id): New function,
922 moved here from python/py-unwind.c. Updated the return type, and
923 also accepts register descriptor objects.
924 * python/py-unwind.c: Remove 'user-regs.h' include.
925 (pyuw_parse_register_id): Moved to python/py-registers.c.
926 (unwind_infopy_add_saved_register): Update to use
927 gdbpy_parse_register_id.
928 (pending_framepy_read_register): Likewise.
929 * python/python-internal.h (gdbpy_parse_register_id): Declare.
930
931 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
932
933 * python/py-registers.c: Add 'user-regs.h' include.
934 (register_descriptor_iter_find): New function.
935 (register_descriptor_iterator_object_methods): New static global
936 methods array.
937 (register_descriptor_iterator_object_type): Add pointer to methods
938 array.
939
940 2020-07-27 John Baldwin <jhb@FreeBSD.org>
941
942 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
943 for all architectures on FreeBSD 11.3 and later.
944
945 2020-07-27 Tom Tromey <tromey@adacore.com>
946
947 * gcore.h (load_corefile): Don't declare.
948
949 2020-07-27 Tom de Vries <tdevries@suse.de>
950
951 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
952 * config.in: Regenerate.
953 * configure: Regenerate.
954
955 2020-07-26 Eli Zaretskii <eliz@gnu.org>
956
957 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
958 ws2tcpip.h. When checking whether socklen_t type is defined, use
959 ws2tcpip.h if it is available and sys/socket.h isn't.
960 * configure: Regenerate.
961 * config.in: Regenerate.
962
963 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
964
965 PR fortran/23051
966 PR fortran/26139
967 * valops.c (value_ind): Pass address to
968 readjust_indirect_value_type.
969 * value.c (readjust_indirect_value_type): Make parameter
970 non-const, and add extra address parameter. Resolve original type
971 before using it.
972 * value.h (readjust_indirect_value_type): Update function
973 signature and comment.
974
975 2020-07-25 Tom de Vries <tdevries@suse.de>
976
977 PR symtab/26243
978 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
979 entries.
980
981 2020-07-24 Aaron Merey <amerey@redhat.com>
982
983 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
984 * configure: Rebuild.
985
986 2020-07-23 Kevin Buettner <kevinb@redhat.com>
987
988 PR corefiles/26294
989 * corelow.c (_initialize_corelow): Add period to help text
990 for "maintenance print core-file-backed-mappings".
991
992 2020-07-23 Pedro Alves <pedro@palves.net>
993
994 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
995 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
996 meanwhile.
997 * frame.c (frame_cache_generation, get_frame_cache_generation):
998 New.
999 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
1000 (get_prev_frame_if_no_cycle): On exception, don't touch
1001 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
1002 * frame.h (get_frame_cache_generation): Declare.
1003
1004 2020-07-23 Tom de Vries <tdevries@suse.de>
1005
1006 PR tui/26282
1007 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
1008 New default constructor.
1009
1010 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
1011
1012 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
1013 exclude non-statement entries.
1014
1015 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1016
1017 * NEWS (New commands): Mention new command
1018 "maintenance print core-file-backed-mappings".
1019
1020 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1021
1022 * corelow.c (gdbcmd.h): Include.
1023 (core_target::info_proc_mappings): New method.
1024 (get_current_core_target): New function.
1025 (maintenance_print_core_file_backed_mappings): New function.
1026 (_initialize_corelow): Add core-file-backed-mappings to
1027 "maint print" commands.
1028
1029 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1030
1031 * linux-tdep.c (dump_note_entry_p): New function.
1032 (linux_dump_mapping_p_ftype): New typedef.
1033 (linux_find_memory_regions_full): Add new parameter,
1034 should_dump_mapping_p.
1035 (linux_find_memory_regions): Adjust call to
1036 linux_find_memory_regions_full.
1037 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
1038 call to linux_find_memory_regions_full.
1039
1040 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1041
1042 * corelow.c (solist.h, unordered_map): Include.
1043 (class core_target): Add field m_core_file_mappings and
1044 method build_file_mappings.
1045 (core_target::core_target): Call build_file_mappings.
1046 (core_target::~core_target): Free memory associated with
1047 m_core_file_mappings.
1048 (core_target::build_file_mappings): New method.
1049 (core_target::xfer_partial): Use m_core_file_mappings
1050 for memory transfers.
1051 * linux-tdep.c (linux_read_core_file_mappings): New
1052 function.
1053 (linux_core_info_proc_mappings): Rewrite to use
1054 linux_read_core_file_mappings.
1055 (linux_init_abi): Register linux_read_core_file_mappings.
1056
1057 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1058
1059 * arch-utils.c (default_read_core_file_mappings): New function.
1060 * arch-utils.c (default_read_core_file_mappings): Declare.
1061 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
1062 * gdbarch.h, gdbarch.c: Regenerate.
1063
1064 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1065
1066 PR corefiles/25631
1067 * corelow.c (core_target:xfer_partial): Revise
1068 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
1069 case after first checking the stratum beneath the core
1070 target.
1071 (has_all_memory): Return true.
1072 * target.c (raw_memory_xfer_partial): Revise comment
1073 regarding use of has_all_memory.
1074
1075 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1076
1077 * exec.h (section_table_xfer_memory): Revise declaration,
1078 replacing section name parameter with an optional callback
1079 predicate.
1080 * exec.c (section_table_xfer_memory): Likewise.
1081 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
1082 of section_table_xfer_memory.
1083
1084 2020-07-22 Tom Tromey <tromey@adacore.com>
1085
1086 * mi/mi-cmd-stack.c (list_args_or_locals): Use
1087 lookup_symbol_search_name.
1088
1089 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1090
1091 * python/py-registers.c (gdbpy_register_object_data_init): Remove
1092 redundant local variable.
1093 (gdbpy_get_register_descriptor): Extract descriptor vector as a
1094 reference, not pointer, update code accordingly.
1095
1096 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1097 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1098
1099 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
1100 * jit.c (jit_breakpoint_re_set_internal): Use the
1101 `skip_jit_symbol_lookup` field.
1102
1103 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1104 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1105
1106 * jit.c (jit_read_descriptor): Define the descriptor address once,
1107 use twice.
1108 (jit_breakpoint_deleted): Move the declaration of the loop variable
1109 `iter` into the loop header.
1110 (jit_breakpoint_re_set_internal): Move the declaration of the local
1111 variable `objf_data` to the first point of definition.
1112 (jit_event_handler): Move the declaration of local variables
1113 `code_entry`, `entry_addr`, and `objf` to their first point of use.
1114 Rename `objf` to `jited`.
1115
1116 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1117
1118 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
1119 Remove.
1120 * jit.c (get_jiter_objfile_data): Update.
1121
1122 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1123 Simon Marchi <simon.marchi@polymtl.ca>
1124
1125 * jit.c (struct jit_program_space_data): Remove.
1126 (jit_program_space_key): Remove.
1127 (jiter_objfile_data::~jiter_objfile_data): Remove program space
1128 stuff.
1129 (get_jit_program_space_data): Remove.
1130 (jit_breakpoint_deleted): Iterate on all of the program space's
1131 objfiles.
1132 (jit_inferior_init): Likewise.
1133 (jit_breakpoint_re_set_internal): Likewise. Also change return
1134 type to void.
1135 (jit_breakpoint_re_set): Pass current_program_space to
1136 jit_breakpoint_re_set_internal.
1137
1138 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1139
1140 * jit.h (struct jiter_objfile_data) <cached_code_address,
1141 jit_breakpoint>: Move to here from ...
1142 * jit.c (jit_program_space_data): ... here.
1143 (jiter_objfile_data::~jiter_objfile_data): Update.
1144 (jit_breakpoint_deleted): Update.
1145 (jit_breakpoint_re_set_internal): Update.
1146
1147 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1148
1149 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
1150 checks.
1151 (jit_read_descriptor): Remove NULL check.
1152 (jit_event_handler): Add an assertion.
1153
1154 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1155
1156 * jit.h (struct jit_objfile_data): Split into...
1157 (struct jiter_objfile_data): ... this ...
1158 (struct jited_objfile_data): ... and this.
1159 * objfiles.h (struct objfile) <jit_data>: Remove.
1160 <jiter_data, jited_data>: New fields.
1161 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
1162 (jiter_objfile_data::~jiter_objfile_data): ... this.
1163 (get_jit_objfile_data): Rename to ...
1164 (get_jiter_objfile_data): ... this.
1165 (add_objfile_entry): Update.
1166 (jit_read_descriptor): Use get_jiter_objfile_data.
1167 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
1168 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
1169 (jit_inferior_exit_hook): Use objfile's jited_data field.
1170
1171 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1172
1173 * jit.h: Forward-declare `struct minimal_symbol`.
1174 (struct jit_objfile_data): Migrate to here from jit.c; also add a
1175 constructor, destructor, and an objfile* field.
1176 * jit.c (jit_objfile_data): Remove.
1177 (struct jit_objfile_data): Migrate from here to jit.h.
1178 (jit_objfile_data::~jit_objfile_data): New destructor
1179 implementation with code moved from free_objfile_data.
1180 (free_objfile_data): Delete.
1181 (get_jit_objfile_data): Update to use the jit_data field of objfile.
1182 (jit_find_objf_with_entry_addr): Ditto.
1183 (jit_inferior_exit_hook): Ditto.
1184 (_initialize_jit): Remove the call to
1185 register_objfile_data_with_cleanup.
1186 * objfiles.h (struct objfile) <jit_data>: New field.
1187
1188 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1189
1190 * jit.h: Forward-declare `struct objfile`.
1191 (jit_event_handler): Add a second parameter, the JITer objfile.
1192 * jit.c (jit_read_descriptor): Change the signature to take the
1193 JITer objfile as an argument instead of the jit_program_space_data.
1194 (jit_inferior_init): Update the call to jit_read_descriptor.
1195 (jit_event_handler): Use the new JITer objfile argument when calling
1196 jit_read_descriptor.
1197 * breakpoint.c (handle_jit_event): Update the call to
1198 jit_event_handler to pass the JITer objfile.
1199
1200 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1201
1202 * gdbarch.c: Regenerate.
1203 * gdbarch.h: Regenerate.
1204 * gdbarch.sh (handle_segmentation_fault): Remove method.
1205 * infrun.c (handle_segmentation_fault): Remove.
1206 (print_signal_received_reason): Remove call to
1207 handle_segmentation_fault.
1208
1209 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1210
1211 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1212 Rename to sparc64_linux_report_signal_info and add siggnal
1213 argument.
1214 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
1215 instead of sparc64_linux_handle_segmentation_fault.
1216
1217 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1218
1219 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
1220 i386_linux_report_signal_info instead of
1221 i386_linux_handle_segmentation_fault.
1222 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
1223 to i386_linux_report_signal_info and add siggnal argument.
1224 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
1225 of i386_linux_handle_segmentation_fault.
1226 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
1227 to i386_linux_report_signal_info and add siggnal argument.
1228
1229 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1230
1231 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1232 hook if present.
1233
1234 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1235
1236 * gdbarch.c: Regenerate.
1237 * gdbarch.h: Regenerate.
1238 * gdbarch.sh (report_signal_info): New method.
1239 * infrun.c (print_signal_received_reason): Invoke gdbarch
1240 report_signal_info hook if present.
1241
1242 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1243
1244 * python/py-registers.c : Add 'unordered_map' include.
1245 (gdbpy_new_reggroup): Renamed to...
1246 (gdbpy_get_reggroup): ...this. Update to only create register
1247 group descriptors when needed.
1248 (gdbpy_reggroup_iter_next): Update.
1249
1250 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1251
1252 * python/py-registers.c (gdbpy_register_object_data): New static
1253 global.
1254 (gdbpy_register_object_data_init): New function.
1255 (gdbpy_new_register_descriptor): Renamed to...
1256 (gdbpy_get_register_descriptor): ...this, and update to reuse
1257 existing register descriptors where possible.
1258 (gdbpy_register_descriptor_iter_next): Update.
1259 (gdbpy_initialize_registers): Register new gdbarch data.
1260
1261 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
1262
1263 * linux-nat.c (stopped_pids): Make static.
1264
1265 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1266
1267 PR ada/26235
1268 * gdbtypes.c (ada_discrete_type_low_bound,
1269 ada_discrete_type_high_bound): Handle undefined bounds.
1270
1271 2020-07-21 Kamil Rytarowski <n54@gmx.com>
1272
1273 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1274 declaration.
1275 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1276 function.
1277
1278 2020-07-20 John Baldwin <jhb@FreeBSD.org>
1279
1280 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1281 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1282 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1283 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1284 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1285 method.
1286
1287 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1288
1289 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1290 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1291 which are deprecated in Guile 3.0.
1292 * configure.ac (try_guile_versions): Add "guile-3.0".
1293 * configure (try_guile_versions): Regenerate.
1294 * NEWS: Update entry.
1295
1296 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1297 Doug Evans <dje@google.com>
1298
1299 PR gdb/21104
1300 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1301 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1302 USING_GUILE_BEFORE_2_2.
1303 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1304 Change type to 'scm_t_port_type *'.
1305 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1306 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1307 parameter and honor it. Update callers.
1308 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1309 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1310 functions.
1311 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1312 USING_GUILE_BEFORE_2_2.
1313 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1314 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1315 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1316 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1317 and 'SCM_PORT_TYPE'.
1318 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1319 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1320 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1321 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1322 [!USING_GUILE_BEFORE_2_2]: New functions.
1323 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1324 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1325 'gdbscm_memory_port_read'.
1326 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1327 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1328 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1329 function.
1330 (ioscm_init_memory_port): Remove.
1331 (ioscm_init_memory_port_stream): New function
1332 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1333 function.
1334 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1335 Return scm_from_uint (0).
1336 (gdbscm_set_memory_port_read_buffer_size_x)
1337 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1338 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1339 Return scm_from_uint (0).
1340 (gdbscm_set_memory_port_write_buffer_size_x)
1341 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1342 * configure.ac (try_guile_versions): Add "guile-2.2".
1343 * configure: Regenerate.
1344 * NEWS: Add entry.
1345
1346 2020-07-18 Tom Tromey <tom@tromey.com>
1347
1348 * linux-nat.c (linux_multi_process): Remove.
1349 (linux_nat_target::supports_multi_process): Return true.
1350
1351 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1352
1353 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1354 (riscv_lookup_target_description): Return pointer out of
1355 unique_ptr.
1356 * target-descriptions.c (allocate_target_description): Add
1357 comment.
1358 (target_desc_deleter::operator()): Likewise.
1359 * target-descriptions.h (struct target_desc_deleter): Moved to
1360 gdbsupport/tdesc.h.
1361 (target_desc_up): Likewise.
1362
1363 2020-07-17 Tom Tromey <tromey@adacore.com>
1364
1365 * linux-nat.c (linux_nat_target::supports_non_stop)
1366 (linux_nat_target::always_non_stop_p): Use "true".
1367 (linux_nat_target::supports_disable_randomization): Use "true" and
1368 "false".
1369
1370 2020-07-16 Caroline Tice <cmtice@google.com>
1371
1372 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1373 (RNGLIST_HEADER_SIZE64): New constant definition.
1374 (struct dwop_section_names): Add rnglists_dwo.
1375 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1376 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1377 (struct dwo_sections): Add rnglists field.
1378 (read_attribut_reprocess): Add tag parameter.
1379 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1380 (cu_debug_rnglists_section): New function (decl & definition).
1381 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1382 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1383 die whose range is being checked; get rnglist section from
1384 cu_debug_rnglists_section, to get from either objfile or dwo file as
1385 appropriate. Add cases for DW_RLE_base_addressx,
1386 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1387 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1388 test inside if-condition and updating complaint message.
1389 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1390 dwarf2_rnglists_process.
1391 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1392 dwarf2_ranges_process.
1393 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1394 need_ranges_base and update comment appropriately. Also pass die tag
1395 to dwarf2_ranges_read.
1396 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1397 need_ranges_base and update comment appropriately. Also pass die tag
1398 to dwarf2_ranges_process.
1399 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1400 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1401 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1402 need_ranges_base and update comment appropriately. Also pass die tag
1403 to read_attribute_reprocess and dwarf2_ranges_read.
1404 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1405 and update function comment appropriately.
1406 (read_loclist_index): Call read_loclists_rnglists_header instead of
1407 read_loclist_header.
1408 (read_rnglist_index): New function.
1409 (read_attribute_reprocess): Add tag parameter. Add code for
1410 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1411 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1412
1413 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1414
1415 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1416 being resolved.
1417
1418 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1419
1420 * arch-utils.c (show_architecture): Update formatting of messages.
1421
1422 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1423
1424 * gdbtypes.h (struct type) <bounds>: Handle array and string
1425 types.
1426 * ada-lang.c (assign_aggregate): Use type::bounds on
1427 array/string type.
1428 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1429 * c-varobj.c (c_number_of_children): Likewise.
1430 (c_describe_child): Likewise.
1431 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1432 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1433 (f_type_print_base): Likewise.
1434 * f-valprint.c (f77_array_offset_tbl): Likewise.
1435 (f77_get_upperbound): Likewise.
1436 (f77_print_array_1): Likewise.
1437 * guile/scm-type.c (gdbscm_type_range): Likewise.
1438 * m2-typeprint.c (m2_array): Likewise.
1439 (m2_is_long_set_of_type): Likewise.
1440 * m2-valprint.c (get_long_set_bounds): Likewise.
1441 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1442 * python/py-type.c (typy_range): Likewise.
1443 * rust-lang.c (rust_internal_print_type): Likewise.
1444 * type-stack.c (type_stack::follow_types): Likewise.
1445 * valarith.c (value_subscripted_rvalue): Likewise.
1446 * valops.c (value_cast): Likewise.
1447
1448 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1449
1450 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1451 callers to use the equivalent accessor methods.
1452
1453 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1454
1455 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1456 (struct type) <bit_stride>: New method.
1457 (TYPE_BIT_STRIDE): Remove.
1458 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1459
1460 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1461
1462 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1463 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1464 callers to use the equivalent accessor methods instead.
1465
1466 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1467
1468 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1469 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1470 callers to use the equivalent accessor methods instead.
1471
1472 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1473
1474 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1475 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1476 to use dynamic_prop::kind.
1477
1478 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1479
1480 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1481 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1482 to get the bound property's kind and check against
1483 PROP_UNDEFINED.
1484
1485 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1486
1487 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1488 all callers to use type::range_bounds followed by
1489 dynamic_prop::{low,high}.
1490
1491 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1492
1493 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1494 const_val, set_const_val, baton, set_locexpr, set_loclist,
1495 set_addr_offset, variant_parts, set_variant_parts,
1496 original_type, set_original_type>: New methods.
1497 <kind>: Rename to...
1498 <m_kind>: ... this. Update all users to use the new methods
1499 instead.
1500 <data>: Rename to...
1501 <m_data>: ... this. Update all users to use the new methods
1502 instead.
1503
1504 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1505
1506 * gdbtypes.c (get_discrete_bounds): Return failure if
1507 the range type's bounds are not both defined and constant
1508 values.
1509 (get_array_bounds): Update comment. Remove undefined bound check.
1510
1511 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1512
1513 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1514 the type::bounds method directly.
1515
1516 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1517
1518 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1519 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1520 are used to set the range type's bounds to use set_bounds.
1521
1522 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1523
1524 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1525
1526 2020-07-10 Pedro Alves <pedro@palves.net>
1527
1528 * gdbthread.h (inferior_ref): Define.
1529 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1530 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1531 * thread.c
1532 (scoped_restore_current_thread::restore):
1533 Adjust to gdb::ref_ptr.
1534 (scoped_restore_current_thread::~scoped_restore_current_thread):
1535 Remove manual decref handling.
1536 (scoped_restore_current_thread::scoped_restore_current_thread):
1537 Adjust to use
1538 inferior_ref::new_reference/thread_info_ref::new_reference.
1539 Incref the thread before calling get_frame_id instead of after.
1540 Let TARGET_CLOSE_ERROR propagate.
1541
1542 2020-07-10 Pedro Alves <pedro@palves.net>
1543
1544 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1545 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1546 NOT_AVAILABLE_ERROR.
1547 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1548 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1549
1550 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1551 Pedro Alves <pedro@palves.net>
1552
1553 PR gdb/26199
1554 * infrun.c (threads_are_resumed_pending_p): Delete.
1555 (do_target_wait): Remove threads_are_executing and
1556 threads_are_resumed_pending_p checks from the inferior_matches
1557 lambda. Update comments.
1558
1559 2020-07-10 Pedro Alves <pedro@palves.net>
1560
1561 PR gdb/26199
1562 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1563 executing threads.
1564
1565 2020-07-10 Pedro Alves <pedro@palves.net>
1566
1567 PR gdb/26199
1568 * infrun.c (handle_no_resumed): Handle multiple targets.
1569
1570 2020-07-10 Pedro Alves <pedro@palves.net>
1571
1572 PR gdb/26199
1573 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1574 target_is_async_p.
1575
1576 2020-07-10 Pedro Alves <pedro@palves.net>
1577
1578 PR gdb/26199
1579 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1580 threads, not all threads.
1581
1582 2020-07-10 Pedro Alves <pedro@palves.net>
1583
1584 PR gdb/26199
1585 * remote.c (remote_target::open_1): Pass remote target pointer as
1586 data to create_async_event_handler.
1587 (remote_async_inferior_event_handler): Mark async event handler
1588 before returning if the remote target still has either pending
1589 events or unacknowledged notifications.
1590
1591 2020-07-10 John Baldwin <jhb@FreeBSD.org>
1592
1593 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1594 declaration.
1595 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1596 function.
1597
1598 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1599
1600 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1601 inferior_ptid.
1602
1603 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1604
1605 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1606 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1607 AT_FREEBSD_PS_STRINGS.
1608
1609 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
1610
1611 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1612 of debugfile path on Windows.
1613
1614 2020-07-08 John Baldwin <jhb@FreeBSD.org>
1615
1616 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1617 argument to 'data'.
1618
1619 2020-07-08 Tom Tromey <tromey@adacore.com>
1620
1621 * ada-lang.c (ada_exception_message_1): Use read_memory.
1622
1623 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1624
1625 PR python/22748
1626 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1627 special handling for inline frames.
1628 * findvar.c (value_of_register_lazy): Skip inline frames when
1629 creating lazy register values.
1630 * frame.c (frame_id_computed_p): Delete definition.
1631 * frame.h (frame_id_computed_p): Delete declaration.
1632
1633 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1634
1635 * NEWS: Mention additions to Python API.
1636 * python/py-arch.c (archpy_register_groups): New function.
1637 (arch_object_methods): Add 'register_groups' method.
1638 * python/py-registers.c (reggroup_iterator_object): New struct.
1639 (reggroup_object): New struct.
1640 (gdbpy_new_reggroup): New function.
1641 (gdbpy_reggroup_to_string): New function.
1642 (gdbpy_reggroup_name): New function.
1643 (gdbpy_reggroup_iter): New function.
1644 (gdbpy_reggroup_iter_next): New function.
1645 (gdbpy_new_reggroup_iterator): New function
1646 (gdbpy_initialize_registers): Register new types.
1647 (reggroup_iterator_object_type): Define new Python type.
1648 (gdbpy_reggroup_getset): New static global.
1649 (reggroup_object_type): Define new Python type.
1650 * python/python-internal.h
1651
1652 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1653
1654 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1655 * python/py-arch.c (archpy_registers): New function.
1656 (arch_object_methods): Add 'registers' method.
1657 * python/py-registers.c: New file.
1658 * python/python-internal.h
1659 (gdbpy_new_register_descriptor_iterator): Declare.
1660 (gdbpy_initialize_registers): Declare.
1661 * python/python.c (do_start_initialization): Call
1662 gdbpy_initialize_registers.
1663 * NEWS: Mention additions to the Python API.
1664
1665 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1666
1667 * NEWS: Mention new Python API method.
1668 * python/py-unwind.c (pending_framepy_architecture): New function.
1669 (pending_frame_object_methods): Add architecture method.
1670
1671 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1672
1673 * gdbarch.c: Regenerate.
1674 * gdbarch.h: Regenerate.
1675 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1676 (gdbarch_data): Use internal_error for the case where
1677 deprecated_set_gdbarch_data was originally needed.
1678 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1679 and use passed in obstack.
1680 (libunwind_frame_set_descr): Should no longer get back NULL from
1681 gdbarch_data.
1682 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1683 type.
1684 * user-regs.c (user_regs_init): Update parameters, and use passed
1685 in obstack.
1686 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1687 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1688
1689 2020-07-06 Tom de Vries <tdevries@suse.de>
1690
1691 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1692 End-Of-Sequence in lte_is_less_than.
1693 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1694 "gdb: Don't reorder line table entries too much when sorting".
1695
1696 2020-07-06 Tom de Vries <tdevries@suse.de>
1697
1698 PR tui/26205
1699 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1700
1701 2020-07-05 Tom de Vries <tdevries@suse.de>
1702
1703 PR build/26187
1704 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1705 std::uncaught_exceptions instead of deprecated
1706 std::uncaught_exception.
1707
1708 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1709
1710 * macroexp.h (macro_stringify): Return
1711 gdb::unique_xmalloc_ptr<char>.
1712 * macroexp.c (macro_stringify): Likewise.
1713 * macrotab.c (fixup_definition): Update.
1714
1715 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1716
1717 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1718 (lex_one_token): Update.
1719 * macroexp.c (struct macro_buffer) <release>: Return
1720 gdb::unique_xmalloc_ptr<char>.
1721 (macro_stringify): Update.
1722 (macro_expand): Update.
1723 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1724 * macroexp.h (macro_expand_next): Likewise.
1725
1726 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
1727
1728 * macroexp.h (macro_lookup_ftype): Remove.
1729 (macro_expand, macro_expand_once, macro_expand_next): Remove
1730 lookup function parameters, add scope parameter.
1731 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1732 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1733 * macroscope.h (standard_macro_lookup): Change parameter type
1734 to macro_scope.
1735 * macroscope.c (standard_macro_lookup): Likewise.
1736 * c-exp.y (lex_one_token): Update.
1737 * macrocmd.c (macro_expand_command): Likewise.
1738 (macro_expand_once_command): Likewise.
1739
1740 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1741
1742 * inf-loop.c (inferior_event_handler): Remove client_data param.
1743 * inf-loop.h (inferior_event_handler): Likewise.
1744 * infcmd.c (step_1): Adjust.
1745 * infrun.c (proceed): Adjust.
1746 (fetch_inferior_event): Remove client_data param.
1747 (infrun_async_inferior_event_handler): Adjust.
1748 * infrun.h (fetch_inferior_event): Remove `void *` param.
1749 * linux-nat.c (handle_target_event): Adjust.
1750 * record-btrace.c (record_btrace_handle_async_inferior_event):
1751 Adjust.
1752 * record-full.c (record_full_async_inferior_event_handler):
1753 Adjust.
1754 * remote.c (remote_async_inferior_event_handler): Adjust.
1755
1756 2020-07-01 Tom Tromey <tom@tromey.com>
1757
1758 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1759 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1760
1761 2020-07-01 Tom Tromey <tom@tromey.com>
1762
1763 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1764 tui_gen_win_info.
1765 (tui_win_info::make_window): Merge with
1766 tui_gen_win_info::make_window.
1767 (tui_win_info::make_visible): Move from tui_gen_win_info.
1768 * tui/tui-win.c (tui_win_info::max_width): Move from
1769 tui_gen_win_info.
1770 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1771 type.
1772 <window_factory>: Likewise.
1773 * tui/tui-layout.c (tui_win_info::resize): Move from
1774 tui_gen_win_info.
1775 (make_standard_window): Change return type.
1776 (get_locator_window, tui_get_window_by_name): Likewise.
1777 (tui_layout_window::apply): Remove a cast.
1778 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1779 (struct tui_win_info): Merge with tui_gen_win_info.
1780 (struct tui_gen_win_info): Remove.
1781
1782 2020-07-01 Tom Tromey <tom@tromey.com>
1783
1784 * tui/tui-stack.h (struct tui_locator_window): Derive from
1785 tui_win_info.
1786 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1787 <can_box>: New method.
1788
1789 2020-07-01 Tom Tromey <tom@tromey.com>
1790
1791 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1792
1793 2020-07-01 Tom Tromey <tom@tromey.com>
1794
1795 * tui/tui-regs.c (tui_data_window::display_registers_from)
1796 (tui_data_window::display_registers_from)
1797 (tui_data_window::first_data_item_displayed)
1798 (tui_data_window::delete_data_content_windows): Update.
1799 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1800 Remove.
1801 (tui_data_window::check_register_values): Update.
1802 (tui_data_item_window::rerender): Add parameters. Update.
1803 (tui_data_item_window::refresh_window): Remove.
1804 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1805 virtual.
1806 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1807 tui_gen_win_info.
1808 <refresh_window, max_height, min_height>: Remove.
1809 <rerender>: Add parameters.
1810 <x, y, visible>: New members.
1811 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1812 <m_item_width>: New member.
1813
1814 2020-07-01 Tom Tromey <tom@tromey.com>
1815
1816 * tui/tui-regs.c (tui_data_window::show_register_group)
1817 (tui_data_window::check_register_values): Update.
1818 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1819 from item_no.
1820
1821 2020-07-01 Tom Tromey <tom@tromey.com>
1822
1823 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1824 useless "if".
1825
1826 2020-07-01 Tom Tromey <tom@tromey.com>
1827
1828 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1829 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1830
1831 2020-07-01 Tom Tromey <tom@tromey.com>
1832
1833 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1834 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1835 (struct tui_line_or_address): Move from tui-data.h.
1836 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1837 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1838 (tui_cmd_window, tui_source_window_base, tui_source_window)
1839 (tui_disasm_window): Don't declare.
1840 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1841 to tui-winsource.h.
1842 (SINGLE_KEY): Move to tui-stack.c.
1843
1844 2020-07-01 Tom Tromey <tom@tromey.com>
1845
1846 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1847 std::string.
1848 * tui/tui-regs.c (class tab_expansion_file): New.
1849 (tab_expansion_file::write): New method.
1850 (tui_register_format): Change return type. Use
1851 tab_expansion_file.
1852 (tui_get_register, tui_data_window::display_registers_from)
1853 (tui_data_item_window::rerender): Update.
1854 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1855 * tui/tui-io.c (tui_expand_tabs): Remove.
1856
1857 2020-07-01 Tom Tromey <tom@tromey.com>
1858
1859 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1860
1861 2020-07-01 Fangrui Song <maskray@google.com>
1862
1863 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1864
1865 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1866
1867 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1868 forms for DW_AT_associated and DW_AT_allocated attributes,
1869 which is already checked in function attr_to_dynamic_prop.
1870
1871 2020-06-30 Tom Tromey <tromey@adacore.com>
1872
1873 * dwarf2/read.c (quirk_rust_enum): Correctly call
1874 alloc_rust_variant for default-less enum.
1875
1876 2020-06-30 Tom Tromey <tromey@adacore.com>
1877
1878 PR build/26183:
1879 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1880 gdb::to_string.
1881
1882 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
1883
1884 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1885 * gdbarch.h: Re-generate.
1886
1887 2020-06-28 Tom Tromey <tom@tromey.com>
1888
1889 * command.h (cmd_types): Remove.
1890 (cmd_type): Don't declare.
1891 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1892 typedef.
1893 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1894 * cli/cli-decode.c (cmd_type): Remove.
1895
1896 2020-06-27 Pedro Alves <palves@redhat.com>
1897
1898 * fork-child.c (prefork_hook): Adjust.
1899 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1900 Delete.
1901 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1902 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1903 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1904 Remove declarations.
1905 (struct inferior) <set_tty, tty>: New methods.
1906 (struct inferior) <terminal>: Rename to ...
1907 (struct inferior) <m_terminal>: ... this and make private.
1908 * main.c (captured_main_1): Adjust.
1909 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1910 (mi_cmd_inferior_tty_show): Adjust.
1911 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1912 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1913
1914 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
1915
1916 * configure.ac: Add --enable-libctf: handle --disable-static
1917 properly.
1918 * acinclude.m4: sinclude ../config/enable.m4.
1919 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1920 (LIBCTF): Substitute in.
1921 (CTF_DEPS): New, likewise.
1922 (CLIBS): libctf needs symbols from libbfd: move earlier.
1923 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1924 flags.
1925 * ctfread.c: Surround in ENABLE_LIBCTF.
1926 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1927 * configure: Regenerate.
1928 * config.in: Likewise.
1929
1930 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1931
1932 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1933
1934 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1935
1936 * inferior.h (struct inferior) <terminal>: Change type to
1937 gdb::unique_xmalloc_ptr<char>.
1938 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1939 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1940 field, adjust to unique pointer.
1941 (get_inferior_io_terminal): Adjust to unique pointer.
1942
1943 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1944
1945 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1946 registers, not just the known core set of registers.
1947
1948 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1949
1950 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1951 fflags, frm, and fcsr registers.
1952 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1953 restore groups.
1954 (riscv_tdesc_unknown_reg): New function.
1955 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1956 tdesc_use_registers.
1957 * riscv-tdep.h (struct gdbarch_tdep): Add
1958 unknown_csrs_first_regnum, unknown_csrs_count,
1959 duplicate_fflags_regnum, duplicate_frm_regnum, and
1960 duplicate_fcsr_regnum fields.
1961
1962 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1963
1964 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1965 callback, use the callback (when not null) to help number unknown
1966 registers.
1967 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1968 (tdesc_use_registers): Add extra parameter to declaration.
1969
1970 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1971
1972 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1973 in the file.
1974 (class riscv_pending_register_alias): Likewise.
1975 (riscv_register_feature::register_info): Change 'required_p' field
1976 to 'required', and change its type. Add 'check' member function.
1977 (riscv_register_feature::register_info::check): Define new member
1978 function.
1979 (riscv_xreg_feature): Change initialisation of 'required' field.
1980 (riscv_freg_feature): Likewise.
1981 (riscv_virtual_feature): Likewise.
1982 (riscv_csr_feature): Likewise.
1983 (riscv_check_tdesc_feature): Take extra parameter, the csr
1984 tdesc_feature, rewrite the function to use the new
1985 riscv_register_feature::register_info::check function.
1986 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1987
1988 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1989
1990 * features/Makefile: Remove all references to the deleted files
1991 below.
1992 * features/riscv/32bit-csr.c: Deleted.
1993 * features/riscv/32bit-csr.xml: Deleted.
1994 * features/riscv/64bit-csr.c: Deleted.
1995 * features/riscv/64bit-csr.xml: Deleted.
1996 * features/riscv/rebuild-csr-xml.sh: Deleted.
1997
1998 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1999
2000 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
2001 whitespace error for declaration of names member variable.
2002 (struct riscv_register_feature): Add new prefer_first_name member
2003 variable, and fix whitespace error in declaration of registers.
2004 (riscv_xreg_feature): Initialize prefer_first_name field.
2005 (riscv_freg_feature): Likewise.
2006 (riscv_virtual_feature): Likewise.
2007 (riscv_csr_feature): Likewise.
2008 (riscv_register_name): Expand on comments. Remove register name
2009 modifications for CSR and virtual registers.
2010
2011 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2012
2013 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
2014 errors.
2015
2016 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2017
2018 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
2019 riscv-opc.h.
2020 (class riscv_pending_register_alias): New class.
2021 (riscv_check_tdesc_feature): Take vector of pending aliases and
2022 populate it as appropriate.
2023 (riscv_setup_register_aliases): Delete.
2024 (riscv_gdbarch_init): Create vector of pending aliases and pass it
2025 to riscv_check_tdesc_feature in all cases. Use the vector to
2026 create the register aliases.
2027
2028 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2029
2030 * sol2-tdep.c (sol2_static_transform_name): Remove.
2031 (sol2_init_abi): Don't register it.
2032 * gdbarch.sh (static_transform_name): Remove.
2033 * gdbarch.c, gdbarch.h: Regenerate.
2034
2035 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
2036 gdbarch_static_transform_name.
2037 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
2038 * stabsread.c (define_symbol) <'X'>: Remove.
2039 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
2040 handling.
2041 <'V'>: Likewise.
2042 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
2043 <'S'>: Remove call to gdbarch_static_transform_name.
2044
2045 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2046
2047 * procfs.c (procfs_pre_trace): New function.
2048 (procfs_target::create_inferior): Pass it to fork_inferior.
2049
2050 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2051
2052 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
2053 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
2054 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
2055 sol2-tdep.o, sparc-sol2-tdep.o.
2056 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
2057 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
2058 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
2059 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
2060
2061 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2062
2063 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
2064 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
2065 Call sol2_init_abi.
2066 Remove calls to set_gdbarch_skip_solib_resolver,
2067 set_gdbarch_core_pid_to_str.
2068 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
2069 (i386_sol2_static_transform_name): Remove.
2070 (i386_sol2_init_abi): Call sol2_init_abi.
2071 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2072 set_gdbarch_static_transform_name,
2073 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2074 Use sol2_sigtramp_p.
2075 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
2076 (sol2_sigtramp_p): New function.
2077 (sol2_static_transform_name): New function.
2078 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
2079 (sol2_init_abi): New function.
2080 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
2081 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
2082 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
2083 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
2084 (sparc_sol2_static_transform_name): Remove.
2085 (sparc32_sol2_init_abi): Call sol2_init_abi.
2086 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2087 set_gdbarch_static_transform_name,
2088 set_gdbarch_skip_solib_resolver,
2089 set_gdbarch_core_pid_to_str.
2090 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
2091 (sparc_sol2_static_transform_name): Remove
2092 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
2093 call sol2_sigtramp_p.
2094 (sparc64_sol2_init_abi): Call sol2_init_abi.
2095 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2096 set_gdbarch_static_transform_name,
2097 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2098
2099 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2100
2101 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
2102 * exec.c (validate_exec_file): If from_tty, set both
2103 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
2104 * symfile.c (symbol_file_add_with_addrs): if always_confirm
2105 and from_tty, unconditionally ask a confirmation.
2106
2107 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2108
2109 * target-descriptions.c (tdesc_architecture_name): Protect against
2110 NULL pointer dereference.
2111 (maint_print_xml_tdesc_cmd): New function.
2112 (_initialize_target_descriptions): Register new 'maint print
2113 xml-tdesc' command and give it the filename completer.
2114 * NEWS: Mention new 'maint print xml-tdesc' command.
2115
2116 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2117
2118 * target-descriptions.c (class tdesc_compatible_info): New class.
2119 (struct target_desc): Change type of compatible vector.
2120 (tdesc_compatible_p): Update for change in type of
2121 target_desc::compatible.
2122 (tdesc_compatible_info_list): New function.
2123 (tdesc_compatible_info_arch_name): New function.
2124 (tdesc_add_compatible): Update for change in type of
2125 target_desc::compatible.
2126 (print_c_tdesc::visit_pre): Likewise.
2127
2128 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2129
2130 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
2131 whitespace to underscore.
2132 (maint_print_c_tdesc_cmd): Use fake filename for target
2133 descriptions that came from the target.
2134 (_initialize_target_descriptions): Add filename command completion
2135 for 'maint print c-tdesc'.
2136
2137 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2138
2139 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
2140 lines.
2141
2142 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2143
2144 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
2145 lines.
2146 (dwarf2_find_location_expression): Likewise.
2147 (call_site_parameter_matches): Likewise.
2148 (dwarf2_compile_expr_to_ax): Likewise.
2149 (disassemble_dwarf_expression): Likewise.
2150 (loclist_describe_location): Likewise.
2151
2152 2020-06-23 Pedro Alves <palves@redhat.com>
2153
2154 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
2155 progspace-and-thread.h. Include scoped-mock-context.h instead.
2156 (register_to_value_test): Use scoped_mock_context.
2157 * regcache.c: Include "scoped-mock-context.h".
2158 (cooked_read_test): Don't error out if a target is already pushed.
2159 Use scoped_mock_context. Adjust.
2160 * scoped-mock-context.h: New file.
2161
2162 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2163
2164 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
2165 initializer.
2166 (ada_language::is_string_type_p): New member function.
2167 * c-lang.c (c_language_data): Delete la_is_string_type_p
2168 initializer.
2169 (cplus_language_data): Likewise.
2170 (asm_language_data): Likewise.
2171 (minimal_language_data): Likewise.
2172 * d-lang.c (d_language_data): Likewise.
2173 * f-lang.c (f_is_string_type_p): Delete function, implementation
2174 moved to f_language::is_string_type_p.
2175 (f_language_data): Delete la_is_string_type_p initializer.
2176 (f_language::is_string_type_p): New member function,
2177 implementation from f_is_string_type_p.
2178 * go-lang.c (go_is_string_type_p): Delete function, implementation
2179 moved to go_language::is_string_type_p.
2180 (go_language_data): Delete la_is_string_type_p initializer.
2181 (go_language::is_string_type_p): New member function,
2182 implementation from go_is_string_type_p.
2183 * language.c (language_defn::is_string_type_p): Define new member
2184 function.
2185 (default_is_string_type_p): Make static, add comment copied from
2186 header file.
2187 (unknown_language_data): Delete la_is_string_type_p initializer.
2188 (unknown_language::is_string_type_p): New member function.
2189 (auto_language_data): Delete la_is_string_type_p initializer.
2190 (auto_language::is_string_type_p): New member function.
2191 * language.h (language_data): Delete la_is_string_type_p field.
2192 (language_defn::is_string_type_p): Declare new function.
2193 (default_is_string_type_p): Delete desclaration, move comment to
2194 definition.
2195 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
2196 moved to m2_language::is_string_type_p.
2197 (m2_language_data): Delete la_is_string_type_p initializer.
2198 (m2_language::is_string_type_p): New member function,
2199 implementation from m2_is_string_type_p.
2200 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
2201 initializer.
2202 * opencl-lang.c (opencl_language_data): Likewise.
2203 * p-lang.c (pascal_is_string_type_p): Delete function,
2204 implementation moved to pascal_language::is_string_type_p.
2205 (pascal_language_data): Delete la_is_string_type_p initializer.
2206 (pascal_language::is_string_type_p): New member function,
2207 implementation from pascal_is_string_type_p.
2208 * rust-lang.c (rust_is_string_type_p): Delete function,
2209 implementation moved to rust_language::is_string_type_p.
2210 (rust_language_data): Delete la_is_string_type_p initializer.
2211 (rust_language::is_string_type_p): New member function,
2212 implementation from rust_is_string_type_p.
2213 * valprint.c (val_print_scalar_or_string_type_p): Update call to
2214 is_string_type_p.
2215
2216 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2217
2218 * ada-lang.c (ada_language_data): Delete la_print_typedef
2219 initializer.
2220 (ada_language::print_typedef): New member function.
2221 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
2222 (cplus_language_data): Likewise.
2223 (asm_language_data): Likewise.
2224 (minimal_language_data): Likewise.
2225 * d-lang.c (d_language_data): Likewise.
2226 * f-lang.c (f_language_data): Likewise.
2227 (f_language::print_typedef): New member function.
2228 * go-lang.c (go_language_data): Delete la_print_typedef
2229 initializer.
2230 * language.c (language_defn::print_typedef): Define member
2231 function.
2232 (unknown_language_data): Delete la_print_typedef initializer.
2233 (unknown_language::print_typedef): New member function.
2234 (auto_language_data): Delete la_print_typedef initializer.
2235 (auto_language::print_typedef): New member function.
2236 * language.h (language_data): Delete la_print_typedef field.
2237 (language_defn::print_typedef): Declare new member function.
2238 (LA_PRINT_TYPEDEF): Update call to print_typedef.
2239 (default_print_typedef): Delete declaration.
2240 * m2-lang.c (m2_language_data): Delete la_print_typedef
2241 initializer.
2242 (m2_language::print_typedef): New member function.
2243 * objc-lang.c (objc_language_data): Delete la_print_typedef
2244 initializer.
2245 * opencl-lang.c (opencl_language_data): Likewise.
2246 * p-lang.c (pascal_language_data): Likewise.
2247 (pascal_language::print_typedef): New member function.
2248 * rust-lang.c (rust_print_typedef): Delete function,
2249 implementation moved to rust_language::print_typedef.
2250 (rust_language): Delete la_print_typedef initializer.
2251 (rust_language::print_typedef): New member function,
2252 implementation from rust_print_typedef.
2253 * typeprint.c (default_print_typedef): Delete.
2254
2255 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2256
2257 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2258 (ada_language::printstr): New member function.
2259 * c-lang.c (c_language_data): Delete la_printstr initializer.
2260 (cplus_language_data): Likewise.
2261 (asm_language_data): Likewise.
2262 (minimal_language_data): Likewise.
2263 * d-lang.c (d_language_data): Likewise.
2264 * f-lang.c (f_printstr): Rename to f_language::printstr.
2265 (f_language_data): Delete la_printstr initializer.
2266 (f_language::printstr): New member function, implementation from
2267 f_printstr.
2268 * go-lang.c (go_language_data): Delete la_printstr initializer.
2269 * language.c (language_defn::printstr): Define new member
2270 function.
2271 (unk_lang_printstr): Delete.
2272 (unknown_language_data): Delete la_printstr initializer.
2273 (unknown_language::printstr): New member function.
2274 (auto_language_data): Delete la_printstr initializer.
2275 (auto_language::printstr): New member function.
2276 * language.h (language_data): Delete la_printstr field.
2277 (language_defn::printstr): Declare new member function.
2278 (LA_PRINT_STRING): Update call to printstr.
2279 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2280 (m2_language_data): Delete la_printstr initializer.
2281 (m2_language::printstr): New member function, implementation from
2282 m2_printstr.
2283 * objc-lang.c (objc_language_data): Delete la_printstr
2284 initializer.
2285 * opencl-lang.c (opencl_language_data): Likewise.
2286 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2287 (pascal_language_data): Delete la_printstr initializer.
2288 (pascal_language::printstr): New member function, implementation
2289 from pascal_printstr.
2290 * p-lang.h (pascal_printstr): Delete declaration.
2291 * rust-lang.c (rust_printstr): Update header comment.
2292 (rust_language_data): Delete la_printstr initializer.
2293 (rust_language::printstr): New member function.
2294
2295 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2296
2297 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2298 (ada_language::printchar): New member function.
2299 * c-lang.c (c_language_data): Delete la_printchar initializer.
2300 (cplus_language_data): Likewise.
2301 (asm_language_data): Likewise.
2302 (minimal_language_data): Likewise.
2303 * d-lang.c (d_language_data): Likewise.
2304 * f-lang.c (f_printchar): Rename to f_language::printchar.
2305 (f_language_data): Delete la_printchar initializer.
2306 (f_language::printchar): New member function, implementation from
2307 f_printchar.
2308 * go-lang.c (go_language_data): Delete la_printchar initializer.
2309 * language.c (unk_lang_printchar): Delete.
2310 (language_defn::printchar): Define new member function.
2311 (unknown_language_data): Delete la_printchar initializer.
2312 (unknown_language::printchar): New member function.
2313 (auto_language_data): Delete la_printchar initializer.
2314 (auto_language::printchar): New member function.
2315 * language.h (language_data): Delete la_printchar field.
2316 (language_defn::printchar): Declare new member function.
2317 (LA_PRINT_CHAR): Update call to printchar.
2318 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2319 (m2_language::printchar): New member function.
2320 * objc-lang.c (objc_language_data): Delete la_printchar
2321 initializer.
2322 * opencl-lang.c (opencl_language_data): Likewise.
2323 * p-lang.c (pascal_language_data): Delete la_printchar
2324 initializer.
2325 (pascal_language::printchar): New member function.
2326 * rust-lang.c (rust_printchar): Rename to
2327 rust_language::printchar.
2328 (rust_language_data): Delete la_printchar initializer.
2329 (rust_language::printchar): New member function, implementation
2330 from rust_printchar.
2331
2332 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2333
2334 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2335 (ada_language_data): Delete la_emitchar initializer.
2336 (ada_language::emitchar): New member function, implementation from
2337 emit_char.
2338 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2339 (cplus_language_data): Likewise.
2340 (asm_language_data): Likewise.
2341 (minimal_language_data): Likewise.
2342 * d-lang.c (d_language_data): Likewise.
2343 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2344 (f_language_data): Delete la_emitchar initializer.
2345 (f_language::emitchar): New member function, implementation from
2346 f_emit_char.
2347 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2348 * language.c (unk_lang_emit_char): Delete.
2349 (language_defn::emitchar): New member function definition.
2350 (unknown_language_data): Delete la_emitchar initializer.
2351 (unknown_language::emitchar): New member function.
2352 (auto_language_data): Delete la_emitchar initializer.
2353 (auto_language::emitchar): New member function.
2354 * language.h (language_data): Delete la_emitchar field.
2355 (language_defn::emitchar): New member field declaration.
2356 (LA_EMIT_CHAR): Update call to emitchar.
2357 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2358 (m2_language_data): Delete la_emitchar initializer.
2359 (m2_language::emitchar): New member function, implementation from
2360 m2_emit_char.
2361 * objc-lang.c (objc_language_data): Delete la_emitchar
2362 initializer.
2363 * opencl-lang.c (opencl_language_data): Likewise.
2364 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2365 (pascal_language_data): Delete la_emitchar initializer.
2366 (pascal_language::emitchar): New member function, implementation
2367 from pascal_emit_char.
2368 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2369 (rust_language_data): Delete la_emitchar initializer.
2370 (rust_language::emitchar): New member function, implementation
2371 from rust_emitchar.
2372
2373 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2374
2375 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2376 (ada_language_data): Delete la_post_parser initializer.
2377 (ada_language::post_parser): New member function.
2378 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2379 (cplus_language_data): Likewise.
2380 (asm_language_data): Likewise.
2381 (minimal_language_data): Likewise.
2382 * d-lang.c (d_language_data): Likewise.
2383 * f-lang.c (f_language_data): Likewise.
2384 * go-lang.c (go_language_data): Likewise.
2385 * language.c (unknown_language_data): Likewise.
2386 (auto_language_data): Likewise.
2387 * language.h (language_data): Delete la_post_parser field.
2388 (language_defn::post_parser): New member function.
2389 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2390 * objc-lang.c (objc_language_data): Likewise.
2391 * opencl-lang.c (opencl_language_data): Likewise.
2392 * p-lang.c (pascal_language_data): Likewise.
2393 * parse.c (parse_exp_in_context): Update call to post_parser.
2394 (null_post_parser): Delete definition.
2395 * parser-defs.h (null_post_parser): Delete declaration.
2396 * rust-lang.c (rust_language_data): Delete la_post_parser
2397 initializer.
2398
2399 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2400
2401 * ada-lang.c (parse): Rename to ada_language::parser.
2402 (ada_language_data): Delete la_parser initializer.
2403 (ada_language::parser): New member function, implementation from
2404 parse.
2405 * c-lang.c (c_language_data): Delete la_parser initializer.
2406 (cplus_language_data): Likewise.
2407 (asm_language_data): Likewise.
2408 (minimal_language_data): Likewise.
2409 * d-lang.c (d_language_data): Likewise.
2410 (d_language::parser): New member function.
2411 * f-lang.c (f_language_data): Delete la_parser initializer.
2412 (f_language::parser): New member function.
2413 * go-lang.c (go_language_data): Delete la_parser initializer.
2414 (go_language::parser): New member function.
2415 * language.c (unk_lang_parser): Delete.
2416 (language_defn::parser): Define new member function.
2417 (unknown_language_data): Delete la_parser initializer.
2418 (unknown_language::parser): New member function.
2419 (auto_language_data): Delete la_parser initializer.
2420 (auto_language::parser): New member function.
2421 * language.h (language_data): Delete la_parser field.
2422 (language_defn::parser): Declare new member function.
2423 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2424 (m2_language::parser): New member function.
2425 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2426 * opencl-lang.c (opencl_language_data): Likewise.
2427 * p-lang.c (pascal_language_data): Likewise.
2428 (pascal_language::parser): New member function.
2429 * parse.c (parse_exp_in_context): Update call to parser.
2430 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2431 (rust_language::parser): New member function.
2432
2433 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2434
2435 * top.c (print_gdb_configuration): Print --with-python-libdir
2436 configuration value.
2437
2438 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2439
2440 * NEWS: Mention change to the alias command.
2441
2442 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2443
2444 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2445 (alias_command_completer)
2446 (make_alias_options_def_group): New functions.
2447 (alias_opts, alias_option_defs): New struct and array.
2448 (alias_usage_error): Update usage.
2449 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2450 Use option framework.
2451 (_initialize_cli_cmds): Update alias command help.
2452 Update aliases command help.
2453 (show_user):
2454 Add NULL for new default_args lookup_cmd argument.
2455 (valid_command_p): Rename to validate_aliased_command.
2456 Add NULL for new default_args lookup_cmd argument. Verify that the
2457 aliased_command has no default args.
2458 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2459 (lookup_cmd_1, lookup_cmd): New argument default_args.
2460 (add_alias_cmd):
2461 Add NULL for new default_args lookup_cmd argument.
2462 (print_help_for_command): Show default args under the layout
2463 alias some_alias = some_aliased_cmd some_alias_default_arg.
2464 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2465 xfree default_args in destructor.
2466 * cli/cli-script.c (process_next_line, do_define_command):
2467 Add NULL for new default_args lookup_cmd argument.
2468 * command.h: Declare new default_args argument in lookup_cmd
2469 and lookup_cmd_1.
2470 * completer.c (complete_line_internal_1):
2471 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2472 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2473 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2474 Likewise.
2475 * infcmd.c (_initialize_infcmd): Likewise.
2476 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2477 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2478 * python/py-param.c (add_setshow_generic): Likewise.
2479 * remote.c (_initialize_remote): Likewise.
2480 * top.c (execute_command): Prepend default_args if command has some.
2481 (set_verbose):
2482 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2483 * tracepoint.c (validate_actionline, encode_actions_1):
2484 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2485
2486 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2487
2488 * jit.c (jit_read_descriptor): Use bool as the return type.
2489 (jit_breakpoint_re_set_internal): Use bool as the return type.
2490 Invert the return value logic; return true if the jit breakpoint
2491 has been successfully initialized.
2492 (jit_inferior_init): Update the call to
2493 jit_breakpoint_re_set_internal.
2494
2495 2020-06-22 Pedro Alves <palves@redhat.com>
2496
2497 PR gdb/25939
2498 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2499 Use the current inferior instead. Don't return
2500 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2501 wait again.
2502 * sol-thread.c (sol_thread_target::wait): Don't reference
2503 inferior_ptid.
2504 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2505 (sol_update_thread_list_callback): Use the current inferior's pid
2506 instead of inferior_ptid.
2507
2508 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2509
2510 * procfs.c: Cleanup many comments.
2511
2512 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2513 (AFTER_WATCHFLAG): Replace by value.
2514
2515 (MAIN_PROC_NAME_FORMAT): Inline ...
2516 (create_procinfo): ... here.
2517
2518 (procfs_debug_inferior): Remove SYS_exec handling.
2519 (syscall_is_exec): Likewise.
2520 (procfs_set_exec_trap): Likewise.
2521
2522 (syscall_is_lwp_exit): Inline in callers.
2523 (syscall_is_exit): Likewise.
2524 (syscall_is_exec): Likewise.
2525 (syscall_is_lwp_create): Likewise.
2526
2527 (invalidate_cache): Remove #if 0 code.
2528
2529 (make_signal_thread_runnable): Remove.
2530 (procfs_target::resume): Remove #if 0 code.
2531
2532 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2533
2534 PR gdb/25939
2535 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2536 call ...
2537 (procfs_target::create_inferior): ... here.
2538
2539 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2540
2541 * exec.c (validate_exec_file): Ensure the build-id is up to
2542 date by calling reopen_exec_file (that checks file timestamp
2543 to decide to re-read the file).
2544
2545 2020-06-18 Pedro Alves <palves@redhat.com>
2546
2547 PR gdb/25412
2548 * gdbthread.h (delete_thread, delete_thread_silent)
2549 (find_thread_ptid): Update comments.
2550 * thread.c (current_thread_): New global.
2551 (is_current_thread): Move higher, and reimplement.
2552 (inferior_thread): Reimplement.
2553 (set_thread_exited): Use bool. Add assertions.
2554 (add_thread_silent): Simplify thread-reuse handling by always
2555 calling delete_thread.
2556 (delete_thread): Remove intro comment.
2557 (find_thread_ptid): Skip exited threads.
2558 (switch_to_thread_no_regs): Write to current_thread_.
2559 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2560 INFERIOR_PTID. Clear current_thread_.
2561
2562 2020-06-18 Pedro Alves <palves@redhat.com>
2563
2564 * aix-thread.c (pd_update): Use switch_to_thread.
2565
2566 2020-06-18 Pedro Alves <palves@redhat.com>
2567
2568 * ravenscar-thread.c (ravenscar_thread_target): Update.
2569 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2570 (ravenscar_thread_target::add_active_thread): ... this. Don't
2571 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2572 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2573
2574 2020-06-18 Pedro Alves <palves@redhat.com>
2575
2576 * nat/windows-nat.c (current_windows_thread): Remove.
2577 * nat/windows-nat.h (current_windows_thread): Remove.
2578 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2579 Adjust.
2580 (display_selectors): Adjust to fetch the current
2581 windows_thread_info based on inferior_ptid.
2582 (fake_create_process): No longer write to current_windows_thread.
2583 (windows_nat_target::get_windows_debug_event):
2584 Don't set inferior_ptid or current_windows_thread.
2585 (windows_nat_target::wait): Adjust to not rely on
2586 current_windows_thread.
2587 (do_initial_windows_stuff): Now a method of windows_nat_target.
2588 Switch to the last_ptid thread.
2589 (windows_nat_target::attach): Adjust.
2590 (windows_nat_target::detach): Use switch_to_no_thread instead of
2591 writing to inferior_ptid directly.
2592 (windows_nat_target::create_inferior): Adjust.
2593
2594 2020-06-18 Pedro Alves <palves@redhat.com>
2595
2596 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2597
2598 2020-06-18 Pedro Alves <palves@redhat.com>
2599
2600 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2601 after creating it, instead of writing to inferior_ptid. Don't
2602 write to inferior_ptid.
2603
2604 2020-06-18 Pedro Alves <palves@redhat.com>
2605
2606 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2607
2608 2020-06-18 Pedro Alves <palves@redhat.com>
2609
2610 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2611 it, instead of writing to inferior_ptid.
2612
2613 2020-06-18 Pedro Alves <palves@redhat.com>
2614
2615 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2616 to inferior_ptid.
2617
2618 2020-06-18 Pedro Alves <palves@redhat.com>
2619
2620 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2621 instead of writing to inferior_ptid directly.
2622
2623 2020-06-18 Pedro Alves <palves@redhat.com>
2624
2625 * corelow.c (core_target::close): Use switch_to_no_thread instead
2626 of writing to inferior_ptid directly.
2627 (add_to_thread_list, core_target_open): Use switch_to_thread
2628 instead of writing to inferior_ptid directly.
2629
2630 2020-06-18 Pedro Alves <palves@redhat.com>
2631
2632 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2633 inferior_ptid.
2634 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2635 inferior_ptid.
2636 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2637 inferior_ptid directly.
2638 (darwin_nat_target::init_thread_list): Switch to thread, instead
2639 of writing to inferior_ptid.
2640 (darwin_nat_target::attach): Don't write to inferior_ptid.
2641 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2642
2643 2020-06-18 Pedro Alves <palves@redhat.com>
2644
2645 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2646 thread.
2647 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2648 Instead use switch_to_thread.
2649 (gnu_nat_target::detach): Use switch_to_no_thread
2650 instead of writing to inferior_ptid directly. Used passed-in
2651 inferior instead of looking up the inferior by pid.
2652
2653 2020-06-18 Pedro Alves <palves@redhat.com>
2654
2655 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2656 inferior_ptid.
2657
2658 2020-06-18 Pedro Alves <palves@redhat.com>
2659
2660 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2661 inferior_ptid.
2662 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2663 thread.
2664 (nto_procfs_target::detach): Avoid referencing
2665 inferior_ptid. Use switch_to_no_thread instead of writing to
2666 inferior_ptid directly.
2667 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2668 instead of writing to inferior_ptid directly.
2669 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2670 to thread.
2671
2672 2020-06-18 Pedro Alves <palves@redhat.com>
2673
2674 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2675 after creating it, instead of writing to inferior_ptid.
2676 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2677 to inferior_ptid directly.
2678 (gdbsim_target::wait): Don't write to inferior_ptid.
2679
2680 2020-06-18 Pedro Alves <palves@redhat.com>
2681
2682 * remote.c (remote_target::remote_notice_new_inferior): Use
2683 switch_to_thread instead of writing to inferior_ptid directly.
2684 (remote_target::add_current_inferior_and_thread): Use
2685 switch_to_no_thread instead of writing to inferior_ptid directly.
2686 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2687 and switch_to_thread instead of using set_current_inferior or
2688 writing to inferior_ptid directly.
2689
2690 2020-06-18 Pedro Alves <palves@redhat.com>
2691
2692 * tracectf.c (ctf_target_open): Switch to added thread instead of
2693 writing to inferior_ptid directly.
2694 (ctf_target::close): Use switch_to_no_thread instead of writing to
2695 inferior_ptid directly.
2696
2697 2020-06-18 Pedro Alves <palves@redhat.com>
2698
2699 * tracefile-tfile.c (tfile_target_open): Don't write to
2700 inferior_ptid directly, instead switch to added thread.
2701 (tfile_target::close): Use switch_to_no_thread instead of writing
2702 to inferior_ptid directly.
2703
2704 2020-06-18 Pedro Alves <palves@redhat.com>
2705
2706 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2707 (procfs_target::detach): Use switch_to_no_thread
2708 instead of writing to inferior_ptid directly.
2709 (do_attach): Change return type to void. Switch to the added
2710 thread.
2711 (procfs_target::create_inferior): Switch to the added thread.
2712 (procfs_do_thread_registers): Don't write to inferior_ptid.
2713
2714 2020-06-18 Pedro Alves <palves@redhat.com>
2715
2716 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2717 of writing to inferior_ptid.
2718 (scoped_restore_exited_inferior): Delete.
2719 (handle_vfork_child_exec_or_exit): Simplify using
2720 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2721 instead of writing to inferior_ptid.
2722 (THREAD_STOPPED_BY): Delete.
2723 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2724 (thread_stopped_by_hw_breakpoint): Delete.
2725 (save_waitstatus): Use
2726 scoped_restore_current_thread+switch_to_thread, and call
2727 target_stopped_by_watchpoint instead of
2728 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2729 instead of thread_stopped_by_sw_breakpoint, and
2730 target_stopped_by_hw_breakpoint instead of
2731 thread_stopped_by_hw_breakpoint.
2732 (handle_inferior_event)
2733 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2734 inferior_ptid directly, nor
2735 set_current_inferior/set_current_program_space. Use
2736 switch_to_thread / switch_to_inferior_no_thread instead.
2737
2738 2020-06-18 Pedro Alves <palves@redhat.com>
2739
2740 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2741 instead of writing to inferior_ptid.
2742
2743 2020-06-18 Pedro Alves <palves@redhat.com>
2744
2745 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2746 added thread.
2747 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2748 to the added thread.
2749 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2750 instead of writing to inferior_ptid.
2751
2752 2020-06-18 Pedro Alves <palves@redhat.com>
2753
2754 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2755 (register_to_value_test): Mock a program_space too. Heap-allocate
2756 the address space. Don't write to inferior_ptid. Use
2757 switch_to_thread instead.
2758
2759 2020-06-18 Pedro Alves <palves@redhat.com>
2760
2761 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2762 Delete.
2763 (find_signalled_thread()): New, factored out from
2764 linux_make_corefile_notes and adjusted to handle exited threads.
2765 (linux_make_corefile_notes): Adjust to use the new
2766 find_signalled_thread.
2767
2768 2020-06-18 Pedro Alves <palves@redhat.com>
2769
2770 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2771 of saving/restoring inferior_ptid.
2772
2773 2020-06-17 Tom Tromey <tom@tromey.com>
2774
2775 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2776 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2777 declare.
2778 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2779
2780 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
2781
2782 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2783 of partial symtabs.
2784
2785 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2786
2787 * regformats/reg-arm.dat: Remove.
2788 * regformats/reg-bfin.dat: Remove.
2789 * regformats/reg-cris.dat: Remove.
2790 * regformats/reg-crisv32.dat: Remove.
2791 * regformats/reg-m32r.dat: Remove.
2792 * regformats/reg-tilegx.dat: Remove.
2793 * regformats/reg-tilegx32.dat: Remove.
2794
2795 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2796
2797 * features/Makefile (WHICH): Remove arm files.
2798 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2799 * regformats/arm/arm-with-neon.dat: Remove.
2800 * regformats/arm/arm-with-vfpv2.dat: Remove.
2801 * regformats/arm/arm-with-vfpv3.dat: Remove.
2802
2803 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2804
2805 * features/Makefile (XMLTOC): Remove rx.xml.
2806
2807 2020-06-17 Pedro Alves <palves@redhat.com>
2808
2809 * gdbthread.h (thread_control_state) <trap_expected> Update
2810 comments.
2811
2812 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2813
2814 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2815 ada_language::lookup_symbol_nonlocal.
2816 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2817 (ada_language::lookup_symbol_nonlocal): New member function,
2818 implementation from ada_lookup_symbol_nonlocal.
2819 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2820 initializer.
2821 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2822 initializer.
2823 (cplus_language::lookup_symbol_nonlocal): New member function.
2824 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2825 (minimal_language_data) Likewise.
2826 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2827 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2828 initializer.
2829 (d_language::lookup_symbol_nonlocal): New member function.
2830 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2831 initializer.
2832 (f_language::lookup_symbol_nonlocal): New member function.
2833 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2834 initializer.
2835 * language.c (unknown_language_data): Likewise.
2836 (auto_language_data): Likewise.
2837 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2838 field.
2839 (language_defn::lookup_symbol_nonlocal): New member function.
2840 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2841 initializer.
2842 * objc-lang.c (objc_language_data): Likewise.
2843 * opencl-lang.c (opencl_language_data): Likewise.
2844 * p-lang.c (pascal_language_data): Likewise.
2845 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2846 rust_language::lookup_symbol_nonlocal.
2847 (rust_language_data): Delete la_lookup_symbol_nonlocal
2848 initializer.
2849 (rust_language::lookup_symbol_nonlocal): New member function,
2850 implementation from rust_lookup_symbol_nonlocal.
2851 * symtab.c (lookup_symbol_aux): Update call to
2852 lookup_symbol_nonlocal.
2853 (basic_lookup_symbol_nonlocal): Rename to...
2854 (language_defn::lookup_symbol_nonlocal): ...this, and update
2855 header comment. Remove language_defn parameter, and replace with
2856 uses of `this'.
2857 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2858
2859 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2860
2861 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2862 initializer.
2863 (ada_language::value_print_inner): New member function.
2864 * c-lang.c (c_language_data): Delete la_value_print_inner
2865 initializer.
2866 (cplus_language_data): Likewise.
2867 (asm_language_data): Likewise.
2868 (minimal_language_data): Likewise.
2869 * d-lang.c (d_language_data): Likewise.
2870 (d_language::value_print_inner): New member function.
2871 * f-lang.c (f_language_data): Delete la_value_print_inner
2872 initializer.
2873 (f_language::value_print_inner): New member function.
2874 * f-lang.h (f_value_print_innner): Rename to...
2875 (f_value_print_inner): ...this (note spelling of 'inner').
2876 * f-valprint.c (f_value_print_innner): Rename to...
2877 (f_value_print_inner): ...this (note spelling of 'inner').
2878 * go-lang.c (go_language_data): Delete la_value_print_inner
2879 initializer.
2880 (go_language::value_print_inner): New member function.
2881 * language.c (language_defn::value_print_inner): Define new member
2882 function.
2883 (unk_lang_value_print_inner): Delete.
2884 (unknown_language_data): Delete la_value_print_inner initializer.
2885 (unknown_language::value_print_inner): New member function.
2886 (auto_language_data): Delete la_value_print_inner initializer.
2887 (auto_language::value_print_inner): New member function.
2888 * language.h (language_data): Delete la_value_print_inner field.
2889 (language_defn::value_print_inner): Delcare new member function.
2890 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2891 initializer.
2892 (m2_language::value_print_inner): New member function.
2893 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2894 initializer.
2895 * opencl-lang.c (opencl_language_data): Likewise.
2896 * p-lang.c (pascal_language_data): Likewise.
2897 (pascal_language::value_print_inner): New member function.
2898 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2899 initializer.
2900 (rust_language::value_print_inner): New member function.
2901 * valprint.c (do_val_print): Update call to value_print_inner.
2902
2903 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2904
2905 * ada-lang.c (ada_language_data): Delete la_value_print
2906 initializer.
2907 (ada_language::value_print): New member function.
2908 * c-lang.c (c_language_data): Delete la_value_print initializer.
2909 (cplus_language_data): Likewise.
2910 (asm_language_data): Likewise.
2911 (minimal_language_data): Likewise.
2912 * d-lang.c (d_language_data): Likewise.
2913 * f-lang.c (f_language_data): Likewise.
2914 * go-lang.c (go_language_data): Likewise.
2915 * language.c (unk_lang_value_print): Delete.
2916 (language_defn::value_print): Define new member function.
2917 (unknown_language_data): Delete la_value_print initializer.
2918 (unknown_language::value_print): New member function.
2919 (auto_language_data): Delete la_value_print initializer.
2920 (auto_language::value_print): New member function.
2921 * language.h (language_data): Delete la_value_print field.
2922 (language_defn::value_print): Declare new member function.
2923 (LA_VALUE_PRINT): Update call to value_print.
2924 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2925 * objc-lang.c (objc_language_data): Likewise.
2926 * opencl-lang.c (opencl_language_data): Likewise.
2927 * p-lang.c (pascal_language_data): Likewise.
2928 (pascal_language::value_print): New member function.
2929 * rust-lang.c (rust_language_data): Delete la_value_print
2930 initializer.
2931
2932 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2933
2934 * ada-lang.c (ada_watch_location_expression): Rename to
2935 ada_language::watch_location_expression.
2936 (ada_language_data): Delete la_watch_location_expression
2937 initializer.
2938 (ada_language::watch_location_expression): New member function,
2939 implementation from ada_watch_location_expression.
2940 * breakpoint.c (watch_command_1): Update call to
2941 watch_location_expression.
2942 * c-lang.c (c_watch_location_expression): Rename to
2943 language_defn::watch_location_expression.
2944 (c_language_data): Delete la_watch_location_expression
2945 initializer.
2946 (cplus_language_data): Likewise.
2947 (asm_language_data): Likewise.
2948 (minimal_language_data): Likewise.
2949 * c-lang.h (c_watch_location_expression): Delete declaration.
2950 * d-lang.c (d_language_data): Delete la_watch_location_expression
2951 initializer.
2952 * f-lang.c (f_language_data): Likewise.
2953 * go-lang.c (go_language_data): Likewise.
2954 * language.c (language_defn::watch_location_expression): Member
2955 function implementation from c_watch_location_expression.
2956 (unknown_language_data): Delete la_watch_location_expression
2957 initializer.
2958 (auto_language_data): Likewise.
2959 * language.h (language_data): Delete la_watch_location_expression
2960 field.
2961 (language_defn::watch_location_expression): Declare new member
2962 function.
2963 * m2-lang.c (m2_language_data): Delete
2964 la_watch_location_expression initializer.
2965 * objc-lang.c (objc_language_data): Likewise.
2966 * opencl-lang.c (opencl_language_data): Likewise.
2967 * p-lang.c (pascal_language_data): Likewise.
2968 * rust-lang.c (rust_watch_location_expression): Rename to
2969 rust_language::watch_location_expression.
2970 (rust_language_data): Delete la_watch_location_expression
2971 initializer.
2972 (rust_language::watch_location_expression): New member function,
2973 implementation from rust_watch_location_expression.
2974
2975 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2976
2977 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2978 ada_language::collect_symbol_completion_matches.
2979 (ada_language_data): Delete la_collect_symbol_completion_matches
2980 initializer.
2981 (ada_language::collect_symbol_completion_matches): New member
2982 function, implementation from
2983 ada_collect_symbol_completion_matches.
2984 * c-lang.c (c_language_data): Delete
2985 la_collect_symbol_completion_matches initializer.
2986 (cplus_language_data): Likewise.
2987 (asm_language_data): Likewise.
2988 (minimal_language_data): Likewise.
2989 * d-lang.c (d_language_data): Likewise.
2990 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2991 f_language::collect_symbol_completion_matches.
2992 (f_language_data): Delete la_collect_symbol_completion_matches
2993 initializer.
2994 (f_language::collect_symbol_completion_matches) New member
2995 function, implementation from f_collect_symbol_completion_matches.
2996 * go-lang.c (go_language_data): Delete
2997 la_collect_symbol_completion_matches initializer.
2998 * language.c (unknown_language_data): Likewise.
2999 (auto_language_data): Likewise.
3000 * language.h (language_data): Delete
3001 la_collect_symbol_completion_matches field.
3002 (language_defn::collect_symbol_completion_matches): New member
3003 function.
3004 * m2-lang.c (m2_language_data): Delete
3005 la_collect_symbol_completion_matches initializer.
3006 * objc-lang.c (objc_language_data): Likewise.
3007 * opencl-lang.c (opencl_language_data): Likewise.
3008 * p-lang.c (pascal_language_data): Likewise.
3009 * rust-lang.c (rust_language_data): Likewise.
3010 * symtab.c (default_collect_symbol_completion_matches): Delete.
3011 (collect_symbol_completion_matches): Update call to
3012 collect_symbol_completion_matches.
3013 (collect_symbol_completion_matches_type): Likewise.
3014 * symtab.h (default_collect_symbol_completion_matches): Delete
3015 declaration.
3016
3017 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3018
3019 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
3020 (ada_language_data): Delete la_word_break_characters initializer.
3021 (ada_language::word_break_characters): New member function.
3022 * c-lang.c (c_language_data): Delete la_word_break_characters
3023 initializer.
3024 (cplus_language_data): Likewise.
3025 (asm_language_data): Likewise.
3026 (minimal_language_data): Likewise.
3027 * completer.c: Update global comment.
3028 (advance_to_expression_complete_word_point): Update call to
3029 word_break_characters.
3030 (complete_files_symbols): Likewise.
3031 (complete_line_internal_1): Likewise.
3032 (default_completer_handle_brkchars): Likewise.
3033 (skip_quoted_chars): Likewise.
3034 * d-lang.c (d_language_data): Delete la_word_break_characters
3035 initializer.
3036 * f-lang.c (f_word_break_characters): Delete.
3037 (f_language_data): Delete la_word_break_characters initializer.
3038 (f_language::word_break_characters): New member function.
3039 * go-lang.c (go_language_data): Delete la_word_break_characters
3040 initializer.
3041 * language.c (unknown_language_data): Likewise.
3042 (auto_language_data): Likewise.
3043 * language.h (default_word_break_characters): Move declaration to
3044 earlier in the file.
3045 (language_data): Delete la_word_break_characters field.
3046 (language_defn::word_break_characters): New member function.
3047 * m2-lang.c (m2_language_data): Delete la_word_break_characters
3048 initializer.
3049 * objc-lang.c (objc_language_data): Likewise.
3050 * opencl-lang.c (opencl_language_data): Likewise.
3051 * p-lang.c (pascal_language_data): Likewise.
3052 * rust-lang.c (rust_language_data): Likewise.
3053
3054 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3055
3056 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
3057 (ada_language_data): Delete la_get_symbol_name_matcher
3058 initializer.
3059 (language_defn::get_symbol_name_matcher_inner): New member
3060 function.
3061 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
3062 initializer.
3063 (cplus_language_data): Likewise.
3064 (cplus_language::get_symbol_name_matcher_inner): New member
3065 function.
3066 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
3067 (minimal_language_data): Likewise.
3068 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
3069 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
3070 initializer.
3071 * dictionary.c (iter_match_first_hashed): Update call to
3072 get_symbol_name_matcher.
3073 (iter_match_next_hashed): Likewise.
3074 (iter_match_next_linear): Likewise.
3075 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
3076 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
3077 initializer.
3078 (f_language::get_symbol_name_matcher_inner): New member function.
3079 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
3080 initializer.
3081 * language.c (default_symbol_name_matcher): Update header comment,
3082 make static.
3083 (language_defn::get_symbol_name_matcher): New definition.
3084 (language_defn::get_symbol_name_matcher_inner): Likewise.
3085 (get_symbol_name_matcher): Delete.
3086 (unknown_language_data): Delete la_get_symbol_name_matcher
3087 initializer.
3088 (auto_language_data): Likewise.
3089 * language.h (language_data): Delete la_get_symbol_name_matcher
3090 field.
3091 (language_defn::get_symbol_name_matcher): New member function.
3092 (language_defn::get_symbol_name_matcher_inner): Likewise.
3093 (default_symbol_name_matcher): Delete declaration.
3094 * linespec.c (find_methods): Update call to
3095 get_symbol_name_matcher.
3096 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
3097 initializer.
3098 * minsyms.c (lookup_minimal_symbol): Update call to
3099 get_symbol_name_matcher.
3100 (iterate_over_minimal_symbols): Likewise.
3101 * objc-lang.c (objc_language_data): Delete
3102 la_get_symbol_name_matcher initializer.
3103 * opencl-lang.c (opencl_language_data): Likewise.
3104 * p-lang.c (pascal_language_data): Likewise.
3105 * psymtab.c (psymbol_name_matches): Update call to
3106 get_symbol_name_matcher.
3107 * rust-lang.c (rust_language_data): Delete
3108 la_get_symbol_name_matcher initializer.
3109 * symtab.c (symbol_matches_search_name): Update call to
3110 get_symbol_name_matcher.
3111 (compare_symbol_name): Likewise.
3112
3113 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3114
3115 * ada-lang.c (ada_language_data): Delete la_compute_program
3116 initializer.
3117 * c-lang.c (c_language_data): Likewise.
3118 (c_language::compute_program): New member function.
3119 (cplus_language_data): Delete la_compute_program initializer.
3120 (cplus_language::compute_program): New member function.
3121 (asm_language_data): Delete la_compute_program initializer.
3122 (minimal_language_data): Likewise.
3123 * c-lang.h (c_compute_program): Update comment.
3124 (cplus_compute_program): Likewise.
3125 * compile/compile-c-support.c (c_compute_program): Likewise.
3126 (cplus_compute_program): Likewise.
3127 * compile/compile.c (compile_to_object): Update call to
3128 la_compute_program.
3129 * d-lang.c (d_language_data): Delete la_compute_program
3130 initializer.
3131 * f-lang.c (f_language_data): Likewise.
3132 * go-lang.c (go_language_data): Likewise.
3133 * language.c (unknown_language_data): Likewise.
3134 (auto_language_data): Likewise.
3135 * language.h (language_data): Delete la_compute_program field.
3136 (language_defn::compute_program): New member function.
3137 * m2-lang.c (m2_language_data): Delete la_compute_program
3138 initializer.
3139 * objc-lang.c (objc_language_data): Likewise.
3140 * opencl-lang.c (opencl_language_data): Likewise.
3141 * p-lang.c (pascal_language_data): Likewise.
3142 * rust-lang.c (rust_language_data): Likewise.
3143
3144 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3145
3146 * ada-lang.c (ada_language_data) Delete
3147 la_class_name_from_physname initializer.
3148 * c-lang.c (c_language_data): Likewise.
3149 (cplus_language_data): Likewise.
3150 (cplus_language::class_name_from_physname): New member function.
3151 (asm_language_data): Delete la_class_name_from_physname
3152 initializer.
3153 (minimal_language_data): Likewise.
3154 * d-lang.c (d_language_data): Likewise.
3155 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
3156 method on language_defn class.
3157 (guess_full_die_structure_name): Likewise.
3158 * f-lang.c (f_language_data): Delete la_class_name_from_physname
3159 initializer.
3160 * go-lang.c (go_language_data): Likewise.
3161 * language.c (language_class_name_from_physname): Delete.
3162 (unk_lang_class_name): Delete.
3163 (unknown_language_data): Delete la_class_name_from_physname
3164 initializer.
3165 (auto_language_data): Likewise.
3166 * language.h (language_data): Delete la_class_name_from_physname
3167 field.
3168 (language_defn::class_name_from_physname): New function.
3169 (language_class_name_from_physname): Delete declaration.
3170 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
3171 initializer.
3172 * objc-lang.c (objc_language_data): Likewise.
3173 * opencl-lang.c (opencl_language_data): Likewise.
3174 * p-lang.c (pascal_language_data): Likewise.
3175 * rust-lang.c (rust_language_data): Likewise.
3176
3177 2020-06-16 Tom Tromey <tom@tromey.com>
3178
3179 * tui/tui-data.h (STATUS_NAME): New macro.
3180 * tui/tui-layout.c (tui_remove_some_windows)
3181 (initialize_known_windows, tui_register_window)
3182 (tui_layout_split::remove_windows, initialize_layouts)
3183 (tui_new_layout_command): Don't use hard-coded window names.
3184
3185 2020-06-16 Tom Tromey <tom@tromey.com>
3186
3187 PR tui/25348:
3188 * tui/tui.c (tui_ensure_readline_initialized): Rename from
3189 tui_initialize_readline. Only run once. Call rl_initialize.
3190 * tui/tui.h (tui_ensure_readline_initialized): Rename from
3191 tui_initialize_readline.
3192 * tui/tui-io.c (tui_setup_io): Call
3193 tui_ensure_readline_initialized.
3194 * tui/tui-interp.c (tui_interp::init): Update.
3195
3196 2020-06-16 Tom Tromey <tom@tromey.com>
3197
3198 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
3199 Also preserve the status window.
3200
3201 2020-06-16 Tom Tromey <tom@tromey.com>
3202
3203 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
3204 where m_window==nullptr.
3205
3206 2020-06-15 Tom Tromey <tromey@adacore.com>
3207
3208 * windows-nat.c (windows_nat::handle_output_debug_string):
3209 Update.
3210 (windows_nat::handle_ms_vc_exception): Update.
3211 * target.h (target_read_string): Change API.
3212 * target.c (target_read_string): Change API.
3213 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
3214 Update.
3215 * solib-frv.c (frv_current_sos): Update.
3216 * solib-dsbt.c (dsbt_current_sos): Update.
3217 * solib-darwin.c (darwin_current_sos): Update.
3218 * linux-thread-db.c (inferior_has_bug): Update.
3219 * expprint.c (print_subexp_standard): Update.
3220 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
3221 (ada_exception_message_1): Update.
3222
3223 2020-06-15 Tom Tromey <tromey@adacore.com>
3224
3225 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
3226
3227 2020-06-15 Tom Tromey <tromey@adacore.com>
3228
3229 * valprint.c (read_string): Update comment.
3230 * target.c (MIN): Remove.
3231 (target_read_string): Rewrite.
3232
3233 2020-06-15 Tom Tromey <tromey@adacore.com>
3234
3235 * corefile.c (read_memory_string): Remove.
3236 * ada-valprint.c (ada_value_print_ptr): Update.
3237 * ada-lang.h (ada_tag_name): Change return type.
3238 * ada-lang.c (type_from_tag): Update.
3239 (ada_tag_name_from_tsd): Change return type. Use
3240 target_read_string.
3241 (ada_tag_name): Likewise.
3242 * gdbcore.h (read_memory_string): Don't declare.
3243
3244 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
3245
3246 * symtab.c (rbreak_command): Ignore Windows drive colon.
3247
3248 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
3249
3250 * NEWS: Mention removed GDBserver host support.
3251
3252 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
3253
3254 * features/riscv/rebuild-csr-xml.sh: Updated.
3255
3256 2020-06-11 Tom Tromey <tom@tromey.com>
3257
3258 PR gdb/18318:
3259 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3260
3261 2020-06-09 Jonny Grant <jg@jguk.org>
3262 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3263
3264 * main.c (captured_main_1): Don't print new line after help.
3265 (print_gdb_help): add mailing list and IRC channel information
3266 to --help. Add new lines between items in the footer. Remove
3267 quotes around bug url.
3268
3269 2020-06-11 Keith Seitz <keiths@redhat.com>
3270
3271 PR gdb/21356
3272 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3273 Resolve typedefs for type length calculations.
3274
3275 2020-06-10 Tom de Vries <tdevries@suse.de>
3276
3277 PR ada/24713
3278 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3279 (write_psymbols): Enable .gdb_index for ada.
3280 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3281 ada.
3282
3283 2020-06-10 Tom de Vries <tdevries@suse.de>
3284
3285 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3286 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3287 namei" instead of "const char *name" argument.
3288 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3289 dw2_symtab_iter_init.
3290
3291 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3292
3293 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3294 to use type::field and field::type instead.
3295
3296 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3297
3298 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3299 to use field::type instead.
3300
3301 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3302
3303 * gdbtypes.h (struct field) <type, set_type>: New methods.
3304 Rename `type` field to...
3305 <m_type>: ... this. Change references throughout to use type or
3306 set_type methods.
3307 (FIELD_TYPE): Use field::type. Change call sites that modify
3308 the field's type to use field::set_type instead.
3309
3310 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3311
3312 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3313 to use type::index_type instead.
3314
3315 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3316
3317 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3318 methods.
3319 (TYPE_INDEX_TYPE): Use type::index_type.
3320 * gdbtypes.c (create_array_type_with_stride): Likewise.
3321
3322 2020-06-07 Tom Tromey <tom@tromey.com>
3323
3324 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3325 parameter.
3326 (generic_value_print): Update.
3327
3328 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3329
3330 Revert commit 982a38f60b0.
3331 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3332
3333 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3334
3335 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3336 avoid use after free.
3337
3338 2020-06-05 Tom de Vries <tdevries@suse.de>
3339
3340 * NEWS: Fix typos.
3341
3342 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
3343
3344 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3345 the per_bfd object.
3346 (dwarf2_read_debug_names): Likewise.
3347 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3348 object when re-using a per_bfd object with an index.
3349
3350 2020-06-03 Tom de Vries <tdevries@suse.de>
3351
3352 PR symtab/26046
3353 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3354 children for C++.
3355 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3356 DW_TAG_subprogram.
3357
3358 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3359
3360 * ada-lang.c (ada_language_data): Delete skip_trampoline
3361 initializer.
3362 * c-lang.c (c_language_data): Likewise.
3363 (cplus_language_data): Likewise.
3364 (cplus_language::skip_trampoline): New member function.
3365 (asm_language_data): Delete skip_trampoline initializer.
3366 (minimal_language_data): Likewise.
3367 * d-lang.c (d_language_data): Likewise.
3368 * f-lang.c (f_language_data): Likewise.
3369 * go-lang.c (go_language_data): Likewise.
3370 * language.c (unk_lang_trampoline): Delete function.
3371 (skip_language_trampoline): Update.
3372 (unknown_language_data): Delete skip_trampoline initializer.
3373 (auto_language_data): Likewise.
3374 * language.h (language_data): Delete skip_trampoline field.
3375 (language_defn::skip_trampoline): New function.
3376 * m2-lang.c (m2_language_data): Delete skip_trampoline
3377 initializer.
3378 * objc-lang.c (objc_skip_trampoline): Delete function, move
3379 implementation to objc_language::skip_trampoline.
3380 (objc_language_data): Delete skip_trampoline initializer.
3381 (objc_language::skip_trampoline): New member function with
3382 implementation from objc_skip_trampoline.
3383 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3384 initializer.
3385 * p-lang.c (pascal_language_data): Likewise.
3386 * rust-lang.c (rust_language_data): Likewise.
3387
3388 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3389
3390 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3391 (ada_language::demangle): New member function.
3392 * c-lang.c (c_language_data): Delete la_demangle initializer.
3393 (cplus_language_data): Delete la_demangle initializer.
3394 (cplus_language::demangle): New member function.
3395 (asm_language_data): Delete la_demangle initializer.
3396 (minimal_language_data): Delete la_demangle initializer.
3397 * d-lang.c (d_language_data): Delete la_demangle initializer.
3398 (d_language::demangle): New member function.
3399 * f-lang.c (f_language_data): Delete la_demangle initializer.
3400 (f_language::demangle): New member function.
3401 * go-lang.c (go_language_data): Delete la_demangle initializer.
3402 (go_language::demangle): New member function.
3403 * language.c (language_demangle): Update.
3404 (unk_lang_demangle): Delete.
3405 (unknown_language_data): Delete la_demangle initializer.
3406 (unknown_language::demangle): New member function.
3407 (auto_language_data): Delete la_demangle initializer.
3408 (auto_language::demangle): New member function.
3409 * language.h (language_data): Delete la_demangle field.
3410 (language_defn::demangle): New function.
3411 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3412 * objc-lang.c (objc_language_data): Delete la_demangle
3413 initializer.
3414 (objc_language::demangle): New member function.
3415 * opencl-lang.c (opencl_language_data): Delete la_demangle
3416 initializer.
3417 * p-lang.c (pascal_language_data): Likewise.
3418 * rust-lang.c (rust_language_data): Likewise.
3419 (rust_language::demangle): New member function.
3420
3421 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3422
3423 * ada-lang.c (ada_language_data): Delete la_print_type
3424 initializer.
3425 (ada_language::print_type): New member function.
3426 * c-lang.c (c_language_data): Delete la_print_type initializer.
3427 (c_language::print_type): New member function.
3428 (cplus_language_data): Delete la_print_type initializer.
3429 (cplus_language::print_type): New member function.
3430 (asm_language_data): Delete la_print_type initializer.
3431 (asm_language::print_type): New member function.
3432 (minimal_language_data): Delete la_print_type initializer.
3433 (minimal_language::print_type): New member function.
3434 * d-lang.c (d_language_data): Delete la_print_type initializer.
3435 (d_language::print_type): New member function.
3436 * f-lang.c (f_language_data): Delete la_print_type initializer.
3437 (f_language::print_type): New member function.
3438 * go-lang.c (go_language_data): Delete la_print_type initializer.
3439 (go_language::print_type): New member function.
3440 * language.c (unk_lang_print_type): Delete.
3441 (unknown_language_data): Delete la_print_type initializer.
3442 (unknown_language::print_type): New member function.
3443 (auto_language_data): Delete la_print_type initializer.
3444 (auto_language::print_type): New member function.
3445 * language.h (language_data): Delete la_print_type field.
3446 (language_defn::print_type): New function.
3447 (LA_PRINT_TYPE): Update.
3448 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3449 (m2_language::print_type): New member function.
3450 * objc-lang.c (objc_language_data): Delete la_print_type
3451 initializer.
3452 (objc_language::print_type): New member function.
3453 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3454 to opencl_language::print_type.
3455 (opencl_language_data): Delete la_print_type initializer.
3456 (opencl_language::print_type): New member function, implementation
3457 from opencl_print_type.
3458 * p-lang.c (pascal_language_data): Delete la_print_type
3459 initializer.
3460 (pascal_language::print_type): New member function.
3461 * rust-lang.c (rust_print_type): Delete, implementation moved to
3462 rust_language::print_type.
3463 (rust_language_data): Delete la_print_type initializer.
3464 (rust_language::print_type): New member function, implementation
3465 from rust_print_type.
3466
3467 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3468
3469 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3470 implementation moves to...
3471 (ada_language::sniff_from_mangled_name): ...here. Update return
3472 type.
3473 (ada_language_data): Delete la_sniff_from_mangled_name
3474 initializer.
3475 * c-lang.c (c_language_data): Likewise.
3476 (cplus_language_data): Likewise.
3477 (cplus_language::sniff_from_mangled_name): New member function,
3478 implementation taken from gdb_sniff_from_mangled_name.
3479 (asm_language_data): Delete la_sniff_from_mangled_name
3480 initializer.
3481 (minimal_language_data): Likewise.
3482 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3483 implementation moves to cplus_language::sniff_from_mangled_name.
3484 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3485 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3486 moves to...
3487 (d_language::sniff_from_mangled_name): ...here.
3488 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3489 * f-lang.c (f_language_data): Likewise.
3490 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3491 moves to...
3492 (go_language::sniff_from_mangled_name): ...here.
3493 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3494 * language.c (language_sniff_from_mangled_name): Delete.
3495 (unknown_language_data): Delete la_sniff_from_mangled_name
3496 initializer.
3497 (auto_language_data): Likewise.
3498 * language.h (language_data): Delete la_sniff_from_mangled_name
3499 field.
3500 (language_defn::sniff_from_mangled_name): New function.
3501 (language_sniff_from_mangled_name): Delete declaration.
3502 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3503 field.
3504 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3505 implementation moves to...
3506 (objc_language::sniff_from_mangled_name): ...here.
3507 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3508 * opencl-lang.c (opencl_language_data): Likewise.
3509 * p-lang.c (pascal_language_data): Likewise.
3510 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3511 implementation moves to...
3512 (rust_language::sniff_from_mangled_name): ...here.
3513 (rust_language_data): Delete la_sniff_from_mangled_name
3514 initializer.
3515 * symtab.c (symbol_find_demangled_name): Call
3516 sniff_from_mangled_name member function.
3517
3518 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3519
3520 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3521 initializer.
3522 * c-lang.c (c_language_data): Likewise.
3523 (cplus_language_data): Likewise.
3524 (cplus_language::search_name_hash): New member function.
3525 (asm_language_data): Delete la_search_name_hash initializer.
3526 (minimal_language_data): Likewise.
3527 * d-lang.c (d_language_data): Likewise.
3528 * dictionary.c (default_search_name_hash): Rename to...
3529 (language_defn::search_name_hash): ...this.
3530 * f-lang.c (f_language_data): Likewise.
3531 (f_language::search_name_hash): New member function.
3532 * go-lang.c (go_language_data): Delete la_search_name_hash
3533 initializer.
3534 * language.c (unknown_language_data): Likewise.
3535 (auto_language_data): Likewise.
3536 * language.h (struct language_data): Delete la_search_name_hash
3537 field.
3538 (language_defn::search_name_hash): Declare new member function.
3539 (default_search_name_hash): Delete declaration.
3540 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3541 initializer.
3542 * objc-lang.c (objc_language_data): Likewise.
3543 * opencl-lang.c (opencl_language_data): Likewise.
3544 * p-lang.c (pascal_language_data): Likewise.
3545 * rust-lang.c (rust_language_data): Likewise.
3546 * symtab.c (search_name_hash): Update call.
3547
3548 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3549
3550 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3551 initializer.
3552 * c-lang.c (class compile_instance): Declare.
3553 (c_language_data): Delete la_get_compile_instance initializer.
3554 (c_language::get_compile_instance): New member function.
3555 (cplus_language_data): Delete la_get_compile_instance initializer.
3556 (cplus_language::get_compile_instance): New member function.
3557 (asm_language_data): Delete la_get_compile_instance initializer.
3558 (minimal_language_data): Likewise.
3559 * c-lang.h (c_get_compile_context): Update comment.
3560 (cplus_get_compile_context): Update comment.
3561 * compile/compile.c (compile_to_object): Update calls, don't rely
3562 on function pointer being NULL.
3563 * d-lang.c (d_language_data): Delete la_get_compile_instance
3564 initializer.
3565 * f-lang.c (f_language_data): Likewise.
3566 * go-lang.c (go_language_data): Likewise.
3567 * language.c (unknown_language_data): Likewise.
3568 (auto_language_data): Likewise.
3569 * language.h (language_data): Delete la_get_compile_instance field.
3570 (language_defn::get_compile_instance): New member function.
3571 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3572 initializer.
3573 * objc-lang.c (objc_language_data): Likewise.
3574 * opencl-lang.c (opencl_language_data): Likewise.
3575 * p-lang.c (pascal_language_data): Likewise.
3576 * rust-lang.c (rust_language_data): Likewise.
3577
3578 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3579
3580 * ada-lang.c (ada_add_all_symbols): Update comment.
3581 (ada_iterate_over_symbols): Delete, move implementation to...
3582 (ada_language::iterate_over_symbols): ...here, a new member
3583 function, rewrite to use range based for loop.
3584 (ada_language_data): Delete la_iterate_over_symbols initializer.
3585 * c-lang.c (c_language_data): Likewise.
3586 (cplus_language_data): Likewise.
3587 (asm_language_data): Likewise.
3588 (minimal_language_data): Likewise.
3589 * d-lang.c (d_language_data): Likewise.
3590 * f-lang.c (f_language_data): Likewise.
3591 * go-lang.c (go_language_data): Likewise.
3592 * language.c (unknown_language_data): Likewise.
3593 (auto_language_data): Likewise.
3594 * language.h (language_data): Delete la_iterate_over_symbols field.
3595 (language_defn::iterate_over_symbols): New member function.
3596 (LA_ITERATE_OVER_SYMBOLS): Update.
3597 * linespec.c (iterate_over_all_matching_symtabs): Update.
3598 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3599 initializer.
3600 * objc-lang.c (objc_language_data): Likewise.
3601 * opencl-lang.c (opencl_language_data): Likewise.
3602 * p-lang.c (pascal_language_data): Likewise.
3603 * rust-lang.c (rust_language_data): Likewise.
3604
3605 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3606
3607 * ada-lang.c (ada_language_data): Delete
3608 la_lookup_transparent_type initializer.
3609 * c-lang.c (c_language_data): Likewise.
3610 (cplus_language_data): Likewise.
3611 (cplus_language::lookup_transparent_type): New member function.
3612 (asm_language_data): Delete la_lookup_transparent_type
3613 initializer.
3614 (minimal_language_data): Likewise.
3615 * d-lang.c (d_language_data): Likewise.
3616 * f-lang.c (f_language_data): Likewise.
3617 * go-lang.c (go_language_data): Likewise.
3618 * language.c (unknown_language_data): Likewise.
3619 (auto_language_data): Likewise.
3620 * language.h (struct language_data): Delete
3621 la_lookup_transparent_type field.
3622 (language_defn::lookup_transparent_type): New member function.
3623 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3624 initializer.
3625 * objc-lang.c (objc_language_data): Likewise.
3626 * opencl-lang.c (opencl_language_data): Likewise.
3627 * p-lang.c (pascal_language_data): Likewise.
3628 * rust-lang.c (rust_language_data): Likewise.
3629 * symtab.c (symbol_matches_domain): Update call.
3630
3631 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3632
3633 * ada-lang.c (ada_language_arch_info): Delete function, move
3634 implementation to...
3635 (ada_language::language_arch_info): ...here, a new member
3636 function.
3637 (ada_language_data): Delete la_language_arch_info.
3638 * c-lang.c (c_language_data): Likewise.
3639 (c_language::language_arch_info): New member function.
3640 (cplus_language_arch_info): Delete function, move
3641 implementation to...
3642 (cplus_language::language_arch_info): ...here, a new member
3643 function.
3644 (cplus_language_data): Delete la_language_arch_info.
3645 (asm_language_data): Likewise.
3646 (asm_language::language_arch_info): New member function.
3647 (minimal_language_data): Delete la_language_arch_info.
3648 (minimal_language::language_arch_info): New member function.
3649 * d-lang.c (d_language_arch_info): Delete function, move
3650 implementation to...
3651 (d_language::language_arch_info): ...here, a new member
3652 function.
3653 (d_language_data): Delete la_language_arch_info.
3654 * f-lang.c (f_language_arch_info): Delete function, move
3655 implementation to...
3656 (f_language::language_arch_info): ...here, a new member
3657 function.
3658 (f_language_data): Delete la_language_arch_info.
3659 * go-lang.c (go_language_arch_info): Delete function, move
3660 implementation to...
3661 (go_language::language_arch_info): ...here, a new member
3662 function.
3663 (go_language_data): Delete la_language_arch_info.
3664 * language.c (unknown_language_data): Likewise.
3665 (unknown_language::language_arch_info): New member function.
3666 (auto_language_data): Delete la_language_arch_info.
3667 (auto_language::language_arch_info): New member function.
3668 (language_gdbarch_post_init): Update call to
3669 la_language_arch_info.
3670 * language.h (language_data): Delete la_language_arch_info
3671 function pointer.
3672 (language_defn::language_arch_info): New function.
3673 * m2-lang.c (m2_language_arch_info): Delete function, move
3674 implementation to...
3675 (m2_language::language_arch_info): ...here, a new member
3676 function.
3677 (m2_language_data): Delete la_language_arch_info.
3678 * objc-lang.c (objc_language_arch_info): Delete function, move
3679 implementation to...
3680 (objc_language::language_arch_info): ...here, a new member
3681 function.
3682 (objc_language_data): Delete la_language_arch_info.
3683 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3684 implementation to...
3685 (opencl_language::language_arch_info): ...here, a new member
3686 function.
3687 (opencl_language_data): Delete la_language_arch_info.
3688 * p-lang.c (pascal_language_arch_info): Delete function, move
3689 implementation to...
3690 (pascal_language::language_arch_info): ...here, a new member
3691 function.
3692 (pascal_language_data): Delete la_language_arch_info.
3693 * rust-lang.c (rust_language_arch_info): Delete function, move
3694 implementation to...
3695 (rust_language::language_arch_info): ...here, a new member
3696 function.
3697 (rust_language_data): Delete la_language_arch_info.
3698
3699 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3700
3701 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3702 initializer.
3703 * c-lang.c (c_language_data): Likewise.
3704 (cplus_language_data): Likewise.
3705 (cplus_language::pass_by_reference_info): New method.
3706 (asm_language_data): Delete la_pass_by_reference initializer.
3707 (minimal_language_data): Likewise.
3708 * cp-abi.c (cp_pass_by_reference): Remove use of
3709 default_pass_by_reference.
3710 * d-lang.c (d_language_data): Likewise.
3711 * f-lang.c (f_language_data): Likewise.
3712 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3713 default_pass_by_reference.
3714 * go-lang.c (go_language_data): Likewise.
3715 * language.c (language_pass_by_reference): Update.
3716 (default_pass_by_reference): Delete.
3717 (unknown_language_data): Delete la_pass_by_reference
3718 initializer.
3719 (auto_language_data): Likewise.
3720 * language.h (struct language_data): Delete la_pass_by_reference
3721 field.
3722 (language_defn::pass_by_reference_info): New member function.
3723 (default_pass_by_reference): Delete declaration.
3724 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3725 initializer.
3726 * objc-lang.c (objc_language_data): Likewise.
3727 * opencl-lang.c (opencl_language_data): Likewise.
3728 * p-lang.c (pascal_language_data): Likewise.
3729 * rust-lang.c (rust_language_data): Likewise.
3730
3731 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3732
3733 * ada-lang.c (ada_read_var_value): Delete function, move
3734 implementation to...
3735 (ada_language::read_var_value): ...here.
3736 (ada_language_data): Delete la_read_var_value initializer.
3737 * c-lang.c (c_language_data): Likewise.
3738 (cplus_language_data): Likewise.
3739 (minimal_language_data): Likewise.
3740 * d-lang.c (d_language_data): Likewise.
3741 * f-lang.c (f_language_data): Likewise.
3742 * findvar.c (default_read_var_value): Rename to...
3743 (language_defn::read_var_value): ...this.
3744 * findvar.c (read_var_value): Update header comment, and change to
3745 call member function instead of function pointer.
3746 * go-lang.c (go_language_data): Likewise.
3747 * language.c (unknown_language_data): Delete la_read_var_value
3748 initializer.
3749 (auto_language_data): Likewise.
3750 * language.h (struct language_data): Delete la_read_var_value
3751 field.
3752 (language_defn::read_var_value): New member function.
3753 (default_read_var_value): Delete declaration.
3754 * m2-lang.c (m2_language_data): Delete la_read_var_value
3755 initializer.
3756 * objc-lang.c (objc_language_data): Likewise.
3757 * opencl-lang.c (opencl_language_data): Likewise.
3758 * p-lang.c (pascal_language_data): Likewise.
3759 * rust-lang.c (rust_language_data): Likewise.
3760 * value.h (default_read_var_value): Delete declaration.
3761
3762 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3763
3764 * ada-lang.c (ada_print_array_index): Delete function, move
3765 implementation to...
3766 (ada_language::print_array_index): ...here.
3767 (ada_language_data): Delete la_print_array_index initializer.
3768 * c-lang.c (c_language_data): Likewise.
3769 (cplus_language_data): Likewise.
3770 (minimal_language_data): Likewise.
3771 * d-lang.c (d_language_data): Likewise.
3772 * f-lang.c (f_language_data): Likewise.
3773 * go-lang.c (go_language_data): Likewise.
3774 * language.c (default_print_array_index): Delete function, move
3775 implementation to...
3776 (language_defn::print_array_index): ...here.
3777 (unknown_language_data): Delete la_print_array_index initializer.
3778 (auto_language_data): Likewise.
3779 * language.h (struct language_data): Delete la_print_array_index
3780 field.
3781 (language_defn::print_array_index): New member function.
3782 (LA_PRINT_ARRAY_INDEX): Update.
3783 (default_print_array_index): Delete declaration.
3784 * m2-lang.c (m2_language_data): Delete la_print_array_index
3785 initializer.
3786 * objc-lang.c (objc_language_data): Likewise.
3787 * opencl-lang.c (opencl_language_data): Likewise.
3788 * p-lang.c (pascal_language_data): Likewise.
3789 * rust-lang.c (rust_language_data): Likewise.
3790
3791 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3792
3793 * gdb/ada-lang.c (ada_language_defn): Convert to...
3794 (ada_language_data): ...this.
3795 (class ada_language): New class.
3796 (ada_language_defn): New static global.
3797 * gdb/c-lang.c (c_language_defn): Convert to...
3798 (c_language_data): ...this.
3799 (class c_language): New class.
3800 (c_language_defn): New static global.
3801 (cplus_language_defn): Convert to...
3802 (cplus_language_data): ...this.
3803 (class cplus_language): New class.
3804 (cplus_language_defn): New static global.
3805 (asm_language_defn): Convert to...
3806 (asm_language_data): ...this.
3807 (class asm_language): New class.
3808 (asm_language_defn): New static global.
3809 (minimal_language_defn): Convert to...
3810 (minimal_language_data): ...this.
3811 (class minimal_language): New class.
3812 (minimal_language_defn): New static global.
3813 * gdb/d-lang.c (d_language_defn): Convert to...
3814 (d_language_data): ...this.
3815 (class d_language): New class.
3816 (d_language_defn): New static global.
3817 * gdb/f-lang.c (f_language_defn): Convert to...
3818 (f_language_data): ...this.
3819 (class f_language): New class.
3820 (f_language_defn): New static global.
3821 * gdb/go-lang.c (go_language_defn): Convert to...
3822 (go_language_data): ...this.
3823 (class go_language): New class.
3824 (go_language_defn): New static global.
3825 * gdb/language.c (unknown_language_defn): Remove declaration.
3826 (current_language): Initialize to nullptr, real initialization is
3827 moved to _initialize_language.
3828 (languages): Delete global.
3829 (language_defn::languages): Define.
3830 (set_language_command): Use language_defn::languages.
3831 (set_language): Likewise.
3832 (range_error): Likewise.
3833 (language_enum): Likewise.
3834 (language_def): Likewise.
3835 (add_set_language_command): Use language_def::languages for the
3836 language list, and language_def to lookup language pointers.
3837 (skip_language_trampoline): Use language_defn::languages.
3838 (unknown_language_defn): Convert to...
3839 (unknown_language_data): ...this.
3840 (class unknown_language): New class.
3841 (unknown_language_defn): New static global.
3842 (auto_language_defn): Convert to...
3843 (auto_language_data): ...this.
3844 (class auto_language): New class.
3845 (auto_language_defn): New static global.
3846 (language_gdbarch_post_init): Use language_defn::languages.
3847 (_initialize_language): Initialize current_language.
3848 * gdb/language.h (struct language_defn): Rename to...
3849 (struct language_data): ...this.
3850 (struct language_defn): New.
3851 (auto_language_defn): Delete.
3852 (unknown_language_defn): Delete.
3853 (minimal_language_defn): Delete.
3854 (ada_language_defn): Delete.
3855 (asm_language_defn): Delete.
3856 (c_language_defn): Delete.
3857 (cplus_language_defn): Delete.
3858 (d_language_defn): Delete.
3859 (f_language_defn): Delete.
3860 (go_language_defn): Delete.
3861 (m2_language_defn): Delete.
3862 (objc_language_defn): Delete.
3863 (opencl_language_defn): Delete.
3864 (pascal_language_defn): Delete.
3865 (rust_language_defn): Delete.
3866 * gdb/m2-lang.c (m2_language_defn): Convert to...
3867 (m2_language_data): ...this.
3868 (class m2_language): New class.
3869 (m2_language_defn): New static global.
3870 * gdb/objc-lang.c (objc_language_defn): Convert to...
3871 (objc_language_data): ...this.
3872 (class objc_language): New class.
3873 (objc_language_defn): New static global.
3874 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3875 (opencl_language_data): ...this.
3876 (class opencl_language): New class.
3877 (opencl_language_defn): New static global.
3878 * gdb/p-lang.c (pascal_language_defn): Convert to...
3879 (pascal_language_data): ...this.
3880 (class pascal_language): New class.
3881 (pascal_language_defn): New static global.
3882 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3883 language pointer, update comment format.
3884 * gdb/rust-lang.c (rust_language_defn): Convert to...
3885 (rust_language_data): ...this.
3886 (class rust_language): New class.
3887 (rust_language_defn): New static global.
3888
3889 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3890
3891 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3892 member variable.
3893 <m_stmt_at_address>: New member variable.
3894 (lnp_state_machine::record_line): Don't record some lines, update
3895 tracking of is_stmt at the same address.
3896 (lnp_state_machine::lnp_state_machine): Initialise new member
3897 variables.
3898
3899 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3900
3901 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3902 "-include gnu-nat-mig.h".
3903 * gnu-nat-mig.h: New file.
3904 * gnu-nat.c: Include "gnu-nat-mig.h".
3905 (exc_server, msg_reply_server, notify_server,
3906 process_reply_server): Remove declarations.
3907
3908 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3909
3910 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3911 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3912 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3913 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3914 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3915 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3916 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3917 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3918 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3919 to gnu_nat_target class.
3920 * gnu-nat.c: Likewise.
3921 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3922 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3923 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3924 object.
3925 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3926 instead of `gnu_target'.
3927
3928 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3929
3930 * i386-gnu-tdep.c: Include "gdbcore.h"
3931 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3932 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3933 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3934 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3935 i386_gnu_sigcontext_addr): New functions
3936 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3937 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3938 tdep.
3939
3940 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3941
3942 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3943 before fork_inferior call. Avoid calling it if target_is_pushed returns
3944 true.
3945
3946 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3947
3948 * gnu-nat.h (gnu_target): New variable declaration.
3949 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3950 gnu_target.
3951 * gnu-nat.c (gnu_target): New variable.
3952 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3953 add_thread_silent, and add_thread calls.
3954 (gnu_nat_target::create_inferior): Pass gnu_target to
3955 add_thread_silent, thread_change_ptid call.
3956 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3957 call.
3958
3959 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3960
3961 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3962 (gnu_nat_target::find_memory_regions): Remove unused
3963 `old_address' variable.
3964
3965 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3966
3967 * gnu-nat.c: Include "gdbarch.h".
3968
3969 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3970
3971 * reply_mig_hack.awk (Error return): Cast function through
3972 void *, to bypass compiler function call check.
3973
3974 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3975
3976 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3977 $(srcdir)/reply_mig_hack.awk.
3978
3979 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3980
3981 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3982
3983 2020-05-30 Jonny Grant <jg@jguk.org>
3984
3985 * configure.ac (ACX_BUGURL): change bug URL to https.
3986
3987 2020-05-30 Pedro Alves <palves@redhat.com>
3988
3989 * cp-support.c (replace_typedefs_template): New.
3990 (replace_typedefs_qualified_name): Handle
3991 DEMANGLE_COMPONENT_TEMPLATE.
3992
3993 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
3994
3995 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3996 dwarf2/index-cache.h, dwarf2/index-write.c,
3997 dwarf2/index-write.h, dwarf2/line-header.c,
3998 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3999 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
4000 variables and fields from `dwarf2_per_objfile` to just
4001 `per_objfile` throughout.
4002
4003 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
4004
4005 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4006 <push_dwarf_reg_entry_value>: Add comment.
4007
4008 2020-05-28 Kevin Buettner <kevinb@redhat.com>
4009 Keith Seitz <keiths@redhat.com>
4010
4011 * python/python.c (do_start_initialization): Call PyEval_SaveThread
4012 instead of PyEval_ReleaseLock.
4013 (class gdbpy_gil): Move to earlier in file.
4014 (finalize_python): Set gdb_python_initialized.
4015 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
4016 when not initialized.
4017
4018 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
4019
4020 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4021 <push_dwarf_reg_entry_value>: Remove assert. Override
4022 per_objfile with caller_per_objfile.
4023
4024 2020-05-28 Tom de Vries <tdevries@suse.de>
4025
4026 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
4027 PR gold/15646 workaround to symbol kind "type".
4028
4029 2020-05-27 Tom Tromey <tromey@adacore.com>
4030
4031 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
4032
4033 2020-05-27 Tom Tromey <tromey@adacore.com>
4034
4035 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
4036 Use htab_find_with_hash.
4037 <add_abbrev>: Remove "abbrev_number" parameter.
4038 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
4039 "abbrev_number" parameter. Use htab_find_slot_with_hash.
4040 (hash_abbrev): Add comment.
4041 (abbrev_table::lookup_abbrev): Move to header file.
4042 (abbrev_table::read): Update.
4043
4044 2020-05-27 Tom Tromey <tromey@adacore.com>
4045
4046 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
4047 method.
4048 <canonical_name>: New member.
4049 <raw_name>: Rename from "name".
4050 (partial_die_info): Initialize canonical_name.
4051 (scan_partial_symbols): Check raw_name.
4052 (partial_die_parent_scope, partial_die_full_name)
4053 (add_partial_symbol, add_partial_subprogram)
4054 (add_partial_enumeration, load_partial_dies): Use "name" method.
4055 (partial_die_info::name): New method.
4056 (partial_die_info::read, guess_partial_die_structure_name)
4057 (partial_die_info::fixup): Update.
4058
4059 2020-05-27 Tom Tromey <tromey@adacore.com>
4060
4061 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
4062 <get_ref_die_offset>: Inline.
4063 <get_ref_die_offset_complaint>: New method.
4064 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
4065 (attribute::get_ref_die_offset_complaint): Rename from
4066 get_ref_die_offset. Just issue complaint.
4067
4068 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4069
4070 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
4071
4072 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4073
4074 * exec.c (exec_file_attach): Use errno value of first openp failure.
4075
4076 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4077
4078 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
4079 Don't close thread handle.
4080
4081 2020-05-27 Tom Tromey <tom@tromey.com>
4082 Simon Marchi <simon.marchi@efficios.com>
4083
4084 * objfiles.h (struct objfile) <partial_symtabs>: Now a
4085 shared_ptr.
4086 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
4087 member.
4088 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
4089 dwarf2_per_bfd_objfile_data_key>: New globals.
4090 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
4091 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
4092 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
4093 shared.
4094 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
4095 short-circuit when sharing.
4096 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
4097 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
4098
4099 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4100
4101 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
4102 to...
4103 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
4104 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
4105
4106 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4107
4108 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
4109 build_name_components, find_name_components_bounds>:
4110 Add per_objfile parameter.
4111 (struct mapped_index) <symbol_name_at>: Likewise.
4112 (struct mapped_debug_names): Remove constructor.
4113 <dwarf2_per_objfile>: Remove field.
4114 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
4115 (mapped_index_base::find_name_components_bounds,
4116 mapped_index_base::build_name_components,
4117 dw2_expand_symtabs_matching_symbol): Likewise.
4118 (class mock_mapped_index) <symbol_name_at>: Likewise.
4119 (check_match): Likewise.
4120 (check_find_bounds_finds): Likewise.
4121 (test_mapped_index_find_name_component_bounds): Update.
4122 (CHECK_MATCH): Update.
4123 (dw2_expand_symtabs_matching): Update.
4124 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
4125 per_objfile parameter.
4126 <find_vec_in_debug_names>: Likewise.
4127 <m_per_objfile>: New field.
4128 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
4129 parameter.
4130 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
4131 (dw2_debug_names_iterator::next): Update.
4132 (dw2_debug_names_lookup_symbol): Update.
4133 (dw2_debug_names_expand_symtabs_for_function): Update.
4134 (dw2_debug_names_map_matching_symbols): Update.
4135 (dw2_debug_names_expand_symtabs_matching): Update.
4136 (dwarf2_read_debug_names): Update.
4137
4138 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4139
4140 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
4141 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
4142 move to dwarf2_per_objfile.
4143 <read_in_chain>: Remove.
4144 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
4145 remove_all_cus, age_comp_units>: New methods.
4146 <m_dwarf2_cus>: New member.
4147 (struct dwarf2_per_cu_data) <cu>: Remove.
4148 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
4149 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
4150 moved to methods of dwarf2_per_objfile.
4151 (dwarf2_clear_marks): Remove.
4152 (dwarf2_queue_item::~dwarf2_queue_item): Update.
4153 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
4154 (dwarf2_per_bfd::free_cached_comp_units): Remove.
4155 (dwarf2_per_objfile::remove_all_cus): New.
4156 (class free_cached_comp_units) <~free_cached_comp_units>:
4157 Update.
4158 (load_cu): Update.
4159 (dw2_do_instantiate_symtab): Adjust.
4160 (fill_in_sig_entry_from_dwo_entry): Adjust.
4161 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4162 (cutu_reader::cutu_reader): Likewise.
4163 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
4164 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
4165 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
4166 and dwarf2_per_objfile::age_comp_units.
4167 (load_partial_comp_unit): Update.
4168 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
4169 (process_queue): Likewise.
4170 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
4171 backlink.
4172 (dwarf2_read_addr_index): Likewise.
4173 (follow_die_offset): Likewise.
4174 (dwarf2_fetch_die_loc_sect_off): Likewise.
4175 (dwarf2_fetch_constant_bytes): Likewise.
4176 (dwarf2_fetch_die_type_sect_off): Likewise.
4177 (follow_die_sig_1): Likewise.
4178 (load_full_type_unit): Likewise.
4179 (read_signatured_type): Likewise.
4180 (dwarf2_cu::dwarf2_cu): Don't set cu field.
4181 (dwarf2_cu::~dwarf2_cu): Remove.
4182 (dwarf2_per_objfile::get_cu): New.
4183 (dwarf2_per_objfile::set_cu): New.
4184 (age_cached_comp_units): Rename to...
4185 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
4186 to std::unordered_map.
4187 (free_one_cached_comp_unit): Rename to...
4188 (dwarf2_per_objfile::remove_cu): ... this. Adjust
4189 to std::unordered_map.
4190 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
4191 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
4192 a dwarf2_per_objfile in data.
4193 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
4194 (dwarf2_clear_marks): Remove.
4195
4196 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4197
4198 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
4199 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
4200 (init_tu_and_read_dwo_dies): Likewise.
4201 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
4202 (cutu_reader::cutu_reader): Likewise.
4203 (load_partial_comp_unit): Likewise.
4204 (process_psymtab_comp_unit): Update.
4205 (build_type_psymtabs_1): Update.
4206 (process_skeletonless_type_unit): Update.
4207 (load_full_comp_unit): Update.
4208 (find_partial_die): Update.
4209 (dwarf2_read_addr_index): Update.
4210 (read_signatured_type): Update.
4211
4212 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4213
4214 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
4215 m_header_read_in>: New fields.
4216 <get_header>: New method.
4217 * dwarf2/read.c (per_cu_header_read_in): Remove.
4218 (dwarf2_per_cu_data::get_header): New.
4219 (dwarf2_per_cu_data::addr_size): Update.
4220 (dwarf2_per_cu_data::offset_size): Update.
4221 (dwarf2_per_cu_data::ref_addr_size): Update.
4222
4223 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4224
4225 * dwarf2/read.c (load_cu): Return dwarf2_cu.
4226 (dw2_do_instantiate_symtab): Update.
4227 (queue_and_load_all_dwo_tus): Change parameter from
4228 dwarf2_per_cu_data to dwarf2_cu.
4229 (dwarf2_fetch_die_loc_sect_off): Update.
4230 (dwarf2_fetch_constant_bytes): Update.
4231 (dwarf2_fetch_die_type_sect_off): Update.
4232
4233 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4234
4235 * dwarf2/read.c (process_full_comp_unit,
4236 process_full_type_unit): Remove per_cu, per_objfile paramters.
4237 Add dwarf2_cu parameter.
4238 (process_queue): Update.
4239
4240 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4241
4242 * dwarf2/read.c (create_cu_from_index_list): Replace
4243 dwarf2_per_objfile parameter with dwarf2_per_bfd.
4244 (create_cus_from_index_list): Likewise.
4245 (create_cus_from_index): Likewise.
4246 (create_signatured_type_table_from_index): Likewise.
4247 (create_cus_from_debug_names_list): Likewise.
4248 (create_cus_from_debug_names): Likewise.
4249 (dwarf2_read_gdb_index): Update.
4250 (dwarf2_read_debug_names): Update.
4251
4252 2020-05-27 Tom Tromey <tom@tromey.com>
4253 Simon Marchi <simon.marchi@efficios.com>
4254
4255 * dwarf2/read.h (struct dwarf2_per_objfile)
4256 <get_type_for_signatured_type, set_type_for_signatured_type>:
4257 New methods.
4258 <m_type_map>: New member.
4259 (struct signatured_type) <type>: Remove.
4260 * dwarf2/read.c
4261 (dwarf2_per_objfile::get_type_for_signatured_type,
4262 dwarf2_per_objfile::set_type_for_signatured_type): New.
4263 (get_signatured_type): Use new methods.
4264
4265 2020-05-27 Tom Tromey <tom@tromey.com>
4266 Simon Marchi <simon.marchi@efficios.com>
4267
4268 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4269 (struct dwarf2_per_objfile) <type_units>: New member.
4270 <get_type_unit_group_unshareable>: New method.
4271 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4272 num_symtabs, symtabs>: Remove; move to
4273 type_unit_group_unshareable.
4274 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4275 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4276 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4277
4278 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4279
4280 * dwarf2/read.h (struct dwarf2_per_cu_data):
4281 <dwarf2_per_objfile>: Remove.
4282 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4283 dwarf2_per_objfile.
4284 (create_signatured_type_table_from_index): Likewise.
4285 (create_signatured_type_table_from_debug_names): Likewise.
4286 (create_debug_type_hash_table): Likewise.
4287 (fill_in_sig_entry_from_dwo_entry): Likewise.
4288 (create_type_unit_group): Likewise.
4289 (read_comp_units_from_section): Likewise.
4290 (create_cus_hash_table): Likewise.
4291
4292 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4293
4294 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4295 dwarf2_per_cu_data::dwarf2_per_objfile.
4296 (compute_compunit_symtab_includes): Likewise.
4297 (dwarf2_cu::start_symtab): Likewise.
4298
4299 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4300
4301 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4302 parameter.
4303 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4304 (read_namespace_alias): Update.
4305 (lookup_die_type): Update.
4306 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4307 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4308 Update.
4309 (disassemble_dwarf_expression): Update.
4310
4311 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4312
4313 * dwarf2/read.h (struct dwarf2_queue_item): Add
4314 dwarf2_per_objfile parameter, assign new parameter.
4315 <per_objfile>: New field.
4316 * dwarf2/read.c (free_one_cached_comp_unit): Add
4317 dwarf2_per_objfile parameter.
4318 (queue_comp_unit): Likewise.
4319 (dw2_do_instantiate_symtab): Update.
4320 (process_psymtab_comp_unit): Update.
4321 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4322 (process_imported_unit_die): Update.
4323 (queue_and_load_dwo_tu): Update.
4324 (follow_die_offset): Update.
4325 (follow_die_sig_1): Update.
4326
4327 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4328
4329 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4330 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4331 (read_call_site_scope): Assign per_objfile.
4332 (dwarf2_per_cu_data::objfile): Remove.
4333 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4334 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4335 dwarf2_per_objfile parameter.
4336 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4337 dwarf2_per_objfile parameter.
4338 (dwarf_expr_reg_to_entry_parameter): Add output
4339 dwarf2_per_objfile parameter.
4340 (locexpr_get_frame_base): Update.
4341 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4342 <push_dwarf_reg_entry_value>: Update.
4343 <call_site_to_target_addr>: Update.
4344 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4345 parameter.
4346 (value_of_dwarf_reg_entry): Update.
4347 (rw_pieced_value): Update.
4348 (indirect_synthetic_pointer): Update.
4349 (dwarf2_evaluate_property): Update.
4350 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4351 parameter.
4352 (locexpr_read_variable): Update.
4353 (locexpr_get_symbol_read_needs): Update.
4354 (loclist_read_variable): Update.
4355
4356 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4357
4358 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4359 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4360 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4361 parameter.
4362 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4363 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4364 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4365 parameter.
4366 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4367 sect_variable_value): Add dwarf2_per_objfile parameter.
4368 (class dwarf_evaluate_loc_desc) <dwarf_call,
4369 dwarf_variable_value>: Update.
4370 (fetch_const_value_from_synthetic_pointer): Add
4371 dwarf2_per_objfile parameter.
4372 (fetch_const_value_from_synthetic_pointer): Update.
4373 (coerced_pieced_ref): Update.
4374 (class symbol_needs_eval_context) <dwarf_call,
4375 dwarf_variable_value>: Update.
4376 (dwarf2_compile_expr_to_ax): Update.
4377
4378 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4379
4380 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4381 parameter.
4382 (dwarf2_evaluate_loc_desc_full): Update.
4383
4384 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4385
4386 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4387 parameter.
4388 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4389 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4390 dwarf2_per_objfile parameter.
4391 (decode_debug_loc_dwo_addresses): Likewise.
4392 (dwarf2_find_location_expression): Update.
4393 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4394 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4395 parameter.
4396 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4397 parameter.
4398 (locexpr_describe_location_1): Likewise.
4399 (locexpr_describe_location): Update.
4400
4401 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4402
4403 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4404 Remove.
4405 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4406 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4407 (dwarf2_compile_property_to_c): Update.
4408 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4409 use text offset from objfile.
4410 (locexpr_tracepoint_var_ref): Update.
4411 (locexpr_generate_c_location): Update.
4412 (loclist_describe_location): Update.
4413 (loclist_tracepoint_var_ref): Update.
4414 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4415 dwarf2_per_objfile parameter.
4416 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4417 use text offset from objfile.
4418 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4419
4420 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4421
4422 * dwarf2/expr.h (struct dwarf_expr_context)
4423 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4424 <offset>: Remove.
4425 <per_objfile>: New member.
4426 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4427 dwarf2_per_objfile parameter. Don't set offset, set
4428 per_objfile.
4429 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4430 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4431 a dwarf2_per_objfile object instead of an offset.
4432 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4433 constructor.
4434 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4435 to dwarf2_expr_executor constructor. Don't set offset.
4436 (dwarf2_fetch_cfa_info): Update.
4437 (struct dwarf2_frame_cache) <text_offset>: Remove.
4438 <per_objfile>: New field.
4439 (dwarf2_frame_cache): Update.
4440 (dwarf2_frame_prev_register): Update.
4441 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4442 <dwarf_evaluate_loc_desc>: Add constructor.
4443 (dwarf2_evaluate_loc_desc_full): Update.
4444 (dwarf2_locexpr_baton_eval): Update.
4445 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4446 Add constructor.
4447 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4448
4449 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4450
4451 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4452 addr_sized_int_type>: Move to dwarf2_cu.
4453 <int_type>: Move to dwarf2_per_objfile.
4454 (struct dwarf2_per_objfile) <int_type>: Move here.
4455 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4456 addr_sized_int_type>: Move here.
4457 (read_func_scope): Update.
4458 (read_array_type): Update.
4459 (read_tag_string_type): Update.
4460 (attr_to_dynamic_prop): Update.
4461 (dwarf2_per_cu_data::int_type): Rename to...
4462 (dwarf2_per_objfile::int_type): ... this.
4463 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4464 (dwarf2_cu::addr_sized_int_type): ... this.
4465 (read_subrange_type): Update.
4466 (dwarf2_per_cu_data::addr_type): Rename to...
4467 (dwarf2_cu::addr_type): ... this.
4468 (set_die_type): Update.
4469
4470 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4471
4472 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4473 data through per_cu->cu.
4474
4475 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4476
4477 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4478 dwarf2_per_cu_data parameter fo dwarf2_cu.
4479 (lookup_dwo_type_unit): Likewise.
4480 (read_cutu_die_from_dwo): Likewise.
4481 (lookup_dwo_unit): Likewise.
4482 (open_and_init_dwo_file): Likewise.
4483 (lookup_dwo_cutu): Likewise.
4484 (lookup_dwo_comp_unit): Likewise.
4485 (lookup_dwo_type_unit): Likewise.
4486 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4487 (cutu_reader::cutu_reader): Update.
4488
4489 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4490
4491 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4492 parameter.
4493 (process_full_type_unit): Likewise.
4494 (process_queue): Update.
4495
4496 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4497
4498 * dwarf2/read.c (recursively_compute_inclusions): Add
4499 dwarf2_per_objfile parameter.
4500 (compute_compunit_symtab_includes): Likewise.
4501 (process_cu_includes): Update.
4502
4503 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4504
4505 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4506 parameter.
4507 (create_type_unit_group): Update.
4508 (process_psymtab_comp_unit_reader): Update.
4509 (build_type_psymtabs_reader): Update.
4510
4511 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4512
4513 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4514 object through m_this_cu->cu.
4515
4516 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4517
4518 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4519 the info parameter.
4520 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4521
4522 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4523
4524 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4525 per_objfile parameter.
4526 (load_full_type_unit): Add per_objfile parameter.
4527 (read_signatured_type): Likewise.
4528 (load_full_comp_unit): Likewise.
4529 (load_cu): Likewise.
4530 (dw2_do_instantiate_symtab): Likewise.
4531 (dw2_get_file_names): Likewise.
4532 (dw2_map_symtabs_matching_filename): Update.
4533 (dw_expand_symtabs_matching_file_matcher): Update.
4534 (dw2_map_symbol_filenames): Update.
4535 (process_psymtab_comp_unit): Add per_objfile parameter.
4536 (build_type_psymtabs_1): Update.
4537 (process_skeletonless_type_unit): Update.
4538 (dwarf2_build_psymtabs_hard): Update.
4539 (load_partial_comp_unit): Add per_objfile parameter.
4540 (scan_partial_symbols): Update.
4541 (load_full_comp_unit): Add per_objfile parameter.
4542 (process_imported_unit_die): Update.
4543 (create_cus_hash_table): Update.
4544 (find_partial_die): Update.
4545 (dwarf2_read_addr_index): Update.
4546 (follow_die_offset): Update.
4547 (dwarf2_fetch_die_loc_sect_off): Update.
4548 (dwarf2_fetch_constant_bytes): Update.
4549 (dwarf2_fetch_die_type_sect_off): Update.
4550 (follow_die_sig_1): Update.
4551 (load_full_type_unit): Add per_objfile parameter.
4552 (read_signatured_type): Likewise.
4553
4554 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4555
4556 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4557 of objfile_name.
4558
4559 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4560
4561 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4562 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4563 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4564 field.
4565 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4566 (create_cus_from_index): Update.
4567 (dwarf2_read_gdb_index): Update.
4568 (create_cus_from_debug_names): Update.
4569 (dwarf2_read_debug_names): Update.
4570 (get_abbrev_section_for_cu): Update.
4571 (create_all_comp_units): Update.
4572 (read_attribute_value): Update.
4573 (get_debug_line_section): Update.
4574 * dwarf2/index-cache.c (index_cache::store): Update.
4575 * dwarf2/index-write.c (save_gdb_index_command): Update.
4576 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4577
4578 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4579
4580 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4581 member.
4582 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4583 dwarf2_per_cu_data::per_bfd.
4584 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4585 (create_type_unit_group): Likewise.
4586 (queue_comp_unit): Remove reference to
4587 per_cu->dwarf2_per_objfile.
4588 (maybe_queue_comp_unit): Likewise.
4589 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4590 (create_cus_hash_table): Assign new field.
4591
4592 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4593
4594 * dwarf2/read.c: Replace
4595 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4596 dwarf2_cu->per_objfile throughout.
4597
4598 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4599
4600 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4601 parameter, don't use per_cu->dwarf2_per_objfile.
4602 (dw2_instantiate_symtab): Likewise.
4603 (dw2_find_last_source_symtab): Update.
4604 (dw2_map_expand_apply): Update.
4605 (dw2_lookup_symbol): Update.
4606 (dw2_expand_symtabs_for_function): Update.
4607 (dw2_expand_all_symtabs): Update.
4608 (dw2_expand_symtabs_with_fullname): Update.
4609 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4610 don't use per_cu->dwarf2_per_objfile.
4611 (dw2_expand_marked_cus): Update.
4612 (dw2_find_pc_sect_compunit_symtab): Update.
4613 (dw2_debug_names_lookup_symbol): Update.
4614 (dw2_debug_names_expand_symtabs_for_function): Update.
4615 (dw2_debug_names_map_matching_symbols): Update.
4616 (dwarf2_psymtab::expand_psymtab): Update.
4617
4618 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4619
4620 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4621 <per_objfile>: New member.
4622 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4623 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4624 call to dwarf2_cu.
4625 (cutu_reader::cutu_reader): Update.
4626 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4627
4628 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4629
4630 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4631 struct dwarf2_per_objfile.
4632 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4633 dwarf2_per_bfd.
4634 * dwarf2/read.c (set_die_type): Update.
4635 (get_die_type_at_offset): Update.
4636
4637 2020-05-27 Tom Tromey <tom@tromey.com>
4638 Simon Marchi <simon.marchi@efficios.com>
4639
4640 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4641 method.
4642 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4643 get_symtab, set_symtab>: New methods.
4644 <m_symtabs>: New field.
4645 (struct dwarf2_psymtab): Derive from partial_symtab.
4646 <readin_p, get_compunit_symtab>: Declare methods.
4647 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4648 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4649 New methods.
4650 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4651 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4652 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4653 (dw2_symtab_iter_next, dw2_print_stats)
4654 (dw2_expand_symtabs_with_fullname)
4655 (dw2_expand_symtabs_matching_one)
4656 (dw_expand_symtabs_matching_file_matcher)
4657 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4658 (dw2_debug_names_iterator::next)
4659 (dw2_debug_names_map_matching_symbols)
4660 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4661 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4662 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4663 New methods.
4664 (get_compunit_symtab, process_full_comp_unit)
4665 (process_full_type_unit): Update.
4666 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4667
4668 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4669
4670 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4671 then introduce a new dwarf2_per_objfile type.
4672 <read_line_string>: Move to the new dwarf2_per_objfile type.
4673 <objfile>: Likewise.
4674 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4675 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4676 dwarf2_per_objfile->per_bfd.
4677 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4678 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4679 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4680 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4681 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4682 (dwarf2_per_objfile::locate_sections): Rename to...
4683 (dwarf2_per_bfd::locate_sections): ... this.
4684 (dwarf2_per_objfile::get_cutu): Rename to...
4685 (dwarf2_per_bfd::get_cutu): ... this.
4686 (dwarf2_per_objfile::get_cu): Rename to...
4687 (dwarf2_per_bfd::get_cu): ... this.
4688 (dwarf2_per_objfile::get_tu): Rename to...
4689 (dwarf2_per_bfd::get_tu): ... this.
4690 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4691 (dwarf2_per_bfd::allocate_per_cu): ... this.
4692 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4693 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4694 (get_gdb_index_contents_ftype): Change parameter from
4695 dwarf2_per_objfile to dwarf2_per_bfd.
4696 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4697 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4698
4699 2020-05-27 Tom Tromey <tom@tromey.com>
4700 Simon Marchi <simon.marchi@efficios.com>
4701
4702 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4703 (allocate_piece_closure): Set "per_objfile" member.
4704 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4705 (locexpr_describe_location, loclist_describe_location): Use new
4706 member.
4707 * dwarf2/read.c (read_call_site_scope)
4708 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4709 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4710 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4711 handle_data_member_location): Set per_objfile member.
4712 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4713 member.
4714 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4715
4716 2020-05-27 Tom Tromey <tom@tromey.com>
4717
4718 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4719 allocate_signatured_type>: Declare new methods.
4720 <m_num_psymtabs>: New member.
4721 (struct dwarf2_per_cu_data) <index>: New member.
4722 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4723 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4724 (create_cu_from_index_list): Use allocate_per_cu.
4725 (create_signatured_type_table_from_index)
4726 (create_signatured_type_table_from_debug_names)
4727 (create_debug_type_hash_table, add_type_unit)
4728 (read_comp_units_from_section): Use allocate_signatured_type.
4729
4730 2020-05-27 Tom Tromey <tom@tromey.com>
4731
4732 * psymtab.c (partial_map_expand_apply)
4733 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4734 (psym_lookup_global_symbol_language)
4735 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4736 (psym_print_stats, psym_expand_symtabs_for_function)
4737 (psym_map_symbol_filenames, psym_map_matching_symbols)
4738 (psym_expand_symtabs_matching)
4739 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4740 (maintenance_check_psymtabs): Update.
4741 * psympriv.h (struct partial_symtab) <readin_p,
4742 get_compunit_symtab>: Add objfile parameter.
4743 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4744 Likewise.
4745 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4746 get_compunit_symtab>: Likewise.
4747 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4748
4749 2020-05-27 Tom Tromey <tom@tromey.com>
4750
4751 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4752 member.
4753 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4754 (create_cu_from_index_list)
4755 (create_signatured_type_table_from_index)
4756 (create_signatured_type_table_from_debug_names)
4757 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4758 (dwarf2_create_include_psymtab)
4759 (create_debug_type_hash_table, add_type_unit)
4760 (create_type_unit_group, read_comp_units_from_section)
4761 (dwarf2_compute_name, create_cus_hash_table)
4762 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4763 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4764 obstack.
4765 (dw2_get_real_path): Likewise. Change argument to
4766 dwarf2_per_objfile.
4767
4768 2020-05-27 Luis Machado <luis.machado@linaro.org>
4769
4770 PR tdep/26000
4771 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4772 for ldrd (immediate).
4773
4774 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4775
4776 * command.h: Add comment giving the name of class_tui.
4777 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4778 create the fake command for the help for class_tui.
4779
4780 2020-05-26 Tom Tromey <tromey@adacore.com>
4781
4782 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4783 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4784 (val_atr): New function.
4785 (value_val_atr): Use it.
4786 * ada-valprint.c (print_optional_low_bound): Change low bound
4787 handling for enums.
4788 (val_print_packed_array_elements): Don't call discrete_position.
4789 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4790 discrete_position for enum types.
4791 * language.c (default_print_array_index): Change type.
4792 * language.h (struct language_defn) <la_print_array_index>: Add
4793 index_type parameter, change type of index_value.
4794 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4795 (default_print_array_index): Update.
4796 * valprint.c (maybe_print_array_index): Don't call
4797 value_from_longest. Update.
4798 (value_print_array_elements): Don't call discrete_position.
4799
4800 2020-05-26 Tom Tromey <tromey@adacore.com>
4801
4802 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4803 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4804
4805 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4806
4807 PR gdb/13519
4808 * avr-tdep.c (avr_integer_to_address): Return data or code
4809 address accordingly to the second 'type' argument of the
4810 function.
4811
4812 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4813
4814 * infcmd.c, inferior.h: (construct_inferior_arguments):
4815 Moved function from here to gdbsupport/common-inferior.{h,cc}
4816
4817 2020-05-23 Tom Tromey <tom@tromey.com>
4818
4819 Revert commit eca1f90c:
4820 * NEWS: Remove entry for completion styling.
4821 * completer.c (_rl_completion_prefix_display_length): Move
4822 declaration later.
4823 (gdb_fnprint): Revert.
4824 (gdb_display_match_list_1): Likewise.
4825 * cli/cli-style.c (completion_prefix_style)
4826 (completion_difference_style, completion_suffix_style): Remove.
4827 (_initialize_cli_style): Revert.
4828 * cli/cli-style.h (completion_prefix_style)
4829 (completion_difference_style, completion_suffix_style): Don't
4830 declare.
4831
4832 2020-05-24 Pedro Alves <palves@redhat.com>
4833
4834 * symtab.c (completion_list_add_name): Return boolean indication
4835 of whether the symbol matched.
4836 (completion_list_add_symbol): Don't try to remove C++ aliases if
4837 the symbol didn't match in the first place.
4838 * symtab.h (completion_list_add_name): Return bool.
4839
4840 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4841
4842 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4843 type::field.
4844
4845 2020-05-23 Joel Brobecker <brobecker@adacore.com>
4846
4847 GDB 9.2 released.
4848
4849 2020-05-23 Tom Tromey <tom@tromey.com>
4850
4851 * NEWS: Add entry for completion styling.
4852 * completer.c (_rl_completion_prefix_display_length): Move
4853 declaration earlier.
4854 (gdb_fnprint): Use completion_style.
4855 (gdb_display_match_list_1): Likewise.
4856 * cli/cli-style.c (completion_prefix_style)
4857 (completion_difference_style, completion_suffix_style): New
4858 globals.
4859 (_initialize_cli_style): Register new globals.
4860 * cli/cli-style.h (completion_prefix_style)
4861 (completion_difference_style, completion_suffix_style): Declare.
4862
4863 2020-05-23 Pedro Alves <palves@redhat.com>
4864
4865 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4866 (parse_escape): Use ISDIGIT instead of isdigit.
4867 (puts_debug): Use gdb_isprint instead of isprint.
4868 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4869 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4870 ISSPACE instead of isspace.
4871 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4872 instead of isspace.
4873 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4874 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4875 instead of isxdigit and ISDIGIT instead of isdigit.
4876
4877 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4878
4879 * gdbtypes.h (struct type) <field>: New method.
4880 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4881 or type::field.
4882
4883 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4884
4885 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4886 (TYPE_FIELDS): Use type::fields. Change all call sites that
4887 modify the propery to use type::set_fields instead.
4888
4889 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4890
4891 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4892 type::num_fields instead.
4893
4894 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4895
4896 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4897 methods.
4898 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4899 that modify the number of fields to use type::set_num_fields
4900 instead.
4901
4902 2020-05-22 Tom Tromey <tromey@adacore.com>
4903
4904 * compile/compile-object-load.h (munmap_list_free): Don't
4905 declare.
4906
4907 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4908
4909 * annotate.c (annotate_source_line): Update return type, add call
4910 to update current symtab and line.
4911 * annotate.h (annotate_source_line): Update return type, and
4912 extend header comment.
4913 * source.c (info_line_command): Check annotation_level before
4914 calling annotate_source_line.
4915 * stack.c (print_frame_info): If calling annotate_source_line
4916 returns true, then don't print any other source line information.
4917
4918 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4919
4920 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4921
4922 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4923
4924 * coffread.c (patch_type): Remove NULL check before xfree.
4925 * corefile.c (set_gnutarget): Likewise.
4926 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4927 * exec.c (build_section_table): Likewise.
4928 * remote.c (remote_target::pass_signals): Likewise.
4929 * utils.c (n_spaces): Likewise.
4930 * cli/cli-script.c (document_command): Likewise.
4931 * i386-windows-tdep.c (core_process_module_section): Likewise.
4932 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4933
4934 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
4935
4936 * symfile.c (reread_symbols): Clear objfile's section_offsets
4937 vector and section indices, re-compute them by calling
4938 sym_offsets.
4939
4940 2020-05-20 Tom Tromey <tromey@adacore.com>
4941
4942 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
4943 (desc_one_bound, desc_index_type): Compute field name.
4944
4945 2020-05-20 Tom de Vries <tdevries@suse.de>
4946
4947 PR symtab/25833
4948 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4949
4950 2020-05-20 Alan Modra <amodra@gmail.com>
4951
4952 PR 25993
4953 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4954 bfd_set_filename.
4955 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4956 passed to bfd_set_filename.
4957 * symfile-mem.c (add_vsyscall_page): Likewise for string
4958 passed to symbol_file_add_from_memory.
4959 (symbol_file_add_from_memory): Make name param a const char* and
4960 don't strdup.
4961
4962 2020-05-20 Alan Modra <amodra@gmail.com>
4963
4964 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4965 rather than accessing bfd->filename directly.
4966 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4967 and use bfd_section_name.
4968 * dwarf2/frame.c (decode_frame_entry): Likewise.
4969 * exec.c (exec_set_section_address): Likewise.
4970 * solib-aix.c (solib_aix_bfd_open): Likewise.
4971 * stap-probe.c (get_stap_base_address): Likewise.
4972 * symfile.c (reread_symbols): Likewise.
4973
4974 2020-05-19 Tom Tromey <tromey@adacore.com>
4975
4976 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4977
4978 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4979
4980 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4981
4982 2020-05-19 Pedro Alves <palves@redhat.com>
4983
4984 * NEWS (set exec-file-mismatch): Adjust entry.
4985 * exec.c: Include "build-id.h".
4986 (validate_exec_file): Try to match build IDs instead of filenames.
4987 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4988 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4989 and pass down 'warn_if_slow'.
4990 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4991 gdb_bfd_open_closure to pass it down.
4992 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4993
4994 2020-05-19 Pedro Alves <palves@redhat.com>
4995
4996 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4997 * target.c (target_fileio_open_1): Rename to target_fileio_open
4998 and make extern. Use bool.
4999 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
5000 (target_fileio_read_alloc_1): Adjust.
5001 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
5002 (target_fileio_open_warn_if_slow): Delete declaration.
5003
5004 2020-05-19 Pedro Alves <palves@redhat.com>
5005
5006 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
5007 Adjust all callers.
5008
5009 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
5010
5011 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
5012 whether disp is negative.
5013
5014 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5015
5016 * symfile.h (struct symfile_segment_data)
5017 <~symfile_segment_data>: Remove.
5018 <segment_info>: Change to std::vector.
5019 * symfile.c (default_symfile_segments): Update.
5020 * elfread.c (elf_symfile_segments): Update.
5021
5022 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5023
5024 * symfile.h (struct symfile_segment_data) <struct segment>: New.
5025 <segments>: New.
5026 <segment_bases, segment_sizes>: Remove.
5027 * symfile.c (default_symfile_segments): Update.
5028 * elfread.c (elf_symfile_segments): Update.
5029 * remote.c (remote_target::get_offsets): Update.
5030 * solib-target.c (solib_target_relocate_section_addresses):
5031 Update.
5032
5033 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5034
5035 * symfile.h (struct symfile_segment_data): Initialize fields.
5036 <~symfile_segment_data>: Add.
5037 (symfile_segment_data_up): New.
5038 (struct sym_fns) <sym_segments>: Return a
5039 symfile_segment_data_up.
5040 (default_symfile_segments): Return a symfile_segment_data_up.
5041 (free_symfile_segment_data): Remove.
5042 (get_symfile_segment_data): Return a symfile_segment_data_up.
5043 * symfile.c (default_symfile_segments): Likewise.
5044 (get_symfile_segment_data): Likewise.
5045 (free_symfile_segment_data): Remove.
5046 (symfile_find_segment_sections): Update.
5047 * elfread.c (elf_symfile_segments): Return a
5048 symfile_segment_data_up.
5049 * remote.c (remote_target::get_offsets): Update.
5050 * solib-target.c (solib_target_relocate_section_addresses):
5051 Update.
5052 * symfile-debug.c (debug_sym_segments): Return a
5053 symfile_segment_data_up.
5054
5055 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5056
5057 PR build/25981
5058 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
5059 Hardcode register numbers.
5060
5061 PR build/25981
5062 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
5063 procfs_find_LDT_entry): Remove.
5064 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
5065 procfs_find_LDT_entry): Remove.
5066 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
5067 Remove.
5068
5069 2020-05-17 Pedro Alves <palves@redhat.com>
5070 Andrew Burgess <andrew.burgess@embecosm.com>
5071 Keno Fischer <keno@juliacomputing.com>
5072
5073 PR gdb/25741
5074 * breakpoint.c (build_target_condition_list): Update comments.
5075 (build_target_command_list): Update comments and skip matching
5076 locations.
5077 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
5078 a separate function. Simplify "set breakpoint auto-hw off"
5079 handling.
5080 (insert_breakpoints): Update comment.
5081 (tracepoint_locations_match): New parameter. For breakpoints,
5082 compare location types too, if the caller wants to.
5083 (handle_automatic_hardware_breakpoints): New functions.
5084 (bp_location_is_less_than): Also sort by location type and
5085 hardware breakpoint length.
5086 (update_global_location_list): Handle "set breakpoint auto-hw on"
5087 here.
5088 (update_breakpoint_locations): Ask breakpoint_locations_match to
5089 ignore location types.
5090
5091 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5092
5093 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
5094 type::name instead.
5095
5096 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5097
5098 * gdbtypes.h (struct type) <name, set_name>: New methods.
5099 (TYPE_CODE): Use type::name. Change all call sites used to set
5100 the name to use type::set_name instead.
5101
5102 2020-05-16 Tom Tromey <tom@tromey.com>
5103
5104 * top.c (quit_force): Update.
5105 * infrun.c (handle_no_resumed): Update.
5106 * top.h (all_uis): New function.
5107 (ALL_UIS): Remove.
5108
5109 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5110
5111 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
5112
5113 2020-05-16 Pedro Alves <palves@redhat.com>
5114
5115 * ia64-linux-nat.c
5116 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
5117 Declare method.
5118 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
5119
5120 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
5121
5122 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
5123 (sparc64_adi_info): Likewise.
5124
5125 2020-05-15 Tom Tromey <tom@tromey.com>
5126
5127 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
5128 block_objfile.
5129 (lookup_objfile_from_block): Remove.
5130 (lookup_symbol_in_block, lookup_symbol_in_static_block)
5131 (lookup_global_symbol): Use block_objfile.
5132 * symtab.h (lookup_objfile_from_block): Don't declare.
5133 * printcmd.c (clear_dangling_display_expressions): Use
5134 block_objfile.
5135 * parse.c (operator_check_standard): Use block_objfile.
5136
5137 2020-05-15 Tom Tromey <tom@tromey.com>
5138
5139 * language.c (language_alloc_type_symbol): Set
5140 SYMBOL_SECTION.
5141 * symtab.c (initialize_objfile_symbol): Remove.
5142 (allocate_symbol): Remove.
5143 (allocate_template_symbol): Remove.
5144 * dwarf2/read.c (fixup_go_packaging): Use "new".
5145 (new_symbol): Use "new".
5146 (read_variable): Don't call initialize_objfile_symbol. Use
5147 "new".
5148 (read_func_scope): Use "new".
5149 * xcoffread.c (process_xcoff_symbol): Don't call
5150 initialize_objfile_symbol.
5151 (SYMBOL_DUP): Remove.
5152 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
5153 "new".
5154 * symtab.h (allocate_symbol, initialize_objfile_symbol)
5155 (allocate_template_symbol): Don't declare.
5156 (struct symbol): Add copy constructor. Change defaults.
5157 * jit.c (finalize_symtab): Use "new".
5158 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
5159 Use "new".
5160 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5161 (common_block_end): Use "new".
5162 * mdebugread.c (parse_symbol): Use "new".
5163 (new_symbol): Likewise.
5164
5165 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5166
5167 * NEWS: Mention changes to help and apropos.
5168
5169 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5170
5171 * command.h (enum command_class): Improve comments, document
5172 that class_alias is for user-defined aliases, give the class
5173 name for each class, remove unused class_xdb.
5174 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
5175 * breakpoint.c (_initialize_breakpoint): Replace class_alias
5176 by a precise class.
5177 * infcmd.c (_initialize_infcmd): Likewise.
5178 * reverse.c (_initialize_reverse): Likewise.
5179 * stack.c (_initialize_stack): Likewise.
5180 * symfile.c (_initialize_symfile): Likewise.
5181 * tracepoint.c (_initialize_tracepoint): Likewise.
5182
5183 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5184
5185 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
5186 when their aliased command is traversed.
5187 (help_cmd): Add fput_command_names_styled call to
5188 output command name and aliases when command has an alias.
5189
5190 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5191
5192 * cli/cli-decode.h (help_cmd_list): Remove declaration.
5193 * cli/cli-decode.c (help_cmd_list): Declare as static,
5194 remove prefix argument, use bool for recurse arg, rework to show the aliases of
5195 a command together with the command.
5196 (fput_command_name_styled, fput_command_names_styled): New functions.
5197 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
5198 fput_command_name_styled.
5199 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
5200 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
5201
5202 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5203
5204 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
5205 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
5206 * command.h (cmd_show_list): Likewise.
5207 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
5208 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
5209
5210 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5211
5212 * unittests/command-def-selftests.c (traverse_command_structure):
5213 Verify all commands of a list have the same prefix command and
5214 that only the top cmdlist commands have a null prefix.
5215
5216 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5217
5218 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
5219 as prefix, not one of its aliases.
5220 (set_cmd_prefix): Remove.
5221 (do_add_cmd): Centralize the setting of the prefix of a command, when
5222 command is defined after its full chain of prefix commands.
5223 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
5224 (add_setshow_cmd_full): Likewise.
5225 (update_prefix_field_of_prefixed_commands): New function.
5226 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
5227 update_prefix_field_of_prefixed_commands.
5228 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
5229 addresses of remote_set_cmdlist and remote_show_cmdlist given
5230 as argument, not the address of an argument.
5231 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5232 * gdb/remote.c (_initialize_remote): Likewise.
5233
5234 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5235
5236 * cli/cli-cmds.c (alias_command): Check for an existing alias
5237 using lookup_cmd_composition, as valid_command_p is too strict
5238 and forbids aliases that are the prefix of an existing alias
5239 or command.
5240 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5241 command is properly recognised as a valid command.
5242
5243 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5244
5245 * unittests/help-doc-selftests.c: Rename to
5246 unittests/command-def-selftests.c
5247 * unittests/command-def-selftests.c (help_doc_tests): Update some
5248 comments.
5249 (command_structure_tests, traverse_command_structure): New namespace
5250 and function.
5251 (command_structure_invariants_tests): New function.
5252 (_initialize_command_def_selftests) Renamed from
5253 _initialize_help_doc_selftests, register command_structure_invariants
5254 selftest.
5255
5256 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5257
5258 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5259 an alias of 'show'.
5260
5261 2020-05-15 Joel Brobecker <brobecker@adacore.com>
5262
5263 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5264 ada_is_fixed_point_type. Update all callers.
5265 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5266 all callers.
5267 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5268 Update all callers.
5269 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5270 print_fixed_point_type. Update all callers.
5271 * ada-valprint.c (ada_value_print_num): Replace call to
5272 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5273
5274 2020-05-14 Kevin Buettner <kevinb@redhat.com>
5275
5276 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5277 processors.
5278 (cpu_supports_bts): Add CV_AMD case.
5279
5280 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5281 Simon Marchi <simon.marchi@efficios.com>
5282
5283 * infrun.c (stop_all_threads): Collect multiple wait events at
5284 each pass.
5285
5286 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5287
5288 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5289 type::code instead.
5290
5291 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5292
5293 * gdbtypes.h (struct type) <code, set_code>: New methods.
5294 (TYPE_CODE): Use type::code. Change all call sites used to set
5295 the code to use type::set_code instead.
5296
5297 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5298 Tom de Vries <tdevries@suse.de>
5299 Pedro Alves <palves@redhat.com>
5300
5301 PR threads/25478
5302 * infrun.c (stop_all_threads): Do NOT ignore
5303 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5304 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5305 received.
5306 (handle_no_resumed): Remove code handling a live inferior with no
5307 threads.
5308 * remote.c (has_single_non_exited_thread): New.
5309 (remote_target::update_thread_list): Do not delete a thread if is
5310 the last thread of the process.
5311 * thread.c (thread_select): Call delete_exited_threads instead of
5312 prune_threads.
5313
5314 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5315
5316 * infrun.c (stop_all_threads): Enable/disable thread events of all
5317 targets. Move a debug message denoting the end of the function
5318 into the SCOPED_EXIT block.
5319
5320 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5321
5322 * process-stratum-target.h: Include <set>.
5323 (all_non_exited_process_targets, switch_to_target_no_thread): New
5324 function declarations.
5325 * process-stratum-target.c (all_non_exited_process_targets)
5326 (switch_to_target_no_thread): New function implementations.
5327
5328 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5329
5330 * infrun.c (handle_inferior_event): Extract out a piece of code
5331 into...
5332 (mark_non_executing_threads): ...this new function.
5333
5334 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5335
5336 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5337 use.
5338
5339 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5340
5341 * regcache.c (regcache_read_pc_protected): New function
5342 implementation that returns 0 if the PC cannot read via
5343 'regcache_read_pc'.
5344 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5345 instead of 'regcache_read_pc'.
5346 (keep_going_pass_signal): Ditto.
5347
5348 2020-05-13 Tom Tromey <tromey@adacore.com>
5349
5350 * ada-lang.c (align_value): Remove.
5351 (ada_template_to_fixed_record_type_1): Use align_up.
5352
5353 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5354
5355 * async-event.c: Update the copyright year.
5356 * async-event.h: Update the copyright year.
5357
5358 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
5359
5360 * objfiles.h (is_addr_in_objfile,
5361 shared_objfile_contains_address_p): Return bool.
5362 * objfile.c (is_addr_in_objfile,
5363 shared_objfile_contains_address_p): Return bool.
5364
5365 2020-05-11 Tom Tromey <tromey@adacore.com>
5366
5367 * cli/cli-cmds.c (info_command): Restore.
5368 (_initialize_cli_cmds): Use add_prefix_command for "info".
5369 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5370
5371 2020-05-11 Tom Tromey <tromey@adacore.com>
5372
5373 * ada-lang.c (ada_value_primitive_field): Now public.
5374 * ada-lang.h (ada_value_primitive_field): Declare.
5375 * ada-valprint.c (print_field_values): Use
5376 ada_value_primitive_field for wrapper fields.
5377
5378 2020-05-11 Tom de Vries <tdevries@suse.de>
5379
5380 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5381 MODULE_DOMAIN.
5382
5383 2020-05-11 Tom de Vries <tdevries@suse.de>
5384
5385 PR symtab/25941
5386 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5387 with length 0, if not gdb-produced.
5388 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5389
5390 2020-05-09 Tom de Vries <tdevries@suse.de>
5391
5392 PR gdb/25955
5393 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5394 calculation.
5395
5396 2020-05-09 Tom Tromey <tom@tromey.com>
5397
5398 * top.c (server_command): Now bool.
5399 * top.h (server_command): Now bool.
5400
5401 2020-05-08 Tom Tromey <tromey@adacore.com>
5402
5403 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5404 already being processed.
5405
5406 2020-05-08 Tom Tromey <tom@tromey.com>
5407
5408 * printcmd.c (struct display) <next>: Remove.
5409 <display>: New constructor.
5410 <exp_string>: Now a std::string.
5411 <enabled_p>: Now a bool.
5412 (display_number): Move definition earlier.
5413 (displays): Rename from display_chain. Now a std::vector.
5414 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5415 (display_command): Update.
5416 (do_one_display, disable_display)
5417 (enable_disable_display_command, do_enable_disable_display):
5418 Update.
5419 (free_display): Remove.
5420 (clear_displays): Rewrite.
5421 (delete_display): Update.
5422 (map_display_numbers): Use function_view. Remove "data"
5423 parameter. Update.
5424 (do_delete_display): Remove.
5425 (undisplay_command): Update.
5426 (do_one_display, do_displays, disable_display)
5427 (info_display_command): Update.
5428 (do_enable_disable_display): Remove.
5429 (enable_disable_display_command)
5430 (clear_dangling_display_expressions): Update.
5431
5432 2020-05-08 Tom Tromey <tom@tromey.com>
5433
5434 * symtab.c (set_symbol_cache_size)
5435 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5436 (maintenance_print_symbol_cache_statistics): Update.
5437 * symmisc.c (print_symbol_bcache_statistics)
5438 (print_objfile_statistics, maintenance_print_objfiles)
5439 (maintenance_info_symtabs, maintenance_check_symtabs)
5440 (maintenance_expand_symtabs, maintenance_info_line_tables):
5441 Update.
5442 * symfile-debug.c (set_debug_symfile): Update.
5443 * source.c (forget_cached_source_info): Update.
5444 * python/python.c (gdbpy_progspaces): Update.
5445 * psymtab.c (maintenance_info_psymtabs): Update.
5446 * probe.c (parse_probes): Update.
5447 * linespec.c (iterate_over_all_matching_symtabs)
5448 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5449 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5450 * exec.c (exec_target::close): Update.
5451 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5452 * breakpoint.c (print_one_breakpoint_location)
5453 (create_longjmp_master_breakpoint)
5454 (create_std_terminate_master_breakpoint): Update.
5455 * progspace.c (program_spaces): Now a std::vector.
5456 (maybe_new_address_space): Update.
5457 (add_program_space): Remove.
5458 (program_space::program_space): Update.
5459 (remove_program_space): Update.
5460 (number_of_program_spaces): Remove.
5461 (print_program_space, update_address_spaces): Update.
5462 * progspace.h (program_spaces): Change type.
5463 (ALL_PSPACES): Remove.
5464 (number_of_program_spaces): Don't declare.
5465 (struct program_space) <next>: Remove.
5466
5467 2020-05-08 Tom Tromey <tom@tromey.com>
5468
5469 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5470 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5471 (enable_break): Update.
5472 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5473 (frv_fdpic_find_canonical_descriptor): Update.
5474 (frv_fetch_objfile_link_map): Update.
5475 * progspace.c (program_space::free_all_objfiles): Update.
5476 (program_space::solibs): New method.
5477 * progspace.h (struct program_space) <solibs>: New method.
5478 * solist.h (master_so_list): Don't declare.
5479 (ALL_SO_LIBS): Remove.
5480 * solib.h (so_list_head): Remove.
5481 (update_solib_list): Update comment.
5482 * solib.c (master_so_list): Remove.
5483 (solib_used, update_solib_list, solib_add)
5484 (info_sharedlibrary_command, clear_solib)
5485 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5486
5487 2020-05-08 Tom Tromey <tom@tromey.com>
5488
5489 * extension.c (extension_languages): Now a std::array.
5490 (ALL_EXTENSION_LANGUAGES): Remove.
5491 (get_ext_lang_defn, get_ext_lang_of_file)
5492 (eval_ext_lang_from_control_command): Update.
5493 (finish_ext_lang_initialization)
5494 (auto_load_ext_lang_scripts_for_objfile)
5495 (ext_lang_type_printers::ext_lang_type_printers)
5496 (apply_ext_lang_type_printers)
5497 (ext_lang_type_printers::~ext_lang_type_printers)
5498 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5499 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5500 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5501 (get_matching_xmethod_workers, ext_lang_colorize)
5502 (ext_lang_before_prompt): Update.
5503 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5504
5505 2020-05-08 Tom Tromey <tom@tromey.com>
5506
5507 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5508 overload.
5509 <swap_string, m_string>: Remove.
5510 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5511 Update.
5512 * stabsread.c (define_symbol, read_type): Update.
5513 * linespec.c (find_linespec_symbols): Update.
5514 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5515 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5516 * dbxread.c (read_dbx_symtab): Update.
5517 * cp-support.h (cp_canonicalize_string_full)
5518 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5519 Return unique_xmalloc_ptr.
5520 * cp-support.c (inspect_type): Update.
5521 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5522 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5523 Likewise.
5524 * c-typeprint.c (print_name_maybe_canonical): Update.
5525 * break-catch-throw.c (check_status_exception_catchpoint):
5526 Update.
5527
5528 2020-05-08 Tom de Vries <tdevries@suse.de>
5529
5530 * infrun.c (follow_fork): Copy current_line and current_symtab to
5531 child thread.
5532
5533 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5534
5535 * async-event.c (struct async_signal_handler, struct
5536 async_event_handler): Reformat, remove typedef.
5537
5538 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5539
5540 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5541 access thistype->main_type->dyn_prop_list directly.
5542
5543 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5544
5545 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5546 (remove_dyn_prop): Remove. Update all users to use
5547 type::remove_dyn_prop.
5548 * gdbtypes.c (remove_dyn_prop): Rename to...
5549 (type::remove_dyn_prop): ... this.
5550
5551 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5552
5553 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5554 (add_dyn_prop): Remove. Update all users to use
5555 type::add_dyn_prop.
5556 * gdbtypes.c (add_dyn_prop): Rename to...
5557 (type::add_dyn_prop): ... this.
5558
5559 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5560
5561 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5562 (get_dyn_prop): Remove. Update all users to use
5563 type::dyn_prop.
5564 * gdbtypes.c (get_dyn_prop): Rename to...
5565 (type::dyn_prop): ... this.
5566
5567 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5568
5569 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5570
5571 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5572
5573 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5574 instruction, skip it if it's there.
5575
5576 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
5577
5578 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5579
5580 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
5581
5582 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5583 * gdbtypes.c (recursive_dump_type): Remove use of
5584 TYPE_INCOMPLETE.
5585
5586 2020-05-03 Tom Tromey <tom@tromey.com>
5587
5588 * breakpoint.c (catch_command, tcatch_command): Remove.
5589 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5590 add_show_prefix_cmd.
5591 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5592 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5593 Remove.
5594 (add_internal_problem_command): Use add_basic_prefix_cmd,
5595 add_show_prefix_cmd.
5596 * mips-tdep.c (set_mipsfpu_command): Remove.
5597 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5598 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5599 (_initialize_index_cache): Use add_basic_prefix_cmd.
5600 * memattr.c (dummy_cmd): Remove.
5601 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5602 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5603 (_initialize_tui_win): Use add_basic_prefix_cmd,
5604 add_show_prefix_cmd.
5605 * cli/cli-logging.c (set_logging_command): Remove.
5606 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5607 add_show_prefix_cmd.
5608 (show_logging_command): Remove.
5609 * target.c (target_command): Remove.
5610 (add_target): Use add_basic_prefix_cmd.
5611
5612 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
5613
5614 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5615
5616 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5617
5618 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5619 info_command.
5620
5621 2020-04-30 Kamil Rytarowski <n54@gmx.com>
5622
5623 * nbsd-nat.c (nbsd_enable_proc_events)
5624 (nbsd_nat_target::post_startup_inferior): Add.
5625 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5626 (nbsd_nat_target::update_thread_list): Rewrite.
5627 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5628 "PTRACE_LWP_CREATE".
5629 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5630
5631 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5632
5633 * stack.c (_initialize_stack): Remove duplicated creation
5634 of "frame" command and "f" alias.
5635
5636 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5637
5638 PR gdb/18706
5639 * gdbtypes.c (check_typedef): Calculate size of array of
5640 stubbed type.
5641
5642 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5643
5644 PR gdb/15559
5645 * i386-tdep.c (i386_push_dummy_call): Call
5646 i386_thiscall_push_dummy_call.
5647 (i386_thiscall_push_dummy_call): New function.
5648 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5649 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5650 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5651
5652 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5653
5654 * gdbarch.sh (do_read): Add shellcheck disable directive for
5655 warning SC2162.
5656
5657 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5658
5659 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5660 "referenced but not assigned" warning.
5661
5662 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5663
5664 * gdbarch.sh: Remove code that sets fallbackdefault.
5665
5666 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5667
5668 * gdbarch.sh: Use shell operators && and || instead of
5669 -a and -o.
5670
5671 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5672
5673 * gdbarch.sh: Use $(...) instead of `...`.
5674
5675 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5676
5677 * gdbarch.sh: Use double quotes around variables.
5678
5679 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5680
5681 * gdbarch.sh: Use %s with printf, instead of variables in the
5682 format string.
5683
5684 2020-04-29 Tom Tromey <tromey@adacore.com>
5685
5686 PR ada/25875:
5687 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5688 type fields here.
5689 (read_enumeration_type): Call
5690 update_enumeration_type_from_children later. Update comments.
5691 (process_enumeration_scope): Don't create type fields.
5692
5693 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5694
5695 * nbsd-tdep.c: Include "xml-syscall.h".
5696 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5697
5698 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5699
5700 * nbsd-nat.c: Include "sys/wait.h".
5701 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5702 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5703 (nbsd_nat_target::remove_exec_catchpoint)
5704 (nbsd_nat_target::set_syscall_catchpoint): Add.
5705 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5706 (nbsd_nat_target::insert_exec_catchpoint)
5707 (nbsd_nat_target::remove_exec_catchpoint)
5708 (nbsd_nat_target::set_syscall_catchpoint): Add.
5709 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5710 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5711 `nbsd_get_syscall_number'.
5712
5713 2020-04-29 Tom Tromey <tom@tromey.com>
5714
5715 * stack.c (print_block_frame_labels): Remove.
5716
5717 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
5718
5719 PR gdb/17320
5720 * ada-valprint.c (val_print_packed_array_elements): Move array
5721 end bracket to new line.
5722 (ada_val_print_string): Remove extra spaces before first array
5723 element.
5724 * c-valprint.c (c_value_print_array): Likewise.
5725 * m2-valprint.c (m2_print_array_contents): Likewise.
5726 (m2_value_print_inner): Likewise.
5727 * p-valprint.c (pascal_value_print_inner): Likewise.
5728 * valprint.c (generic_val_print_array): Likewise.
5729 (value_print_array_elements): Move first array element and array
5730 end bracket to new line.
5731
5732 2020-04-29 Tom de Vries <tdevries@suse.de>
5733
5734 PR symtab/25889
5735 * linespec.c (find_method): Fix ix calculation.
5736
5737 2020-04-28 Kamil Rytarowski <n54@gmx.com>
5738
5739 * syscalls/update-netbsd.sh: New file.
5740 * syscalls/netbsd.xml: Regenerate.
5741 * data-directory/Makefile.in: Register `netbsd.xml' in
5742 `SYSCALLS_FILES'.
5743
5744 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5745
5746 * syscalls/update-freebsd.sh: Add double quotes.
5747
5748 2020-04-28 Tom Tromey <tom@tromey.com>
5749
5750 * NEWS: Update.
5751 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5752 (cmdpy_init): Allow class_tui.
5753
5754 2020-04-28 Mark Williams <mark@myosotissp.com>
5755
5756 PR gdb/24480
5757 * dwarf2read.c: Add missing assingments to list_in_scope when
5758 start_symtab was already called.
5759
5760 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5761
5762 PR gdb/25881
5763 * dwarf2/read.c (offset_map_type): Use
5764 gdb:hash_enum<sect_offset> as hash function.
5765
5766 2020-04-28 Tom de Vries <tdevries@suse.de>
5767
5768 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5769 with DW_AT_signature.
5770
5771 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
5772
5773 * configure.ac: Remove check for fs_base/gs_base in
5774 user_regs_struct.
5775 * configure: Re-generate.
5776 * config.in: Re-generate.
5777 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5778 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5779 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5780
5781 2020-04-27 Luis Machado <luis.machado@linaro.org>
5782
5783 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5784 problematic inline frame unwinding situation.
5785 * frame.c (frame_id_computed_p): New function.
5786 * frame.h (frame_id_computed_p): New prototype.
5787
5788 2020-04-26 Tom Tromey <tom@tromey.com>
5789
5790 * command.h (enum command_class) <class_pseudo>: Remove.
5791
5792 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5793
5794 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5795 and whitespace.
5796
5797 2020-04-25 Kamil Rytarowski <n54@gmx.com>
5798
5799 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5800 `PT_GET_PROCESS_STATE' block.
5801
5802 2020-04-24 Tom Tromey <tom@tromey.com>
5803
5804 * symtab.h (symbol_get_demangled_name): Don't declare.
5805 * symtab.c (symbol_get_demangled_name): Remove.
5806 (general_symbol_info::natural_name)
5807 (general_symbol_info::demangled_name): Update.
5808
5809 2020-04-24 Tom Tromey <tom@tromey.com>
5810
5811 PR rust/25025:
5812 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5813
5814 2020-04-24 Tom Tromey <tom@tromey.com>
5815
5816 PR symtab/12707:
5817 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5818 exists.
5819 (new_symbol): Likewise.
5820 * compile/compile-object-load.c (get_out_value_type): Use
5821 symbol_matches_search_name.
5822
5823 2020-04-24 Tom Tromey <tom@tromey.com>
5824
5825 * dwarf2/read.c (add_partial_symbol): Do not call
5826 compute_and_set_names.
5827
5828 2020-04-24 Tom Tromey <tom@tromey.com>
5829
5830 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5831 overload.
5832
5833 2020-04-24 Tom Tromey <tom@tromey.com>
5834
5835 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5836 (add_psymbol_to_list): New overload. Make old overload call new
5837 one.
5838 * psympriv.h (add_psymbol_to_list): New overload.
5839
5840 2020-04-24 Tom Tromey <tom@tromey.com>
5841
5842 * dwarf2/read.c (partial_die_info::read) <case
5843 DW_AT_linkage_name>: Use value_as_string.
5844 (dwarf2_string_attr): Use value_as_string.
5845 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5846 method.
5847 * dwarf2/attribute.c (attribute::value_as_string): New method.
5848
5849 2020-04-24 Tom Tromey <tom@tromey.com>
5850
5851 * symtab.c (general_symbol_info::natural_name)
5852 (general_symbol_info::demangled_name): Check for language_rust.
5853
5854 2020-04-24 Tom Tromey <tom@tromey.com>
5855
5856 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5857 (dwarf2_physname): ... from here.
5858 (partial_die_info::read): Add Rust "{" hack.
5859
5860 2020-04-24 Tom Tromey <tom@tromey.com>
5861
5862 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5863 method.
5864 (symbol_set_demangled_name): Don't declare.
5865 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5866 symbol_set_demangled_name.
5867 (general_symbol_info::set_language)
5868 (general_symbol_info::compute_and_set_names): Update.
5869 * minsyms.c (minimal_symbol_reader::install): Update.
5870 * dwarf2/read.c (new_symbol): Update.
5871
5872 2020-04-24 Tom Tromey <tromey@adacore.com>
5873
5874 PR python/23662:
5875 * python/py-type.c (convert_field): Handle
5876 FIELD_LOC_KIND_DWARF_BLOCK.
5877 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5878 (typy_get_dynamic): Nw function.
5879 (type_object_getset): Add "dynamic".
5880 * NEWS: Add entry.
5881
5882 2020-04-24 Tom Tromey <tromey@adacore.com>
5883
5884 * ada-typeprint.c (print_choices, print_variant_part)
5885 (print_record_field_types_dynamic): New functions.
5886 (print_record_field_types): Use print_record_field_types_dynamic.
5887
5888 2020-04-24 Tom Tromey <tromey@adacore.com>
5889
5890 * dwarf2/read.c (handle_data_member_location): New overload.
5891 (dwarf2_add_field): Use it.
5892 (decode_locdesc): Add "computed" parameter. Update comment.
5893 * gdbtypes.c (is_dynamic_type_internal): Also look for
5894 FIELD_LOC_KIND_DWARF_BLOCK.
5895 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5896 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5897 virtual base classes.
5898 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5899 FIELD_LOC_KIND_DWARF_BLOCK.
5900
5901 2020-04-24 Tom Tromey <tromey@adacore.com>
5902
5903 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5904 * gdbtypes.c (is_dynamic_type_internal): Check
5905 TYPE_HAS_DYNAMIC_LENGTH.
5906 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5907 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5908 New macros.
5909 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5910 constant.
5911
5912 2020-04-24 Tom Tromey <tromey@adacore.com>
5913
5914 * dwarf2/read.c (struct variant_field): Rewrite.
5915 (struct variant_part_builder): New.
5916 (struct nextfield): Remove "variant" field. Add "offset".
5917 (struct field_info): Add "current_variant_part" and
5918 "variant_parts".
5919 (alloc_discriminant_info): Remove.
5920 (alloc_rust_variant): New function.
5921 (quirk_rust_enum): Update.
5922 (dwarf2_add_field): Set "offset" member. Don't handle
5923 DW_TAG_variant_part.
5924 (offset_map_type): New typedef.
5925 (convert_variant_range, create_one_variant)
5926 (create_one_variant_part, create_variant_parts)
5927 (add_variant_property): New functions.
5928 (dwarf2_attach_fields_to_type): Call add_variant_property.
5929 (read_structure_type): Don't handle DW_TAG_variant_part.
5930 (handle_variant_part, handle_variant): New functions.
5931 (handle_struct_member_die): Use them.
5932 (process_structure_scope): Don't handle variant parts.
5933 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5934 (struct discriminant_info): Remove.
5935 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5936 (struct main_type) <flag_discriminated_union>: Remove.
5937 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5938 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5939 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5940 Update.
5941 * valops.c (value_union_variant): Remove.
5942 * value.h (value_union_variant): Don't declare.
5943
5944 2020-04-24 Tom Tromey <tromey@adacore.com>
5945
5946 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5947 (ada_value_primitive_packed_val): Update.
5948 * ada-valprint.c (ada_value_print_1): Update.
5949 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5950 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5951 just an address. Use evaluate_for_locexpr_baton.
5952 (dwarf2_evaluate_property): Update.
5953 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5954 array_view.
5955 * findvar.c (default_read_var_value): Update.
5956 * gdbtypes.c (compute_variant_fields_inner)
5957 (resolve_dynamic_type_internal): Update.
5958 (resolve_dynamic_type): Change type of valaddr parameter.
5959 * gdbtypes.h (resolve_dynamic_type): Update.
5960 * valarith.c (value_subscripted_rvalue): Update.
5961 * value.c (value_from_contents_and_address): Update.
5962
5963 2020-04-24 Tom Tromey <tromey@adacore.com>
5964
5965 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5966 "push_initial_value" parameter.
5967 (dwarf2_evaluate_property): Likewise.
5968 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5969
5970 2020-04-24 Tom Tromey <tromey@adacore.com>
5971
5972 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5973 (variant::matches, compute_variant_fields_recurse)
5974 (compute_variant_fields_inner, compute_variant_fields): New
5975 functions.
5976 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5977 Use resolved_type after type is made.
5978 (operator==): Add new cases.
5979 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5980 (struct discriminant_range, struct variant, struct variant_part):
5981 New.
5982 (union dynamic_prop_data) <variant_parts, original_type>: New
5983 members.
5984 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5985 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5986 constants.
5987 * value.c (unpack_bits_as_long): Now public.
5988 * value.h (unpack_bits_as_long): Declare.
5989
5990 2020-04-24 Tom Tromey <tromey@adacore.com>
5991
5992 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5993 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5994
5995 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
5996
5997 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5998
5999 2020-04-24 Kamil Rytarowski <n54@gmx.com>
6000
6001 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
6002 (remove_fork_catchpoint, post_startup_inferior)
6003 (post_attach): Move...
6004 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
6005 (remove_fork_catchpoint, post_startup_inferior)
6006 (post_attach): ...here.
6007 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
6008 (remove_fork_catchpoint, post_startup_inferior)
6009 (post_attach): Move...
6010 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
6011 (remove_fork_catchpoint, post_startup_inferior)
6012 (post_attach): ...here.
6013
6014 2020-04-24 Tom Tromey <tromey@adacore.com>
6015
6016 * nat/windows-nat.h (struct windows_thread_info)
6017 <pc_adjusted>: New member.
6018 * windows-nat.c (windows_fetch_one_register): Check
6019 pc_adjusted.
6020 (windows_nat_target::get_windows_debug_event)
6021 (windows_nat_target::wait): Set pc_adjusted.
6022
6023 2020-04-24 Tom de Vries <tdevries@suse.de>
6024
6025 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
6026 Run gdb-add-index inside temp dir.
6027
6028 2020-04-23 Tom Tromey <tromey@adacore.com>
6029
6030 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
6031 in loop.
6032
6033 2020-04-23 Luis Machado <luis.machado@linaro.org>
6034
6035 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
6036 get_frame_register instead of gdbarch_unwind_pc.
6037
6038 2020-04-23 Tom de Vries <tdevries@suse.de>
6039
6040 * symtab.c (lookup_global_symbol): Prefer def over decl.
6041
6042 2020-04-23 Tom de Vries <tdevries@suse.de>
6043
6044 PR symtab/25807
6045 * block.c (best_symbol, better_symbol): Promote to external.
6046 * block.h (best_symbol, better_symbol): Declare.
6047 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
6048 decl.
6049
6050 2020-04-23 Tom Tromey <tromey@adacore.com>
6051
6052 PR ada/25837:
6053 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
6054 "const char *", not a "const std::string &".
6055 <name_and_matcher::operator==>: Update.
6056 * unittests/lookup_name_info-selftests.c: Change type of
6057 "result".
6058
6059 2020-04-23 Tom Tromey <tom@tromey.com>
6060
6061 * inferior.h (iterate_over_inferiors): Don't declare.
6062 * inferior.c (iterate_over_inferiors): Remove.
6063 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
6064 Remove.
6065 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
6066 use iterate_over_inferiors.
6067 (darwin_resume_inferior_it)
6068 (struct resume_inferior_threads_param)
6069 (darwin_resume_inferior_threads_it): Remove.
6070 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
6071
6072 2020-04-23 Tom de Vries <tdevries@suse.de>
6073
6074 * blockframe.c (find_pc_partial_function): Use
6075 find_pc_sect_compunit_symtab rather than
6076 objfile->sf->qf->find_pc_sect_compunit_symtab.
6077
6078 2020-04-22 Tom de Vries <tdevries@suse.de>
6079
6080 PR symtab/25764
6081 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
6082 in psymtabs.
6083
6084 2020-04-22 Tom de Vries <tdevries@suse.de>
6085
6086 PR symtab/25801
6087 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
6088 symtabs.
6089
6090 2020-04-22 Tom de Vries <tdevries@suse.de>
6091
6092 PR symtab/25700
6093 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
6094 CU if already created.
6095
6096 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6097
6098 * infrun.c (displaced_step_fixup): Switch to the event_thread
6099 before calling displaced_step_restore, not after.
6100
6101 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6102
6103 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
6104 its inferior is not recorded by us.
6105 (record_btrace_target_open): Replace call to
6106 all_non_exited_threads () with call to current_inferior
6107 ()->non_exited_threads ().
6108 (record_btrace_target::stop_recording): Likewise.
6109 (record_btrace_target::close): Likewise.
6110 (record_btrace_target::wait): Likewise.
6111 (record_btrace_target::record_stop_replaying): Likewise.
6112
6113 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6114
6115 * btrace.c (btrace_enable): Throw an error on double enables and
6116 when enabling recording fails.
6117 (btrace_disable): Throw an error if the thread is not recorded.
6118
6119 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6120
6121 * record-btrace.c (record_btrace_target::fetch_registers): Forward
6122 request if we do not have a thread_info.
6123
6124 2020-04-21 Tom de Vries <tdevries@suse.de>
6125
6126 PR gdb/25471
6127 * thread.c
6128 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
6129 exception in get_frame_id.
6130
6131 2020-04-20 Tom Tromey <tromey@adacore.com>
6132
6133 * python/python.c (struct gdbpy_event): Mark move constructor as
6134 noexcept.
6135 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
6136 constructor as noexcept.
6137 * completer.h (struct completion_result): Mark move constructor as
6138 noexcept.
6139 * completer.c (completion_result::completion_result): Use
6140 initialization style. Don't call reset_match_list.
6141
6142 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
6143
6144 * MAINTAINERS (Write After Approval): Add myself.
6145
6146 2020-04-18 Tom Tromey <tom@tromey.com>
6147
6148 * windows-tdep.c (init_w32_command_list)
6149 (w32_prefix_command_valid): Restore.
6150 (_initialize_windows_tdep): Call init_w32_command_list.
6151
6152 2020-04-18 Tom Tromey <tom@tromey.com>
6153
6154 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
6155 * value.c (value_fn_field): Update.
6156 * valops.c (find_function_in_inferior)
6157 (value_allocate_space_in_inferior): Update.
6158 * tui/tui-winsource.c (tui_update_source_windows_with_line):
6159 Update.
6160 * tui/tui-source.c (tui_source_window::set_contents): Update.
6161 * symtab.c (lookup_global_or_static_symbol)
6162 (find_function_start_sal_1, skip_prologue_sal)
6163 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
6164 * symmisc.c (dump_msymbols, dump_symtab_1)
6165 (maintenance_print_one_line_table): Update.
6166 * symfile.c (init_entry_point_info, section_is_mapped)
6167 (list_overlays_command, simple_read_overlay_table)
6168 (simple_overlay_update_1): Update.
6169 * stap-probe.c (handle_stap_probe): Update.
6170 * stabsread.c (dbx_init_float_type, define_symbol)
6171 (read_one_struct_field, read_enum_type, read_range_type): Update.
6172 * source.c (info_line_command): Update.
6173 * python/python.c (gdbpy_source_objfile_script)
6174 (gdbpy_execute_objfile_script): Update.
6175 * python/py-type.c (save_objfile_types): Update.
6176 * python/py-objfile.c (py_free_objfile): Update.
6177 * python/py-inferior.c (python_new_objfile): Update.
6178 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
6179 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
6180 (maintenance_check_psymtabs): Update.
6181 * printcmd.c (info_address_command): Update.
6182 * objfiles.h (struct objfile) <arch>: New method, from
6183 get_objfile_arch.
6184 (get_objfile_arch): Don't declare.
6185 * objfiles.c (get_objfile_arch): Remove.
6186 (filter_overlapping_sections): Update.
6187 * minsyms.c (msymbol_is_function): Update.
6188 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
6189 (output_nondebug_symbol): Update.
6190 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
6191 (mdebug_expand_psymtab): Update.
6192 * machoread.c (macho_add_oso_symfile): Update.
6193 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
6194 Update.
6195 * linux-fork.c (checkpoint_command): Update.
6196 * linespec.c (convert_linespec_to_sals): Update.
6197 * jit.c (finalize_symtab): Update.
6198 * infrun.c (insert_exception_resume_from_probe): Update.
6199 * ia64-tdep.c (ia64_find_unwind_table): Update.
6200 * hppa-tdep.c (internalize_unwinds): Update.
6201 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
6202 Update.
6203 * gcore.c (call_target_sbrk): Update.
6204 * elfread.c (record_minimal_symbol, elf_symtab_read)
6205 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
6206 (elf_gnu_ifunc_resolve_by_got): Update.
6207 * dwarf2/read.c (create_addrmap_from_index)
6208 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6209 (read_debug_names_from_section)
6210 (process_psymtab_comp_unit_reader, add_partial_symbol)
6211 (add_partial_subprogram, process_full_comp_unit)
6212 (read_file_scope, read_func_scope, read_lexical_block_scope)
6213 (read_call_site_scope, dwarf2_ranges_read)
6214 (dwarf2_record_block_ranges, dwarf2_add_field)
6215 (mark_common_block_symbol_computed, read_tag_pointer_type)
6216 (read_tag_string_type, dwarf2_init_float_type)
6217 (dwarf2_init_complex_target_type, read_base_type)
6218 (partial_die_info::read, partial_die_info::read)
6219 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
6220 (dwarf2_fetch_die_loc_sect_off): Update.
6221 * dwarf2/loc.c (dwarf2_find_location_expression)
6222 (class dwarf_evaluate_loc_desc, rw_pieced_value)
6223 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
6224 (dwarf2_loc_desc_get_symbol_read_needs)
6225 (locexpr_describe_location_piece, locexpr_describe_location_1)
6226 (loclist_describe_location): Update.
6227 * dwarf2/index-write.c (write_debug_names): Update.
6228 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
6229 * dtrace-probe.c (dtrace_process_dof): Update.
6230 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6231 (process_one_symbol): Update.
6232 * ctfread.c (ctf_init_float_type, read_base_type): Update.
6233 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6234 (coff_read_enum_type): Update.
6235 * cli/cli-cmds.c (edit_command, list_command): Update.
6236 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6237 * breakpoint.c (create_overlay_event_breakpoint)
6238 (create_longjmp_master_breakpoint)
6239 (create_std_terminate_master_breakpoint)
6240 (create_exception_master_breakpoint, get_sal_arch): Update.
6241 * block.c (block_gdbarch): Update.
6242 * annotate.c (annotate_source_line): Update.
6243
6244 2020-04-17 Tom Tromey <tromey@adacore.com>
6245
6246 * auto-load.c (show_auto_load_cmd): Remove.
6247 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6248 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6249 (maintenance_print_arc_command): Remove.
6250 * tui/tui-win.c (tui_command): Remove.
6251 (tui_get_cmd_list): Use add_basic_prefix_cmd.
6252 * tui/tui-layout.c (tui_layout_command): Remove.
6253 (_initialize_tui_layout): Use add_basic_prefix_cmd.
6254 * python/python.c (user_set_python, user_show_python): Remove.
6255 (_initialize_python): Use add_basic_prefix_cmd,
6256 add_show_prefix_cmd.
6257 * guile/guile.c (set_guile_command, show_guile_command): Remove.
6258 (install_gdb_commands): Use add_basic_prefix_cmd,
6259 add_show_prefix_cmd.
6260 (info_guile_command): Remove.
6261 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6262 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6263 add_show_prefix_cmd.
6264 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6265 Remove do_set and do_show parameters.
6266 * cli/cli-style.c (set_style, show_style): Remove.
6267 (_initialize_cli_style): Use add_basic_prefix_cmd,
6268 add_show_prefix_cmd.
6269 (cli_style_option::add_setshow_commands): Remove do_set and
6270 do_show parameters.
6271 (cli_style_option::add_setshow_commands): Use
6272 add_basic_prefix_cmd, add_show_prefix_cmd.
6273 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6274 (set_style_name): Remove.
6275 * cli/cli-dump.c (dump_command, append_command): Remove.
6276 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6277 (tekhex_dump_command, binary_dump_command)
6278 (binary_append_command): Remove.
6279 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6280 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6281 (init_w32_command_list): Remove; move into ...
6282 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6283 * valprint.c (set_print, show_print, set_print_raw)
6284 (show_print_raw): Remove.
6285 (_initialize_valprint): Use add_basic_prefix_cmd,
6286 add_show_prefix_cmd.
6287 * typeprint.c (set_print_type, show_print_type): Remove.
6288 (_initialize_typeprint): Use add_basic_prefix_cmd,
6289 add_show_prefix_cmd.
6290 * record.c (set_record_command, show_record_command): Remove.
6291 (_initialize_record): Use add_basic_prefix_cmd,
6292 add_show_prefix_cmd.
6293 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6294 add_show_prefix_cmd.
6295 (info_command, show_command, set_debug, show_debug): Remove.
6296 * top.h (set_history, show_history): Don't declare.
6297 * top.c (set_history, show_history): Remove.
6298 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6299 (unset_tdesc_cmd): Remove.
6300 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6301 add_show_prefix_cmd.
6302 * symtab.c (info_module_command): Remove.
6303 (_initialize_symtab): Use add_basic_prefix_cmd.
6304 * symfile.c (overlay_command): Remove.
6305 (_initialize_symfile): Use add_basic_prefix_cmd.
6306 * sparc64-tdep.c (info_adi_command): Remove.
6307 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6308 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6309 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6310 add_show_prefix_cmd.
6311 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6312 (_initialize_serial): Use add_basic_prefix_cmd,
6313 add_show_prefix_cmd.
6314 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6315 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6316 add_show_prefix_cmd.
6317 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6318 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6319 add_show_prefix_cmd.
6320 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6321 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6322 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6323 add_show_prefix_cmd.
6324 * remote.c (remote_command, set_remote_cmd): Remove.
6325 (_initialize_remote): Use add_basic_prefix_cmd.
6326 * record-full.c (set_record_full_command)
6327 (show_record_full_command): Remove.
6328 (_initialize_record_full): Use add_basic_prefix_cmd,
6329 add_show_prefix_cmd.
6330 * record-btrace.c (cmd_set_record_btrace)
6331 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6332 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6333 (cmd_show_record_btrace_pt): Remove.
6334 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6335 add_show_prefix_cmd.
6336 * ravenscar-thread.c (set_ravenscar_command)
6337 (show_ravenscar_command): Remove.
6338 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6339 add_show_prefix_cmd.
6340 * mips-tdep.c (show_mips_command, set_mips_command)
6341 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6342 add_show_prefix_cmd.
6343 * maint.c (maintenance_command, maintenance_info_command)
6344 (maintenance_check_command, maintenance_print_command)
6345 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6346 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6347 add_show_prefix_cmd.
6348 (show_per_command_cmd): Remove.
6349 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6350 Remove.
6351 (maintenance_show_test_settings_cmd): Remove.
6352 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6353 add_show_prefix_cmd.
6354 * maint-test-options.c (maintenance_test_options_command):
6355 Remove.
6356 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6357 * macrocmd.c (macro_command): Remove
6358 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6359 * language.c (set_check, show_check): Remove.
6360 (_initialize_language): Use add_basic_prefix_cmd,
6361 add_show_prefix_cmd.
6362 * infcmd.c (unset_command): Remove.
6363 (_initialize_infcmd): Use add_basic_prefix_cmd.
6364 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6365 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6366 add_show_prefix_cmd.
6367 * go32-nat.c (go32_info_dos_command): Remove.
6368 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6369 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6370 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6371 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6372 (_initialize_frame): Use add_basic_prefix_cmd,
6373 add_show_prefix_cmd.
6374 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6375 (_initialize_dcache): Use add_basic_prefix_cmd,
6376 add_show_prefix_cmd.
6377 * cp-support.c (maint_cplus_command): Remove.
6378 (_initialize_cp_support): Use add_basic_prefix_cmd.
6379 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6380 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6381 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6382 add_basic_prefix_cmd, add_show_prefix_cmd.
6383 * breakpoint.c (save_command): Remove.
6384 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6385 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6386 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6387 add_show_prefix_cmd.
6388 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6389 (set_ada_command, show_ada_command): Remove.
6390 (_initialize_ada_language): Use add_basic_prefix_cmd,
6391 add_show_prefix_cmd.
6392 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6393
6394 2020-04-16 Kamil Rytarowski <n54@gmx.com>
6395
6396 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6397 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6398
6399 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6400
6401 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6402 warning messages.
6403
6404 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6405
6406 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6407 import table is not at beginning of .idata section.
6408
6409 2020-04-16 Pedro Alves <palves@redhat.com>
6410
6411 * inferior.c (delete_inferior): Use delete operator directly
6412 instead of delete_program_space.
6413 * progspace.c (add_program_space): New, factored out from
6414 program_space::program_space.
6415 (remove_program_space): New, factored out from
6416 delete_program_space.
6417 (program_space::program_space): Remove intro comment. Rewrite.
6418 (program_space::~program_space): Remove intro comment. Call
6419 remove_program_space.
6420 (delete_program_space): Delete.
6421 * progspace.h (program_space::program_space): Make explicit. Move
6422 intro comment here, adjusted.
6423 (program_space::~program_space): Move intro comment here,
6424 adjusted.
6425 (delete_program_space): Remove.
6426
6427 2020-04-16 Tom Tromey <tromey@adacore.com>
6428
6429 * windows-nat.c (windows_nat::handle_access_violation): New
6430 function.
6431 * nat/windows-nat.h (handle_access_violation): Declare.
6432 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6433 windows-nat.c. Call handle_access_violation.
6434
6435 2020-04-16 Tom de Vries <tdevries@suse.de>
6436
6437 PR symtab/25791
6438 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6439 CUs without psymtab.
6440
6441 2020-04-16 Kevin Buettner <kevinb@redhat.com>
6442
6443 * python/python.c (do_start_initialization): Don't call
6444 PyEval_InitThreads for Python 3.9 and beyond.
6445
6446 2020-04-15 Kamil Rytarowski <n54@gmx.com>
6447
6448 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6449 thread functions.
6450 (obsd_nat_target::wait): Likewise.
6451
6452 2020-04-15 Tom Tromey <tromey@adacore.com>
6453
6454 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6455 (DEBUG_EXCEPT): Use debug_printf.
6456
6457 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6458
6459 * completer.c (class completion_tracker::completion_hash_entry)
6460 <hash_name>: New member function.
6461 (completion_tracker::discard_completions): New callback to hash a
6462 completion_hash_entry, pass this to htab_create_alloc.
6463
6464 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6465
6466 * windows-nat.c (windows_make_so): Warn rather than stopping with
6467 an error if realpath() fails.
6468
6469 2020-04-14 Kamil Rytarowski <n54@gmx.com>
6470
6471 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6472 (nbsd_nat_target::info_proc): Add do_status.
6473
6474 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6475 Tom de Vries <tdevries@suse.de>
6476
6477 PR symtab/25718
6478 * psympriv.h (struct partial_symtab::read_symtab)
6479 (struct partial_symtab::expand_psymtab)
6480 (struct partial_symtab::read_dependencies): Update comments.
6481 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6482 read_symtab for includer.
6483 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6484 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6485 (struct dwarf2_include_psymtab::m_readin): Remove.
6486 (struct dwarf2_include_psymtab::includer): New member function.
6487 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6488
6489 2020-04-14 Tom de Vries <tdevries@suse.de>
6490
6491 PR symtab/25720
6492 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6493 with NULL symbol_matcher and lookup_name.
6494 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6495 and lookup_name.
6496 * dwarf2/read.c (dw2_expand_symtabs_matching)
6497 (dw2_debug_names_expand_symtabs_matching): Same.
6498 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6499 Make lookup_name a pointer. Update comment.
6500 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6501 lookup_name being a pointer.
6502 * symfile.c (expand_symtabs_matching): Same.
6503 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6504 * linespec.c (iterate_over_all_matching_symtabs): Same.
6505
6506 2020-04-13 Tom Tromey <tom@tromey.com>
6507
6508 * run-on-main-thread.c: Update include.
6509 * unittests/main-thread-selftests.c: Update include.
6510 * tui/tui-win.c: Update include.
6511 * tui/tui-io.c: Update include.
6512 * tui/tui-interp.c: Update include.
6513 * tui/tui-hooks.c: Update include.
6514 * top.h: Update include.
6515 * top.c: Update include.
6516 * ser-base.c: Update include.
6517 * remote.c: Update include.
6518 * remote-notif.c: Update include.
6519 * remote-fileio.c: Update include.
6520 * record-full.c: Update include.
6521 * record-btrace.c: Update include.
6522 * python/python.c: Update include.
6523 * posix-hdep.c: Update include.
6524 * mingw-hdep.c: Update include.
6525 * mi/mi-main.c: Update include.
6526 * mi/mi-interp.c: Update include.
6527 * main.c: Update include.
6528 * linux-nat.c: Update include.
6529 * interps.c: Update include.
6530 * infrun.c: Update include.
6531 * inf-loop.c: Update include.
6532 * event-top.c: Update include.
6533 * event-loop.c: Move to ../gdbsupport/.
6534 * event-loop.h: Move to ../gdbsupport/.
6535 * async-event.h: Update include.
6536 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6537
6538 2020-04-13 Tom Tromey <tom@tromey.com>
6539
6540 * tui/tui-win.c: Include async-event.h.
6541 * remote.c: Include async-event.h.
6542 * remote-notif.c: Include async-event.h.
6543 * record-full.c: Include async-event.h.
6544 * record-btrace.c: Include async-event.h.
6545 * infrun.c: Include async-event.h.
6546 * event-top.c: Include async-event.h.
6547 * event-loop.h: Move some declarations to async-event.h.
6548 * event-loop.c: Don't include ser-event.h or top.h. Move some
6549 code to async-event.c.
6550 * async-event.h: New file.
6551 * async-event.c: New file.
6552 * Makefile.in (COMMON_SFILES): Add async-event.c.
6553 (HFILES_NO_SRCDIR): Add async-event.h.
6554
6555 2020-04-13 Tom Tromey <tom@tromey.com>
6556
6557 * utils.c (flush_streams): New function.
6558 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6559
6560 2020-04-13 Tom Tromey <tom@tromey.com>
6561
6562 * event-loop.c (handle_file_event): Use warning, not
6563 printf_unfiltered.
6564
6565 2020-04-13 Tom Tromey <tom@tromey.com>
6566
6567 * event-loop.c: Include <chrono>.
6568
6569 2020-04-13 Tom Tromey <tom@tromey.com>
6570
6571 * gdb_select.h: Move to ../gdbsupport/.
6572 * event-loop.c: Update include path.
6573 * top.c: Update include path.
6574 * ser-base.c: Update include path.
6575 * ui-file.c: Update include path.
6576 * ser-tcp.c: Update include path.
6577 * guile/scm-ports.c: Update include path.
6578 * posix-hdep.c: Update include path.
6579 * ser-unix.c: Update include path.
6580 * gdb_usleep.c: Update include path.
6581 * mingw-hdep.c: Update include path.
6582 * inflow.c: Update include path.
6583 * infrun.c: Update include path.
6584 * event-top.c: Update include path.
6585
6586 2020-04-13 Tom Tromey <tom@tromey.com>
6587
6588 * configure: Rebuild.
6589 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6590
6591 2020-04-13 Tom Tromey <tom@tromey.com>
6592
6593 * event-loop.h (start_event_loop): Don't declare.
6594 * event-loop.c (start_event_loop): Move...
6595 * main.c (start_event_loop): ...here. Now static.
6596
6597 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6598
6599 * MAINTAINERS: Update my email address.
6600
6601 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6602
6603 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6604 IP_ALL.
6605
6606 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6607
6608 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
6609 (nbsd_nat_target::info_proc): Add do_cmdline.
6610
6611 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6612
6613 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
6614 (nbsd_nat_target::info_proc): Add do_cwd.
6615
6616 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6617
6618 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6619
6620 2020-04-11 Kamil Rytarowski <n54@gmx.com>
6621
6622 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6623 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6624 (nbsd_nat_target::info_proc): New functions.
6625 * nbsd-nat.c (kinfo_get_vmmap): New function.
6626 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6627 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6628 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6629 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6630 functions.
6631 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6632 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6633 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6634 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6635 (KINFO_VME_FLAG_GROWS_DOWN): New.
6636
6637 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6638
6639 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6640 bit shift.
6641
6642 2020-04-10 Tom Tromey <tromey@adacore.com>
6643
6644 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6645
6646 2020-04-10 Tom Tromey <tromey@adacore.com>
6647
6648 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6649 separate debug files.
6650
6651 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
6652
6653 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6654 Move to...
6655 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6656 ... here.
6657 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6658 Check for STATUS_WX86_BREAKPOINT.
6659 (windows_nat_target::wait): Same.
6660
6661 2020-04-10 Tom de Vries <tdevries@suse.de>
6662
6663 PR cli/25808
6664 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6665
6666 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6667
6668 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6669 (Write After Approval): Remove Tom de Vries.
6670
6671 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6672
6673 revert partially:
6674 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6675
6676 * buildsym.c (record_line): Fix undefined behavior and preserve
6677 lines at eof.
6678
6679 2020-04-09 Kamil Rytarowski <n54@gmx.com>
6680
6681 * auxv.h (svr4_auxv_parse): New.
6682 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6683 and generic_auxv_parse.
6684 (svr4_auxv_parse): Add.
6685 * obsd-tdep.c: Include "auxv.h".
6686 (obsd_auxv_parse): Remove.
6687 (obsd_init_abi): Remove comment.
6688 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6689 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6690 * nbsd-tdep.c: Include "auxv.h".
6691 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6692
6693 2020-04-08 Tom Tromey <tromey@adacore.com>
6694
6695 * nat/windows-nat.h (last_wait_event): Don't declare.
6696 (wait_for_debug_event): Update comment.
6697 * nat/windows-nat.c (last_wait_event): Now static.
6698
6699 2020-04-08 Tom Tromey <tromey@adacore.com>
6700
6701 * windows-nat.c (wait_for_debug_event): Move to
6702 nat/windows-nat.c.
6703 * nat/windows-nat.h (wait_for_debug_event): Declare.
6704 * nat/windows-nat.c (wait_for_debug_event): Move from
6705 windows-nat.c. No longer static.
6706
6707 2020-04-08 Tom Tromey <tromey@adacore.com>
6708
6709 * windows-nat.c (get_windows_debug_event): Use
6710 fetch_pending_stop.
6711 * nat/windows-nat.h (fetch_pending_stop): Declare.
6712 * nat/windows-nat.c (fetch_pending_stop): New function.
6713
6714 2020-04-08 Tom Tromey <tromey@adacore.com>
6715
6716 * windows-nat.c (windows_continue): Use matching_pending_stop and
6717 continue_last_debug_event.
6718 * nat/windows-nat.h (matching_pending_stop)
6719 (continue_last_debug_event): Declare.
6720 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6721 (matching_pending_stop, continue_last_debug_event): New
6722 functions.
6723
6724 2020-04-08 Tom Tromey <tromey@adacore.com>
6725
6726 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6727 (handle_exception_result): Move to nat/windows-nat.h.
6728 (DEBUG_EXCEPTION_SIMPLE): Remove.
6729 (windows_nat::handle_ms_vc_exception): New function.
6730 (handle_exception): Move to nat/windows-nat.c.
6731 (get_windows_debug_event): Update.
6732 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6733 nat/windows-nat.c.
6734 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6735 (handle_exception_result): Move from windows-nat.c.
6736 (handle_exception): Declare.
6737 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6738 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6739 windows-nat.c.
6740
6741 2020-04-08 Tom Tromey <tromey@adacore.com>
6742
6743 * windows-nat.c (exception_count, event_count): Remove.
6744 (handle_exception, get_windows_debug_event)
6745 (do_initial_windows_stuff): Update.
6746
6747 2020-04-08 Tom Tromey <tromey@adacore.com>
6748
6749 * windows-nat.c (windows_nat::handle_load_dll)
6750 (windows_nat::handle_unload_dll): Rename. No longer static.
6751 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6752 Declare.
6753
6754 2020-04-08 Tom Tromey <tromey@adacore.com>
6755
6756 * complaints.h (stop_whining): Declare at top-level.
6757 (complaint): Don't declare stop_whining.
6758
6759 2020-04-08 Tom Tromey <tromey@adacore.com>
6760
6761 * windows-nat.c (windows_nat::handle_output_debug_string):
6762 Rename. No longer static.
6763 * nat/windows-nat.h (handle_output_debug_string): Declare.
6764
6765 2020-04-08 Tom Tromey <tromey@adacore.com>
6766
6767 * windows-nat.c (current_process_handle, current_process_id)
6768 (main_thread_id, last_sig, current_event, last_wait_event)
6769 (current_windows_thread, desired_stop_thread_id, pending_stops)
6770 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6771 (display_selectors, fake_create_process)
6772 (get_windows_debug_event): Update.
6773 * nat/windows-nat.h (current_process_handle, current_process_id)
6774 (main_thread_id, last_sig, current_event, last_wait_event)
6775 (current_windows_thread, desired_stop_thread_id, pending_stops)
6776 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6777 * nat/windows-nat.c (current_process_handle, current_process_id)
6778 (main_thread_id, last_sig, current_event, last_wait_event)
6779 (current_windows_thread, desired_stop_thread_id, pending_stops)
6780 (siginfo_er): New globals. Move from windows-nat.c.
6781
6782 2020-04-08 Tom Tromey <tromey@adacore.com>
6783
6784 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6785 (handle_load_dll): Update.
6786 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6787
6788 2020-04-08 Tom Tromey <tromey@adacore.com>
6789
6790 * windows-nat.c (enum thread_disposition_type): Move to
6791 nat/windows-nat.h.
6792 (windows_nat::thread_rec): Rename from thread_rec. No longer
6793 static.
6794 (windows_add_thread, windows_nat_target::fetch_registers)
6795 (windows_nat_target::store_registers, handle_exception)
6796 (windows_nat_target::resume, get_windows_debug_event)
6797 (windows_nat_target::get_tib_address)
6798 (windows_nat_target::thread_name)
6799 (windows_nat_target::thread_alive): Update.
6800 * nat/windows-nat.h (enum thread_disposition_type): Move from
6801 windows-nat.c.
6802 (thread_rec): Declare.
6803
6804 2020-04-08 Tom Tromey <tromey@adacore.com>
6805
6806 * windows-nat.c: Add "using namespace".
6807 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6808 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6809
6810 2020-04-08 Tom Tromey <tromey@adacore.com>
6811
6812 * nat/windows-nat.h (struct windows_thread_info): Declare
6813 destructor.
6814 * nat/windows-nat.c (~windows_thread_info): New.
6815
6816 2020-04-08 Tom Tromey <tromey@adacore.com>
6817
6818 PR gdb/22992
6819 * windows-nat.c (current_event): Update comment.
6820 (last_wait_event, desired_stop_thread_id): New globals.
6821 (struct pending_stop): New.
6822 (pending_stops): New global.
6823 (windows_nat_target) <stopped_by_sw_breakpoint>
6824 <supports_stopped_by_sw_breakpoint>: New methods.
6825 (windows_fetch_one_register): Add assertions. Adjust PC.
6826 (windows_continue): Handle pending stops. Suspend other threads
6827 when stepping. Use last_wait_event
6828 (wait_for_debug_event): New function.
6829 (get_windows_debug_event): Use wait_for_debug_event. Handle
6830 pending stops. Queue spurious stops.
6831 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6832 (windows_nat_target::kill): Use wait_for_debug_event.
6833 * nat/windows-nat.h (struct windows_thread_info)
6834 <stopped_at_software_breakpoint>: New field.
6835 * nat/windows-nat.c (windows_thread_info::resume): Clear
6836 stopped_at_software_breakpoint.
6837
6838 2020-04-08 Tom Tromey <tromey@adacore.com>
6839
6840 * windows-nat.c (enum thread_disposition_type): New.
6841 (thread_rec): Replace "get_context" parameter with "disposition";
6842 change type.
6843 (windows_add_thread, windows_nat_target::fetch_registers)
6844 (windows_nat_target::store_registers, handle_exception)
6845 (windows_nat_target::resume, get_windows_debug_event)
6846 (windows_nat_target::get_tib_address)
6847 (windows_nat_target::thread_name)
6848 (windows_nat_target::thread_alive): Update.
6849
6850 2020-04-08 Tom Tromey <tromey@adacore.com>
6851
6852 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6853 (windows_continue): Use windows_continue::resume.
6854 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6855 resume>: Declare new methods.
6856 * nat/windows-nat.c: New file.
6857 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6858
6859 2020-04-08 Tom Tromey <tromey@adacore.com>
6860
6861 * windows-nat.c (windows_add_thread, windows_delete_thread)
6862 (windows_nat_target::fetch_registers)
6863 (windows_nat_target::store_registers, fake_create_process)
6864 (windows_nat_target::resume, windows_nat_target::resume)
6865 (get_windows_debug_event, windows_nat_target::wait)
6866 (windows_nat_target::pid_to_str)
6867 (windows_nat_target::get_tib_address)
6868 (windows_nat_target::get_ada_task_ptid)
6869 (windows_nat_target::thread_name)
6870 (windows_nat_target::thread_alive): Use lwp, not tid.
6871
6872 2020-04-08 Tom Tromey <tromey@adacore.com>
6873
6874 * windows-nat.c (handle_exception)
6875 (windows_nat_target::thread_name): Update.
6876 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6877 <name>: Now unique_xmalloc_ptr.
6878
6879 2020-04-08 Tom Tromey <tromey@adacore.com>
6880
6881 * windows-nat.c (thread_rec)
6882 (windows_nat_target::fetch_registers): Update.
6883 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6884 Update comment.
6885 <debug_registers_changed, reload_context>: Now bool.
6886
6887 2020-04-08 Tom Tromey <tromey@adacore.com>
6888
6889 * windows-nat.c (windows_add_thread): Use new.
6890 (windows_init_thread_list, windows_delete_thread): Use delete.
6891 (get_windows_debug_event): Update.
6892 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6893 destructor, and initializers.
6894
6895 2020-04-08 Tom Tromey <tromey@adacore.com>
6896
6897 * windows-nat.c (struct windows_thread_info): Remove.
6898 * nat/windows-nat.h: New file.
6899
6900 2020-04-08 Tom Tromey <tromey@adacore.com>
6901
6902 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6903 (thread_rec, windows_add_thread, windows_delete_thread)
6904 (windows_continue): Update.
6905
6906 2020-04-08 Tom Tromey <tromey@adacore.com>
6907
6908 * windows-nat.c (struct windows_thread_info): Remove typedef.
6909 (thread_head): Remove.
6910 (thread_list): New global.
6911 (thread_rec, windows_add_thread, windows_init_thread_list)
6912 (windows_delete_thread, windows_continue): Update.
6913
6914 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6915
6916 * windows-tdep.h (windows_init_abi): Add comment.
6917 (cygwin_init_abi): New declaration.
6918 * windows-tdep.c: Split signal enumeration in two, one for
6919 Windows and one for Cygwin.
6920 (windows_gdb_signal_to_target): Only deal with signal of the
6921 Windows OS ABI.
6922 (cygwin_gdb_signal_to_target): New function.
6923 (windows_init_abi): Rename to windows_init_abi_common, don't set
6924 gdb_signal_to_target gdbarch method. Add new new function with
6925 this name.
6926 (cygwin_init_abi): New function.
6927 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6928 comment. Don't call windows_init_abi.
6929 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6930 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6931 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6932 i386_windows_init_abi_common, don't call windows_init_abi. Add
6933 a new function of this name.
6934 (i386_cygwin_init_abi): New function.
6935 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6936 OS ABI Cygwin.
6937
6938 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6939
6940 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6941 parameter.c.
6942 (dwarf2_read_gdb_index): Update.
6943
6944 2020-04-07 Kamil Rytarowski <n54@gmx.com>
6945
6946 * nbsd-tdep.c: Include "objfiles.h".
6947 (nbsd_skip_solib_resolver): New.
6948 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6949
6950 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6951
6952 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6953 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6954 with DW_LLE_base_addressx are being emitted in DWARFv5.
6955 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6956 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6957 unsigned integer.
6958
6959 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6960
6961 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6962 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6963 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6964 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6965 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6966 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6967 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6968
6969
6970 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6971
6972 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6973 (read_loclist_index): New function definition.
6974 (lookup_loclist_base): New function definition.
6975 (read_loclist_header): New function definition.
6976 (dwarf2_cu): Add loclist_base and loclist_header field.
6977 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6978 (read_full_die_1): Read the value of DW_AT_loclists_base.
6979 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6980 (read_attribute_value): Handle DW_FORM_loclistx.
6981 (skip_one_die): Handle DW_FORM_loclistx.
6982 (loclist_header): New structure declaration.
6983 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6984
6985 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6986
6987 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6988 constructor. Remove `addr` parameter from other constructor and
6989 add `per_cu` parameter.
6990 * dwarf2/read.c (create_partial_symtab): Update.
6991
6992 2020-04-07 Tom de Vries <tdevries@suse.de>
6993
6994 PR symtab/25796
6995 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6996 (partial_die_info::fixup): Inherit has_const_value.
6997
6998 2020-04-07 Tom de Vries <tdevries@suse.de>
6999
7000 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
7001 symbols without address.
7002
7003 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7004
7005 * nbsd-nat.h (struct thread_info): Add forward declaration.
7006 (nbsd_nat_target::thread_alive): Add.
7007 (nbsd_nat_target::thread_name): Likewise.
7008 (nbsd_nat_target::update_thread_list): Likewise.
7009 (update_thread_list::post_attach): Likewise.
7010 (post_attach::pid_to_str): Likewise.
7011 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
7012 (nbsd_thread_lister): Add.
7013 (nbsd_nat_target::thread_alive): Likewise.
7014 (nbsd_nat_target::thread_name): Likewise.
7015 (nbsd_add_threads): Likewise.
7016 (update_thread_list::post_attach): Likewise.
7017 (nbsd_nat_target::update_thread_list): Likewise.
7018 (post_attach::pid_to_str): Likewise.
7019
7020 2020-04-06 Tom Tromey <tromey@adacore.com>
7021
7022 * ada-valprint.c (print_variant_part): Extract the variant field.
7023 (print_field_values): Use the field as the outer value when
7024 recursing.
7025
7026 2020-04-06 Tom Tromey <tromey@adacore.com>
7027
7028 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
7029 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
7030 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
7031 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
7032 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
7033
7034 2020-04-06 Tom Tromey <tromey@adacore.com>
7035
7036 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
7037 TYPE_CODE_ERROR.
7038
7039 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7040
7041 * nbsd-tdep.c: Include "gdbarch.h".
7042 Define enum with NetBSD signal numbers.
7043 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
7044 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
7045 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
7046 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
7047 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
7048 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
7049 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
7050 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
7051 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
7052 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7053 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7054 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
7055
7056 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
7057
7058 PR gdb/25325
7059 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
7060
7061 2020-04-03 Tom Tromey <tromey@adacore.com>
7062
7063 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
7064 Read constant block.
7065
7066 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7067
7068 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
7069 (gdb_bfd_get_full_section_contents): New declaration.
7070 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
7071 * windows-tdep.c (is_linked_with_cygwin_dll): Use
7072 gdb_bfd_get_full_section_contents.
7073
7074 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7075
7076 * exec.c (build_section_table): Replace internal_error with
7077 gdb_assert.
7078 (section_table_xfer_memory_partial): Likewise.
7079 * mdebugread.c (parse_partial_symbols): Likewise.
7080 * psymtab.c (lookup_partial_symbol): Likewise.
7081 * utils.c (wrap_here): Likewise.
7082
7083 2020-04-02 Tom Tromey <tromey@adacore.com>
7084
7085 * f-lang.c (build_fortran_types): Use arch_type to initialize
7086 builtin_complex_s32 in the TYPE_CODE_ERROR case.
7087
7088 2020-04-02 Tom Tromey <tromey@adacore.com>
7089
7090 * dwarf2/read.c (partial_die_info::read): Do not create a vector
7091 of attributes.
7092
7093 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
7094 Bernd Edlinger <bernd.edlinger@hotmail.de>
7095 Tom Tromey <tromey@adacore.com>
7096
7097 * buildsym.c (buildsym_compunit::record_line): Remove
7098 deduplication code.
7099
7100 2020-04-02 Tom de Vries <tdevries@suse.de>
7101
7102 PR ada/24671
7103 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
7104
7105 2020-04-02 Tom de Vries <tdevries@suse.de>
7106
7107 * dwarf2/read.c (dwarf2_gdb_index_functions,
7108 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
7109 NULL.
7110 * psymtab.c (psym_lookup_global_symbol_language): New function.
7111 (psym_functions): Init psym_lookup_global_symbol_language with
7112 psym_lookup_global_symbol_language.
7113 * symfile-debug.c (debug_sym_quick_functions): Init
7114 lookup_global_symbol_language with NULL.
7115 * symfile.c (set_initial_language): Remove fixme comment.
7116 * symfile.h (struct quick_symbol_functions): Add
7117 lookup_global_symbol_language.
7118 * symtab.c (find_quick_global_symbol_language): New function.
7119 (find_main_name): Use find_quick_global_symbol_language.
7120
7121 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
7122
7123 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
7124
7125 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7126
7127 * buildsym.c (record_line): Fix undefined behavior and preserve
7128 lines at eof.
7129
7130 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7131
7132 * buildsym.c (record_line): Fix the resizing condition.
7133
7134 2020-04-01 Tom Tromey <tom@tromey.com>
7135
7136 * value.h (value_literal_complex): Add comment.
7137 * valops.c (value_literal_complex): Refer to value.h.
7138
7139 2020-04-01 Tom Tromey <tom@tromey.com>
7140
7141 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
7142 (scalar_type): New rule, from typebase.
7143 (typebase): Use scalar_type. Recognize complex types.
7144 (field_name): Handle FLOAT_KEYWORD.
7145 (ident_tokens): Add _Complex and __complex__.
7146
7147 2020-04-01 Tom Tromey <tom@tromey.com>
7148
7149 PR exp/25299:
7150 * valarith.c (promotion_type, complex_binop): New functions.
7151 (scalar_binop): Handle complex numbers. Use promotion_type.
7152 (value_pos, value_neg, value_complement): Handle complex numbers.
7153
7154 2020-04-01 Tom Tromey <tom@tromey.com>
7155
7156 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
7157 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
7158 (parse_number): Handle complex numbers.
7159
7160 2020-04-01 Tom Tromey <tom@tromey.com>
7161
7162 * c-valprint.c (c_decorations): Change complex suffix to "i".
7163
7164 2020-04-01 Tom Tromey <tom@tromey.com>
7165
7166 * valprint.c (generic_value_print_complex): Use accessors.
7167 * value.h (value_real_part, value_imaginary_part): Declare.
7168 * valops.c (value_real_part, value_imaginary_part): New
7169 functions.
7170 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
7171
7172 2020-04-01 Tom Tromey <tom@tromey.com>
7173
7174 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
7175 (read_range_type): Update.
7176 * mdebugread.c (basic_type): Update.
7177 * go-lang.c (build_go_types): Use init_complex_type.
7178 * gdbtypes.h (struct main_type) <complex_type>: New member.
7179 (init_complex_type): Update.
7180 (arch_complex_type): Don't declare.
7181 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
7182 Make name if none given. Use alloc_type_copy. Look for cached
7183 complex type.
7184 (arch_complex_type): Remove.
7185 (gdbtypes_post_init): Use init_complex_type.
7186 * f-lang.c (build_fortran_types): Use init_complex_type.
7187 * dwarf2/read.c (read_base_type): Update.
7188 * d-lang.c (build_d_types): Use init_complex_type.
7189 * ctfread.c (read_base_type): Update.
7190
7191 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7192
7193 * infrun.c (stop_all_threads): Update assertion, plus when
7194 stopping threads, take into account that we might be trying
7195 to stop an all-stop target.
7196 (stop_waiting): Call 'stop_all_threads' if there exists a
7197 non-stop target.
7198
7199 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7200
7201 * target.h (exists_non_stop_target): New function declaration.
7202 * target.c (exists_non_stop_target): New function.
7203
7204 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
7205
7206 PR gdb/24789
7207 * eval.c (is_integral_or_integral_reference): New function.
7208 (evaluate_subexp_standard): Allow integer references in
7209 pointer arithmetic.
7210
7211 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7212
7213 * remote.c (remote_target::remote_parse_stop_reply): Remove the
7214 check for no ptid in the stop reply when the target is non-stop.
7215
7216 2020-04-01 Tom Tromey <tromey@adacore.com>
7217
7218 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
7219 "name" parameter to rvalue reference. Initialize m_name_holder.
7220 <lookup_name_info>: New overloads.
7221 <name>: Return gdb::string_view.
7222 <c_str>: New method.
7223 <make_ignore_params>: Update.
7224 <search_name_hash>: Update.
7225 <language_lookup_name>: Return const char *.
7226 <m_name>: Change type.
7227 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
7228 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
7229 (lookup_name_info::match_any): Update.
7230 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7231 Update.
7232 * minsyms.c (linkage_name_str): Update.
7233 * language.c (default_symbol_name_matcher): Update.
7234 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7235 Update.
7236 * ada-lang.c (ada_fold_name): Change parameter to string_view.
7237 (ada_lookup_name_info::ada_lookup_name_info): Update.
7238 (literal_symbol_name_matcher): Update.
7239
7240 2020-04-01 Tom Tromey <tromey@adacore.com>
7241
7242 * psymtab.c (psymtab_search_name): Remove function.
7243 (psym_lookup_symbol): Create search name and lookup name here.
7244 (lookup_partial_symbol): Remove "name" parameter; add
7245 lookup_name.
7246 (psym_expand_symtabs_for_function): Update.
7247
7248 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
7249
7250 PR tui/25597:
7251 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7252
7253 2020-03-31 Tom Tromey <tromey@adacore.com>
7254
7255 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7256 memcpy.
7257
7258 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
7259
7260 * features/riscv/32bit-csr.xml: Regenerated.
7261 * features/riscv/64bit-csr.xml: Regenerated.
7262
7263 2020-03-30 Tom Tromey <tromey@adacore.com>
7264
7265 * ada-valprint.c (print_variant_part): Update.
7266 * ada-lang.h (ada_which_variant_applies): Update.
7267 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7268 outer_valaddr parameters; replace with "outer" value parameter.
7269 (to_fixed_variant_branch_type): Update.
7270
7271 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7272
7273 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7274 <list>. Remove inclusion of observable.h.
7275 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7276 (struct arch_lwp_info): New struct.
7277 (class ppc_linux_dreg_interface): New class.
7278 (struct ppc_linux_process_info): New struct.
7279 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7280 <low_new_clone, low_forget_process, low_prepare_to_resume>
7281 <copy_thread_dreg_state, mark_thread_stale>
7282 <mark_debug_registers_changed, register_hw_breakpoint>
7283 <clear_hw_breakpoint, register_wp, clear_wp>
7284 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7285 <num_memory_accesses, get_trigger_type>
7286 <create_watchpoint_request, hwdebug_point_cmp>
7287 <init_arch_lwp_info, get_arch_lwp_info>
7288 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7289 methods.
7290 <struct ptid_hash>: New inner struct.
7291 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7292 members.
7293 (saved_dabr_value, hwdebug_info, max_slots_number)
7294 (struct hw_break_tuple, struct thread_points, ppc_threads)
7295 (have_ptrace_hwdebug_interface)
7296 (hwdebug_find_thread_points_by_tid)
7297 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7298 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7299 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7300 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7301 use m_dreg_interface.
7302 (hwdebug_point_cmp): Change to...
7303 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7304 reference arguments instead of pointers.
7305 (ppc_linux_nat_target::ranged_break_num_registers): Use
7306 m_dreg_interface.
7307 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7308 m_dreg_interface. Call register_hw_breakpoint.
7309 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7310 m_dreg_interface. Call clear_hw_breakpoint.
7311 (get_trigger_type): Change to...
7312 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7313 comment.
7314 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7315 use m_dreg_interface. Call register_hw_breakpoint.
7316 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7317 use m_dreg_interface. Call clear_hw_breakpoint.
7318 (can_use_watchpoint_cond_accel): Change to...
7319 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7320 method. Update comment, use m_dreg_interface and
7321 m_process_info.
7322 (calculate_dvc): Change to...
7323 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7324 m_dreg_interface.
7325 (num_memory_accesses): Change to...
7326 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7327 (check_condition): Change to...
7328 (ppc_linux_nat_target::check_condition): ...this method.
7329 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7330 comment, use m_dreg_interface.
7331 (create_watchpoint_request): Change to...
7332 (ppc_linux_nat_target::create_watchpoint_request): ...this
7333 method. Use m_dreg_interface.
7334 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7335 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7336 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7337 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7338 (ppc_linux_nat_target::low_forget_process)
7339 (ppc_linux_nat_target::low_new_fork)
7340 (ppc_linux_nat_target::low_new_clone)
7341 (ppc_linux_nat_target::low_delete_thread)
7342 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7343 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7344 only call mark_thread_stale.
7345 (ppc_linux_thread_exit): Remove.
7346 (ppc_linux_nat_target::stopped_data_address): Change to...
7347 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7348 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7349 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7350 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7351 comment. Call low_stopped_data_address.
7352 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7353 m_dreg_interface.
7354 (ppc_linux_nat_target::masked_watch_num_registers): Use
7355 m_dreg_interface.
7356 (ppc_linux_nat_target::copy_thread_dreg_state)
7357 (ppc_linux_nat_target::mark_thread_stale)
7358 (ppc_linux_nat_target::mark_debug_registers_changed)
7359 (ppc_linux_nat_target::register_hw_breakpoint)
7360 (ppc_linux_nat_target::clear_hw_breakpoint)
7361 (ppc_linux_nat_target::register_wp)
7362 (ppc_linux_nat_target::clear_wp)
7363 (ppc_linux_nat_target::init_arch_lwp_info)
7364 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7365 (_initialize_ppc_linux_nat): Remove observer callback.
7366
7367 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7368
7369 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7370 (ppc_linux_nat_target::auxv_parse)
7371 (ppc_linux_nat_target::read_description)
7372 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7373 Move up.
7374
7375 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7376
7377 * linux-nat.h (low_new_clone): New method.
7378 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7379
7380 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7381
7382 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7383 (dbx_expand_psymtab): ... this.
7384 (start_psymtab): Update.
7385 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7386 (mdebug_expand_psymtab): ... this.
7387 (parse_partial_symbols): Update.
7388 (new_psymtab): Update.
7389 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7390 (xcoff_expand_psymtab): ... this.
7391 (xcoff_start_psymtab): Update.
7392
7393 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7394
7395 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7396 <expand_dependencies>: ... this.
7397 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7398 (partial_symtab::expand_dependencies): ... this.
7399 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7400 Update.
7401 (dwarf2_psymtab::expand_psymtab): Update.
7402 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7403 * mdebugread.c (psymtab_to_symtab_1): Update.
7404 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7405
7406 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7407
7408 * psympriv.h (discard_psymtab): Remove.
7409 * dbxread.c (dbx_end_psymtab): Update.
7410 * xcoffread.c (xcoff_end_psymtab): Update.
7411
7412 2020-03-28 Tom Tromey <tom@tromey.com>
7413
7414 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7415 comment.
7416
7417 2020-03-28 Tom Tromey <tom@tromey.com>
7418
7419 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7420
7421 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
7422
7423 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7424
7425 2020-03-26 John Baldwin <jhb@FreeBSD.org>
7426
7427 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7428
7429 2020-03-26 Tom Tromey <tom@tromey.com>
7430
7431 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7432 (mark_common_block_symbol_computed, read_tag_string_type)
7433 (attr_to_dynamic_prop, read_subrange_type): Update.
7434 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7435 to be methods on struct attribute.
7436 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7437 (read_call_site_scope, partial_die_info::read)
7438 (partial_die_info::read, lookup_die_type, follow_die_ref):
7439 Update.
7440 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7441 from dwarf2_get_ref_die_offset.
7442 (attribute::constant_value): New method, from
7443 dwarf2_get_attr_constant_value.
7444 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7445 Declare method.
7446 <constant_value>: New method.
7447
7448 2020-03-26 Tom Tromey <tom@tromey.com>
7449
7450 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7451 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7452 (dwarf_type_encoding_name): Move to stringify.c.
7453 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7454 * dwarf2/stringify.c: New file.
7455 * dwarf2/stringify.h: New file.
7456
7457 2020-03-26 Tom Tromey <tom@tromey.com>
7458
7459 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7460 Rewrite.
7461
7462 2020-03-26 Tom Tromey <tom@tromey.com>
7463
7464 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7465 methods.
7466 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7467 (lookup_ranges_base): Likewise.
7468 (read_cutu_die_from_dwo, read_full_die_1): Update.
7469
7470 2020-03-26 Tom Tromey <tom@tromey.com>
7471
7472 * dwarf2/read.c (read_import_statement, read_file_scope)
7473 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7474 (read_lexical_block_scope, read_call_site_scope)
7475 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7476 (handle_struct_member_die, process_structure_scope)
7477 (update_enumeration_type_from_children)
7478 (process_enumeration_scope, read_array_type, read_common_block)
7479 (read_namespace, read_module, read_subroutine_type): Update.
7480 (sibling_die): Remove.
7481
7482 2020-03-26 Tom Tromey <tom@tromey.com>
7483
7484 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7485 (build_type_psymtabs_reader, read_structure_type)
7486 (read_enumeration_type, read_full_die_1): Update.
7487 (dwarf2_attr_no_follow): Move to die.h.
7488 * dwarf2/die.h (struct die_info) <attr>: New method.
7489
7490 2020-03-26 Tom Tromey <tom@tromey.com>
7491
7492 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7493 <base_address>: Now an optional.
7494 (dwarf2_find_base_address, dwarf2_rnglists_process)
7495 (dwarf2_ranges_process, fill_in_loclist_baton)
7496 (dwarf2_symbol_mark_computed): Update.
7497
7498 2020-03-26 Tom Tromey <tom@tromey.com>
7499
7500 * dwarf2/read.c (struct die_info): Move to die.h.
7501 * dwarf2/die.h: New file.
7502
7503 2020-03-26 Tom Tromey <tom@tromey.com>
7504
7505 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7506 * dwarf2/read.c
7507 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7508 Move to line-header.c.
7509 (read_checked_initial_length_and_offset, read_formatted_entries):
7510 Likewise.
7511 (dwarf_decode_line_header): Split into two.
7512 * dwarf2/line-header.c
7513 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7514 Move from read.c.
7515 (read_checked_initial_length_and_offset, read_formatted_entries):
7516 Likewise.
7517 (dwarf_decode_line_header): New function, split from read.c.
7518
7519 2020-03-26 Tom Tromey <tom@tromey.com>
7520
7521 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7522 Declare method.
7523 * dwarf2/read.c (read_attribute_value): Update.
7524 (dwarf2_per_objfile::read_line_string): Rename from
7525 read_indirect_line_string.
7526 (read_formatted_entries): Update.
7527
7528 2020-03-26 Tom Tromey <tom@tromey.com>
7529
7530 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7531 variable.
7532
7533 2020-03-26 Tom Tromey <tom@tromey.com>
7534
7535 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7536 const.
7537 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7538 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7539 parameter const.
7540
7541 2020-03-26 Tom Tromey <tom@tromey.com>
7542
7543 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7544 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7545 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7546 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7547
7548 2020-03-26 Tom Tromey <tom@tromey.com>
7549
7550 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7551 file_names_size, file_full_name, file_file_name>: Use const.
7552 <file_name_at, file_names>: Add const overload.
7553 * dwarf2/line-header.c (line_header::file_file_name)
7554 (line_header::file_full_name): Update.
7555
7556 2020-03-26 Tom Tromey <tom@tromey.com>
7557
7558 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7559 (macro_start_file, consume_improper_spaces)
7560 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7561 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7562 (dwarf_decode_macros): Move to macro.c.
7563 * dwarf2/macro.c: New file.
7564 * dwarf2/macro.h: New file.
7565 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7566
7567 2020-03-26 Tom Tromey <tom@tromey.com>
7568
7569 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7570 method.
7571 * dwarf2/section.c: New method. From
7572 read_indirect_string_at_offset_from.
7573 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7574 (read_indirect_string_at_offset_from): Move to section.c.
7575 (read_indirect_string_at_offset): Rewrite.
7576 (read_indirect_line_string_at_offset): Remove.
7577 (read_indirect_string, read_indirect_line_string)
7578 (dwarf_decode_macro_bytes): Update.
7579
7580 2020-03-26 Tom Tromey <tom@tromey.com>
7581
7582 * dwarf2/section.h (struct dwarf2_section_info)
7583 <overload_complaint>: Declare.
7584 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7585 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7586 Rename from dwarf2_section_buffer_overflow_complaint.
7587 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7588 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7589
7590 2020-03-26 Tom Tromey <tom@tromey.com>
7591
7592 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7593 Declare.
7594 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7595 Move from read.c.
7596 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7597 to section.c.
7598
7599 2020-03-26 Tom Tromey <tom@tromey.com>
7600
7601 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7602
7603 2020-03-26 Tom Tromey <tom@tromey.com>
7604
7605 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7606 "builder".
7607 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7608 parameter.
7609 (dwarf_decode_macros): Update.
7610
7611 2020-03-26 Tom Tromey <tom@tromey.com>
7612
7613 * dwarf2/read.c (read_attribute_value): Update.
7614 (read_indirect_string_from_dwz): Move to dwz.c; change into
7615 method.
7616 (dwarf_decode_macro_bytes): Update.
7617 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7618 * dwarf2/dwz.c: New file.
7619 * Makefile.in (COMMON_SFILES): Add dwz.c.
7620
7621 2020-03-26 Tom Tromey <tom@tromey.com>
7622
7623 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7624 * dwarf2/read.c: Add include.
7625 * dwarf2/index-write.c: Add include.
7626 * dwarf2/index-cache.c: Add include.
7627 * dwarf2/dwz.h: New file.
7628
7629 2020-03-25 Tom Tromey <tom@tromey.com>
7630
7631 * compile/compile-object-load.c (get_out_value_type): Mention
7632 correct symbol name in error message.
7633
7634 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
7635
7636 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7637
7638 2020-03-25 Tom de Vries <tdevries@suse.de>
7639
7640 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7641 * symmisc.c (dump_symtab_1): Print user and includes fields.
7642 (maintenance_info_symtabs): Same.
7643
7644 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7645
7646 PR gdb/25534
7647 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7648 (riscv_regcache_cooked_write): New function.
7649 (riscv_push_dummy_call): Use new function.
7650 (riscv_return_value): Likewise.
7651
7652 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7653
7654 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7655 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7656 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7657 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7658 * infrun.c (follow_fork): Likewise.
7659 (follow_fork_inferior): Likewise.
7660 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7661 * linux-nat.h (class linux_nat_target): Likewise.
7662 * remote.c (class remote_target) <follow_fork>: Likewise.
7663 (remote_target::follow_fork): Likewise.
7664 * target-delegates.c: Re-generate.
7665 * target.c (default_follow_fork): Likewise.
7666 (target_follow_fork): Likewise.
7667 * target.h (struct target_ops) <follow_fork>: Likewise.
7668 (target_follow_fork): Likewise.
7669
7670 2020-03-24 Tom de Vries <tdevries@suse.de>
7671
7672 * psymtab.c (maintenance_info_psymtabs): Print user field.
7673
7674 2020-03-20 Tom Tromey <tromey@adacore.com>
7675
7676 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7677 const.
7678 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7679 const.
7680
7681 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
7682
7683 * ptrace.m4: Don't check for ptrace declaration.
7684 * config.in: Re-generate.
7685 * configure: Re-generate.
7686 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7687 not defined.
7688
7689 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7690
7691 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7692 `PTRACE_TYPE_RET'.
7693 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7694 * sparc-nat.c (gdb_ptrace): Likewise.
7695 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7696
7697 2020-03-20 Tom Tromey <tromey@adacore.com>
7698
7699 * c-exp.y (lex_one_token): Fix assert.
7700
7701 2020-03-20 Tom Tromey <tromey@adacore.com>
7702
7703 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7704 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7705 strncpy call.
7706
7707 2020-03-20 Tom Tromey <tromey@adacore.com>
7708
7709 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7710
7711 2020-03-20 Tom Tromey <tromey@adacore.com>
7712
7713 * ada-valprint.c (print_variant_part): Remove parameters; switch
7714 to value-based API.
7715 (print_field_values): Likewise.
7716 (ada_val_print_struct_union): Likewise.
7717 (ada_value_print_1): Update.
7718
7719 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7720
7721 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7722 nbsd_nat_target instead of inf_ptrace_target.
7723 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7724 nbsd_nat_target.
7725
7726 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7727
7728 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7729 it to the ptrace call.
7730 * (store_registers): Likewise.
7731
7732 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7733
7734 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7735 it to the ptrace call.
7736 * (store_registers): Likewise.
7737
7738 2020-03-19 Luis Machado <luis.machado@linaro.org>
7739
7740 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7741 valid, fetch vg value from ptrace.
7742
7743 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7744 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7745 * inf-ptrace.c: Likewise.
7746 * (gdb_ptrace): Add.
7747 * (inf_ptrace_target::resume): Update.
7748 * (inf_ptrace_target::xfer_partial): Likewise.
7749 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7750 * (inf_ptrace_peek_poke): Update.
7751
7752 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7753
7754 * x86-bsd-nat.c (gdb_ptrace): New.
7755 * (x86bsd_dr_set): Add new argument `ptid'.
7756 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7757 x86bsd_dr_set_addr): Update.
7758
7759 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7760
7761 * remote.c (remote_target::process_stop_reply): Handle events for
7762 all threads differently.
7763
7764 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7765
7766 * completer.c (completion_tracker::remove_completion): Define new
7767 function.
7768 * completer.h (completion_tracker::remove_completion): Declare new
7769 function.
7770 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7771 when adding a C++ function symbol.
7772
7773 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7774
7775 * completer.c (completion_tracker::completion_hash_entry): Define
7776 new class.
7777 (advance_to_filename_complete_word_point): Call
7778 recompute_lowest_common_denominator.
7779 (completion_tracker::completion_tracker): Call discard_completions
7780 to setup the hash table.
7781 (completion_tracker::discard_completions): Allow for being called
7782 from the constructor, pass new equal function, and element deleter
7783 when constructing the hash table. Initialise new class member
7784 variables.
7785 (completion_tracker::maybe_add_completion): Remove use of
7786 m_entries_vec, and store more information into m_entries_hash.
7787 (completion_tracker::recompute_lcd_visitor): New function, most
7788 content taken from...
7789 (completion_tracker::recompute_lowest_common_denominator):
7790 ...here, this now just visits each item in the hash calling the
7791 above visitor.
7792 (completion_tracker::build_completion_result): Remove use of
7793 m_entries_vec, call recompute_lowest_common_denominator.
7794 * completer.h (completion_tracker::have_completions): Remove use
7795 of m_entries_vec.
7796 (completion_tracker::completion_hash_entry): Declare new class.
7797 (completion_tracker::recompute_lowest_common_denominator): Change
7798 function signature.
7799 (completion_tracker::recompute_lcd_visitor): Declare new function.
7800 (completion_tracker::m_entries_vec): Delete.
7801 (completion_tracker::m_entries_hash): Initialize to NULL.
7802 (completion_tracker::m_lowest_common_denominator_valid): New
7803 member variable.
7804 (completion_tracker::m_lowest_common_denominator_max_length): New
7805 member variable.
7806
7807 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7808
7809 * regformats/regdef.h: Put reg in gdb namespace.
7810
7811 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7812
7813 * i386-bsd-nat.c (gdb_ptrace): New.
7814 * (i386bsd_fetch_inferior_registers,
7815 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7816 * (i386bsd_fetch_inferior_registers,
7817 i386bsd_store_inferior_registers) Use gdb_ptrace.
7818
7819 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7820
7821 * amd64-bsd-nat.c (gdb_ptrace): New.
7822 * (amd64bsd_fetch_inferior_registers,
7823 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7824 * (amd64bsd_fetch_inferior_registers,
7825 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7826
7827 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7828
7829 * user-regs.c (user_reg::read): Rename to...
7830 (user_reg::xread): ...this.
7831 * (append_user_reg): Rename argument `read' to `xread'.
7832 * (user_reg_add_builtin): Likewise.
7833 * (user_reg_add): Likewise.
7834 * (value_of_user_reg): Likewise.
7835
7836 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7837
7838 * sparc-nat.c (gdb_ptrace): New.
7839 * sparc-nat.c (sparc_fetch_inferior_registers)
7840 (sparc_store_inferior_registers) Remove obsolete comment.
7841 * sparc-nat.c (sparc_fetch_inferior_registers)
7842 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7843 * sparc-nat.c (sparc_fetch_inferior_registers)
7844 (sparc_store_inferior_registers) Use gdb_ptrace.
7845
7846 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7847
7848 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7849 it to the ptrace call.
7850 * sh-nbsd-nat.c (store_registers): Likewise.
7851
7852 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7853
7854 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7855 nbsd_nat_target instead of inf_ptrace_target.
7856 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7857 nbsd_nat_target.
7858
7859 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7860
7861 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7862
7863 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7864
7865 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7866 <sys/sysctl.h>.
7867 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7868
7869 2020-03-17 Tom de Vries <tdevries@suse.de>
7870
7871 PR gdb/23710
7872 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7873 fields.
7874 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7875 fields.
7876 (process_imported_unit_die): Skip import of c++ CUs.
7877
7878 2020-03-16 Tom Tromey <tom@tromey.com>
7879
7880 * p-valprint.c (pascal_object_print_value): Initialize
7881 base_value.
7882
7883 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7884 Shahab Vahedi <shahab@synopsys.com>
7885
7886 * Makefile.in: Add arch/arc.o
7887 * configure.tgt: Likewise.
7888 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7889 (_initialize_arc_tdep): Don't initialize old target descriptions.
7890 (arc_read_description): New function to cache target descriptions.
7891 * arc-tdep.h (arc_read_description): Add proto type.
7892 * arch/arc.c: New file.
7893 * arch/arc.h: Likewise.
7894 * features/Makefile: Replace old target descriptions with new.
7895 * features/arc-arcompact.c: Remove.
7896 * features/arc-arcompact.xml: Likewise.
7897 * features/arc-v2.c: Likewise
7898 * features/arc-v2.xml: Likewise
7899 * features/arc/aux-arcompact.xml: New file.
7900 * features/arc/aux-v2.xml: Likewise.
7901 * features/arc/core-arcompact.xml: Likewise.
7902 * features/arc/core-v2.xml: Likewise.
7903 * features/arc/aux-arcompact.c: Generate.
7904 * features/arc/aux-v2.c: Likewise.
7905 * features/arc/core-arcompact.c: Likewise.
7906 * features/arc/core-v2.c: Likewise.
7907 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7908
7909 2020-03-16 Tom Tromey <tromey@adacore.com>
7910
7911 PR gdb/25663:
7912 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7913 putting value into bcache.
7914
7915 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7916
7917 PR gdb/21500
7918 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7919 to...
7920 (amd64_windows_init_abi_common): ... this. Don't set size of
7921 long type.
7922 (amd64_windows_init_abi): New function.
7923 (amd64_cygwin_init_abi): New function.
7924 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7925 the Cygwin OS ABI.
7926 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7927 comment.
7928
7929 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7930
7931 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7932 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7933 (pe_import_directory_entry): New struct type.
7934 (is_linked_with_cygwin_dll): New function.
7935 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7936 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7937 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7938
7939 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7940
7941 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7942 i386_cygwin_core_osabi_sniffer.
7943
7944 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7945
7946 * i386-cygwin-tdep.c: Rename to...
7947 * i386-windows-tdep.c: ... this.
7948 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7949 i386-windows-tdep.c.
7950 * configure.tgt: Likewise.
7951
7952 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7953
7954 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7955 * osabi.c (gdb_osabi_names): Add "Windows".
7956 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7957 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7958 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7959 i386_cygwin_osabi_sniffer.
7960 (_initialize_i386_cygwin_tdep): Register OS ABI
7961 GDB_OSABI_WINDOWS for i386.
7962 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7963 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7964 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7965 for x86-64.
7966 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7967 when the target matches '*-*-mingw*'.
7968
7969 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7970
7971 * defs.h (enum gdb_osabi): Move to...
7972 * osabi.h (enum gdb_osabi): ... here.
7973 * gdbarch.sh: Include osabi.h in gdbarch.h.
7974 * gdbarch.h: Re-generate.
7975
7976 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7977
7978 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7979 function.
7980 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7981
7982 2020-03-14 Tom Tromey <tom@tromey.com>
7983
7984 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7985 for C++.
7986 (c_type_print_modifier): Likewise. Add "language" parameter.
7987 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7988 (c_type_print_base_1): Update.
7989 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7990 constants.
7991 * type-stack.c (type_stack::insert): Handle tp_atomic and
7992 tp_restrict.
7993 (type_stack::follow_type_instance_flags): Likewise.
7994 (type_stack::follow_types): Likewise. Merge type-following code.
7995 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7996 (space_identifier, cv_with_space_id)
7997 (const_or_volatile_or_space_identifier_noopt)
7998 (const_or_volatile_or_space_identifier): Remove.
7999 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
8000 rules.
8001 (ptr_operator, typebase): Update.
8002 (enum token_flag) <FLAG_C>: New constant.
8003 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
8004 "_Atomic".
8005 (lex_one_token): Handle FLAG_C.
8006
8007 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8008
8009 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
8010 it to the ptrace call.
8011 * m68k-bsd-nat.c (store_registers): Likewise.
8012
8013 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8014
8015 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
8016 gdb_byte *.
8017 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
8018 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
8019 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
8020
8021 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8022
8023 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
8024 nbsd_nat_target instead of inf_ptrace_target.
8025 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8026 nbsd_nat_target.
8027
8028 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8029
8030 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
8031 register_t.
8032
8033 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8034
8035 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
8036 it to the ptrace call.
8037 * alpha-bsd-nat.c (store_registers): Likewise.
8038
8039 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8040
8041 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
8042 includes.
8043 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
8044 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
8045 fill_fpregset): Likewise.
8046
8047 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8048
8049 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
8050 nbsd_nat_target instead of inf_ptrace_target.
8051 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8052 nbsd_nat_target.
8053
8054 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8055
8056 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
8057 register_t.
8058
8059 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8060
8061 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
8062 it to the ptrace call.
8063 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
8064 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
8065 * arm-nbsd-nat.c (store_register): Likewise.
8066 * arm-nbsd-nat.c (store_regs): Likewise.
8067 * arm-nbsd-nat.c (store_fp_register): Likewise.
8068 * arm-nbsd-nat.c (store_fp_regs): Likewise.
8069
8070 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8071
8072 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
8073 nbsd_nat_target instead of inf_ptrace_target.
8074 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8075 nbsd_nat_target.
8076
8077 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8078
8079 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
8080 it to the ptrace call.
8081 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
8082
8083 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8084
8085 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
8086 it to the ptrace call.
8087 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
8088
8089 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8090
8091 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
8092 gdb_byte *.
8093 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
8094
8095 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8096
8097 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
8098 instead of inf_ptrace_target.
8099 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8100 nbsd_nat_target.
8101
8102 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8103
8104 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8105 register_t.
8106
8107 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8108
8109 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8110 register_t.
8111
8112 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8113
8114 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
8115 register_t.
8116
8117 2020-03-13 Tom Tromey <tom@tromey.com>
8118
8119 * value.h (val_print): Don't declare.
8120 * valprint.h (val_print_array_elements)
8121 (val_print_scalar_formatted, generic_val_print): Don't declare.
8122 * valprint.c (generic_val_print_array): Take a struct value.
8123 (generic_val_print_ptr, generic_val_print_memberptr)
8124 (generic_val_print_bool, generic_val_print_int)
8125 (generic_val_print_char, generic_val_print_complex)
8126 (generic_val_print): Remove.
8127 (generic_value_print): Update.
8128 (do_val_print): Remove unused parameters. Don't call
8129 la_val_print.
8130 (val_print): Remove.
8131 (common_val_print): Update. Don't call value_check_printable.
8132 (val_print_scalar_formatted, val_print_array_elements): Remove.
8133 * rust-lang.c (rust_val_print): Remove.
8134 (rust_language_defn): Update.
8135 * p-valprint.c (pascal_val_print): Remove.
8136 (pascal_value_print_inner): Update.
8137 (pascal_object_print_val_fields, pascal_object_print_val):
8138 Remove.
8139 (pascal_object_print_static_field): Update.
8140 * p-lang.h (pascal_val_print): Don't declare.
8141 * p-lang.c (pascal_language_defn): Update.
8142 * opencl-lang.c (opencl_language_defn): Update.
8143 * objc-lang.c (objc_language_defn): Update.
8144 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
8145 * m2-lang.h (m2_val_print): Don't declare.
8146 * m2-lang.c (m2_language_defn): Update.
8147 * language.h (struct language_defn) <la_val_print>: Remove.
8148 * language.c (unk_lang_value_print_inner): Rename. Change
8149 argument types.
8150 (unknown_language_defn, auto_language_defn): Update.
8151 * go-valprint.c (go_val_print): Remove.
8152 * go-lang.h (go_val_print): Don't declare.
8153 * go-lang.c (go_language_defn): Update.
8154 * f-valprint.c (f_val_print): Remove.
8155 * f-lang.h (f_value_print): Don't declare.
8156 * f-lang.c (f_language_defn): Update.
8157 * d-valprint.c (d_val_print): Remove.
8158 * d-lang.h (d_value_print): Don't declare.
8159 * d-lang.c (d_language_defn): Update.
8160 * cp-valprint.c (cp_print_value_fields)
8161 (cp_print_value_fields_rtti, cp_print_value): Remove.
8162 (cp_print_static_field): Update.
8163 * c-valprint.c (c_val_print_array, c_val_print_ptr)
8164 (c_val_print_struct, c_val_print_union, c_val_print_int)
8165 (c_val_print_memberptr, c_val_print): Remove.
8166 * c-lang.h (c_val_print_array, cp_print_value_fields)
8167 (cp_print_value_fields_rtti): Don't declare.
8168 * c-lang.c (c_language_defn, cplus_language_defn)
8169 (asm_language_defn, minimal_language_defn): Update.
8170 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
8171 (ada_val_print_enum): Take a struct value.
8172 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
8173 (ada_val_print): Remove.
8174 (ada_value_print_1): Update.
8175 (printable_val_type): Remove.
8176 * ada-lang.h (ada_val_print): Don't declare.
8177 * ada-lang.c (ada_language_defn): Update.
8178
8179 2020-03-13 Tom Tromey <tom@tromey.com>
8180
8181 * valprint.c (do_val_print): Update.
8182 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
8183 a struct value.
8184 (value_to_value_object_no_release): Declare.
8185 * python/py-value.c (value_to_value_object_no_release): New
8186 function.
8187 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
8188 struct value.
8189 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
8190 function.
8191 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
8192 a struct value.
8193 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
8194 Declare.
8195 (gdbscm_apply_val_pretty_printer): Take a struct value.
8196 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
8197 value.
8198 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
8199 value.
8200 * extension-priv.h (struct extension_language_ops)
8201 <apply_val_pretty_printer>: Take a struct value.
8202 * cp-valprint.c (cp_print_value): Create a struct value.
8203 (cp_print_value): Update.
8204
8205 2020-03-13 Tom Tromey <tom@tromey.com>
8206
8207 * ada-valprint.c (print_field_values): Call common_val_print.
8208
8209 2020-03-13 Tom Tromey <tom@tromey.com>
8210
8211 * ada-valprint.c (val_print_packed_array_elements): Remove
8212 bitoffset and val parameters. Call common_val_print.
8213 (ada_val_print_string): Remove offset, address, and original_value
8214 parameters.
8215 (ada_val_print_array): Update.
8216 (ada_value_print_array): New function.
8217 (ada_value_print_1): Call it.
8218
8219 2020-03-13 Tom Tromey <tom@tromey.com>
8220
8221 * ada-valprint.c (ada_value_print): Use common_val_print.
8222
8223 2020-03-13 Tom Tromey <tom@tromey.com>
8224
8225 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
8226
8227 2020-03-13 Tom Tromey <tom@tromey.com>
8228
8229 * ada-valprint.c (ada_value_print_num): New function.
8230 (ada_value_print_1): Use it.
8231
8232 2020-03-13 Tom Tromey <tom@tromey.com>
8233
8234 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8235
8236 2020-03-13 Tom Tromey <tom@tromey.com>
8237
8238 * ada-valprint.c (ada_value_print_ptr): New function.
8239 (ada_value_print_1): Use it.
8240
8241 2020-03-13 Tom Tromey <tom@tromey.com>
8242
8243 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8244 call common_val_print.
8245 (ada_val_print_1): Update.
8246 (ada_value_print_1): New function.
8247 (ada_value_print_inner): Rewrite.
8248
8249 2020-03-13 Tom Tromey <tom@tromey.com>
8250
8251 * cp-valprint.c (cp_print_value_fields): Update.
8252 (cp_print_value): New function.
8253
8254 2020-03-13 Tom Tromey <tom@tromey.com>
8255
8256 * m2-valprint.c (m2_value_print_inner): Use
8257 cp_print_value_fields.
8258 * cp-valprint.c (cp_print_value_fields): New function.
8259 * c-valprint.c (c_value_print_struct): New function.
8260 (c_value_print_inner): Use c_value_print_struct.
8261 * c-lang.h (cp_print_value_fields): Declare.
8262
8263 2020-03-13 Tom Tromey <tom@tromey.com>
8264
8265 * c-valprint.c (c_value_print_array): New function.
8266 (c_value_print_inner): Use it.
8267
8268 2020-03-13 Tom Tromey <tom@tromey.com>
8269
8270 * c-valprint.c (c_value_print_memberptr): New function.
8271 (c_value_print_inner): Use it.
8272
8273 2020-03-13 Tom Tromey <tom@tromey.com>
8274
8275 * c-valprint.c (c_value_print_int): New function.
8276 (c_value_print_inner): Use it.
8277
8278 2020-03-13 Tom Tromey <tom@tromey.com>
8279
8280 * c-valprint.c (c_value_print_ptr): New function.
8281 (c_value_print_inner): Use it.
8282
8283 2020-03-13 Tom Tromey <tom@tromey.com>
8284
8285 * c-valprint.c (c_value_print_inner): Rewrite.
8286
8287 2020-03-13 Tom Tromey <tom@tromey.com>
8288
8289 * valprint.c (generic_value_print_complex): New function.
8290 (generic_value_print): Use it.
8291
8292 2020-03-13 Tom Tromey <tom@tromey.com>
8293
8294 * valprint.c (generic_val_print_float): Don't call
8295 val_print_scalar_formatted.
8296 (generic_val_print, generic_value_print): Update.
8297
8298 2020-03-13 Tom Tromey <tom@tromey.com>
8299
8300 * valprint.c (generic_value_print_char): New function
8301 (generic_value_print): Use it.
8302
8303 2020-03-13 Tom Tromey <tom@tromey.com>
8304
8305 * valprint.c (generic_value_print_int): New function.
8306 (generic_value_print): Use it.
8307
8308 2020-03-13 Tom Tromey <tom@tromey.com>
8309
8310 * valprint.c (generic_value_print_bool): New function.
8311 (generic_value_print): Use it.
8312
8313 2020-03-13 Tom Tromey <tom@tromey.com>
8314
8315 * valprint.c (generic_val_print_func): Simplify.
8316 (generic_val_print, generic_value_print): Update.
8317
8318 2020-03-13 Tom Tromey <tom@tromey.com>
8319
8320 * valprint.c (generic_val_print_flags): Remove.
8321 (generic_val_print, generic_value_print): Update.
8322 (val_print_type_code_flags): Add original_value parameter.
8323
8324 2020-03-13 Tom Tromey <tom@tromey.com>
8325
8326 * valprint.c (generic_val_print): Update.
8327 (generic_value_print): Update.
8328 * valprint.c (generic_val_print_enum): Don't call
8329 val_print_scalar_formatted.
8330
8331 2020-03-13 Tom Tromey <tom@tromey.com>
8332
8333 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8334 * valprint.c (generic_value_print_ptr): New function.
8335
8336 2020-03-13 Tom Tromey <tom@tromey.com>
8337
8338 * valprint.c (generic_value_print): Rewrite.
8339
8340 2020-03-13 Tom Tromey <tom@tromey.com>
8341
8342 * p-valprint.c (pascal_object_print_value_fields)
8343 (pascal_object_print_value): New functions.
8344
8345 2020-03-13 Tom Tromey <tom@tromey.com>
8346
8347 * p-valprint.c (pascal_value_print_inner): Rewrite.
8348
8349 2020-03-13 Tom Tromey <tom@tromey.com>
8350
8351 * f-valprint.c (f_value_print_innner): Rewrite.
8352
8353 2020-03-13 Tom Tromey <tom@tromey.com>
8354
8355 * m2-valprint.c (m2_print_unbounded_array): New overload.
8356 (m2_print_unbounded_array): Update.
8357 (m2_print_array_contents): Take a struct value.
8358 (m2_value_print_inner): Rewrite.
8359
8360 2020-03-13 Tom Tromey <tom@tromey.com>
8361
8362 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8363 (d_value_print_inner): New function.
8364 * d-lang.h (d_value_print_inner): Declare.
8365 * d-lang.c (d_language_defn): Use d_value_print_inner.
8366
8367 2020-03-13 Tom Tromey <tom@tromey.com>
8368
8369 * go-valprint.c (go_value_print_inner): New function.
8370 * go-lang.h (go_value_print_inner): Declare.
8371 * go-lang.c (go_language_defn): Use go_value_print_inner.
8372
8373 2020-03-13 Tom Tromey <tom@tromey.com>
8374
8375 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8376 API.
8377 (rust_val_print): Rewrite.
8378 (rust_value_print_inner): New function, from rust_val_print.
8379 (rust_language_defn): Use rust_value_print_inner.
8380
8381 2020-03-13 Tom Tromey <tom@tromey.com>
8382
8383 * ada-valprint.c (ada_value_print_inner): New function.
8384 * ada-lang.h (ada_value_print_inner): Declare.
8385 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8386
8387 2020-03-13 Tom Tromey <tom@tromey.com>
8388
8389 * f-valprint.c (f_value_print_innner): New function.
8390 * f-lang.h (f_value_print_innner): Declare.
8391 * f-lang.c (f_language_defn): Use f_value_print_innner.
8392
8393 2020-03-13 Tom Tromey <tom@tromey.com>
8394
8395 * p-valprint.c (pascal_value_print_inner): New function.
8396 * p-lang.h (pascal_value_print_inner): Declare.
8397 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8398
8399 2020-03-13 Tom Tromey <tom@tromey.com>
8400
8401 * m2-valprint.c (m2_value_print_inner): New function.
8402 * m2-lang.h (m2_value_print_inner): Declare.
8403 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8404
8405 2020-03-13 Tom Tromey <tom@tromey.com>
8406
8407 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8408 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8409 * c-valprint.c (c_value_print_inner): New function.
8410 * c-lang.h (c_value_print_inner): Declare.
8411 * c-lang.c (c_language_defn, cplus_language_defn)
8412 (asm_language_defn, minimal_language_defn): Use
8413 c_value_print_inner.
8414
8415 2020-03-13 Tom Tromey <tom@tromey.com>
8416
8417 * p-valprint.c (pascal_object_print_value_fields): Now static.
8418 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8419
8420 2020-03-13 Tom Tromey <tom@tromey.com>
8421
8422 * c-valprint.c (c_val_print_array): Simplify.
8423
8424 2020-03-13 Tom Tromey <tom@tromey.com>
8425
8426 * valprint.c (value_print_array_elements): New function.
8427 * valprint.h (value_print_array_elements): Declare.
8428
8429 2020-03-13 Tom Tromey <tom@tromey.com>
8430
8431 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8432 * mips-tdep.c (mips_print_register): Use
8433 value_print_scalar_formatted.
8434
8435 2020-03-13 Tom Tromey <tom@tromey.com>
8436
8437 * valprint.h (value_print_scalar_formatted): Declare.
8438 * valprint.c (value_print_scalar_formatted): New function.
8439
8440 2020-03-13 Tom Tromey <tom@tromey.com>
8441
8442 * valprint.h (generic_value_print): Declare.
8443 * valprint.c (generic_value_print): New function.
8444
8445 2020-03-13 Tom Tromey <tom@tromey.com>
8446
8447 * valprint.c (do_val_print): Call la_value_print_inner, if
8448 available.
8449 * rust-lang.c (rust_language_defn): Update.
8450 * p-lang.c (pascal_language_defn): Update.
8451 * opencl-lang.c (opencl_language_defn): Update.
8452 * objc-lang.c (objc_language_defn): Update.
8453 * m2-lang.c (m2_language_defn): Update.
8454 * language.h (struct language_defn) <la_value_print_inner>: New
8455 member.
8456 * language.c (unknown_language_defn, auto_language_defn): Update.
8457 * go-lang.c (go_language_defn): Update.
8458 * f-lang.c (f_language_defn): Update.
8459 * d-lang.c (d_language_defn): Update.
8460 * c-lang.c (c_language_defn, cplus_language_defn)
8461 (asm_language_defn, minimal_language_defn): Update.
8462 * ada-lang.c (ada_language_defn): Update.
8463
8464 2020-03-13 Tom Tromey <tom@tromey.com>
8465
8466 * c-valprint.c (c_value_print): Use common_val_print.
8467
8468 2020-03-13 Tom Tromey <tom@tromey.com>
8469
8470 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8471
8472 2020-03-13 Tom Tromey <tom@tromey.com>
8473
8474 * f-valprint.c (f77_print_array_1, f_val_print): Use
8475 common_val_print.
8476
8477 2020-03-13 Tom Tromey <tom@tromey.com>
8478
8479 * riscv-tdep.c (riscv_print_one_register_info): Use
8480 common_val_print.
8481
8482 2020-03-13 Tom Tromey <tom@tromey.com>
8483
8484 * mi/mi-main.c (output_register): Use common_val_print.
8485
8486 2020-03-13 Tom Tromey <tom@tromey.com>
8487
8488 * infcmd.c (default_print_one_register_info): Use
8489 common_val_print.
8490
8491 2020-03-13 Tom Tromey <tom@tromey.com>
8492
8493 * valprint.h (common_val_print_checked): Declare.
8494 * valprint.c (common_val_print_checked): New function.
8495 * stack.c (print_frame_arg): Use common_val_print_checked.
8496
8497 2020-03-13 Tom Tromey <tom@tromey.com>
8498
8499 * valprint.c (do_val_print): New function, from val_print.
8500 (val_print): Use do_val_print.
8501 (common_val_print): Use do_val_print.
8502
8503 2020-03-13 Tom Tromey <tom@tromey.com>
8504
8505 * valprint.c (value_print): Use scoped_value_mark.
8506
8507 2020-03-13 Tom de Vries <tdevries@suse.de>
8508
8509 PR symtab/25646
8510 * psymtab.c (partial_symtab::partial_symtab): Don't set
8511 globals_offset and statics_offset. Push element onto
8512 current_global_psymbols and current_static_psymbols stacks.
8513 (concat): New function.
8514 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8515 element from current_global_psymbols and current_static_psymbols
8516 stacks. Concat popped elements to global_psymbols and
8517 static_symbols.
8518 (add_psymbol_to_list): Use current_global_psymbols and
8519 current_static_psymbols stacks.
8520 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8521 current_static_psymbols fields.
8522
8523 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8524
8525 * corelow.c (sniff_core_bfd): Remove.
8526 (class core_target) <m_core_vec>: Remove.
8527 (core_target::core_target): Update.
8528 (core_file_fns): Remove.
8529 (deprecated_add_core_fns): Remove.
8530 (default_core_sniffer): Remove.
8531 (sniff_core_bfd): Remove.
8532 (default_check_format): Remove.
8533 (gdb_check_format): Remove.
8534 (core_target_open): Update.
8535 (core_target::get_core_register_section): Update.
8536 (get_core_registers_cb): Update.
8537 (core_target::fetch_registers): Update.
8538 * gdbcore.h (struct core_fns): Remove.
8539 (deprecated_add_core_fns): Remove.
8540 (default_core_sniffer): Remove.
8541 (default_check_format): Remove.
8542
8543 2020-03-12 Tom Tromey <tom@tromey.com>
8544
8545 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8546 CORE_ADDR.
8547 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8548
8549 2020-03-12 Tom Tromey <tom@tromey.com>
8550
8551 * remote.c (remote_target::download_tracepoint)
8552 (remote_target::enable_tracepoint)
8553 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8554 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8555 sprintf_vma.
8556
8557 2020-03-12 Tom Tromey <tom@tromey.com>
8558
8559 * symfile-mem.c: Update CORE_ADDR size assert.
8560
8561 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8562
8563 * selftest.m4: Move to gdbsupport/.
8564 * acinclude.m4: Update path to selftest.m4.
8565
8566 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8567
8568 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8569 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8570 gdbarch-selfselftests.c and selftest-arch.c.
8571 (SUBDIR_UNITTESTS_OBS): Rename to...
8572 (SELFTESTS_OBS): ... this.
8573 (COMMON_SFILES): Remove disasm-selftests.c and
8574 gdbarch-selftests.c.
8575 * configure.ac: Don't add selftest-arch.{c,o} to
8576 CONFIG_{SRCS,OBS}.
8577 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8578 preprocessor conditions.
8579
8580 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8581
8582 * configure.ac: Don't source bfd/development.sh.
8583 * selftest.m4: Modify comment.
8584 * configure: Re-generate.
8585
8586 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8587
8588 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8589 not "true" or "false".
8590 * configure: Re-generate.
8591
8592 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8593
8594 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8595 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8596 renamed to arm_nbsd_supply_gregset.
8597 (fetch_register): Update to call arm_nbsd_supply_gregset.
8598 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8599 (arm_netbsd_nat_target::fetch_registers): Update.
8600 (fetch_elfcore_registers): Removed.
8601 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8602 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8603 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8604 not require NetBSD system headers.
8605 (arm_nbsd_regset): New struct.
8606 (arm_nbsd_iterate_over_regset_sections): New function.
8607 (arm_netbsd_init_abi_common): Updated to call
8608 set_gdbarch_iterate_over_regset_sections.
8609 * arm-nbsd-tdep.h: New file.
8610
8611 2020-03-11 Kevin Buettner <kevinb@redhat.com>
8612
8613 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8614 recursion.
8615
8616 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
8617
8618 * configure: Re-generate.
8619
8620 2020-03-11 Tom Tromey <tromey@adacore.com>
8621
8622 * ada-typeprint.c (print_choices): Fix comment.
8623
8624 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8625
8626 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8627 previous item in the list, when the list has no items.
8628
8629 2020-03-11 Tom de Vries <tdevries@suse.de>
8630
8631 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8632 PROP_LOCLIST handling code.
8633
8634 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8635
8636 * buildsym-legacy.c (record_line): Pass extra parameter to
8637 record_line.
8638 * buildsym.c (buildsym_compunit::record_line): Take an extra
8639 parameter, reduce duplication in the line table, and record the
8640 is_stmt flag in the line table.
8641 * buildsym.h (buildsym_compunit::record_line): Add extra
8642 parameter.
8643 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8644 non-statement lines.
8645 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8646 this to the symtab builder.
8647 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8648 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8649 through to dwarf_record_line_1.
8650 * infrun.c (process_event_stop_test): When stepping, don't stop at
8651 a non-statement instruction, and only refresh the step info when
8652 we land in the middle of a line's range. Also add an extra
8653 comment.
8654 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8655 field.
8656 * record-btrace.c (btrace_find_line_range): Only record lines
8657 marked as is-statement.
8658 * stack.c (frame_show_address): Show the frame address if we are
8659 in a non-statement sal.
8660 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8661 (maintenance_print_one_line_table): Print a header for the is_stmt
8662 column, and include is_stmt information in the output.
8663 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8664 preference to non-statements.
8665 (find_pcs_for_symtab_line): Prefer is-statement entries.
8666 (find_line_common): Likewise.
8667 * symtab.h (struct linetable_entry): Add is_stmt field.
8668 (struct symtab_and_line): Likewise.
8669 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8670 arranging the line table.
8671
8672 2020-03-07 Tom de Vries <tdevries@suse.de>
8673
8674 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8675 DIE.
8676
8677 2020-03-07 Tom Tromey <tom@tromey.com>
8678
8679 * valops.c (value_literal_complex): Remove obsolete comment.
8680 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8681 comment.
8682
8683 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8684
8685 * infrun.h: Forward-declare thread_info.
8686 (set_step_info): Add thread_info parameter, add doc.
8687 * infrun.c (set_step_info): Add thread_info parameter, move doc
8688 to header.
8689 * infrun.c (process_event_stop_test): Pass thread to
8690 set_step_info call.
8691 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8692 set_step_info.
8693 (prepare_one_step): Add thread_info parameter, pass it to
8694 set_step_frame and prepare_one_step (recursive) call.
8695 (step_1): Pass thread to prepare_one_step call.
8696 (step_command_fsm::should_stop): Pass thread to
8697 prepare_one_step.
8698 (until_next_fsm): Pass thread to set_step_frame call.
8699 (finish_command): Pass thread to set_step_info call.
8700
8701 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
8702
8703 * windows-tdep.c (windows_solib_create_inferior_hook):
8704 Check if inferior is running.
8705
8706 2020-03-06 Tom de Vries <tdevries@suse.de>
8707
8708 * NEWS: Fix "the the".
8709 * ctfread.c: Same.
8710
8711 2020-03-06 Tom de Vries <tdevries@suse.de>
8712
8713 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8714
8715 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8716
8717 * .dir-locals.el: Add a comment referencing the other copies of
8718 this file.
8719
8720 2020-03-05 John Baldwin <jhb@FreeBSD.org>
8721
8722 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8723 psargs.
8724
8725 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8726
8727 * .gitattributes: New file.
8728
8729 2020-03-04 Tom Tromey <tom@tromey.com>
8730
8731 * symmisc.c (print_symbol_bcache_statistics)
8732 (print_objfile_statistics): Update.
8733 * symfile.c (allocate_symtab): Use intern.
8734 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8735 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8736 macro_cache>: Remove.
8737 <string_cache>: New member.
8738 (struct objfile) <intern>: New methods.
8739 * elfread.c (elf_symtab_read): Use intern.
8740 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8741 (dwarf2_compute_name, dwarf2_physname)
8742 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8743 names.
8744 (guess_partial_die_structure_name): Update.
8745 (partial_die_info::fixup): Intern name.
8746 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8747 name.
8748 (dwarf2_name): Intern name. Update.
8749 * buildsym.c (buildsym_compunit::get_macro_table): Use
8750 string_cache.
8751
8752 2020-03-04 Tom Tromey <tom@tromey.com>
8753
8754 * jit.c (bfd_open_from_target_memory): Make "target" const.
8755 * corefile.c (gnutarget): Now const.
8756 * gdbcore.h (gnutarget): Now const.
8757
8758 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
8759
8760 * NEWS: Mention support for WOW64 processes.
8761 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8762 (amd64_windows_segment_register_p): Remove static.
8763 (_initialize_amd64_windows_nat): Update.
8764 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8765 * i386-windows-nat.c (context_offset): Update.
8766 (i386_mappings): Rename and remove static.
8767 (i386_windows_segment_register_p): Remove static.
8768 (_initialize_i386_windows_nat): Update.
8769 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8770 (STATUS_WX86_SINGLE_STEP): New macro.
8771 (EnumProcessModulesEx): New macro.
8772 (Wow64SuspendThread): New macro.
8773 (Wow64GetThreadContext): New macro.
8774 (Wow64SetThreadContext): New macro.
8775 (Wow64GetThreadSelectorEntry): New macro.
8776 (windows_set_context_register_offsets): Add static.
8777 (windows_set_segment_register_p): Likewise.
8778 (windows_add_thread): Adapt for WOW64 processes.
8779 (windows_fetch_one_register): Likewise.
8780 (windows_nat_target::fetch_registers): Likewise.
8781 (windows_store_one_register): Likewise.
8782 (display_selector): Likewise.
8783 (display_selectors): Likewise.
8784 (handle_exception): Likewise.
8785 (windows_continue): Likewise.
8786 (windows_nat_target::resume): Likewise.
8787 (windows_add_all_dlls): Likewise.
8788 (do_initial_windows_stuff): Likewise.
8789 (windows_nat_target::attach): Likewise.
8790 (windows_get_exec_module_filename): Likewise.
8791 (windows_nat_target::create_inferior): Likewise.
8792 (windows_xfer_siginfo): Likewise.
8793 (_initialize_loadable): Initialize Wow64SuspendThread,
8794 Wow64GetThreadContext, Wow64SetThreadContext,
8795 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8796 * windows-nat.h (windows_set_context_register_offsets):
8797 Remove declaration.
8798 (windows_set_segment_register_p): Likewise.
8799 (i386_windows_segment_register_p): Add declaration.
8800 (amd64_windows_segment_register_p): Likewise.
8801
8802 2020-03-04 Luis Machado <luis.machado@linaro.org>
8803
8804 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8805 in "info registers" for AArch64/ARM.
8806
8807 The change caused "info registers" to not print GPR's.
8808
8809 gdb/ChangeLog:
8810
8811 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8812
8813 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8814 when reg->group is empty and reggroup is not.
8815
8816 2020-03-03 Tom Tromey <tromey@adacore.com>
8817
8818 * dwarf2/frame.c (struct dwarf2_frame_cache)
8819 <checked_tailcall_bottom, entry_cfa_sp_offset,
8820 entry_cfa_sp_offset_p>: Remove members.
8821 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8822 (dwarf2_frame_prev_register): Don't call
8823 dwarf2_tailcall_sniffer_first.
8824 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8825 * frame-unwind.c (add_unwinder): New fuction.
8826 (frame_unwind_init): Use it. Add tailcall unwinder.
8827
8828 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8829 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8830
8831 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8832 value should be printed as true.
8833
8834 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
8835
8836 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8837 (windows_init_abi): Set and use windows_so_ops.
8838
8839 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8840
8841 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8842 when verifying if dealing with a convenience variable.
8843
8844 2020-03-03 Luis Machado <luis.machado@linaro.org>
8845
8846 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8847
8848 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8849
8850 * infrun.c (gdbarch_supports_displaced_stepping): New.
8851 (use_displaced_stepping): Break up conditions in smaller pieces.
8852 Use gdbarch_supports_displaced_stepping.
8853 (displaced_step_prepare_throw): Use
8854 gdbarch_supports_displaced_stepping.
8855
8856 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8857
8858 * NEWS: Mention new behaviour of the history filename.
8859 * top.c (write_history_p): Add comment.
8860 (show_write_history_p): Add header comment, give a different
8861 message when history writing is on, but the history filename is
8862 empty.
8863 (history_filename): Add comment.
8864 (history_filename_empty): New function.
8865 (show_history_filename): Add header comment, give a different
8866 message when the filename is empty.
8867 (init_history): Compare history_filename against nullptr, and only
8868 read history if the filename is not empty.
8869 (set_history_filename): Add header comment, and only make
8870 non-empty filenames absolute.
8871 (init_main): Make the filename argument to 'set history filename'
8872 optional.
8873
8874 2020-03-02 Christian Biesinger <cbiesinger@google.com>
8875
8876 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8877 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8878 (fetch_fp_register): Update.
8879 (fetch_fp_regs): Update.
8880 (store_fp_register): Update.
8881 (store_fp_regs): Update.
8882 (arm_netbsd_nat_target::read_description): New function.
8883 (fetch_elfcore_registers): Update.
8884
8885 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8886
8887 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8888 general_thread if the stop reply is missing a thread-id.
8889 (remote_target::process_stop_reply): Use the first non-exited
8890 thread if the target didn't pass a thread-id.
8891 * infrun.c (do_target_wait): Move call to
8892 switch_to_inferior_no_thread to ....
8893 (do_target_wait_1): ... here.
8894
8895 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8896
8897 * debuginfod-support.c: Include defs.h first.
8898
8899 2020-02-28 Tom de Vries <tdevries@suse.de>
8900
8901 * symfile.c (set_initial_language): Use default language for lookup.
8902
8903 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
8904
8905 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8906 reader variable, pass `this` to read_cutu_die_from_dwo.
8907
8908 2020-02-27 Aaron Merey <amerey@redhat.com>
8909
8910 * source.c (open_source_file): Check for nullptr when computing
8911 srcpath.
8912
8913 2020-02-27 Tom Tromey <tromey@adacore.com>
8914
8915 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8916 member.
8917 (dwarf2_add_field): Don't update nfields.
8918 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8919
8920 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8921
8922 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8923 abs.
8924
8925 2020-02-26 Tom Tromey <tom@tromey.com>
8926
8927 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8928 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8929 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8930 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8931 per_cu_data.
8932
8933 2020-02-26 Tom Tromey <tom@tromey.com>
8934
8935 * dwarf2/index-write.c (psym_index_map): Change type.
8936 (add_address_entry_worker, write_one_signatured_type)
8937 (recursively_count_psymbols, recursively_write_psymbols)
8938 (class debug_names, psyms_seen_size, write_gdbindex)
8939 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8940
8941 2020-02-26 Aaron Merey <amerey@redhat.com>
8942
8943 * Makefile.in: Handle optional debuginfod support.
8944 * NEWS: Update.
8945 * README: Add --with-debuginfod summary.
8946 * config.in: Regenerate.
8947 * configure: Regenerate.
8948 * configure.ac: Handle optional debuginfod support.
8949 * debuginfod-support.c: debuginfod helper functions.
8950 * debuginfod-support.h: Ditto.
8951 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8952 summary.
8953 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8954 when a dwz file cannot be found.
8955 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8956 debuginfo file cannot be found.
8957 * source.c (open_source_file): Query debuginfod servers when a
8958 source file cannot be found.
8959 * top.c (print_gdb_configuration): Include
8960 --{with,without}-debuginfod in the output.
8961
8962 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8963
8964 * thread.c (thr_try_catch_cmd): Print thread name.
8965
8966 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
8967
8968 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8969 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8970 dwarf2_fetch_die_type_sect_off): Move to...
8971 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8972 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8973 dwarf2_fetch_die_type_sect_off): ... here.
8974 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8975 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8976 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8977
8978 2020-02-26 Tom de Vries <tdevries@suse.de>
8979
8980 PR gdb/25603
8981 * symfile.c (set_initial_language): Exit-early if
8982 language_mode == language_mode_manual.
8983
8984 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8985
8986 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8987 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8988 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8989
8990 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8991
8992 * gdbtypes.c (create_array_type_with_stride): Handle negative
8993 array strides.
8994 * valarith.c (value_subscripted_rvalue): Likewise.
8995
8996 2020-02-25 Luis Machado <luis.machado@linaro.org>
8997
8998 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8999
9000 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9001
9002 * loc.h (dwarf2_get_die_type): Move to...
9003 * read.h (dwarf2_get_die_type): ... here.
9004 * read.c (dwarf2_get_die_type): Move doc to header.
9005
9006 2020-02-25 Joel Brobecker <brobecker@adacore.com>
9007
9008 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
9009 'gnulib/Makefile.in' to the list.
9010
9011 2020-02-24 Tom Tromey <tom@tromey.com>
9012
9013 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
9014 Remove.
9015 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
9016 XOBNEWVEC.
9017
9018 2020-02-24 Tom Tromey <tom@tromey.com>
9019
9020 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
9021 New method.
9022 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
9023 (dw2_do_instantiate_symtab, dw2_get_file_names)
9024 (build_type_psymtab_dependencies, load_full_type_unit): Update.
9025
9026 2020-02-24 Tom Tromey <tom@tromey.com>
9027
9028 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
9029 make_scoped_restore.
9030 (dwarf2_psymtab::read_symtab): Don't clear
9031 reading_partial_symbols.
9032
9033 2020-02-24 Tom de Vries <tdevries@suse.de>
9034
9035 PR gdb/25592
9036 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
9037
9038 2020-02-24 Tom de Vries <tdevries@suse.de>
9039
9040 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
9041 commands layout next/prev/regs.
9042
9043 2020-02-22 Tom Tromey <tom@tromey.com>
9044
9045 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
9046 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
9047
9048 2020-02-22 Tom Tromey <tom@tromey.com>
9049
9050 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
9051
9052 2020-02-22 Tom Tromey <tom@tromey.com>
9053
9054 * tui/tui-win.c (_initialize_tui_win): Add usage text.
9055 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
9056 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
9057 * tui/tui.c (_initialize_tui): Add usage text.
9058
9059 2020-02-22 Tom Tromey <tom@tromey.com>
9060
9061 * tui/tui-win.c (tui_set_focus_command)
9062 (tui_set_win_height_command): Use error_no_arg.
9063 (_initialize_tui_win): Update help text.
9064 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
9065
9066 2020-02-22 Tom Tromey <tom@tromey.com>
9067
9068 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
9069 * tui/tui-disasm.h (struct tui_disasm_window)
9070 <display_start_addr>: Declare.
9071 * tui/tui-source.h (struct tui_source_window)
9072 <display_start_addr>: Declare.
9073 * tui/tui-winsource.h (struct tui_source_window_base)
9074 <show_source_line, display_start_addr>: New methods.
9075 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
9076 Rename and move to protected section.
9077 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
9078 (tui_source_window_base::do_erase_source_content): Update.
9079 (tui_source_window_base::show_source_line): Now a method.
9080 (tui_source_window_base::show_source_content)
9081 (tui_source_window_base::tui_source_window_base)
9082 (tui_source_window_base::rerender)
9083 (tui_source_window_base::refill)
9084 (tui_source_window_base::do_scroll_horizontal)
9085 (tui_source_window_base::set_is_exec_point_at)
9086 (tui_source_window_base::update_breakpoint_info)
9087 (tui_source_window_base::update_exec_info): Update.
9088 * tui/tui-source.c (tui_source_window::set_contents)
9089 (tui_source_window::showing_source_p)
9090 (tui_source_window::do_scroll_vertical)
9091 (tui_source_window::location_matches_p)
9092 (tui_source_window::line_is_displayed): Update.
9093 (tui_source_window::display_start_addr): New method.
9094 * tui/tui-disasm.c (tui_disasm_window::set_contents)
9095 (tui_disasm_window::do_scroll_vertical)
9096 (tui_disasm_window::location_matches_p): Update.
9097 (tui_disasm_window::display_start_addr): New method.
9098
9099 2020-02-22 Tom Tromey <tom@tromey.com>
9100
9101 * NEWS: Add entry for gdb.register_window_type.
9102 * tui/tui-layout.h (window_factory): New typedef.
9103 (tui_register_window): Declare.
9104 * tui/tui-layout.c (saved_tui_windows): New global.
9105 (tui_apply_current_layout): Use it.
9106 (tui_register_window): New function.
9107 * python/python.c (do_start_initialization): Call
9108 gdbpy_initialize_tui.
9109 (python_GdbMethods): Add "register_window_type" function.
9110 * python/python-internal.h (gdbpy_register_tui_window)
9111 (gdbpy_initialize_tui): Declare.
9112 * python/py-tui.c: New file.
9113 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
9114
9115 2020-02-22 Tom Tromey <tom@tromey.com>
9116
9117 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
9118
9119 2020-02-22 Tom Tromey <tom@tromey.com>
9120
9121 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
9122 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
9123 * tui/tui-data.c (tui_set_win_with_focus): Remove.
9124 (tui_set_win_focus_to): Move from tui-win.c.
9125
9126 2020-02-22 Tom Tromey <tom@tromey.com>
9127
9128 * tui/tui-layout.c (make_standard_window, get_locator_window): New
9129 functions.
9130 (known_window_types): New global.
9131 (tui_get_window_by_name): Reimplement.
9132 (initialize_known_windows): New function.
9133 (validate_window_name): Rewrite.
9134 (_initialize_tui_layout): Call initialize_known_windows.
9135
9136 2020-02-22 Tom Tromey <tom@tromey.com>
9137
9138 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
9139 Remove constants.
9140 * tui/tui-winsource.h (struct tui_source_window_base)
9141 <tui_source_window_base>: Remove parameter.
9142 * tui/tui-winsource.c
9143 (tui_source_window_base::tui_source_window_base): Remove
9144 parameter.
9145 (tui_source_window_base::refill): Update.
9146 * tui/tui-stack.h (struct tui_locator_window)
9147 <tui_locator_window>: Update.
9148 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
9149 Default the constructor.
9150 * tui/tui-regs.h (struct tui_data_item_window)
9151 <tui_data_item_window>: Default the constructor.
9152 (struct tui_data_window) <tui_data_window>: Likewise.
9153 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
9154 Default the constructor.
9155 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
9156 Default the constructor.
9157 <type>: Remove.
9158 (struct tui_win_info) <tui_win_info>: Default the constructor.
9159 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
9160 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
9161 Default the constructor.
9162
9163 2020-02-22 Tom Tromey <tom@tromey.com>
9164
9165 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
9166 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
9167 * tui/tui-win.c (tui_resize_all): Don't call
9168 tui_delete_invisible_windows.
9169 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
9170 done.
9171 (tui_set_layout): Update.
9172 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
9173 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
9174 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
9175
9176 2020-02-22 Tom Tromey <tom@tromey.com>
9177
9178 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
9179 correctly.
9180
9181 2020-02-22 Tom Tromey <tom@tromey.com>
9182
9183 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
9184
9185 2020-02-22 Tom Tromey <tom@tromey.com>
9186
9187 * tui/tui-winsource.h (struct tui_source_window_iterator)
9188 <inner_iterator>: New etytypedef.
9189 <tui_source_window_iterator>: Take "end" parameter.
9190 <tui_source_window_iterator>: Take iterator.
9191 <operator*, advance>: Update.
9192 <m_iter>: Change type.
9193 <m_end>: New field.
9194 (struct tui_source_windows) <begin, end>: Update.
9195 * tui/tui-layout.c (tui_windows): New global.
9196 (tui_apply_current_layout): Clear tui_windows.
9197 (tui_layout_window::apply): Update tui_windows.
9198 * tui/tui-data.h (tui_windows): Declare.
9199 (all_tui_windows): Now inline function.
9200 (class tui_window_iterator, struct all_tui_windows): Remove.
9201
9202 2020-02-22 Tom Tromey <tom@tromey.com>
9203
9204 PR tui/17850:
9205 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
9206 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
9207 "height" argument.
9208 (class tui_layout_window) <get_sizes>: Likewise.
9209 (class tui_layout_split) <tui_layout_split>: Add "vertical"
9210 argument.
9211 <get_sizes>: Add "height" argument.
9212 <m_vertical>: New field.
9213 * tui/tui-layout.c (tui_layout_split::clone): Update.
9214 (tui_layout_split::get_sizes): Add "height" argument.
9215 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
9216 (tui_new_layout_command): Parse "-horizontal".
9217 (_initialize_tui_layout): Update help string.
9218 (tui_layout_split::specification): Add "-horizontal" when needed.
9219 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
9220 argument.
9221 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
9222 New methods.
9223
9224 2020-02-22 Tom Tromey <tom@tromey.com>
9225
9226 * tui/tui-layout.h (enum tui_adjust_result): New.
9227 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
9228 (class tui_layout_window) <adjust_size>: Return
9229 tui_adjust_result. Rewrite.
9230 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9231 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9232
9233 2020-02-22 Tom Tromey <tom@tromey.com>
9234
9235 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9236 parameter and return types.
9237 (class tui_layout_base) <specification>: Add "depth".
9238 (class tui_layout_window) <specification>: Add "depth".
9239 (class tui_layout_split) <specification>: Add "depth".
9240 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9241 and return types.
9242 (tui_new_layout_command): Parse sub-layouts.
9243 (_initialize_tui_layout): Update help string.
9244 (tui_layout_window::specification): Add "depth".
9245 (add_layout_command): Update.
9246
9247 2020-02-22 Tom Tromey <tom@tromey.com>
9248
9249 * NEWS: Add "tui new-layout" item.
9250 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9251 Add new-layout command to help text.
9252 (validate_window_name): New function.
9253 (tui_new_layout_command): New function.
9254 (_initialize_tui_layout): Register "new-layout".
9255 (tui_layout_window::specification): New method.
9256 (tui_layout_window::specification): New method.
9257 * tui/tui-layout.h (class tui_layout_base) <specification>: New
9258 method.
9259 (class tui_layout_window) <specification>: New method.
9260 (class tui_layout_split) <specification>: New method.
9261
9262 2020-02-22 Tom Tromey <tom@tromey.com>
9263
9264 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9265 * tui/tui-win.c (window_name_completer): Update comment.
9266 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9267 Declare method.
9268 (class tui_layout_window) <replace_window>: Likewise.
9269 (class tui_layout_split) <replace_window>: Likewise.
9270 (tui_set_layout): Don't declare.
9271 (tui_set_initial_layout): Declare function.
9272 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9273 (asm_regs_layout): New globals.
9274 (tui_current_layout, show_layout): Remove.
9275 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9276 (find_layout, tui_apply_layout): New function.
9277 (layout_completer): Remove.
9278 (tui_next_layout): Reimplement.
9279 (tui_next_layout_command): New function.
9280 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9281 (tui_regs_layout): Reimplement.
9282 (tui_regs_layout_command): New function.
9283 (extract_display_start_addr): Rewrite.
9284 (next_layout, prev_layout): Remove.
9285 (tui_layout_window::replace_window): New method.
9286 (tui_layout_split::replace_window): New method.
9287 (destroy_layout): New function.
9288 (layout_list): New global.
9289 (add_layout_command): New function.
9290 (initialize_layouts): Update.
9291 (tui_layout_command): New function.
9292 (_initialize_tui_layout): Install "layout" commands.
9293 * tui/tui-data.h (enum tui_layout_type): Remove.
9294 (tui_current_layout): Don't declare.
9295
9296 2020-02-22 Tom Tromey <tom@tromey.com>
9297
9298 * tui/tui-regs.c (tui_reg_layout): Remove.
9299 (tui_reg_command): Use tui_regs_layout.
9300 * tui/tui-layout.h (tui_reg_command): Declare.
9301 * tui/tui-layout.c (tui_reg_command): New function.
9302
9303 2020-02-22 Tom Tromey <tom@tromey.com>
9304
9305 * tui/tui.c (tui_rl_delete_other_windows): Call
9306 tui_remove_some_windows.
9307 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9308 Declare method.
9309 (class tui_layout_window) <remove_windows>: New method.
9310 (class tui_layout_split) <remove_windows>: Declare.
9311 (tui_remove_some_windows): Declare.
9312 * tui/tui-layout.c (tui_remove_some_windows): New function.
9313 (tui_layout_split::remove_windows): New method.
9314
9315 2020-02-22 Tom Tromey <tom@tromey.com>
9316
9317 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9318 * tui/tui-layout.h (tui_next_layout): Declare.
9319 * tui/tui-layout.c (tui_next_layout): New function.
9320
9321 2020-02-22 Tom Tromey <tom@tromey.com>
9322
9323 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9324 correct coordinates.
9325
9326 2020-02-22 Tom Tromey <tom@tromey.com>
9327
9328 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9329 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9330 DATA_WIN case.
9331
9332 2020-02-22 Tom Tromey <tom@tromey.com>
9333
9334 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9335 TUI_DISASM_WIN, not tui_win_list.
9336
9337 2020-02-22 Tom Tromey <tom@tromey.com>
9338
9339 * valprint.c (generic_val_print_enum_1)
9340 (val_print_type_code_flags): Style member names.
9341 * rust-lang.c (val_print_struct, rust_print_enum)
9342 (rust_print_struct_def, rust_internal_print_type): Style member
9343 names.
9344 * p-valprint.c (pascal_object_print_value_fields): Style member
9345 names. Only call fprintf_symbol_filtered for static members.
9346 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9347 * f-valprint.c (f_val_print): Style member names.
9348 * f-typeprint.c (f_type_print_base): Style member names.
9349 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9350 call fprintf_symbol_filtered for static members.
9351 (cp_print_class_member): Style member names.
9352 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9353 member names.
9354 * ada-valprint.c (ada_print_scalar): Style enum names.
9355 (ada_val_print_enum): Likewise.
9356 * ada-typeprint.c (print_enum_type): Style enum names.
9357
9358 2020-02-21 Tom Tromey <tom@tromey.com>
9359
9360 * psympriv.h (struct partial_symtab): Update comment.
9361
9362 2020-02-21 Tom Tromey <tromey@adacore.com>
9363
9364 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9365 type is CORE_ADDR.
9366
9367 2020-02-21 Tom de Vries <tdevries@suse.de>
9368
9369 PR gdb/25534
9370 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9371 if dependencies[i]->user != NULL.
9372
9373 2020-02-21 Ali Tamur <tamur@google.com>
9374
9375 * dwarf2/read.c (dwarf2_name): Add null check.
9376
9377 2020-02-20 Tom Tromey <tom@tromey.com>
9378
9379 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9380 ">=", in binary search.
9381 (dwarf2_find_containing_comp_unit): New overload.
9382 (run_test): New self-test.
9383 (_initialize_dwarf2_read): Register new test.
9384
9385 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
9386
9387 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9388 * riscv-tdep.h: Likewise.
9389 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9390 rv32-only CSR.
9391 * features/riscv/64bit-csr.xml: Regenerated.
9392
9393 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9394 Tom Tromey <tom@tromey.com>
9395
9396 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9397 of 'fputc_unfiltered'.
9398 (putchar_unfiltered): Call 'fputc_unfiltered'.
9399 (fputc_unfiltered): Call 'fputs_unfiltered'.
9400
9401 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9402
9403 * config.in: Regenerate.
9404 * configure: Regenerate.
9405 * configure.ac: Add --with-python-libdir option.
9406 * main.c: Use WITH_PYTHON_LIBDIR.
9407
9408 2020-02-19 Tom Tromey <tom@tromey.com>
9409
9410 * symtab.c (general_symbol_info::compute_and_set_names): Use
9411 obstack_strndup. Simplify call to symbol_set_demangled_name.
9412
9413 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
9414
9415 * dwarf2/read.c (allocate_signatured_type_table,
9416 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9417 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9418 Remove objfile parameter, update all callers.
9419
9420 2020-02-19 Doug Evans <dje@google.com>
9421
9422 PR rust/25535
9423 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9424 rust_enum_variant calculation.
9425
9426 2020-02-19 Tom Tromey <tromey@adacore.com>
9427
9428 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9429
9430 2020-02-19 Tom Tromey <tromey@adacore.com>
9431
9432 * ada-lang.c (cache_symbol): Use obstack_strdup.
9433
9434 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9435
9436 * configure: Regenerate.
9437
9438 2020-02-19 Tom Tromey <tromey@adacore.com>
9439
9440 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9441 NULL check.
9442
9443 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
9444
9445 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9446
9447 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9448
9449 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9450 if GDBSERVER is not defined.
9451 (riscv_tdesc_cache): Likewise, also store const target_desc.
9452 (STATIC_IN_GDB): Define.
9453 (riscv_create_target_description): Update declaration with
9454 STATIC_IN_GDB.
9455 (riscv_lookup_target_description): New function, only define if
9456 GDBSERVER is not defined.
9457 * arch/riscv.h (riscv_create_target_description): Declare only
9458 when GDBSERVER is defined.
9459 (riscv_lookup_target_description): New declaration when GDBSERVER
9460 is not defined.
9461 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9462 (riscv_linux_read_features): ...this, and return
9463 riscv_gdbarch_features instead of target_desc.
9464 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9465 (riscv_linux_read_description): Rename to...
9466 (riscv_linux_read_features): ...this.
9467 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9468 Update to use riscv_gdbarch_features and
9469 riscv_lookup_target_description.
9470 * riscv-tdep.c (riscv_find_default_target_description): Use
9471 riscv_lookup_target_description instead of
9472 riscv_create_target_description.
9473
9474 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9475
9476 * valprint.c (generic_val_print_enum_1): When printing a flag
9477 enum with value 0 and there is no enumerator with value 0, print
9478 just "0" instead of "(unknown: 0x0)".
9479
9480 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9481
9482 * valprint.c (generic_val_print_enum_1): Print unknown part of
9483 flag enum in hex.
9484
9485 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9486
9487 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9488 flag enums to contain duplicate enumerators.
9489 * valprint.c (generic_val_print_enum_1): Update comment.
9490
9491 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9492
9493 * dwarf2/read.c: Include "count-one-bits.h".
9494 (update_enumeration_type_from_children): If an enumerator has
9495 multiple bits set, don't treat the enumeration as a "flag enum".
9496 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9497 of flag enums have 0 or 1 bit set.
9498
9499 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9500
9501 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9502 conversion.
9503 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9504 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9505 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9506 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9507 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9508
9509 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9510
9511 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9512
9513 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9514
9515 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9516 displaced_step_closure_up.
9517 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9518 (struct displaced_step_closure_up):
9519 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9520 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9521 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9522 Likewise.
9523 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9524 * gdbarch.c, gdbarch.h: Re-generate.
9525 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9526 displaced_step_closure_up.
9527 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9528 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9529 * infrun.h (displaced_step_closure_up): New type alias.
9530 (struct displaced_step_inferior_state) <step_closure>: Change
9531 type to displaced_step_closure_up.
9532 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9533 displaced_step_closure_up.
9534 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9535
9536 2020-02-14 Tom Tromey <tom@tromey.com>
9537
9538 * minidebug.c (gnu_debug_key): New global.
9539 (find_separate_debug_file_in_section): Use it.
9540
9541 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9542
9543 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9544 std::unique_ptr.
9545 * gdbarch.c: Re-generate.
9546 * gdbarch.h: Re-generate.
9547 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9548 change.
9549 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9550 type to std::unique_ptr.
9551 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9552 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9553 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9554 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9555 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9556 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9557 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9558 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9559 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9560
9561 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9562
9563 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9564 std::unique_ptr.
9565 (displaced_step_clear): Rename to...
9566 (displaced_step_reset): ... this. Just call displaced->reset ().
9567 (displaced_step_clear_cleanup): Rename to...
9568 (displaced_step_reset_cleanup): ... this.
9569 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9570 (displaced_step_fixup): Likewise.
9571 (resume_1): Likewise.
9572 (handle_inferior_event): Restore child's memory before calling
9573 displaced_step_fixup on the parent.
9574 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9575 to std::unique_ptr.
9576 <step_closure>: Change type to std::unique_ptr.
9577
9578 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9579
9580 * arm-tdep.c: Include count-one-bits.h.
9581 (cleanup_block_store_pc): Use count_one_bits.
9582 (cleanup_block_load_pc): Use count_one_bits.
9583 (arm_copy_block_xfer): Use count_one_bits.
9584 (thumb2_copy_block_xfer): Use count_one_bits.
9585 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9586 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9587 (thumb_get_next_pcs_raw): Use count_one_bits.
9588 (arm_get_next_pcs_raw): Use count_one_bits_l.
9589 * arch/arm.c (bitcount): Remove.
9590 * arch/arm.h (bitcount): Remove.
9591
9592 2020-02-14 Tom Tromey <tromey@adacore.com>
9593
9594 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9595 Update.
9596 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9597 * dwarf2/loc.c (call_site_find_chain_1): Return
9598 unique_xmalloc_ptr.
9599 (call_site_find_chain): Likewise.
9600
9601 2020-02-14 Richard Biener <rguenther@suse.de>
9602
9603 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9604 on expression with division operators.
9605
9606 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9607
9608 * MAINTAINERS (Write After Approval): Adding myself.
9609
9610 2020-02-12 Tom Tromey <tom@tromey.com>
9611
9612 * event-loop.c (event_data, gdb_event, event_handler_func):
9613 Remove.
9614
9615 2020-02-12 Tom Tromey <tom@tromey.com>
9616
9617 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9618 (dwarf2_frame_objfile_data): Add comment.
9619 (find_comp_unit, set_comp_unit): New functions.
9620 (dwarf2_frame_find_fde): Use find_comp_unit.
9621 (dwarf2_build_frame_info): Use set_comp_unit.
9622
9623 2020-02-12 Tom Tromey <tom@tromey.com>
9624
9625 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9626 (comp_unit): Don't initialize objfile.
9627 (execute_cfa_program): Add text_offset parameter.
9628 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9629 (dwarf2_frame_cache): Update.
9630 (dwarf2_build_frame_info): Don't set "objfile" member.
9631
9632 2020-02-12 Tom Tromey <tom@tromey.com>
9633
9634 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9635 (decode_frame_entry): Likewise.
9636 (dwarf2_build_frame_info): Update.
9637
9638 2020-02-12 Tom Tromey <tom@tromey.com>
9639
9640 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9641 (decode_frame_entry_1): Use the comp_unit obstack.
9642
9643 2020-02-12 Tom Tromey <tom@tromey.com>
9644
9645 * dwarf2/frame.c (struct comp_unit): Add initializers and
9646 constructor.
9647 (dwarf2_frame_objfile_data): Store a comp_unit.
9648 (dwarf2_frame_find_fde): Update.
9649 (dwarf2_build_frame_info): Use "new".
9650
9651 2020-02-12 Tom Tromey <tom@tromey.com>
9652
9653 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9654 (dwarf2_fde_table): Typedef for std::vector.
9655 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9656 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9657 (decode_frame_entry): Update.
9658 (dwarf2_build_frame_info): Use "new".
9659
9660 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9661
9662 * arm-tdep.c (arm_gdbarch_init): Update.
9663 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9664 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9665 have_neon, is_m>: Change to bool.
9666
9667 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9668
9669 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9670
9671 2020-02-12 Tom Tromey <tom@tromey.com>
9672
9673 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9674
9675 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
9676
9677 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9678 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9679
9680 2020-02-11 Tom Tromey <tom@tromey.com>
9681
9682 * psymtab.h: Update comment.
9683
9684 2020-02-11 Tom Tromey <tom@tromey.com>
9685
9686 * gdb_obstack.h (struct auto_obstack): Use
9687 DISABLE_COPY_AND_ASSIGN.
9688
9689 2020-02-11 Tom Tromey <tom@tromey.com>
9690
9691 * dwarf2/frame.h (struct objfile): Don't forward declare.
9692
9693 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9694
9695 * cris-tdep.c (cris_supply_gregset): Change signature to match
9696 what struct regset expects.
9697 (cris_regset): New struct.
9698 (fetch_core_registers): Remove.
9699 (cris_iterate_over_regset_sections): New function.
9700 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9701 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9702
9703 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9704
9705 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9706 registers.
9707
9708 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9709
9710 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9711
9712 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9713
9714 * configure: Re-generate.
9715
9716 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9717
9718 * configure: Re-generate.
9719
9720 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9721
9722 * acinclude: Update warning.m4 path.
9723 * warning.m4: Move to gdbsupport.
9724
9725 2020-02-11 Tom Tromey <tromey@adacore.com>
9726
9727 * remote.c (remote_console_output): Update.
9728 * printcmd.c (printf_command): Update.
9729 * event-loop.c (gdb_wait_for_event): Update.
9730 * linux-nat.c (sigchld_handler): Update.
9731 * remote-sim.c (gdb_os_write_stdout): Update.
9732 (gdb_os_flush_stdout): Update.
9733 (gdb_os_flush_stderr): Update.
9734 (gdb_os_write_stderr): Update.
9735 * exceptions.c (print_exception): Update.
9736 * remote-fileio.c (remote_fileio_func_read): Update.
9737 (remote_fileio_func_write): Update.
9738 * tui/tui.c (tui_enable): Update.
9739 * tui/tui-interp.c (tui_interp::init): Update.
9740 * utils.c (init_page_info): Update.
9741 (putchar_unfiltered, fputc_unfiltered): Update.
9742 (gdb_flush): Update.
9743 (emit_style_escape): Update.
9744 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9745 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9746 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9747 (stderr_file::write): Update.
9748 (stderr_file::puts): Update.
9749 * ui-file.h (ui_file_isatty, ui_file_write)
9750 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9751 (ui_file_puts): Don't declare.
9752
9753 2020-02-10 Tom de Vries <tdevries@suse.de>
9754
9755 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9756 sentinel to char *.
9757
9758 2020-02-09 Tom de Vries <tdevries@suse.de>
9759
9760 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9761 filename if it matches "<artificial>".
9762
9763 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9764
9765 * windows-tdep.c (struct enum_value_name): New struct.
9766 (create_enum): New function.
9767 (windows_get_siginfo_type): Create and use enum types.
9768
9769 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9770
9771 * NEWS: Mention $_siginfo support for Windows.
9772 * windows-nat.c (handle_exception): Set siginfo_er.
9773 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9774 (windows_xfer_siginfo): New function.
9775 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9776 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9777 (init_windows_gdbarch_data): New function.
9778 (get_windows_gdbarch_data): New function.
9779 (windows_get_siginfo_type): New function.
9780 (windows_init_abi): Register windows_get_siginfo_type.
9781 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9782
9783 2020-02-08 Tom Tromey <tom@tromey.com>
9784
9785 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9786 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9787 <keep>: Declare method.
9788 <m_keep>: Remove member.
9789 <~cutu_reader>: Remove.
9790 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9791 (cutu_reader::cutu_reader): Update.
9792 (cutu_reader::keep): Rename from ~cutu_reader.
9793 (process_psymtab_comp_unit, build_type_psymtabs_1)
9794 (process_skeletonless_type_unit, load_partial_comp_unit)
9795 (load_full_comp_unit, dwarf2_read_addr_index)
9796 (read_signatured_type): Update.
9797
9798 2020-02-08 Tom Tromey <tom@tromey.com>
9799
9800 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9801 "want_partial_unit" parameter.
9802 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9803 Inline check for DW_TAG_partial_unit.
9804 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9805
9806 2020-02-08 Tom Tromey <tom@tromey.com>
9807
9808 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9809 read.c.
9810 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9811 read.c.
9812
9813 2020-02-08 Tom Tromey <tom@tromey.com>
9814
9815 * dwarf2/read.c (read_address): Move to comp-unit.c.
9816 (dwarf2_rnglists_process, dwarf2_ranges_process)
9817 (read_attribute_value, dwarf_decode_lines_1)
9818 (var_decode_location, decode_locdesc): Update.
9819 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9820 read.c. Remove "cu" parameter.
9821 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9822 method.
9823
9824 2020-02-08 Tom Tromey <tom@tromey.com>
9825
9826 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9827 (read_indirect_line_string): Update.
9828 * dwarf2/comp-unit.c (read_offset): Remove.
9829 (read_comp_unit_head): Update.
9830 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9831 method.
9832 (read_offset): Don't declare.
9833
9834 2020-02-08 Tom Tromey <tom@tromey.com>
9835
9836 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9837 * dwarf2/read.c (struct comp_unit_head): Move to
9838 dwarf2/comp-unit.h.
9839 (enum class rcuh_kind): Move to comp-unit.h.
9840 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9841 (read_comp_unit_head, error_check_comp_unit_head)
9842 (read_and_check_comp_unit_head): Move to comp-unit.c.
9843 (read_offset, dwarf_unit_type_name): Likewise.
9844 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9845 (cutu_reader::cutu_reader, read_call_site_scope)
9846 (find_partial_die, follow_die_offset): Update.
9847 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9848
9849 2020-02-08 Tom Tromey <tom@tromey.com>
9850
9851 * dwarf2/read.c (read_offset_1): Move to leb.c.
9852 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9853 (dwarf_decode_macro_bytes): Update.
9854 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9855 * dwarf2/leb.h (read_offset): Declare.
9856
9857 2020-02-08 Tom Tromey <tom@tromey.com>
9858
9859 * dwarf2/read.c (dwarf2_section_size): Remove.
9860 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9861 Update.
9862 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9863
9864 2020-02-08 Tom Tromey <tom@tromey.com>
9865
9866 * dwarf2/read.c (read_initial_length): Move to leb.c.
9867 * dwarf2/leb.h (read_initial_length): Declare.
9868 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9869 handle_nonstd parameter.
9870 * dwarf2/frame.c (read_initial_length): Remove.
9871 (decode_frame_entry_1): Update.
9872
9873 2020-02-08 Tom Tromey <tom@tromey.com>
9874
9875 * dwarf2/loc.c (dwarf2_find_location_expression)
9876 (dwarf_evaluate_loc_desc::get_tls_address)
9877 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9878 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9879 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9880 (dwarf2_compile_property_to_c)
9881 (dwarf2_loc_desc_get_symbol_read_needs)
9882 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9883 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9884 (loclist_describe_location, loclist_tracepoint_var_ref)
9885 (loclist_generate_c_location): Update.
9886 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9887 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9888 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9889 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9890 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9891 (dwarf2_per_cu_data::addr_size)
9892 (dwarf2_per_cu_data::ref_addr_size)
9893 (dwarf2_per_cu_data::text_offset)
9894 (dwarf2_per_cu_data::addr_type): Now methods.
9895 (per_cu_header_read_in): Make per_cu "const".
9896 (dwarf2_version): Remove.
9897 (dwarf2_per_cu_data::int_type): Now a method.
9898 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9899 (set_die_type, read_array_type, read_subrange_index_type)
9900 (read_tag_string_type, read_subrange_type): Update.
9901 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9902 offset_size, ref_addr_size, text_offset, addr_type, version,
9903 objfile, int_type, addr_sized_int_type>: Declare methods.
9904
9905 2020-02-08 Tom Tromey <tom@tromey.com>
9906
9907 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9908 Move earlier.
9909
9910 2020-02-08 Tom Tromey <tom@tromey.com>
9911
9912 * dwarf2/read.h (dwarf_line_debug): Declare.
9913 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9914 * dwarf2/read.c: Move line_header code to new files.
9915 (dwarf_line_debug): No longer static.
9916 * dwarf2/line-header.c: New file.
9917 * dwarf2/line-header.h: New file.
9918
9919 2020-02-08 Tom Tromey <tom@tromey.com>
9920
9921 * dwarf2/read.c (struct line_header) <file_full_name,
9922 file_file_name>: Return unique_xmalloc_ptr.
9923 (line_header::file_file_name): Update.
9924 (line_header::file_full_name): Update.
9925 (dw2_get_file_names_reader): Update.
9926 (macro_start_file): Update.
9927
9928 2020-02-08 Tom Tromey <tom@tromey.com>
9929
9930 * dwarf2/read.c (struct line_header) <file_full_name,
9931 file_file_name>: Declare methods.
9932 (dw2_get_file_names_reader): Update.
9933 (file_file_name): Now a method.
9934 (file_full_name): Likewise.
9935 (macro_start_file): Update.
9936
9937 2020-02-08 Tom Tromey <tom@tromey.com>
9938
9939 * dwarf2/read.c (dwarf_always_disassemble)
9940 (show_dwarf_always_disassemble): Move to loc.c.
9941 (_initialize_dwarf2_read): Move "always-disassemble" registration
9942 to loc.c.
9943 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9944 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9945 static.
9946 (show_dwarf_always_disassemble): Move from read.c.
9947 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9948
9949 2020-02-08 Tom Tromey <tom@tromey.com>
9950
9951 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9952 (create_quick_file_names_table): Return htab_up.
9953 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9954 Update.
9955 * dwarf2/read.h (struct dwarf2_per_objfile)
9956 <quick_file_names_table>: Now htab_up.
9957
9958 2020-02-08 Tom Tromey <tom@tromey.com>
9959
9960 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9961
9962 2020-02-08 Tom Tromey <tom@tromey.com>
9963
9964 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9965 Rewrite.
9966 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9967 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9968 (abbrev_table::abbrev_table): No longer inline.
9969 (ABBREV_HASH_SIZE): Remove.
9970 (abbrev_table::m_abbrevs): Now an htab_up.
9971
9972 2020-02-08 Tom Tromey <tom@tromey.com>
9973
9974 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9975 (cutu_reader): Update.
9976 (build_type_psymtabs_1): Update.
9977 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9978 (abbrev_table::alloc_abbrev): Update.
9979 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9980 (abbrev_table::read): New static method, renamed from
9981 abbrev_table_read_table.
9982 (abbrev_table::alloc_abbrev)
9983 (abbrev_table::add_abbrev): Now private.
9984 (abbrev_table::abbrev_table): Now private.
9985 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9986
9987 2020-02-08 Tom Tromey <tom@tromey.com>
9988
9989 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9990 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9991 htab_up.
9992
9993 2020-02-08 Tom Tromey <tom@tromey.com>
9994
9995 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9996 htab_up.
9997 (lookup_dwo_unit_in_dwp): Update.
9998 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9999 on obstack.
10000
10001 2020-02-08 Tom Tromey <tom@tromey.com>
10002
10003 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
10004 obstack.
10005
10006 2020-02-08 Tom Tromey <tom@tromey.com>
10007
10008 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
10009 line_header_hash.
10010 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
10011 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
10012 Change type to htab_up.
10013
10014 2020-02-08 Tom Tromey <tom@tromey.com>
10015
10016 * dwarf2/read.c (allocate_type_unit_groups_table): Return
10017 htab_up. Don't allocate on obstack.
10018 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
10019 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
10020 Change type to htab_up.
10021
10022 2020-02-08 Tom Tromey <tom@tromey.com>
10023
10024 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
10025 Change type to htab_up.
10026 * dwarf2/read.c (create_signatured_type_table_from_index)
10027 (create_signatured_type_table_from_debug_names)
10028 (create_all_type_units, add_type_unit)
10029 (lookup_dwo_signatured_type, lookup_signatured_type)
10030 (process_skeletonless_type_unit): Update.
10031 (create_debug_type_hash_table, create_debug_types_hash_table):
10032 Change type of types_htab.
10033 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
10034 htab_up. Don't allocate on obstack.
10035 (create_cus_hash_table): Change type of cus_htab parameter.
10036 (struct dwo_file) <cus, tus>: Now htab_up.
10037 (lookup_dwo_signatured_type, lookup_dwo_cutu)
10038 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
10039 (queue_and_load_all_dwo_tus): Update.
10040 * dwarf2/index-write.c (write_gdbindex): Update.
10041 (write_debug_names): Update.
10042
10043 2020-02-08 Tom Tromey <tom@tromey.com>
10044
10045 * dwarf2/read.h (struct dwarf2_queue_item): Move from
10046 dwarf2/read.c. Remove "next" member. Add constructor ntad
10047 destructor.
10048 (struct dwarf2_per_objfile) <queue>: New member.
10049 * dwarf2/read.c (struct dwarf2_queue_item): Move to
10050 dwarf2/read.h.
10051 (dwarf2_queue, dwarf2_queue_tail): Remove.
10052 (class dwarf2_queue_guard): Add parameter to constructor. Use
10053 DISABLE_COPY_AND_ASSIGN.
10054 <m_per_objfile>: New member.
10055 <~dwarf2_queue_guard>: Rewrite.
10056 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
10057 Update.
10058 (~dwarf2_queue_item): New.
10059
10060 2020-02-08 Tom Tromey <tom@tromey.com>
10061
10062 * dwarf2/read.c (struct die_info) <has_children>: New member.
10063 (dw2_get_file_names_reader): Remove has_children.
10064 (dw2_get_file_names): Update.
10065 (read_cutu_die_from_dwo): Remove has_children.
10066 (cutu_reader::init_tu_and_read_dwo_dies)
10067 (cutu_reader::cutu_reader): Update.
10068 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
10069 Remove has_children.
10070 (build_type_psymtabs_1, process_skeletonless_type_unit)
10071 (load_partial_comp_unit, load_full_comp_unit): Update.
10072 (create_dwo_cu_reader): Remove has_children.
10073 (create_cus_hash_table, read_die_and_children): Update.
10074 (read_full_die_1,read_full_die): Remove has_children.
10075 (read_signatured_type): Update.
10076 (class cutu_reader) <has_children>: Remove.
10077
10078 2020-02-08 Tom Tromey <tom@tromey.com>
10079
10080 * dwarf2/expr.c: Rename from dwarf2expr.c.
10081 * dwarf2/expr.h: Rename from dwarf2expr.h.
10082 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
10083 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
10084 * dwarf2/frame.c: Rename from dwarf2-frame.c.
10085 * dwarf2/frame.h: Rename from dwarf2-frame.h.
10086 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
10087 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
10088 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
10089 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
10090 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
10091 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
10092 * dwarf2/loc.c: Rename from dwarf2loc.c.
10093 * dwarf2/loc.h: Rename from dwarf2loc.h.
10094 * dwarf2/read.c: Rename from dwarf2read.c.
10095 * dwarf2/read.h: Rename from dwarf2read.h.
10096 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
10097 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
10098 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
10099 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
10100 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
10101 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
10102 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
10103 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
10104 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
10105 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
10106 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
10107 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
10108 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
10109 Update.
10110 * Makefile.in (COMMON_SFILES): Update.
10111 (HFILES_NO_SRCDIR): Update.
10112
10113 2020-02-08 Tom Tromey <tom@tromey.com>
10114
10115 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
10116 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
10117
10118 2020-02-08 Tom Tromey <tom@tromey.com>
10119
10120 * dwarf2read.h (struct die_info): Don't declare.
10121
10122 2020-02-08 Tom Tromey <tom@tromey.com>
10123
10124 * dwarf2read.h (die_info_ptr): Remove typedef.
10125
10126 2020-02-08 Tom Tromey <tom@tromey.com>
10127
10128 * dwarf2read.c (read_call_site_scope)
10129 (handle_data_member_location, dwarf2_add_member_fn)
10130 (mark_common_block_symbol_computed, read_common_block)
10131 (attr_to_dynamic_prop, partial_die_info::read)
10132 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
10133 (dwarf2_symbol_mark_computed, set_die_type): Update.
10134 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
10135 method.
10136 (attr_form_is_block): Don't declare.
10137 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
10138
10139 2020-02-08 Tom Tromey <tom@tromey.com>
10140
10141 * dwarf2read.c (dwarf2_find_base_address, )
10142 (read_call_site_scope, rust_containing_type)
10143 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
10144 (handle_data_member_location, dwarf2_add_member_fn)
10145 (get_alignment, read_structure_type, process_structure_scope)
10146 (mark_common_block_symbol_computed, read_common_block)
10147 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
10148 (partial_die_info::read, read_attribute_value, new_symbol)
10149 (lookup_die_type, dwarf2_get_ref_die_offset)
10150 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
10151 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
10152 (dwarf2_symbol_mark_computed): Update.
10153 * dwarf2/attribute.h (struct attribute) <value_as_address,
10154 form_is_section_offset, form_is_constant, form_is_ref>: Declare
10155 methods.
10156 (value_as_address, attr_form_is_section_offset)
10157 (attr_form_is_constant, attr_form_is_ref): Don't declare.
10158 * dwarf2/attribute.c (attribute::value_as_address)
10159 (attribute::form_is_section_offset, attribute::form_is_constant)
10160 (attribute::form_is_ref): Now methods.
10161
10162 2020-02-08 Tom Tromey <tom@tromey.com>
10163
10164 * dwarf2read.c (struct attribute, DW_STRING)
10165 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
10166 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
10167 (attr_form_is_block, attr_form_is_section_offset)
10168 (attr_form_is_constant, attr_form_is_ref): Move.
10169 * dwarf2/attribute.h: New file.
10170 * dwarf2/attribute.c: New file, from dwarf2read.c.
10171 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
10172
10173 2020-02-08 Tom Tromey <tom@tromey.com>
10174
10175 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
10176 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
10177 Move.
10178 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
10179 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
10180 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
10181 abbrev.c.
10182 * dwarf2/abbrev.h: New file.
10183 * dwarf2/abbrev.c: New file, from dwarf2read.c.
10184 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
10185
10186 2020-02-08 Tom Tromey <tom@tromey.com>
10187
10188 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
10189 (dwarf2_section_size, dwarf2_get_section_info)
10190 (create_signatured_type_table_from_debug_names)
10191 (create_addrmap_from_aranges, read_debug_names_from_section)
10192 (get_gdb_index_contents_from_section, read_comp_unit_head)
10193 (error_check_comp_unit_head, read_abbrev_offset)
10194 (create_debug_type_hash_table, init_cu_die_reader)
10195 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
10196 (read_comp_units_from_section, create_cus_hash_table)
10197 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10198 (create_dwp_v2_section, dwarf2_rnglists_process)
10199 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
10200 (abbrev_table_read_table, read_indirect_string_at_offset_from)
10201 (read_indirect_string_from_dwz, read_addr_index_1)
10202 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
10203 (dwarf_decode_macro_bytes, dwarf_decode_macros)
10204 (fill_in_loclist_baton): Update.
10205 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
10206 get_containing_section, get_bfd_owner, get_bfd_section,
10207 get_file_name, get_id, get_flags, empty, read>: Declare methods.
10208 (dwarf2_read_section, get_section_name, get_section_file_name)
10209 (get_containing_section, get_section_bfd_owner)
10210 (get_section_bfd_section, get_section_name, get_section_file_name)
10211 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
10212 declare.
10213 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
10214 (dwarf2_section_info::get_bfd_owner)
10215 (dwarf2_section_info::get_bfd_section)
10216 (dwarf2_section_info::get_name)
10217 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
10218 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
10219 (dwarf2_section_info::read): Now methods.
10220 * dwarf-index-write.c (class debug_names): Update.
10221
10222 2020-02-08 Tom Tromey <tom@tromey.com>
10223
10224 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
10225 Move to dwarf2/section.h.
10226 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
10227 (get_section_bfd_section, get_section_name)
10228 (get_section_file_name, get_section_id, get_section_flags)
10229 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
10230 dwarf2/section.c.
10231 * dwarf2/section.h: New file.
10232 * dwarf2/section.c: New file, from dwarf2read.c.
10233 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10234
10235 2020-02-08 Tom Tromey <tom@tromey.com>
10236
10237 * dwarf2read.h (read_unsigned_leb128): Don't declare.
10238 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10239 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10240 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10241 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10242 * dwarf2/leb.h: New file, from dwarf2read.c.
10243 * dwarf2/leb.c: New file, from dwarf2read.c.
10244 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10245 Remove.
10246 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10247 (COMMON_SFILES): Add dwarf2/leb.c.
10248
10249 2020-02-08 Joel Brobecker <brobecker@adacore.com>
10250
10251 GDB 9.1 released.
10252
10253 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10254
10255 PR gdb/25190:
10256 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10257 * gdb/remote.c (remote_console_output): Update.
10258 * gdb/ui-file.c (fputs_unfiltered): Rename to...
10259 (ui_file_puts): ...this.
10260 * gdb/ui-file.h (ui_file_puts): Add declaration.
10261 * gdb/utils.c (emit_style_escape): Update.
10262 (flush_wrap_buffer): Update.
10263 (fputs_maybe_filtered): Update.
10264 (fputs_unfiltered): Add function.
10265
10266 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10267
10268 * gdb/event-loop.c (gdb_wait_for_event): Update.
10269 * gdb/printcmd.c (printf_command): Update.
10270 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10271 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10272 (gdb_os_flush_stderr): Update.
10273 * gdb/remote.c (remote_console_output): Update.
10274 * gdb/ui-file.c (gdb_flush): Rename to...
10275 (ui_file_flush): ...this.
10276 (stderr_file::write): Update.
10277 (stderr_file::puts): Update.
10278 * gdb/ui-file.h (gdb_flush): Rename to...
10279 (ui_file_flush): ...this.
10280 * gdb/utils.c (gdb_flush): Add function.
10281 * gdb/utils.h (gdb_flush): Add declaration.
10282
10283 2020-02-07 Tom Tromey <tromey@adacore.com>
10284
10285 PR breakpoints/24915:
10286 * source.c (find_and_open_source): Do not check basenames_may_differ.
10287
10288 2020-02-07 Tom Tromey <tom@tromey.com>
10289
10290 * README: Update gdbserver documentation.
10291 * gdbserver: Move to top level.
10292 * configure.tgt (build_gdbserver): Remove.
10293 * configure.ac: Remove --enable-gdbserver.
10294 * configure: Rebuild.
10295 * Makefile.in (distclean): Don't mention gdbserver.
10296
10297 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10298
10299 * source-cache.c (source_cache::ensure): Surround
10300 get_plain_source_lines with a try/catch.
10301 (source_cache::get_line_charpos): Get rid of try/catch
10302 and only check for the return value of "ensure".
10303 * tui/tui-source.c (tui_source_window::set_contents):
10304 Simplify "nlines" calculation.
10305
10306 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10307
10308 * MAINTAINERS (Write After Approval): Add myself.
10309
10310 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10311
10312 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10313 function call.
10314
10315 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10316
10317 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10318
10319 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
10320
10321 * nat/riscv-linux-tdesc.h: New file.
10322 * nat/riscv-linux-tdesc.c: New file, taking code from...
10323 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10324 ... here.
10325 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10326 NATDEPFILES.
10327
10328 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10329
10330 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10331 we don't set the fake simulator ptid to the null_ptid.
10332
10333 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
10334
10335 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10336 * gdbthread.h (class thread_info) <resumed>: Likewise.
10337 * infrun.c (resume_1): Likewise.
10338 (proceed): Likewise.
10339 (infrun_thread_stop_requested): Likewise.
10340 (stop_all_threads): Likewise.
10341 (handle_inferior_event): Likewise.
10342 (restart_threads): Likewise.
10343 (finish_step_over): Likewise.
10344 (keep_going_stepped_thread): Likewise.
10345 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10346 (linux_handle_extended_wait): Likewise.
10347 * record-btrace.c (get_thread_current_frame_id): Likewise.
10348 * record-full.c (record_full_wait_1): Likewise.
10349 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10350 * target.c (target_resume): Likewise.
10351 * thread.c (set_running_thread): Likewise.
10352
10353 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10354
10355 * f-valprint.c (f77_print_array_1): Changed datatype of index
10356 variable to LONGEST from int to enable it to contain bound
10357 values correctly.
10358
10359 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
10360
10361 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10362 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10363 offsets according to FLEN determined.
10364 (riscv_linux_nat_target::read_description): Determine FLEN
10365 dynamically.
10366 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10367 according to FLEN determined.
10368 (riscv_linux_nat_target::store_registers): Likewise.
10369
10370 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10371
10372 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10373 when reg->group is empty and reggroup is not.
10374
10375 2020-01-31 Tom Tromey <tromey@adacore.com>
10376
10377 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10378 Call beneath target's mourn_inferior after unpushing.
10379
10380 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10381
10382 PR tui/9765
10383 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10384 have enough lines to fill the screen, still return the lowest
10385 address we found.
10386
10387 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10388
10389 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10390 '-', '<', and '>' commands.
10391
10392 2020-01-29 Pedro Alves <palves@redhat.com>
10393 Sergio Durigan Junior <sergiodj@redhat.com>
10394
10395 * infcmd.c (construct_inferior_arguments): Assert that
10396 'argc' is greater than 0.
10397
10398 2020-01-29 Luis Machado <luis.machado@linaro.org>
10399
10400 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10401 (BRK_INSN_MASK): Define to 0xd4200000.
10402 (aarch64_program_breakpoint_here_p): New function.
10403 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10404 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10405 breakpoint.c.
10406 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10407 breakpoint.h
10408 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10409 call gdbarch_program_breakpoint_here_p.
10410 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10411 default_program_breakpoint_here_p, changed return type to bool and
10412 simplified.
10413 * breakpoint.h (program_breakpoint_here): Moved prototype to
10414 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10415 return type to bool.
10416 * gdbarch.c: Regenerate.
10417 * gdbarch.h: Regenerate.
10418 * gdbarch.sh (program_breakpoint_here_p): New method.
10419 * infrun.c (handle_signal_stop): Call
10420 gdbarch_program_breakpoint_here_p.
10421
10422 2020-01-26 Tom Tromey <tom@tromey.com>
10423
10424 * ctfread.c (struct ctf_fp_info): Reindent.
10425 (_initialize_ctfread): Remove.
10426
10427 2020-01-26 Tom Tromey <tom@tromey.com>
10428
10429 * psymtab.c (partial_map_expand_apply)
10430 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10431 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10432 (psym_print_stats, psym_expand_symtabs_for_function)
10433 (psym_map_symbol_filenames, psym_map_matching_symbols)
10434 (psym_expand_symtabs_matching)
10435 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10436 (maintenance_check_psymtabs): Use new methods.
10437 * psympriv.h (struct partial_symtab) <readin_p,
10438 get_compunit_symtab>: New methods.
10439 <readin, compunit_symtab>: Remove members.
10440 (struct standard_psymtab): New.
10441 (struct legacy_psymtab): Derive from standard_psymtab.
10442 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10443 standard_psymtab.
10444 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10445
10446 2020-01-26 Tom Tromey <tom@tromey.com>
10447
10448 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10449 read_dependencies. Add assert.
10450 * psymtab.c (partial_symtab::read_dependencies): New method.
10451 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10452 method.
10453 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10454 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10455 read_dependencies.
10456 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10457 Add assert.
10458
10459 2020-01-26 Tom Tromey <tom@tromey.com>
10460
10461 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10462 Call expand_psymtab.
10463 (xcoff_read_symtab): Call expand_psymtab.
10464 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10465 legacy_expand_psymtab.
10466 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10467 method.
10468 (struct legacy_psymtab) <expand_psymtab>: Implement.
10469 <legacy_expand_psymtab>: New member.
10470 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10471 (parse_partial_symbols): Set legacy_expand_psymtab.
10472 (psymtab_to_symtab_1): Change argument order. Call
10473 expand_psymtab.
10474 (new_psymtab): Set legacy_expand_psymtab.
10475 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10476 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10477 expand_psymtab.
10478 (dwarf2_psymtab::expand_psymtab): Rename from
10479 psymtab_to_symtab_1. Call expand_psymtab.
10480 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10481 (dbx_end_psymtab): Likewise.
10482 (dbx_psymtab_to_symtab_1): Change argument order. Call
10483 expand_psymtab.
10484 (dbx_read_symtab): Call expand_psymtab.
10485 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10486 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10487 (ctf_psymtab::read_symtab): Call expand_psymtab.
10488
10489 2020-01-26 Tom Tromey <tom@tromey.com>
10490
10491 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10492 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10493 messages.
10494 * mdebugread.c (mdebug_read_symtab): Remove prints.
10495 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10496 assert.
10497 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10498
10499 2020-01-26 Tom Tromey <tom@tromey.com>
10500
10501 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10502 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10503 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10504 legacy_symtab.
10505 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10506 * psymtab.c (psymtab_to_symtab): Call method.
10507 (dump_psymtab): Update.
10508 * psympriv.h (struct partial_symtab): Add virtual destructor.
10509 <read_symtab>: New method.
10510 (struct legacy_symtab): New.
10511 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10512 (struct pst_map) <pst>: Now a legacy_psymtab.
10513 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10514 (new_psymtab): Use legacy_psymtab.
10515 * dwarf2read.h (struct dwarf2_psymtab): New.
10516 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10517 * dwarf2read.c (dwarf2_create_include_psymtab)
10518 (dwarf2_build_include_psymtabs, create_type_unit_group)
10519 (create_partial_symtab, process_psymtab_comp_unit_reader)
10520 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10521 (set_partial_user): Use dwarf2_psymtab.
10522 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10523 (psymtab_to_symtab_1, process_full_comp_unit)
10524 (process_full_type_unit, dwarf2_ranges_read)
10525 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10526 (dwarf_decode_lines): Use dwarf2_psymtab.
10527 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10528 (add_address_entry_worker, write_one_signatured_type)
10529 (recursively_count_psymbols, recursively_write_psymbols)
10530 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10531 (write_debug_names): Likewise.
10532 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10533 <pst>: Now a legacy_psymtab.
10534 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10535 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10536 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10537 * ctfread.c (struct ctf_psymtab): New.
10538 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10539 ctf_psymtab.
10540 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10541 (create_partial_symtab): Return a ctf_psymtab.
10542 (scan_partial_symbols): Update.
10543
10544 2020-01-26 Tom Tromey <tom@tromey.com>
10545
10546 * xcoffread.c (xcoff_start_psymtab): Use new.
10547 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10548 renamed from start_psymtab_common.
10549 * psympriv.h (struct partial_symtab): Add new constructor.
10550 (start_psymtab_common): Don't declare.
10551 * mdebugread.c (parse_partial_symbols): Use new.
10552 * dwarf2read.c (create_partial_symtab): Use new.
10553 * dbxread.c (start_psymtab): Use new.
10554 * ctfread.c (create_partial_symtab): Use new.
10555
10556 2020-01-26 Tom Tromey <tom@tromey.com>
10557
10558 * xcoffread.c (xcoff_end_psymtab): Use new.
10559 * psymtab.c (start_psymtab_common): Use new.
10560 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10561 Update.
10562 * psympriv.h (struct partial_symtab): Add parameters to
10563 constructor. Don't inline.
10564 (allocate_psymtab): Don't declare.
10565 * mdebugread.c (new_psymtab): Use new.
10566 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10567 * dbxread.c (dbx_end_psymtab): Use new.
10568
10569 2020-01-26 Tom Tromey <tom@tromey.com>
10570
10571 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10572 allocate_psymtab. Update documentation.
10573 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10574 allocate_psymtab. Do not use new.
10575 (allocate_psymtab): Use new. Update.
10576
10577 2020-01-26 Tom Tromey <tom@tromey.com>
10578
10579 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10580 * psymtab.c (psym_print_stats): Update.
10581 * psympriv.h (struct partial_symtab) <readin,
10582 psymtabs_addrmap_supported, anonymous>: Now bool.
10583 * mdebugread.c (psymtab_to_symtab_1): Update.
10584 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10585 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10586 (process_full_comp_unit, process_full_type_unit): Update.
10587 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10588 * ctfread.c (psymtab_to_symtab): Update.
10589
10590 2020-01-26 Tom Tromey <tom@tromey.com>
10591
10592 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10593 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10594 * psymtab.c (psymtab_storage): Delete psymtabs.
10595 (psymtab_storage::allocate_psymtab): Use new.
10596 (psymtab_storage::discard_psymtab): Use delete.
10597 * psympriv.h (struct partial_symtab): Add constructor and
10598 initializers.
10599
10600 2020-01-26 Tom Tromey <tom@tromey.com>
10601
10602 * machoread.c: Do not include psympriv.h.
10603
10604 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10605
10606 * NEWS: Mention the new option and the set/show commands.
10607
10608 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10609
10610 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10611 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10612 (validate_exec_file): New variables, enums, functions.
10613 (exec_file_locate_attach, print_section_info): Style the filenames.
10614 (_initialize_exec): Install show_exec_file_mismatch_command and
10615 set_exec_file_mismatch_command.
10616 * gdbcore.h (validate_exec_file): Declare.
10617 * infcmd.c (attach_command): Call validate_exec_file.
10618 * remote.c ( remote_target::remote_add_inferior): Likewise.
10619
10620 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10621
10622 * frame.c (find_frame_sal): Move call to get_next_frame into more
10623 inner scope.
10624 * inline-frame.c (inilne_state) <inline_state>: Update argument
10625 types.
10626 (inilne_state) <skipped_symbol>: Rename to...
10627 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10628 (skip_inline_frames): Build vector of skipped symbols and use this
10629 to reate the inline_state.
10630 (inline_skipped_symbol): Add a comment and some assertions, fetch
10631 skipped symbol from the list.
10632
10633 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10634
10635 * buildsym.c (lte_is_less_than): Delete.
10636 (buildsym_compunit::end_symtab_with_blockvector): Create local
10637 lambda function to sort line table entries, and use
10638 std::stable_sort instead of std::sort.
10639 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10640 markers when looking for a previous line.
10641
10642 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10643
10644 * dwarf2read.c (lnp_state_machine::record_line): Include
10645 end_sequence parameter in debug print out. Record the line if we
10646 are at an end_sequence marker even if it's not the start of a
10647 statement.
10648 * symmisc.c (maintenance_print_one_line_table): Print end of
10649 sequence markers with 'END' not '0'.
10650
10651 2020-01-24 Pedro Alves <palves@redhat.com>
10652
10653 PR gdb/25410
10654 * thread.c (scoped_restore_current_thread::restore): Use
10655 switch_to_inferior_no_thread.
10656 * exec.c: Include "progspace-and-thread.h".
10657 (add_target_sections, remove_target_sections):
10658 scoped_restore_current_pspace_and_thread instead of
10659 scoped_restore_current_thread.
10660 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10661 and aspace to the inferior before calling clone_program_space.
10662 Remove stale comment.
10663
10664 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10665
10666 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10667 (arm_netbsd_nat_target::fetch_registers): ...this.
10668 (arm_nbsd_nat_target::store_registers): Rename to...
10669 (arm_netbsd_nat_target::store_registers): ...this.
10670
10671 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10672
10673 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10674 register_t.
10675
10676 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10677
10678 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10679 Update comment.
10680 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10681 Likewise.
10682 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10683 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10684 the correct replacement (iterate_over_regset_sections).
10685 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10686 Update comment.
10687
10688 2020-01-24 Graham Markall <graham.markall@embecosm.com>
10689
10690 PR gdb/23718
10691 * gdb/python/python.c (execute_gdb_command): Call
10692 async_enable_stdin in catch block.
10693
10694 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10695
10696 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10697 SWITCH_THRU_ALL_UIS.
10698
10699 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10700
10701 PR tui/9765
10702 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10703 comment, add extra parameter, and update to store previous symbol
10704 when appropriate.
10705 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10706 add extra parameter.
10707 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10708 remove unneeded parameter, add try/catch around gdb_print_insn,
10709 rewrite to add items to asm_lines vector.
10710 (tui_find_backward_disassembly_start_address): New function.
10711 (tui_find_disassembly_address): Updated throughout.
10712 (tui_disasm_window::set_contents): Update for changes to
10713 tui_disassemble.
10714 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10715 number of lines to scroll.
10716
10717 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10718
10719 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10720 (SECT_OFF_DATA): Likewise.
10721 (SECT_OFF_RODATA): Likewise.
10722 (SECT_OFF_TEXT): Likewise.
10723 (SECT_OFF_BSS): Likewise.
10724 (struct objfile) <text_section_offset, data_section_offset>: New
10725 methods.
10726 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10727 objfile::text_section_offset.
10728 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10729 * coffread.c (coff_symtab_read): Likewise.
10730 (enter_linenos): Likewise.
10731 (process_coff_symbol): Likewise.
10732 * ctfread.c (get_objfile_text_range): Likewise.
10733 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10734 Use objfile::data_section_offset.
10735 * dwarf2-frame.c (execute_cfa_program): Use
10736 objfile::text_section_offset.
10737 (dwarf2_frame_find_fde): Likewise.
10738 * dwarf2read.c (create_addrmap_from_index): Likewise.
10739 (create_addrmap_from_aranges): Likewise.
10740 (dw2_find_pc_sect_compunit_symtab): Likewise.
10741 (process_psymtab_comp_unit_reader): Likewise.
10742 (add_partial_symbol): Likewise.
10743 (add_partial_subprogram): Likewise.
10744 (process_full_comp_unit): Likewise.
10745 (read_file_scope): Likewise.
10746 (read_func_scope): Likewise.
10747 (read_lexical_block_scope): Likewise.
10748 (read_call_site_scope): Likewise.
10749 (dwarf2_rnglists_process): Likewise.
10750 (dwarf2_ranges_process): Likewise.
10751 (dwarf2_ranges_read): Likewise.
10752 (dwarf_decode_lines_1): Likewise.
10753 (new_symbol): Likewise.
10754 (dwarf2_fetch_die_loc_sect_off): Likewise.
10755 (dwarf2_per_cu_text_offset): Likewise.
10756 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10757 * hppa-tdep.c (read_unwind_info): Likewise.
10758 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10759 * psympriv.h (struct partial_symtab): Likewise.
10760 * psymtab.c (find_pc_sect_psymtab): Likewise.
10761 * solib-svr4.c (enable_break): Likewise.
10762 * stap-probe.c (relocate_address): Use
10763 objfile::data_section_offset.
10764 * xcoffread.c (enter_line_range): Use
10765 objfile::text_section_offset.
10766 (read_xcoff_symtab): Likewise.
10767
10768 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10769
10770 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10771 declaration to narrower scopes.
10772
10773 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10774
10775 * darwin-nat.h (struct darwin_exception_msg, enum
10776 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10777 Move up.
10778 (class darwin_nat_target) <wait_1, check_new_threads,
10779 decode_exception_message, decode_message, stop_inferior,
10780 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10781 * darwin-nat.c (darwin_check_new_threads): Rename to...
10782 (darwin_nat_target::check_new_threads): ... this.
10783 (darwin_suspend_inferior_it): Remove.
10784 (darwin_decode_exception_message): Rename to...
10785 (darwin_nat_target::decode_exception_message): ... this.
10786 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10787 (darwin_decode_message): Rename to...
10788 (darwin_nat_target::decode_message): ... this.
10789 (cancel_breakpoint): Rename to...
10790 (darwin_nat_target::cancel_breakpoint): ... this.
10791 (darwin_wait): Rename to...
10792 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10793 instead of iterate_over_inferiors.
10794 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10795 (darwin_stop_inferior): Rename to...
10796 (darwin_nat_target::stop_inferior): ... this.
10797 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10798 (darwin_init_thread_list): Rename to...
10799 (darwin_nat_target::init_thread_list): ... this.
10800 (darwin_ptrace_him): Rename to...
10801 (darwin_nat_target::ptrace_him): ... this.
10802 (darwin_nat_target::create_inferior): Pass lambda function to
10803 fork_inferior.
10804 (darwin_nat_target::detach): Call stop_inferior instead of
10805 darwin_stop_inferior.
10806 * fork-inferior.h (fork_inferior): Change init_trace_fun
10807 parameter to gdb::function_view.
10808 * fork-inferior.c (fork_inferior): Likewise.
10809
10810 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
10811
10812 * i386-cygwin-tdep.c (core_process_module_section): Update.
10813 * windows-nat.c (struct lm_info_windows): Add text_offset.
10814 (windows_xfer_shared_libraries): Update.
10815 * windows-tdep.c (windows_xfer_shared_library):
10816 Add text_offset_cached argument.
10817 * windows-tdep.h (windows_xfer_shared_library): Update.
10818
10819 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10820
10821 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10822
10823 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10824
10825 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10826 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10827 replace with range-based for.
10828 (gdbsim_interrupt_inferior): Remove.
10829 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10830 with a range-based for. Inline code from
10831 gdbsim_interrupt_inferior.
10832
10833 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10834
10835 * infrun.c (proceed): Fix indentation.
10836
10837 2020-01-21 Tom Tromey <tromey@adacore.com>
10838
10839 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10840 * python/python.c (python_extension_ops): Update.
10841 (gdbpy_colorize): New function.
10842 * python/lib/gdb/__init__.py (colorize): New function.
10843 * extension.h (ext_lang_colorize): Declare.
10844 * extension.c (ext_lang_colorize): New function.
10845 * extension-priv.h (struct extension_language_ops) <colorize>: New
10846 member.
10847 * cli/cli-style.c (_initialize_cli_style): Update help text.
10848
10849 2020-01-21 Luis Machado <luis.machado@linaro.org>
10850
10851 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10852 <cond>: Change type to bool.
10853 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10854 (aarch64_displaced_step_cb): Likewise.
10855 (aarch64_displaced_step_tb): Likewise.
10856
10857 2020-01-21 Luis Machado <luis.machado@linaro.org>
10858
10859 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10860 output.
10861
10862 2020-01-21 Luis Machado <luis.machado@linaro.org>
10863
10864 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10865 <pc_adjust>: Adjust the documentation.
10866 (aarch64_displaced_step_fixup): Check if PC really moved before
10867 adjusting it.
10868
10869 2020-01-19 Tom Tromey <tom@tromey.com>
10870
10871 * disasm.c (~gdb_disassembler): New destructor.
10872 (gdb_buffered_insn_length): Call disassemble_free_target.
10873 * disasm.h (class gdb_disassembler): Declare destructor. Use
10874 DISABLE_COPY_AND_ASSIGN.
10875
10876 2020-01-19 Tom Tromey <tom@tromey.com>
10877
10878 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10879 (die_reader_func_ftype): Remove.
10880 (cutu_reader): New class.
10881 (dw2_get_file_names_reader): Remove "data" parameter.
10882 (dw2_get_file_names): Use cutu_reader.
10883 (create_debug_type_hash_table): Update.
10884 (read_cutu_die_from_dwo): Update comment.
10885 (lookup_dwo_unit): Add dwo_name parameter.
10886 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10887 die_reader_func_ftype and data parameters.
10888 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10889 Remove die_reader_func_ftype and data parameters.
10890 (~cutu_reader): New; from init_cutu_and_read_dies.
10891 (cutu_reader::cutu_reader): Rename from
10892 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10893 and data parameters.
10894 (init_cutu_and_read_dies_simple): Remove.
10895 (struct process_psymtab_comp_unit_data): Remove.
10896 (process_psymtab_comp_unit_reader): Remove data parameter; add
10897 want_partial_unit and pretend_language parameters.
10898 (process_psymtab_comp_unit): Use cutu_reader.
10899 (build_type_psymtabs_reader): Remove data parameter.
10900 (build_type_psymtabs_1): Use cutu_reader.
10901 (process_skeletonless_type_unit): Likewise.
10902 (load_partial_comp_unit_reader): Remove.
10903 (load_partial_comp_unit): Use cutu_reader.
10904 (load_full_comp_unit_reader): Remove.
10905 (load_full_comp_unit): Use cutu_reader.
10906 (struct create_dwo_cu_data): Remove.
10907 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10908 dwo_unit parameters.
10909 (create_cus_hash_table): Use cutu_reader.
10910 (struct dwarf2_read_addr_index_data): Remove.
10911 (dwarf2_read_addr_index_reader): Remove.
10912 (dwarf2_read_addr_index): Use cutu_reader.
10913 (read_signatured_type_reader): Remove.
10914 (read_signatured_type): Use cutu_reader.
10915
10916 2020-01-19 Tom Tromey <tom@tromey.com>
10917
10918 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10919 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10920 (tui_wrefresh): Declare.
10921 * tui/tui-wingeneral.c (suppress_output): New global.
10922 (tui_suppress_output, ~tui_suppress_output): New constructor and
10923 destructor.
10924 (tui_wrefresh): New function.
10925 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10926 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10927 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10928 method.
10929 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10930 tui_wrefresh.
10931 (tui_data_window::no_refresh): New method.
10932 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10933 (tui_reg_command): Use tui_suppress_output
10934 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10935 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10936 method.
10937 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10938
10939 2020-01-19 Tom Tromey <tom@tromey.com>
10940
10941 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10942 Handle case where symtab is null.
10943
10944 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10945
10946 * linux-fork.c (one_fork_p): Simplify.
10947
10948 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10949
10950 * top.c (struct qt_args): Remove.
10951 (kill_or_detach): Change return type to void, replace `void *`
10952 parameter with a proper one.
10953 (print_inferior_quit_action): Likewise.
10954 (quit_confirm): Use range-based for loop to iterate over inferiors.
10955 (quit_force): Likewise.
10956
10957 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10958
10959 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10960 `void *` parameter with proper parameters.
10961 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10962 (print_one_inferior): Change return type to void, replace `void *`
10963 parameter with proper parameters.
10964 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10965 inferiors.
10966 (get_other_inferior): Remove.
10967 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10968 inferiors.
10969
10970 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10971
10972 * mi/mi-interp.c (report_initial_inferior): Remove.
10973 (mi_interp::init): Use range-based for to iterate over inferiors.
10974
10975 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10976
10977 * python/py-inferior.c (build_inferior_list): Remove.
10978 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10979
10980 2020-01-16 Christian Biesinger <cbiesinger@google.com>
10981
10982 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10983 (btrace_stitch_trace): Likewise.
10984 * charset.c (intermediate_encoding): Likewise (vaild).
10985 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10986 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10987 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10988
10989 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
10990
10991 * windows-tdep.c (windows_get_tlb_type):
10992 Add rtl_user_process_parameters type.
10993
10994 2020-01-16 Pedro Alves <palves@redhat.com>
10995 Norbert Lange <nolange79@gmail.com>
10996
10997 PR build/24805
10998 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10999 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
11000 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
11001 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
11002 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
11003 (ps_plog): Redeclare exported functions with default visibility.
11004
11005 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
11006
11007 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
11008 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
11009
11010 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
11011
11012 * infcmd.c (post_create_inferior): Use get_thread_regcache
11013 instead of get_current_regcache.
11014
11015 2020-01-14 Tom Tromey <tom@tromey.com>
11016
11017 PR symtab/12535:
11018 * python/python.c (gdbpy_decode_line): Treat empty string the same
11019 as no argument.
11020
11021 2020-01-14 Tom Tromey <tom@tromey.com>
11022
11023 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
11024
11025 2020-01-14 Tom Tromey <tom@tromey.com>
11026
11027 * nat/linux-btrace.c: Don't include <config.h>.
11028 * nat/linux-ptrace.c: Don't include <config.h>.
11029 * nat/x86-linux-dregs.c: Don't include <config.h>.
11030
11031 2020-01-14 Tom Tromey <tom@tromey.com>
11032
11033 * configure: Rebuild.
11034 * configure.ac: Move many checks to ../gdbsupport/common.m4.
11035
11036 2020-01-14 Tom Tromey <tom@tromey.com>
11037
11038 * nat/x86-linux-dregs.c: Include configh.h.
11039 * nat/linux-ptrace.c: Include configh.h.
11040 * nat/linux-btrace.c: Include configh.h.
11041 * defs.h: Include config.h, bfd.h.
11042 * configure.ac: Don't source common.host.
11043 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
11044 * configure: Rebuild.
11045 * acinclude.m4: Update path.
11046 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
11047 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
11048 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
11049 (CLIBS): Add LIBSUPPORT.
11050 (CDEPS): Likewise.
11051 (COMMON_SFILES): Remove gdbsupport files.
11052 (HFILES_NO_SRCDIR): Likewise.
11053 (stamp-version): Update path to create-version.sh.
11054 (ALLDEPFILES): Remove gdbsupport files.
11055
11056 2020-01-14 Tom Tromey <tom@tromey.com>
11057
11058 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
11059 USE_WIN32API when needed.
11060 * configure.ac (USE_WIN32API): Don't define.
11061 (WIN32LIBS): Use WIN32APILIBS.
11062 * configure: Rebuild.
11063
11064 2020-01-14 Tom Tromey <tom@tromey.com>
11065
11066 * configure: Rebuild.
11067 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
11068
11069 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
11070
11071 * skip.c (skip_function_command): Make skip w/o arguments use the
11072 name of the inlined function if pc is inside any inlined function.
11073
11074 2020-01-14 Luis Machado <luis.machado@linaro.org>
11075
11076 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
11077 * infrun.c (resume_1): Likewise.
11078 (handle_inferior_event): Remove stale comment.
11079 * linux-nat.c (linux_nat_target::resume): Update comments.
11080 (save_stop_reason): Likewise.
11081 (linux_nat_filter_event): Likewise.
11082 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
11083
11084 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11085
11086 * elfread.c (record_minimal_symbol): Set section index to 0 for
11087 non-allocatable sections.
11088
11089
11090 2020-01-13 Ali Tamur <tamur@google.com>
11091
11092 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
11093 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
11094 to gdb::optional. Update comments.
11095 (dwo_file): Update comments.
11096 (read_attribute): Update API to take an additional out parameter,
11097 need_reprocess. This is used to mark attributes that need other
11098 attributes (e.g. str_offsets_base) for correct computation which may not
11099 have been read yet.
11100 (read_attribute_reprocess): New function declaration.
11101 (read_addr_index): Likewise.
11102 (read_dwo_str_index): Likewise.
11103 (read_stub_str_index): Likewise.
11104 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
11105 (lookup_addr_base): New function definition.
11106 (lookup_ranges_base): Likewise.
11107 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
11108 lookup_ranges_base.
11109 (init_cutu_and_read_dies): Update comments.
11110 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
11111 unit. This is used to inherit parent's str_offsets_base and addr_base.
11112 Update comments.
11113 (init_cutu_and_read_dies_simple): Reflect API changes.
11114 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
11115 (create_cus_hash_table): Change API to take parent compile unit.
11116 Reflect API changes.
11117 (open_and_init_dwo_file): Reflect API changes.
11118 (dwarf2_get_pc_bounds): Update comments.
11119 (dwarf2_record_block_ranges): Likewise.
11120 (read_full_die_1): Change implementation to reprocess attributes that
11121 need str_offsets_base and addr_base.
11122 (partial_die_info::read): Likewise.
11123 (read_attribute_reprocess): New function definition.
11124 (read_attribute_value): Change API to take an additional out parameter,
11125 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
11126 when a non-dwo compile unit has index based attributes.
11127 (read_attribute): Reflect API changes.
11128 (read_addr_index_1): Reflect API changes. Update comments.
11129 (dwarf2_read_addr_index_data): Reflect API changes.
11130 (dwarf2_read_addr_index): Likewise.
11131 (read_str_index): Change API and implementation. This becomes a helper
11132 to be used by the new string index related methods. Update error
11133 message and comments.
11134 (read_dwo_str_index): New function definition.
11135 (read_stub_str_index): Likewise.
11136 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
11137 * symfile.h (dwarf2_debug_sections): Likewise.
11138 * xcoffread.c (dwarf2_debug_sections): Likewise.
11139
11140 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11141
11142 * gdbcore.h (struct core_fns) <core_read_registers>: Change
11143 core_reg_sect type to gdb_byte *.
11144 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
11145 * cris-tdep.c (fetch_core_registers): Likewise.
11146 * corelow.c (core_target::get_core_register_section): Change
11147 type of `contents` to gdb::byte_vector.
11148
11149 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11150
11151 * tui/tui-wingeneral.c (box_win): Position the title in the center
11152 of the border.
11153
11154 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11155
11156 * corelow.c (core_target::get_core_register_section): Use
11157 std::vector instead of alloca.
11158
11159 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11160
11161 * warning.m4: Add -Wmissing-declarations to build_warnings.
11162 * configure: Re-generate.
11163
11164 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11165
11166 * python/python.c (init__gdb_module): Add declaration.
11167
11168 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11169
11170 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
11171 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
11172 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
11173 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
11174 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
11175 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
11176 * ada-exp.y (_initialize_ada_exp): Add declaration.
11177 * ada-lang.c (_initialize_ada_language): Add declaration.
11178 * ada-tasks.c (_initialize_tasks): Add declaration.
11179 * agent.c (_initialize_agent): Add declaration.
11180 * aix-thread.c (_initialize_aix_thread): Add declaration.
11181 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
11182 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
11183 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
11184 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
11185 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
11186 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
11187 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
11188 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
11189 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
11190 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
11191 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
11192 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
11193 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
11194 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
11195 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
11196 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
11197 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
11198 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
11199 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
11200 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
11201 * annotate.c (_initialize_annotate): Add declaration.
11202 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
11203 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
11204 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
11205 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
11206 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
11207 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
11208 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
11209 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
11210 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
11211 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
11212 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
11213 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
11214 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
11215 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
11216 * auto-load.c (_initialize_auto_load): Add declaration.
11217 * auxv.c (_initialize_auxv): Add declaration.
11218 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
11219 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
11220 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
11221 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
11222 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
11223 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
11224 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
11225 * breakpoint.c (_initialize_breakpoint): Add declaration.
11226 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
11227 * btrace.c (_initialize_btrace): Add declaration.
11228 * charset.c (_initialize_charset): Add declaration.
11229 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
11230 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11231 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11232 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11233 * cli/cli-script.c (_initialize_cli_script): Add declaration.
11234 * cli/cli-style.c (_initialize_cli_style): Add declaration.
11235 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11236 * coffread.c (_initialize_coffread): Add declaration.
11237 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11238 * compile/compile.c (_initialize_compile): Add declaration.
11239 * complaints.c (_initialize_complaints): Add declaration.
11240 * completer.c (_initialize_completer): Add declaration.
11241 * copying.c (_initialize_copying): Add declaration.
11242 * corefile.c (_initialize_core): Add declaration.
11243 * corelow.c (_initialize_corelow): Add declaration.
11244 * cp-abi.c (_initialize_cp_abi): Add declaration.
11245 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11246 * cp-support.c (_initialize_cp_support): Add declaration.
11247 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11248 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11249 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11250 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11251 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11252 * ctfread.c (_initialize_ctfread): Add declaration.
11253 * d-lang.c (_initialize_d_language): Add declaration.
11254 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11255 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11256 * dbxread.c (_initialize_dbxread): Add declaration.
11257 * dcache.c (_initialize_dcache): Add declaration.
11258 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11259 * disasm.c (_initialize_disasm): Add declaration.
11260 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11261 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11262 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11263 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11264 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11265 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11266 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11267 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11268 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11269 * elfread.c (_initialize_elfread): Add declaration.
11270 * exec.c (_initialize_exec): Add declaration.
11271 * extension.c (_initialize_extension): Add declaration.
11272 * f-lang.c (_initialize_f_language): Add declaration.
11273 * f-valprint.c (_initialize_f_valprint): Add declaration.
11274 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11275 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11276 * filesystem.c (_initialize_filesystem): Add declaration.
11277 * findcmd.c (_initialize_mem_search): Add declaration.
11278 * findvar.c (_initialize_findvar): Add declaration.
11279 * fork-child.c (_initialize_fork_child): Add declaration.
11280 * frame-base.c (_initialize_frame_base): Add declaration.
11281 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11282 * frame.c (_initialize_frame): Add declaration.
11283 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11284 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11285 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11286 * gcore.c (_initialize_gcore): Add declaration.
11287 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11288 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11289 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11290 * gdbarch.c (_initialize_gdbarch): Add declaration.
11291 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11292 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11293 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11294 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11295 * go-lang.c (_initialize_go_language): Add declaration.
11296 * go32-nat.c (_initialize_go32_nat): Add declaration.
11297 * guile/guile.c (_initialize_guile): Add declaration.
11298 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11299 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11300 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11301 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11302 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11303 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11304 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11305 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11306 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11307 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11308 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11309 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11310 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11311 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11312 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11313 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11314 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11315 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11316 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11317 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11318 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11319 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11320 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11321 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11322 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11323 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11324 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11325 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11326 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11327 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11328 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11329 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11330 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11331 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11332 * infcall.c (_initialize_infcall): Add declaration.
11333 * infcmd.c (_initialize_infcmd): Add declaration.
11334 * inflow.c (_initialize_inflow): Add declaration.
11335 * infrun.c (_initialize_infrun): Add declaration.
11336 * interps.c (_initialize_interpreter): Add declaration.
11337 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11338 * jit.c (_initialize_jit): Add declaration.
11339 * language.c (_initialize_language): Add declaration.
11340 * linux-fork.c (_initialize_linux_fork): Add declaration.
11341 * linux-nat.c (_initialize_linux_nat): Add declaration.
11342 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11343 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11344 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11345 * m2-lang.c (_initialize_m2_language): Add declaration.
11346 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11347 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11348 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11349 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11350 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11351 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11352 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11353 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11354 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11355 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11356 * machoread.c (_initialize_machoread): Add declaration.
11357 * macrocmd.c (_initialize_macrocmd): Add declaration.
11358 * macroscope.c (_initialize_macroscope): Add declaration.
11359 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11360 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11361 * maint.c (_initialize_maint_cmds): Add declaration.
11362 * mdebugread.c (_initialize_mdebugread): Add declaration.
11363 * memattr.c (_initialize_mem): Add declaration.
11364 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11365 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11366 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11367 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11368 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11369 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11370 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11371 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11372 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11373 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11374 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11375 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11376 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11377 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11378 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11379 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11380 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11381 * mipsread.c (_initialize_mipsread): Add declaration.
11382 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11383 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11384 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11385 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11386 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11387 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11388 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11389 * nto-procfs.c (_initialize_procfs): Add declaration.
11390 * objc-lang.c (_initialize_objc_language): Add declaration.
11391 * observable.c (_initialize_observer): Add declaration.
11392 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11393 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11394 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11395 * osabi.c (_initialize_gdb_osabi): Add declaration.
11396 * osdata.c (_initialize_osdata): Add declaration.
11397 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11398 * parse.c (_initialize_parse): Add declaration.
11399 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11400 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11401 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11402 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11403 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11404 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11405 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11406 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11407 * printcmd.c (_initialize_printcmd): Add declaration.
11408 * probe.c (_initialize_probe): Add declaration.
11409 * proc-api.c (_initialize_proc_api): Add declaration.
11410 * proc-events.c (_initialize_proc_events): Add declaration.
11411 * proc-service.c (_initialize_proc_service): Add declaration.
11412 * procfs.c (_initialize_procfs): Add declaration.
11413 * producer.c (_initialize_producer): Add declaration.
11414 * psymtab.c (_initialize_psymtab): Add declaration.
11415 * python/python.c (_initialize_python): Add declaration.
11416 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11417 * record-btrace.c (_initialize_record_btrace): Add declaration.
11418 * record-full.c (_initialize_record_full): Add declaration.
11419 * record.c (_initialize_record): Add declaration.
11420 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11421 * regcache.c (_initialize_regcache): Add declaration.
11422 * reggroups.c (_initialize_reggroup): Add declaration.
11423 * remote-notif.c (_initialize_notif): Add declaration.
11424 * remote-sim.c (_initialize_remote_sim): Add declaration.
11425 * remote.c (_initialize_remote): Add declaration.
11426 * reverse.c (_initialize_reverse): Add declaration.
11427 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11428 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11429 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11430 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11431 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11432 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11433 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11434 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11435 Add declaration.
11436 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11437 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11438 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11439 * rust-exp.y (_initialize_rust_exp): Add declaration.
11440 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11441 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11442 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11443 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11444 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11445 * score-tdep.c (_initialize_score_tdep): Add declaration.
11446 * ser-go32.c (_initialize_ser_dos): Add declaration.
11447 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11448 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11449 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11450 * ser-uds.c (_initialize_ser_socket): Add declaration.
11451 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11452 * serial.c (_initialize_serial): Add declaration.
11453 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11454 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11455 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11456 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11457 * skip.c (_initialize_step_skip): Add declaration.
11458 * sol-thread.c (_initialize_sol_thread): Add declaration.
11459 * solib-aix.c (_initialize_solib_aix): Add declaration.
11460 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11461 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11462 * solib-frv.c (_initialize_frv_solib): Add declaration.
11463 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11464 * solib-target.c (_initialize_solib_target): Add declaration.
11465 * solib.c (_initialize_solib): Add declaration.
11466 * source-cache.c (_initialize_source_cache): Add declaration.
11467 * source.c (_initialize_source): Add declaration.
11468 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11469 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11470 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11471 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11472 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11473 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11474 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11475 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11476 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11477 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11478 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11479 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11480 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11481 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11482 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11483 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11484 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11485 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11486 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11487 * stabsread.c (_initialize_stabsread): Add declaration.
11488 * stack.c (_initialize_stack): Add declaration.
11489 * stap-probe.c (_initialize_stap_probe): Add declaration.
11490 * std-regs.c (_initialize_frame_reg): Add declaration.
11491 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11492 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11493 * symfile.c (_initialize_symfile): Add declaration.
11494 * symmisc.c (_initialize_symmisc): Add declaration.
11495 * symtab.c (_initialize_symtab): Add declaration.
11496 * target.c (_initialize_target): Add declaration.
11497 * target-connection.c (_initialize_target_connection): Add
11498 declaration.
11499 * target-dcache.c (_initialize_target_dcache): Add declaration.
11500 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11501 * thread.c (_initialize_thread): Add declaration.
11502 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11503 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11504 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11505 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11506 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11507 * tracectf.c (_initialize_ctf): Add declaration.
11508 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11509 * tracefile.c (_initialize_tracefile): Add declaration.
11510 * tracepoint.c (_initialize_tracepoint): Add declaration.
11511 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11512 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11513 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11514 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11515 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11516 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11517 * tui/tui.c (_initialize_tui): Add declaration.
11518 * typeprint.c (_initialize_typeprint): Add declaration.
11519 * ui-style.c (_initialize_ui_style): Add declaration.
11520 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11521 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11522 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11523 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11524 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11525 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11526 * unittests/filtered_iterator-selftests.c
11527 (_initialize_filtered_iterator_selftests): Add declaration.
11528 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11529 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11530 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11531 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11532 * unittests/main-thread-selftests.c
11533 (_initialize_main_thread_selftests): Add declaration.
11534 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11535 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11536 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11537 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11538 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11539 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11540 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11541 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11542 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11543 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11544 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11545 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11546 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11547 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11548 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11549 declaration.
11550 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11551 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11552 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11553 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11554 * user-regs.c (_initialize_user_regs): Add declaration.
11555 * utils.c (_initialize_utils): Add declaration.
11556 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11557 * valops.c (_initialize_valops): Add declaration.
11558 * valprint.c (_initialize_valprint): Add declaration.
11559 * value.c (_initialize_values): Add declaration.
11560 * varobj.c (_initialize_varobj): Add declaration.
11561 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11562 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11563 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11564 * windows-nat.c (_initialize_windows_nat): Add declaration.
11565 (_initialize_check_for_gdb_ini): Add declaration.
11566 (_initialize_loadable): Add declaration.
11567 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11568 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11569 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11570 * xcoffread.c (_initialize_xcoffread): Add declaration.
11571 * xml-support.c (_initialize_xml_support): Add declaration.
11572 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11573 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11574 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11575 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11576
11577 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11578
11579 * regformats/regdat.sh: Generate declaration for init function.
11580
11581 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11582
11583 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11584 up.
11585 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11586 close_one_inferior>: New methods.
11587 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11588 pass down target to find_inferior_pid.
11589 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11590 Pass down target to find_inferior_ptid.
11591 (gdbsim_target::create_inferior): Pass down target to
11592 add_thread_silent.
11593 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11594 target down to find_inferior_ptid and switch_to_thread.
11595 (gdbsim_target::close): Update to call close_one_inferior.
11596 (struct resume_data): Remove.
11597 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11598 directly, rather than through a void pointer.
11599 (gdbsim_target::resume): Update to call resume_one_inferior.
11600
11601 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11602
11603 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11604
11605 2020-01-12 Pedro Alves <palves@redhat.com>
11606
11607 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11608 directly for the current inferior instead of
11609 discard_all_inferiors.
11610 (discard_all_inferiors): Delete.
11611
11612 2020-01-11 Tom Tromey <tom@tromey.com>
11613
11614 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11615 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11616 deprecated_safe_get_selected_frame.
11617
11618 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11619
11620 * inferior.c (print_inferior): Switch inferior before printing it.
11621
11622 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11623 Pedro Alves <palves@redhat.com>
11624
11625 * progspace-and-thread.c (switch_to_program_space_and_thread):
11626 Assert there's an inferior for PSPACE. Use
11627 switch_to_inferior_no_thread to switch the inferior too.
11628 * progspace.c (program_space::~program_space): Call
11629 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11630 (program_space::free_all_objfiles): Don't call clear_symtab_users
11631 here.
11632 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11633
11634 2020-01-10 Pedro Alves <palves@redhat.com>
11635
11636 * NEWS: Mention multi-target debugging, "info connections", and
11637 "add-inferior -no-connection".
11638
11639 2020-01-10 Pedro Alves <palves@redhat.com>
11640
11641 * infrun.c: Include "target-connection.h".
11642 (check_multi_target_resumption): New.
11643 (proceed): Call it.
11644 * target-connection.c (make_target_connection_string): Make
11645 extern.
11646 * target-connection.h (make_target_connection_string): Declare.
11647
11648 2020-01-10 Pedro Alves <palves@redhat.com>
11649
11650 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11651 * inferior.c (uiout_field_connection): New function.
11652 (print_inferior): Add new "connection-id" column.
11653 (add_inferior_command): Show connection number/string of added
11654 inferior.
11655 * process-stratum-target.h
11656 (process_stratum_target::connection_string): New virtual method.
11657 (process_stratum_target::connection_number): New field.
11658 * remote.c (remote_target::connection_string): New override.
11659 * target-connection.c: New file.
11660 * target-connection.h: New file.
11661 * target.c (decref_target): Remove process_stratum targets from
11662 the connection list.
11663 (target_stack::push): Add process_stratum targets to the
11664 connection list.
11665
11666 2020-01-10 Pedro Alves <palves@redhat.com>
11667
11668 Revert:
11669 2016-04-12 Pedro Alves <palves@redhat.com>
11670 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11671 Remove references to name.
11672 * serial.h (struct serial) <name>: Delete.
11673
11674 2020-01-10 Pedro Alves <palves@redhat.com>
11675
11676 * gdbarch-selftests.c (register_to_value_test): Remove "target
11677 already pushed" check.
11678
11679 2020-01-10 Pedro Alves <palves@redhat.com>
11680 John Baldwin <jhb@FreeBSD.org>
11681
11682 * aarch64-linux-nat.c
11683 (aarch64_linux_nat_target::thread_architecture): Adjust.
11684 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11685 (task_command_1): Likewise.
11686 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11687 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11688 (aix_thread_target::store_registers)
11689 (aix_thread_target::thread_alive): Adjust.
11690 * amd64-fbsd-tdep.c: Include "inferior.h".
11691 (amd64fbsd_get_thread_local_address): Pass down target.
11692 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11693 thread's gdbarch instead of target_gdbarch.
11694 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11695 get_last_target_status.
11696 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11697 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11698 inferiors.
11699 (update_inserted_breakpoint_locations): Skip if inferiors with no
11700 execution.
11701 (update_global_location_list): When handling moribund locations,
11702 find representative inferior for location's pspace, and use thread
11703 count of its process_stratum target.
11704 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11705 * bsd-uthread.c (bsd_uthread_target::wait): Use
11706 as_process_stratum_target and adjust thread_change_ptid and
11707 add_thread calls.
11708 (bsd_uthread_target::update_thread_list): Use
11709 as_process_stratum_target and adjust find_thread_ptid,
11710 thread_change_ptid and add_thread calls.
11711 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11712 find_thread_ptid call.
11713 * corelow.c (add_to_thread_list): Adjust add_thread call.
11714 (core_target_open): Adjust add_thread_silent and thread_count
11715 calls.
11716 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11717 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11718 * event-top.c (async_disconnect): Pop targets from all inferiors.
11719 * exec.c (add_target_sections): Push exec target on all inferiors
11720 sharing the program space.
11721 (remove_target_sections): Remove the exec target from all
11722 inferiors sharing the program space.
11723 (exec_on_vfork): New.
11724 * exec.h (exec_on_vfork): Declare.
11725 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11726 Pass it down.
11727 (fbsd_nat_target::update_thread_list): Adjust.
11728 (fbsd_nat_target::resume): Adjust.
11729 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11730 down.
11731 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11732 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11733 get_thread_arch_regcache call.
11734 * fork-child.c (gdb_startup_inferior): Pass target down to
11735 startup_inferior and set_executing.
11736 * gdbthread.h (struct process_stratum_target): Forward declare.
11737 (add_thread, add_thread_silent, add_thread_with_info)
11738 (in_thread_list): Add process_stratum_target parameter.
11739 (find_thread_ptid(inferior*, ptid_t)): New overload.
11740 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11741 parameter.
11742 (all_threads()): Delete overload.
11743 (all_threads, all_non_exited_threads): Add process_stratum_target
11744 parameter.
11745 (all_threads_safe): Use brace initialization.
11746 (thread_count): Add process_stratum_target parameter.
11747 (set_resumed, set_running, set_stop_requested, set_executing)
11748 (threads_are_executing, finish_thread_state): Add
11749 process_stratum_target parameter.
11750 (switch_to_thread): Use is_current_thread.
11751 * i386-fbsd-tdep.c: Include "inferior.h".
11752 (i386fbsd_get_thread_local_address): Pass down target.
11753 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11754 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11755 have_inferiors check.
11756 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11757 (inf_ptrace_target::attach): Adjust.
11758 * infcall.c (run_inferior_call): Adjust.
11759 * infcmd.c (run_command_1): Pass target to
11760 scoped_finish_thread_state.
11761 (proceed_thread_callback): Skip inferiors with no execution.
11762 (continue_command): Rename 'all_threads' local to avoid hiding
11763 'all_threads' function. Adjust get_last_target_status call.
11764 (prepare_one_step): Adjust set_running call.
11765 (signal_command): Use user_visible_resume_target. Compare thread
11766 pointers instead of inferior_ptid.
11767 (info_program_command): Adjust to pass down target.
11768 (attach_command): Mark target's 'thread_executing' flag.
11769 (stop_current_target_threads_ns): New, factored out from ...
11770 (interrupt_target_1): ... this. Switch inferior before making
11771 target calls.
11772 * inferior-iter.h
11773 (struct all_inferiors_iterator, struct all_inferiors_range)
11774 (struct all_inferiors_safe_range)
11775 (struct all_non_exited_inferiors_range): Filter on
11776 process_stratum_target too. Remove explicit.
11777 * inferior.c (inferior::inferior): Push dummy target on target
11778 stack.
11779 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11780 Add process_stratum_target parameter, and pass it down.
11781 (have_live_inferiors): Adjust.
11782 (switch_to_inferior_and_push_target): New.
11783 (add_inferior_command, clone_inferior_command): Handle
11784 "-no-connection" parameter. Use
11785 switch_to_inferior_and_push_target.
11786 (_initialize_inferior): Mention "-no-connection" option in
11787 the help of "add-inferior" and "clone-inferior" commands.
11788 * inferior.h: Include "process-stratum-target.h".
11789 (interrupt_target_1): Use bool.
11790 (struct inferior) <push_target, unpush_target, target_is_pushed,
11791 find_target_beneath, top_target, process_target, target_at,
11792 m_stack>: New.
11793 (discard_all_inferiors): Delete.
11794 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11795 (all_inferiors, all_non_exited_inferiors): Add
11796 process_stratum_target parameter.
11797 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11798 (target_last_proc_target): New global.
11799 (follow_fork_inferior): Push target on new inferior. Pass target
11800 to add_thread_silent. Call exec_on_vfork. Handle target's
11801 reference count.
11802 (follow_fork): Adjust get_last_target_status call. Also consider
11803 target.
11804 (follow_exec): Push target on new inferior.
11805 (struct execution_control_state) <target>: New field.
11806 (user_visible_resume_target): New.
11807 (do_target_resume): Call target_async.
11808 (resume_1): Set target's threads_executing flag. Consider resume
11809 target.
11810 (commit_resume_all_targets): New.
11811 (proceed): Also consider resume target. Skip threads of inferiors
11812 with no execution. Commit resumtion in all targets.
11813 (start_remote): Pass current inferior to wait_for_inferior.
11814 (infrun_thread_stop_requested): Consider target as well. Pass
11815 thread_info pointer to clear_inline_frame_state instead of ptid.
11816 (infrun_thread_thread_exit): Consider target as well.
11817 (random_pending_event_thread): New inferior parameter. Use it.
11818 (do_target_wait): Rename to ...
11819 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11820 down.
11821 (threads_are_resumed_pending_p, do_target_wait): New.
11822 (prepare_for_detach): Adjust calls.
11823 (wait_for_inferior): New inferior parameter. Handle it. Use
11824 do_target_wait_1 instead of do_target_wait.
11825 (fetch_inferior_event): Adjust. Switch to representative
11826 inferior. Pass target down.
11827 (set_last_target_status): Add process_stratum_target parameter.
11828 Save target in global.
11829 (get_last_target_status): Add process_stratum_target parameter and
11830 handle it.
11831 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11832 (context_switch): Check inferior_ptid == null_ptid before calling
11833 inferior_thread().
11834 (get_inferior_stop_soon): Pass down target.
11835 (wait_one): Rename to ...
11836 (poll_one_curr_target): ... this.
11837 (struct wait_one_event): New.
11838 (wait_one): New.
11839 (stop_all_threads): Adjust.
11840 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11841 event's target.
11842 (switch_back_to_stepped_thread): Also consider target.
11843 (print_stop_event): Update.
11844 (normal_stop): Update. Also consider the resume target.
11845 * infrun.h (wait_for_inferior): Remove declaration.
11846 (user_visible_resume_target): New declaration.
11847 (get_last_target_status, set_last_target_status): New
11848 process_stratum_target parameter.
11849 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11850 process_stratum_target parameter, and use it.
11851 (clear_inline_frame_state (thread_info*)): New.
11852 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11853 process_stratum_target parameter.
11854 (clear_inline_frame_state (thread_info*)): Declare.
11855 * linux-fork.c (delete_checkpoint_command): Pass target down to
11856 find_thread_ptid.
11857 (checkpoint_command): Adjust.
11858 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11859 instead of just tweaking inferior_ptid.
11860 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11861 (exit_lwp): Pass target down to find_thread_ptid.
11862 (attach_proc_task_lwp_callback): Pass target down to
11863 add_thread/set_running/set_executing.
11864 (linux_nat_target::attach): Pass target down to
11865 thread_change_ptid.
11866 (get_detach_signal): Pass target down to find_thread_ptid.
11867 Consider last target status's target.
11868 (linux_resume_one_lwp_throw, resume_lwp)
11869 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11870 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11871 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11872 (linux_nat_target::async_wait_fd): New.
11873 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11874 target down.
11875 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11876 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11877 * linux-thread-db.c (struct thread_db_info::process_target): New
11878 field.
11879 (add_thread_db_info): Save target.
11880 (get_thread_db_info): New process_stratum_target parameter. Also
11881 match target.
11882 (delete_thread_db_info): New process_stratum_target parameter.
11883 Also match target.
11884 (thread_from_lwp): Adjust to pass down target.
11885 (thread_db_notice_clone): Pass down target.
11886 (check_thread_db_callback): Pass down target.
11887 (try_thread_db_load_1): Always push the thread_db target.
11888 (try_thread_db_load, record_thread): Pass target down.
11889 (thread_db_target::detach): Pass target down. Always unpush the
11890 thread_db target.
11891 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11892 target down. Always unpush the thread_db target.
11893 (find_new_threads_callback, thread_db_find_new_threads_2)
11894 (thread_db_target::update_thread_list): Pass target down.
11895 (thread_db_target::pid_to_str): Pass current inferior down.
11896 (thread_db_target::get_thread_local_address): Pass target down.
11897 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11898 target down.
11899 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11900 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11901 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11902 (procfs_init_inferior): Rename to ...
11903 (procfs_target::procfs_init_inferior): ... this and adjust.
11904 (procfs_target::create_inferior, procfs_notice_thread)
11905 (procfs_do_thread_registers): Adjust.
11906 * ppc-fbsd-tdep.c: Include "inferior.h".
11907 (ppcfbsd_get_thread_local_address): Pass down target.
11908 * proc-service.c (ps_xfer_memory): Switch current inferior and
11909 program space as well.
11910 (get_ps_regcache): Pass target down.
11911 * process-stratum-target.c
11912 (process_stratum_target::thread_address_space)
11913 (process_stratum_target::thread_architecture): Pass target down.
11914 * process-stratum-target.h
11915 (process_stratum_target::threads_executing): New field.
11916 (as_process_stratum_target): New.
11917 * ravenscar-thread.c
11918 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11919 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11920 down.
11921 * record-btrace.c (record_btrace_target::info_record): Adjust.
11922 (record_btrace_target::record_method)
11923 (record_btrace_target::record_is_replaying)
11924 (record_btrace_target::fetch_registers)
11925 (get_thread_current_frame_id, record_btrace_target::resume)
11926 (record_btrace_target::wait, record_btrace_target::stop): Pass
11927 target down.
11928 * record-full.c (record_full_wait_1): Switch to event thread.
11929 Pass target down.
11930 * regcache.c (regcache::regcache)
11931 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11932 process_stratum_target parameter and handle it.
11933 (current_thread_target): New global.
11934 (get_thread_regcache): Add process_stratum_target parameter and
11935 handle it. Switch inferior before calling target method.
11936 (get_thread_regcache): Pass target down.
11937 (get_thread_regcache_for_ptid): Pass target down.
11938 (registers_changed_ptid): Add process_stratum_target parameter and
11939 handle it.
11940 (registers_changed_thread, registers_changed): Pass target down.
11941 (test_get_thread_arch_aspace_regcache): New.
11942 (current_regcache_test): Define a couple local test_target_ops
11943 instances and use them for testing.
11944 (readwrite_regcache): Pass process_stratum_target parameter.
11945 (cooked_read_test, cooked_write_test): Pass mock_target down.
11946 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11947 (get_thread_arch_aspace_regcache): Add process_stratum_target
11948 parameter.
11949 (regcache::target): New method.
11950 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11951 (regcache::registers_changed_ptid): Add process_stratum_target
11952 parameter.
11953 (regcache::m_target): New field.
11954 (registers_changed_ptid): Add process_stratum_target parameter.
11955 * remote.c (remote_state::supports_vCont_probed): New field.
11956 (remote_target::async_wait_fd): New method.
11957 (remote_unpush_and_throw): Add remote_target parameter.
11958 (get_current_remote_target): Adjust.
11959 (remote_target::remote_add_inferior): Push target.
11960 (remote_target::remote_add_thread)
11961 (remote_target::remote_notice_new_inferior)
11962 (get_remote_thread_info): Pass target down.
11963 (remote_target::update_thread_list): Skip threads of inferiors
11964 bound to other targets. (remote_target::close): Don't discard
11965 inferiors. (remote_target::add_current_inferior_and_thread)
11966 (remote_target::process_initial_stop_replies)
11967 (remote_target::start_remote)
11968 (remote_target::remote_serial_quit_handler): Pass down target.
11969 (remote_target::remote_unpush_target): New remote_target
11970 parameter. Unpush the target from all inferiors.
11971 (remote_target::remote_unpush_and_throw): New remote_target
11972 parameter. Pass it down.
11973 (remote_target::open_1): Check whether the current inferior has
11974 execution instead of checking whether any inferior is live. Pass
11975 target down.
11976 (remote_target::remote_detach_1): Pass down target. Use
11977 remote_unpush_target.
11978 (extended_remote_target::attach): Pass down target.
11979 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11980 (remote_target::append_resumption): Pass down target.
11981 (remote_target::append_pending_thread_resumptions)
11982 (remote_target::remote_resume_with_hc, remote_target::resume)
11983 (remote_target::commit_resume): Pass down target.
11984 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11985 (remote_target::interrupt_query)
11986 (remote_target::remove_new_fork_children)
11987 (remote_target::check_pending_events_prevent_wildcard_vcont)
11988 (remote_target::remote_parse_stop_reply)
11989 (remote_target::process_stop_reply): Pass down target.
11990 (first_remote_resumed_thread): New remote_target parameter. Pass
11991 it down.
11992 (remote_target::wait_as): Pass down target.
11993 (unpush_and_perror): New remote_target parameter. Pass it down.
11994 (remote_target::readchar, remote_target::remote_serial_write)
11995 (remote_target::getpkt_or_notif_sane_1)
11996 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11997 down target.
11998 (remote_target::mourn_inferior): Pass down target. Use
11999 remote_unpush_target.
12000 (remote_target::core_of_thread)
12001 (remote_target::remote_btrace_maybe_reopen): Pass down target.
12002 (remote_target::pid_to_exec_file)
12003 (remote_target::thread_handle_to_thread_info): Pass down target.
12004 (remote_target::async_wait_fd): New.
12005 * riscv-fbsd-tdep.c: Include "inferior.h".
12006 (riscv_fbsd_get_thread_local_address): Pass down target.
12007 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
12008 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
12009 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
12010 Adjust.
12011 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
12012 * solib-svr4.c (enable_break): Pass down target.
12013 * spu-multiarch.c (parse_spufs_run): Pass down target.
12014 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
12015 * target-delegates.c: Regenerate.
12016 * target.c (g_target_stack): Delete.
12017 (current_top_target): Return the current inferior's top target.
12018 (target_has_execution_1): Refer to the passed-in inferior's top
12019 target.
12020 (target_supports_terminal_ours): Check whether the initial
12021 inferior was already created.
12022 (decref_target): New.
12023 (target_stack::push): Incref/decref the target.
12024 (push_target, push_target, unpush_target): Adjust.
12025 (target_stack::unpush): Defref target.
12026 (target_is_pushed): Return bool. Adjust to refer to the current
12027 inferior's target stack.
12028 (dispose_inferior): Delete, and inline parts ...
12029 (target_preopen): ... here. Only dispose of the current inferior.
12030 (target_detach): Hold strong target reference while detaching.
12031 Pass target down.
12032 (target_thread_name): Add assertion.
12033 (target_resume): Pass down target.
12034 (target_ops::beneath, find_target_at): Adjust to refer to the
12035 current inferior's target stack.
12036 (get_dummy_target): New.
12037 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
12038 has a thread running.
12039 (initialize_targets): Rename to ...
12040 (_initialize_target): ... this.
12041 * target.h: Include "gdbsupport/refcounted-object.h".
12042 (struct target_ops): Inherit refcounted_object.
12043 (target_ops::shortname, target_ops::longname): Make const.
12044 (target_ops::async_wait_fd): New method.
12045 (decref_target): Declare.
12046 (struct target_ops_ref_policy): New.
12047 (target_ops_ref): New typedef.
12048 (get_dummy_target): Declare function.
12049 (target_is_pushed): Return bool.
12050 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
12051 (all_matching_threads_iterator::all_matching_threads_iterator):
12052 Handle filter target.
12053 * thread-iter.h (struct all_matching_threads_iterator, struct
12054 all_matching_threads_range, class all_non_exited_threads_range):
12055 Filter by target too. Remove explicit.
12056 * thread.c (threads_executing): Delete.
12057 (inferior_thread): Pass down current inferior.
12058 (clear_thread_inferior_resources): Pass down thread pointer
12059 instead of ptid_t.
12060 (add_thread_silent, add_thread_with_info, add_thread): Add
12061 process_stratum_target parameter. Use it for thread and inferior
12062 searches.
12063 (is_current_thread): New.
12064 (thread_info::deletable): Use it.
12065 (find_thread_ptid, thread_count, in_thread_list)
12066 (thread_change_ptid, set_resumed, set_running): New
12067 process_stratum_target parameter. Pass it down.
12068 (set_executing): New process_stratum_target parameter. Pass it
12069 down. Adjust reference to 'threads_executing'.
12070 (threads_are_executing): New process_stratum_target parameter.
12071 Adjust reference to 'threads_executing'.
12072 (set_stop_requested, finish_thread_state): New
12073 process_stratum_target parameter. Pass it down.
12074 (switch_to_thread): Also match inferior.
12075 (switch_to_thread): New process_stratum_target parameter. Pass it
12076 down.
12077 (update_threads_executing): Reimplement.
12078 * top.c (quit_force): Pop targets from all inferior.
12079 (gdb_init): Don't call initialize_targets.
12080 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
12081 Declare.
12082 (windows_add_thread, windows_delete_thread): Adjust.
12083 (get_windows_debug_event): Rename to ...
12084 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
12085 * tracefile-tfile.c (tfile_target_open): Pass down target.
12086 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
12087 Forward declare.
12088 (switch_to_thread): Add process_stratum_target parameter.
12089 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
12090 parameter. Use it.
12091 (mi_on_resume): Pass target down.
12092 * nat/fork-inferior.c (startup_inferior): Add
12093 process_stratum_target parameter. Pass it down.
12094 * nat/fork-inferior.h (startup_inferior): Add
12095 process_stratum_target parameter.
12096 * python/py-threadevent.c (py_get_event_thread): Pass target down.
12097
12098 2020-01-10 Pedro Alves <palves@redhat.com>
12099
12100 * remote.c (remote_target::start_remote): Don't set inferior_ptid
12101 directly. Instead find the first thread in the thread list and
12102 use switch_to_thread.
12103
12104 2020-01-10 Pedro Alves <palves@redhat.com>
12105
12106 * remote.c (remote_target::remote_add_inferior): Don't bind a
12107 process to the current inferior if the current inferior is already
12108 bound to a process.
12109
12110 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12111 Pedro Alves <palves@redhat.com>
12112
12113 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
12114 If no process is specified, return null_ptid instead of
12115 inferior_ptid.
12116 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
12117 TARGET_WAITKIND_SIGNALLED with no pid.
12118
12119 2020-01-10 Pedro Alves <palves@redhat.com>
12120
12121 * remote.c (first_remote_resumed_thread): New.
12122 (remote_target::wait_as): Use it as default event_ptid instead of
12123 inferior_ptid.
12124
12125 2020-01-10 Pedro Alves <palves@redhat.com>
12126
12127 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
12128
12129 2020-01-10 Pedro Alves <palves@redhat.com>
12130
12131 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
12132 not -1.
12133
12134 2020-01-10 Pedro Alves <palves@redhat.com>
12135
12136 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
12137 ptid to get_last_target_status.
12138 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
12139 ptid to get_last_target_status.
12140 * infcmd.c (continue_command): Don't pass a target_waitstatus to
12141 get_last_target_status.
12142 (info_program_command): Don't pass a target_waitstatus to
12143 get_last_target_status.
12144 * infrun.c (init_wait_for_inferior): Use
12145 nullify_last_target_wait_ptid.
12146 (get_last_target_status): Handle nullptr arguments.
12147 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
12148 (print_stop_event): Don't pass a ptid to get_last_target_status.
12149 (normal_stop): Don't pass a ptid to get_last_target_status.
12150 * infrun.h (get_last_target_status, set_last_target_status): Move
12151 comments here and update.
12152 (nullify_last_target_wait_ptid): Declare.
12153 * linux-fork.c (fork_load_infrun_state): Remove local extern
12154 declaration of nullify_last_target_wait_ptid.
12155 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
12156 to get_last_target_status.
12157
12158 2020-01-10 Pedro Alves <palves@redhat.com>
12159
12160 * gdbthread.h (scoped_restore_current_thread)
12161 <dont_restore, restore, m_dont_restore>: Declare.
12162 * thread.c (thread_alive): Add assertion. Return bool.
12163 (switch_to_thread_if_alive): New.
12164 (prune_threads): Switch inferior/thread.
12165 (print_thread_info_1): Switch thread before calling target methods.
12166 (scoped_restore_current_thread::restore): New, factored out from
12167 ...
12168 (scoped_restore_current_thread::~scoped_restore_current_thread):
12169 ... this.
12170 (scoped_restore_current_thread::scoped_restore_current_thread):
12171 Add assertion.
12172 (thread_apply_all_command, thread_select): Use
12173 switch_to_thread_if_alive.
12174 * infrun.c (proceed, restart_threads, handle_signal_stop)
12175 (switch_back_to_stepped_thread): Switch current thread before
12176 calling target methods.
12177
12178 2020-01-10 Pedro Alves <palves@redhat.com>
12179
12180 * inferior.c (switch_to_inferior_no_thread): New function,
12181 factored out from ...
12182 (inferior_command): ... here.
12183 * inferior.h (switch_to_inferior_no_thread): Declare.
12184 * mi/mi-main.c (run_one_inferior): Use
12185 switch_to_inferior_no_thread.
12186
12187 2020-01-10 Pedro Alves <palves@redhat.com>
12188
12189 * infcmd.c (kill_command): Remove dead code.
12190
12191 2020-01-10 Pedro Alves <palves@redhat.com>
12192
12193 * remote.c (remote_target::mourn_inferior): No longer check
12194 whether the target is running.
12195
12196 2020-01-10 Pedro Alves <palves@redhat.com>
12197
12198 * corelow.c (core_target::has_execution): Change parameter type to
12199 inferior pointer.
12200 * inferior.c (number_of_live_inferiors): Use
12201 inferior::has_execution instead of target_has_execution_1.
12202 * inferior.h (inferior::has_execution): New.
12203 * linux-thread-db.c (thread_db_target::update_thread_list): Use
12204 inferior::has_execution instead of target_has_execution_1.
12205 * process-stratum-target.c
12206 (process_stratum_target::has_execution): Change parameter type to
12207 inferior pointer. Check the inferior's PID instead of
12208 inferior_ptid.
12209 * process-stratum-target.h
12210 (process_stratum_target::has_execution): Change parameter type to
12211 inferior pointer.
12212 * record-full.c (record_full_core_target::has_execution): Change
12213 parameter type to inferior pointer.
12214 * target.c (target_has_execution_1): Change parameter type to
12215 inferior pointer.
12216 (target_has_execution_current): Adjust.
12217 * target.h (target_ops::has_execution): Change parameter type to
12218 inferior pointer.
12219 (target_has_execution_1): Change parameter type to inferior
12220 pointer. Change return type to bool.
12221 * tracefile.h (tracefile_target::has_execution): Change parameter
12222 type to inferior pointer.
12223
12224 2020-01-10 Pedro Alves <palves@redhat.com>
12225
12226 * exceptions.c (print_flush): Remove current_top_target() check.
12227
12228 2020-01-10 Pedro Alves <palves@redhat.com>
12229
12230 * remote.c (show_remote_exec_file): Show the current inferior's
12231 exec-file instead of the command variable's value.
12232
12233 2020-01-10 Pedro Alves <palves@redhat.com>
12234
12235 * record-full.c (record_full_resume_ptid): New global.
12236 (record_full_target::resume): Set it.
12237 (record_full_wait_1): Use record_full_resume_ptid instead of
12238 inferior_ptid.
12239
12240 2020-01-10 Pedro Alves <palves@redhat.com>
12241
12242 * gdbthread.h (scoped_restore_current_thread)
12243 <dont_restore, restore, m_dont_restore>: Declare.
12244 * thread.c (thread_alive): Add assertion. Return bool.
12245 (switch_to_thread_if_alive): New.
12246 (prune_threads): Switch inferior/thread.
12247 (print_thread_info_1): Switch thread before calling target methods.
12248 (scoped_restore_current_thread::restore): New, factored out from
12249 ...
12250 (scoped_restore_current_thread::~scoped_restore_current_thread):
12251 ... this.
12252 (scoped_restore_current_thread::scoped_restore_current_thread):
12253 Add assertion.
12254 (thread_apply_all_command, thread_select): Use
12255 switch_to_thread_if_alive.
12256
12257 2020-01-10 George Barrett <bob@bob131.so>
12258
12259 * stap-probe.c (stap_modify_semaphore): Don't check for null
12260 semaphores.
12261 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12262 for null semaphores.
12263
12264 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12265
12266 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12267 all source windows, and maintain horizontal scroll status while
12268 doing so.
12269
12270 2020-01-09 Tom Tromey <tom@tromey.com>
12271
12272 PR tui/18932:
12273 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12274 update_source_window, not print_source_lines.
12275
12276 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12277
12278 * tui/tui.c (tui_enable): Register tui hooks after calling
12279 tui_display_main.
12280
12281 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12282
12283 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12284
12285 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
12286
12287 * thread.c (print_thread_info_1): Fix indentation.
12288
12289 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12290
12291 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12292 unique_xmalloc_ptr outside the if to always free the demangled name.
12293
12294 2020-01-08 Tom Tromey <tromey@adacore.com>
12295
12296 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12297 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12298 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12299 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12300 Remove.
12301 (section_offsets): New typedef.
12302 * symtab.c (fixup_section, get_msymbol_address): Update.
12303 * symmisc.c (dump_msymbols): Update.
12304 * symfile.h (relative_addr_info_to_section_offsets)
12305 (symfile_map_offsets_to_segments): Update.
12306 * symfile.c (build_section_addr_info_from_objfile)
12307 (init_objfile_sect_indices): Update.
12308 (struct place_section_arg): Change type of "offsets".
12309 (place_section): Update.
12310 (relative_addr_info_to_section_offsets): Change type of
12311 "section_offsets". Remove "num_sections" parameter.
12312 (default_symfile_offsets, syms_from_objfile_1)
12313 (set_objfile_default_section_offset): Update.
12314 (reread_symbols): No need to preserve section offsets by hand.
12315 (symfile_map_offsets_to_segments): Change type of "offsets".
12316 * stap-probe.c (relocate_address): Update.
12317 * stabsread.h (process_one_symbol): Update.
12318 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12319 (solib_target_relocate_section_addresses): Update.
12320 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12321 Update.
12322 * solib-frv.c (frv_relocate_main_executable): Update.
12323 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12324 * solib-aix.c (solib_aix_get_section_offsets): Change return
12325 type.
12326 (solib_aix_solib_create_inferior_hook): Update.
12327 * remote.c (remote_target::get_offsets): Update.
12328 * psymtab.c (find_pc_sect_psymtab): Update.
12329 * psympriv.h (struct partial_symbol) <address, text_low,
12330 text_high>: Update.
12331 * objfiles.h (obj_section_offset): Update.
12332 (struct objfile) <section_offsets>: Change type.
12333 <num_sections>: Remove.
12334 (objfile_relocate): Update.
12335 * objfiles.c (entry_point_address_query): Update
12336 (relocate_one_symbol): Change type of "section_offsets".
12337 (objfile_relocate1, objfile_relocate1): Change type of
12338 "new_offsets".
12339 (objfile_rebase1): Update.
12340 * mipsread.c (mipscoff_symfile_read): Update.
12341 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12342 parameter.
12343 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12344 (parse_external, psymtab_to_symtab_1): Update.
12345 * machoread.c (macho_symfile_offsets): Update.
12346 * ia64-tdep.c (ia64_find_unwind_table): Update.
12347 * hppa-tdep.c (read_unwind_info): Update.
12348 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12349 * dwarf2read.c (create_addrmap_from_index)
12350 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12351 (process_psymtab_comp_unit_reader, add_partial_symbol)
12352 (add_partial_subprogram, process_full_comp_unit)
12353 (read_file_scope, read_func_scope, read_lexical_block_scope)
12354 (read_call_site_scope, dwarf2_rnglists_process)
12355 (dwarf2_ranges_process, dwarf2_ranges_read)
12356 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12357 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12358 Update.
12359 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12360 Update.
12361 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12362 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12363 (process_one_symbol): Change type of "section_offsets".
12364 * ctfread.c (get_objfile_text_range): Update.
12365 * coffread.c (coff_symtab_read, enter_linenos)
12366 (process_coff_symbol): Update.
12367 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12368 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12369
12370 2020-01-08 Tom Tromey <tromey@adacore.com>
12371
12372 * dwarf2read.c (parse_macro_definition): Use std::string.
12373 (parse_macro_definition): Likewise.
12374
12375 2020-01-08 Tom Tromey <tromey@adacore.com>
12376
12377 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12378 (ATTR_ALLOC_CHUNK): Remove.
12379
12380 2020-01-08 Tom Tromey <tromey@adacore.com>
12381
12382 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12383
12384 2020-01-08 Tom Tromey <tromey@adacore.com>
12385
12386 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12387 (dwarf2_compute_name, open_dwo_file): Likewise.
12388 (process_enumeration_scope): Use std::vector.
12389 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12390 (partial_die_info::fixup, dwarf2_start_subfile)
12391 (guess_full_die_structure_name, dwarf2_name): Likewise.
12392 (determine_prefix): Update.
12393 (guess_full_die_structure_name): Make return type const.
12394 (partial_die_full_name): Return unique_xmalloc_ptr.
12395 (DW_FIELD_ALLOC_CHUNK): Remove.
12396
12397 2020-01-07 Tom Tromey <tromey@adacore.com>
12398
12399 PR build/24937:
12400 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12401
12402 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12403
12404 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12405
12406 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12407
12408 * stack.c (print_frame_info): Move disassemble_next_line code
12409 inside source_print block.
12410
12411 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12412
12413 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12414 gdb/signals.h, as we are now using native signal symbols.
12415
12416 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12417
12418 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12419 overflow by an early check of content vs threshold.
12420 * tui/tui-source.c (tui_source_window::line_is_displayed):
12421 Likewise.
12422
12423 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12424
12425 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12426
12427 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12428
12429 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12430 export table if no section contains it's RVA.
12431
12432 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12433
12434 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12435
12436 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
12437
12438 * source.c (print_source_lines_base): Set last_line_listed.
12439
12440 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12441
12442 * tui/tui-disasm.c: Remove trailing spaces.
12443
12444 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12445 Pedro Alves <palves@redhat.com>
12446
12447 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12448 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12449 (windows_gdb_signal_to_target): New function, uses the above
12450 enumeration to convert GDB internal signal codes to equivalent
12451 Windows codes.
12452 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12453 * windows-nat.c: Include "gdb_wait.h".
12454 (get_windows_debug_event): Extract the fatal exception from the
12455 exit status and convert to the equivalent Posix signal number.
12456 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12457 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12458 * gdbsupport/gdb_wait.c: New file, implements
12459 windows_status_to_termsig.
12460 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12461 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12462
12463 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12464
12465 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12466 show_layout.
12467
12468 2020-01-05 Luis Machado <luis.machado@linaro.org>
12469
12470 * aarch64-linux-nat.c
12471 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12472 and bfd_mach_aarch64.
12473
12474 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12475
12476 * ui-file.c (stdio_file::can_emit_style_escape)
12477 (tee_file::can_emit_style_escape): Ensure style is used also on
12478 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12479 to gdb_stdout.
12480 * main.c (set_gdb_data_directory): Use file style to output the
12481 warning that the given pathname is not a directory.
12482 * top.c (show_history_filename, gdb_safe_append_history)
12483 (show_gdb_datadir): Use file style.
12484
12485 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12486
12487 * solib-target.c (struct lm_info_target):
12488 Change offsets to be a unique_xmalloc_ptr.
12489 (solib_target_relocate_section_addresses): Update.
12490
12491 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12492
12493 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12494
12495 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12496
12497 * MAINTAINERS (Write After Approval): Add myself.
12498
12499 2020-01-02 Luis Machado <luis.machado@linaro.org>
12500
12501 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12502 Cell BE architecture.
12503 * target.h (struct target_ops) <thread_architecture>: Likewise.
12504
12505 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12506
12507 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12508
12509 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12510
12511 * MAINTAINERS (Write After Approval): Add myself.
12512
12513 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12514
12515 * gdbarch.sh: Update copyright year range of generated files.
12516
12517 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12518
12519 Update copyright year range in all GDB files.
12520
12521 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12522
12523 * copyright.py: Convert to Python 3.
12524
12525 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12526
12527 * copyright.py: Adapt after move of gnulib directory from gdb
12528 directory to toplevel directory.
12529
12530 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12531
12532 * copyright.py (main): Exit if run from the wrong directory.
12533
12534 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12535
12536 * top.c (print_gdb_version): Change copyright year to 2020.
12537
12538 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12539
12540 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
12541
12542 For older changes see ChangeLog-2019.
12543 \f
12544 Local Variables:
12545 mode: change-log
12546 left-margin: 8
12547 fill-column: 74
12548 version-control: never
12549 coding: utf-8
12550 End: