]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
ecf8e37f58b9995d54eccde0496fcb33f30cc14e
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2
3 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5
6 2020-09-10 Kamil Rytarowski <n54@gmx.com>
7
8 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
9 * netbsd-nat.c: Include <sys/ptrace.h>.
10 * (netbsd_nat::enable_proc_events): Add.
11
12 2020-09-10 Kamil Rytarowski <n54@gmx.com>
13
14 * netbsd-nat.h: Include "gdbsupport/function-view.h".
15 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
16 (netbsd_nat::for_each_thread): Add.
17 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
18 "gdbsupport/common-debug.h".
19 * (netbsd_nat::netbsd_thread_lister)
20 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
21 (netbsd_nat::for_each_thread): Add.
22
23 2020-09-10 Kamil Rytarowski <n54@gmx.com>
24
25 * netbsd-nat.h: Include <unistd.h>.
26 * (netbsd_nat::pid_to_exec_file): Add.
27 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
28 * (netbsd_nat::pid_to_exec_file) Add.
29
30 2020-09-10 Kamil Rytarowski <n54@gmx.com>
31
32 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
33
34 2020-09-10 Kamil Rytarowski <n54@gmx.com>
35
36 * netbsd-nat.h: New file.
37 * netbsd-nat.c: Likewise.
38
39 2020-09-09 Tom Tromey <tromey@adacore.com>
40
41 * ada-lang.c (remove_extra_symbols): Do not increment when
42 removing an element
43
44 2020-09-08 Tom Tromey <tromey@adacore.com>
45
46 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
47
48 2020-09-08 Tom Tromey <tromey@adacore.com>
49
50 PR win32/25302:
51 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
52 (gdb_bfd_init_data): New function.
53 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
54
55 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
56
57 * infrun.c (fetch_inferior_event): Use
58 `switch_to_target_no_thread` to switch the target.
59
60 2020-09-06 Tom Tromey <tom@tromey.com>
61
62 * symfile.h (dwarf2_free_objfile): Don't declare.
63
64 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
65
66 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
67 to match 16 byte real/complex type generated by Flang compiler.
68
69 2020-09-03 Tom de Vries <tdevries@suse.de>
70
71 PR breakpoint/26546
72 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
73 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
74
75 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
76
77 * maint.c (index_digits): New function.
78 (struct maint_print_section_data): Remove.
79 (print_bfd_section_info): Remove print_data parameter, add arg
80 and index_digits.
81 (print_objfile_section_info): Likewise.
82 (print_bfd_section_info_maybe_relocated): Likewise (plus
83 objfile).
84 (maintenance_info_sections): Adjust calls.
85
86 2020-09-02 Tom Tromey <tromey@adacore.com>
87
88 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
89 for null pointers.
90 (ada_varobj_adjust_for_child_access): Special-case null pointers.
91
92 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
93
94 * bcache.h (struct bcache) <insert>: Change type of `added` to
95 pointer to bool.
96 * bcache.c (bcache::insert): Likewise.
97 * gdbtypes.c (check_types_worklist): Adjust.
98 * psymtab.c (add_psymbol_to_bcache): Adjust.
99
100 2020-08-31 Kevin Buettner <kevinb@redhat.com>
101
102 * corelow.c (unordered_set): Include.
103 (class core_target): Add field 'm_core_unavailable_mappings'.
104 (core_target::build_file_mappings): Print only one warning
105 per inaccessible file. Add unavailable/broken mappings
106 to m_core_unavailable_mappings.
107 (core_target::xfer_partial): Call...
108 (core_target::xfer_memory_via_mappings): New method.
109
110 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
111
112 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
113 type to bool.
114
115 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
116
117 * dwarf2/read.c (struct field_info): Fix indentation.
118
119 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
120
121 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
122 ordering in comment.
123 * frame.c (frame_id_eq): Fix indentation.
124
125 2020-08-31 Scott Linder <scott@scottlinder.com>
126 Simon Marchi <simon.marchi@efficios.com>
127
128 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
129 inline frame ids in outer frame.
130
131 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
132
133 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
134 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
135 (outer_frame_id): Use FID_STACK_OUTER instead of
136 FID_STACK_INVALID.
137 (frame_id_p): Don't check for outer_frame_id.
138
139 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
140
141 * frame-unwind.c (frame_unwind_got_optimized): Don't set
142 regnum/frame in value. Call allocate_value_lazy.
143 * frame.c (frame_unwind_register_value): Use
144 val_print_not_saved.
145
146 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
147
148 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
149
150 2020-08-29 Pedro Alves <pedro@palves.net>
151
152 * progspace.c (print_program_space): Use all_inferiors. Switch to
153 the inferior before calling target_pid_to_str.
154
155 2020-08-28 Tom Tromey <tom@tromey.com>
156
157 * xcoffread.c (xcoff_end_psymtab): Update comment.
158 * dbxread.c (dbx_end_psymtab): Update comment.
159
160 2020-08-28 Tom de Vries <tdevries@suse.de>
161
162 PR breakpoint/26544
163 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
164 event_location.
165 (create_breakpoint): Same.
166 (base_breakpoint_decode_location): Same.
167 (bkpt_create_sals_from_location): Same.
168 (bkpt_decode_location): Same.
169 (bkpt_probe_create_sals_from_location): Same.
170 (bkpt_probe_decode_location): Same.
171 (tracepoint_create_sals_from_location): Same.
172 (tracepoint_decode_location): Same.
173 (tracepoint_probe_decode_location): Same.
174 (strace_marker_create_sals_from_location): Same.
175 (strace_marker_decode_location): Same.
176 (create_sals_from_location_default): Same.
177 (decode_location_default): Same.
178 * breakpoint.h (struct breakpoint_ops): Same.
179 (create_breakpoint): Same.
180 * linespec.h (decode_line_full): Same.
181 * linespec.c (decode_line_full): Same. Throw error if
182 result.size () == 0.
183
184 2020-08-27 Pedro Alves <pedro@palves.net>
185
186 PR gdb/26524
187 * breakpoint.c (until_break_fsm) <location_breakpoint,
188 caller_breakpoint>: Delete fields.
189 <breakpoints>: New field.
190 <until_break_fsm>: Adjust to save a breakpoint vector instead of
191 two individual breakpoints.
192 (until_break_fsm::should_stop): Loop over breakpoints in the
193 breakpoint vector.
194 (until_break_fsm::clean_up): Adjust to clear the breakpoints
195 vector.
196 (until_break_command): Handle location expanding into multiple
197 sals.
198
199 2020-08-27 Pedro Alves <pedro@palves.net>
200
201 PR gdb/26523
202 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
203 bp_until breakpoints user-specified locations. Update intro
204 comment.
205
206 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
207
208 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
209 gdb_bfd_sections): New.
210 * maint.c (print_bfd_section_info): Change param type to
211 maint_print_section_data.
212 (print_objfile_section_info): Likewise.
213 (print_bfd_section_info_maybe_relocated): Likewise.
214 (maintenance_info_sections): Use gdb_bfd_sections.
215
216 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
217
218 * MAINTAINERS: Add ARC target and maintainer.
219
220 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
221
222 * configure.tgt: ARC support for GNU/Linux.
223 * Makefile.in (ALL_TARGET_OBJS): Likewise.
224 * arc-linux-tdep.c: New file.
225 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
226 * arc-tdep.c (arc_write_pc): Use it.
227
228 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
229
230 * arc-tdep.c (arc_check_for_hardware_loop): New.
231 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
232
233 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
234
235 * arc-tdep.h: Include "gdbarch.h".
236
237 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
238
239 * arch/arc.h
240 (arc_gdbarch_features): New class to stir the selection of target XML.
241 (arc_create_target_description): Use FEATURES to choose XML target.
242 (arc_lookup_target_description): Use arc_create_target_description
243 to create _new_ target descriptions or return the already created
244 ones if the FEATURES is the same.
245 * arch/arc.c: Implementation of prototypes described above.
246 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
247 (arc_gdbarch_features_init): Initialize the FEATURES struct.
248 * arc-tdep.c (*_feature_name): Make feature names consistent.
249 (arc_register_feature): A new struct to hold information about
250 registers of a particular target/feature.
251 (arc_check_tdesc_feature): Check if XML provides registers in
252 compliance with ARC_REGISTER_FEATURE structs.
253 (arc_update_acc_reg_names): Add aliases for r58 and r59.
254 (determine_*_reg_feature_set): Which feature name to look for.
255 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
256 (mach_type_to_arc_isa): Convert from a set of binutils machine types
257 to expected ISA enums to be used in arc_gdbarch_features structs.
258 * features/Makefile (FEATURE_XMLFILES): Add new files.
259 * gdb/features/arc/v1-aux.c: New file.
260 * gdb/features/arc/v1-aux.xml: Likewise.
261 * gdb/features/arc/v1-core.c: Likewise.
262 * gdb/features/arc/v1-core.xml: Likewise.
263 * gdb/features/arc/v2-aux.c: Likewise.
264 * gdb/features/arc/v2-aux.xml: Likewise.
265 * gdb/features/arc/v2-core.c: Likewise.
266 * gdb/features/arc/v2-core.xml: Likewise.
267 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
268
269 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
270 Andrew Burgess <andrew.burgess@embecosm.com>
271
272 PR m2/26372
273 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
274 an assert. Remove single element array indexing pattern as the
275 MULTI_SUBSCRIPT support will handle this case too.
276
277 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
278
279 * value.h (valprint_check_validity): Move declaration from
280 here...
281 * valprint.h (valprint_check_validity): ... to here.
282
283 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
284
285 * debug.h: New file.
286 * debug.c (debug_prefixed_vprintf): New function.
287 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
288 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
289
290 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
291
292 * infrun.h (infrun_debug_printf_1): New function declaration.
293 (infrun_debug_printf): New macro.
294 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
295 throughout.
296 (infrun_debug_printf): New function.
297 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
298 (handle_jit_event): Likewise.
299
300 2020-08-21 Mark Wielaard <mark@klomp.org>
301
302 * ada-lex.l: Extend register warnings diagnostics comment for g++.
303
304 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
305
306 * frame.c (enum class frame_id_status): New.
307 (struct frame_info) <this_id::p>: Change type to frame_id_status.
308 (fprintf_frame): Update.
309 (compute_frame_id): Set frame id status to "computing" on entry.
310 Set it back to "not_computed" on failure and to "computed" on
311 success.
312 (get_frame_id): Assert the frame id is not being computed.
313 (create_sentinel_frame): Use frame_id_status::COMPUTED.
314 (create_new_frame): Likewise.
315 (frame_cleanup_after_sniffer): Update assert.
316
317 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
318
319 * regcache.c (pid_ptid_regcache_map): New type.
320 (target_ptid_regcache_map): Remove.
321 (target_pid_ptid_regcache_map): New type.
322 (regcaches): Change type to target_pid_ptid_regcache_map.
323 (get_thread_arch_aspace_regcache): Update.
324 (regcache_thread_ptid_changed): Update, handle pid-like ptid
325 case.
326 (regcaches_size): Update.
327 (regcache_count): Update.
328 (registers_changed_ptid_target_pid_test): New.
329 (_initialize_regcache): Register new test.
330
331 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
332
333 * regcache.c (regcache_count): New.
334 (struct regcache_test_data): New.
335 (regcache_test_data_up): New.
336 (populate_regcaches_for_test): New.
337 (regcaches_test): Remove.
338 (get_thread_arch_aspace_regcache_test): New.
339 (registers_changed_ptid_all_test): New.
340 (registers_changed_ptid_target_test): New.
341 (registers_changed_ptid_target_ptid_test): New.
342 (regcache_thread_ptid_changed): Remove regcache_count lambda.
343 (_initialize_regcache): Register new tests.
344
345 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
346
347 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
348 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
349 gdbarch and aspace parameter. Use current inferior's aspace.
350 Validate regcache's arch value.
351 (regcaches_test): Update.
352
353 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
354
355 * regcache.c (regcaches_test): Call registers_changed.
356
357 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
358
359 * infrun.c (process_event_stop_test): Fix typo "breapoint".
360
361 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
362
363 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
364 to find the end of prologue for flang compiled binaries.
365 * arm-tdep.c (arm_skip_prologue): Likewise.
366 * i386-tdep.c (i386_skip_prologue): Likewise.
367 * producer.c (producer_is_llvm): New function.
368 (producer_parsing_tests): Added new tests for clang/flang.
369 * producer.h (producer_is_llvm): New declaration.
370
371 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
372
373 * linux-nat.c (linux_nat_debug_printf): New function.
374 (linux_nat_debug_printf_1): New macro. Use throughout the file.
375
376 2020-08-18 Aaron Merey <amerey@redhat.com>
377
378 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
379 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
380 (CLIBS): Add DEBUGINFOD_LIBS.
381
382 2020-08-17 Sergei Trofimovich <siarheit@google.com>
383
384 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
385 'gdbarch_num_regs'.
386
387 2020-08-17 Tom Tromey <tromey@adacore.com>
388
389 * ada-varobj.c (ada_varobj_decode_var): Handle case where
390 ada_get_decoded_value returns NULL.
391
392 2020-08-17 Tom Tromey <tromey@adacore.com>
393
394 * python/py-inferior.c (infpy_search_memory): Use
395 gdb_py_object_from_ulongest.
396 * python/py-infevents.c (create_inferior_call_event_object)
397 (create_memory_changed_event_object): Use
398 gdb_py_object_from_ulongest.
399 * python/py-linetable.c (ltpy_entry_get_pc): Use
400 gdb_py_object_from_ulongest.
401
402 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
403
404 * loc.c (class symbol_needs_eval_context): Fix indentation.
405
406 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
407
408 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
409 bool.
410
411 2020-08-17 Tom de Vries <tdevries@suse.de>
412
413 PR gdb/26393
414 * gdbtypes.c (dump_dynamic_prop): New function.
415 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
416
417 2020-08-15 Tom de Vries <tdevries@suse.de>
418
419 PR backtrace/26390
420 * stack.c (print_frame_args): Temporarily set the selected
421 frame to FRAME while printing the frame's arguments.
422
423 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
424
425 PR breakpoints/26385
426 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
427 Always clear watchpoint with PTRACE_SET_DEBUGREG.
428
429 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
430
431 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
432 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
433 and >= to check return value instead of == -1 and != -1.
434
435 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
436
437 * utils.h (class gdb_argv) <as_array_view>: New method.
438 * utils.c (gdb_argv_as_array_view_test): New.
439 (_initialize_utils): Register selftest.
440 * maint.c (maintenance_selftest): Use the new method.
441
442 2020-08-13 Kamil Rytarowski <n54@gmx.com>
443
444 * target.h (supports_dumpcore, dumpcore): New
445 function declarations.
446 * target.c (supports_dumpcore, dumpcore): New
447 functions.
448 * target-delegates.c: Rebuild.
449 * gcore.c (gcore_command): Use target_supports_dumpcore ()
450 and target_dumpcore ().
451
452 2020-08-13 Aaron Merey <amerey@redhat.com>
453
454 * debuginfod-support.c: Replace global variables with user_data.
455
456 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
457
458 * maint.c (maintenance_selftest): Split args and pass array_view
459 to run_tests.
460
461 2020-08-12 Luis Machado <luis.machado@linaro.org>
462
463 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
464 type's length.
465 Use %s and pulongest to print the length.
466
467 2020-08-12 Pedro Alves <palves@redhat.com>
468
469 * NEWS: Move "Multi-target debugging support" item to the
470 "Changes since GDB 9" section.
471
472 2020-08-12 Pedro Alves <palves@redhat.com>
473
474 PR gdb/26336
475 * progspace.c (program_space::remove_objfile): Invalidate the
476 frame cache.
477
478 2020-08-11 Tom de Vries <tdevries@suse.de>
479
480 * MAINTAINERS: Mark ms1 as deleted.
481
482 2020-08-10 Luis Machado <luis.machado@linaro.org>
483
484 PR gdb/26310
485
486 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
487 act accordingly.
488 (aarch64_analyze_prologue_test): Add more unit tests to exercise
489 movz/str/stur/stp skipping behavior.
490
491 2020-08-10 Luis Machado <luis.machado@linaro.org>
492
493 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
494 struct user_sve_header instead of struct sve_context.
495
496 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
497
498 * read.h (dwarf2_fetch_die_loc_sect_off,
499 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
500 `void *` parameter with function_view.
501 * read.c (dwarf2_fetch_die_loc_sect_off,
502 dwarf2_fetch_die_loc_cu_off): Likewise.
503 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
504 (per_cu_dwarf_call): Adjust.
505 (get_frame_address_in_block_wrapper): Remove.
506 (indirect_synthetic_pointer): Adjust.
507 (get_ax_pc): Remove.
508 (dwarf2_compile_expr_to_ax): Adjust.
509
510 2020-08-08 Tom de Vries <tdevries@suse.de>
511
512 PR build/26344
513 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
514 constructor.
515 * regcache.c (get_thread_arch_aspace_regcache): Same.
516
517 2020-08-07 Tom Tromey <tromey@adacore.com>
518
519 * ravenscar-thread.c
520 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
521 New method.
522 (ravenscar_thread_target::wait): Check
523 runtime_initialized.
524 (ravenscar_thread_target::prepare_to_store)
525 (ravenscar_thread_target::stopped_by_sw_breakpoint)
526 (ravenscar_thread_target::stopped_by_hw_breakpoint)
527 (ravenscar_thread_target::stopped_by_watchpoint)
528 (ravenscar_thread_target::stopped_data_address)
529 (ravenscar_thread_target::core_of_thread): Use
530 scoped_restore_current_thread and
531 set_base_thread_from_ravenscar_task.
532
533 2020-08-07 Tom Tromey <tromey@adacore.com>
534
535 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
536
537 2020-08-07 Tom Tromey <tromey@adacore.com>
538
539 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
540 update_inferior_ptid before update_thread_list.
541 (temporarily_change_regcache_ptid): New class.
542 (ravenscar_thread_target::fetch_registers)
543 (ravenscar_thread_target::store_registers)
544 (ravenscar_thread_target::prepare_to_store): Use base thread when
545 forwarding operation.
546
547 2020-08-07 Tom Tromey <tromey@adacore.com>
548
549 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
550 "is_pid" case.
551
552 2020-08-07 Tom Tromey <tromey@adacore.com>
553
554 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
555 New methods.
556 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
557 first.
558 (ravenscar_thread_target::add_thread): Rename from
559 ravenscar_add_thread.
560 (ravenscar_thread_target::update_thread_list): Use a lambda.
561 (ravenscar_thread_target::xfer_partial): New method.
562
563 2020-08-07 Tom Tromey <tromey@adacore.com>
564
565 * ada-lang.h (ada_task_list_iterator_ftype): Now a
566 gdb::function_view.
567 (iterate_over_live_ada_tasks): Change type of argument.
568 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
569 of argument.
570
571 2020-08-07 Tom Tromey <tromey@adacore.com>
572
573 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
574 Remove.
575 (ravenscar_thread_target::extra_thread_info): Remove.
576 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
577 defer to target beneath for non-Ravenscar threads.
578
579 2020-08-07 Tom Tromey <tromey@adacore.com>
580
581 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
582 get_base_thread_from_ravenscar_task>: Now methods.
583 <m_cpu_map>: New member.
584 (ravenscar_thread_target::get_thread_base_cpu): Rename from
585 ravenscar_get_thread_base_cpu. Check m_cpu_map.
586 (ravenscar_thread_target::task_is_currently_active): Update.
587 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
588 Now a method.
589 (ravenscar_thread_target::add_active_thread): Put initial thread
590 into the m_cpu_map.
591
592 2020-08-07 Tom Tromey <tromey@adacore.com>
593
594 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
595 event_ptid.
596
597 2020-08-07 Tom Tromey <tromey@adacore.com>
598
599 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
600 runtime_initialized.
601
602 2020-08-07 Tom Tromey <tromey@adacore.com>
603
604 * ravenscar-thread.c (ravenscar_thread_target): Don't call
605 add_active_thread.
606 (ravenscar_thread_target::add_active_thread): Now public.
607 (ravenscar_inferior_created): Call add_active_thread after pushing
608 the target.
609
610 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
611
612 * regcache.c (ptid_regcache_map): New type.
613 (target_ptid_regcache_map): New type.
614 (regcaches): Change type to target_ptid_regcache_map.
615 (get_thread_arch_aspace_regcache): Update to regcaches' new
616 type.
617 (regcache_thread_ptid_changed): Likewise.
618 (registers_changed_ptid): Likewise.
619 (regcaches_size): Likewise.
620 (regcaches_test): Update.
621 (regcache_thread_ptid_changed): Update.
622 * regcache.h (regcache_up): New type.
623 * gdbsupport/ptid.h (hash_ptid): New struct.
624
625 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
626
627 * observable.h (thread_ptid_changed): Add parameter
628 `process_stratum_target *`.
629 * infrun.c (infrun_thread_ptid_changed): Add parameter
630 `process_stratum_target *` and use it.
631 (selftests): New namespace.
632 (infrun_thread_ptid_changed): New function.
633 (_initialize_infrun): Register selftest.
634 * regcache.c (regcache_thread_ptid_changed): Add parameter
635 `process_stratum_target *` and use it.
636 (regcache_thread_ptid_changed): New function.
637 (_initialize_regcache): Register selftest.
638 * thread.c (thread_change_ptid): Pass target to
639 thread_ptid_changed observable.
640
641 2020-08-06 Caroline Tice <cmtice@google.com>
642
643 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
644 (struct dwp_sections): Update field comments. Add loclists and
645 rnglists fields.
646 (struct virtual_v2_dwo_sections): Rename struct to
647 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
648 size & offset fields for loclists and rnglists.
649 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
650 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
651 skipping dummy type units.
652 (create_dwp_hash_table): Update the large comment above the function to
653 discuss Version 5 DWP files as well, with references. Update all the
654 version checks in the function to check for version 5 as well. Add new
655 section at the end to create dwp hash table for version 5.
656 (create_dwp_v2_section): Rename function to
657 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
658 Add V5 to error message text.
659 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
660 into calls to create_dwp_v2_or_v5_section.
661 (create_dwo_unit_in_dwp_v5): New function.
662 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
663 check for version2; add else clause to handle version 5.
664 (open_and_init_dwo_file): Add code to check dwarf version & only call
665 create_debug_types_hash_table (with sections.types) if version is not 5;
666 else call create_debug_type_hash_table, with sections.info.
667 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
668 version 5.
669 (dwarf2_locate_v5_dwp_sections): New function.
670 (open_and_init_dwp_file): Add else-if clause for version 5 to call
671 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
672
673 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
674
675 * regcache.h (class regcache): Remove friend
676 registers_changed_ptid.
677 <regcache_thread_ptid_changed>: Remove.
678 <regcaches>: Remove.
679 * regcache.c (regcache::regcaches): Rename to...
680 (regcaches): ... this. Make static.
681 (get_thread_arch_aspace_regcache): Update.
682 (regcache::regcache_thread_ptid_changed): Rename to...
683 (regcache_thread_ptid_changed): ... this. Update.
684 (class regcache_access): Remove.
685 (regcaches_test): Update.
686 (_initialize_regcache): Update.
687 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
688 <forward_list>.
689
690 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
691
692 * regcache.h (class regcache) <current_regcache>: Rename to...
693 <regcaches>: ... this. Move doc here.
694 * regcache.c (regcache::current_regcache) Rename to...
695 (regcache::regcaches): ... this. Move doc to header.
696 (get_thread_arch_aspace_regcache): Update.
697 (regcache::regcache_thread_ptid_changed): Update.
698 (registers_changed_ptid): Update.
699 (class regcache_access) <current_regcache_size>: Rename to...
700 <regcaches_size>: ... this.
701 (current_regcache_test): Rename to...
702 (regcaches_test): ... this.
703 (_initialize_regcache): Update.
704
705 2020-08-06 Victor Collod <vcollod@nvidia.com>
706
707 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
708
709 2020-08-05 Kevin Buettner <kevinb@redhat.com>
710
711 * corelow.c (core_target::build_file_mappings): Don't output
712 null pathname in warning.
713
714 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
715
716 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
717 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
718 gdb.dwarf2/dw2-single-line-discriminators.exp,
719 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
720
721 2020-08-05 Tom Tromey <tromey@adacore.com>
722
723 PR rust/26197:
724 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
725 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
726 Fix off-by-one and type size errors in ordinary case.
727
728 2020-08-05 Tom de Vries <tdevries@suse.de>
729
730 * gdbtypes.c (type_not_allocated, type_not_associated): Use
731 "prop->const_val () == 0" instead of "prop->const_val () != 0".
732
733 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
734
735 * frame.h (frame_id_p): Return bool.
736 (frame_id_artificial_p): Return bool.
737 (frame_id_eq): Return bool.
738 (has_stack_frames): Return bool.
739 (get_selected_frame): Fix typo in comment.
740 (get_frame_pc_if_available): Return bool.
741 (get_frame_address_in_block_if_available): Return bool.
742 (get_frame_func_if_available): Return bool.
743 (read_frame_register_unsigned): Return bool.
744 (get_frame_register_bytes): Return bool.
745 (safe_frame_unwind_memory): Return bool.
746 (deprecated_frame_register_read): Return bool.
747 (frame_unwinder_is): Return bool.
748 * frame.c (struct frame_info) <prev_arch::p>: Change type to
749 bool.
750 <this_id::p>: Likewise.
751 <prev_p>: Likewise.
752 (frame_stash_add): Return bool.
753 (get_frame_id): Use bool.
754 (frame_id_build_special) Use bool.
755 (frame_id_build_unavailable_stack): Use bool.
756 (frame_id_build): Use bool.
757 (frame_id_p): Return bool, use true/false instead of 1/0.
758 (frame_id_artificial_p): Likewise.
759 (frame_id_eq): Likewise.
760 (frame_id_inner): Likewise.
761 (get_frame_func_if_available): Likewise.
762 (read_frame_register_unsigned): Likewise.
763 (deprecated_frame_register_read): Likewise.
764 (get_frame_register_bytes): Likewise.
765 (has_stack_frames): Likewise.
766 (inside_main_func): Likewise.
767 (inside_entry_func): Likewise.
768 (get_frame_pc_if_available): Likewise.
769 (get_frame_address_in_block_if_available): Likewise.
770 (frame_unwinder_is): Likewise.
771 (safe_frame_unwind_memory): Likewise.
772 (frame_unwind_arch): Likewise.
773
774 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
775
776 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
777 type to cached_copy_status.
778 (fprintf_frame): Adjust.
779 (get_frame_func_if_available): Adjust.
780 (frame_cleanup_after_sniffer): Adjust.
781
782 2020-08-04 Mark Wielaard <mark@klomp.org>
783
784 * MAINTAINERS (Write After Approval): Update email address.
785
786 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
787
788 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
789 dynamic_prop::const_val.
790
791 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
792
793 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
794 dynamic_prop::kind.
795
796 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
797
798 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
799
800 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
801
802 * configure.tgt: Set gdb_sim for bpf-*-* targets.
803
804 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
805 Jose E. Marchesi <jose.marchesi@oracle.com>
806
807 * configure.tgt: Add entry for bpf-*-*.
808 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
809 (ALLDEPFILES): Add bpf-tdep.c.
810 * bpf-tdep.c: New file.
811 * MAINTAINERS: Add bpf target and maintainer.
812 * NEWS: Mention the support for the new target.
813
814 2020-08-04 Tom de Vries <tdevries@suse.de>
815
816 PR symtab/23270
817 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
818 Error.
819
820 2020-08-03 John Baldwin <jhb@FreeBSD.org>
821
822 * syscalls/freebsd.xml: Regenerate.
823
824 2020-08-03 John Baldwin <jhb@FreeBSD.org>
825
826 * syscalls/update-freebsd.sh: Fix usage and year range.
827
828 2020-08-03 Tom de Vries <tdevries@suse.de>
829
830 PR symtab/26333
831 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
832 DW_LNE_lo_user/DW_LNE_hi_user range.
833
834 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
835
836 PR ada/26318
837 * ada-lang.c (ada_modulus): Return 0 if property is not of const
838 kind.
839
840 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
841
842 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
843
844 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
845
846 * breakpoint.c (set_breakpoint_condition): Update the condition
847 expressions after checking that the input condition string parses
848 successfully and does not contain junk at the end.
849
850 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
851
852 * breakpoint.c (set_breakpoint_condition): Update the
853 condition string after parsing the new condition successfully.
854
855 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
856
857 * proc-api.c (_STRUCTURED_PROC): Don't define.
858 * proc-events.c: Likewise.
859 * proc-flags.c: Likewise.
860 * proc-why.c: Likewise.
861 * procfs.c: Likewise.
862
863 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
864 * configure, config.in: Regenerate.
865
866 2020-07-30 Tom de Vries <tdevries@suse.de>
867
868 PR build/26320
869 * ui-style.h (struct ui_file_style::color): Wrap m_value and
870 m_red/m_green/m_blue in a union.
871
872 2020-07-29 Tom de Vries <tdevries@suse.de>
873
874 PR tdep/26280
875 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
876
877 2020-07-28 Tom Tromey <tromey@adacore.com>
878
879 PR symtab/26270:
880 * symtab.h (find_pc_partial_function_sym): Declare.
881 * cli/cli-cmds.c (disassemble_command): Use
882 find_pc_partial_function_sym. Check asm_demangle.
883 * blockframe.c (cache_pc_function_sym): New global.
884 (cache_pc_function_name): Remove.
885 (clear_pc_function_cache): Update.
886 (find_pc_partial_function_sym): New function, from
887 find_pc_partial_function.
888 (find_pc_partial_function): Rewrite using
889 find_pc_partial_function_sym.
890
891 2020-07-28 Tom Tromey <tromey@adacore.com>
892
893 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
894 help. Add usage.
895
896 2020-07-28 Tom Tromey <tromey@adacore.com>
897
898 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
899 <DW_OP_GNU_variable_value>: Cast to address type.
900
901 2020-07-28 Kamil Rytarowski <n54@gmx.com>
902
903 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
904 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
905 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
906 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
907 (nbsd_get_siginfo_type): New.
908 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
909 (_initialize_nbsd_tdep): New.
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 H.J. Lu <hongjiu.lu@intel.com>
917
918 PR binutils/26301
919 * configure: Regenerated.
920
921 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
922
923 * python/py-frame.c: Remove 'user-regs.h' include.
924 (frapy_read_register): Rewrite to make use of
925 gdbpy_parse_register_id.
926 * python/py-registers.c (gdbpy_parse_register_id): New function,
927 moved here from python/py-unwind.c. Updated the return type, and
928 also accepts register descriptor objects.
929 * python/py-unwind.c: Remove 'user-regs.h' include.
930 (pyuw_parse_register_id): Moved to python/py-registers.c.
931 (unwind_infopy_add_saved_register): Update to use
932 gdbpy_parse_register_id.
933 (pending_framepy_read_register): Likewise.
934 * python/python-internal.h (gdbpy_parse_register_id): Declare.
935
936 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
937
938 * python/py-registers.c: Add 'user-regs.h' include.
939 (register_descriptor_iter_find): New function.
940 (register_descriptor_iterator_object_methods): New static global
941 methods array.
942 (register_descriptor_iterator_object_type): Add pointer to methods
943 array.
944
945 2020-07-27 John Baldwin <jhb@FreeBSD.org>
946
947 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
948 for all architectures on FreeBSD 11.3 and later.
949
950 2020-07-27 Tom Tromey <tromey@adacore.com>
951
952 * gcore.h (load_corefile): Don't declare.
953
954 2020-07-27 Tom de Vries <tdevries@suse.de>
955
956 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
957 * config.in: Regenerate.
958 * configure: Regenerate.
959
960 2020-07-26 Eli Zaretskii <eliz@gnu.org>
961
962 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
963 ws2tcpip.h. When checking whether socklen_t type is defined, use
964 ws2tcpip.h if it is available and sys/socket.h isn't.
965 * configure: Regenerate.
966 * config.in: Regenerate.
967
968 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
969
970 PR fortran/23051
971 PR fortran/26139
972 * valops.c (value_ind): Pass address to
973 readjust_indirect_value_type.
974 * value.c (readjust_indirect_value_type): Make parameter
975 non-const, and add extra address parameter. Resolve original type
976 before using it.
977 * value.h (readjust_indirect_value_type): Update function
978 signature and comment.
979
980 2020-07-25 Tom de Vries <tdevries@suse.de>
981
982 PR symtab/26243
983 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
984 entries.
985
986 2020-07-24 Aaron Merey <amerey@redhat.com>
987
988 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
989 * configure: Rebuild.
990
991 2020-07-23 Kevin Buettner <kevinb@redhat.com>
992
993 PR corefiles/26294
994 * corelow.c (_initialize_corelow): Add period to help text
995 for "maintenance print core-file-backed-mappings".
996
997 2020-07-23 Pedro Alves <pedro@palves.net>
998
999 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
1000 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
1001 meanwhile.
1002 * frame.c (frame_cache_generation, get_frame_cache_generation):
1003 New.
1004 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
1005 (get_prev_frame_if_no_cycle): On exception, don't touch
1006 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
1007 * frame.h (get_frame_cache_generation): Declare.
1008
1009 2020-07-23 Tom de Vries <tdevries@suse.de>
1010
1011 PR tui/26282
1012 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
1013 New default constructor.
1014
1015 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
1016
1017 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
1018 exclude non-statement entries.
1019
1020 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1021
1022 * NEWS (New commands): Mention new command
1023 "maintenance print core-file-backed-mappings".
1024
1025 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1026
1027 * corelow.c (gdbcmd.h): Include.
1028 (core_target::info_proc_mappings): New method.
1029 (get_current_core_target): New function.
1030 (maintenance_print_core_file_backed_mappings): New function.
1031 (_initialize_corelow): Add core-file-backed-mappings to
1032 "maint print" commands.
1033
1034 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1035
1036 * linux-tdep.c (dump_note_entry_p): New function.
1037 (linux_dump_mapping_p_ftype): New typedef.
1038 (linux_find_memory_regions_full): Add new parameter,
1039 should_dump_mapping_p.
1040 (linux_find_memory_regions): Adjust call to
1041 linux_find_memory_regions_full.
1042 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
1043 call to linux_find_memory_regions_full.
1044
1045 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1046
1047 * corelow.c (solist.h, unordered_map): Include.
1048 (class core_target): Add field m_core_file_mappings and
1049 method build_file_mappings.
1050 (core_target::core_target): Call build_file_mappings.
1051 (core_target::~core_target): Free memory associated with
1052 m_core_file_mappings.
1053 (core_target::build_file_mappings): New method.
1054 (core_target::xfer_partial): Use m_core_file_mappings
1055 for memory transfers.
1056 * linux-tdep.c (linux_read_core_file_mappings): New
1057 function.
1058 (linux_core_info_proc_mappings): Rewrite to use
1059 linux_read_core_file_mappings.
1060 (linux_init_abi): Register linux_read_core_file_mappings.
1061
1062 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1063
1064 * arch-utils.c (default_read_core_file_mappings): New function.
1065 * arch-utils.c (default_read_core_file_mappings): Declare.
1066 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
1067 * gdbarch.h, gdbarch.c: Regenerate.
1068
1069 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1070
1071 PR corefiles/25631
1072 * corelow.c (core_target:xfer_partial): Revise
1073 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
1074 case after first checking the stratum beneath the core
1075 target.
1076 (has_all_memory): Return true.
1077 * target.c (raw_memory_xfer_partial): Revise comment
1078 regarding use of has_all_memory.
1079
1080 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1081
1082 * exec.h (section_table_xfer_memory): Revise declaration,
1083 replacing section name parameter with an optional callback
1084 predicate.
1085 * exec.c (section_table_xfer_memory): Likewise.
1086 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
1087 of section_table_xfer_memory.
1088
1089 2020-07-22 Tom Tromey <tromey@adacore.com>
1090
1091 * mi/mi-cmd-stack.c (list_args_or_locals): Use
1092 lookup_symbol_search_name.
1093
1094 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1095
1096 * python/py-registers.c (gdbpy_register_object_data_init): Remove
1097 redundant local variable.
1098 (gdbpy_get_register_descriptor): Extract descriptor vector as a
1099 reference, not pointer, update code accordingly.
1100
1101 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1102 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1103
1104 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
1105 * jit.c (jit_breakpoint_re_set_internal): Use the
1106 `skip_jit_symbol_lookup` field.
1107
1108 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1109 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1110
1111 * jit.c (jit_read_descriptor): Define the descriptor address once,
1112 use twice.
1113 (jit_breakpoint_deleted): Move the declaration of the loop variable
1114 `iter` into the loop header.
1115 (jit_breakpoint_re_set_internal): Move the declaration of the local
1116 variable `objf_data` to the first point of definition.
1117 (jit_event_handler): Move the declaration of local variables
1118 `code_entry`, `entry_addr`, and `objf` to their first point of use.
1119 Rename `objf` to `jited`.
1120
1121 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1122
1123 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
1124 Remove.
1125 * jit.c (get_jiter_objfile_data): Update.
1126
1127 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1128 Simon Marchi <simon.marchi@polymtl.ca>
1129
1130 * jit.c (struct jit_program_space_data): Remove.
1131 (jit_program_space_key): Remove.
1132 (jiter_objfile_data::~jiter_objfile_data): Remove program space
1133 stuff.
1134 (get_jit_program_space_data): Remove.
1135 (jit_breakpoint_deleted): Iterate on all of the program space's
1136 objfiles.
1137 (jit_inferior_init): Likewise.
1138 (jit_breakpoint_re_set_internal): Likewise. Also change return
1139 type to void.
1140 (jit_breakpoint_re_set): Pass current_program_space to
1141 jit_breakpoint_re_set_internal.
1142
1143 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1144
1145 * jit.h (struct jiter_objfile_data) <cached_code_address,
1146 jit_breakpoint>: Move to here from ...
1147 * jit.c (jit_program_space_data): ... here.
1148 (jiter_objfile_data::~jiter_objfile_data): Update.
1149 (jit_breakpoint_deleted): Update.
1150 (jit_breakpoint_re_set_internal): Update.
1151
1152 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1153
1154 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
1155 checks.
1156 (jit_read_descriptor): Remove NULL check.
1157 (jit_event_handler): Add an assertion.
1158
1159 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1160
1161 * jit.h (struct jit_objfile_data): Split into...
1162 (struct jiter_objfile_data): ... this ...
1163 (struct jited_objfile_data): ... and this.
1164 * objfiles.h (struct objfile) <jit_data>: Remove.
1165 <jiter_data, jited_data>: New fields.
1166 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
1167 (jiter_objfile_data::~jiter_objfile_data): ... this.
1168 (get_jit_objfile_data): Rename to ...
1169 (get_jiter_objfile_data): ... this.
1170 (add_objfile_entry): Update.
1171 (jit_read_descriptor): Use get_jiter_objfile_data.
1172 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
1173 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
1174 (jit_inferior_exit_hook): Use objfile's jited_data field.
1175
1176 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1177
1178 * jit.h: Forward-declare `struct minimal_symbol`.
1179 (struct jit_objfile_data): Migrate to here from jit.c; also add a
1180 constructor, destructor, and an objfile* field.
1181 * jit.c (jit_objfile_data): Remove.
1182 (struct jit_objfile_data): Migrate from here to jit.h.
1183 (jit_objfile_data::~jit_objfile_data): New destructor
1184 implementation with code moved from free_objfile_data.
1185 (free_objfile_data): Delete.
1186 (get_jit_objfile_data): Update to use the jit_data field of objfile.
1187 (jit_find_objf_with_entry_addr): Ditto.
1188 (jit_inferior_exit_hook): Ditto.
1189 (_initialize_jit): Remove the call to
1190 register_objfile_data_with_cleanup.
1191 * objfiles.h (struct objfile) <jit_data>: New field.
1192
1193 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1194
1195 * jit.h: Forward-declare `struct objfile`.
1196 (jit_event_handler): Add a second parameter, the JITer objfile.
1197 * jit.c (jit_read_descriptor): Change the signature to take the
1198 JITer objfile as an argument instead of the jit_program_space_data.
1199 (jit_inferior_init): Update the call to jit_read_descriptor.
1200 (jit_event_handler): Use the new JITer objfile argument when calling
1201 jit_read_descriptor.
1202 * breakpoint.c (handle_jit_event): Update the call to
1203 jit_event_handler to pass the JITer objfile.
1204
1205 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1206
1207 * gdbarch.c: Regenerate.
1208 * gdbarch.h: Regenerate.
1209 * gdbarch.sh (handle_segmentation_fault): Remove method.
1210 * infrun.c (handle_segmentation_fault): Remove.
1211 (print_signal_received_reason): Remove call to
1212 handle_segmentation_fault.
1213
1214 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1215
1216 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1217 Rename to sparc64_linux_report_signal_info and add siggnal
1218 argument.
1219 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
1220 instead of sparc64_linux_handle_segmentation_fault.
1221
1222 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1223
1224 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
1225 i386_linux_report_signal_info instead of
1226 i386_linux_handle_segmentation_fault.
1227 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
1228 to i386_linux_report_signal_info and add siggnal argument.
1229 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
1230 of i386_linux_handle_segmentation_fault.
1231 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
1232 to i386_linux_report_signal_info and add siggnal argument.
1233
1234 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1235
1236 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1237 hook if present.
1238
1239 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1240
1241 * gdbarch.c: Regenerate.
1242 * gdbarch.h: Regenerate.
1243 * gdbarch.sh (report_signal_info): New method.
1244 * infrun.c (print_signal_received_reason): Invoke gdbarch
1245 report_signal_info hook if present.
1246
1247 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1248
1249 * python/py-registers.c : Add 'unordered_map' include.
1250 (gdbpy_new_reggroup): Renamed to...
1251 (gdbpy_get_reggroup): ...this. Update to only create register
1252 group descriptors when needed.
1253 (gdbpy_reggroup_iter_next): Update.
1254
1255 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1256
1257 * python/py-registers.c (gdbpy_register_object_data): New static
1258 global.
1259 (gdbpy_register_object_data_init): New function.
1260 (gdbpy_new_register_descriptor): Renamed to...
1261 (gdbpy_get_register_descriptor): ...this, and update to reuse
1262 existing register descriptors where possible.
1263 (gdbpy_register_descriptor_iter_next): Update.
1264 (gdbpy_initialize_registers): Register new gdbarch data.
1265
1266 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
1267
1268 * linux-nat.c (stopped_pids): Make static.
1269
1270 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1271
1272 PR ada/26235
1273 * gdbtypes.c (ada_discrete_type_low_bound,
1274 ada_discrete_type_high_bound): Handle undefined bounds.
1275
1276 2020-07-21 Kamil Rytarowski <n54@gmx.com>
1277
1278 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1279 declaration.
1280 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1281 function.
1282
1283 2020-07-20 John Baldwin <jhb@FreeBSD.org>
1284
1285 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1286 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1287 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1288 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1289 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1290 method.
1291
1292 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1293
1294 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1295 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1296 which are deprecated in Guile 3.0.
1297 * configure.ac (try_guile_versions): Add "guile-3.0".
1298 * configure (try_guile_versions): Regenerate.
1299 * NEWS: Update entry.
1300
1301 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1302 Doug Evans <dje@google.com>
1303
1304 PR gdb/21104
1305 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1306 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1307 USING_GUILE_BEFORE_2_2.
1308 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1309 Change type to 'scm_t_port_type *'.
1310 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1311 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1312 parameter and honor it. Update callers.
1313 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1314 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1315 functions.
1316 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1317 USING_GUILE_BEFORE_2_2.
1318 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1319 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1320 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1321 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1322 and 'SCM_PORT_TYPE'.
1323 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1324 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1325 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1326 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1327 [!USING_GUILE_BEFORE_2_2]: New functions.
1328 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1329 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1330 'gdbscm_memory_port_read'.
1331 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1332 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1333 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1334 function.
1335 (ioscm_init_memory_port): Remove.
1336 (ioscm_init_memory_port_stream): New function
1337 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1338 function.
1339 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1340 Return scm_from_uint (0).
1341 (gdbscm_set_memory_port_read_buffer_size_x)
1342 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1343 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1344 Return scm_from_uint (0).
1345 (gdbscm_set_memory_port_write_buffer_size_x)
1346 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1347 * configure.ac (try_guile_versions): Add "guile-2.2".
1348 * configure: Regenerate.
1349 * NEWS: Add entry.
1350
1351 2020-07-18 Tom Tromey <tom@tromey.com>
1352
1353 * linux-nat.c (linux_multi_process): Remove.
1354 (linux_nat_target::supports_multi_process): Return true.
1355
1356 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1357
1358 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1359 (riscv_lookup_target_description): Return pointer out of
1360 unique_ptr.
1361 * target-descriptions.c (allocate_target_description): Add
1362 comment.
1363 (target_desc_deleter::operator()): Likewise.
1364 * target-descriptions.h (struct target_desc_deleter): Moved to
1365 gdbsupport/tdesc.h.
1366 (target_desc_up): Likewise.
1367
1368 2020-07-17 Tom Tromey <tromey@adacore.com>
1369
1370 * linux-nat.c (linux_nat_target::supports_non_stop)
1371 (linux_nat_target::always_non_stop_p): Use "true".
1372 (linux_nat_target::supports_disable_randomization): Use "true" and
1373 "false".
1374
1375 2020-07-16 Caroline Tice <cmtice@google.com>
1376
1377 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1378 (RNGLIST_HEADER_SIZE64): New constant definition.
1379 (struct dwop_section_names): Add rnglists_dwo.
1380 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1381 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1382 (struct dwo_sections): Add rnglists field.
1383 (read_attribut_reprocess): Add tag parameter.
1384 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1385 (cu_debug_rnglists_section): New function (decl & definition).
1386 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1387 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1388 die whose range is being checked; get rnglist section from
1389 cu_debug_rnglists_section, to get from either objfile or dwo file as
1390 appropriate. Add cases for DW_RLE_base_addressx,
1391 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1392 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1393 test inside if-condition and updating complaint message.
1394 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1395 dwarf2_rnglists_process.
1396 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1397 dwarf2_ranges_process.
1398 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1399 need_ranges_base and update comment appropriately. Also pass die tag
1400 to dwarf2_ranges_read.
1401 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1402 need_ranges_base and update comment appropriately. Also pass die tag
1403 to dwarf2_ranges_process.
1404 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1405 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1406 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1407 need_ranges_base and update comment appropriately. Also pass die tag
1408 to read_attribute_reprocess and dwarf2_ranges_read.
1409 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1410 and update function comment appropriately.
1411 (read_loclist_index): Call read_loclists_rnglists_header instead of
1412 read_loclist_header.
1413 (read_rnglist_index): New function.
1414 (read_attribute_reprocess): Add tag parameter. Add code for
1415 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1416 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1417
1418 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1419
1420 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1421 being resolved.
1422
1423 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1424
1425 * arch-utils.c (show_architecture): Update formatting of messages.
1426
1427 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1428
1429 * gdbtypes.h (struct type) <bounds>: Handle array and string
1430 types.
1431 * ada-lang.c (assign_aggregate): Use type::bounds on
1432 array/string type.
1433 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1434 * c-varobj.c (c_number_of_children): Likewise.
1435 (c_describe_child): Likewise.
1436 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1437 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1438 (f_type_print_base): Likewise.
1439 * f-valprint.c (f77_array_offset_tbl): Likewise.
1440 (f77_get_upperbound): Likewise.
1441 (f77_print_array_1): Likewise.
1442 * guile/scm-type.c (gdbscm_type_range): Likewise.
1443 * m2-typeprint.c (m2_array): Likewise.
1444 (m2_is_long_set_of_type): Likewise.
1445 * m2-valprint.c (get_long_set_bounds): Likewise.
1446 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1447 * python/py-type.c (typy_range): Likewise.
1448 * rust-lang.c (rust_internal_print_type): Likewise.
1449 * type-stack.c (type_stack::follow_types): Likewise.
1450 * valarith.c (value_subscripted_rvalue): Likewise.
1451 * valops.c (value_cast): Likewise.
1452
1453 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1454
1455 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1456 callers to use the equivalent accessor methods.
1457
1458 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1459
1460 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1461 (struct type) <bit_stride>: New method.
1462 (TYPE_BIT_STRIDE): Remove.
1463 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1464
1465 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1466
1467 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1468 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1469 callers to use the equivalent accessor methods instead.
1470
1471 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1472
1473 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1474 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1475 callers to use the equivalent accessor methods instead.
1476
1477 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1478
1479 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1480 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1481 to use dynamic_prop::kind.
1482
1483 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1484
1485 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1486 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1487 to get the bound property's kind and check against
1488 PROP_UNDEFINED.
1489
1490 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1491
1492 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1493 all callers to use type::range_bounds followed by
1494 dynamic_prop::{low,high}.
1495
1496 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1497
1498 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1499 const_val, set_const_val, baton, set_locexpr, set_loclist,
1500 set_addr_offset, variant_parts, set_variant_parts,
1501 original_type, set_original_type>: New methods.
1502 <kind>: Rename to...
1503 <m_kind>: ... this. Update all users to use the new methods
1504 instead.
1505 <data>: Rename to...
1506 <m_data>: ... this. Update all users to use the new methods
1507 instead.
1508
1509 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1510
1511 * gdbtypes.c (get_discrete_bounds): Return failure if
1512 the range type's bounds are not both defined and constant
1513 values.
1514 (get_array_bounds): Update comment. Remove undefined bound check.
1515
1516 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1517
1518 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1519 the type::bounds method directly.
1520
1521 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1522
1523 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1524 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1525 are used to set the range type's bounds to use set_bounds.
1526
1527 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1528
1529 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1530
1531 2020-07-10 Pedro Alves <pedro@palves.net>
1532
1533 * gdbthread.h (inferior_ref): Define.
1534 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1535 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1536 * thread.c
1537 (scoped_restore_current_thread::restore):
1538 Adjust to gdb::ref_ptr.
1539 (scoped_restore_current_thread::~scoped_restore_current_thread):
1540 Remove manual decref handling.
1541 (scoped_restore_current_thread::scoped_restore_current_thread):
1542 Adjust to use
1543 inferior_ref::new_reference/thread_info_ref::new_reference.
1544 Incref the thread before calling get_frame_id instead of after.
1545 Let TARGET_CLOSE_ERROR propagate.
1546
1547 2020-07-10 Pedro Alves <pedro@palves.net>
1548
1549 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1550 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1551 NOT_AVAILABLE_ERROR.
1552 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1553 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1554
1555 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1556 Pedro Alves <pedro@palves.net>
1557
1558 PR gdb/26199
1559 * infrun.c (threads_are_resumed_pending_p): Delete.
1560 (do_target_wait): Remove threads_are_executing and
1561 threads_are_resumed_pending_p checks from the inferior_matches
1562 lambda. Update comments.
1563
1564 2020-07-10 Pedro Alves <pedro@palves.net>
1565
1566 PR gdb/26199
1567 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1568 executing threads.
1569
1570 2020-07-10 Pedro Alves <pedro@palves.net>
1571
1572 PR gdb/26199
1573 * infrun.c (handle_no_resumed): Handle multiple targets.
1574
1575 2020-07-10 Pedro Alves <pedro@palves.net>
1576
1577 PR gdb/26199
1578 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1579 target_is_async_p.
1580
1581 2020-07-10 Pedro Alves <pedro@palves.net>
1582
1583 PR gdb/26199
1584 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1585 threads, not all threads.
1586
1587 2020-07-10 Pedro Alves <pedro@palves.net>
1588
1589 PR gdb/26199
1590 * remote.c (remote_target::open_1): Pass remote target pointer as
1591 data to create_async_event_handler.
1592 (remote_async_inferior_event_handler): Mark async event handler
1593 before returning if the remote target still has either pending
1594 events or unacknowledged notifications.
1595
1596 2020-07-10 John Baldwin <jhb@FreeBSD.org>
1597
1598 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1599 declaration.
1600 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1601 function.
1602
1603 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1604
1605 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1606 inferior_ptid.
1607
1608 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1609
1610 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1611 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1612 AT_FREEBSD_PS_STRINGS.
1613
1614 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
1615
1616 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1617 of debugfile path on Windows.
1618
1619 2020-07-08 John Baldwin <jhb@FreeBSD.org>
1620
1621 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1622 argument to 'data'.
1623
1624 2020-07-08 Tom Tromey <tromey@adacore.com>
1625
1626 * ada-lang.c (ada_exception_message_1): Use read_memory.
1627
1628 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1629
1630 PR python/22748
1631 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1632 special handling for inline frames.
1633 * findvar.c (value_of_register_lazy): Skip inline frames when
1634 creating lazy register values.
1635 * frame.c (frame_id_computed_p): Delete definition.
1636 * frame.h (frame_id_computed_p): Delete declaration.
1637
1638 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1639
1640 * NEWS: Mention additions to Python API.
1641 * python/py-arch.c (archpy_register_groups): New function.
1642 (arch_object_methods): Add 'register_groups' method.
1643 * python/py-registers.c (reggroup_iterator_object): New struct.
1644 (reggroup_object): New struct.
1645 (gdbpy_new_reggroup): New function.
1646 (gdbpy_reggroup_to_string): New function.
1647 (gdbpy_reggroup_name): New function.
1648 (gdbpy_reggroup_iter): New function.
1649 (gdbpy_reggroup_iter_next): New function.
1650 (gdbpy_new_reggroup_iterator): New function
1651 (gdbpy_initialize_registers): Register new types.
1652 (reggroup_iterator_object_type): Define new Python type.
1653 (gdbpy_reggroup_getset): New static global.
1654 (reggroup_object_type): Define new Python type.
1655 * python/python-internal.h
1656
1657 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1658
1659 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1660 * python/py-arch.c (archpy_registers): New function.
1661 (arch_object_methods): Add 'registers' method.
1662 * python/py-registers.c: New file.
1663 * python/python-internal.h
1664 (gdbpy_new_register_descriptor_iterator): Declare.
1665 (gdbpy_initialize_registers): Declare.
1666 * python/python.c (do_start_initialization): Call
1667 gdbpy_initialize_registers.
1668 * NEWS: Mention additions to the Python API.
1669
1670 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1671
1672 * NEWS: Mention new Python API method.
1673 * python/py-unwind.c (pending_framepy_architecture): New function.
1674 (pending_frame_object_methods): Add architecture method.
1675
1676 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1677
1678 * gdbarch.c: Regenerate.
1679 * gdbarch.h: Regenerate.
1680 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1681 (gdbarch_data): Use internal_error for the case where
1682 deprecated_set_gdbarch_data was originally needed.
1683 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1684 and use passed in obstack.
1685 (libunwind_frame_set_descr): Should no longer get back NULL from
1686 gdbarch_data.
1687 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1688 type.
1689 * user-regs.c (user_regs_init): Update parameters, and use passed
1690 in obstack.
1691 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1692 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1693
1694 2020-07-06 Tom de Vries <tdevries@suse.de>
1695
1696 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1697 End-Of-Sequence in lte_is_less_than.
1698 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1699 "gdb: Don't reorder line table entries too much when sorting".
1700
1701 2020-07-06 Tom de Vries <tdevries@suse.de>
1702
1703 PR tui/26205
1704 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1705
1706 2020-07-05 Tom de Vries <tdevries@suse.de>
1707
1708 PR build/26187
1709 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1710 std::uncaught_exceptions instead of deprecated
1711 std::uncaught_exception.
1712
1713 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1714
1715 * macroexp.h (macro_stringify): Return
1716 gdb::unique_xmalloc_ptr<char>.
1717 * macroexp.c (macro_stringify): Likewise.
1718 * macrotab.c (fixup_definition): Update.
1719
1720 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1721
1722 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1723 (lex_one_token): Update.
1724 * macroexp.c (struct macro_buffer) <release>: Return
1725 gdb::unique_xmalloc_ptr<char>.
1726 (macro_stringify): Update.
1727 (macro_expand): Update.
1728 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1729 * macroexp.h (macro_expand_next): Likewise.
1730
1731 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
1732
1733 * macroexp.h (macro_lookup_ftype): Remove.
1734 (macro_expand, macro_expand_once, macro_expand_next): Remove
1735 lookup function parameters, add scope parameter.
1736 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1737 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1738 * macroscope.h (standard_macro_lookup): Change parameter type
1739 to macro_scope.
1740 * macroscope.c (standard_macro_lookup): Likewise.
1741 * c-exp.y (lex_one_token): Update.
1742 * macrocmd.c (macro_expand_command): Likewise.
1743 (macro_expand_once_command): Likewise.
1744
1745 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1746
1747 * inf-loop.c (inferior_event_handler): Remove client_data param.
1748 * inf-loop.h (inferior_event_handler): Likewise.
1749 * infcmd.c (step_1): Adjust.
1750 * infrun.c (proceed): Adjust.
1751 (fetch_inferior_event): Remove client_data param.
1752 (infrun_async_inferior_event_handler): Adjust.
1753 * infrun.h (fetch_inferior_event): Remove `void *` param.
1754 * linux-nat.c (handle_target_event): Adjust.
1755 * record-btrace.c (record_btrace_handle_async_inferior_event):
1756 Adjust.
1757 * record-full.c (record_full_async_inferior_event_handler):
1758 Adjust.
1759 * remote.c (remote_async_inferior_event_handler): Adjust.
1760
1761 2020-07-01 Tom Tromey <tom@tromey.com>
1762
1763 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1764 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1765
1766 2020-07-01 Tom Tromey <tom@tromey.com>
1767
1768 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1769 tui_gen_win_info.
1770 (tui_win_info::make_window): Merge with
1771 tui_gen_win_info::make_window.
1772 (tui_win_info::make_visible): Move from tui_gen_win_info.
1773 * tui/tui-win.c (tui_win_info::max_width): Move from
1774 tui_gen_win_info.
1775 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1776 type.
1777 <window_factory>: Likewise.
1778 * tui/tui-layout.c (tui_win_info::resize): Move from
1779 tui_gen_win_info.
1780 (make_standard_window): Change return type.
1781 (get_locator_window, tui_get_window_by_name): Likewise.
1782 (tui_layout_window::apply): Remove a cast.
1783 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1784 (struct tui_win_info): Merge with tui_gen_win_info.
1785 (struct tui_gen_win_info): Remove.
1786
1787 2020-07-01 Tom Tromey <tom@tromey.com>
1788
1789 * tui/tui-stack.h (struct tui_locator_window): Derive from
1790 tui_win_info.
1791 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1792 <can_box>: New method.
1793
1794 2020-07-01 Tom Tromey <tom@tromey.com>
1795
1796 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1797
1798 2020-07-01 Tom Tromey <tom@tromey.com>
1799
1800 * tui/tui-regs.c (tui_data_window::display_registers_from)
1801 (tui_data_window::display_registers_from)
1802 (tui_data_window::first_data_item_displayed)
1803 (tui_data_window::delete_data_content_windows): Update.
1804 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1805 Remove.
1806 (tui_data_window::check_register_values): Update.
1807 (tui_data_item_window::rerender): Add parameters. Update.
1808 (tui_data_item_window::refresh_window): Remove.
1809 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1810 virtual.
1811 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1812 tui_gen_win_info.
1813 <refresh_window, max_height, min_height>: Remove.
1814 <rerender>: Add parameters.
1815 <x, y, visible>: New members.
1816 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1817 <m_item_width>: New member.
1818
1819 2020-07-01 Tom Tromey <tom@tromey.com>
1820
1821 * tui/tui-regs.c (tui_data_window::show_register_group)
1822 (tui_data_window::check_register_values): Update.
1823 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1824 from item_no.
1825
1826 2020-07-01 Tom Tromey <tom@tromey.com>
1827
1828 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1829 useless "if".
1830
1831 2020-07-01 Tom Tromey <tom@tromey.com>
1832
1833 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1834 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1835
1836 2020-07-01 Tom Tromey <tom@tromey.com>
1837
1838 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1839 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1840 (struct tui_line_or_address): Move from tui-data.h.
1841 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1842 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1843 (tui_cmd_window, tui_source_window_base, tui_source_window)
1844 (tui_disasm_window): Don't declare.
1845 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1846 to tui-winsource.h.
1847 (SINGLE_KEY): Move to tui-stack.c.
1848
1849 2020-07-01 Tom Tromey <tom@tromey.com>
1850
1851 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1852 std::string.
1853 * tui/tui-regs.c (class tab_expansion_file): New.
1854 (tab_expansion_file::write): New method.
1855 (tui_register_format): Change return type. Use
1856 tab_expansion_file.
1857 (tui_get_register, tui_data_window::display_registers_from)
1858 (tui_data_item_window::rerender): Update.
1859 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1860 * tui/tui-io.c (tui_expand_tabs): Remove.
1861
1862 2020-07-01 Tom Tromey <tom@tromey.com>
1863
1864 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1865
1866 2020-07-01 Fangrui Song <maskray@google.com>
1867
1868 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1869
1870 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1871
1872 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1873 forms for DW_AT_associated and DW_AT_allocated attributes,
1874 which is already checked in function attr_to_dynamic_prop.
1875
1876 2020-06-30 Tom Tromey <tromey@adacore.com>
1877
1878 * dwarf2/read.c (quirk_rust_enum): Correctly call
1879 alloc_rust_variant for default-less enum.
1880
1881 2020-06-30 Tom Tromey <tromey@adacore.com>
1882
1883 PR build/26183:
1884 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1885 gdb::to_string.
1886
1887 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
1888
1889 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1890 * gdbarch.h: Re-generate.
1891
1892 2020-06-28 Tom Tromey <tom@tromey.com>
1893
1894 * command.h (cmd_types): Remove.
1895 (cmd_type): Don't declare.
1896 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1897 typedef.
1898 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1899 * cli/cli-decode.c (cmd_type): Remove.
1900
1901 2020-06-27 Pedro Alves <palves@redhat.com>
1902
1903 * fork-child.c (prefork_hook): Adjust.
1904 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1905 Delete.
1906 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1907 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1908 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1909 Remove declarations.
1910 (struct inferior) <set_tty, tty>: New methods.
1911 (struct inferior) <terminal>: Rename to ...
1912 (struct inferior) <m_terminal>: ... this and make private.
1913 * main.c (captured_main_1): Adjust.
1914 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1915 (mi_cmd_inferior_tty_show): Adjust.
1916 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1917 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1918
1919 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
1920
1921 * configure.ac: Add --enable-libctf: handle --disable-static
1922 properly.
1923 * acinclude.m4: sinclude ../config/enable.m4.
1924 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1925 (LIBCTF): Substitute in.
1926 (CTF_DEPS): New, likewise.
1927 (CLIBS): libctf needs symbols from libbfd: move earlier.
1928 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1929 flags.
1930 * ctfread.c: Surround in ENABLE_LIBCTF.
1931 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1932 * configure: Regenerate.
1933 * config.in: Likewise.
1934
1935 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1936
1937 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1938
1939 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1940
1941 * inferior.h (struct inferior) <terminal>: Change type to
1942 gdb::unique_xmalloc_ptr<char>.
1943 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1944 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1945 field, adjust to unique pointer.
1946 (get_inferior_io_terminal): Adjust to unique pointer.
1947
1948 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1949
1950 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1951 registers, not just the known core set of registers.
1952
1953 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1954
1955 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1956 fflags, frm, and fcsr registers.
1957 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1958 restore groups.
1959 (riscv_tdesc_unknown_reg): New function.
1960 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1961 tdesc_use_registers.
1962 * riscv-tdep.h (struct gdbarch_tdep): Add
1963 unknown_csrs_first_regnum, unknown_csrs_count,
1964 duplicate_fflags_regnum, duplicate_frm_regnum, and
1965 duplicate_fcsr_regnum fields.
1966
1967 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1968
1969 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1970 callback, use the callback (when not null) to help number unknown
1971 registers.
1972 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1973 (tdesc_use_registers): Add extra parameter to declaration.
1974
1975 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1976
1977 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1978 in the file.
1979 (class riscv_pending_register_alias): Likewise.
1980 (riscv_register_feature::register_info): Change 'required_p' field
1981 to 'required', and change its type. Add 'check' member function.
1982 (riscv_register_feature::register_info::check): Define new member
1983 function.
1984 (riscv_xreg_feature): Change initialisation of 'required' field.
1985 (riscv_freg_feature): Likewise.
1986 (riscv_virtual_feature): Likewise.
1987 (riscv_csr_feature): Likewise.
1988 (riscv_check_tdesc_feature): Take extra parameter, the csr
1989 tdesc_feature, rewrite the function to use the new
1990 riscv_register_feature::register_info::check function.
1991 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1992
1993 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1994
1995 * features/Makefile: Remove all references to the deleted files
1996 below.
1997 * features/riscv/32bit-csr.c: Deleted.
1998 * features/riscv/32bit-csr.xml: Deleted.
1999 * features/riscv/64bit-csr.c: Deleted.
2000 * features/riscv/64bit-csr.xml: Deleted.
2001 * features/riscv/rebuild-csr-xml.sh: Deleted.
2002
2003 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2004
2005 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
2006 whitespace error for declaration of names member variable.
2007 (struct riscv_register_feature): Add new prefer_first_name member
2008 variable, and fix whitespace error in declaration of registers.
2009 (riscv_xreg_feature): Initialize prefer_first_name field.
2010 (riscv_freg_feature): Likewise.
2011 (riscv_virtual_feature): Likewise.
2012 (riscv_csr_feature): Likewise.
2013 (riscv_register_name): Expand on comments. Remove register name
2014 modifications for CSR and virtual registers.
2015
2016 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2017
2018 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
2019 errors.
2020
2021 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2022
2023 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
2024 riscv-opc.h.
2025 (class riscv_pending_register_alias): New class.
2026 (riscv_check_tdesc_feature): Take vector of pending aliases and
2027 populate it as appropriate.
2028 (riscv_setup_register_aliases): Delete.
2029 (riscv_gdbarch_init): Create vector of pending aliases and pass it
2030 to riscv_check_tdesc_feature in all cases. Use the vector to
2031 create the register aliases.
2032
2033 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2034
2035 * sol2-tdep.c (sol2_static_transform_name): Remove.
2036 (sol2_init_abi): Don't register it.
2037 * gdbarch.sh (static_transform_name): Remove.
2038 * gdbarch.c, gdbarch.h: Regenerate.
2039
2040 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
2041 gdbarch_static_transform_name.
2042 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
2043 * stabsread.c (define_symbol) <'X'>: Remove.
2044 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
2045 handling.
2046 <'V'>: Likewise.
2047 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
2048 <'S'>: Remove call to gdbarch_static_transform_name.
2049
2050 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2051
2052 * procfs.c (procfs_pre_trace): New function.
2053 (procfs_target::create_inferior): Pass it to fork_inferior.
2054
2055 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2056
2057 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
2058 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
2059 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
2060 sol2-tdep.o, sparc-sol2-tdep.o.
2061 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
2062 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
2063 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
2064 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
2065
2066 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2067
2068 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
2069 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
2070 Call sol2_init_abi.
2071 Remove calls to set_gdbarch_skip_solib_resolver,
2072 set_gdbarch_core_pid_to_str.
2073 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
2074 (i386_sol2_static_transform_name): Remove.
2075 (i386_sol2_init_abi): Call sol2_init_abi.
2076 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2077 set_gdbarch_static_transform_name,
2078 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2079 Use sol2_sigtramp_p.
2080 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
2081 (sol2_sigtramp_p): New function.
2082 (sol2_static_transform_name): New function.
2083 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
2084 (sol2_init_abi): New function.
2085 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
2086 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
2087 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
2088 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
2089 (sparc_sol2_static_transform_name): Remove.
2090 (sparc32_sol2_init_abi): Call sol2_init_abi.
2091 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2092 set_gdbarch_static_transform_name,
2093 set_gdbarch_skip_solib_resolver,
2094 set_gdbarch_core_pid_to_str.
2095 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
2096 (sparc_sol2_static_transform_name): Remove
2097 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
2098 call sol2_sigtramp_p.
2099 (sparc64_sol2_init_abi): Call sol2_init_abi.
2100 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2101 set_gdbarch_static_transform_name,
2102 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2103
2104 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2105
2106 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
2107 * exec.c (validate_exec_file): If from_tty, set both
2108 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
2109 * symfile.c (symbol_file_add_with_addrs): if always_confirm
2110 and from_tty, unconditionally ask a confirmation.
2111
2112 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2113
2114 * target-descriptions.c (tdesc_architecture_name): Protect against
2115 NULL pointer dereference.
2116 (maint_print_xml_tdesc_cmd): New function.
2117 (_initialize_target_descriptions): Register new 'maint print
2118 xml-tdesc' command and give it the filename completer.
2119 * NEWS: Mention new 'maint print xml-tdesc' command.
2120
2121 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2122
2123 * target-descriptions.c (class tdesc_compatible_info): New class.
2124 (struct target_desc): Change type of compatible vector.
2125 (tdesc_compatible_p): Update for change in type of
2126 target_desc::compatible.
2127 (tdesc_compatible_info_list): New function.
2128 (tdesc_compatible_info_arch_name): New function.
2129 (tdesc_add_compatible): Update for change in type of
2130 target_desc::compatible.
2131 (print_c_tdesc::visit_pre): Likewise.
2132
2133 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2134
2135 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
2136 whitespace to underscore.
2137 (maint_print_c_tdesc_cmd): Use fake filename for target
2138 descriptions that came from the target.
2139 (_initialize_target_descriptions): Add filename command completion
2140 for 'maint print c-tdesc'.
2141
2142 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2143
2144 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
2145 lines.
2146
2147 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2148
2149 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
2150 lines.
2151 (dwarf2_find_location_expression): Likewise.
2152 (call_site_parameter_matches): Likewise.
2153 (dwarf2_compile_expr_to_ax): Likewise.
2154 (disassemble_dwarf_expression): Likewise.
2155 (loclist_describe_location): Likewise.
2156
2157 2020-06-23 Pedro Alves <palves@redhat.com>
2158
2159 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
2160 progspace-and-thread.h. Include scoped-mock-context.h instead.
2161 (register_to_value_test): Use scoped_mock_context.
2162 * regcache.c: Include "scoped-mock-context.h".
2163 (cooked_read_test): Don't error out if a target is already pushed.
2164 Use scoped_mock_context. Adjust.
2165 * scoped-mock-context.h: New file.
2166
2167 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2168
2169 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
2170 initializer.
2171 (ada_language::is_string_type_p): New member function.
2172 * c-lang.c (c_language_data): Delete la_is_string_type_p
2173 initializer.
2174 (cplus_language_data): Likewise.
2175 (asm_language_data): Likewise.
2176 (minimal_language_data): Likewise.
2177 * d-lang.c (d_language_data): Likewise.
2178 * f-lang.c (f_is_string_type_p): Delete function, implementation
2179 moved to f_language::is_string_type_p.
2180 (f_language_data): Delete la_is_string_type_p initializer.
2181 (f_language::is_string_type_p): New member function,
2182 implementation from f_is_string_type_p.
2183 * go-lang.c (go_is_string_type_p): Delete function, implementation
2184 moved to go_language::is_string_type_p.
2185 (go_language_data): Delete la_is_string_type_p initializer.
2186 (go_language::is_string_type_p): New member function,
2187 implementation from go_is_string_type_p.
2188 * language.c (language_defn::is_string_type_p): Define new member
2189 function.
2190 (default_is_string_type_p): Make static, add comment copied from
2191 header file.
2192 (unknown_language_data): Delete la_is_string_type_p initializer.
2193 (unknown_language::is_string_type_p): New member function.
2194 (auto_language_data): Delete la_is_string_type_p initializer.
2195 (auto_language::is_string_type_p): New member function.
2196 * language.h (language_data): Delete la_is_string_type_p field.
2197 (language_defn::is_string_type_p): Declare new function.
2198 (default_is_string_type_p): Delete desclaration, move comment to
2199 definition.
2200 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
2201 moved to m2_language::is_string_type_p.
2202 (m2_language_data): Delete la_is_string_type_p initializer.
2203 (m2_language::is_string_type_p): New member function,
2204 implementation from m2_is_string_type_p.
2205 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
2206 initializer.
2207 * opencl-lang.c (opencl_language_data): Likewise.
2208 * p-lang.c (pascal_is_string_type_p): Delete function,
2209 implementation moved to pascal_language::is_string_type_p.
2210 (pascal_language_data): Delete la_is_string_type_p initializer.
2211 (pascal_language::is_string_type_p): New member function,
2212 implementation from pascal_is_string_type_p.
2213 * rust-lang.c (rust_is_string_type_p): Delete function,
2214 implementation moved to rust_language::is_string_type_p.
2215 (rust_language_data): Delete la_is_string_type_p initializer.
2216 (rust_language::is_string_type_p): New member function,
2217 implementation from rust_is_string_type_p.
2218 * valprint.c (val_print_scalar_or_string_type_p): Update call to
2219 is_string_type_p.
2220
2221 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2222
2223 * ada-lang.c (ada_language_data): Delete la_print_typedef
2224 initializer.
2225 (ada_language::print_typedef): New member function.
2226 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
2227 (cplus_language_data): Likewise.
2228 (asm_language_data): Likewise.
2229 (minimal_language_data): Likewise.
2230 * d-lang.c (d_language_data): Likewise.
2231 * f-lang.c (f_language_data): Likewise.
2232 (f_language::print_typedef): New member function.
2233 * go-lang.c (go_language_data): Delete la_print_typedef
2234 initializer.
2235 * language.c (language_defn::print_typedef): Define member
2236 function.
2237 (unknown_language_data): Delete la_print_typedef initializer.
2238 (unknown_language::print_typedef): New member function.
2239 (auto_language_data): Delete la_print_typedef initializer.
2240 (auto_language::print_typedef): New member function.
2241 * language.h (language_data): Delete la_print_typedef field.
2242 (language_defn::print_typedef): Declare new member function.
2243 (LA_PRINT_TYPEDEF): Update call to print_typedef.
2244 (default_print_typedef): Delete declaration.
2245 * m2-lang.c (m2_language_data): Delete la_print_typedef
2246 initializer.
2247 (m2_language::print_typedef): New member function.
2248 * objc-lang.c (objc_language_data): Delete la_print_typedef
2249 initializer.
2250 * opencl-lang.c (opencl_language_data): Likewise.
2251 * p-lang.c (pascal_language_data): Likewise.
2252 (pascal_language::print_typedef): New member function.
2253 * rust-lang.c (rust_print_typedef): Delete function,
2254 implementation moved to rust_language::print_typedef.
2255 (rust_language): Delete la_print_typedef initializer.
2256 (rust_language::print_typedef): New member function,
2257 implementation from rust_print_typedef.
2258 * typeprint.c (default_print_typedef): Delete.
2259
2260 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2261
2262 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2263 (ada_language::printstr): New member function.
2264 * c-lang.c (c_language_data): Delete la_printstr initializer.
2265 (cplus_language_data): Likewise.
2266 (asm_language_data): Likewise.
2267 (minimal_language_data): Likewise.
2268 * d-lang.c (d_language_data): Likewise.
2269 * f-lang.c (f_printstr): Rename to f_language::printstr.
2270 (f_language_data): Delete la_printstr initializer.
2271 (f_language::printstr): New member function, implementation from
2272 f_printstr.
2273 * go-lang.c (go_language_data): Delete la_printstr initializer.
2274 * language.c (language_defn::printstr): Define new member
2275 function.
2276 (unk_lang_printstr): Delete.
2277 (unknown_language_data): Delete la_printstr initializer.
2278 (unknown_language::printstr): New member function.
2279 (auto_language_data): Delete la_printstr initializer.
2280 (auto_language::printstr): New member function.
2281 * language.h (language_data): Delete la_printstr field.
2282 (language_defn::printstr): Declare new member function.
2283 (LA_PRINT_STRING): Update call to printstr.
2284 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2285 (m2_language_data): Delete la_printstr initializer.
2286 (m2_language::printstr): New member function, implementation from
2287 m2_printstr.
2288 * objc-lang.c (objc_language_data): Delete la_printstr
2289 initializer.
2290 * opencl-lang.c (opencl_language_data): Likewise.
2291 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2292 (pascal_language_data): Delete la_printstr initializer.
2293 (pascal_language::printstr): New member function, implementation
2294 from pascal_printstr.
2295 * p-lang.h (pascal_printstr): Delete declaration.
2296 * rust-lang.c (rust_printstr): Update header comment.
2297 (rust_language_data): Delete la_printstr initializer.
2298 (rust_language::printstr): New member function.
2299
2300 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2301
2302 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2303 (ada_language::printchar): New member function.
2304 * c-lang.c (c_language_data): Delete la_printchar initializer.
2305 (cplus_language_data): Likewise.
2306 (asm_language_data): Likewise.
2307 (minimal_language_data): Likewise.
2308 * d-lang.c (d_language_data): Likewise.
2309 * f-lang.c (f_printchar): Rename to f_language::printchar.
2310 (f_language_data): Delete la_printchar initializer.
2311 (f_language::printchar): New member function, implementation from
2312 f_printchar.
2313 * go-lang.c (go_language_data): Delete la_printchar initializer.
2314 * language.c (unk_lang_printchar): Delete.
2315 (language_defn::printchar): Define new member function.
2316 (unknown_language_data): Delete la_printchar initializer.
2317 (unknown_language::printchar): New member function.
2318 (auto_language_data): Delete la_printchar initializer.
2319 (auto_language::printchar): New member function.
2320 * language.h (language_data): Delete la_printchar field.
2321 (language_defn::printchar): Declare new member function.
2322 (LA_PRINT_CHAR): Update call to printchar.
2323 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2324 (m2_language::printchar): New member function.
2325 * objc-lang.c (objc_language_data): Delete la_printchar
2326 initializer.
2327 * opencl-lang.c (opencl_language_data): Likewise.
2328 * p-lang.c (pascal_language_data): Delete la_printchar
2329 initializer.
2330 (pascal_language::printchar): New member function.
2331 * rust-lang.c (rust_printchar): Rename to
2332 rust_language::printchar.
2333 (rust_language_data): Delete la_printchar initializer.
2334 (rust_language::printchar): New member function, implementation
2335 from rust_printchar.
2336
2337 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2338
2339 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2340 (ada_language_data): Delete la_emitchar initializer.
2341 (ada_language::emitchar): New member function, implementation from
2342 emit_char.
2343 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2344 (cplus_language_data): Likewise.
2345 (asm_language_data): Likewise.
2346 (minimal_language_data): Likewise.
2347 * d-lang.c (d_language_data): Likewise.
2348 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2349 (f_language_data): Delete la_emitchar initializer.
2350 (f_language::emitchar): New member function, implementation from
2351 f_emit_char.
2352 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2353 * language.c (unk_lang_emit_char): Delete.
2354 (language_defn::emitchar): New member function definition.
2355 (unknown_language_data): Delete la_emitchar initializer.
2356 (unknown_language::emitchar): New member function.
2357 (auto_language_data): Delete la_emitchar initializer.
2358 (auto_language::emitchar): New member function.
2359 * language.h (language_data): Delete la_emitchar field.
2360 (language_defn::emitchar): New member field declaration.
2361 (LA_EMIT_CHAR): Update call to emitchar.
2362 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2363 (m2_language_data): Delete la_emitchar initializer.
2364 (m2_language::emitchar): New member function, implementation from
2365 m2_emit_char.
2366 * objc-lang.c (objc_language_data): Delete la_emitchar
2367 initializer.
2368 * opencl-lang.c (opencl_language_data): Likewise.
2369 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2370 (pascal_language_data): Delete la_emitchar initializer.
2371 (pascal_language::emitchar): New member function, implementation
2372 from pascal_emit_char.
2373 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2374 (rust_language_data): Delete la_emitchar initializer.
2375 (rust_language::emitchar): New member function, implementation
2376 from rust_emitchar.
2377
2378 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2379
2380 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2381 (ada_language_data): Delete la_post_parser initializer.
2382 (ada_language::post_parser): New member function.
2383 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2384 (cplus_language_data): Likewise.
2385 (asm_language_data): Likewise.
2386 (minimal_language_data): Likewise.
2387 * d-lang.c (d_language_data): Likewise.
2388 * f-lang.c (f_language_data): Likewise.
2389 * go-lang.c (go_language_data): Likewise.
2390 * language.c (unknown_language_data): Likewise.
2391 (auto_language_data): Likewise.
2392 * language.h (language_data): Delete la_post_parser field.
2393 (language_defn::post_parser): New member function.
2394 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2395 * objc-lang.c (objc_language_data): Likewise.
2396 * opencl-lang.c (opencl_language_data): Likewise.
2397 * p-lang.c (pascal_language_data): Likewise.
2398 * parse.c (parse_exp_in_context): Update call to post_parser.
2399 (null_post_parser): Delete definition.
2400 * parser-defs.h (null_post_parser): Delete declaration.
2401 * rust-lang.c (rust_language_data): Delete la_post_parser
2402 initializer.
2403
2404 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2405
2406 * ada-lang.c (parse): Rename to ada_language::parser.
2407 (ada_language_data): Delete la_parser initializer.
2408 (ada_language::parser): New member function, implementation from
2409 parse.
2410 * c-lang.c (c_language_data): Delete la_parser initializer.
2411 (cplus_language_data): Likewise.
2412 (asm_language_data): Likewise.
2413 (minimal_language_data): Likewise.
2414 * d-lang.c (d_language_data): Likewise.
2415 (d_language::parser): New member function.
2416 * f-lang.c (f_language_data): Delete la_parser initializer.
2417 (f_language::parser): New member function.
2418 * go-lang.c (go_language_data): Delete la_parser initializer.
2419 (go_language::parser): New member function.
2420 * language.c (unk_lang_parser): Delete.
2421 (language_defn::parser): Define new member function.
2422 (unknown_language_data): Delete la_parser initializer.
2423 (unknown_language::parser): New member function.
2424 (auto_language_data): Delete la_parser initializer.
2425 (auto_language::parser): New member function.
2426 * language.h (language_data): Delete la_parser field.
2427 (language_defn::parser): Declare new member function.
2428 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2429 (m2_language::parser): New member function.
2430 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2431 * opencl-lang.c (opencl_language_data): Likewise.
2432 * p-lang.c (pascal_language_data): Likewise.
2433 (pascal_language::parser): New member function.
2434 * parse.c (parse_exp_in_context): Update call to parser.
2435 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2436 (rust_language::parser): New member function.
2437
2438 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2439
2440 * top.c (print_gdb_configuration): Print --with-python-libdir
2441 configuration value.
2442
2443 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2444
2445 * NEWS: Mention change to the alias command.
2446
2447 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2448
2449 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2450 (alias_command_completer)
2451 (make_alias_options_def_group): New functions.
2452 (alias_opts, alias_option_defs): New struct and array.
2453 (alias_usage_error): Update usage.
2454 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2455 Use option framework.
2456 (_initialize_cli_cmds): Update alias command help.
2457 Update aliases command help.
2458 (show_user):
2459 Add NULL for new default_args lookup_cmd argument.
2460 (valid_command_p): Rename to validate_aliased_command.
2461 Add NULL for new default_args lookup_cmd argument. Verify that the
2462 aliased_command has no default args.
2463 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2464 (lookup_cmd_1, lookup_cmd): New argument default_args.
2465 (add_alias_cmd):
2466 Add NULL for new default_args lookup_cmd argument.
2467 (print_help_for_command): Show default args under the layout
2468 alias some_alias = some_aliased_cmd some_alias_default_arg.
2469 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2470 xfree default_args in destructor.
2471 * cli/cli-script.c (process_next_line, do_define_command):
2472 Add NULL for new default_args lookup_cmd argument.
2473 * command.h: Declare new default_args argument in lookup_cmd
2474 and lookup_cmd_1.
2475 * completer.c (complete_line_internal_1):
2476 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2477 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2478 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2479 Likewise.
2480 * infcmd.c (_initialize_infcmd): Likewise.
2481 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2482 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2483 * python/py-param.c (add_setshow_generic): Likewise.
2484 * remote.c (_initialize_remote): Likewise.
2485 * top.c (execute_command): Prepend default_args if command has some.
2486 (set_verbose):
2487 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2488 * tracepoint.c (validate_actionline, encode_actions_1):
2489 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2490
2491 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2492
2493 * jit.c (jit_read_descriptor): Use bool as the return type.
2494 (jit_breakpoint_re_set_internal): Use bool as the return type.
2495 Invert the return value logic; return true if the jit breakpoint
2496 has been successfully initialized.
2497 (jit_inferior_init): Update the call to
2498 jit_breakpoint_re_set_internal.
2499
2500 2020-06-22 Pedro Alves <palves@redhat.com>
2501
2502 PR gdb/25939
2503 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2504 Use the current inferior instead. Don't return
2505 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2506 wait again.
2507 * sol-thread.c (sol_thread_target::wait): Don't reference
2508 inferior_ptid.
2509 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2510 (sol_update_thread_list_callback): Use the current inferior's pid
2511 instead of inferior_ptid.
2512
2513 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2514
2515 * procfs.c: Cleanup many comments.
2516
2517 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2518 (AFTER_WATCHFLAG): Replace by value.
2519
2520 (MAIN_PROC_NAME_FORMAT): Inline ...
2521 (create_procinfo): ... here.
2522
2523 (procfs_debug_inferior): Remove SYS_exec handling.
2524 (syscall_is_exec): Likewise.
2525 (procfs_set_exec_trap): Likewise.
2526
2527 (syscall_is_lwp_exit): Inline in callers.
2528 (syscall_is_exit): Likewise.
2529 (syscall_is_exec): Likewise.
2530 (syscall_is_lwp_create): Likewise.
2531
2532 (invalidate_cache): Remove #if 0 code.
2533
2534 (make_signal_thread_runnable): Remove.
2535 (procfs_target::resume): Remove #if 0 code.
2536
2537 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2538
2539 PR gdb/25939
2540 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2541 call ...
2542 (procfs_target::create_inferior): ... here.
2543
2544 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2545
2546 * exec.c (validate_exec_file): Ensure the build-id is up to
2547 date by calling reopen_exec_file (that checks file timestamp
2548 to decide to re-read the file).
2549
2550 2020-06-18 Pedro Alves <palves@redhat.com>
2551
2552 PR gdb/25412
2553 * gdbthread.h (delete_thread, delete_thread_silent)
2554 (find_thread_ptid): Update comments.
2555 * thread.c (current_thread_): New global.
2556 (is_current_thread): Move higher, and reimplement.
2557 (inferior_thread): Reimplement.
2558 (set_thread_exited): Use bool. Add assertions.
2559 (add_thread_silent): Simplify thread-reuse handling by always
2560 calling delete_thread.
2561 (delete_thread): Remove intro comment.
2562 (find_thread_ptid): Skip exited threads.
2563 (switch_to_thread_no_regs): Write to current_thread_.
2564 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2565 INFERIOR_PTID. Clear current_thread_.
2566
2567 2020-06-18 Pedro Alves <palves@redhat.com>
2568
2569 * aix-thread.c (pd_update): Use switch_to_thread.
2570
2571 2020-06-18 Pedro Alves <palves@redhat.com>
2572
2573 * ravenscar-thread.c (ravenscar_thread_target): Update.
2574 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2575 (ravenscar_thread_target::add_active_thread): ... this. Don't
2576 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2577 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2578
2579 2020-06-18 Pedro Alves <palves@redhat.com>
2580
2581 * nat/windows-nat.c (current_windows_thread): Remove.
2582 * nat/windows-nat.h (current_windows_thread): Remove.
2583 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2584 Adjust.
2585 (display_selectors): Adjust to fetch the current
2586 windows_thread_info based on inferior_ptid.
2587 (fake_create_process): No longer write to current_windows_thread.
2588 (windows_nat_target::get_windows_debug_event):
2589 Don't set inferior_ptid or current_windows_thread.
2590 (windows_nat_target::wait): Adjust to not rely on
2591 current_windows_thread.
2592 (do_initial_windows_stuff): Now a method of windows_nat_target.
2593 Switch to the last_ptid thread.
2594 (windows_nat_target::attach): Adjust.
2595 (windows_nat_target::detach): Use switch_to_no_thread instead of
2596 writing to inferior_ptid directly.
2597 (windows_nat_target::create_inferior): Adjust.
2598
2599 2020-06-18 Pedro Alves <palves@redhat.com>
2600
2601 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2602
2603 2020-06-18 Pedro Alves <palves@redhat.com>
2604
2605 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2606 after creating it, instead of writing to inferior_ptid. Don't
2607 write to inferior_ptid.
2608
2609 2020-06-18 Pedro Alves <palves@redhat.com>
2610
2611 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2612
2613 2020-06-18 Pedro Alves <palves@redhat.com>
2614
2615 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2616 it, instead of writing to inferior_ptid.
2617
2618 2020-06-18 Pedro Alves <palves@redhat.com>
2619
2620 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2621 to inferior_ptid.
2622
2623 2020-06-18 Pedro Alves <palves@redhat.com>
2624
2625 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2626 instead of writing to inferior_ptid directly.
2627
2628 2020-06-18 Pedro Alves <palves@redhat.com>
2629
2630 * corelow.c (core_target::close): Use switch_to_no_thread instead
2631 of writing to inferior_ptid directly.
2632 (add_to_thread_list, core_target_open): Use switch_to_thread
2633 instead of writing to inferior_ptid directly.
2634
2635 2020-06-18 Pedro Alves <palves@redhat.com>
2636
2637 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2638 inferior_ptid.
2639 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2640 inferior_ptid.
2641 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2642 inferior_ptid directly.
2643 (darwin_nat_target::init_thread_list): Switch to thread, instead
2644 of writing to inferior_ptid.
2645 (darwin_nat_target::attach): Don't write to inferior_ptid.
2646 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2647
2648 2020-06-18 Pedro Alves <palves@redhat.com>
2649
2650 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2651 thread.
2652 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2653 Instead use switch_to_thread.
2654 (gnu_nat_target::detach): Use switch_to_no_thread
2655 instead of writing to inferior_ptid directly. Used passed-in
2656 inferior instead of looking up the inferior by pid.
2657
2658 2020-06-18 Pedro Alves <palves@redhat.com>
2659
2660 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2661 inferior_ptid.
2662
2663 2020-06-18 Pedro Alves <palves@redhat.com>
2664
2665 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2666 inferior_ptid.
2667 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2668 thread.
2669 (nto_procfs_target::detach): Avoid referencing
2670 inferior_ptid. Use switch_to_no_thread instead of writing to
2671 inferior_ptid directly.
2672 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2673 instead of writing to inferior_ptid directly.
2674 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2675 to thread.
2676
2677 2020-06-18 Pedro Alves <palves@redhat.com>
2678
2679 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2680 after creating it, instead of writing to inferior_ptid.
2681 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2682 to inferior_ptid directly.
2683 (gdbsim_target::wait): Don't write to inferior_ptid.
2684
2685 2020-06-18 Pedro Alves <palves@redhat.com>
2686
2687 * remote.c (remote_target::remote_notice_new_inferior): Use
2688 switch_to_thread instead of writing to inferior_ptid directly.
2689 (remote_target::add_current_inferior_and_thread): Use
2690 switch_to_no_thread instead of writing to inferior_ptid directly.
2691 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2692 and switch_to_thread instead of using set_current_inferior or
2693 writing to inferior_ptid directly.
2694
2695 2020-06-18 Pedro Alves <palves@redhat.com>
2696
2697 * tracectf.c (ctf_target_open): Switch to added thread instead of
2698 writing to inferior_ptid directly.
2699 (ctf_target::close): Use switch_to_no_thread instead of writing to
2700 inferior_ptid directly.
2701
2702 2020-06-18 Pedro Alves <palves@redhat.com>
2703
2704 * tracefile-tfile.c (tfile_target_open): Don't write to
2705 inferior_ptid directly, instead switch to added thread.
2706 (tfile_target::close): Use switch_to_no_thread instead of writing
2707 to inferior_ptid directly.
2708
2709 2020-06-18 Pedro Alves <palves@redhat.com>
2710
2711 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2712 (procfs_target::detach): Use switch_to_no_thread
2713 instead of writing to inferior_ptid directly.
2714 (do_attach): Change return type to void. Switch to the added
2715 thread.
2716 (procfs_target::create_inferior): Switch to the added thread.
2717 (procfs_do_thread_registers): Don't write to inferior_ptid.
2718
2719 2020-06-18 Pedro Alves <palves@redhat.com>
2720
2721 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2722 of writing to inferior_ptid.
2723 (scoped_restore_exited_inferior): Delete.
2724 (handle_vfork_child_exec_or_exit): Simplify using
2725 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2726 instead of writing to inferior_ptid.
2727 (THREAD_STOPPED_BY): Delete.
2728 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2729 (thread_stopped_by_hw_breakpoint): Delete.
2730 (save_waitstatus): Use
2731 scoped_restore_current_thread+switch_to_thread, and call
2732 target_stopped_by_watchpoint instead of
2733 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2734 instead of thread_stopped_by_sw_breakpoint, and
2735 target_stopped_by_hw_breakpoint instead of
2736 thread_stopped_by_hw_breakpoint.
2737 (handle_inferior_event)
2738 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2739 inferior_ptid directly, nor
2740 set_current_inferior/set_current_program_space. Use
2741 switch_to_thread / switch_to_inferior_no_thread instead.
2742
2743 2020-06-18 Pedro Alves <palves@redhat.com>
2744
2745 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2746 instead of writing to inferior_ptid.
2747
2748 2020-06-18 Pedro Alves <palves@redhat.com>
2749
2750 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2751 added thread.
2752 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2753 to the added thread.
2754 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2755 instead of writing to inferior_ptid.
2756
2757 2020-06-18 Pedro Alves <palves@redhat.com>
2758
2759 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2760 (register_to_value_test): Mock a program_space too. Heap-allocate
2761 the address space. Don't write to inferior_ptid. Use
2762 switch_to_thread instead.
2763
2764 2020-06-18 Pedro Alves <palves@redhat.com>
2765
2766 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2767 Delete.
2768 (find_signalled_thread()): New, factored out from
2769 linux_make_corefile_notes and adjusted to handle exited threads.
2770 (linux_make_corefile_notes): Adjust to use the new
2771 find_signalled_thread.
2772
2773 2020-06-18 Pedro Alves <palves@redhat.com>
2774
2775 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2776 of saving/restoring inferior_ptid.
2777
2778 2020-06-17 Tom Tromey <tom@tromey.com>
2779
2780 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2781 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2782 declare.
2783 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2784
2785 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
2786
2787 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2788 of partial symtabs.
2789
2790 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2791
2792 * regformats/reg-arm.dat: Remove.
2793 * regformats/reg-bfin.dat: Remove.
2794 * regformats/reg-cris.dat: Remove.
2795 * regformats/reg-crisv32.dat: Remove.
2796 * regformats/reg-m32r.dat: Remove.
2797 * regformats/reg-tilegx.dat: Remove.
2798 * regformats/reg-tilegx32.dat: Remove.
2799
2800 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2801
2802 * features/Makefile (WHICH): Remove arm files.
2803 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2804 * regformats/arm/arm-with-neon.dat: Remove.
2805 * regformats/arm/arm-with-vfpv2.dat: Remove.
2806 * regformats/arm/arm-with-vfpv3.dat: Remove.
2807
2808 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2809
2810 * features/Makefile (XMLTOC): Remove rx.xml.
2811
2812 2020-06-17 Pedro Alves <palves@redhat.com>
2813
2814 * gdbthread.h (thread_control_state) <trap_expected> Update
2815 comments.
2816
2817 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2818
2819 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2820 ada_language::lookup_symbol_nonlocal.
2821 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2822 (ada_language::lookup_symbol_nonlocal): New member function,
2823 implementation from ada_lookup_symbol_nonlocal.
2824 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2825 initializer.
2826 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2827 initializer.
2828 (cplus_language::lookup_symbol_nonlocal): New member function.
2829 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2830 (minimal_language_data) Likewise.
2831 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2832 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2833 initializer.
2834 (d_language::lookup_symbol_nonlocal): New member function.
2835 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2836 initializer.
2837 (f_language::lookup_symbol_nonlocal): New member function.
2838 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2839 initializer.
2840 * language.c (unknown_language_data): Likewise.
2841 (auto_language_data): Likewise.
2842 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2843 field.
2844 (language_defn::lookup_symbol_nonlocal): New member function.
2845 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2846 initializer.
2847 * objc-lang.c (objc_language_data): Likewise.
2848 * opencl-lang.c (opencl_language_data): Likewise.
2849 * p-lang.c (pascal_language_data): Likewise.
2850 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2851 rust_language::lookup_symbol_nonlocal.
2852 (rust_language_data): Delete la_lookup_symbol_nonlocal
2853 initializer.
2854 (rust_language::lookup_symbol_nonlocal): New member function,
2855 implementation from rust_lookup_symbol_nonlocal.
2856 * symtab.c (lookup_symbol_aux): Update call to
2857 lookup_symbol_nonlocal.
2858 (basic_lookup_symbol_nonlocal): Rename to...
2859 (language_defn::lookup_symbol_nonlocal): ...this, and update
2860 header comment. Remove language_defn parameter, and replace with
2861 uses of `this'.
2862 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2863
2864 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2865
2866 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2867 initializer.
2868 (ada_language::value_print_inner): New member function.
2869 * c-lang.c (c_language_data): Delete la_value_print_inner
2870 initializer.
2871 (cplus_language_data): Likewise.
2872 (asm_language_data): Likewise.
2873 (minimal_language_data): Likewise.
2874 * d-lang.c (d_language_data): Likewise.
2875 (d_language::value_print_inner): New member function.
2876 * f-lang.c (f_language_data): Delete la_value_print_inner
2877 initializer.
2878 (f_language::value_print_inner): New member function.
2879 * f-lang.h (f_value_print_innner): Rename to...
2880 (f_value_print_inner): ...this (note spelling of 'inner').
2881 * f-valprint.c (f_value_print_innner): Rename to...
2882 (f_value_print_inner): ...this (note spelling of 'inner').
2883 * go-lang.c (go_language_data): Delete la_value_print_inner
2884 initializer.
2885 (go_language::value_print_inner): New member function.
2886 * language.c (language_defn::value_print_inner): Define new member
2887 function.
2888 (unk_lang_value_print_inner): Delete.
2889 (unknown_language_data): Delete la_value_print_inner initializer.
2890 (unknown_language::value_print_inner): New member function.
2891 (auto_language_data): Delete la_value_print_inner initializer.
2892 (auto_language::value_print_inner): New member function.
2893 * language.h (language_data): Delete la_value_print_inner field.
2894 (language_defn::value_print_inner): Delcare new member function.
2895 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2896 initializer.
2897 (m2_language::value_print_inner): New member function.
2898 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2899 initializer.
2900 * opencl-lang.c (opencl_language_data): Likewise.
2901 * p-lang.c (pascal_language_data): Likewise.
2902 (pascal_language::value_print_inner): New member function.
2903 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2904 initializer.
2905 (rust_language::value_print_inner): New member function.
2906 * valprint.c (do_val_print): Update call to value_print_inner.
2907
2908 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2909
2910 * ada-lang.c (ada_language_data): Delete la_value_print
2911 initializer.
2912 (ada_language::value_print): New member function.
2913 * c-lang.c (c_language_data): Delete la_value_print initializer.
2914 (cplus_language_data): Likewise.
2915 (asm_language_data): Likewise.
2916 (minimal_language_data): Likewise.
2917 * d-lang.c (d_language_data): Likewise.
2918 * f-lang.c (f_language_data): Likewise.
2919 * go-lang.c (go_language_data): Likewise.
2920 * language.c (unk_lang_value_print): Delete.
2921 (language_defn::value_print): Define new member function.
2922 (unknown_language_data): Delete la_value_print initializer.
2923 (unknown_language::value_print): New member function.
2924 (auto_language_data): Delete la_value_print initializer.
2925 (auto_language::value_print): New member function.
2926 * language.h (language_data): Delete la_value_print field.
2927 (language_defn::value_print): Declare new member function.
2928 (LA_VALUE_PRINT): Update call to value_print.
2929 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2930 * objc-lang.c (objc_language_data): Likewise.
2931 * opencl-lang.c (opencl_language_data): Likewise.
2932 * p-lang.c (pascal_language_data): Likewise.
2933 (pascal_language::value_print): New member function.
2934 * rust-lang.c (rust_language_data): Delete la_value_print
2935 initializer.
2936
2937 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2938
2939 * ada-lang.c (ada_watch_location_expression): Rename to
2940 ada_language::watch_location_expression.
2941 (ada_language_data): Delete la_watch_location_expression
2942 initializer.
2943 (ada_language::watch_location_expression): New member function,
2944 implementation from ada_watch_location_expression.
2945 * breakpoint.c (watch_command_1): Update call to
2946 watch_location_expression.
2947 * c-lang.c (c_watch_location_expression): Rename to
2948 language_defn::watch_location_expression.
2949 (c_language_data): Delete la_watch_location_expression
2950 initializer.
2951 (cplus_language_data): Likewise.
2952 (asm_language_data): Likewise.
2953 (minimal_language_data): Likewise.
2954 * c-lang.h (c_watch_location_expression): Delete declaration.
2955 * d-lang.c (d_language_data): Delete la_watch_location_expression
2956 initializer.
2957 * f-lang.c (f_language_data): Likewise.
2958 * go-lang.c (go_language_data): Likewise.
2959 * language.c (language_defn::watch_location_expression): Member
2960 function implementation from c_watch_location_expression.
2961 (unknown_language_data): Delete la_watch_location_expression
2962 initializer.
2963 (auto_language_data): Likewise.
2964 * language.h (language_data): Delete la_watch_location_expression
2965 field.
2966 (language_defn::watch_location_expression): Declare new member
2967 function.
2968 * m2-lang.c (m2_language_data): Delete
2969 la_watch_location_expression initializer.
2970 * objc-lang.c (objc_language_data): Likewise.
2971 * opencl-lang.c (opencl_language_data): Likewise.
2972 * p-lang.c (pascal_language_data): Likewise.
2973 * rust-lang.c (rust_watch_location_expression): Rename to
2974 rust_language::watch_location_expression.
2975 (rust_language_data): Delete la_watch_location_expression
2976 initializer.
2977 (rust_language::watch_location_expression): New member function,
2978 implementation from rust_watch_location_expression.
2979
2980 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2981
2982 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2983 ada_language::collect_symbol_completion_matches.
2984 (ada_language_data): Delete la_collect_symbol_completion_matches
2985 initializer.
2986 (ada_language::collect_symbol_completion_matches): New member
2987 function, implementation from
2988 ada_collect_symbol_completion_matches.
2989 * c-lang.c (c_language_data): Delete
2990 la_collect_symbol_completion_matches initializer.
2991 (cplus_language_data): Likewise.
2992 (asm_language_data): Likewise.
2993 (minimal_language_data): Likewise.
2994 * d-lang.c (d_language_data): Likewise.
2995 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2996 f_language::collect_symbol_completion_matches.
2997 (f_language_data): Delete la_collect_symbol_completion_matches
2998 initializer.
2999 (f_language::collect_symbol_completion_matches) New member
3000 function, implementation from f_collect_symbol_completion_matches.
3001 * go-lang.c (go_language_data): Delete
3002 la_collect_symbol_completion_matches initializer.
3003 * language.c (unknown_language_data): Likewise.
3004 (auto_language_data): Likewise.
3005 * language.h (language_data): Delete
3006 la_collect_symbol_completion_matches field.
3007 (language_defn::collect_symbol_completion_matches): New member
3008 function.
3009 * m2-lang.c (m2_language_data): Delete
3010 la_collect_symbol_completion_matches initializer.
3011 * objc-lang.c (objc_language_data): Likewise.
3012 * opencl-lang.c (opencl_language_data): Likewise.
3013 * p-lang.c (pascal_language_data): Likewise.
3014 * rust-lang.c (rust_language_data): Likewise.
3015 * symtab.c (default_collect_symbol_completion_matches): Delete.
3016 (collect_symbol_completion_matches): Update call to
3017 collect_symbol_completion_matches.
3018 (collect_symbol_completion_matches_type): Likewise.
3019 * symtab.h (default_collect_symbol_completion_matches): Delete
3020 declaration.
3021
3022 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3023
3024 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
3025 (ada_language_data): Delete la_word_break_characters initializer.
3026 (ada_language::word_break_characters): New member function.
3027 * c-lang.c (c_language_data): Delete la_word_break_characters
3028 initializer.
3029 (cplus_language_data): Likewise.
3030 (asm_language_data): Likewise.
3031 (minimal_language_data): Likewise.
3032 * completer.c: Update global comment.
3033 (advance_to_expression_complete_word_point): Update call to
3034 word_break_characters.
3035 (complete_files_symbols): Likewise.
3036 (complete_line_internal_1): Likewise.
3037 (default_completer_handle_brkchars): Likewise.
3038 (skip_quoted_chars): Likewise.
3039 * d-lang.c (d_language_data): Delete la_word_break_characters
3040 initializer.
3041 * f-lang.c (f_word_break_characters): Delete.
3042 (f_language_data): Delete la_word_break_characters initializer.
3043 (f_language::word_break_characters): New member function.
3044 * go-lang.c (go_language_data): Delete la_word_break_characters
3045 initializer.
3046 * language.c (unknown_language_data): Likewise.
3047 (auto_language_data): Likewise.
3048 * language.h (default_word_break_characters): Move declaration to
3049 earlier in the file.
3050 (language_data): Delete la_word_break_characters field.
3051 (language_defn::word_break_characters): New member function.
3052 * m2-lang.c (m2_language_data): Delete la_word_break_characters
3053 initializer.
3054 * objc-lang.c (objc_language_data): Likewise.
3055 * opencl-lang.c (opencl_language_data): Likewise.
3056 * p-lang.c (pascal_language_data): Likewise.
3057 * rust-lang.c (rust_language_data): Likewise.
3058
3059 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3060
3061 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
3062 (ada_language_data): Delete la_get_symbol_name_matcher
3063 initializer.
3064 (language_defn::get_symbol_name_matcher_inner): New member
3065 function.
3066 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
3067 initializer.
3068 (cplus_language_data): Likewise.
3069 (cplus_language::get_symbol_name_matcher_inner): New member
3070 function.
3071 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
3072 (minimal_language_data): Likewise.
3073 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
3074 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
3075 initializer.
3076 * dictionary.c (iter_match_first_hashed): Update call to
3077 get_symbol_name_matcher.
3078 (iter_match_next_hashed): Likewise.
3079 (iter_match_next_linear): Likewise.
3080 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
3081 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
3082 initializer.
3083 (f_language::get_symbol_name_matcher_inner): New member function.
3084 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
3085 initializer.
3086 * language.c (default_symbol_name_matcher): Update header comment,
3087 make static.
3088 (language_defn::get_symbol_name_matcher): New definition.
3089 (language_defn::get_symbol_name_matcher_inner): Likewise.
3090 (get_symbol_name_matcher): Delete.
3091 (unknown_language_data): Delete la_get_symbol_name_matcher
3092 initializer.
3093 (auto_language_data): Likewise.
3094 * language.h (language_data): Delete la_get_symbol_name_matcher
3095 field.
3096 (language_defn::get_symbol_name_matcher): New member function.
3097 (language_defn::get_symbol_name_matcher_inner): Likewise.
3098 (default_symbol_name_matcher): Delete declaration.
3099 * linespec.c (find_methods): Update call to
3100 get_symbol_name_matcher.
3101 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
3102 initializer.
3103 * minsyms.c (lookup_minimal_symbol): Update call to
3104 get_symbol_name_matcher.
3105 (iterate_over_minimal_symbols): Likewise.
3106 * objc-lang.c (objc_language_data): Delete
3107 la_get_symbol_name_matcher initializer.
3108 * opencl-lang.c (opencl_language_data): Likewise.
3109 * p-lang.c (pascal_language_data): Likewise.
3110 * psymtab.c (psymbol_name_matches): Update call to
3111 get_symbol_name_matcher.
3112 * rust-lang.c (rust_language_data): Delete
3113 la_get_symbol_name_matcher initializer.
3114 * symtab.c (symbol_matches_search_name): Update call to
3115 get_symbol_name_matcher.
3116 (compare_symbol_name): Likewise.
3117
3118 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3119
3120 * ada-lang.c (ada_language_data): Delete la_compute_program
3121 initializer.
3122 * c-lang.c (c_language_data): Likewise.
3123 (c_language::compute_program): New member function.
3124 (cplus_language_data): Delete la_compute_program initializer.
3125 (cplus_language::compute_program): New member function.
3126 (asm_language_data): Delete la_compute_program initializer.
3127 (minimal_language_data): Likewise.
3128 * c-lang.h (c_compute_program): Update comment.
3129 (cplus_compute_program): Likewise.
3130 * compile/compile-c-support.c (c_compute_program): Likewise.
3131 (cplus_compute_program): Likewise.
3132 * compile/compile.c (compile_to_object): Update call to
3133 la_compute_program.
3134 * d-lang.c (d_language_data): Delete la_compute_program
3135 initializer.
3136 * f-lang.c (f_language_data): Likewise.
3137 * go-lang.c (go_language_data): Likewise.
3138 * language.c (unknown_language_data): Likewise.
3139 (auto_language_data): Likewise.
3140 * language.h (language_data): Delete la_compute_program field.
3141 (language_defn::compute_program): New member function.
3142 * m2-lang.c (m2_language_data): Delete la_compute_program
3143 initializer.
3144 * objc-lang.c (objc_language_data): Likewise.
3145 * opencl-lang.c (opencl_language_data): Likewise.
3146 * p-lang.c (pascal_language_data): Likewise.
3147 * rust-lang.c (rust_language_data): Likewise.
3148
3149 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3150
3151 * ada-lang.c (ada_language_data) Delete
3152 la_class_name_from_physname initializer.
3153 * c-lang.c (c_language_data): Likewise.
3154 (cplus_language_data): Likewise.
3155 (cplus_language::class_name_from_physname): New member function.
3156 (asm_language_data): Delete la_class_name_from_physname
3157 initializer.
3158 (minimal_language_data): Likewise.
3159 * d-lang.c (d_language_data): Likewise.
3160 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
3161 method on language_defn class.
3162 (guess_full_die_structure_name): Likewise.
3163 * f-lang.c (f_language_data): Delete la_class_name_from_physname
3164 initializer.
3165 * go-lang.c (go_language_data): Likewise.
3166 * language.c (language_class_name_from_physname): Delete.
3167 (unk_lang_class_name): Delete.
3168 (unknown_language_data): Delete la_class_name_from_physname
3169 initializer.
3170 (auto_language_data): Likewise.
3171 * language.h (language_data): Delete la_class_name_from_physname
3172 field.
3173 (language_defn::class_name_from_physname): New function.
3174 (language_class_name_from_physname): Delete declaration.
3175 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
3176 initializer.
3177 * objc-lang.c (objc_language_data): Likewise.
3178 * opencl-lang.c (opencl_language_data): Likewise.
3179 * p-lang.c (pascal_language_data): Likewise.
3180 * rust-lang.c (rust_language_data): Likewise.
3181
3182 2020-06-16 Tom Tromey <tom@tromey.com>
3183
3184 * tui/tui-data.h (STATUS_NAME): New macro.
3185 * tui/tui-layout.c (tui_remove_some_windows)
3186 (initialize_known_windows, tui_register_window)
3187 (tui_layout_split::remove_windows, initialize_layouts)
3188 (tui_new_layout_command): Don't use hard-coded window names.
3189
3190 2020-06-16 Tom Tromey <tom@tromey.com>
3191
3192 PR tui/25348:
3193 * tui/tui.c (tui_ensure_readline_initialized): Rename from
3194 tui_initialize_readline. Only run once. Call rl_initialize.
3195 * tui/tui.h (tui_ensure_readline_initialized): Rename from
3196 tui_initialize_readline.
3197 * tui/tui-io.c (tui_setup_io): Call
3198 tui_ensure_readline_initialized.
3199 * tui/tui-interp.c (tui_interp::init): Update.
3200
3201 2020-06-16 Tom Tromey <tom@tromey.com>
3202
3203 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
3204 Also preserve the status window.
3205
3206 2020-06-16 Tom Tromey <tom@tromey.com>
3207
3208 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
3209 where m_window==nullptr.
3210
3211 2020-06-15 Tom Tromey <tromey@adacore.com>
3212
3213 * windows-nat.c (windows_nat::handle_output_debug_string):
3214 Update.
3215 (windows_nat::handle_ms_vc_exception): Update.
3216 * target.h (target_read_string): Change API.
3217 * target.c (target_read_string): Change API.
3218 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
3219 Update.
3220 * solib-frv.c (frv_current_sos): Update.
3221 * solib-dsbt.c (dsbt_current_sos): Update.
3222 * solib-darwin.c (darwin_current_sos): Update.
3223 * linux-thread-db.c (inferior_has_bug): Update.
3224 * expprint.c (print_subexp_standard): Update.
3225 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
3226 (ada_exception_message_1): Update.
3227
3228 2020-06-15 Tom Tromey <tromey@adacore.com>
3229
3230 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
3231
3232 2020-06-15 Tom Tromey <tromey@adacore.com>
3233
3234 * valprint.c (read_string): Update comment.
3235 * target.c (MIN): Remove.
3236 (target_read_string): Rewrite.
3237
3238 2020-06-15 Tom Tromey <tromey@adacore.com>
3239
3240 * corefile.c (read_memory_string): Remove.
3241 * ada-valprint.c (ada_value_print_ptr): Update.
3242 * ada-lang.h (ada_tag_name): Change return type.
3243 * ada-lang.c (type_from_tag): Update.
3244 (ada_tag_name_from_tsd): Change return type. Use
3245 target_read_string.
3246 (ada_tag_name): Likewise.
3247 * gdbcore.h (read_memory_string): Don't declare.
3248
3249 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
3250
3251 * symtab.c (rbreak_command): Ignore Windows drive colon.
3252
3253 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
3254
3255 * NEWS: Mention removed GDBserver host support.
3256
3257 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
3258
3259 * features/riscv/rebuild-csr-xml.sh: Updated.
3260
3261 2020-06-11 Tom Tromey <tom@tromey.com>
3262
3263 PR gdb/18318:
3264 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3265
3266 2020-06-09 Jonny Grant <jg@jguk.org>
3267 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3268
3269 * main.c (captured_main_1): Don't print new line after help.
3270 (print_gdb_help): add mailing list and IRC channel information
3271 to --help. Add new lines between items in the footer. Remove
3272 quotes around bug url.
3273
3274 2020-06-11 Keith Seitz <keiths@redhat.com>
3275
3276 PR gdb/21356
3277 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3278 Resolve typedefs for type length calculations.
3279
3280 2020-06-10 Tom de Vries <tdevries@suse.de>
3281
3282 PR ada/24713
3283 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3284 (write_psymbols): Enable .gdb_index for ada.
3285 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3286 ada.
3287
3288 2020-06-10 Tom de Vries <tdevries@suse.de>
3289
3290 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3291 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3292 namei" instead of "const char *name" argument.
3293 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3294 dw2_symtab_iter_init.
3295
3296 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3297
3298 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3299 to use type::field and field::type instead.
3300
3301 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3302
3303 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3304 to use field::type instead.
3305
3306 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3307
3308 * gdbtypes.h (struct field) <type, set_type>: New methods.
3309 Rename `type` field to...
3310 <m_type>: ... this. Change references throughout to use type or
3311 set_type methods.
3312 (FIELD_TYPE): Use field::type. Change call sites that modify
3313 the field's type to use field::set_type instead.
3314
3315 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3316
3317 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3318 to use type::index_type instead.
3319
3320 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3321
3322 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3323 methods.
3324 (TYPE_INDEX_TYPE): Use type::index_type.
3325 * gdbtypes.c (create_array_type_with_stride): Likewise.
3326
3327 2020-06-07 Tom Tromey <tom@tromey.com>
3328
3329 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3330 parameter.
3331 (generic_value_print): Update.
3332
3333 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3334
3335 Revert commit 982a38f60b0.
3336 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3337
3338 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3339
3340 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3341 avoid use after free.
3342
3343 2020-06-05 Tom de Vries <tdevries@suse.de>
3344
3345 * NEWS: Fix typos.
3346
3347 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
3348
3349 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3350 the per_bfd object.
3351 (dwarf2_read_debug_names): Likewise.
3352 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3353 object when re-using a per_bfd object with an index.
3354
3355 2020-06-03 Tom de Vries <tdevries@suse.de>
3356
3357 PR symtab/26046
3358 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3359 children for C++.
3360 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3361 DW_TAG_subprogram.
3362
3363 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3364
3365 * ada-lang.c (ada_language_data): Delete skip_trampoline
3366 initializer.
3367 * c-lang.c (c_language_data): Likewise.
3368 (cplus_language_data): Likewise.
3369 (cplus_language::skip_trampoline): New member function.
3370 (asm_language_data): Delete skip_trampoline initializer.
3371 (minimal_language_data): Likewise.
3372 * d-lang.c (d_language_data): Likewise.
3373 * f-lang.c (f_language_data): Likewise.
3374 * go-lang.c (go_language_data): Likewise.
3375 * language.c (unk_lang_trampoline): Delete function.
3376 (skip_language_trampoline): Update.
3377 (unknown_language_data): Delete skip_trampoline initializer.
3378 (auto_language_data): Likewise.
3379 * language.h (language_data): Delete skip_trampoline field.
3380 (language_defn::skip_trampoline): New function.
3381 * m2-lang.c (m2_language_data): Delete skip_trampoline
3382 initializer.
3383 * objc-lang.c (objc_skip_trampoline): Delete function, move
3384 implementation to objc_language::skip_trampoline.
3385 (objc_language_data): Delete skip_trampoline initializer.
3386 (objc_language::skip_trampoline): New member function with
3387 implementation from objc_skip_trampoline.
3388 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3389 initializer.
3390 * p-lang.c (pascal_language_data): Likewise.
3391 * rust-lang.c (rust_language_data): Likewise.
3392
3393 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3394
3395 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3396 (ada_language::demangle): New member function.
3397 * c-lang.c (c_language_data): Delete la_demangle initializer.
3398 (cplus_language_data): Delete la_demangle initializer.
3399 (cplus_language::demangle): New member function.
3400 (asm_language_data): Delete la_demangle initializer.
3401 (minimal_language_data): Delete la_demangle initializer.
3402 * d-lang.c (d_language_data): Delete la_demangle initializer.
3403 (d_language::demangle): New member function.
3404 * f-lang.c (f_language_data): Delete la_demangle initializer.
3405 (f_language::demangle): New member function.
3406 * go-lang.c (go_language_data): Delete la_demangle initializer.
3407 (go_language::demangle): New member function.
3408 * language.c (language_demangle): Update.
3409 (unk_lang_demangle): Delete.
3410 (unknown_language_data): Delete la_demangle initializer.
3411 (unknown_language::demangle): New member function.
3412 (auto_language_data): Delete la_demangle initializer.
3413 (auto_language::demangle): New member function.
3414 * language.h (language_data): Delete la_demangle field.
3415 (language_defn::demangle): New function.
3416 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3417 * objc-lang.c (objc_language_data): Delete la_demangle
3418 initializer.
3419 (objc_language::demangle): New member function.
3420 * opencl-lang.c (opencl_language_data): Delete la_demangle
3421 initializer.
3422 * p-lang.c (pascal_language_data): Likewise.
3423 * rust-lang.c (rust_language_data): Likewise.
3424 (rust_language::demangle): New member function.
3425
3426 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3427
3428 * ada-lang.c (ada_language_data): Delete la_print_type
3429 initializer.
3430 (ada_language::print_type): New member function.
3431 * c-lang.c (c_language_data): Delete la_print_type initializer.
3432 (c_language::print_type): New member function.
3433 (cplus_language_data): Delete la_print_type initializer.
3434 (cplus_language::print_type): New member function.
3435 (asm_language_data): Delete la_print_type initializer.
3436 (asm_language::print_type): New member function.
3437 (minimal_language_data): Delete la_print_type initializer.
3438 (minimal_language::print_type): New member function.
3439 * d-lang.c (d_language_data): Delete la_print_type initializer.
3440 (d_language::print_type): New member function.
3441 * f-lang.c (f_language_data): Delete la_print_type initializer.
3442 (f_language::print_type): New member function.
3443 * go-lang.c (go_language_data): Delete la_print_type initializer.
3444 (go_language::print_type): New member function.
3445 * language.c (unk_lang_print_type): Delete.
3446 (unknown_language_data): Delete la_print_type initializer.
3447 (unknown_language::print_type): New member function.
3448 (auto_language_data): Delete la_print_type initializer.
3449 (auto_language::print_type): New member function.
3450 * language.h (language_data): Delete la_print_type field.
3451 (language_defn::print_type): New function.
3452 (LA_PRINT_TYPE): Update.
3453 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3454 (m2_language::print_type): New member function.
3455 * objc-lang.c (objc_language_data): Delete la_print_type
3456 initializer.
3457 (objc_language::print_type): New member function.
3458 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3459 to opencl_language::print_type.
3460 (opencl_language_data): Delete la_print_type initializer.
3461 (opencl_language::print_type): New member function, implementation
3462 from opencl_print_type.
3463 * p-lang.c (pascal_language_data): Delete la_print_type
3464 initializer.
3465 (pascal_language::print_type): New member function.
3466 * rust-lang.c (rust_print_type): Delete, implementation moved to
3467 rust_language::print_type.
3468 (rust_language_data): Delete la_print_type initializer.
3469 (rust_language::print_type): New member function, implementation
3470 from rust_print_type.
3471
3472 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3473
3474 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3475 implementation moves to...
3476 (ada_language::sniff_from_mangled_name): ...here. Update return
3477 type.
3478 (ada_language_data): Delete la_sniff_from_mangled_name
3479 initializer.
3480 * c-lang.c (c_language_data): Likewise.
3481 (cplus_language_data): Likewise.
3482 (cplus_language::sniff_from_mangled_name): New member function,
3483 implementation taken from gdb_sniff_from_mangled_name.
3484 (asm_language_data): Delete la_sniff_from_mangled_name
3485 initializer.
3486 (minimal_language_data): Likewise.
3487 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3488 implementation moves to cplus_language::sniff_from_mangled_name.
3489 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3490 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3491 moves to...
3492 (d_language::sniff_from_mangled_name): ...here.
3493 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3494 * f-lang.c (f_language_data): Likewise.
3495 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3496 moves to...
3497 (go_language::sniff_from_mangled_name): ...here.
3498 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3499 * language.c (language_sniff_from_mangled_name): Delete.
3500 (unknown_language_data): Delete la_sniff_from_mangled_name
3501 initializer.
3502 (auto_language_data): Likewise.
3503 * language.h (language_data): Delete la_sniff_from_mangled_name
3504 field.
3505 (language_defn::sniff_from_mangled_name): New function.
3506 (language_sniff_from_mangled_name): Delete declaration.
3507 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3508 field.
3509 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3510 implementation moves to...
3511 (objc_language::sniff_from_mangled_name): ...here.
3512 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3513 * opencl-lang.c (opencl_language_data): Likewise.
3514 * p-lang.c (pascal_language_data): Likewise.
3515 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3516 implementation moves to...
3517 (rust_language::sniff_from_mangled_name): ...here.
3518 (rust_language_data): Delete la_sniff_from_mangled_name
3519 initializer.
3520 * symtab.c (symbol_find_demangled_name): Call
3521 sniff_from_mangled_name member function.
3522
3523 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3524
3525 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3526 initializer.
3527 * c-lang.c (c_language_data): Likewise.
3528 (cplus_language_data): Likewise.
3529 (cplus_language::search_name_hash): New member function.
3530 (asm_language_data): Delete la_search_name_hash initializer.
3531 (minimal_language_data): Likewise.
3532 * d-lang.c (d_language_data): Likewise.
3533 * dictionary.c (default_search_name_hash): Rename to...
3534 (language_defn::search_name_hash): ...this.
3535 * f-lang.c (f_language_data): Likewise.
3536 (f_language::search_name_hash): New member function.
3537 * go-lang.c (go_language_data): Delete la_search_name_hash
3538 initializer.
3539 * language.c (unknown_language_data): Likewise.
3540 (auto_language_data): Likewise.
3541 * language.h (struct language_data): Delete la_search_name_hash
3542 field.
3543 (language_defn::search_name_hash): Declare new member function.
3544 (default_search_name_hash): Delete declaration.
3545 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3546 initializer.
3547 * objc-lang.c (objc_language_data): Likewise.
3548 * opencl-lang.c (opencl_language_data): Likewise.
3549 * p-lang.c (pascal_language_data): Likewise.
3550 * rust-lang.c (rust_language_data): Likewise.
3551 * symtab.c (search_name_hash): Update call.
3552
3553 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3554
3555 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3556 initializer.
3557 * c-lang.c (class compile_instance): Declare.
3558 (c_language_data): Delete la_get_compile_instance initializer.
3559 (c_language::get_compile_instance): New member function.
3560 (cplus_language_data): Delete la_get_compile_instance initializer.
3561 (cplus_language::get_compile_instance): New member function.
3562 (asm_language_data): Delete la_get_compile_instance initializer.
3563 (minimal_language_data): Likewise.
3564 * c-lang.h (c_get_compile_context): Update comment.
3565 (cplus_get_compile_context): Update comment.
3566 * compile/compile.c (compile_to_object): Update calls, don't rely
3567 on function pointer being NULL.
3568 * d-lang.c (d_language_data): Delete la_get_compile_instance
3569 initializer.
3570 * f-lang.c (f_language_data): Likewise.
3571 * go-lang.c (go_language_data): Likewise.
3572 * language.c (unknown_language_data): Likewise.
3573 (auto_language_data): Likewise.
3574 * language.h (language_data): Delete la_get_compile_instance field.
3575 (language_defn::get_compile_instance): New member function.
3576 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3577 initializer.
3578 * objc-lang.c (objc_language_data): Likewise.
3579 * opencl-lang.c (opencl_language_data): Likewise.
3580 * p-lang.c (pascal_language_data): Likewise.
3581 * rust-lang.c (rust_language_data): Likewise.
3582
3583 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3584
3585 * ada-lang.c (ada_add_all_symbols): Update comment.
3586 (ada_iterate_over_symbols): Delete, move implementation to...
3587 (ada_language::iterate_over_symbols): ...here, a new member
3588 function, rewrite to use range based for loop.
3589 (ada_language_data): Delete la_iterate_over_symbols initializer.
3590 * c-lang.c (c_language_data): Likewise.
3591 (cplus_language_data): Likewise.
3592 (asm_language_data): Likewise.
3593 (minimal_language_data): Likewise.
3594 * d-lang.c (d_language_data): Likewise.
3595 * f-lang.c (f_language_data): Likewise.
3596 * go-lang.c (go_language_data): Likewise.
3597 * language.c (unknown_language_data): Likewise.
3598 (auto_language_data): Likewise.
3599 * language.h (language_data): Delete la_iterate_over_symbols field.
3600 (language_defn::iterate_over_symbols): New member function.
3601 (LA_ITERATE_OVER_SYMBOLS): Update.
3602 * linespec.c (iterate_over_all_matching_symtabs): Update.
3603 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3604 initializer.
3605 * objc-lang.c (objc_language_data): Likewise.
3606 * opencl-lang.c (opencl_language_data): Likewise.
3607 * p-lang.c (pascal_language_data): Likewise.
3608 * rust-lang.c (rust_language_data): Likewise.
3609
3610 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3611
3612 * ada-lang.c (ada_language_data): Delete
3613 la_lookup_transparent_type initializer.
3614 * c-lang.c (c_language_data): Likewise.
3615 (cplus_language_data): Likewise.
3616 (cplus_language::lookup_transparent_type): New member function.
3617 (asm_language_data): Delete la_lookup_transparent_type
3618 initializer.
3619 (minimal_language_data): Likewise.
3620 * d-lang.c (d_language_data): Likewise.
3621 * f-lang.c (f_language_data): Likewise.
3622 * go-lang.c (go_language_data): Likewise.
3623 * language.c (unknown_language_data): Likewise.
3624 (auto_language_data): Likewise.
3625 * language.h (struct language_data): Delete
3626 la_lookup_transparent_type field.
3627 (language_defn::lookup_transparent_type): New member function.
3628 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3629 initializer.
3630 * objc-lang.c (objc_language_data): Likewise.
3631 * opencl-lang.c (opencl_language_data): Likewise.
3632 * p-lang.c (pascal_language_data): Likewise.
3633 * rust-lang.c (rust_language_data): Likewise.
3634 * symtab.c (symbol_matches_domain): Update call.
3635
3636 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3637
3638 * ada-lang.c (ada_language_arch_info): Delete function, move
3639 implementation to...
3640 (ada_language::language_arch_info): ...here, a new member
3641 function.
3642 (ada_language_data): Delete la_language_arch_info.
3643 * c-lang.c (c_language_data): Likewise.
3644 (c_language::language_arch_info): New member function.
3645 (cplus_language_arch_info): Delete function, move
3646 implementation to...
3647 (cplus_language::language_arch_info): ...here, a new member
3648 function.
3649 (cplus_language_data): Delete la_language_arch_info.
3650 (asm_language_data): Likewise.
3651 (asm_language::language_arch_info): New member function.
3652 (minimal_language_data): Delete la_language_arch_info.
3653 (minimal_language::language_arch_info): New member function.
3654 * d-lang.c (d_language_arch_info): Delete function, move
3655 implementation to...
3656 (d_language::language_arch_info): ...here, a new member
3657 function.
3658 (d_language_data): Delete la_language_arch_info.
3659 * f-lang.c (f_language_arch_info): Delete function, move
3660 implementation to...
3661 (f_language::language_arch_info): ...here, a new member
3662 function.
3663 (f_language_data): Delete la_language_arch_info.
3664 * go-lang.c (go_language_arch_info): Delete function, move
3665 implementation to...
3666 (go_language::language_arch_info): ...here, a new member
3667 function.
3668 (go_language_data): Delete la_language_arch_info.
3669 * language.c (unknown_language_data): Likewise.
3670 (unknown_language::language_arch_info): New member function.
3671 (auto_language_data): Delete la_language_arch_info.
3672 (auto_language::language_arch_info): New member function.
3673 (language_gdbarch_post_init): Update call to
3674 la_language_arch_info.
3675 * language.h (language_data): Delete la_language_arch_info
3676 function pointer.
3677 (language_defn::language_arch_info): New function.
3678 * m2-lang.c (m2_language_arch_info): Delete function, move
3679 implementation to...
3680 (m2_language::language_arch_info): ...here, a new member
3681 function.
3682 (m2_language_data): Delete la_language_arch_info.
3683 * objc-lang.c (objc_language_arch_info): Delete function, move
3684 implementation to...
3685 (objc_language::language_arch_info): ...here, a new member
3686 function.
3687 (objc_language_data): Delete la_language_arch_info.
3688 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3689 implementation to...
3690 (opencl_language::language_arch_info): ...here, a new member
3691 function.
3692 (opencl_language_data): Delete la_language_arch_info.
3693 * p-lang.c (pascal_language_arch_info): Delete function, move
3694 implementation to...
3695 (pascal_language::language_arch_info): ...here, a new member
3696 function.
3697 (pascal_language_data): Delete la_language_arch_info.
3698 * rust-lang.c (rust_language_arch_info): Delete function, move
3699 implementation to...
3700 (rust_language::language_arch_info): ...here, a new member
3701 function.
3702 (rust_language_data): Delete la_language_arch_info.
3703
3704 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3705
3706 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3707 initializer.
3708 * c-lang.c (c_language_data): Likewise.
3709 (cplus_language_data): Likewise.
3710 (cplus_language::pass_by_reference_info): New method.
3711 (asm_language_data): Delete la_pass_by_reference initializer.
3712 (minimal_language_data): Likewise.
3713 * cp-abi.c (cp_pass_by_reference): Remove use of
3714 default_pass_by_reference.
3715 * d-lang.c (d_language_data): Likewise.
3716 * f-lang.c (f_language_data): Likewise.
3717 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3718 default_pass_by_reference.
3719 * go-lang.c (go_language_data): Likewise.
3720 * language.c (language_pass_by_reference): Update.
3721 (default_pass_by_reference): Delete.
3722 (unknown_language_data): Delete la_pass_by_reference
3723 initializer.
3724 (auto_language_data): Likewise.
3725 * language.h (struct language_data): Delete la_pass_by_reference
3726 field.
3727 (language_defn::pass_by_reference_info): New member function.
3728 (default_pass_by_reference): Delete declaration.
3729 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3730 initializer.
3731 * objc-lang.c (objc_language_data): Likewise.
3732 * opencl-lang.c (opencl_language_data): Likewise.
3733 * p-lang.c (pascal_language_data): Likewise.
3734 * rust-lang.c (rust_language_data): Likewise.
3735
3736 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3737
3738 * ada-lang.c (ada_read_var_value): Delete function, move
3739 implementation to...
3740 (ada_language::read_var_value): ...here.
3741 (ada_language_data): Delete la_read_var_value initializer.
3742 * c-lang.c (c_language_data): Likewise.
3743 (cplus_language_data): Likewise.
3744 (minimal_language_data): Likewise.
3745 * d-lang.c (d_language_data): Likewise.
3746 * f-lang.c (f_language_data): Likewise.
3747 * findvar.c (default_read_var_value): Rename to...
3748 (language_defn::read_var_value): ...this.
3749 * findvar.c (read_var_value): Update header comment, and change to
3750 call member function instead of function pointer.
3751 * go-lang.c (go_language_data): Likewise.
3752 * language.c (unknown_language_data): Delete la_read_var_value
3753 initializer.
3754 (auto_language_data): Likewise.
3755 * language.h (struct language_data): Delete la_read_var_value
3756 field.
3757 (language_defn::read_var_value): New member function.
3758 (default_read_var_value): Delete declaration.
3759 * m2-lang.c (m2_language_data): Delete la_read_var_value
3760 initializer.
3761 * objc-lang.c (objc_language_data): Likewise.
3762 * opencl-lang.c (opencl_language_data): Likewise.
3763 * p-lang.c (pascal_language_data): Likewise.
3764 * rust-lang.c (rust_language_data): Likewise.
3765 * value.h (default_read_var_value): Delete declaration.
3766
3767 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3768
3769 * ada-lang.c (ada_print_array_index): Delete function, move
3770 implementation to...
3771 (ada_language::print_array_index): ...here.
3772 (ada_language_data): Delete la_print_array_index initializer.
3773 * c-lang.c (c_language_data): Likewise.
3774 (cplus_language_data): Likewise.
3775 (minimal_language_data): Likewise.
3776 * d-lang.c (d_language_data): Likewise.
3777 * f-lang.c (f_language_data): Likewise.
3778 * go-lang.c (go_language_data): Likewise.
3779 * language.c (default_print_array_index): Delete function, move
3780 implementation to...
3781 (language_defn::print_array_index): ...here.
3782 (unknown_language_data): Delete la_print_array_index initializer.
3783 (auto_language_data): Likewise.
3784 * language.h (struct language_data): Delete la_print_array_index
3785 field.
3786 (language_defn::print_array_index): New member function.
3787 (LA_PRINT_ARRAY_INDEX): Update.
3788 (default_print_array_index): Delete declaration.
3789 * m2-lang.c (m2_language_data): Delete la_print_array_index
3790 initializer.
3791 * objc-lang.c (objc_language_data): Likewise.
3792 * opencl-lang.c (opencl_language_data): Likewise.
3793 * p-lang.c (pascal_language_data): Likewise.
3794 * rust-lang.c (rust_language_data): Likewise.
3795
3796 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3797
3798 * gdb/ada-lang.c (ada_language_defn): Convert to...
3799 (ada_language_data): ...this.
3800 (class ada_language): New class.
3801 (ada_language_defn): New static global.
3802 * gdb/c-lang.c (c_language_defn): Convert to...
3803 (c_language_data): ...this.
3804 (class c_language): New class.
3805 (c_language_defn): New static global.
3806 (cplus_language_defn): Convert to...
3807 (cplus_language_data): ...this.
3808 (class cplus_language): New class.
3809 (cplus_language_defn): New static global.
3810 (asm_language_defn): Convert to...
3811 (asm_language_data): ...this.
3812 (class asm_language): New class.
3813 (asm_language_defn): New static global.
3814 (minimal_language_defn): Convert to...
3815 (minimal_language_data): ...this.
3816 (class minimal_language): New class.
3817 (minimal_language_defn): New static global.
3818 * gdb/d-lang.c (d_language_defn): Convert to...
3819 (d_language_data): ...this.
3820 (class d_language): New class.
3821 (d_language_defn): New static global.
3822 * gdb/f-lang.c (f_language_defn): Convert to...
3823 (f_language_data): ...this.
3824 (class f_language): New class.
3825 (f_language_defn): New static global.
3826 * gdb/go-lang.c (go_language_defn): Convert to...
3827 (go_language_data): ...this.
3828 (class go_language): New class.
3829 (go_language_defn): New static global.
3830 * gdb/language.c (unknown_language_defn): Remove declaration.
3831 (current_language): Initialize to nullptr, real initialization is
3832 moved to _initialize_language.
3833 (languages): Delete global.
3834 (language_defn::languages): Define.
3835 (set_language_command): Use language_defn::languages.
3836 (set_language): Likewise.
3837 (range_error): Likewise.
3838 (language_enum): Likewise.
3839 (language_def): Likewise.
3840 (add_set_language_command): Use language_def::languages for the
3841 language list, and language_def to lookup language pointers.
3842 (skip_language_trampoline): Use language_defn::languages.
3843 (unknown_language_defn): Convert to...
3844 (unknown_language_data): ...this.
3845 (class unknown_language): New class.
3846 (unknown_language_defn): New static global.
3847 (auto_language_defn): Convert to...
3848 (auto_language_data): ...this.
3849 (class auto_language): New class.
3850 (auto_language_defn): New static global.
3851 (language_gdbarch_post_init): Use language_defn::languages.
3852 (_initialize_language): Initialize current_language.
3853 * gdb/language.h (struct language_defn): Rename to...
3854 (struct language_data): ...this.
3855 (struct language_defn): New.
3856 (auto_language_defn): Delete.
3857 (unknown_language_defn): Delete.
3858 (minimal_language_defn): Delete.
3859 (ada_language_defn): Delete.
3860 (asm_language_defn): Delete.
3861 (c_language_defn): Delete.
3862 (cplus_language_defn): Delete.
3863 (d_language_defn): Delete.
3864 (f_language_defn): Delete.
3865 (go_language_defn): Delete.
3866 (m2_language_defn): Delete.
3867 (objc_language_defn): Delete.
3868 (opencl_language_defn): Delete.
3869 (pascal_language_defn): Delete.
3870 (rust_language_defn): Delete.
3871 * gdb/m2-lang.c (m2_language_defn): Convert to...
3872 (m2_language_data): ...this.
3873 (class m2_language): New class.
3874 (m2_language_defn): New static global.
3875 * gdb/objc-lang.c (objc_language_defn): Convert to...
3876 (objc_language_data): ...this.
3877 (class objc_language): New class.
3878 (objc_language_defn): New static global.
3879 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3880 (opencl_language_data): ...this.
3881 (class opencl_language): New class.
3882 (opencl_language_defn): New static global.
3883 * gdb/p-lang.c (pascal_language_defn): Convert to...
3884 (pascal_language_data): ...this.
3885 (class pascal_language): New class.
3886 (pascal_language_defn): New static global.
3887 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3888 language pointer, update comment format.
3889 * gdb/rust-lang.c (rust_language_defn): Convert to...
3890 (rust_language_data): ...this.
3891 (class rust_language): New class.
3892 (rust_language_defn): New static global.
3893
3894 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3895
3896 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3897 member variable.
3898 <m_stmt_at_address>: New member variable.
3899 (lnp_state_machine::record_line): Don't record some lines, update
3900 tracking of is_stmt at the same address.
3901 (lnp_state_machine::lnp_state_machine): Initialise new member
3902 variables.
3903
3904 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3905
3906 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3907 "-include gnu-nat-mig.h".
3908 * gnu-nat-mig.h: New file.
3909 * gnu-nat.c: Include "gnu-nat-mig.h".
3910 (exc_server, msg_reply_server, notify_server,
3911 process_reply_server): Remove declarations.
3912
3913 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3914
3915 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3916 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3917 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3918 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3919 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3920 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3921 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3922 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3923 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3924 to gnu_nat_target class.
3925 * gnu-nat.c: Likewise.
3926 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3927 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3928 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3929 object.
3930 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3931 instead of `gnu_target'.
3932
3933 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3934
3935 * i386-gnu-tdep.c: Include "gdbcore.h"
3936 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3937 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3938 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3939 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3940 i386_gnu_sigcontext_addr): New functions
3941 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3942 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3943 tdep.
3944
3945 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3946
3947 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3948 before fork_inferior call. Avoid calling it if target_is_pushed returns
3949 true.
3950
3951 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3952
3953 * gnu-nat.h (gnu_target): New variable declaration.
3954 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3955 gnu_target.
3956 * gnu-nat.c (gnu_target): New variable.
3957 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3958 add_thread_silent, and add_thread calls.
3959 (gnu_nat_target::create_inferior): Pass gnu_target to
3960 add_thread_silent, thread_change_ptid call.
3961 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3962 call.
3963
3964 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3965
3966 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3967 (gnu_nat_target::find_memory_regions): Remove unused
3968 `old_address' variable.
3969
3970 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3971
3972 * gnu-nat.c: Include "gdbarch.h".
3973
3974 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3975
3976 * reply_mig_hack.awk (Error return): Cast function through
3977 void *, to bypass compiler function call check.
3978
3979 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3980
3981 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3982 $(srcdir)/reply_mig_hack.awk.
3983
3984 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3985
3986 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3987
3988 2020-05-30 Jonny Grant <jg@jguk.org>
3989
3990 * configure.ac (ACX_BUGURL): change bug URL to https.
3991
3992 2020-05-30 Pedro Alves <palves@redhat.com>
3993
3994 * cp-support.c (replace_typedefs_template): New.
3995 (replace_typedefs_qualified_name): Handle
3996 DEMANGLE_COMPONENT_TEMPLATE.
3997
3998 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
3999
4000 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
4001 dwarf2/index-cache.h, dwarf2/index-write.c,
4002 dwarf2/index-write.h, dwarf2/line-header.c,
4003 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
4004 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
4005 variables and fields from `dwarf2_per_objfile` to just
4006 `per_objfile` throughout.
4007
4008 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
4009
4010 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4011 <push_dwarf_reg_entry_value>: Add comment.
4012
4013 2020-05-28 Kevin Buettner <kevinb@redhat.com>
4014 Keith Seitz <keiths@redhat.com>
4015
4016 * python/python.c (do_start_initialization): Call PyEval_SaveThread
4017 instead of PyEval_ReleaseLock.
4018 (class gdbpy_gil): Move to earlier in file.
4019 (finalize_python): Set gdb_python_initialized.
4020 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
4021 when not initialized.
4022
4023 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
4024
4025 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4026 <push_dwarf_reg_entry_value>: Remove assert. Override
4027 per_objfile with caller_per_objfile.
4028
4029 2020-05-28 Tom de Vries <tdevries@suse.de>
4030
4031 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
4032 PR gold/15646 workaround to symbol kind "type".
4033
4034 2020-05-27 Tom Tromey <tromey@adacore.com>
4035
4036 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
4037
4038 2020-05-27 Tom Tromey <tromey@adacore.com>
4039
4040 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
4041 Use htab_find_with_hash.
4042 <add_abbrev>: Remove "abbrev_number" parameter.
4043 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
4044 "abbrev_number" parameter. Use htab_find_slot_with_hash.
4045 (hash_abbrev): Add comment.
4046 (abbrev_table::lookup_abbrev): Move to header file.
4047 (abbrev_table::read): Update.
4048
4049 2020-05-27 Tom Tromey <tromey@adacore.com>
4050
4051 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
4052 method.
4053 <canonical_name>: New member.
4054 <raw_name>: Rename from "name".
4055 (partial_die_info): Initialize canonical_name.
4056 (scan_partial_symbols): Check raw_name.
4057 (partial_die_parent_scope, partial_die_full_name)
4058 (add_partial_symbol, add_partial_subprogram)
4059 (add_partial_enumeration, load_partial_dies): Use "name" method.
4060 (partial_die_info::name): New method.
4061 (partial_die_info::read, guess_partial_die_structure_name)
4062 (partial_die_info::fixup): Update.
4063
4064 2020-05-27 Tom Tromey <tromey@adacore.com>
4065
4066 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
4067 <get_ref_die_offset>: Inline.
4068 <get_ref_die_offset_complaint>: New method.
4069 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
4070 (attribute::get_ref_die_offset_complaint): Rename from
4071 get_ref_die_offset. Just issue complaint.
4072
4073 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4074
4075 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
4076
4077 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4078
4079 * exec.c (exec_file_attach): Use errno value of first openp failure.
4080
4081 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4082
4083 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
4084 Don't close thread handle.
4085
4086 2020-05-27 Tom Tromey <tom@tromey.com>
4087 Simon Marchi <simon.marchi@efficios.com>
4088
4089 * objfiles.h (struct objfile) <partial_symtabs>: Now a
4090 shared_ptr.
4091 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
4092 member.
4093 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
4094 dwarf2_per_bfd_objfile_data_key>: New globals.
4095 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
4096 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
4097 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
4098 shared.
4099 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
4100 short-circuit when sharing.
4101 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
4102 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
4103
4104 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4105
4106 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
4107 to...
4108 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
4109 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
4110
4111 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4112
4113 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
4114 build_name_components, find_name_components_bounds>:
4115 Add per_objfile parameter.
4116 (struct mapped_index) <symbol_name_at>: Likewise.
4117 (struct mapped_debug_names): Remove constructor.
4118 <dwarf2_per_objfile>: Remove field.
4119 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
4120 (mapped_index_base::find_name_components_bounds,
4121 mapped_index_base::build_name_components,
4122 dw2_expand_symtabs_matching_symbol): Likewise.
4123 (class mock_mapped_index) <symbol_name_at>: Likewise.
4124 (check_match): Likewise.
4125 (check_find_bounds_finds): Likewise.
4126 (test_mapped_index_find_name_component_bounds): Update.
4127 (CHECK_MATCH): Update.
4128 (dw2_expand_symtabs_matching): Update.
4129 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
4130 per_objfile parameter.
4131 <find_vec_in_debug_names>: Likewise.
4132 <m_per_objfile>: New field.
4133 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
4134 parameter.
4135 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
4136 (dw2_debug_names_iterator::next): Update.
4137 (dw2_debug_names_lookup_symbol): Update.
4138 (dw2_debug_names_expand_symtabs_for_function): Update.
4139 (dw2_debug_names_map_matching_symbols): Update.
4140 (dw2_debug_names_expand_symtabs_matching): Update.
4141 (dwarf2_read_debug_names): Update.
4142
4143 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4144
4145 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
4146 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
4147 move to dwarf2_per_objfile.
4148 <read_in_chain>: Remove.
4149 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
4150 remove_all_cus, age_comp_units>: New methods.
4151 <m_dwarf2_cus>: New member.
4152 (struct dwarf2_per_cu_data) <cu>: Remove.
4153 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
4154 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
4155 moved to methods of dwarf2_per_objfile.
4156 (dwarf2_clear_marks): Remove.
4157 (dwarf2_queue_item::~dwarf2_queue_item): Update.
4158 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
4159 (dwarf2_per_bfd::free_cached_comp_units): Remove.
4160 (dwarf2_per_objfile::remove_all_cus): New.
4161 (class free_cached_comp_units) <~free_cached_comp_units>:
4162 Update.
4163 (load_cu): Update.
4164 (dw2_do_instantiate_symtab): Adjust.
4165 (fill_in_sig_entry_from_dwo_entry): Adjust.
4166 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4167 (cutu_reader::cutu_reader): Likewise.
4168 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
4169 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
4170 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
4171 and dwarf2_per_objfile::age_comp_units.
4172 (load_partial_comp_unit): Update.
4173 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
4174 (process_queue): Likewise.
4175 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
4176 backlink.
4177 (dwarf2_read_addr_index): Likewise.
4178 (follow_die_offset): Likewise.
4179 (dwarf2_fetch_die_loc_sect_off): Likewise.
4180 (dwarf2_fetch_constant_bytes): Likewise.
4181 (dwarf2_fetch_die_type_sect_off): Likewise.
4182 (follow_die_sig_1): Likewise.
4183 (load_full_type_unit): Likewise.
4184 (read_signatured_type): Likewise.
4185 (dwarf2_cu::dwarf2_cu): Don't set cu field.
4186 (dwarf2_cu::~dwarf2_cu): Remove.
4187 (dwarf2_per_objfile::get_cu): New.
4188 (dwarf2_per_objfile::set_cu): New.
4189 (age_cached_comp_units): Rename to...
4190 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
4191 to std::unordered_map.
4192 (free_one_cached_comp_unit): Rename to...
4193 (dwarf2_per_objfile::remove_cu): ... this. Adjust
4194 to std::unordered_map.
4195 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
4196 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
4197 a dwarf2_per_objfile in data.
4198 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
4199 (dwarf2_clear_marks): Remove.
4200
4201 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4202
4203 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
4204 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
4205 (init_tu_and_read_dwo_dies): Likewise.
4206 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
4207 (cutu_reader::cutu_reader): Likewise.
4208 (load_partial_comp_unit): Likewise.
4209 (process_psymtab_comp_unit): Update.
4210 (build_type_psymtabs_1): Update.
4211 (process_skeletonless_type_unit): Update.
4212 (load_full_comp_unit): Update.
4213 (find_partial_die): Update.
4214 (dwarf2_read_addr_index): Update.
4215 (read_signatured_type): Update.
4216
4217 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4218
4219 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
4220 m_header_read_in>: New fields.
4221 <get_header>: New method.
4222 * dwarf2/read.c (per_cu_header_read_in): Remove.
4223 (dwarf2_per_cu_data::get_header): New.
4224 (dwarf2_per_cu_data::addr_size): Update.
4225 (dwarf2_per_cu_data::offset_size): Update.
4226 (dwarf2_per_cu_data::ref_addr_size): Update.
4227
4228 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4229
4230 * dwarf2/read.c (load_cu): Return dwarf2_cu.
4231 (dw2_do_instantiate_symtab): Update.
4232 (queue_and_load_all_dwo_tus): Change parameter from
4233 dwarf2_per_cu_data to dwarf2_cu.
4234 (dwarf2_fetch_die_loc_sect_off): Update.
4235 (dwarf2_fetch_constant_bytes): Update.
4236 (dwarf2_fetch_die_type_sect_off): Update.
4237
4238 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4239
4240 * dwarf2/read.c (process_full_comp_unit,
4241 process_full_type_unit): Remove per_cu, per_objfile paramters.
4242 Add dwarf2_cu parameter.
4243 (process_queue): Update.
4244
4245 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4246
4247 * dwarf2/read.c (create_cu_from_index_list): Replace
4248 dwarf2_per_objfile parameter with dwarf2_per_bfd.
4249 (create_cus_from_index_list): Likewise.
4250 (create_cus_from_index): Likewise.
4251 (create_signatured_type_table_from_index): Likewise.
4252 (create_cus_from_debug_names_list): Likewise.
4253 (create_cus_from_debug_names): Likewise.
4254 (dwarf2_read_gdb_index): Update.
4255 (dwarf2_read_debug_names): Update.
4256
4257 2020-05-27 Tom Tromey <tom@tromey.com>
4258 Simon Marchi <simon.marchi@efficios.com>
4259
4260 * dwarf2/read.h (struct dwarf2_per_objfile)
4261 <get_type_for_signatured_type, set_type_for_signatured_type>:
4262 New methods.
4263 <m_type_map>: New member.
4264 (struct signatured_type) <type>: Remove.
4265 * dwarf2/read.c
4266 (dwarf2_per_objfile::get_type_for_signatured_type,
4267 dwarf2_per_objfile::set_type_for_signatured_type): New.
4268 (get_signatured_type): Use new methods.
4269
4270 2020-05-27 Tom Tromey <tom@tromey.com>
4271 Simon Marchi <simon.marchi@efficios.com>
4272
4273 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4274 (struct dwarf2_per_objfile) <type_units>: New member.
4275 <get_type_unit_group_unshareable>: New method.
4276 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4277 num_symtabs, symtabs>: Remove; move to
4278 type_unit_group_unshareable.
4279 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4280 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4281 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4282
4283 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4284
4285 * dwarf2/read.h (struct dwarf2_per_cu_data):
4286 <dwarf2_per_objfile>: Remove.
4287 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4288 dwarf2_per_objfile.
4289 (create_signatured_type_table_from_index): Likewise.
4290 (create_signatured_type_table_from_debug_names): Likewise.
4291 (create_debug_type_hash_table): Likewise.
4292 (fill_in_sig_entry_from_dwo_entry): Likewise.
4293 (create_type_unit_group): Likewise.
4294 (read_comp_units_from_section): Likewise.
4295 (create_cus_hash_table): Likewise.
4296
4297 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4298
4299 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4300 dwarf2_per_cu_data::dwarf2_per_objfile.
4301 (compute_compunit_symtab_includes): Likewise.
4302 (dwarf2_cu::start_symtab): Likewise.
4303
4304 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4305
4306 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4307 parameter.
4308 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4309 (read_namespace_alias): Update.
4310 (lookup_die_type): Update.
4311 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4312 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4313 Update.
4314 (disassemble_dwarf_expression): Update.
4315
4316 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4317
4318 * dwarf2/read.h (struct dwarf2_queue_item): Add
4319 dwarf2_per_objfile parameter, assign new parameter.
4320 <per_objfile>: New field.
4321 * dwarf2/read.c (free_one_cached_comp_unit): Add
4322 dwarf2_per_objfile parameter.
4323 (queue_comp_unit): Likewise.
4324 (dw2_do_instantiate_symtab): Update.
4325 (process_psymtab_comp_unit): Update.
4326 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4327 (process_imported_unit_die): Update.
4328 (queue_and_load_dwo_tu): Update.
4329 (follow_die_offset): Update.
4330 (follow_die_sig_1): Update.
4331
4332 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4333
4334 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4335 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4336 (read_call_site_scope): Assign per_objfile.
4337 (dwarf2_per_cu_data::objfile): Remove.
4338 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4339 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4340 dwarf2_per_objfile parameter.
4341 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4342 dwarf2_per_objfile parameter.
4343 (dwarf_expr_reg_to_entry_parameter): Add output
4344 dwarf2_per_objfile parameter.
4345 (locexpr_get_frame_base): Update.
4346 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4347 <push_dwarf_reg_entry_value>: Update.
4348 <call_site_to_target_addr>: Update.
4349 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4350 parameter.
4351 (value_of_dwarf_reg_entry): Update.
4352 (rw_pieced_value): Update.
4353 (indirect_synthetic_pointer): Update.
4354 (dwarf2_evaluate_property): Update.
4355 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4356 parameter.
4357 (locexpr_read_variable): Update.
4358 (locexpr_get_symbol_read_needs): Update.
4359 (loclist_read_variable): Update.
4360
4361 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4362
4363 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4364 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4365 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4366 parameter.
4367 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4368 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4369 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4370 parameter.
4371 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4372 sect_variable_value): Add dwarf2_per_objfile parameter.
4373 (class dwarf_evaluate_loc_desc) <dwarf_call,
4374 dwarf_variable_value>: Update.
4375 (fetch_const_value_from_synthetic_pointer): Add
4376 dwarf2_per_objfile parameter.
4377 (fetch_const_value_from_synthetic_pointer): Update.
4378 (coerced_pieced_ref): Update.
4379 (class symbol_needs_eval_context) <dwarf_call,
4380 dwarf_variable_value>: Update.
4381 (dwarf2_compile_expr_to_ax): Update.
4382
4383 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4384
4385 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4386 parameter.
4387 (dwarf2_evaluate_loc_desc_full): Update.
4388
4389 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4390
4391 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4392 parameter.
4393 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4394 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4395 dwarf2_per_objfile parameter.
4396 (decode_debug_loc_dwo_addresses): Likewise.
4397 (dwarf2_find_location_expression): Update.
4398 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4399 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4400 parameter.
4401 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4402 parameter.
4403 (locexpr_describe_location_1): Likewise.
4404 (locexpr_describe_location): Update.
4405
4406 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4407
4408 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4409 Remove.
4410 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4411 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4412 (dwarf2_compile_property_to_c): Update.
4413 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4414 use text offset from objfile.
4415 (locexpr_tracepoint_var_ref): Update.
4416 (locexpr_generate_c_location): Update.
4417 (loclist_describe_location): Update.
4418 (loclist_tracepoint_var_ref): Update.
4419 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4420 dwarf2_per_objfile parameter.
4421 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4422 use text offset from objfile.
4423 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4424
4425 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4426
4427 * dwarf2/expr.h (struct dwarf_expr_context)
4428 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4429 <offset>: Remove.
4430 <per_objfile>: New member.
4431 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4432 dwarf2_per_objfile parameter. Don't set offset, set
4433 per_objfile.
4434 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4435 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4436 a dwarf2_per_objfile object instead of an offset.
4437 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4438 constructor.
4439 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4440 to dwarf2_expr_executor constructor. Don't set offset.
4441 (dwarf2_fetch_cfa_info): Update.
4442 (struct dwarf2_frame_cache) <text_offset>: Remove.
4443 <per_objfile>: New field.
4444 (dwarf2_frame_cache): Update.
4445 (dwarf2_frame_prev_register): Update.
4446 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4447 <dwarf_evaluate_loc_desc>: Add constructor.
4448 (dwarf2_evaluate_loc_desc_full): Update.
4449 (dwarf2_locexpr_baton_eval): Update.
4450 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4451 Add constructor.
4452 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4453
4454 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4455
4456 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4457 addr_sized_int_type>: Move to dwarf2_cu.
4458 <int_type>: Move to dwarf2_per_objfile.
4459 (struct dwarf2_per_objfile) <int_type>: Move here.
4460 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4461 addr_sized_int_type>: Move here.
4462 (read_func_scope): Update.
4463 (read_array_type): Update.
4464 (read_tag_string_type): Update.
4465 (attr_to_dynamic_prop): Update.
4466 (dwarf2_per_cu_data::int_type): Rename to...
4467 (dwarf2_per_objfile::int_type): ... this.
4468 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4469 (dwarf2_cu::addr_sized_int_type): ... this.
4470 (read_subrange_type): Update.
4471 (dwarf2_per_cu_data::addr_type): Rename to...
4472 (dwarf2_cu::addr_type): ... this.
4473 (set_die_type): Update.
4474
4475 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4476
4477 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4478 data through per_cu->cu.
4479
4480 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4481
4482 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4483 dwarf2_per_cu_data parameter fo dwarf2_cu.
4484 (lookup_dwo_type_unit): Likewise.
4485 (read_cutu_die_from_dwo): Likewise.
4486 (lookup_dwo_unit): Likewise.
4487 (open_and_init_dwo_file): Likewise.
4488 (lookup_dwo_cutu): Likewise.
4489 (lookup_dwo_comp_unit): Likewise.
4490 (lookup_dwo_type_unit): Likewise.
4491 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4492 (cutu_reader::cutu_reader): Update.
4493
4494 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4495
4496 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4497 parameter.
4498 (process_full_type_unit): Likewise.
4499 (process_queue): Update.
4500
4501 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4502
4503 * dwarf2/read.c (recursively_compute_inclusions): Add
4504 dwarf2_per_objfile parameter.
4505 (compute_compunit_symtab_includes): Likewise.
4506 (process_cu_includes): Update.
4507
4508 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4509
4510 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4511 parameter.
4512 (create_type_unit_group): Update.
4513 (process_psymtab_comp_unit_reader): Update.
4514 (build_type_psymtabs_reader): Update.
4515
4516 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4517
4518 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4519 object through m_this_cu->cu.
4520
4521 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4522
4523 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4524 the info parameter.
4525 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4526
4527 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4528
4529 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4530 per_objfile parameter.
4531 (load_full_type_unit): Add per_objfile parameter.
4532 (read_signatured_type): Likewise.
4533 (load_full_comp_unit): Likewise.
4534 (load_cu): Likewise.
4535 (dw2_do_instantiate_symtab): Likewise.
4536 (dw2_get_file_names): Likewise.
4537 (dw2_map_symtabs_matching_filename): Update.
4538 (dw_expand_symtabs_matching_file_matcher): Update.
4539 (dw2_map_symbol_filenames): Update.
4540 (process_psymtab_comp_unit): Add per_objfile parameter.
4541 (build_type_psymtabs_1): Update.
4542 (process_skeletonless_type_unit): Update.
4543 (dwarf2_build_psymtabs_hard): Update.
4544 (load_partial_comp_unit): Add per_objfile parameter.
4545 (scan_partial_symbols): Update.
4546 (load_full_comp_unit): Add per_objfile parameter.
4547 (process_imported_unit_die): Update.
4548 (create_cus_hash_table): Update.
4549 (find_partial_die): Update.
4550 (dwarf2_read_addr_index): Update.
4551 (follow_die_offset): Update.
4552 (dwarf2_fetch_die_loc_sect_off): Update.
4553 (dwarf2_fetch_constant_bytes): Update.
4554 (dwarf2_fetch_die_type_sect_off): Update.
4555 (follow_die_sig_1): Update.
4556 (load_full_type_unit): Add per_objfile parameter.
4557 (read_signatured_type): Likewise.
4558
4559 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4560
4561 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4562 of objfile_name.
4563
4564 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4565
4566 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4567 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4568 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4569 field.
4570 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4571 (create_cus_from_index): Update.
4572 (dwarf2_read_gdb_index): Update.
4573 (create_cus_from_debug_names): Update.
4574 (dwarf2_read_debug_names): Update.
4575 (get_abbrev_section_for_cu): Update.
4576 (create_all_comp_units): Update.
4577 (read_attribute_value): Update.
4578 (get_debug_line_section): Update.
4579 * dwarf2/index-cache.c (index_cache::store): Update.
4580 * dwarf2/index-write.c (save_gdb_index_command): Update.
4581 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4582
4583 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4584
4585 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4586 member.
4587 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4588 dwarf2_per_cu_data::per_bfd.
4589 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4590 (create_type_unit_group): Likewise.
4591 (queue_comp_unit): Remove reference to
4592 per_cu->dwarf2_per_objfile.
4593 (maybe_queue_comp_unit): Likewise.
4594 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4595 (create_cus_hash_table): Assign new field.
4596
4597 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4598
4599 * dwarf2/read.c: Replace
4600 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4601 dwarf2_cu->per_objfile throughout.
4602
4603 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4604
4605 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4606 parameter, don't use per_cu->dwarf2_per_objfile.
4607 (dw2_instantiate_symtab): Likewise.
4608 (dw2_find_last_source_symtab): Update.
4609 (dw2_map_expand_apply): Update.
4610 (dw2_lookup_symbol): Update.
4611 (dw2_expand_symtabs_for_function): Update.
4612 (dw2_expand_all_symtabs): Update.
4613 (dw2_expand_symtabs_with_fullname): Update.
4614 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4615 don't use per_cu->dwarf2_per_objfile.
4616 (dw2_expand_marked_cus): Update.
4617 (dw2_find_pc_sect_compunit_symtab): Update.
4618 (dw2_debug_names_lookup_symbol): Update.
4619 (dw2_debug_names_expand_symtabs_for_function): Update.
4620 (dw2_debug_names_map_matching_symbols): Update.
4621 (dwarf2_psymtab::expand_psymtab): Update.
4622
4623 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4624
4625 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4626 <per_objfile>: New member.
4627 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4628 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4629 call to dwarf2_cu.
4630 (cutu_reader::cutu_reader): Update.
4631 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4632
4633 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4634
4635 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4636 struct dwarf2_per_objfile.
4637 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4638 dwarf2_per_bfd.
4639 * dwarf2/read.c (set_die_type): Update.
4640 (get_die_type_at_offset): Update.
4641
4642 2020-05-27 Tom Tromey <tom@tromey.com>
4643 Simon Marchi <simon.marchi@efficios.com>
4644
4645 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4646 method.
4647 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4648 get_symtab, set_symtab>: New methods.
4649 <m_symtabs>: New field.
4650 (struct dwarf2_psymtab): Derive from partial_symtab.
4651 <readin_p, get_compunit_symtab>: Declare methods.
4652 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4653 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4654 New methods.
4655 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4656 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4657 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4658 (dw2_symtab_iter_next, dw2_print_stats)
4659 (dw2_expand_symtabs_with_fullname)
4660 (dw2_expand_symtabs_matching_one)
4661 (dw_expand_symtabs_matching_file_matcher)
4662 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4663 (dw2_debug_names_iterator::next)
4664 (dw2_debug_names_map_matching_symbols)
4665 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4666 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4667 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4668 New methods.
4669 (get_compunit_symtab, process_full_comp_unit)
4670 (process_full_type_unit): Update.
4671 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4672
4673 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4674
4675 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4676 then introduce a new dwarf2_per_objfile type.
4677 <read_line_string>: Move to the new dwarf2_per_objfile type.
4678 <objfile>: Likewise.
4679 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4680 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4681 dwarf2_per_objfile->per_bfd.
4682 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4683 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4684 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4685 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4686 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4687 (dwarf2_per_objfile::locate_sections): Rename to...
4688 (dwarf2_per_bfd::locate_sections): ... this.
4689 (dwarf2_per_objfile::get_cutu): Rename to...
4690 (dwarf2_per_bfd::get_cutu): ... this.
4691 (dwarf2_per_objfile::get_cu): Rename to...
4692 (dwarf2_per_bfd::get_cu): ... this.
4693 (dwarf2_per_objfile::get_tu): Rename to...
4694 (dwarf2_per_bfd::get_tu): ... this.
4695 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4696 (dwarf2_per_bfd::allocate_per_cu): ... this.
4697 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4698 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4699 (get_gdb_index_contents_ftype): Change parameter from
4700 dwarf2_per_objfile to dwarf2_per_bfd.
4701 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4702 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4703
4704 2020-05-27 Tom Tromey <tom@tromey.com>
4705 Simon Marchi <simon.marchi@efficios.com>
4706
4707 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4708 (allocate_piece_closure): Set "per_objfile" member.
4709 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4710 (locexpr_describe_location, loclist_describe_location): Use new
4711 member.
4712 * dwarf2/read.c (read_call_site_scope)
4713 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4714 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4715 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4716 handle_data_member_location): Set per_objfile member.
4717 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4718 member.
4719 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4720
4721 2020-05-27 Tom Tromey <tom@tromey.com>
4722
4723 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4724 allocate_signatured_type>: Declare new methods.
4725 <m_num_psymtabs>: New member.
4726 (struct dwarf2_per_cu_data) <index>: New member.
4727 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4728 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4729 (create_cu_from_index_list): Use allocate_per_cu.
4730 (create_signatured_type_table_from_index)
4731 (create_signatured_type_table_from_debug_names)
4732 (create_debug_type_hash_table, add_type_unit)
4733 (read_comp_units_from_section): Use allocate_signatured_type.
4734
4735 2020-05-27 Tom Tromey <tom@tromey.com>
4736
4737 * psymtab.c (partial_map_expand_apply)
4738 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4739 (psym_lookup_global_symbol_language)
4740 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4741 (psym_print_stats, psym_expand_symtabs_for_function)
4742 (psym_map_symbol_filenames, psym_map_matching_symbols)
4743 (psym_expand_symtabs_matching)
4744 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4745 (maintenance_check_psymtabs): Update.
4746 * psympriv.h (struct partial_symtab) <readin_p,
4747 get_compunit_symtab>: Add objfile parameter.
4748 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4749 Likewise.
4750 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4751 get_compunit_symtab>: Likewise.
4752 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4753
4754 2020-05-27 Tom Tromey <tom@tromey.com>
4755
4756 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4757 member.
4758 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4759 (create_cu_from_index_list)
4760 (create_signatured_type_table_from_index)
4761 (create_signatured_type_table_from_debug_names)
4762 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4763 (dwarf2_create_include_psymtab)
4764 (create_debug_type_hash_table, add_type_unit)
4765 (create_type_unit_group, read_comp_units_from_section)
4766 (dwarf2_compute_name, create_cus_hash_table)
4767 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4768 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4769 obstack.
4770 (dw2_get_real_path): Likewise. Change argument to
4771 dwarf2_per_objfile.
4772
4773 2020-05-27 Luis Machado <luis.machado@linaro.org>
4774
4775 PR tdep/26000
4776 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4777 for ldrd (immediate).
4778
4779 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4780
4781 * command.h: Add comment giving the name of class_tui.
4782 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4783 create the fake command for the help for class_tui.
4784
4785 2020-05-26 Tom Tromey <tromey@adacore.com>
4786
4787 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4788 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4789 (val_atr): New function.
4790 (value_val_atr): Use it.
4791 * ada-valprint.c (print_optional_low_bound): Change low bound
4792 handling for enums.
4793 (val_print_packed_array_elements): Don't call discrete_position.
4794 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4795 discrete_position for enum types.
4796 * language.c (default_print_array_index): Change type.
4797 * language.h (struct language_defn) <la_print_array_index>: Add
4798 index_type parameter, change type of index_value.
4799 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4800 (default_print_array_index): Update.
4801 * valprint.c (maybe_print_array_index): Don't call
4802 value_from_longest. Update.
4803 (value_print_array_elements): Don't call discrete_position.
4804
4805 2020-05-26 Tom Tromey <tromey@adacore.com>
4806
4807 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4808 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4809
4810 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4811
4812 PR gdb/13519
4813 * avr-tdep.c (avr_integer_to_address): Return data or code
4814 address accordingly to the second 'type' argument of the
4815 function.
4816
4817 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4818
4819 * infcmd.c, inferior.h: (construct_inferior_arguments):
4820 Moved function from here to gdbsupport/common-inferior.{h,cc}
4821
4822 2020-05-23 Tom Tromey <tom@tromey.com>
4823
4824 Revert commit eca1f90c:
4825 * NEWS: Remove entry for completion styling.
4826 * completer.c (_rl_completion_prefix_display_length): Move
4827 declaration later.
4828 (gdb_fnprint): Revert.
4829 (gdb_display_match_list_1): Likewise.
4830 * cli/cli-style.c (completion_prefix_style)
4831 (completion_difference_style, completion_suffix_style): Remove.
4832 (_initialize_cli_style): Revert.
4833 * cli/cli-style.h (completion_prefix_style)
4834 (completion_difference_style, completion_suffix_style): Don't
4835 declare.
4836
4837 2020-05-24 Pedro Alves <palves@redhat.com>
4838
4839 * symtab.c (completion_list_add_name): Return boolean indication
4840 of whether the symbol matched.
4841 (completion_list_add_symbol): Don't try to remove C++ aliases if
4842 the symbol didn't match in the first place.
4843 * symtab.h (completion_list_add_name): Return bool.
4844
4845 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4846
4847 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4848 type::field.
4849
4850 2020-05-23 Joel Brobecker <brobecker@adacore.com>
4851
4852 GDB 9.2 released.
4853
4854 2020-05-23 Tom Tromey <tom@tromey.com>
4855
4856 * NEWS: Add entry for completion styling.
4857 * completer.c (_rl_completion_prefix_display_length): Move
4858 declaration earlier.
4859 (gdb_fnprint): Use completion_style.
4860 (gdb_display_match_list_1): Likewise.
4861 * cli/cli-style.c (completion_prefix_style)
4862 (completion_difference_style, completion_suffix_style): New
4863 globals.
4864 (_initialize_cli_style): Register new globals.
4865 * cli/cli-style.h (completion_prefix_style)
4866 (completion_difference_style, completion_suffix_style): Declare.
4867
4868 2020-05-23 Pedro Alves <palves@redhat.com>
4869
4870 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4871 (parse_escape): Use ISDIGIT instead of isdigit.
4872 (puts_debug): Use gdb_isprint instead of isprint.
4873 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4874 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4875 ISSPACE instead of isspace.
4876 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4877 instead of isspace.
4878 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4879 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4880 instead of isxdigit and ISDIGIT instead of isdigit.
4881
4882 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4883
4884 * gdbtypes.h (struct type) <field>: New method.
4885 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4886 or type::field.
4887
4888 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4889
4890 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4891 (TYPE_FIELDS): Use type::fields. Change all call sites that
4892 modify the propery to use type::set_fields instead.
4893
4894 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4895
4896 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4897 type::num_fields instead.
4898
4899 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4900
4901 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4902 methods.
4903 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4904 that modify the number of fields to use type::set_num_fields
4905 instead.
4906
4907 2020-05-22 Tom Tromey <tromey@adacore.com>
4908
4909 * compile/compile-object-load.h (munmap_list_free): Don't
4910 declare.
4911
4912 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4913
4914 * annotate.c (annotate_source_line): Update return type, add call
4915 to update current symtab and line.
4916 * annotate.h (annotate_source_line): Update return type, and
4917 extend header comment.
4918 * source.c (info_line_command): Check annotation_level before
4919 calling annotate_source_line.
4920 * stack.c (print_frame_info): If calling annotate_source_line
4921 returns true, then don't print any other source line information.
4922
4923 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4924
4925 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4926
4927 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4928
4929 * coffread.c (patch_type): Remove NULL check before xfree.
4930 * corefile.c (set_gnutarget): Likewise.
4931 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4932 * exec.c (build_section_table): Likewise.
4933 * remote.c (remote_target::pass_signals): Likewise.
4934 * utils.c (n_spaces): Likewise.
4935 * cli/cli-script.c (document_command): Likewise.
4936 * i386-windows-tdep.c (core_process_module_section): Likewise.
4937 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4938
4939 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
4940
4941 * symfile.c (reread_symbols): Clear objfile's section_offsets
4942 vector and section indices, re-compute them by calling
4943 sym_offsets.
4944
4945 2020-05-20 Tom Tromey <tromey@adacore.com>
4946
4947 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
4948 (desc_one_bound, desc_index_type): Compute field name.
4949
4950 2020-05-20 Tom de Vries <tdevries@suse.de>
4951
4952 PR symtab/25833
4953 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4954
4955 2020-05-20 Alan Modra <amodra@gmail.com>
4956
4957 PR 25993
4958 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4959 bfd_set_filename.
4960 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4961 passed to bfd_set_filename.
4962 * symfile-mem.c (add_vsyscall_page): Likewise for string
4963 passed to symbol_file_add_from_memory.
4964 (symbol_file_add_from_memory): Make name param a const char* and
4965 don't strdup.
4966
4967 2020-05-20 Alan Modra <amodra@gmail.com>
4968
4969 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4970 rather than accessing bfd->filename directly.
4971 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4972 and use bfd_section_name.
4973 * dwarf2/frame.c (decode_frame_entry): Likewise.
4974 * exec.c (exec_set_section_address): Likewise.
4975 * solib-aix.c (solib_aix_bfd_open): Likewise.
4976 * stap-probe.c (get_stap_base_address): Likewise.
4977 * symfile.c (reread_symbols): Likewise.
4978
4979 2020-05-19 Tom Tromey <tromey@adacore.com>
4980
4981 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4982
4983 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4984
4985 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4986
4987 2020-05-19 Pedro Alves <palves@redhat.com>
4988
4989 * NEWS (set exec-file-mismatch): Adjust entry.
4990 * exec.c: Include "build-id.h".
4991 (validate_exec_file): Try to match build IDs instead of filenames.
4992 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4993 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4994 and pass down 'warn_if_slow'.
4995 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4996 gdb_bfd_open_closure to pass it down.
4997 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4998
4999 2020-05-19 Pedro Alves <palves@redhat.com>
5000
5001 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
5002 * target.c (target_fileio_open_1): Rename to target_fileio_open
5003 and make extern. Use bool.
5004 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
5005 (target_fileio_read_alloc_1): Adjust.
5006 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
5007 (target_fileio_open_warn_if_slow): Delete declaration.
5008
5009 2020-05-19 Pedro Alves <palves@redhat.com>
5010
5011 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
5012 Adjust all callers.
5013
5014 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
5015
5016 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
5017 whether disp is negative.
5018
5019 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5020
5021 * symfile.h (struct symfile_segment_data)
5022 <~symfile_segment_data>: Remove.
5023 <segment_info>: Change to std::vector.
5024 * symfile.c (default_symfile_segments): Update.
5025 * elfread.c (elf_symfile_segments): Update.
5026
5027 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5028
5029 * symfile.h (struct symfile_segment_data) <struct segment>: New.
5030 <segments>: New.
5031 <segment_bases, segment_sizes>: Remove.
5032 * symfile.c (default_symfile_segments): Update.
5033 * elfread.c (elf_symfile_segments): Update.
5034 * remote.c (remote_target::get_offsets): Update.
5035 * solib-target.c (solib_target_relocate_section_addresses):
5036 Update.
5037
5038 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5039
5040 * symfile.h (struct symfile_segment_data): Initialize fields.
5041 <~symfile_segment_data>: Add.
5042 (symfile_segment_data_up): New.
5043 (struct sym_fns) <sym_segments>: Return a
5044 symfile_segment_data_up.
5045 (default_symfile_segments): Return a symfile_segment_data_up.
5046 (free_symfile_segment_data): Remove.
5047 (get_symfile_segment_data): Return a symfile_segment_data_up.
5048 * symfile.c (default_symfile_segments): Likewise.
5049 (get_symfile_segment_data): Likewise.
5050 (free_symfile_segment_data): Remove.
5051 (symfile_find_segment_sections): Update.
5052 * elfread.c (elf_symfile_segments): Return a
5053 symfile_segment_data_up.
5054 * remote.c (remote_target::get_offsets): Update.
5055 * solib-target.c (solib_target_relocate_section_addresses):
5056 Update.
5057 * symfile-debug.c (debug_sym_segments): Return a
5058 symfile_segment_data_up.
5059
5060 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5061
5062 PR build/25981
5063 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
5064 Hardcode register numbers.
5065
5066 PR build/25981
5067 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
5068 procfs_find_LDT_entry): Remove.
5069 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
5070 procfs_find_LDT_entry): Remove.
5071 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
5072 Remove.
5073
5074 2020-05-17 Pedro Alves <palves@redhat.com>
5075 Andrew Burgess <andrew.burgess@embecosm.com>
5076 Keno Fischer <keno@juliacomputing.com>
5077
5078 PR gdb/25741
5079 * breakpoint.c (build_target_condition_list): Update comments.
5080 (build_target_command_list): Update comments and skip matching
5081 locations.
5082 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
5083 a separate function. Simplify "set breakpoint auto-hw off"
5084 handling.
5085 (insert_breakpoints): Update comment.
5086 (tracepoint_locations_match): New parameter. For breakpoints,
5087 compare location types too, if the caller wants to.
5088 (handle_automatic_hardware_breakpoints): New functions.
5089 (bp_location_is_less_than): Also sort by location type and
5090 hardware breakpoint length.
5091 (update_global_location_list): Handle "set breakpoint auto-hw on"
5092 here.
5093 (update_breakpoint_locations): Ask breakpoint_locations_match to
5094 ignore location types.
5095
5096 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5097
5098 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
5099 type::name instead.
5100
5101 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5102
5103 * gdbtypes.h (struct type) <name, set_name>: New methods.
5104 (TYPE_CODE): Use type::name. Change all call sites used to set
5105 the name to use type::set_name instead.
5106
5107 2020-05-16 Tom Tromey <tom@tromey.com>
5108
5109 * top.c (quit_force): Update.
5110 * infrun.c (handle_no_resumed): Update.
5111 * top.h (all_uis): New function.
5112 (ALL_UIS): Remove.
5113
5114 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5115
5116 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
5117
5118 2020-05-16 Pedro Alves <palves@redhat.com>
5119
5120 * ia64-linux-nat.c
5121 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
5122 Declare method.
5123 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
5124
5125 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
5126
5127 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
5128 (sparc64_adi_info): Likewise.
5129
5130 2020-05-15 Tom Tromey <tom@tromey.com>
5131
5132 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
5133 block_objfile.
5134 (lookup_objfile_from_block): Remove.
5135 (lookup_symbol_in_block, lookup_symbol_in_static_block)
5136 (lookup_global_symbol): Use block_objfile.
5137 * symtab.h (lookup_objfile_from_block): Don't declare.
5138 * printcmd.c (clear_dangling_display_expressions): Use
5139 block_objfile.
5140 * parse.c (operator_check_standard): Use block_objfile.
5141
5142 2020-05-15 Tom Tromey <tom@tromey.com>
5143
5144 * language.c (language_alloc_type_symbol): Set
5145 SYMBOL_SECTION.
5146 * symtab.c (initialize_objfile_symbol): Remove.
5147 (allocate_symbol): Remove.
5148 (allocate_template_symbol): Remove.
5149 * dwarf2/read.c (fixup_go_packaging): Use "new".
5150 (new_symbol): Use "new".
5151 (read_variable): Don't call initialize_objfile_symbol. Use
5152 "new".
5153 (read_func_scope): Use "new".
5154 * xcoffread.c (process_xcoff_symbol): Don't call
5155 initialize_objfile_symbol.
5156 (SYMBOL_DUP): Remove.
5157 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
5158 "new".
5159 * symtab.h (allocate_symbol, initialize_objfile_symbol)
5160 (allocate_template_symbol): Don't declare.
5161 (struct symbol): Add copy constructor. Change defaults.
5162 * jit.c (finalize_symtab): Use "new".
5163 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
5164 Use "new".
5165 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5166 (common_block_end): Use "new".
5167 * mdebugread.c (parse_symbol): Use "new".
5168 (new_symbol): Likewise.
5169
5170 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5171
5172 * NEWS: Mention changes to help and apropos.
5173
5174 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5175
5176 * command.h (enum command_class): Improve comments, document
5177 that class_alias is for user-defined aliases, give the class
5178 name for each class, remove unused class_xdb.
5179 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
5180 * breakpoint.c (_initialize_breakpoint): Replace class_alias
5181 by a precise class.
5182 * infcmd.c (_initialize_infcmd): Likewise.
5183 * reverse.c (_initialize_reverse): Likewise.
5184 * stack.c (_initialize_stack): Likewise.
5185 * symfile.c (_initialize_symfile): Likewise.
5186 * tracepoint.c (_initialize_tracepoint): Likewise.
5187
5188 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5189
5190 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
5191 when their aliased command is traversed.
5192 (help_cmd): Add fput_command_names_styled call to
5193 output command name and aliases when command has an alias.
5194
5195 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5196
5197 * cli/cli-decode.h (help_cmd_list): Remove declaration.
5198 * cli/cli-decode.c (help_cmd_list): Declare as static,
5199 remove prefix argument, use bool for recurse arg, rework to show the aliases of
5200 a command together with the command.
5201 (fput_command_name_styled, fput_command_names_styled): New functions.
5202 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
5203 fput_command_name_styled.
5204 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
5205 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
5206
5207 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5208
5209 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
5210 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
5211 * command.h (cmd_show_list): Likewise.
5212 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
5213 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
5214
5215 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5216
5217 * unittests/command-def-selftests.c (traverse_command_structure):
5218 Verify all commands of a list have the same prefix command and
5219 that only the top cmdlist commands have a null prefix.
5220
5221 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5222
5223 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
5224 as prefix, not one of its aliases.
5225 (set_cmd_prefix): Remove.
5226 (do_add_cmd): Centralize the setting of the prefix of a command, when
5227 command is defined after its full chain of prefix commands.
5228 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
5229 (add_setshow_cmd_full): Likewise.
5230 (update_prefix_field_of_prefixed_commands): New function.
5231 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
5232 update_prefix_field_of_prefixed_commands.
5233 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
5234 addresses of remote_set_cmdlist and remote_show_cmdlist given
5235 as argument, not the address of an argument.
5236 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5237 * gdb/remote.c (_initialize_remote): Likewise.
5238
5239 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5240
5241 * cli/cli-cmds.c (alias_command): Check for an existing alias
5242 using lookup_cmd_composition, as valid_command_p is too strict
5243 and forbids aliases that are the prefix of an existing alias
5244 or command.
5245 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5246 command is properly recognised as a valid command.
5247
5248 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5249
5250 * unittests/help-doc-selftests.c: Rename to
5251 unittests/command-def-selftests.c
5252 * unittests/command-def-selftests.c (help_doc_tests): Update some
5253 comments.
5254 (command_structure_tests, traverse_command_structure): New namespace
5255 and function.
5256 (command_structure_invariants_tests): New function.
5257 (_initialize_command_def_selftests) Renamed from
5258 _initialize_help_doc_selftests, register command_structure_invariants
5259 selftest.
5260
5261 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5262
5263 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5264 an alias of 'show'.
5265
5266 2020-05-15 Joel Brobecker <brobecker@adacore.com>
5267
5268 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5269 ada_is_fixed_point_type. Update all callers.
5270 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5271 all callers.
5272 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5273 Update all callers.
5274 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5275 print_fixed_point_type. Update all callers.
5276 * ada-valprint.c (ada_value_print_num): Replace call to
5277 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5278
5279 2020-05-14 Kevin Buettner <kevinb@redhat.com>
5280
5281 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5282 processors.
5283 (cpu_supports_bts): Add CV_AMD case.
5284
5285 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5286 Simon Marchi <simon.marchi@efficios.com>
5287
5288 * infrun.c (stop_all_threads): Collect multiple wait events at
5289 each pass.
5290
5291 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5292
5293 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5294 type::code instead.
5295
5296 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5297
5298 * gdbtypes.h (struct type) <code, set_code>: New methods.
5299 (TYPE_CODE): Use type::code. Change all call sites used to set
5300 the code to use type::set_code instead.
5301
5302 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5303 Tom de Vries <tdevries@suse.de>
5304 Pedro Alves <palves@redhat.com>
5305
5306 PR threads/25478
5307 * infrun.c (stop_all_threads): Do NOT ignore
5308 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5309 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5310 received.
5311 (handle_no_resumed): Remove code handling a live inferior with no
5312 threads.
5313 * remote.c (has_single_non_exited_thread): New.
5314 (remote_target::update_thread_list): Do not delete a thread if is
5315 the last thread of the process.
5316 * thread.c (thread_select): Call delete_exited_threads instead of
5317 prune_threads.
5318
5319 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5320
5321 * infrun.c (stop_all_threads): Enable/disable thread events of all
5322 targets. Move a debug message denoting the end of the function
5323 into the SCOPED_EXIT block.
5324
5325 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5326
5327 * process-stratum-target.h: Include <set>.
5328 (all_non_exited_process_targets, switch_to_target_no_thread): New
5329 function declarations.
5330 * process-stratum-target.c (all_non_exited_process_targets)
5331 (switch_to_target_no_thread): New function implementations.
5332
5333 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5334
5335 * infrun.c (handle_inferior_event): Extract out a piece of code
5336 into...
5337 (mark_non_executing_threads): ...this new function.
5338
5339 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5340
5341 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5342 use.
5343
5344 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5345
5346 * regcache.c (regcache_read_pc_protected): New function
5347 implementation that returns 0 if the PC cannot read via
5348 'regcache_read_pc'.
5349 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5350 instead of 'regcache_read_pc'.
5351 (keep_going_pass_signal): Ditto.
5352
5353 2020-05-13 Tom Tromey <tromey@adacore.com>
5354
5355 * ada-lang.c (align_value): Remove.
5356 (ada_template_to_fixed_record_type_1): Use align_up.
5357
5358 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5359
5360 * async-event.c: Update the copyright year.
5361 * async-event.h: Update the copyright year.
5362
5363 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
5364
5365 * objfiles.h (is_addr_in_objfile,
5366 shared_objfile_contains_address_p): Return bool.
5367 * objfile.c (is_addr_in_objfile,
5368 shared_objfile_contains_address_p): Return bool.
5369
5370 2020-05-11 Tom Tromey <tromey@adacore.com>
5371
5372 * cli/cli-cmds.c (info_command): Restore.
5373 (_initialize_cli_cmds): Use add_prefix_command for "info".
5374 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5375
5376 2020-05-11 Tom Tromey <tromey@adacore.com>
5377
5378 * ada-lang.c (ada_value_primitive_field): Now public.
5379 * ada-lang.h (ada_value_primitive_field): Declare.
5380 * ada-valprint.c (print_field_values): Use
5381 ada_value_primitive_field for wrapper fields.
5382
5383 2020-05-11 Tom de Vries <tdevries@suse.de>
5384
5385 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5386 MODULE_DOMAIN.
5387
5388 2020-05-11 Tom de Vries <tdevries@suse.de>
5389
5390 PR symtab/25941
5391 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5392 with length 0, if not gdb-produced.
5393 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5394
5395 2020-05-09 Tom de Vries <tdevries@suse.de>
5396
5397 PR gdb/25955
5398 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5399 calculation.
5400
5401 2020-05-09 Tom Tromey <tom@tromey.com>
5402
5403 * top.c (server_command): Now bool.
5404 * top.h (server_command): Now bool.
5405
5406 2020-05-08 Tom Tromey <tromey@adacore.com>
5407
5408 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5409 already being processed.
5410
5411 2020-05-08 Tom Tromey <tom@tromey.com>
5412
5413 * printcmd.c (struct display) <next>: Remove.
5414 <display>: New constructor.
5415 <exp_string>: Now a std::string.
5416 <enabled_p>: Now a bool.
5417 (display_number): Move definition earlier.
5418 (displays): Rename from display_chain. Now a std::vector.
5419 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5420 (display_command): Update.
5421 (do_one_display, disable_display)
5422 (enable_disable_display_command, do_enable_disable_display):
5423 Update.
5424 (free_display): Remove.
5425 (clear_displays): Rewrite.
5426 (delete_display): Update.
5427 (map_display_numbers): Use function_view. Remove "data"
5428 parameter. Update.
5429 (do_delete_display): Remove.
5430 (undisplay_command): Update.
5431 (do_one_display, do_displays, disable_display)
5432 (info_display_command): Update.
5433 (do_enable_disable_display): Remove.
5434 (enable_disable_display_command)
5435 (clear_dangling_display_expressions): Update.
5436
5437 2020-05-08 Tom Tromey <tom@tromey.com>
5438
5439 * symtab.c (set_symbol_cache_size)
5440 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5441 (maintenance_print_symbol_cache_statistics): Update.
5442 * symmisc.c (print_symbol_bcache_statistics)
5443 (print_objfile_statistics, maintenance_print_objfiles)
5444 (maintenance_info_symtabs, maintenance_check_symtabs)
5445 (maintenance_expand_symtabs, maintenance_info_line_tables):
5446 Update.
5447 * symfile-debug.c (set_debug_symfile): Update.
5448 * source.c (forget_cached_source_info): Update.
5449 * python/python.c (gdbpy_progspaces): Update.
5450 * psymtab.c (maintenance_info_psymtabs): Update.
5451 * probe.c (parse_probes): Update.
5452 * linespec.c (iterate_over_all_matching_symtabs)
5453 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5454 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5455 * exec.c (exec_target::close): Update.
5456 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5457 * breakpoint.c (print_one_breakpoint_location)
5458 (create_longjmp_master_breakpoint)
5459 (create_std_terminate_master_breakpoint): Update.
5460 * progspace.c (program_spaces): Now a std::vector.
5461 (maybe_new_address_space): Update.
5462 (add_program_space): Remove.
5463 (program_space::program_space): Update.
5464 (remove_program_space): Update.
5465 (number_of_program_spaces): Remove.
5466 (print_program_space, update_address_spaces): Update.
5467 * progspace.h (program_spaces): Change type.
5468 (ALL_PSPACES): Remove.
5469 (number_of_program_spaces): Don't declare.
5470 (struct program_space) <next>: Remove.
5471
5472 2020-05-08 Tom Tromey <tom@tromey.com>
5473
5474 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5475 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5476 (enable_break): Update.
5477 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5478 (frv_fdpic_find_canonical_descriptor): Update.
5479 (frv_fetch_objfile_link_map): Update.
5480 * progspace.c (program_space::free_all_objfiles): Update.
5481 (program_space::solibs): New method.
5482 * progspace.h (struct program_space) <solibs>: New method.
5483 * solist.h (master_so_list): Don't declare.
5484 (ALL_SO_LIBS): Remove.
5485 * solib.h (so_list_head): Remove.
5486 (update_solib_list): Update comment.
5487 * solib.c (master_so_list): Remove.
5488 (solib_used, update_solib_list, solib_add)
5489 (info_sharedlibrary_command, clear_solib)
5490 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5491
5492 2020-05-08 Tom Tromey <tom@tromey.com>
5493
5494 * extension.c (extension_languages): Now a std::array.
5495 (ALL_EXTENSION_LANGUAGES): Remove.
5496 (get_ext_lang_defn, get_ext_lang_of_file)
5497 (eval_ext_lang_from_control_command): Update.
5498 (finish_ext_lang_initialization)
5499 (auto_load_ext_lang_scripts_for_objfile)
5500 (ext_lang_type_printers::ext_lang_type_printers)
5501 (apply_ext_lang_type_printers)
5502 (ext_lang_type_printers::~ext_lang_type_printers)
5503 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5504 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5505 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5506 (get_matching_xmethod_workers, ext_lang_colorize)
5507 (ext_lang_before_prompt): Update.
5508 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5509
5510 2020-05-08 Tom Tromey <tom@tromey.com>
5511
5512 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5513 overload.
5514 <swap_string, m_string>: Remove.
5515 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5516 Update.
5517 * stabsread.c (define_symbol, read_type): Update.
5518 * linespec.c (find_linespec_symbols): Update.
5519 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5520 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5521 * dbxread.c (read_dbx_symtab): Update.
5522 * cp-support.h (cp_canonicalize_string_full)
5523 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5524 Return unique_xmalloc_ptr.
5525 * cp-support.c (inspect_type): Update.
5526 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5527 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5528 Likewise.
5529 * c-typeprint.c (print_name_maybe_canonical): Update.
5530 * break-catch-throw.c (check_status_exception_catchpoint):
5531 Update.
5532
5533 2020-05-08 Tom de Vries <tdevries@suse.de>
5534
5535 * infrun.c (follow_fork): Copy current_line and current_symtab to
5536 child thread.
5537
5538 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5539
5540 * async-event.c (struct async_signal_handler, struct
5541 async_event_handler): Reformat, remove typedef.
5542
5543 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5544
5545 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5546 access thistype->main_type->dyn_prop_list directly.
5547
5548 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5549
5550 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5551 (remove_dyn_prop): Remove. Update all users to use
5552 type::remove_dyn_prop.
5553 * gdbtypes.c (remove_dyn_prop): Rename to...
5554 (type::remove_dyn_prop): ... this.
5555
5556 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5557
5558 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5559 (add_dyn_prop): Remove. Update all users to use
5560 type::add_dyn_prop.
5561 * gdbtypes.c (add_dyn_prop): Rename to...
5562 (type::add_dyn_prop): ... this.
5563
5564 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5565
5566 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5567 (get_dyn_prop): Remove. Update all users to use
5568 type::dyn_prop.
5569 * gdbtypes.c (get_dyn_prop): Rename to...
5570 (type::dyn_prop): ... this.
5571
5572 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5573
5574 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5575
5576 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5577
5578 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5579 instruction, skip it if it's there.
5580
5581 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
5582
5583 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5584
5585 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
5586
5587 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5588 * gdbtypes.c (recursive_dump_type): Remove use of
5589 TYPE_INCOMPLETE.
5590
5591 2020-05-03 Tom Tromey <tom@tromey.com>
5592
5593 * breakpoint.c (catch_command, tcatch_command): Remove.
5594 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5595 add_show_prefix_cmd.
5596 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5597 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5598 Remove.
5599 (add_internal_problem_command): Use add_basic_prefix_cmd,
5600 add_show_prefix_cmd.
5601 * mips-tdep.c (set_mipsfpu_command): Remove.
5602 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5603 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5604 (_initialize_index_cache): Use add_basic_prefix_cmd.
5605 * memattr.c (dummy_cmd): Remove.
5606 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5607 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5608 (_initialize_tui_win): Use add_basic_prefix_cmd,
5609 add_show_prefix_cmd.
5610 * cli/cli-logging.c (set_logging_command): Remove.
5611 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5612 add_show_prefix_cmd.
5613 (show_logging_command): Remove.
5614 * target.c (target_command): Remove.
5615 (add_target): Use add_basic_prefix_cmd.
5616
5617 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
5618
5619 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5620
5621 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5622
5623 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5624 info_command.
5625
5626 2020-04-30 Kamil Rytarowski <n54@gmx.com>
5627
5628 * nbsd-nat.c (nbsd_enable_proc_events)
5629 (nbsd_nat_target::post_startup_inferior): Add.
5630 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5631 (nbsd_nat_target::update_thread_list): Rewrite.
5632 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5633 "PTRACE_LWP_CREATE".
5634 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5635
5636 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5637
5638 * stack.c (_initialize_stack): Remove duplicated creation
5639 of "frame" command and "f" alias.
5640
5641 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5642
5643 PR gdb/18706
5644 * gdbtypes.c (check_typedef): Calculate size of array of
5645 stubbed type.
5646
5647 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5648
5649 PR gdb/15559
5650 * i386-tdep.c (i386_push_dummy_call): Call
5651 i386_thiscall_push_dummy_call.
5652 (i386_thiscall_push_dummy_call): New function.
5653 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5654 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5655 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5656
5657 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5658
5659 * gdbarch.sh (do_read): Add shellcheck disable directive for
5660 warning SC2162.
5661
5662 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5663
5664 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5665 "referenced but not assigned" warning.
5666
5667 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5668
5669 * gdbarch.sh: Remove code that sets fallbackdefault.
5670
5671 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5672
5673 * gdbarch.sh: Use shell operators && and || instead of
5674 -a and -o.
5675
5676 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5677
5678 * gdbarch.sh: Use $(...) instead of `...`.
5679
5680 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5681
5682 * gdbarch.sh: Use double quotes around variables.
5683
5684 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5685
5686 * gdbarch.sh: Use %s with printf, instead of variables in the
5687 format string.
5688
5689 2020-04-29 Tom Tromey <tromey@adacore.com>
5690
5691 PR ada/25875:
5692 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5693 type fields here.
5694 (read_enumeration_type): Call
5695 update_enumeration_type_from_children later. Update comments.
5696 (process_enumeration_scope): Don't create type fields.
5697
5698 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5699
5700 * nbsd-tdep.c: Include "xml-syscall.h".
5701 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5702
5703 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5704
5705 * nbsd-nat.c: Include "sys/wait.h".
5706 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5707 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5708 (nbsd_nat_target::remove_exec_catchpoint)
5709 (nbsd_nat_target::set_syscall_catchpoint): Add.
5710 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5711 (nbsd_nat_target::insert_exec_catchpoint)
5712 (nbsd_nat_target::remove_exec_catchpoint)
5713 (nbsd_nat_target::set_syscall_catchpoint): Add.
5714 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5715 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5716 `nbsd_get_syscall_number'.
5717
5718 2020-04-29 Tom Tromey <tom@tromey.com>
5719
5720 * stack.c (print_block_frame_labels): Remove.
5721
5722 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
5723
5724 PR gdb/17320
5725 * ada-valprint.c (val_print_packed_array_elements): Move array
5726 end bracket to new line.
5727 (ada_val_print_string): Remove extra spaces before first array
5728 element.
5729 * c-valprint.c (c_value_print_array): Likewise.
5730 * m2-valprint.c (m2_print_array_contents): Likewise.
5731 (m2_value_print_inner): Likewise.
5732 * p-valprint.c (pascal_value_print_inner): Likewise.
5733 * valprint.c (generic_val_print_array): Likewise.
5734 (value_print_array_elements): Move first array element and array
5735 end bracket to new line.
5736
5737 2020-04-29 Tom de Vries <tdevries@suse.de>
5738
5739 PR symtab/25889
5740 * linespec.c (find_method): Fix ix calculation.
5741
5742 2020-04-28 Kamil Rytarowski <n54@gmx.com>
5743
5744 * syscalls/update-netbsd.sh: New file.
5745 * syscalls/netbsd.xml: Regenerate.
5746 * data-directory/Makefile.in: Register `netbsd.xml' in
5747 `SYSCALLS_FILES'.
5748
5749 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5750
5751 * syscalls/update-freebsd.sh: Add double quotes.
5752
5753 2020-04-28 Tom Tromey <tom@tromey.com>
5754
5755 * NEWS: Update.
5756 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5757 (cmdpy_init): Allow class_tui.
5758
5759 2020-04-28 Mark Williams <mark@myosotissp.com>
5760
5761 PR gdb/24480
5762 * dwarf2read.c: Add missing assingments to list_in_scope when
5763 start_symtab was already called.
5764
5765 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5766
5767 PR gdb/25881
5768 * dwarf2/read.c (offset_map_type): Use
5769 gdb:hash_enum<sect_offset> as hash function.
5770
5771 2020-04-28 Tom de Vries <tdevries@suse.de>
5772
5773 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5774 with DW_AT_signature.
5775
5776 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
5777
5778 * configure.ac: Remove check for fs_base/gs_base in
5779 user_regs_struct.
5780 * configure: Re-generate.
5781 * config.in: Re-generate.
5782 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5783 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5784 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5785
5786 2020-04-27 Luis Machado <luis.machado@linaro.org>
5787
5788 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5789 problematic inline frame unwinding situation.
5790 * frame.c (frame_id_computed_p): New function.
5791 * frame.h (frame_id_computed_p): New prototype.
5792
5793 2020-04-26 Tom Tromey <tom@tromey.com>
5794
5795 * command.h (enum command_class) <class_pseudo>: Remove.
5796
5797 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5798
5799 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5800 and whitespace.
5801
5802 2020-04-25 Kamil Rytarowski <n54@gmx.com>
5803
5804 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5805 `PT_GET_PROCESS_STATE' block.
5806
5807 2020-04-24 Tom Tromey <tom@tromey.com>
5808
5809 * symtab.h (symbol_get_demangled_name): Don't declare.
5810 * symtab.c (symbol_get_demangled_name): Remove.
5811 (general_symbol_info::natural_name)
5812 (general_symbol_info::demangled_name): Update.
5813
5814 2020-04-24 Tom Tromey <tom@tromey.com>
5815
5816 PR rust/25025:
5817 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5818
5819 2020-04-24 Tom Tromey <tom@tromey.com>
5820
5821 PR symtab/12707:
5822 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5823 exists.
5824 (new_symbol): Likewise.
5825 * compile/compile-object-load.c (get_out_value_type): Use
5826 symbol_matches_search_name.
5827
5828 2020-04-24 Tom Tromey <tom@tromey.com>
5829
5830 * dwarf2/read.c (add_partial_symbol): Do not call
5831 compute_and_set_names.
5832
5833 2020-04-24 Tom Tromey <tom@tromey.com>
5834
5835 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5836 overload.
5837
5838 2020-04-24 Tom Tromey <tom@tromey.com>
5839
5840 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5841 (add_psymbol_to_list): New overload. Make old overload call new
5842 one.
5843 * psympriv.h (add_psymbol_to_list): New overload.
5844
5845 2020-04-24 Tom Tromey <tom@tromey.com>
5846
5847 * dwarf2/read.c (partial_die_info::read) <case
5848 DW_AT_linkage_name>: Use value_as_string.
5849 (dwarf2_string_attr): Use value_as_string.
5850 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5851 method.
5852 * dwarf2/attribute.c (attribute::value_as_string): New method.
5853
5854 2020-04-24 Tom Tromey <tom@tromey.com>
5855
5856 * symtab.c (general_symbol_info::natural_name)
5857 (general_symbol_info::demangled_name): Check for language_rust.
5858
5859 2020-04-24 Tom Tromey <tom@tromey.com>
5860
5861 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5862 (dwarf2_physname): ... from here.
5863 (partial_die_info::read): Add Rust "{" hack.
5864
5865 2020-04-24 Tom Tromey <tom@tromey.com>
5866
5867 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5868 method.
5869 (symbol_set_demangled_name): Don't declare.
5870 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5871 symbol_set_demangled_name.
5872 (general_symbol_info::set_language)
5873 (general_symbol_info::compute_and_set_names): Update.
5874 * minsyms.c (minimal_symbol_reader::install): Update.
5875 * dwarf2/read.c (new_symbol): Update.
5876
5877 2020-04-24 Tom Tromey <tromey@adacore.com>
5878
5879 PR python/23662:
5880 * python/py-type.c (convert_field): Handle
5881 FIELD_LOC_KIND_DWARF_BLOCK.
5882 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5883 (typy_get_dynamic): Nw function.
5884 (type_object_getset): Add "dynamic".
5885 * NEWS: Add entry.
5886
5887 2020-04-24 Tom Tromey <tromey@adacore.com>
5888
5889 * ada-typeprint.c (print_choices, print_variant_part)
5890 (print_record_field_types_dynamic): New functions.
5891 (print_record_field_types): Use print_record_field_types_dynamic.
5892
5893 2020-04-24 Tom Tromey <tromey@adacore.com>
5894
5895 * dwarf2/read.c (handle_data_member_location): New overload.
5896 (dwarf2_add_field): Use it.
5897 (decode_locdesc): Add "computed" parameter. Update comment.
5898 * gdbtypes.c (is_dynamic_type_internal): Also look for
5899 FIELD_LOC_KIND_DWARF_BLOCK.
5900 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5901 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5902 virtual base classes.
5903 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5904 FIELD_LOC_KIND_DWARF_BLOCK.
5905
5906 2020-04-24 Tom Tromey <tromey@adacore.com>
5907
5908 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5909 * gdbtypes.c (is_dynamic_type_internal): Check
5910 TYPE_HAS_DYNAMIC_LENGTH.
5911 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5912 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5913 New macros.
5914 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5915 constant.
5916
5917 2020-04-24 Tom Tromey <tromey@adacore.com>
5918
5919 * dwarf2/read.c (struct variant_field): Rewrite.
5920 (struct variant_part_builder): New.
5921 (struct nextfield): Remove "variant" field. Add "offset".
5922 (struct field_info): Add "current_variant_part" and
5923 "variant_parts".
5924 (alloc_discriminant_info): Remove.
5925 (alloc_rust_variant): New function.
5926 (quirk_rust_enum): Update.
5927 (dwarf2_add_field): Set "offset" member. Don't handle
5928 DW_TAG_variant_part.
5929 (offset_map_type): New typedef.
5930 (convert_variant_range, create_one_variant)
5931 (create_one_variant_part, create_variant_parts)
5932 (add_variant_property): New functions.
5933 (dwarf2_attach_fields_to_type): Call add_variant_property.
5934 (read_structure_type): Don't handle DW_TAG_variant_part.
5935 (handle_variant_part, handle_variant): New functions.
5936 (handle_struct_member_die): Use them.
5937 (process_structure_scope): Don't handle variant parts.
5938 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5939 (struct discriminant_info): Remove.
5940 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5941 (struct main_type) <flag_discriminated_union>: Remove.
5942 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5943 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5944 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5945 Update.
5946 * valops.c (value_union_variant): Remove.
5947 * value.h (value_union_variant): Don't declare.
5948
5949 2020-04-24 Tom Tromey <tromey@adacore.com>
5950
5951 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5952 (ada_value_primitive_packed_val): Update.
5953 * ada-valprint.c (ada_value_print_1): Update.
5954 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5955 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5956 just an address. Use evaluate_for_locexpr_baton.
5957 (dwarf2_evaluate_property): Update.
5958 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5959 array_view.
5960 * findvar.c (default_read_var_value): Update.
5961 * gdbtypes.c (compute_variant_fields_inner)
5962 (resolve_dynamic_type_internal): Update.
5963 (resolve_dynamic_type): Change type of valaddr parameter.
5964 * gdbtypes.h (resolve_dynamic_type): Update.
5965 * valarith.c (value_subscripted_rvalue): Update.
5966 * value.c (value_from_contents_and_address): Update.
5967
5968 2020-04-24 Tom Tromey <tromey@adacore.com>
5969
5970 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5971 "push_initial_value" parameter.
5972 (dwarf2_evaluate_property): Likewise.
5973 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5974
5975 2020-04-24 Tom Tromey <tromey@adacore.com>
5976
5977 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5978 (variant::matches, compute_variant_fields_recurse)
5979 (compute_variant_fields_inner, compute_variant_fields): New
5980 functions.
5981 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5982 Use resolved_type after type is made.
5983 (operator==): Add new cases.
5984 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5985 (struct discriminant_range, struct variant, struct variant_part):
5986 New.
5987 (union dynamic_prop_data) <variant_parts, original_type>: New
5988 members.
5989 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5990 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5991 constants.
5992 * value.c (unpack_bits_as_long): Now public.
5993 * value.h (unpack_bits_as_long): Declare.
5994
5995 2020-04-24 Tom Tromey <tromey@adacore.com>
5996
5997 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5998 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5999
6000 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
6001
6002 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
6003
6004 2020-04-24 Kamil Rytarowski <n54@gmx.com>
6005
6006 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
6007 (remove_fork_catchpoint, post_startup_inferior)
6008 (post_attach): Move...
6009 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
6010 (remove_fork_catchpoint, post_startup_inferior)
6011 (post_attach): ...here.
6012 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
6013 (remove_fork_catchpoint, post_startup_inferior)
6014 (post_attach): Move...
6015 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
6016 (remove_fork_catchpoint, post_startup_inferior)
6017 (post_attach): ...here.
6018
6019 2020-04-24 Tom Tromey <tromey@adacore.com>
6020
6021 * nat/windows-nat.h (struct windows_thread_info)
6022 <pc_adjusted>: New member.
6023 * windows-nat.c (windows_fetch_one_register): Check
6024 pc_adjusted.
6025 (windows_nat_target::get_windows_debug_event)
6026 (windows_nat_target::wait): Set pc_adjusted.
6027
6028 2020-04-24 Tom de Vries <tdevries@suse.de>
6029
6030 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
6031 Run gdb-add-index inside temp dir.
6032
6033 2020-04-23 Tom Tromey <tromey@adacore.com>
6034
6035 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
6036 in loop.
6037
6038 2020-04-23 Luis Machado <luis.machado@linaro.org>
6039
6040 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
6041 get_frame_register instead of gdbarch_unwind_pc.
6042
6043 2020-04-23 Tom de Vries <tdevries@suse.de>
6044
6045 * symtab.c (lookup_global_symbol): Prefer def over decl.
6046
6047 2020-04-23 Tom de Vries <tdevries@suse.de>
6048
6049 PR symtab/25807
6050 * block.c (best_symbol, better_symbol): Promote to external.
6051 * block.h (best_symbol, better_symbol): Declare.
6052 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
6053 decl.
6054
6055 2020-04-23 Tom Tromey <tromey@adacore.com>
6056
6057 PR ada/25837:
6058 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
6059 "const char *", not a "const std::string &".
6060 <name_and_matcher::operator==>: Update.
6061 * unittests/lookup_name_info-selftests.c: Change type of
6062 "result".
6063
6064 2020-04-23 Tom Tromey <tom@tromey.com>
6065
6066 * inferior.h (iterate_over_inferiors): Don't declare.
6067 * inferior.c (iterate_over_inferiors): Remove.
6068 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
6069 Remove.
6070 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
6071 use iterate_over_inferiors.
6072 (darwin_resume_inferior_it)
6073 (struct resume_inferior_threads_param)
6074 (darwin_resume_inferior_threads_it): Remove.
6075 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
6076
6077 2020-04-23 Tom de Vries <tdevries@suse.de>
6078
6079 * blockframe.c (find_pc_partial_function): Use
6080 find_pc_sect_compunit_symtab rather than
6081 objfile->sf->qf->find_pc_sect_compunit_symtab.
6082
6083 2020-04-22 Tom de Vries <tdevries@suse.de>
6084
6085 PR symtab/25764
6086 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
6087 in psymtabs.
6088
6089 2020-04-22 Tom de Vries <tdevries@suse.de>
6090
6091 PR symtab/25801
6092 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
6093 symtabs.
6094
6095 2020-04-22 Tom de Vries <tdevries@suse.de>
6096
6097 PR symtab/25700
6098 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
6099 CU if already created.
6100
6101 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6102
6103 * infrun.c (displaced_step_fixup): Switch to the event_thread
6104 before calling displaced_step_restore, not after.
6105
6106 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6107
6108 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
6109 its inferior is not recorded by us.
6110 (record_btrace_target_open): Replace call to
6111 all_non_exited_threads () with call to current_inferior
6112 ()->non_exited_threads ().
6113 (record_btrace_target::stop_recording): Likewise.
6114 (record_btrace_target::close): Likewise.
6115 (record_btrace_target::wait): Likewise.
6116 (record_btrace_target::record_stop_replaying): Likewise.
6117
6118 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6119
6120 * btrace.c (btrace_enable): Throw an error on double enables and
6121 when enabling recording fails.
6122 (btrace_disable): Throw an error if the thread is not recorded.
6123
6124 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6125
6126 * record-btrace.c (record_btrace_target::fetch_registers): Forward
6127 request if we do not have a thread_info.
6128
6129 2020-04-21 Tom de Vries <tdevries@suse.de>
6130
6131 PR gdb/25471
6132 * thread.c
6133 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
6134 exception in get_frame_id.
6135
6136 2020-04-20 Tom Tromey <tromey@adacore.com>
6137
6138 * python/python.c (struct gdbpy_event): Mark move constructor as
6139 noexcept.
6140 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
6141 constructor as noexcept.
6142 * completer.h (struct completion_result): Mark move constructor as
6143 noexcept.
6144 * completer.c (completion_result::completion_result): Use
6145 initialization style. Don't call reset_match_list.
6146
6147 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
6148
6149 * MAINTAINERS (Write After Approval): Add myself.
6150
6151 2020-04-18 Tom Tromey <tom@tromey.com>
6152
6153 * windows-tdep.c (init_w32_command_list)
6154 (w32_prefix_command_valid): Restore.
6155 (_initialize_windows_tdep): Call init_w32_command_list.
6156
6157 2020-04-18 Tom Tromey <tom@tromey.com>
6158
6159 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
6160 * value.c (value_fn_field): Update.
6161 * valops.c (find_function_in_inferior)
6162 (value_allocate_space_in_inferior): Update.
6163 * tui/tui-winsource.c (tui_update_source_windows_with_line):
6164 Update.
6165 * tui/tui-source.c (tui_source_window::set_contents): Update.
6166 * symtab.c (lookup_global_or_static_symbol)
6167 (find_function_start_sal_1, skip_prologue_sal)
6168 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
6169 * symmisc.c (dump_msymbols, dump_symtab_1)
6170 (maintenance_print_one_line_table): Update.
6171 * symfile.c (init_entry_point_info, section_is_mapped)
6172 (list_overlays_command, simple_read_overlay_table)
6173 (simple_overlay_update_1): Update.
6174 * stap-probe.c (handle_stap_probe): Update.
6175 * stabsread.c (dbx_init_float_type, define_symbol)
6176 (read_one_struct_field, read_enum_type, read_range_type): Update.
6177 * source.c (info_line_command): Update.
6178 * python/python.c (gdbpy_source_objfile_script)
6179 (gdbpy_execute_objfile_script): Update.
6180 * python/py-type.c (save_objfile_types): Update.
6181 * python/py-objfile.c (py_free_objfile): Update.
6182 * python/py-inferior.c (python_new_objfile): Update.
6183 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
6184 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
6185 (maintenance_check_psymtabs): Update.
6186 * printcmd.c (info_address_command): Update.
6187 * objfiles.h (struct objfile) <arch>: New method, from
6188 get_objfile_arch.
6189 (get_objfile_arch): Don't declare.
6190 * objfiles.c (get_objfile_arch): Remove.
6191 (filter_overlapping_sections): Update.
6192 * minsyms.c (msymbol_is_function): Update.
6193 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
6194 (output_nondebug_symbol): Update.
6195 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
6196 (mdebug_expand_psymtab): Update.
6197 * machoread.c (macho_add_oso_symfile): Update.
6198 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
6199 Update.
6200 * linux-fork.c (checkpoint_command): Update.
6201 * linespec.c (convert_linespec_to_sals): Update.
6202 * jit.c (finalize_symtab): Update.
6203 * infrun.c (insert_exception_resume_from_probe): Update.
6204 * ia64-tdep.c (ia64_find_unwind_table): Update.
6205 * hppa-tdep.c (internalize_unwinds): Update.
6206 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
6207 Update.
6208 * gcore.c (call_target_sbrk): Update.
6209 * elfread.c (record_minimal_symbol, elf_symtab_read)
6210 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
6211 (elf_gnu_ifunc_resolve_by_got): Update.
6212 * dwarf2/read.c (create_addrmap_from_index)
6213 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6214 (read_debug_names_from_section)
6215 (process_psymtab_comp_unit_reader, add_partial_symbol)
6216 (add_partial_subprogram, process_full_comp_unit)
6217 (read_file_scope, read_func_scope, read_lexical_block_scope)
6218 (read_call_site_scope, dwarf2_ranges_read)
6219 (dwarf2_record_block_ranges, dwarf2_add_field)
6220 (mark_common_block_symbol_computed, read_tag_pointer_type)
6221 (read_tag_string_type, dwarf2_init_float_type)
6222 (dwarf2_init_complex_target_type, read_base_type)
6223 (partial_die_info::read, partial_die_info::read)
6224 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
6225 (dwarf2_fetch_die_loc_sect_off): Update.
6226 * dwarf2/loc.c (dwarf2_find_location_expression)
6227 (class dwarf_evaluate_loc_desc, rw_pieced_value)
6228 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
6229 (dwarf2_loc_desc_get_symbol_read_needs)
6230 (locexpr_describe_location_piece, locexpr_describe_location_1)
6231 (loclist_describe_location): Update.
6232 * dwarf2/index-write.c (write_debug_names): Update.
6233 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
6234 * dtrace-probe.c (dtrace_process_dof): Update.
6235 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6236 (process_one_symbol): Update.
6237 * ctfread.c (ctf_init_float_type, read_base_type): Update.
6238 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6239 (coff_read_enum_type): Update.
6240 * cli/cli-cmds.c (edit_command, list_command): Update.
6241 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6242 * breakpoint.c (create_overlay_event_breakpoint)
6243 (create_longjmp_master_breakpoint)
6244 (create_std_terminate_master_breakpoint)
6245 (create_exception_master_breakpoint, get_sal_arch): Update.
6246 * block.c (block_gdbarch): Update.
6247 * annotate.c (annotate_source_line): Update.
6248
6249 2020-04-17 Tom Tromey <tromey@adacore.com>
6250
6251 * auto-load.c (show_auto_load_cmd): Remove.
6252 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6253 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6254 (maintenance_print_arc_command): Remove.
6255 * tui/tui-win.c (tui_command): Remove.
6256 (tui_get_cmd_list): Use add_basic_prefix_cmd.
6257 * tui/tui-layout.c (tui_layout_command): Remove.
6258 (_initialize_tui_layout): Use add_basic_prefix_cmd.
6259 * python/python.c (user_set_python, user_show_python): Remove.
6260 (_initialize_python): Use add_basic_prefix_cmd,
6261 add_show_prefix_cmd.
6262 * guile/guile.c (set_guile_command, show_guile_command): Remove.
6263 (install_gdb_commands): Use add_basic_prefix_cmd,
6264 add_show_prefix_cmd.
6265 (info_guile_command): Remove.
6266 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6267 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6268 add_show_prefix_cmd.
6269 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6270 Remove do_set and do_show parameters.
6271 * cli/cli-style.c (set_style, show_style): Remove.
6272 (_initialize_cli_style): Use add_basic_prefix_cmd,
6273 add_show_prefix_cmd.
6274 (cli_style_option::add_setshow_commands): Remove do_set and
6275 do_show parameters.
6276 (cli_style_option::add_setshow_commands): Use
6277 add_basic_prefix_cmd, add_show_prefix_cmd.
6278 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6279 (set_style_name): Remove.
6280 * cli/cli-dump.c (dump_command, append_command): Remove.
6281 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6282 (tekhex_dump_command, binary_dump_command)
6283 (binary_append_command): Remove.
6284 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6285 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6286 (init_w32_command_list): Remove; move into ...
6287 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6288 * valprint.c (set_print, show_print, set_print_raw)
6289 (show_print_raw): Remove.
6290 (_initialize_valprint): Use add_basic_prefix_cmd,
6291 add_show_prefix_cmd.
6292 * typeprint.c (set_print_type, show_print_type): Remove.
6293 (_initialize_typeprint): Use add_basic_prefix_cmd,
6294 add_show_prefix_cmd.
6295 * record.c (set_record_command, show_record_command): Remove.
6296 (_initialize_record): Use add_basic_prefix_cmd,
6297 add_show_prefix_cmd.
6298 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6299 add_show_prefix_cmd.
6300 (info_command, show_command, set_debug, show_debug): Remove.
6301 * top.h (set_history, show_history): Don't declare.
6302 * top.c (set_history, show_history): Remove.
6303 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6304 (unset_tdesc_cmd): Remove.
6305 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6306 add_show_prefix_cmd.
6307 * symtab.c (info_module_command): Remove.
6308 (_initialize_symtab): Use add_basic_prefix_cmd.
6309 * symfile.c (overlay_command): Remove.
6310 (_initialize_symfile): Use add_basic_prefix_cmd.
6311 * sparc64-tdep.c (info_adi_command): Remove.
6312 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6313 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6314 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6315 add_show_prefix_cmd.
6316 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6317 (_initialize_serial): Use add_basic_prefix_cmd,
6318 add_show_prefix_cmd.
6319 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6320 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6321 add_show_prefix_cmd.
6322 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6323 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6324 add_show_prefix_cmd.
6325 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6326 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6327 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6328 add_show_prefix_cmd.
6329 * remote.c (remote_command, set_remote_cmd): Remove.
6330 (_initialize_remote): Use add_basic_prefix_cmd.
6331 * record-full.c (set_record_full_command)
6332 (show_record_full_command): Remove.
6333 (_initialize_record_full): Use add_basic_prefix_cmd,
6334 add_show_prefix_cmd.
6335 * record-btrace.c (cmd_set_record_btrace)
6336 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6337 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6338 (cmd_show_record_btrace_pt): Remove.
6339 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6340 add_show_prefix_cmd.
6341 * ravenscar-thread.c (set_ravenscar_command)
6342 (show_ravenscar_command): Remove.
6343 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6344 add_show_prefix_cmd.
6345 * mips-tdep.c (show_mips_command, set_mips_command)
6346 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6347 add_show_prefix_cmd.
6348 * maint.c (maintenance_command, maintenance_info_command)
6349 (maintenance_check_command, maintenance_print_command)
6350 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6351 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6352 add_show_prefix_cmd.
6353 (show_per_command_cmd): Remove.
6354 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6355 Remove.
6356 (maintenance_show_test_settings_cmd): Remove.
6357 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6358 add_show_prefix_cmd.
6359 * maint-test-options.c (maintenance_test_options_command):
6360 Remove.
6361 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6362 * macrocmd.c (macro_command): Remove
6363 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6364 * language.c (set_check, show_check): Remove.
6365 (_initialize_language): Use add_basic_prefix_cmd,
6366 add_show_prefix_cmd.
6367 * infcmd.c (unset_command): Remove.
6368 (_initialize_infcmd): Use add_basic_prefix_cmd.
6369 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6370 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6371 add_show_prefix_cmd.
6372 * go32-nat.c (go32_info_dos_command): Remove.
6373 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6374 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6375 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6376 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6377 (_initialize_frame): Use add_basic_prefix_cmd,
6378 add_show_prefix_cmd.
6379 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6380 (_initialize_dcache): Use add_basic_prefix_cmd,
6381 add_show_prefix_cmd.
6382 * cp-support.c (maint_cplus_command): Remove.
6383 (_initialize_cp_support): Use add_basic_prefix_cmd.
6384 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6385 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6386 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6387 add_basic_prefix_cmd, add_show_prefix_cmd.
6388 * breakpoint.c (save_command): Remove.
6389 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6390 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6391 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6392 add_show_prefix_cmd.
6393 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6394 (set_ada_command, show_ada_command): Remove.
6395 (_initialize_ada_language): Use add_basic_prefix_cmd,
6396 add_show_prefix_cmd.
6397 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6398
6399 2020-04-16 Kamil Rytarowski <n54@gmx.com>
6400
6401 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6402 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6403
6404 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6405
6406 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6407 warning messages.
6408
6409 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6410
6411 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6412 import table is not at beginning of .idata section.
6413
6414 2020-04-16 Pedro Alves <palves@redhat.com>
6415
6416 * inferior.c (delete_inferior): Use delete operator directly
6417 instead of delete_program_space.
6418 * progspace.c (add_program_space): New, factored out from
6419 program_space::program_space.
6420 (remove_program_space): New, factored out from
6421 delete_program_space.
6422 (program_space::program_space): Remove intro comment. Rewrite.
6423 (program_space::~program_space): Remove intro comment. Call
6424 remove_program_space.
6425 (delete_program_space): Delete.
6426 * progspace.h (program_space::program_space): Make explicit. Move
6427 intro comment here, adjusted.
6428 (program_space::~program_space): Move intro comment here,
6429 adjusted.
6430 (delete_program_space): Remove.
6431
6432 2020-04-16 Tom Tromey <tromey@adacore.com>
6433
6434 * windows-nat.c (windows_nat::handle_access_violation): New
6435 function.
6436 * nat/windows-nat.h (handle_access_violation): Declare.
6437 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6438 windows-nat.c. Call handle_access_violation.
6439
6440 2020-04-16 Tom de Vries <tdevries@suse.de>
6441
6442 PR symtab/25791
6443 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6444 CUs without psymtab.
6445
6446 2020-04-16 Kevin Buettner <kevinb@redhat.com>
6447
6448 * python/python.c (do_start_initialization): Don't call
6449 PyEval_InitThreads for Python 3.9 and beyond.
6450
6451 2020-04-15 Kamil Rytarowski <n54@gmx.com>
6452
6453 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6454 thread functions.
6455 (obsd_nat_target::wait): Likewise.
6456
6457 2020-04-15 Tom Tromey <tromey@adacore.com>
6458
6459 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6460 (DEBUG_EXCEPT): Use debug_printf.
6461
6462 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6463
6464 * completer.c (class completion_tracker::completion_hash_entry)
6465 <hash_name>: New member function.
6466 (completion_tracker::discard_completions): New callback to hash a
6467 completion_hash_entry, pass this to htab_create_alloc.
6468
6469 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6470
6471 * windows-nat.c (windows_make_so): Warn rather than stopping with
6472 an error if realpath() fails.
6473
6474 2020-04-14 Kamil Rytarowski <n54@gmx.com>
6475
6476 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6477 (nbsd_nat_target::info_proc): Add do_status.
6478
6479 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6480 Tom de Vries <tdevries@suse.de>
6481
6482 PR symtab/25718
6483 * psympriv.h (struct partial_symtab::read_symtab)
6484 (struct partial_symtab::expand_psymtab)
6485 (struct partial_symtab::read_dependencies): Update comments.
6486 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6487 read_symtab for includer.
6488 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6489 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6490 (struct dwarf2_include_psymtab::m_readin): Remove.
6491 (struct dwarf2_include_psymtab::includer): New member function.
6492 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6493
6494 2020-04-14 Tom de Vries <tdevries@suse.de>
6495
6496 PR symtab/25720
6497 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6498 with NULL symbol_matcher and lookup_name.
6499 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6500 and lookup_name.
6501 * dwarf2/read.c (dw2_expand_symtabs_matching)
6502 (dw2_debug_names_expand_symtabs_matching): Same.
6503 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6504 Make lookup_name a pointer. Update comment.
6505 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6506 lookup_name being a pointer.
6507 * symfile.c (expand_symtabs_matching): Same.
6508 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6509 * linespec.c (iterate_over_all_matching_symtabs): Same.
6510
6511 2020-04-13 Tom Tromey <tom@tromey.com>
6512
6513 * run-on-main-thread.c: Update include.
6514 * unittests/main-thread-selftests.c: Update include.
6515 * tui/tui-win.c: Update include.
6516 * tui/tui-io.c: Update include.
6517 * tui/tui-interp.c: Update include.
6518 * tui/tui-hooks.c: Update include.
6519 * top.h: Update include.
6520 * top.c: Update include.
6521 * ser-base.c: Update include.
6522 * remote.c: Update include.
6523 * remote-notif.c: Update include.
6524 * remote-fileio.c: Update include.
6525 * record-full.c: Update include.
6526 * record-btrace.c: Update include.
6527 * python/python.c: Update include.
6528 * posix-hdep.c: Update include.
6529 * mingw-hdep.c: Update include.
6530 * mi/mi-main.c: Update include.
6531 * mi/mi-interp.c: Update include.
6532 * main.c: Update include.
6533 * linux-nat.c: Update include.
6534 * interps.c: Update include.
6535 * infrun.c: Update include.
6536 * inf-loop.c: Update include.
6537 * event-top.c: Update include.
6538 * event-loop.c: Move to ../gdbsupport/.
6539 * event-loop.h: Move to ../gdbsupport/.
6540 * async-event.h: Update include.
6541 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6542
6543 2020-04-13 Tom Tromey <tom@tromey.com>
6544
6545 * tui/tui-win.c: Include async-event.h.
6546 * remote.c: Include async-event.h.
6547 * remote-notif.c: Include async-event.h.
6548 * record-full.c: Include async-event.h.
6549 * record-btrace.c: Include async-event.h.
6550 * infrun.c: Include async-event.h.
6551 * event-top.c: Include async-event.h.
6552 * event-loop.h: Move some declarations to async-event.h.
6553 * event-loop.c: Don't include ser-event.h or top.h. Move some
6554 code to async-event.c.
6555 * async-event.h: New file.
6556 * async-event.c: New file.
6557 * Makefile.in (COMMON_SFILES): Add async-event.c.
6558 (HFILES_NO_SRCDIR): Add async-event.h.
6559
6560 2020-04-13 Tom Tromey <tom@tromey.com>
6561
6562 * utils.c (flush_streams): New function.
6563 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6564
6565 2020-04-13 Tom Tromey <tom@tromey.com>
6566
6567 * event-loop.c (handle_file_event): Use warning, not
6568 printf_unfiltered.
6569
6570 2020-04-13 Tom Tromey <tom@tromey.com>
6571
6572 * event-loop.c: Include <chrono>.
6573
6574 2020-04-13 Tom Tromey <tom@tromey.com>
6575
6576 * gdb_select.h: Move to ../gdbsupport/.
6577 * event-loop.c: Update include path.
6578 * top.c: Update include path.
6579 * ser-base.c: Update include path.
6580 * ui-file.c: Update include path.
6581 * ser-tcp.c: Update include path.
6582 * guile/scm-ports.c: Update include path.
6583 * posix-hdep.c: Update include path.
6584 * ser-unix.c: Update include path.
6585 * gdb_usleep.c: Update include path.
6586 * mingw-hdep.c: Update include path.
6587 * inflow.c: Update include path.
6588 * infrun.c: Update include path.
6589 * event-top.c: Update include path.
6590
6591 2020-04-13 Tom Tromey <tom@tromey.com>
6592
6593 * configure: Rebuild.
6594 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6595
6596 2020-04-13 Tom Tromey <tom@tromey.com>
6597
6598 * event-loop.h (start_event_loop): Don't declare.
6599 * event-loop.c (start_event_loop): Move...
6600 * main.c (start_event_loop): ...here. Now static.
6601
6602 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6603
6604 * MAINTAINERS: Update my email address.
6605
6606 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6607
6608 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6609 IP_ALL.
6610
6611 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6612
6613 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
6614 (nbsd_nat_target::info_proc): Add do_cmdline.
6615
6616 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6617
6618 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
6619 (nbsd_nat_target::info_proc): Add do_cwd.
6620
6621 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6622
6623 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6624
6625 2020-04-11 Kamil Rytarowski <n54@gmx.com>
6626
6627 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6628 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6629 (nbsd_nat_target::info_proc): New functions.
6630 * nbsd-nat.c (kinfo_get_vmmap): New function.
6631 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6632 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6633 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6634 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6635 functions.
6636 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6637 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6638 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6639 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6640 (KINFO_VME_FLAG_GROWS_DOWN): New.
6641
6642 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6643
6644 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6645 bit shift.
6646
6647 2020-04-10 Tom Tromey <tromey@adacore.com>
6648
6649 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6650
6651 2020-04-10 Tom Tromey <tromey@adacore.com>
6652
6653 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6654 separate debug files.
6655
6656 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
6657
6658 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6659 Move to...
6660 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6661 ... here.
6662 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6663 Check for STATUS_WX86_BREAKPOINT.
6664 (windows_nat_target::wait): Same.
6665
6666 2020-04-10 Tom de Vries <tdevries@suse.de>
6667
6668 PR cli/25808
6669 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6670
6671 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6672
6673 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6674 (Write After Approval): Remove Tom de Vries.
6675
6676 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6677
6678 revert partially:
6679 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6680
6681 * buildsym.c (record_line): Fix undefined behavior and preserve
6682 lines at eof.
6683
6684 2020-04-09 Kamil Rytarowski <n54@gmx.com>
6685
6686 * auxv.h (svr4_auxv_parse): New.
6687 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6688 and generic_auxv_parse.
6689 (svr4_auxv_parse): Add.
6690 * obsd-tdep.c: Include "auxv.h".
6691 (obsd_auxv_parse): Remove.
6692 (obsd_init_abi): Remove comment.
6693 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6694 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6695 * nbsd-tdep.c: Include "auxv.h".
6696 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6697
6698 2020-04-08 Tom Tromey <tromey@adacore.com>
6699
6700 * nat/windows-nat.h (last_wait_event): Don't declare.
6701 (wait_for_debug_event): Update comment.
6702 * nat/windows-nat.c (last_wait_event): Now static.
6703
6704 2020-04-08 Tom Tromey <tromey@adacore.com>
6705
6706 * windows-nat.c (wait_for_debug_event): Move to
6707 nat/windows-nat.c.
6708 * nat/windows-nat.h (wait_for_debug_event): Declare.
6709 * nat/windows-nat.c (wait_for_debug_event): Move from
6710 windows-nat.c. No longer static.
6711
6712 2020-04-08 Tom Tromey <tromey@adacore.com>
6713
6714 * windows-nat.c (get_windows_debug_event): Use
6715 fetch_pending_stop.
6716 * nat/windows-nat.h (fetch_pending_stop): Declare.
6717 * nat/windows-nat.c (fetch_pending_stop): New function.
6718
6719 2020-04-08 Tom Tromey <tromey@adacore.com>
6720
6721 * windows-nat.c (windows_continue): Use matching_pending_stop and
6722 continue_last_debug_event.
6723 * nat/windows-nat.h (matching_pending_stop)
6724 (continue_last_debug_event): Declare.
6725 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6726 (matching_pending_stop, continue_last_debug_event): New
6727 functions.
6728
6729 2020-04-08 Tom Tromey <tromey@adacore.com>
6730
6731 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6732 (handle_exception_result): Move to nat/windows-nat.h.
6733 (DEBUG_EXCEPTION_SIMPLE): Remove.
6734 (windows_nat::handle_ms_vc_exception): New function.
6735 (handle_exception): Move to nat/windows-nat.c.
6736 (get_windows_debug_event): Update.
6737 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6738 nat/windows-nat.c.
6739 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6740 (handle_exception_result): Move from windows-nat.c.
6741 (handle_exception): Declare.
6742 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6743 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6744 windows-nat.c.
6745
6746 2020-04-08 Tom Tromey <tromey@adacore.com>
6747
6748 * windows-nat.c (exception_count, event_count): Remove.
6749 (handle_exception, get_windows_debug_event)
6750 (do_initial_windows_stuff): Update.
6751
6752 2020-04-08 Tom Tromey <tromey@adacore.com>
6753
6754 * windows-nat.c (windows_nat::handle_load_dll)
6755 (windows_nat::handle_unload_dll): Rename. No longer static.
6756 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6757 Declare.
6758
6759 2020-04-08 Tom Tromey <tromey@adacore.com>
6760
6761 * complaints.h (stop_whining): Declare at top-level.
6762 (complaint): Don't declare stop_whining.
6763
6764 2020-04-08 Tom Tromey <tromey@adacore.com>
6765
6766 * windows-nat.c (windows_nat::handle_output_debug_string):
6767 Rename. No longer static.
6768 * nat/windows-nat.h (handle_output_debug_string): Declare.
6769
6770 2020-04-08 Tom Tromey <tromey@adacore.com>
6771
6772 * windows-nat.c (current_process_handle, current_process_id)
6773 (main_thread_id, last_sig, current_event, last_wait_event)
6774 (current_windows_thread, desired_stop_thread_id, pending_stops)
6775 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6776 (display_selectors, fake_create_process)
6777 (get_windows_debug_event): Update.
6778 * nat/windows-nat.h (current_process_handle, current_process_id)
6779 (main_thread_id, last_sig, current_event, last_wait_event)
6780 (current_windows_thread, desired_stop_thread_id, pending_stops)
6781 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6782 * nat/windows-nat.c (current_process_handle, current_process_id)
6783 (main_thread_id, last_sig, current_event, last_wait_event)
6784 (current_windows_thread, desired_stop_thread_id, pending_stops)
6785 (siginfo_er): New globals. Move from windows-nat.c.
6786
6787 2020-04-08 Tom Tromey <tromey@adacore.com>
6788
6789 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6790 (handle_load_dll): Update.
6791 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6792
6793 2020-04-08 Tom Tromey <tromey@adacore.com>
6794
6795 * windows-nat.c (enum thread_disposition_type): Move to
6796 nat/windows-nat.h.
6797 (windows_nat::thread_rec): Rename from thread_rec. No longer
6798 static.
6799 (windows_add_thread, windows_nat_target::fetch_registers)
6800 (windows_nat_target::store_registers, handle_exception)
6801 (windows_nat_target::resume, get_windows_debug_event)
6802 (windows_nat_target::get_tib_address)
6803 (windows_nat_target::thread_name)
6804 (windows_nat_target::thread_alive): Update.
6805 * nat/windows-nat.h (enum thread_disposition_type): Move from
6806 windows-nat.c.
6807 (thread_rec): Declare.
6808
6809 2020-04-08 Tom Tromey <tromey@adacore.com>
6810
6811 * windows-nat.c: Add "using namespace".
6812 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6813 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6814
6815 2020-04-08 Tom Tromey <tromey@adacore.com>
6816
6817 * nat/windows-nat.h (struct windows_thread_info): Declare
6818 destructor.
6819 * nat/windows-nat.c (~windows_thread_info): New.
6820
6821 2020-04-08 Tom Tromey <tromey@adacore.com>
6822
6823 PR gdb/22992
6824 * windows-nat.c (current_event): Update comment.
6825 (last_wait_event, desired_stop_thread_id): New globals.
6826 (struct pending_stop): New.
6827 (pending_stops): New global.
6828 (windows_nat_target) <stopped_by_sw_breakpoint>
6829 <supports_stopped_by_sw_breakpoint>: New methods.
6830 (windows_fetch_one_register): Add assertions. Adjust PC.
6831 (windows_continue): Handle pending stops. Suspend other threads
6832 when stepping. Use last_wait_event
6833 (wait_for_debug_event): New function.
6834 (get_windows_debug_event): Use wait_for_debug_event. Handle
6835 pending stops. Queue spurious stops.
6836 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6837 (windows_nat_target::kill): Use wait_for_debug_event.
6838 * nat/windows-nat.h (struct windows_thread_info)
6839 <stopped_at_software_breakpoint>: New field.
6840 * nat/windows-nat.c (windows_thread_info::resume): Clear
6841 stopped_at_software_breakpoint.
6842
6843 2020-04-08 Tom Tromey <tromey@adacore.com>
6844
6845 * windows-nat.c (enum thread_disposition_type): New.
6846 (thread_rec): Replace "get_context" parameter with "disposition";
6847 change type.
6848 (windows_add_thread, windows_nat_target::fetch_registers)
6849 (windows_nat_target::store_registers, handle_exception)
6850 (windows_nat_target::resume, get_windows_debug_event)
6851 (windows_nat_target::get_tib_address)
6852 (windows_nat_target::thread_name)
6853 (windows_nat_target::thread_alive): Update.
6854
6855 2020-04-08 Tom Tromey <tromey@adacore.com>
6856
6857 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6858 (windows_continue): Use windows_continue::resume.
6859 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6860 resume>: Declare new methods.
6861 * nat/windows-nat.c: New file.
6862 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6863
6864 2020-04-08 Tom Tromey <tromey@adacore.com>
6865
6866 * windows-nat.c (windows_add_thread, windows_delete_thread)
6867 (windows_nat_target::fetch_registers)
6868 (windows_nat_target::store_registers, fake_create_process)
6869 (windows_nat_target::resume, windows_nat_target::resume)
6870 (get_windows_debug_event, windows_nat_target::wait)
6871 (windows_nat_target::pid_to_str)
6872 (windows_nat_target::get_tib_address)
6873 (windows_nat_target::get_ada_task_ptid)
6874 (windows_nat_target::thread_name)
6875 (windows_nat_target::thread_alive): Use lwp, not tid.
6876
6877 2020-04-08 Tom Tromey <tromey@adacore.com>
6878
6879 * windows-nat.c (handle_exception)
6880 (windows_nat_target::thread_name): Update.
6881 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6882 <name>: Now unique_xmalloc_ptr.
6883
6884 2020-04-08 Tom Tromey <tromey@adacore.com>
6885
6886 * windows-nat.c (thread_rec)
6887 (windows_nat_target::fetch_registers): Update.
6888 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6889 Update comment.
6890 <debug_registers_changed, reload_context>: Now bool.
6891
6892 2020-04-08 Tom Tromey <tromey@adacore.com>
6893
6894 * windows-nat.c (windows_add_thread): Use new.
6895 (windows_init_thread_list, windows_delete_thread): Use delete.
6896 (get_windows_debug_event): Update.
6897 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6898 destructor, and initializers.
6899
6900 2020-04-08 Tom Tromey <tromey@adacore.com>
6901
6902 * windows-nat.c (struct windows_thread_info): Remove.
6903 * nat/windows-nat.h: New file.
6904
6905 2020-04-08 Tom Tromey <tromey@adacore.com>
6906
6907 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6908 (thread_rec, windows_add_thread, windows_delete_thread)
6909 (windows_continue): Update.
6910
6911 2020-04-08 Tom Tromey <tromey@adacore.com>
6912
6913 * windows-nat.c (struct windows_thread_info): Remove typedef.
6914 (thread_head): Remove.
6915 (thread_list): New global.
6916 (thread_rec, windows_add_thread, windows_init_thread_list)
6917 (windows_delete_thread, windows_continue): Update.
6918
6919 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6920
6921 * windows-tdep.h (windows_init_abi): Add comment.
6922 (cygwin_init_abi): New declaration.
6923 * windows-tdep.c: Split signal enumeration in two, one for
6924 Windows and one for Cygwin.
6925 (windows_gdb_signal_to_target): Only deal with signal of the
6926 Windows OS ABI.
6927 (cygwin_gdb_signal_to_target): New function.
6928 (windows_init_abi): Rename to windows_init_abi_common, don't set
6929 gdb_signal_to_target gdbarch method. Add new new function with
6930 this name.
6931 (cygwin_init_abi): New function.
6932 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6933 comment. Don't call windows_init_abi.
6934 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6935 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6936 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6937 i386_windows_init_abi_common, don't call windows_init_abi. Add
6938 a new function of this name.
6939 (i386_cygwin_init_abi): New function.
6940 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6941 OS ABI Cygwin.
6942
6943 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6944
6945 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6946 parameter.c.
6947 (dwarf2_read_gdb_index): Update.
6948
6949 2020-04-07 Kamil Rytarowski <n54@gmx.com>
6950
6951 * nbsd-tdep.c: Include "objfiles.h".
6952 (nbsd_skip_solib_resolver): New.
6953 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6954
6955 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6956
6957 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6958 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6959 with DW_LLE_base_addressx are being emitted in DWARFv5.
6960 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6961 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6962 unsigned integer.
6963
6964 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6965
6966 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6967 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6968 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6969 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6970 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6971 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6972 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6973
6974
6975 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6976
6977 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6978 (read_loclist_index): New function definition.
6979 (lookup_loclist_base): New function definition.
6980 (read_loclist_header): New function definition.
6981 (dwarf2_cu): Add loclist_base and loclist_header field.
6982 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6983 (read_full_die_1): Read the value of DW_AT_loclists_base.
6984 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6985 (read_attribute_value): Handle DW_FORM_loclistx.
6986 (skip_one_die): Handle DW_FORM_loclistx.
6987 (loclist_header): New structure declaration.
6988 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6989
6990 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6991
6992 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6993 constructor. Remove `addr` parameter from other constructor and
6994 add `per_cu` parameter.
6995 * dwarf2/read.c (create_partial_symtab): Update.
6996
6997 2020-04-07 Tom de Vries <tdevries@suse.de>
6998
6999 PR symtab/25796
7000 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
7001 (partial_die_info::fixup): Inherit has_const_value.
7002
7003 2020-04-07 Tom de Vries <tdevries@suse.de>
7004
7005 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
7006 symbols without address.
7007
7008 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7009
7010 * nbsd-nat.h (struct thread_info): Add forward declaration.
7011 (nbsd_nat_target::thread_alive): Add.
7012 (nbsd_nat_target::thread_name): Likewise.
7013 (nbsd_nat_target::update_thread_list): Likewise.
7014 (update_thread_list::post_attach): Likewise.
7015 (post_attach::pid_to_str): Likewise.
7016 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
7017 (nbsd_thread_lister): Add.
7018 (nbsd_nat_target::thread_alive): Likewise.
7019 (nbsd_nat_target::thread_name): Likewise.
7020 (nbsd_add_threads): Likewise.
7021 (update_thread_list::post_attach): Likewise.
7022 (nbsd_nat_target::update_thread_list): Likewise.
7023 (post_attach::pid_to_str): Likewise.
7024
7025 2020-04-06 Tom Tromey <tromey@adacore.com>
7026
7027 * ada-valprint.c (print_variant_part): Extract the variant field.
7028 (print_field_values): Use the field as the outer value when
7029 recursing.
7030
7031 2020-04-06 Tom Tromey <tromey@adacore.com>
7032
7033 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
7034 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
7035 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
7036 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
7037 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
7038
7039 2020-04-06 Tom Tromey <tromey@adacore.com>
7040
7041 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
7042 TYPE_CODE_ERROR.
7043
7044 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7045
7046 * nbsd-tdep.c: Include "gdbarch.h".
7047 Define enum with NetBSD signal numbers.
7048 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
7049 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
7050 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
7051 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
7052 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
7053 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
7054 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
7055 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
7056 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
7057 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7058 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7059 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
7060
7061 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
7062
7063 PR gdb/25325
7064 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
7065
7066 2020-04-03 Tom Tromey <tromey@adacore.com>
7067
7068 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
7069 Read constant block.
7070
7071 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7072
7073 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
7074 (gdb_bfd_get_full_section_contents): New declaration.
7075 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
7076 * windows-tdep.c (is_linked_with_cygwin_dll): Use
7077 gdb_bfd_get_full_section_contents.
7078
7079 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7080
7081 * exec.c (build_section_table): Replace internal_error with
7082 gdb_assert.
7083 (section_table_xfer_memory_partial): Likewise.
7084 * mdebugread.c (parse_partial_symbols): Likewise.
7085 * psymtab.c (lookup_partial_symbol): Likewise.
7086 * utils.c (wrap_here): Likewise.
7087
7088 2020-04-02 Tom Tromey <tromey@adacore.com>
7089
7090 * f-lang.c (build_fortran_types): Use arch_type to initialize
7091 builtin_complex_s32 in the TYPE_CODE_ERROR case.
7092
7093 2020-04-02 Tom Tromey <tromey@adacore.com>
7094
7095 * dwarf2/read.c (partial_die_info::read): Do not create a vector
7096 of attributes.
7097
7098 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
7099 Bernd Edlinger <bernd.edlinger@hotmail.de>
7100 Tom Tromey <tromey@adacore.com>
7101
7102 * buildsym.c (buildsym_compunit::record_line): Remove
7103 deduplication code.
7104
7105 2020-04-02 Tom de Vries <tdevries@suse.de>
7106
7107 PR ada/24671
7108 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
7109
7110 2020-04-02 Tom de Vries <tdevries@suse.de>
7111
7112 * dwarf2/read.c (dwarf2_gdb_index_functions,
7113 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
7114 NULL.
7115 * psymtab.c (psym_lookup_global_symbol_language): New function.
7116 (psym_functions): Init psym_lookup_global_symbol_language with
7117 psym_lookup_global_symbol_language.
7118 * symfile-debug.c (debug_sym_quick_functions): Init
7119 lookup_global_symbol_language with NULL.
7120 * symfile.c (set_initial_language): Remove fixme comment.
7121 * symfile.h (struct quick_symbol_functions): Add
7122 lookup_global_symbol_language.
7123 * symtab.c (find_quick_global_symbol_language): New function.
7124 (find_main_name): Use find_quick_global_symbol_language.
7125
7126 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
7127
7128 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
7129
7130 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7131
7132 * buildsym.c (record_line): Fix undefined behavior and preserve
7133 lines at eof.
7134
7135 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7136
7137 * buildsym.c (record_line): Fix the resizing condition.
7138
7139 2020-04-01 Tom Tromey <tom@tromey.com>
7140
7141 * value.h (value_literal_complex): Add comment.
7142 * valops.c (value_literal_complex): Refer to value.h.
7143
7144 2020-04-01 Tom Tromey <tom@tromey.com>
7145
7146 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
7147 (scalar_type): New rule, from typebase.
7148 (typebase): Use scalar_type. Recognize complex types.
7149 (field_name): Handle FLOAT_KEYWORD.
7150 (ident_tokens): Add _Complex and __complex__.
7151
7152 2020-04-01 Tom Tromey <tom@tromey.com>
7153
7154 PR exp/25299:
7155 * valarith.c (promotion_type, complex_binop): New functions.
7156 (scalar_binop): Handle complex numbers. Use promotion_type.
7157 (value_pos, value_neg, value_complement): Handle complex numbers.
7158
7159 2020-04-01 Tom Tromey <tom@tromey.com>
7160
7161 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
7162 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
7163 (parse_number): Handle complex numbers.
7164
7165 2020-04-01 Tom Tromey <tom@tromey.com>
7166
7167 * c-valprint.c (c_decorations): Change complex suffix to "i".
7168
7169 2020-04-01 Tom Tromey <tom@tromey.com>
7170
7171 * valprint.c (generic_value_print_complex): Use accessors.
7172 * value.h (value_real_part, value_imaginary_part): Declare.
7173 * valops.c (value_real_part, value_imaginary_part): New
7174 functions.
7175 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
7176
7177 2020-04-01 Tom Tromey <tom@tromey.com>
7178
7179 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
7180 (read_range_type): Update.
7181 * mdebugread.c (basic_type): Update.
7182 * go-lang.c (build_go_types): Use init_complex_type.
7183 * gdbtypes.h (struct main_type) <complex_type>: New member.
7184 (init_complex_type): Update.
7185 (arch_complex_type): Don't declare.
7186 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
7187 Make name if none given. Use alloc_type_copy. Look for cached
7188 complex type.
7189 (arch_complex_type): Remove.
7190 (gdbtypes_post_init): Use init_complex_type.
7191 * f-lang.c (build_fortran_types): Use init_complex_type.
7192 * dwarf2/read.c (read_base_type): Update.
7193 * d-lang.c (build_d_types): Use init_complex_type.
7194 * ctfread.c (read_base_type): Update.
7195
7196 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7197
7198 * infrun.c (stop_all_threads): Update assertion, plus when
7199 stopping threads, take into account that we might be trying
7200 to stop an all-stop target.
7201 (stop_waiting): Call 'stop_all_threads' if there exists a
7202 non-stop target.
7203
7204 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7205
7206 * target.h (exists_non_stop_target): New function declaration.
7207 * target.c (exists_non_stop_target): New function.
7208
7209 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
7210
7211 PR gdb/24789
7212 * eval.c (is_integral_or_integral_reference): New function.
7213 (evaluate_subexp_standard): Allow integer references in
7214 pointer arithmetic.
7215
7216 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7217
7218 * remote.c (remote_target::remote_parse_stop_reply): Remove the
7219 check for no ptid in the stop reply when the target is non-stop.
7220
7221 2020-04-01 Tom Tromey <tromey@adacore.com>
7222
7223 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
7224 "name" parameter to rvalue reference. Initialize m_name_holder.
7225 <lookup_name_info>: New overloads.
7226 <name>: Return gdb::string_view.
7227 <c_str>: New method.
7228 <make_ignore_params>: Update.
7229 <search_name_hash>: Update.
7230 <language_lookup_name>: Return const char *.
7231 <m_name>: Change type.
7232 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
7233 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
7234 (lookup_name_info::match_any): Update.
7235 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7236 Update.
7237 * minsyms.c (linkage_name_str): Update.
7238 * language.c (default_symbol_name_matcher): Update.
7239 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7240 Update.
7241 * ada-lang.c (ada_fold_name): Change parameter to string_view.
7242 (ada_lookup_name_info::ada_lookup_name_info): Update.
7243 (literal_symbol_name_matcher): Update.
7244
7245 2020-04-01 Tom Tromey <tromey@adacore.com>
7246
7247 * psymtab.c (psymtab_search_name): Remove function.
7248 (psym_lookup_symbol): Create search name and lookup name here.
7249 (lookup_partial_symbol): Remove "name" parameter; add
7250 lookup_name.
7251 (psym_expand_symtabs_for_function): Update.
7252
7253 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
7254
7255 PR tui/25597:
7256 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7257
7258 2020-03-31 Tom Tromey <tromey@adacore.com>
7259
7260 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7261 memcpy.
7262
7263 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
7264
7265 * features/riscv/32bit-csr.xml: Regenerated.
7266 * features/riscv/64bit-csr.xml: Regenerated.
7267
7268 2020-03-30 Tom Tromey <tromey@adacore.com>
7269
7270 * ada-valprint.c (print_variant_part): Update.
7271 * ada-lang.h (ada_which_variant_applies): Update.
7272 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7273 outer_valaddr parameters; replace with "outer" value parameter.
7274 (to_fixed_variant_branch_type): Update.
7275
7276 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7277
7278 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7279 <list>. Remove inclusion of observable.h.
7280 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7281 (struct arch_lwp_info): New struct.
7282 (class ppc_linux_dreg_interface): New class.
7283 (struct ppc_linux_process_info): New struct.
7284 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7285 <low_new_clone, low_forget_process, low_prepare_to_resume>
7286 <copy_thread_dreg_state, mark_thread_stale>
7287 <mark_debug_registers_changed, register_hw_breakpoint>
7288 <clear_hw_breakpoint, register_wp, clear_wp>
7289 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7290 <num_memory_accesses, get_trigger_type>
7291 <create_watchpoint_request, hwdebug_point_cmp>
7292 <init_arch_lwp_info, get_arch_lwp_info>
7293 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7294 methods.
7295 <struct ptid_hash>: New inner struct.
7296 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7297 members.
7298 (saved_dabr_value, hwdebug_info, max_slots_number)
7299 (struct hw_break_tuple, struct thread_points, ppc_threads)
7300 (have_ptrace_hwdebug_interface)
7301 (hwdebug_find_thread_points_by_tid)
7302 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7303 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7304 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7305 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7306 use m_dreg_interface.
7307 (hwdebug_point_cmp): Change to...
7308 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7309 reference arguments instead of pointers.
7310 (ppc_linux_nat_target::ranged_break_num_registers): Use
7311 m_dreg_interface.
7312 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7313 m_dreg_interface. Call register_hw_breakpoint.
7314 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7315 m_dreg_interface. Call clear_hw_breakpoint.
7316 (get_trigger_type): Change to...
7317 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7318 comment.
7319 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7320 use m_dreg_interface. Call register_hw_breakpoint.
7321 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7322 use m_dreg_interface. Call clear_hw_breakpoint.
7323 (can_use_watchpoint_cond_accel): Change to...
7324 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7325 method. Update comment, use m_dreg_interface and
7326 m_process_info.
7327 (calculate_dvc): Change to...
7328 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7329 m_dreg_interface.
7330 (num_memory_accesses): Change to...
7331 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7332 (check_condition): Change to...
7333 (ppc_linux_nat_target::check_condition): ...this method.
7334 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7335 comment, use m_dreg_interface.
7336 (create_watchpoint_request): Change to...
7337 (ppc_linux_nat_target::create_watchpoint_request): ...this
7338 method. Use m_dreg_interface.
7339 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7340 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7341 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7342 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7343 (ppc_linux_nat_target::low_forget_process)
7344 (ppc_linux_nat_target::low_new_fork)
7345 (ppc_linux_nat_target::low_new_clone)
7346 (ppc_linux_nat_target::low_delete_thread)
7347 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7348 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7349 only call mark_thread_stale.
7350 (ppc_linux_thread_exit): Remove.
7351 (ppc_linux_nat_target::stopped_data_address): Change to...
7352 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7353 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7354 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7355 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7356 comment. Call low_stopped_data_address.
7357 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7358 m_dreg_interface.
7359 (ppc_linux_nat_target::masked_watch_num_registers): Use
7360 m_dreg_interface.
7361 (ppc_linux_nat_target::copy_thread_dreg_state)
7362 (ppc_linux_nat_target::mark_thread_stale)
7363 (ppc_linux_nat_target::mark_debug_registers_changed)
7364 (ppc_linux_nat_target::register_hw_breakpoint)
7365 (ppc_linux_nat_target::clear_hw_breakpoint)
7366 (ppc_linux_nat_target::register_wp)
7367 (ppc_linux_nat_target::clear_wp)
7368 (ppc_linux_nat_target::init_arch_lwp_info)
7369 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7370 (_initialize_ppc_linux_nat): Remove observer callback.
7371
7372 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7373
7374 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7375 (ppc_linux_nat_target::auxv_parse)
7376 (ppc_linux_nat_target::read_description)
7377 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7378 Move up.
7379
7380 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7381
7382 * linux-nat.h (low_new_clone): New method.
7383 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7384
7385 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7386
7387 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7388 (dbx_expand_psymtab): ... this.
7389 (start_psymtab): Update.
7390 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7391 (mdebug_expand_psymtab): ... this.
7392 (parse_partial_symbols): Update.
7393 (new_psymtab): Update.
7394 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7395 (xcoff_expand_psymtab): ... this.
7396 (xcoff_start_psymtab): Update.
7397
7398 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7399
7400 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7401 <expand_dependencies>: ... this.
7402 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7403 (partial_symtab::expand_dependencies): ... this.
7404 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7405 Update.
7406 (dwarf2_psymtab::expand_psymtab): Update.
7407 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7408 * mdebugread.c (psymtab_to_symtab_1): Update.
7409 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7410
7411 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7412
7413 * psympriv.h (discard_psymtab): Remove.
7414 * dbxread.c (dbx_end_psymtab): Update.
7415 * xcoffread.c (xcoff_end_psymtab): Update.
7416
7417 2020-03-28 Tom Tromey <tom@tromey.com>
7418
7419 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7420 comment.
7421
7422 2020-03-28 Tom Tromey <tom@tromey.com>
7423
7424 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7425
7426 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
7427
7428 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7429
7430 2020-03-26 John Baldwin <jhb@FreeBSD.org>
7431
7432 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7433
7434 2020-03-26 Tom Tromey <tom@tromey.com>
7435
7436 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7437 (mark_common_block_symbol_computed, read_tag_string_type)
7438 (attr_to_dynamic_prop, read_subrange_type): Update.
7439 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7440 to be methods on struct attribute.
7441 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7442 (read_call_site_scope, partial_die_info::read)
7443 (partial_die_info::read, lookup_die_type, follow_die_ref):
7444 Update.
7445 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7446 from dwarf2_get_ref_die_offset.
7447 (attribute::constant_value): New method, from
7448 dwarf2_get_attr_constant_value.
7449 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7450 Declare method.
7451 <constant_value>: New method.
7452
7453 2020-03-26 Tom Tromey <tom@tromey.com>
7454
7455 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7456 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7457 (dwarf_type_encoding_name): Move to stringify.c.
7458 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7459 * dwarf2/stringify.c: New file.
7460 * dwarf2/stringify.h: New file.
7461
7462 2020-03-26 Tom Tromey <tom@tromey.com>
7463
7464 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7465 Rewrite.
7466
7467 2020-03-26 Tom Tromey <tom@tromey.com>
7468
7469 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7470 methods.
7471 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7472 (lookup_ranges_base): Likewise.
7473 (read_cutu_die_from_dwo, read_full_die_1): Update.
7474
7475 2020-03-26 Tom Tromey <tom@tromey.com>
7476
7477 * dwarf2/read.c (read_import_statement, read_file_scope)
7478 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7479 (read_lexical_block_scope, read_call_site_scope)
7480 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7481 (handle_struct_member_die, process_structure_scope)
7482 (update_enumeration_type_from_children)
7483 (process_enumeration_scope, read_array_type, read_common_block)
7484 (read_namespace, read_module, read_subroutine_type): Update.
7485 (sibling_die): Remove.
7486
7487 2020-03-26 Tom Tromey <tom@tromey.com>
7488
7489 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7490 (build_type_psymtabs_reader, read_structure_type)
7491 (read_enumeration_type, read_full_die_1): Update.
7492 (dwarf2_attr_no_follow): Move to die.h.
7493 * dwarf2/die.h (struct die_info) <attr>: New method.
7494
7495 2020-03-26 Tom Tromey <tom@tromey.com>
7496
7497 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7498 <base_address>: Now an optional.
7499 (dwarf2_find_base_address, dwarf2_rnglists_process)
7500 (dwarf2_ranges_process, fill_in_loclist_baton)
7501 (dwarf2_symbol_mark_computed): Update.
7502
7503 2020-03-26 Tom Tromey <tom@tromey.com>
7504
7505 * dwarf2/read.c (struct die_info): Move to die.h.
7506 * dwarf2/die.h: New file.
7507
7508 2020-03-26 Tom Tromey <tom@tromey.com>
7509
7510 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7511 * dwarf2/read.c
7512 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7513 Move to line-header.c.
7514 (read_checked_initial_length_and_offset, read_formatted_entries):
7515 Likewise.
7516 (dwarf_decode_line_header): Split into two.
7517 * dwarf2/line-header.c
7518 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7519 Move from read.c.
7520 (read_checked_initial_length_and_offset, read_formatted_entries):
7521 Likewise.
7522 (dwarf_decode_line_header): New function, split from read.c.
7523
7524 2020-03-26 Tom Tromey <tom@tromey.com>
7525
7526 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7527 Declare method.
7528 * dwarf2/read.c (read_attribute_value): Update.
7529 (dwarf2_per_objfile::read_line_string): Rename from
7530 read_indirect_line_string.
7531 (read_formatted_entries): Update.
7532
7533 2020-03-26 Tom Tromey <tom@tromey.com>
7534
7535 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7536 variable.
7537
7538 2020-03-26 Tom Tromey <tom@tromey.com>
7539
7540 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7541 const.
7542 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7543 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7544 parameter const.
7545
7546 2020-03-26 Tom Tromey <tom@tromey.com>
7547
7548 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7549 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7550 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7551 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7552
7553 2020-03-26 Tom Tromey <tom@tromey.com>
7554
7555 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7556 file_names_size, file_full_name, file_file_name>: Use const.
7557 <file_name_at, file_names>: Add const overload.
7558 * dwarf2/line-header.c (line_header::file_file_name)
7559 (line_header::file_full_name): Update.
7560
7561 2020-03-26 Tom Tromey <tom@tromey.com>
7562
7563 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7564 (macro_start_file, consume_improper_spaces)
7565 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7566 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7567 (dwarf_decode_macros): Move to macro.c.
7568 * dwarf2/macro.c: New file.
7569 * dwarf2/macro.h: New file.
7570 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7571
7572 2020-03-26 Tom Tromey <tom@tromey.com>
7573
7574 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7575 method.
7576 * dwarf2/section.c: New method. From
7577 read_indirect_string_at_offset_from.
7578 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7579 (read_indirect_string_at_offset_from): Move to section.c.
7580 (read_indirect_string_at_offset): Rewrite.
7581 (read_indirect_line_string_at_offset): Remove.
7582 (read_indirect_string, read_indirect_line_string)
7583 (dwarf_decode_macro_bytes): Update.
7584
7585 2020-03-26 Tom Tromey <tom@tromey.com>
7586
7587 * dwarf2/section.h (struct dwarf2_section_info)
7588 <overload_complaint>: Declare.
7589 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7590 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7591 Rename from dwarf2_section_buffer_overflow_complaint.
7592 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7593 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7594
7595 2020-03-26 Tom Tromey <tom@tromey.com>
7596
7597 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7598 Declare.
7599 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7600 Move from read.c.
7601 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7602 to section.c.
7603
7604 2020-03-26 Tom Tromey <tom@tromey.com>
7605
7606 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7607
7608 2020-03-26 Tom Tromey <tom@tromey.com>
7609
7610 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7611 "builder".
7612 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7613 parameter.
7614 (dwarf_decode_macros): Update.
7615
7616 2020-03-26 Tom Tromey <tom@tromey.com>
7617
7618 * dwarf2/read.c (read_attribute_value): Update.
7619 (read_indirect_string_from_dwz): Move to dwz.c; change into
7620 method.
7621 (dwarf_decode_macro_bytes): Update.
7622 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7623 * dwarf2/dwz.c: New file.
7624 * Makefile.in (COMMON_SFILES): Add dwz.c.
7625
7626 2020-03-26 Tom Tromey <tom@tromey.com>
7627
7628 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7629 * dwarf2/read.c: Add include.
7630 * dwarf2/index-write.c: Add include.
7631 * dwarf2/index-cache.c: Add include.
7632 * dwarf2/dwz.h: New file.
7633
7634 2020-03-25 Tom Tromey <tom@tromey.com>
7635
7636 * compile/compile-object-load.c (get_out_value_type): Mention
7637 correct symbol name in error message.
7638
7639 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
7640
7641 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7642
7643 2020-03-25 Tom de Vries <tdevries@suse.de>
7644
7645 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7646 * symmisc.c (dump_symtab_1): Print user and includes fields.
7647 (maintenance_info_symtabs): Same.
7648
7649 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7650
7651 PR gdb/25534
7652 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7653 (riscv_regcache_cooked_write): New function.
7654 (riscv_push_dummy_call): Use new function.
7655 (riscv_return_value): Likewise.
7656
7657 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7658
7659 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7660 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7661 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7662 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7663 * infrun.c (follow_fork): Likewise.
7664 (follow_fork_inferior): Likewise.
7665 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7666 * linux-nat.h (class linux_nat_target): Likewise.
7667 * remote.c (class remote_target) <follow_fork>: Likewise.
7668 (remote_target::follow_fork): Likewise.
7669 * target-delegates.c: Re-generate.
7670 * target.c (default_follow_fork): Likewise.
7671 (target_follow_fork): Likewise.
7672 * target.h (struct target_ops) <follow_fork>: Likewise.
7673 (target_follow_fork): Likewise.
7674
7675 2020-03-24 Tom de Vries <tdevries@suse.de>
7676
7677 * psymtab.c (maintenance_info_psymtabs): Print user field.
7678
7679 2020-03-20 Tom Tromey <tromey@adacore.com>
7680
7681 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7682 const.
7683 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7684 const.
7685
7686 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
7687
7688 * ptrace.m4: Don't check for ptrace declaration.
7689 * config.in: Re-generate.
7690 * configure: Re-generate.
7691 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7692 not defined.
7693
7694 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7695
7696 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7697 `PTRACE_TYPE_RET'.
7698 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7699 * sparc-nat.c (gdb_ptrace): Likewise.
7700 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7701
7702 2020-03-20 Tom Tromey <tromey@adacore.com>
7703
7704 * c-exp.y (lex_one_token): Fix assert.
7705
7706 2020-03-20 Tom Tromey <tromey@adacore.com>
7707
7708 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7709 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7710 strncpy call.
7711
7712 2020-03-20 Tom Tromey <tromey@adacore.com>
7713
7714 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7715
7716 2020-03-20 Tom Tromey <tromey@adacore.com>
7717
7718 * ada-valprint.c (print_variant_part): Remove parameters; switch
7719 to value-based API.
7720 (print_field_values): Likewise.
7721 (ada_val_print_struct_union): Likewise.
7722 (ada_value_print_1): Update.
7723
7724 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7725
7726 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7727 nbsd_nat_target instead of inf_ptrace_target.
7728 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7729 nbsd_nat_target.
7730
7731 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7732
7733 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7734 it to the ptrace call.
7735 * (store_registers): Likewise.
7736
7737 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7738
7739 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7740 it to the ptrace call.
7741 * (store_registers): Likewise.
7742
7743 2020-03-19 Luis Machado <luis.machado@linaro.org>
7744
7745 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7746 valid, fetch vg value from ptrace.
7747
7748 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7749 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7750 * inf-ptrace.c: Likewise.
7751 * (gdb_ptrace): Add.
7752 * (inf_ptrace_target::resume): Update.
7753 * (inf_ptrace_target::xfer_partial): Likewise.
7754 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7755 * (inf_ptrace_peek_poke): Update.
7756
7757 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7758
7759 * x86-bsd-nat.c (gdb_ptrace): New.
7760 * (x86bsd_dr_set): Add new argument `ptid'.
7761 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7762 x86bsd_dr_set_addr): Update.
7763
7764 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7765
7766 * remote.c (remote_target::process_stop_reply): Handle events for
7767 all threads differently.
7768
7769 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7770
7771 * completer.c (completion_tracker::remove_completion): Define new
7772 function.
7773 * completer.h (completion_tracker::remove_completion): Declare new
7774 function.
7775 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7776 when adding a C++ function symbol.
7777
7778 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7779
7780 * completer.c (completion_tracker::completion_hash_entry): Define
7781 new class.
7782 (advance_to_filename_complete_word_point): Call
7783 recompute_lowest_common_denominator.
7784 (completion_tracker::completion_tracker): Call discard_completions
7785 to setup the hash table.
7786 (completion_tracker::discard_completions): Allow for being called
7787 from the constructor, pass new equal function, and element deleter
7788 when constructing the hash table. Initialise new class member
7789 variables.
7790 (completion_tracker::maybe_add_completion): Remove use of
7791 m_entries_vec, and store more information into m_entries_hash.
7792 (completion_tracker::recompute_lcd_visitor): New function, most
7793 content taken from...
7794 (completion_tracker::recompute_lowest_common_denominator):
7795 ...here, this now just visits each item in the hash calling the
7796 above visitor.
7797 (completion_tracker::build_completion_result): Remove use of
7798 m_entries_vec, call recompute_lowest_common_denominator.
7799 * completer.h (completion_tracker::have_completions): Remove use
7800 of m_entries_vec.
7801 (completion_tracker::completion_hash_entry): Declare new class.
7802 (completion_tracker::recompute_lowest_common_denominator): Change
7803 function signature.
7804 (completion_tracker::recompute_lcd_visitor): Declare new function.
7805 (completion_tracker::m_entries_vec): Delete.
7806 (completion_tracker::m_entries_hash): Initialize to NULL.
7807 (completion_tracker::m_lowest_common_denominator_valid): New
7808 member variable.
7809 (completion_tracker::m_lowest_common_denominator_max_length): New
7810 member variable.
7811
7812 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7813
7814 * regformats/regdef.h: Put reg in gdb namespace.
7815
7816 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7817
7818 * i386-bsd-nat.c (gdb_ptrace): New.
7819 * (i386bsd_fetch_inferior_registers,
7820 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7821 * (i386bsd_fetch_inferior_registers,
7822 i386bsd_store_inferior_registers) Use gdb_ptrace.
7823
7824 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7825
7826 * amd64-bsd-nat.c (gdb_ptrace): New.
7827 * (amd64bsd_fetch_inferior_registers,
7828 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7829 * (amd64bsd_fetch_inferior_registers,
7830 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7831
7832 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7833
7834 * user-regs.c (user_reg::read): Rename to...
7835 (user_reg::xread): ...this.
7836 * (append_user_reg): Rename argument `read' to `xread'.
7837 * (user_reg_add_builtin): Likewise.
7838 * (user_reg_add): Likewise.
7839 * (value_of_user_reg): Likewise.
7840
7841 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7842
7843 * sparc-nat.c (gdb_ptrace): New.
7844 * sparc-nat.c (sparc_fetch_inferior_registers)
7845 (sparc_store_inferior_registers) Remove obsolete comment.
7846 * sparc-nat.c (sparc_fetch_inferior_registers)
7847 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7848 * sparc-nat.c (sparc_fetch_inferior_registers)
7849 (sparc_store_inferior_registers) Use gdb_ptrace.
7850
7851 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7852
7853 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7854 it to the ptrace call.
7855 * sh-nbsd-nat.c (store_registers): Likewise.
7856
7857 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7858
7859 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7860 nbsd_nat_target instead of inf_ptrace_target.
7861 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7862 nbsd_nat_target.
7863
7864 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7865
7866 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7867
7868 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7869
7870 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7871 <sys/sysctl.h>.
7872 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7873
7874 2020-03-17 Tom de Vries <tdevries@suse.de>
7875
7876 PR gdb/23710
7877 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7878 fields.
7879 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7880 fields.
7881 (process_imported_unit_die): Skip import of c++ CUs.
7882
7883 2020-03-16 Tom Tromey <tom@tromey.com>
7884
7885 * p-valprint.c (pascal_object_print_value): Initialize
7886 base_value.
7887
7888 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7889 Shahab Vahedi <shahab@synopsys.com>
7890
7891 * Makefile.in: Add arch/arc.o
7892 * configure.tgt: Likewise.
7893 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7894 (_initialize_arc_tdep): Don't initialize old target descriptions.
7895 (arc_read_description): New function to cache target descriptions.
7896 * arc-tdep.h (arc_read_description): Add proto type.
7897 * arch/arc.c: New file.
7898 * arch/arc.h: Likewise.
7899 * features/Makefile: Replace old target descriptions with new.
7900 * features/arc-arcompact.c: Remove.
7901 * features/arc-arcompact.xml: Likewise.
7902 * features/arc-v2.c: Likewise
7903 * features/arc-v2.xml: Likewise
7904 * features/arc/aux-arcompact.xml: New file.
7905 * features/arc/aux-v2.xml: Likewise.
7906 * features/arc/core-arcompact.xml: Likewise.
7907 * features/arc/core-v2.xml: Likewise.
7908 * features/arc/aux-arcompact.c: Generate.
7909 * features/arc/aux-v2.c: Likewise.
7910 * features/arc/core-arcompact.c: Likewise.
7911 * features/arc/core-v2.c: Likewise.
7912 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7913
7914 2020-03-16 Tom Tromey <tromey@adacore.com>
7915
7916 PR gdb/25663:
7917 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7918 putting value into bcache.
7919
7920 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7921
7922 PR gdb/21500
7923 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7924 to...
7925 (amd64_windows_init_abi_common): ... this. Don't set size of
7926 long type.
7927 (amd64_windows_init_abi): New function.
7928 (amd64_cygwin_init_abi): New function.
7929 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7930 the Cygwin OS ABI.
7931 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7932 comment.
7933
7934 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7935
7936 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7937 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7938 (pe_import_directory_entry): New struct type.
7939 (is_linked_with_cygwin_dll): New function.
7940 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7941 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7942 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7943
7944 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7945
7946 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7947 i386_cygwin_core_osabi_sniffer.
7948
7949 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7950
7951 * i386-cygwin-tdep.c: Rename to...
7952 * i386-windows-tdep.c: ... this.
7953 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7954 i386-windows-tdep.c.
7955 * configure.tgt: Likewise.
7956
7957 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7958
7959 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7960 * osabi.c (gdb_osabi_names): Add "Windows".
7961 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7962 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7963 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7964 i386_cygwin_osabi_sniffer.
7965 (_initialize_i386_cygwin_tdep): Register OS ABI
7966 GDB_OSABI_WINDOWS for i386.
7967 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7968 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7969 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7970 for x86-64.
7971 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7972 when the target matches '*-*-mingw*'.
7973
7974 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7975
7976 * defs.h (enum gdb_osabi): Move to...
7977 * osabi.h (enum gdb_osabi): ... here.
7978 * gdbarch.sh: Include osabi.h in gdbarch.h.
7979 * gdbarch.h: Re-generate.
7980
7981 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7982
7983 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7984 function.
7985 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7986
7987 2020-03-14 Tom Tromey <tom@tromey.com>
7988
7989 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7990 for C++.
7991 (c_type_print_modifier): Likewise. Add "language" parameter.
7992 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7993 (c_type_print_base_1): Update.
7994 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7995 constants.
7996 * type-stack.c (type_stack::insert): Handle tp_atomic and
7997 tp_restrict.
7998 (type_stack::follow_type_instance_flags): Likewise.
7999 (type_stack::follow_types): Likewise. Merge type-following code.
8000 * c-exp.y (RESTRICT, ATOMIC): New tokens.
8001 (space_identifier, cv_with_space_id)
8002 (const_or_volatile_or_space_identifier_noopt)
8003 (const_or_volatile_or_space_identifier): Remove.
8004 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
8005 rules.
8006 (ptr_operator, typebase): Update.
8007 (enum token_flag) <FLAG_C>: New constant.
8008 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
8009 "_Atomic".
8010 (lex_one_token): Handle FLAG_C.
8011
8012 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8013
8014 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
8015 it to the ptrace call.
8016 * m68k-bsd-nat.c (store_registers): Likewise.
8017
8018 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8019
8020 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
8021 gdb_byte *.
8022 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
8023 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
8024 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
8025
8026 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8027
8028 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
8029 nbsd_nat_target instead of inf_ptrace_target.
8030 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8031 nbsd_nat_target.
8032
8033 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8034
8035 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
8036 register_t.
8037
8038 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8039
8040 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
8041 it to the ptrace call.
8042 * alpha-bsd-nat.c (store_registers): Likewise.
8043
8044 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8045
8046 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
8047 includes.
8048 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
8049 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
8050 fill_fpregset): Likewise.
8051
8052 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8053
8054 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
8055 nbsd_nat_target instead of inf_ptrace_target.
8056 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8057 nbsd_nat_target.
8058
8059 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8060
8061 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
8062 register_t.
8063
8064 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8065
8066 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
8067 it to the ptrace call.
8068 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
8069 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
8070 * arm-nbsd-nat.c (store_register): Likewise.
8071 * arm-nbsd-nat.c (store_regs): Likewise.
8072 * arm-nbsd-nat.c (store_fp_register): Likewise.
8073 * arm-nbsd-nat.c (store_fp_regs): Likewise.
8074
8075 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8076
8077 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
8078 nbsd_nat_target instead of inf_ptrace_target.
8079 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8080 nbsd_nat_target.
8081
8082 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8083
8084 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
8085 it to the ptrace call.
8086 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
8087
8088 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8089
8090 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
8091 it to the ptrace call.
8092 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
8093
8094 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8095
8096 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
8097 gdb_byte *.
8098 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
8099
8100 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8101
8102 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
8103 instead of inf_ptrace_target.
8104 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8105 nbsd_nat_target.
8106
8107 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8108
8109 * mips-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 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8115 register_t.
8116
8117 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8118
8119 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
8120 register_t.
8121
8122 2020-03-13 Tom Tromey <tom@tromey.com>
8123
8124 * value.h (val_print): Don't declare.
8125 * valprint.h (val_print_array_elements)
8126 (val_print_scalar_formatted, generic_val_print): Don't declare.
8127 * valprint.c (generic_val_print_array): Take a struct value.
8128 (generic_val_print_ptr, generic_val_print_memberptr)
8129 (generic_val_print_bool, generic_val_print_int)
8130 (generic_val_print_char, generic_val_print_complex)
8131 (generic_val_print): Remove.
8132 (generic_value_print): Update.
8133 (do_val_print): Remove unused parameters. Don't call
8134 la_val_print.
8135 (val_print): Remove.
8136 (common_val_print): Update. Don't call value_check_printable.
8137 (val_print_scalar_formatted, val_print_array_elements): Remove.
8138 * rust-lang.c (rust_val_print): Remove.
8139 (rust_language_defn): Update.
8140 * p-valprint.c (pascal_val_print): Remove.
8141 (pascal_value_print_inner): Update.
8142 (pascal_object_print_val_fields, pascal_object_print_val):
8143 Remove.
8144 (pascal_object_print_static_field): Update.
8145 * p-lang.h (pascal_val_print): Don't declare.
8146 * p-lang.c (pascal_language_defn): Update.
8147 * opencl-lang.c (opencl_language_defn): Update.
8148 * objc-lang.c (objc_language_defn): Update.
8149 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
8150 * m2-lang.h (m2_val_print): Don't declare.
8151 * m2-lang.c (m2_language_defn): Update.
8152 * language.h (struct language_defn) <la_val_print>: Remove.
8153 * language.c (unk_lang_value_print_inner): Rename. Change
8154 argument types.
8155 (unknown_language_defn, auto_language_defn): Update.
8156 * go-valprint.c (go_val_print): Remove.
8157 * go-lang.h (go_val_print): Don't declare.
8158 * go-lang.c (go_language_defn): Update.
8159 * f-valprint.c (f_val_print): Remove.
8160 * f-lang.h (f_value_print): Don't declare.
8161 * f-lang.c (f_language_defn): Update.
8162 * d-valprint.c (d_val_print): Remove.
8163 * d-lang.h (d_value_print): Don't declare.
8164 * d-lang.c (d_language_defn): Update.
8165 * cp-valprint.c (cp_print_value_fields)
8166 (cp_print_value_fields_rtti, cp_print_value): Remove.
8167 (cp_print_static_field): Update.
8168 * c-valprint.c (c_val_print_array, c_val_print_ptr)
8169 (c_val_print_struct, c_val_print_union, c_val_print_int)
8170 (c_val_print_memberptr, c_val_print): Remove.
8171 * c-lang.h (c_val_print_array, cp_print_value_fields)
8172 (cp_print_value_fields_rtti): Don't declare.
8173 * c-lang.c (c_language_defn, cplus_language_defn)
8174 (asm_language_defn, minimal_language_defn): Update.
8175 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
8176 (ada_val_print_enum): Take a struct value.
8177 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
8178 (ada_val_print): Remove.
8179 (ada_value_print_1): Update.
8180 (printable_val_type): Remove.
8181 * ada-lang.h (ada_val_print): Don't declare.
8182 * ada-lang.c (ada_language_defn): Update.
8183
8184 2020-03-13 Tom Tromey <tom@tromey.com>
8185
8186 * valprint.c (do_val_print): Update.
8187 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
8188 a struct value.
8189 (value_to_value_object_no_release): Declare.
8190 * python/py-value.c (value_to_value_object_no_release): New
8191 function.
8192 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
8193 struct value.
8194 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
8195 function.
8196 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
8197 a struct value.
8198 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
8199 Declare.
8200 (gdbscm_apply_val_pretty_printer): Take a struct value.
8201 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
8202 value.
8203 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
8204 value.
8205 * extension-priv.h (struct extension_language_ops)
8206 <apply_val_pretty_printer>: Take a struct value.
8207 * cp-valprint.c (cp_print_value): Create a struct value.
8208 (cp_print_value): Update.
8209
8210 2020-03-13 Tom Tromey <tom@tromey.com>
8211
8212 * ada-valprint.c (print_field_values): Call common_val_print.
8213
8214 2020-03-13 Tom Tromey <tom@tromey.com>
8215
8216 * ada-valprint.c (val_print_packed_array_elements): Remove
8217 bitoffset and val parameters. Call common_val_print.
8218 (ada_val_print_string): Remove offset, address, and original_value
8219 parameters.
8220 (ada_val_print_array): Update.
8221 (ada_value_print_array): New function.
8222 (ada_value_print_1): Call it.
8223
8224 2020-03-13 Tom Tromey <tom@tromey.com>
8225
8226 * ada-valprint.c (ada_value_print): Use common_val_print.
8227
8228 2020-03-13 Tom Tromey <tom@tromey.com>
8229
8230 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
8231
8232 2020-03-13 Tom Tromey <tom@tromey.com>
8233
8234 * ada-valprint.c (ada_value_print_num): New function.
8235 (ada_value_print_1): Use it.
8236
8237 2020-03-13 Tom Tromey <tom@tromey.com>
8238
8239 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8240
8241 2020-03-13 Tom Tromey <tom@tromey.com>
8242
8243 * ada-valprint.c (ada_value_print_ptr): New function.
8244 (ada_value_print_1): Use it.
8245
8246 2020-03-13 Tom Tromey <tom@tromey.com>
8247
8248 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8249 call common_val_print.
8250 (ada_val_print_1): Update.
8251 (ada_value_print_1): New function.
8252 (ada_value_print_inner): Rewrite.
8253
8254 2020-03-13 Tom Tromey <tom@tromey.com>
8255
8256 * cp-valprint.c (cp_print_value_fields): Update.
8257 (cp_print_value): New function.
8258
8259 2020-03-13 Tom Tromey <tom@tromey.com>
8260
8261 * m2-valprint.c (m2_value_print_inner): Use
8262 cp_print_value_fields.
8263 * cp-valprint.c (cp_print_value_fields): New function.
8264 * c-valprint.c (c_value_print_struct): New function.
8265 (c_value_print_inner): Use c_value_print_struct.
8266 * c-lang.h (cp_print_value_fields): Declare.
8267
8268 2020-03-13 Tom Tromey <tom@tromey.com>
8269
8270 * c-valprint.c (c_value_print_array): 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_memberptr): 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_int): 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_ptr): New function.
8286 (c_value_print_inner): Use it.
8287
8288 2020-03-13 Tom Tromey <tom@tromey.com>
8289
8290 * c-valprint.c (c_value_print_inner): Rewrite.
8291
8292 2020-03-13 Tom Tromey <tom@tromey.com>
8293
8294 * valprint.c (generic_value_print_complex): New function.
8295 (generic_value_print): Use it.
8296
8297 2020-03-13 Tom Tromey <tom@tromey.com>
8298
8299 * valprint.c (generic_val_print_float): Don't call
8300 val_print_scalar_formatted.
8301 (generic_val_print, generic_value_print): Update.
8302
8303 2020-03-13 Tom Tromey <tom@tromey.com>
8304
8305 * valprint.c (generic_value_print_char): 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_int): New function.
8311 (generic_value_print): Use it.
8312
8313 2020-03-13 Tom Tromey <tom@tromey.com>
8314
8315 * valprint.c (generic_value_print_bool): New function.
8316 (generic_value_print): Use it.
8317
8318 2020-03-13 Tom Tromey <tom@tromey.com>
8319
8320 * valprint.c (generic_val_print_func): Simplify.
8321 (generic_val_print, generic_value_print): Update.
8322
8323 2020-03-13 Tom Tromey <tom@tromey.com>
8324
8325 * valprint.c (generic_val_print_flags): Remove.
8326 (generic_val_print, generic_value_print): Update.
8327 (val_print_type_code_flags): Add original_value parameter.
8328
8329 2020-03-13 Tom Tromey <tom@tromey.com>
8330
8331 * valprint.c (generic_val_print): Update.
8332 (generic_value_print): Update.
8333 * valprint.c (generic_val_print_enum): Don't call
8334 val_print_scalar_formatted.
8335
8336 2020-03-13 Tom Tromey <tom@tromey.com>
8337
8338 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8339 * valprint.c (generic_value_print_ptr): New function.
8340
8341 2020-03-13 Tom Tromey <tom@tromey.com>
8342
8343 * valprint.c (generic_value_print): Rewrite.
8344
8345 2020-03-13 Tom Tromey <tom@tromey.com>
8346
8347 * p-valprint.c (pascal_object_print_value_fields)
8348 (pascal_object_print_value): New functions.
8349
8350 2020-03-13 Tom Tromey <tom@tromey.com>
8351
8352 * p-valprint.c (pascal_value_print_inner): Rewrite.
8353
8354 2020-03-13 Tom Tromey <tom@tromey.com>
8355
8356 * f-valprint.c (f_value_print_innner): Rewrite.
8357
8358 2020-03-13 Tom Tromey <tom@tromey.com>
8359
8360 * m2-valprint.c (m2_print_unbounded_array): New overload.
8361 (m2_print_unbounded_array): Update.
8362 (m2_print_array_contents): Take a struct value.
8363 (m2_value_print_inner): Rewrite.
8364
8365 2020-03-13 Tom Tromey <tom@tromey.com>
8366
8367 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8368 (d_value_print_inner): New function.
8369 * d-lang.h (d_value_print_inner): Declare.
8370 * d-lang.c (d_language_defn): Use d_value_print_inner.
8371
8372 2020-03-13 Tom Tromey <tom@tromey.com>
8373
8374 * go-valprint.c (go_value_print_inner): New function.
8375 * go-lang.h (go_value_print_inner): Declare.
8376 * go-lang.c (go_language_defn): Use go_value_print_inner.
8377
8378 2020-03-13 Tom Tromey <tom@tromey.com>
8379
8380 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8381 API.
8382 (rust_val_print): Rewrite.
8383 (rust_value_print_inner): New function, from rust_val_print.
8384 (rust_language_defn): Use rust_value_print_inner.
8385
8386 2020-03-13 Tom Tromey <tom@tromey.com>
8387
8388 * ada-valprint.c (ada_value_print_inner): New function.
8389 * ada-lang.h (ada_value_print_inner): Declare.
8390 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8391
8392 2020-03-13 Tom Tromey <tom@tromey.com>
8393
8394 * f-valprint.c (f_value_print_innner): New function.
8395 * f-lang.h (f_value_print_innner): Declare.
8396 * f-lang.c (f_language_defn): Use f_value_print_innner.
8397
8398 2020-03-13 Tom Tromey <tom@tromey.com>
8399
8400 * p-valprint.c (pascal_value_print_inner): New function.
8401 * p-lang.h (pascal_value_print_inner): Declare.
8402 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8403
8404 2020-03-13 Tom Tromey <tom@tromey.com>
8405
8406 * m2-valprint.c (m2_value_print_inner): New function.
8407 * m2-lang.h (m2_value_print_inner): Declare.
8408 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8409
8410 2020-03-13 Tom Tromey <tom@tromey.com>
8411
8412 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8413 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8414 * c-valprint.c (c_value_print_inner): New function.
8415 * c-lang.h (c_value_print_inner): Declare.
8416 * c-lang.c (c_language_defn, cplus_language_defn)
8417 (asm_language_defn, minimal_language_defn): Use
8418 c_value_print_inner.
8419
8420 2020-03-13 Tom Tromey <tom@tromey.com>
8421
8422 * p-valprint.c (pascal_object_print_value_fields): Now static.
8423 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8424
8425 2020-03-13 Tom Tromey <tom@tromey.com>
8426
8427 * c-valprint.c (c_val_print_array): Simplify.
8428
8429 2020-03-13 Tom Tromey <tom@tromey.com>
8430
8431 * valprint.c (value_print_array_elements): New function.
8432 * valprint.h (value_print_array_elements): Declare.
8433
8434 2020-03-13 Tom Tromey <tom@tromey.com>
8435
8436 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8437 * mips-tdep.c (mips_print_register): Use
8438 value_print_scalar_formatted.
8439
8440 2020-03-13 Tom Tromey <tom@tromey.com>
8441
8442 * valprint.h (value_print_scalar_formatted): Declare.
8443 * valprint.c (value_print_scalar_formatted): New function.
8444
8445 2020-03-13 Tom Tromey <tom@tromey.com>
8446
8447 * valprint.h (generic_value_print): Declare.
8448 * valprint.c (generic_value_print): New function.
8449
8450 2020-03-13 Tom Tromey <tom@tromey.com>
8451
8452 * valprint.c (do_val_print): Call la_value_print_inner, if
8453 available.
8454 * rust-lang.c (rust_language_defn): Update.
8455 * p-lang.c (pascal_language_defn): Update.
8456 * opencl-lang.c (opencl_language_defn): Update.
8457 * objc-lang.c (objc_language_defn): Update.
8458 * m2-lang.c (m2_language_defn): Update.
8459 * language.h (struct language_defn) <la_value_print_inner>: New
8460 member.
8461 * language.c (unknown_language_defn, auto_language_defn): Update.
8462 * go-lang.c (go_language_defn): Update.
8463 * f-lang.c (f_language_defn): Update.
8464 * d-lang.c (d_language_defn): Update.
8465 * c-lang.c (c_language_defn, cplus_language_defn)
8466 (asm_language_defn, minimal_language_defn): Update.
8467 * ada-lang.c (ada_language_defn): Update.
8468
8469 2020-03-13 Tom Tromey <tom@tromey.com>
8470
8471 * c-valprint.c (c_value_print): Use common_val_print.
8472
8473 2020-03-13 Tom Tromey <tom@tromey.com>
8474
8475 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8476
8477 2020-03-13 Tom Tromey <tom@tromey.com>
8478
8479 * f-valprint.c (f77_print_array_1, f_val_print): Use
8480 common_val_print.
8481
8482 2020-03-13 Tom Tromey <tom@tromey.com>
8483
8484 * riscv-tdep.c (riscv_print_one_register_info): Use
8485 common_val_print.
8486
8487 2020-03-13 Tom Tromey <tom@tromey.com>
8488
8489 * mi/mi-main.c (output_register): Use common_val_print.
8490
8491 2020-03-13 Tom Tromey <tom@tromey.com>
8492
8493 * infcmd.c (default_print_one_register_info): Use
8494 common_val_print.
8495
8496 2020-03-13 Tom Tromey <tom@tromey.com>
8497
8498 * valprint.h (common_val_print_checked): Declare.
8499 * valprint.c (common_val_print_checked): New function.
8500 * stack.c (print_frame_arg): Use common_val_print_checked.
8501
8502 2020-03-13 Tom Tromey <tom@tromey.com>
8503
8504 * valprint.c (do_val_print): New function, from val_print.
8505 (val_print): Use do_val_print.
8506 (common_val_print): Use do_val_print.
8507
8508 2020-03-13 Tom Tromey <tom@tromey.com>
8509
8510 * valprint.c (value_print): Use scoped_value_mark.
8511
8512 2020-03-13 Tom de Vries <tdevries@suse.de>
8513
8514 PR symtab/25646
8515 * psymtab.c (partial_symtab::partial_symtab): Don't set
8516 globals_offset and statics_offset. Push element onto
8517 current_global_psymbols and current_static_psymbols stacks.
8518 (concat): New function.
8519 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8520 element from current_global_psymbols and current_static_psymbols
8521 stacks. Concat popped elements to global_psymbols and
8522 static_symbols.
8523 (add_psymbol_to_list): Use current_global_psymbols and
8524 current_static_psymbols stacks.
8525 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8526 current_static_psymbols fields.
8527
8528 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8529
8530 * corelow.c (sniff_core_bfd): Remove.
8531 (class core_target) <m_core_vec>: Remove.
8532 (core_target::core_target): Update.
8533 (core_file_fns): Remove.
8534 (deprecated_add_core_fns): Remove.
8535 (default_core_sniffer): Remove.
8536 (sniff_core_bfd): Remove.
8537 (default_check_format): Remove.
8538 (gdb_check_format): Remove.
8539 (core_target_open): Update.
8540 (core_target::get_core_register_section): Update.
8541 (get_core_registers_cb): Update.
8542 (core_target::fetch_registers): Update.
8543 * gdbcore.h (struct core_fns): Remove.
8544 (deprecated_add_core_fns): Remove.
8545 (default_core_sniffer): Remove.
8546 (default_check_format): Remove.
8547
8548 2020-03-12 Tom Tromey <tom@tromey.com>
8549
8550 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8551 CORE_ADDR.
8552 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8553
8554 2020-03-12 Tom Tromey <tom@tromey.com>
8555
8556 * remote.c (remote_target::download_tracepoint)
8557 (remote_target::enable_tracepoint)
8558 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8559 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8560 sprintf_vma.
8561
8562 2020-03-12 Tom Tromey <tom@tromey.com>
8563
8564 * symfile-mem.c: Update CORE_ADDR size assert.
8565
8566 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8567
8568 * selftest.m4: Move to gdbsupport/.
8569 * acinclude.m4: Update path to selftest.m4.
8570
8571 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8572
8573 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8574 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8575 gdbarch-selfselftests.c and selftest-arch.c.
8576 (SUBDIR_UNITTESTS_OBS): Rename to...
8577 (SELFTESTS_OBS): ... this.
8578 (COMMON_SFILES): Remove disasm-selftests.c and
8579 gdbarch-selftests.c.
8580 * configure.ac: Don't add selftest-arch.{c,o} to
8581 CONFIG_{SRCS,OBS}.
8582 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8583 preprocessor conditions.
8584
8585 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8586
8587 * configure.ac: Don't source bfd/development.sh.
8588 * selftest.m4: Modify comment.
8589 * configure: Re-generate.
8590
8591 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8592
8593 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8594 not "true" or "false".
8595 * configure: Re-generate.
8596
8597 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8598
8599 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8600 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8601 renamed to arm_nbsd_supply_gregset.
8602 (fetch_register): Update to call arm_nbsd_supply_gregset.
8603 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8604 (arm_netbsd_nat_target::fetch_registers): Update.
8605 (fetch_elfcore_registers): Removed.
8606 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8607 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8608 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8609 not require NetBSD system headers.
8610 (arm_nbsd_regset): New struct.
8611 (arm_nbsd_iterate_over_regset_sections): New function.
8612 (arm_netbsd_init_abi_common): Updated to call
8613 set_gdbarch_iterate_over_regset_sections.
8614 * arm-nbsd-tdep.h: New file.
8615
8616 2020-03-11 Kevin Buettner <kevinb@redhat.com>
8617
8618 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8619 recursion.
8620
8621 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
8622
8623 * configure: Re-generate.
8624
8625 2020-03-11 Tom Tromey <tromey@adacore.com>
8626
8627 * ada-typeprint.c (print_choices): Fix comment.
8628
8629 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8630
8631 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8632 previous item in the list, when the list has no items.
8633
8634 2020-03-11 Tom de Vries <tdevries@suse.de>
8635
8636 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8637 PROP_LOCLIST handling code.
8638
8639 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8640
8641 * buildsym-legacy.c (record_line): Pass extra parameter to
8642 record_line.
8643 * buildsym.c (buildsym_compunit::record_line): Take an extra
8644 parameter, reduce duplication in the line table, and record the
8645 is_stmt flag in the line table.
8646 * buildsym.h (buildsym_compunit::record_line): Add extra
8647 parameter.
8648 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8649 non-statement lines.
8650 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8651 this to the symtab builder.
8652 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8653 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8654 through to dwarf_record_line_1.
8655 * infrun.c (process_event_stop_test): When stepping, don't stop at
8656 a non-statement instruction, and only refresh the step info when
8657 we land in the middle of a line's range. Also add an extra
8658 comment.
8659 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8660 field.
8661 * record-btrace.c (btrace_find_line_range): Only record lines
8662 marked as is-statement.
8663 * stack.c (frame_show_address): Show the frame address if we are
8664 in a non-statement sal.
8665 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8666 (maintenance_print_one_line_table): Print a header for the is_stmt
8667 column, and include is_stmt information in the output.
8668 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8669 preference to non-statements.
8670 (find_pcs_for_symtab_line): Prefer is-statement entries.
8671 (find_line_common): Likewise.
8672 * symtab.h (struct linetable_entry): Add is_stmt field.
8673 (struct symtab_and_line): Likewise.
8674 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8675 arranging the line table.
8676
8677 2020-03-07 Tom de Vries <tdevries@suse.de>
8678
8679 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8680 DIE.
8681
8682 2020-03-07 Tom Tromey <tom@tromey.com>
8683
8684 * valops.c (value_literal_complex): Remove obsolete comment.
8685 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8686 comment.
8687
8688 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8689
8690 * infrun.h: Forward-declare thread_info.
8691 (set_step_info): Add thread_info parameter, add doc.
8692 * infrun.c (set_step_info): Add thread_info parameter, move doc
8693 to header.
8694 * infrun.c (process_event_stop_test): Pass thread to
8695 set_step_info call.
8696 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8697 set_step_info.
8698 (prepare_one_step): Add thread_info parameter, pass it to
8699 set_step_frame and prepare_one_step (recursive) call.
8700 (step_1): Pass thread to prepare_one_step call.
8701 (step_command_fsm::should_stop): Pass thread to
8702 prepare_one_step.
8703 (until_next_fsm): Pass thread to set_step_frame call.
8704 (finish_command): Pass thread to set_step_info call.
8705
8706 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
8707
8708 * windows-tdep.c (windows_solib_create_inferior_hook):
8709 Check if inferior is running.
8710
8711 2020-03-06 Tom de Vries <tdevries@suse.de>
8712
8713 * NEWS: Fix "the the".
8714 * ctfread.c: Same.
8715
8716 2020-03-06 Tom de Vries <tdevries@suse.de>
8717
8718 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8719
8720 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8721
8722 * .dir-locals.el: Add a comment referencing the other copies of
8723 this file.
8724
8725 2020-03-05 John Baldwin <jhb@FreeBSD.org>
8726
8727 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8728 psargs.
8729
8730 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8731
8732 * .gitattributes: New file.
8733
8734 2020-03-04 Tom Tromey <tom@tromey.com>
8735
8736 * symmisc.c (print_symbol_bcache_statistics)
8737 (print_objfile_statistics): Update.
8738 * symfile.c (allocate_symtab): Use intern.
8739 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8740 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8741 macro_cache>: Remove.
8742 <string_cache>: New member.
8743 (struct objfile) <intern>: New methods.
8744 * elfread.c (elf_symtab_read): Use intern.
8745 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8746 (dwarf2_compute_name, dwarf2_physname)
8747 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8748 names.
8749 (guess_partial_die_structure_name): Update.
8750 (partial_die_info::fixup): Intern name.
8751 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8752 name.
8753 (dwarf2_name): Intern name. Update.
8754 * buildsym.c (buildsym_compunit::get_macro_table): Use
8755 string_cache.
8756
8757 2020-03-04 Tom Tromey <tom@tromey.com>
8758
8759 * jit.c (bfd_open_from_target_memory): Make "target" const.
8760 * corefile.c (gnutarget): Now const.
8761 * gdbcore.h (gnutarget): Now const.
8762
8763 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
8764
8765 * NEWS: Mention support for WOW64 processes.
8766 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8767 (amd64_windows_segment_register_p): Remove static.
8768 (_initialize_amd64_windows_nat): Update.
8769 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8770 * i386-windows-nat.c (context_offset): Update.
8771 (i386_mappings): Rename and remove static.
8772 (i386_windows_segment_register_p): Remove static.
8773 (_initialize_i386_windows_nat): Update.
8774 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8775 (STATUS_WX86_SINGLE_STEP): New macro.
8776 (EnumProcessModulesEx): New macro.
8777 (Wow64SuspendThread): New macro.
8778 (Wow64GetThreadContext): New macro.
8779 (Wow64SetThreadContext): New macro.
8780 (Wow64GetThreadSelectorEntry): New macro.
8781 (windows_set_context_register_offsets): Add static.
8782 (windows_set_segment_register_p): Likewise.
8783 (windows_add_thread): Adapt for WOW64 processes.
8784 (windows_fetch_one_register): Likewise.
8785 (windows_nat_target::fetch_registers): Likewise.
8786 (windows_store_one_register): Likewise.
8787 (display_selector): Likewise.
8788 (display_selectors): Likewise.
8789 (handle_exception): Likewise.
8790 (windows_continue): Likewise.
8791 (windows_nat_target::resume): Likewise.
8792 (windows_add_all_dlls): Likewise.
8793 (do_initial_windows_stuff): Likewise.
8794 (windows_nat_target::attach): Likewise.
8795 (windows_get_exec_module_filename): Likewise.
8796 (windows_nat_target::create_inferior): Likewise.
8797 (windows_xfer_siginfo): Likewise.
8798 (_initialize_loadable): Initialize Wow64SuspendThread,
8799 Wow64GetThreadContext, Wow64SetThreadContext,
8800 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8801 * windows-nat.h (windows_set_context_register_offsets):
8802 Remove declaration.
8803 (windows_set_segment_register_p): Likewise.
8804 (i386_windows_segment_register_p): Add declaration.
8805 (amd64_windows_segment_register_p): Likewise.
8806
8807 2020-03-04 Luis Machado <luis.machado@linaro.org>
8808
8809 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8810 in "info registers" for AArch64/ARM.
8811
8812 The change caused "info registers" to not print GPR's.
8813
8814 gdb/ChangeLog:
8815
8816 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8817
8818 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8819 when reg->group is empty and reggroup is not.
8820
8821 2020-03-03 Tom Tromey <tromey@adacore.com>
8822
8823 * dwarf2/frame.c (struct dwarf2_frame_cache)
8824 <checked_tailcall_bottom, entry_cfa_sp_offset,
8825 entry_cfa_sp_offset_p>: Remove members.
8826 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8827 (dwarf2_frame_prev_register): Don't call
8828 dwarf2_tailcall_sniffer_first.
8829 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8830 * frame-unwind.c (add_unwinder): New fuction.
8831 (frame_unwind_init): Use it. Add tailcall unwinder.
8832
8833 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8834 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8835
8836 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8837 value should be printed as true.
8838
8839 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
8840
8841 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8842 (windows_init_abi): Set and use windows_so_ops.
8843
8844 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8845
8846 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8847 when verifying if dealing with a convenience variable.
8848
8849 2020-03-03 Luis Machado <luis.machado@linaro.org>
8850
8851 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8852
8853 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8854
8855 * infrun.c (gdbarch_supports_displaced_stepping): New.
8856 (use_displaced_stepping): Break up conditions in smaller pieces.
8857 Use gdbarch_supports_displaced_stepping.
8858 (displaced_step_prepare_throw): Use
8859 gdbarch_supports_displaced_stepping.
8860
8861 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8862
8863 * NEWS: Mention new behaviour of the history filename.
8864 * top.c (write_history_p): Add comment.
8865 (show_write_history_p): Add header comment, give a different
8866 message when history writing is on, but the history filename is
8867 empty.
8868 (history_filename): Add comment.
8869 (history_filename_empty): New function.
8870 (show_history_filename): Add header comment, give a different
8871 message when the filename is empty.
8872 (init_history): Compare history_filename against nullptr, and only
8873 read history if the filename is not empty.
8874 (set_history_filename): Add header comment, and only make
8875 non-empty filenames absolute.
8876 (init_main): Make the filename argument to 'set history filename'
8877 optional.
8878
8879 2020-03-02 Christian Biesinger <cbiesinger@google.com>
8880
8881 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8882 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8883 (fetch_fp_register): Update.
8884 (fetch_fp_regs): Update.
8885 (store_fp_register): Update.
8886 (store_fp_regs): Update.
8887 (arm_netbsd_nat_target::read_description): New function.
8888 (fetch_elfcore_registers): Update.
8889
8890 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8891
8892 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8893 general_thread if the stop reply is missing a thread-id.
8894 (remote_target::process_stop_reply): Use the first non-exited
8895 thread if the target didn't pass a thread-id.
8896 * infrun.c (do_target_wait): Move call to
8897 switch_to_inferior_no_thread to ....
8898 (do_target_wait_1): ... here.
8899
8900 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8901
8902 * debuginfod-support.c: Include defs.h first.
8903
8904 2020-02-28 Tom de Vries <tdevries@suse.de>
8905
8906 * symfile.c (set_initial_language): Use default language for lookup.
8907
8908 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
8909
8910 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8911 reader variable, pass `this` to read_cutu_die_from_dwo.
8912
8913 2020-02-27 Aaron Merey <amerey@redhat.com>
8914
8915 * source.c (open_source_file): Check for nullptr when computing
8916 srcpath.
8917
8918 2020-02-27 Tom Tromey <tromey@adacore.com>
8919
8920 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8921 member.
8922 (dwarf2_add_field): Don't update nfields.
8923 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8924
8925 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8926
8927 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8928 abs.
8929
8930 2020-02-26 Tom Tromey <tom@tromey.com>
8931
8932 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8933 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8934 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8935 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8936 per_cu_data.
8937
8938 2020-02-26 Tom Tromey <tom@tromey.com>
8939
8940 * dwarf2/index-write.c (psym_index_map): Change type.
8941 (add_address_entry_worker, write_one_signatured_type)
8942 (recursively_count_psymbols, recursively_write_psymbols)
8943 (class debug_names, psyms_seen_size, write_gdbindex)
8944 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8945
8946 2020-02-26 Aaron Merey <amerey@redhat.com>
8947
8948 * Makefile.in: Handle optional debuginfod support.
8949 * NEWS: Update.
8950 * README: Add --with-debuginfod summary.
8951 * config.in: Regenerate.
8952 * configure: Regenerate.
8953 * configure.ac: Handle optional debuginfod support.
8954 * debuginfod-support.c: debuginfod helper functions.
8955 * debuginfod-support.h: Ditto.
8956 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8957 summary.
8958 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8959 when a dwz file cannot be found.
8960 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8961 debuginfo file cannot be found.
8962 * source.c (open_source_file): Query debuginfod servers when a
8963 source file cannot be found.
8964 * top.c (print_gdb_configuration): Include
8965 --{with,without}-debuginfod in the output.
8966
8967 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8968
8969 * thread.c (thr_try_catch_cmd): Print thread name.
8970
8971 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
8972
8973 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8974 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8975 dwarf2_fetch_die_type_sect_off): Move to...
8976 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8977 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8978 dwarf2_fetch_die_type_sect_off): ... here.
8979 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8980 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8981 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8982
8983 2020-02-26 Tom de Vries <tdevries@suse.de>
8984
8985 PR gdb/25603
8986 * symfile.c (set_initial_language): Exit-early if
8987 language_mode == language_mode_manual.
8988
8989 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8990
8991 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8992 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8993 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8994
8995 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8996
8997 * gdbtypes.c (create_array_type_with_stride): Handle negative
8998 array strides.
8999 * valarith.c (value_subscripted_rvalue): Likewise.
9000
9001 2020-02-25 Luis Machado <luis.machado@linaro.org>
9002
9003 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
9004
9005 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9006
9007 * loc.h (dwarf2_get_die_type): Move to...
9008 * read.h (dwarf2_get_die_type): ... here.
9009 * read.c (dwarf2_get_die_type): Move doc to header.
9010
9011 2020-02-25 Joel Brobecker <brobecker@adacore.com>
9012
9013 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
9014 'gnulib/Makefile.in' to the list.
9015
9016 2020-02-24 Tom Tromey <tom@tromey.com>
9017
9018 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
9019 Remove.
9020 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
9021 XOBNEWVEC.
9022
9023 2020-02-24 Tom Tromey <tom@tromey.com>
9024
9025 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
9026 New method.
9027 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
9028 (dw2_do_instantiate_symtab, dw2_get_file_names)
9029 (build_type_psymtab_dependencies, load_full_type_unit): Update.
9030
9031 2020-02-24 Tom Tromey <tom@tromey.com>
9032
9033 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
9034 make_scoped_restore.
9035 (dwarf2_psymtab::read_symtab): Don't clear
9036 reading_partial_symbols.
9037
9038 2020-02-24 Tom de Vries <tdevries@suse.de>
9039
9040 PR gdb/25592
9041 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
9042
9043 2020-02-24 Tom de Vries <tdevries@suse.de>
9044
9045 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
9046 commands layout next/prev/regs.
9047
9048 2020-02-22 Tom Tromey <tom@tromey.com>
9049
9050 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
9051 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
9052
9053 2020-02-22 Tom Tromey <tom@tromey.com>
9054
9055 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
9056
9057 2020-02-22 Tom Tromey <tom@tromey.com>
9058
9059 * tui/tui-win.c (_initialize_tui_win): Add usage text.
9060 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
9061 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
9062 * tui/tui.c (_initialize_tui): Add usage text.
9063
9064 2020-02-22 Tom Tromey <tom@tromey.com>
9065
9066 * tui/tui-win.c (tui_set_focus_command)
9067 (tui_set_win_height_command): Use error_no_arg.
9068 (_initialize_tui_win): Update help text.
9069 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
9070
9071 2020-02-22 Tom Tromey <tom@tromey.com>
9072
9073 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
9074 * tui/tui-disasm.h (struct tui_disasm_window)
9075 <display_start_addr>: Declare.
9076 * tui/tui-source.h (struct tui_source_window)
9077 <display_start_addr>: Declare.
9078 * tui/tui-winsource.h (struct tui_source_window_base)
9079 <show_source_line, display_start_addr>: New methods.
9080 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
9081 Rename and move to protected section.
9082 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
9083 (tui_source_window_base::do_erase_source_content): Update.
9084 (tui_source_window_base::show_source_line): Now a method.
9085 (tui_source_window_base::show_source_content)
9086 (tui_source_window_base::tui_source_window_base)
9087 (tui_source_window_base::rerender)
9088 (tui_source_window_base::refill)
9089 (tui_source_window_base::do_scroll_horizontal)
9090 (tui_source_window_base::set_is_exec_point_at)
9091 (tui_source_window_base::update_breakpoint_info)
9092 (tui_source_window_base::update_exec_info): Update.
9093 * tui/tui-source.c (tui_source_window::set_contents)
9094 (tui_source_window::showing_source_p)
9095 (tui_source_window::do_scroll_vertical)
9096 (tui_source_window::location_matches_p)
9097 (tui_source_window::line_is_displayed): Update.
9098 (tui_source_window::display_start_addr): New method.
9099 * tui/tui-disasm.c (tui_disasm_window::set_contents)
9100 (tui_disasm_window::do_scroll_vertical)
9101 (tui_disasm_window::location_matches_p): Update.
9102 (tui_disasm_window::display_start_addr): New method.
9103
9104 2020-02-22 Tom Tromey <tom@tromey.com>
9105
9106 * NEWS: Add entry for gdb.register_window_type.
9107 * tui/tui-layout.h (window_factory): New typedef.
9108 (tui_register_window): Declare.
9109 * tui/tui-layout.c (saved_tui_windows): New global.
9110 (tui_apply_current_layout): Use it.
9111 (tui_register_window): New function.
9112 * python/python.c (do_start_initialization): Call
9113 gdbpy_initialize_tui.
9114 (python_GdbMethods): Add "register_window_type" function.
9115 * python/python-internal.h (gdbpy_register_tui_window)
9116 (gdbpy_initialize_tui): Declare.
9117 * python/py-tui.c: New file.
9118 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
9119
9120 2020-02-22 Tom Tromey <tom@tromey.com>
9121
9122 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
9123
9124 2020-02-22 Tom Tromey <tom@tromey.com>
9125
9126 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
9127 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
9128 * tui/tui-data.c (tui_set_win_with_focus): Remove.
9129 (tui_set_win_focus_to): Move from tui-win.c.
9130
9131 2020-02-22 Tom Tromey <tom@tromey.com>
9132
9133 * tui/tui-layout.c (make_standard_window, get_locator_window): New
9134 functions.
9135 (known_window_types): New global.
9136 (tui_get_window_by_name): Reimplement.
9137 (initialize_known_windows): New function.
9138 (validate_window_name): Rewrite.
9139 (_initialize_tui_layout): Call initialize_known_windows.
9140
9141 2020-02-22 Tom Tromey <tom@tromey.com>
9142
9143 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
9144 Remove constants.
9145 * tui/tui-winsource.h (struct tui_source_window_base)
9146 <tui_source_window_base>: Remove parameter.
9147 * tui/tui-winsource.c
9148 (tui_source_window_base::tui_source_window_base): Remove
9149 parameter.
9150 (tui_source_window_base::refill): Update.
9151 * tui/tui-stack.h (struct tui_locator_window)
9152 <tui_locator_window>: Update.
9153 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
9154 Default the constructor.
9155 * tui/tui-regs.h (struct tui_data_item_window)
9156 <tui_data_item_window>: Default the constructor.
9157 (struct tui_data_window) <tui_data_window>: Likewise.
9158 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
9159 Default the constructor.
9160 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
9161 Default the constructor.
9162 <type>: Remove.
9163 (struct tui_win_info) <tui_win_info>: Default the constructor.
9164 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
9165 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
9166 Default the constructor.
9167
9168 2020-02-22 Tom Tromey <tom@tromey.com>
9169
9170 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
9171 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
9172 * tui/tui-win.c (tui_resize_all): Don't call
9173 tui_delete_invisible_windows.
9174 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
9175 done.
9176 (tui_set_layout): Update.
9177 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
9178 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
9179 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
9180
9181 2020-02-22 Tom Tromey <tom@tromey.com>
9182
9183 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
9184 correctly.
9185
9186 2020-02-22 Tom Tromey <tom@tromey.com>
9187
9188 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
9189
9190 2020-02-22 Tom Tromey <tom@tromey.com>
9191
9192 * tui/tui-winsource.h (struct tui_source_window_iterator)
9193 <inner_iterator>: New etytypedef.
9194 <tui_source_window_iterator>: Take "end" parameter.
9195 <tui_source_window_iterator>: Take iterator.
9196 <operator*, advance>: Update.
9197 <m_iter>: Change type.
9198 <m_end>: New field.
9199 (struct tui_source_windows) <begin, end>: Update.
9200 * tui/tui-layout.c (tui_windows): New global.
9201 (tui_apply_current_layout): Clear tui_windows.
9202 (tui_layout_window::apply): Update tui_windows.
9203 * tui/tui-data.h (tui_windows): Declare.
9204 (all_tui_windows): Now inline function.
9205 (class tui_window_iterator, struct all_tui_windows): Remove.
9206
9207 2020-02-22 Tom Tromey <tom@tromey.com>
9208
9209 PR tui/17850:
9210 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
9211 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
9212 "height" argument.
9213 (class tui_layout_window) <get_sizes>: Likewise.
9214 (class tui_layout_split) <tui_layout_split>: Add "vertical"
9215 argument.
9216 <get_sizes>: Add "height" argument.
9217 <m_vertical>: New field.
9218 * tui/tui-layout.c (tui_layout_split::clone): Update.
9219 (tui_layout_split::get_sizes): Add "height" argument.
9220 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
9221 (tui_new_layout_command): Parse "-horizontal".
9222 (_initialize_tui_layout): Update help string.
9223 (tui_layout_split::specification): Add "-horizontal" when needed.
9224 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
9225 argument.
9226 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
9227 New methods.
9228
9229 2020-02-22 Tom Tromey <tom@tromey.com>
9230
9231 * tui/tui-layout.h (enum tui_adjust_result): New.
9232 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
9233 (class tui_layout_window) <adjust_size>: Return
9234 tui_adjust_result. Rewrite.
9235 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9236 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9237
9238 2020-02-22 Tom Tromey <tom@tromey.com>
9239
9240 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9241 parameter and return types.
9242 (class tui_layout_base) <specification>: Add "depth".
9243 (class tui_layout_window) <specification>: Add "depth".
9244 (class tui_layout_split) <specification>: Add "depth".
9245 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9246 and return types.
9247 (tui_new_layout_command): Parse sub-layouts.
9248 (_initialize_tui_layout): Update help string.
9249 (tui_layout_window::specification): Add "depth".
9250 (add_layout_command): Update.
9251
9252 2020-02-22 Tom Tromey <tom@tromey.com>
9253
9254 * NEWS: Add "tui new-layout" item.
9255 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9256 Add new-layout command to help text.
9257 (validate_window_name): New function.
9258 (tui_new_layout_command): New function.
9259 (_initialize_tui_layout): Register "new-layout".
9260 (tui_layout_window::specification): New method.
9261 (tui_layout_window::specification): New method.
9262 * tui/tui-layout.h (class tui_layout_base) <specification>: New
9263 method.
9264 (class tui_layout_window) <specification>: New method.
9265 (class tui_layout_split) <specification>: New method.
9266
9267 2020-02-22 Tom Tromey <tom@tromey.com>
9268
9269 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9270 * tui/tui-win.c (window_name_completer): Update comment.
9271 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9272 Declare method.
9273 (class tui_layout_window) <replace_window>: Likewise.
9274 (class tui_layout_split) <replace_window>: Likewise.
9275 (tui_set_layout): Don't declare.
9276 (tui_set_initial_layout): Declare function.
9277 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9278 (asm_regs_layout): New globals.
9279 (tui_current_layout, show_layout): Remove.
9280 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9281 (find_layout, tui_apply_layout): New function.
9282 (layout_completer): Remove.
9283 (tui_next_layout): Reimplement.
9284 (tui_next_layout_command): New function.
9285 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9286 (tui_regs_layout): Reimplement.
9287 (tui_regs_layout_command): New function.
9288 (extract_display_start_addr): Rewrite.
9289 (next_layout, prev_layout): Remove.
9290 (tui_layout_window::replace_window): New method.
9291 (tui_layout_split::replace_window): New method.
9292 (destroy_layout): New function.
9293 (layout_list): New global.
9294 (add_layout_command): New function.
9295 (initialize_layouts): Update.
9296 (tui_layout_command): New function.
9297 (_initialize_tui_layout): Install "layout" commands.
9298 * tui/tui-data.h (enum tui_layout_type): Remove.
9299 (tui_current_layout): Don't declare.
9300
9301 2020-02-22 Tom Tromey <tom@tromey.com>
9302
9303 * tui/tui-regs.c (tui_reg_layout): Remove.
9304 (tui_reg_command): Use tui_regs_layout.
9305 * tui/tui-layout.h (tui_reg_command): Declare.
9306 * tui/tui-layout.c (tui_reg_command): New function.
9307
9308 2020-02-22 Tom Tromey <tom@tromey.com>
9309
9310 * tui/tui.c (tui_rl_delete_other_windows): Call
9311 tui_remove_some_windows.
9312 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9313 Declare method.
9314 (class tui_layout_window) <remove_windows>: New method.
9315 (class tui_layout_split) <remove_windows>: Declare.
9316 (tui_remove_some_windows): Declare.
9317 * tui/tui-layout.c (tui_remove_some_windows): New function.
9318 (tui_layout_split::remove_windows): New method.
9319
9320 2020-02-22 Tom Tromey <tom@tromey.com>
9321
9322 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9323 * tui/tui-layout.h (tui_next_layout): Declare.
9324 * tui/tui-layout.c (tui_next_layout): New function.
9325
9326 2020-02-22 Tom Tromey <tom@tromey.com>
9327
9328 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9329 correct coordinates.
9330
9331 2020-02-22 Tom Tromey <tom@tromey.com>
9332
9333 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9334 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9335 DATA_WIN case.
9336
9337 2020-02-22 Tom Tromey <tom@tromey.com>
9338
9339 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9340 TUI_DISASM_WIN, not tui_win_list.
9341
9342 2020-02-22 Tom Tromey <tom@tromey.com>
9343
9344 * valprint.c (generic_val_print_enum_1)
9345 (val_print_type_code_flags): Style member names.
9346 * rust-lang.c (val_print_struct, rust_print_enum)
9347 (rust_print_struct_def, rust_internal_print_type): Style member
9348 names.
9349 * p-valprint.c (pascal_object_print_value_fields): Style member
9350 names. Only call fprintf_symbol_filtered for static members.
9351 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9352 * f-valprint.c (f_val_print): Style member names.
9353 * f-typeprint.c (f_type_print_base): Style member names.
9354 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9355 call fprintf_symbol_filtered for static members.
9356 (cp_print_class_member): Style member names.
9357 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9358 member names.
9359 * ada-valprint.c (ada_print_scalar): Style enum names.
9360 (ada_val_print_enum): Likewise.
9361 * ada-typeprint.c (print_enum_type): Style enum names.
9362
9363 2020-02-21 Tom Tromey <tom@tromey.com>
9364
9365 * psympriv.h (struct partial_symtab): Update comment.
9366
9367 2020-02-21 Tom Tromey <tromey@adacore.com>
9368
9369 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9370 type is CORE_ADDR.
9371
9372 2020-02-21 Tom de Vries <tdevries@suse.de>
9373
9374 PR gdb/25534
9375 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9376 if dependencies[i]->user != NULL.
9377
9378 2020-02-21 Ali Tamur <tamur@google.com>
9379
9380 * dwarf2/read.c (dwarf2_name): Add null check.
9381
9382 2020-02-20 Tom Tromey <tom@tromey.com>
9383
9384 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9385 ">=", in binary search.
9386 (dwarf2_find_containing_comp_unit): New overload.
9387 (run_test): New self-test.
9388 (_initialize_dwarf2_read): Register new test.
9389
9390 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
9391
9392 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9393 * riscv-tdep.h: Likewise.
9394 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9395 rv32-only CSR.
9396 * features/riscv/64bit-csr.xml: Regenerated.
9397
9398 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9399 Tom Tromey <tom@tromey.com>
9400
9401 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9402 of 'fputc_unfiltered'.
9403 (putchar_unfiltered): Call 'fputc_unfiltered'.
9404 (fputc_unfiltered): Call 'fputs_unfiltered'.
9405
9406 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9407
9408 * config.in: Regenerate.
9409 * configure: Regenerate.
9410 * configure.ac: Add --with-python-libdir option.
9411 * main.c: Use WITH_PYTHON_LIBDIR.
9412
9413 2020-02-19 Tom Tromey <tom@tromey.com>
9414
9415 * symtab.c (general_symbol_info::compute_and_set_names): Use
9416 obstack_strndup. Simplify call to symbol_set_demangled_name.
9417
9418 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
9419
9420 * dwarf2/read.c (allocate_signatured_type_table,
9421 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9422 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9423 Remove objfile parameter, update all callers.
9424
9425 2020-02-19 Doug Evans <dje@google.com>
9426
9427 PR rust/25535
9428 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9429 rust_enum_variant calculation.
9430
9431 2020-02-19 Tom Tromey <tromey@adacore.com>
9432
9433 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9434
9435 2020-02-19 Tom Tromey <tromey@adacore.com>
9436
9437 * ada-lang.c (cache_symbol): Use obstack_strdup.
9438
9439 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9440
9441 * configure: Regenerate.
9442
9443 2020-02-19 Tom Tromey <tromey@adacore.com>
9444
9445 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9446 NULL check.
9447
9448 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
9449
9450 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9451
9452 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9453
9454 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9455 if GDBSERVER is not defined.
9456 (riscv_tdesc_cache): Likewise, also store const target_desc.
9457 (STATIC_IN_GDB): Define.
9458 (riscv_create_target_description): Update declaration with
9459 STATIC_IN_GDB.
9460 (riscv_lookup_target_description): New function, only define if
9461 GDBSERVER is not defined.
9462 * arch/riscv.h (riscv_create_target_description): Declare only
9463 when GDBSERVER is defined.
9464 (riscv_lookup_target_description): New declaration when GDBSERVER
9465 is not defined.
9466 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9467 (riscv_linux_read_features): ...this, and return
9468 riscv_gdbarch_features instead of target_desc.
9469 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9470 (riscv_linux_read_description): Rename to...
9471 (riscv_linux_read_features): ...this.
9472 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9473 Update to use riscv_gdbarch_features and
9474 riscv_lookup_target_description.
9475 * riscv-tdep.c (riscv_find_default_target_description): Use
9476 riscv_lookup_target_description instead of
9477 riscv_create_target_description.
9478
9479 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9480
9481 * valprint.c (generic_val_print_enum_1): When printing a flag
9482 enum with value 0 and there is no enumerator with value 0, print
9483 just "0" instead of "(unknown: 0x0)".
9484
9485 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9486
9487 * valprint.c (generic_val_print_enum_1): Print unknown part of
9488 flag enum in hex.
9489
9490 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9491
9492 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9493 flag enums to contain duplicate enumerators.
9494 * valprint.c (generic_val_print_enum_1): Update comment.
9495
9496 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9497
9498 * dwarf2/read.c: Include "count-one-bits.h".
9499 (update_enumeration_type_from_children): If an enumerator has
9500 multiple bits set, don't treat the enumeration as a "flag enum".
9501 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9502 of flag enums have 0 or 1 bit set.
9503
9504 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9505
9506 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9507 conversion.
9508 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9509 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9510 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9511 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9512 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9513
9514 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9515
9516 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9517
9518 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9519
9520 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9521 displaced_step_closure_up.
9522 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9523 (struct displaced_step_closure_up):
9524 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9525 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9526 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9527 Likewise.
9528 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9529 * gdbarch.c, gdbarch.h: Re-generate.
9530 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9531 displaced_step_closure_up.
9532 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9533 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9534 * infrun.h (displaced_step_closure_up): New type alias.
9535 (struct displaced_step_inferior_state) <step_closure>: Change
9536 type to displaced_step_closure_up.
9537 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9538 displaced_step_closure_up.
9539 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9540
9541 2020-02-14 Tom Tromey <tom@tromey.com>
9542
9543 * minidebug.c (gnu_debug_key): New global.
9544 (find_separate_debug_file_in_section): Use it.
9545
9546 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9547
9548 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9549 std::unique_ptr.
9550 * gdbarch.c: Re-generate.
9551 * gdbarch.h: Re-generate.
9552 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9553 change.
9554 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9555 type to std::unique_ptr.
9556 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9557 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9558 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9559 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9560 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9561 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9562 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9563 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9564 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9565
9566 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9567
9568 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9569 std::unique_ptr.
9570 (displaced_step_clear): Rename to...
9571 (displaced_step_reset): ... this. Just call displaced->reset ().
9572 (displaced_step_clear_cleanup): Rename to...
9573 (displaced_step_reset_cleanup): ... this.
9574 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9575 (displaced_step_fixup): Likewise.
9576 (resume_1): Likewise.
9577 (handle_inferior_event): Restore child's memory before calling
9578 displaced_step_fixup on the parent.
9579 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9580 to std::unique_ptr.
9581 <step_closure>: Change type to std::unique_ptr.
9582
9583 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9584
9585 * arm-tdep.c: Include count-one-bits.h.
9586 (cleanup_block_store_pc): Use count_one_bits.
9587 (cleanup_block_load_pc): Use count_one_bits.
9588 (arm_copy_block_xfer): Use count_one_bits.
9589 (thumb2_copy_block_xfer): Use count_one_bits.
9590 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9591 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9592 (thumb_get_next_pcs_raw): Use count_one_bits.
9593 (arm_get_next_pcs_raw): Use count_one_bits_l.
9594 * arch/arm.c (bitcount): Remove.
9595 * arch/arm.h (bitcount): Remove.
9596
9597 2020-02-14 Tom Tromey <tromey@adacore.com>
9598
9599 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9600 Update.
9601 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9602 * dwarf2/loc.c (call_site_find_chain_1): Return
9603 unique_xmalloc_ptr.
9604 (call_site_find_chain): Likewise.
9605
9606 2020-02-14 Richard Biener <rguenther@suse.de>
9607
9608 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9609 on expression with division operators.
9610
9611 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9612
9613 * MAINTAINERS (Write After Approval): Adding myself.
9614
9615 2020-02-12 Tom Tromey <tom@tromey.com>
9616
9617 * event-loop.c (event_data, gdb_event, event_handler_func):
9618 Remove.
9619
9620 2020-02-12 Tom Tromey <tom@tromey.com>
9621
9622 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9623 (dwarf2_frame_objfile_data): Add comment.
9624 (find_comp_unit, set_comp_unit): New functions.
9625 (dwarf2_frame_find_fde): Use find_comp_unit.
9626 (dwarf2_build_frame_info): Use set_comp_unit.
9627
9628 2020-02-12 Tom Tromey <tom@tromey.com>
9629
9630 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9631 (comp_unit): Don't initialize objfile.
9632 (execute_cfa_program): Add text_offset parameter.
9633 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9634 (dwarf2_frame_cache): Update.
9635 (dwarf2_build_frame_info): Don't set "objfile" member.
9636
9637 2020-02-12 Tom Tromey <tom@tromey.com>
9638
9639 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9640 (decode_frame_entry): Likewise.
9641 (dwarf2_build_frame_info): Update.
9642
9643 2020-02-12 Tom Tromey <tom@tromey.com>
9644
9645 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9646 (decode_frame_entry_1): Use the comp_unit obstack.
9647
9648 2020-02-12 Tom Tromey <tom@tromey.com>
9649
9650 * dwarf2/frame.c (struct comp_unit): Add initializers and
9651 constructor.
9652 (dwarf2_frame_objfile_data): Store a comp_unit.
9653 (dwarf2_frame_find_fde): Update.
9654 (dwarf2_build_frame_info): Use "new".
9655
9656 2020-02-12 Tom Tromey <tom@tromey.com>
9657
9658 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9659 (dwarf2_fde_table): Typedef for std::vector.
9660 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9661 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9662 (decode_frame_entry): Update.
9663 (dwarf2_build_frame_info): Use "new".
9664
9665 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9666
9667 * arm-tdep.c (arm_gdbarch_init): Update.
9668 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9669 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9670 have_neon, is_m>: Change to bool.
9671
9672 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9673
9674 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9675
9676 2020-02-12 Tom Tromey <tom@tromey.com>
9677
9678 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9679
9680 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
9681
9682 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9683 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9684
9685 2020-02-11 Tom Tromey <tom@tromey.com>
9686
9687 * psymtab.h: Update comment.
9688
9689 2020-02-11 Tom Tromey <tom@tromey.com>
9690
9691 * gdb_obstack.h (struct auto_obstack): Use
9692 DISABLE_COPY_AND_ASSIGN.
9693
9694 2020-02-11 Tom Tromey <tom@tromey.com>
9695
9696 * dwarf2/frame.h (struct objfile): Don't forward declare.
9697
9698 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9699
9700 * cris-tdep.c (cris_supply_gregset): Change signature to match
9701 what struct regset expects.
9702 (cris_regset): New struct.
9703 (fetch_core_registers): Remove.
9704 (cris_iterate_over_regset_sections): New function.
9705 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9706 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9707
9708 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9709
9710 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9711 registers.
9712
9713 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9714
9715 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9716
9717 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9718
9719 * configure: Re-generate.
9720
9721 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9722
9723 * configure: Re-generate.
9724
9725 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9726
9727 * acinclude: Update warning.m4 path.
9728 * warning.m4: Move to gdbsupport.
9729
9730 2020-02-11 Tom Tromey <tromey@adacore.com>
9731
9732 * remote.c (remote_console_output): Update.
9733 * printcmd.c (printf_command): Update.
9734 * event-loop.c (gdb_wait_for_event): Update.
9735 * linux-nat.c (sigchld_handler): Update.
9736 * remote-sim.c (gdb_os_write_stdout): Update.
9737 (gdb_os_flush_stdout): Update.
9738 (gdb_os_flush_stderr): Update.
9739 (gdb_os_write_stderr): Update.
9740 * exceptions.c (print_exception): Update.
9741 * remote-fileio.c (remote_fileio_func_read): Update.
9742 (remote_fileio_func_write): Update.
9743 * tui/tui.c (tui_enable): Update.
9744 * tui/tui-interp.c (tui_interp::init): Update.
9745 * utils.c (init_page_info): Update.
9746 (putchar_unfiltered, fputc_unfiltered): Update.
9747 (gdb_flush): Update.
9748 (emit_style_escape): Update.
9749 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9750 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9751 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9752 (stderr_file::write): Update.
9753 (stderr_file::puts): Update.
9754 * ui-file.h (ui_file_isatty, ui_file_write)
9755 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9756 (ui_file_puts): Don't declare.
9757
9758 2020-02-10 Tom de Vries <tdevries@suse.de>
9759
9760 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9761 sentinel to char *.
9762
9763 2020-02-09 Tom de Vries <tdevries@suse.de>
9764
9765 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9766 filename if it matches "<artificial>".
9767
9768 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9769
9770 * windows-tdep.c (struct enum_value_name): New struct.
9771 (create_enum): New function.
9772 (windows_get_siginfo_type): Create and use enum types.
9773
9774 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9775
9776 * NEWS: Mention $_siginfo support for Windows.
9777 * windows-nat.c (handle_exception): Set siginfo_er.
9778 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9779 (windows_xfer_siginfo): New function.
9780 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9781 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9782 (init_windows_gdbarch_data): New function.
9783 (get_windows_gdbarch_data): New function.
9784 (windows_get_siginfo_type): New function.
9785 (windows_init_abi): Register windows_get_siginfo_type.
9786 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9787
9788 2020-02-08 Tom Tromey <tom@tromey.com>
9789
9790 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9791 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9792 <keep>: Declare method.
9793 <m_keep>: Remove member.
9794 <~cutu_reader>: Remove.
9795 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9796 (cutu_reader::cutu_reader): Update.
9797 (cutu_reader::keep): Rename from ~cutu_reader.
9798 (process_psymtab_comp_unit, build_type_psymtabs_1)
9799 (process_skeletonless_type_unit, load_partial_comp_unit)
9800 (load_full_comp_unit, dwarf2_read_addr_index)
9801 (read_signatured_type): Update.
9802
9803 2020-02-08 Tom Tromey <tom@tromey.com>
9804
9805 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9806 "want_partial_unit" parameter.
9807 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9808 Inline check for DW_TAG_partial_unit.
9809 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9810
9811 2020-02-08 Tom Tromey <tom@tromey.com>
9812
9813 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9814 read.c.
9815 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9816 read.c.
9817
9818 2020-02-08 Tom Tromey <tom@tromey.com>
9819
9820 * dwarf2/read.c (read_address): Move to comp-unit.c.
9821 (dwarf2_rnglists_process, dwarf2_ranges_process)
9822 (read_attribute_value, dwarf_decode_lines_1)
9823 (var_decode_location, decode_locdesc): Update.
9824 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9825 read.c. Remove "cu" parameter.
9826 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9827 method.
9828
9829 2020-02-08 Tom Tromey <tom@tromey.com>
9830
9831 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9832 (read_indirect_line_string): Update.
9833 * dwarf2/comp-unit.c (read_offset): Remove.
9834 (read_comp_unit_head): Update.
9835 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9836 method.
9837 (read_offset): Don't declare.
9838
9839 2020-02-08 Tom Tromey <tom@tromey.com>
9840
9841 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9842 * dwarf2/read.c (struct comp_unit_head): Move to
9843 dwarf2/comp-unit.h.
9844 (enum class rcuh_kind): Move to comp-unit.h.
9845 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9846 (read_comp_unit_head, error_check_comp_unit_head)
9847 (read_and_check_comp_unit_head): Move to comp-unit.c.
9848 (read_offset, dwarf_unit_type_name): Likewise.
9849 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9850 (cutu_reader::cutu_reader, read_call_site_scope)
9851 (find_partial_die, follow_die_offset): Update.
9852 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9853
9854 2020-02-08 Tom Tromey <tom@tromey.com>
9855
9856 * dwarf2/read.c (read_offset_1): Move to leb.c.
9857 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9858 (dwarf_decode_macro_bytes): Update.
9859 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9860 * dwarf2/leb.h (read_offset): Declare.
9861
9862 2020-02-08 Tom Tromey <tom@tromey.com>
9863
9864 * dwarf2/read.c (dwarf2_section_size): Remove.
9865 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9866 Update.
9867 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9868
9869 2020-02-08 Tom Tromey <tom@tromey.com>
9870
9871 * dwarf2/read.c (read_initial_length): Move to leb.c.
9872 * dwarf2/leb.h (read_initial_length): Declare.
9873 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9874 handle_nonstd parameter.
9875 * dwarf2/frame.c (read_initial_length): Remove.
9876 (decode_frame_entry_1): Update.
9877
9878 2020-02-08 Tom Tromey <tom@tromey.com>
9879
9880 * dwarf2/loc.c (dwarf2_find_location_expression)
9881 (dwarf_evaluate_loc_desc::get_tls_address)
9882 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9883 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9884 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9885 (dwarf2_compile_property_to_c)
9886 (dwarf2_loc_desc_get_symbol_read_needs)
9887 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9888 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9889 (loclist_describe_location, loclist_tracepoint_var_ref)
9890 (loclist_generate_c_location): Update.
9891 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9892 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9893 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9894 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9895 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9896 (dwarf2_per_cu_data::addr_size)
9897 (dwarf2_per_cu_data::ref_addr_size)
9898 (dwarf2_per_cu_data::text_offset)
9899 (dwarf2_per_cu_data::addr_type): Now methods.
9900 (per_cu_header_read_in): Make per_cu "const".
9901 (dwarf2_version): Remove.
9902 (dwarf2_per_cu_data::int_type): Now a method.
9903 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9904 (set_die_type, read_array_type, read_subrange_index_type)
9905 (read_tag_string_type, read_subrange_type): Update.
9906 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9907 offset_size, ref_addr_size, text_offset, addr_type, version,
9908 objfile, int_type, addr_sized_int_type>: Declare methods.
9909
9910 2020-02-08 Tom Tromey <tom@tromey.com>
9911
9912 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9913 Move earlier.
9914
9915 2020-02-08 Tom Tromey <tom@tromey.com>
9916
9917 * dwarf2/read.h (dwarf_line_debug): Declare.
9918 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9919 * dwarf2/read.c: Move line_header code to new files.
9920 (dwarf_line_debug): No longer static.
9921 * dwarf2/line-header.c: New file.
9922 * dwarf2/line-header.h: New file.
9923
9924 2020-02-08 Tom Tromey <tom@tromey.com>
9925
9926 * dwarf2/read.c (struct line_header) <file_full_name,
9927 file_file_name>: Return unique_xmalloc_ptr.
9928 (line_header::file_file_name): Update.
9929 (line_header::file_full_name): Update.
9930 (dw2_get_file_names_reader): Update.
9931 (macro_start_file): Update.
9932
9933 2020-02-08 Tom Tromey <tom@tromey.com>
9934
9935 * dwarf2/read.c (struct line_header) <file_full_name,
9936 file_file_name>: Declare methods.
9937 (dw2_get_file_names_reader): Update.
9938 (file_file_name): Now a method.
9939 (file_full_name): Likewise.
9940 (macro_start_file): Update.
9941
9942 2020-02-08 Tom Tromey <tom@tromey.com>
9943
9944 * dwarf2/read.c (dwarf_always_disassemble)
9945 (show_dwarf_always_disassemble): Move to loc.c.
9946 (_initialize_dwarf2_read): Move "always-disassemble" registration
9947 to loc.c.
9948 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9949 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9950 static.
9951 (show_dwarf_always_disassemble): Move from read.c.
9952 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9953
9954 2020-02-08 Tom Tromey <tom@tromey.com>
9955
9956 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9957 (create_quick_file_names_table): Return htab_up.
9958 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9959 Update.
9960 * dwarf2/read.h (struct dwarf2_per_objfile)
9961 <quick_file_names_table>: Now htab_up.
9962
9963 2020-02-08 Tom Tromey <tom@tromey.com>
9964
9965 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9966
9967 2020-02-08 Tom Tromey <tom@tromey.com>
9968
9969 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9970 Rewrite.
9971 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9972 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9973 (abbrev_table::abbrev_table): No longer inline.
9974 (ABBREV_HASH_SIZE): Remove.
9975 (abbrev_table::m_abbrevs): Now an htab_up.
9976
9977 2020-02-08 Tom Tromey <tom@tromey.com>
9978
9979 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9980 (cutu_reader): Update.
9981 (build_type_psymtabs_1): Update.
9982 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9983 (abbrev_table::alloc_abbrev): Update.
9984 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9985 (abbrev_table::read): New static method, renamed from
9986 abbrev_table_read_table.
9987 (abbrev_table::alloc_abbrev)
9988 (abbrev_table::add_abbrev): Now private.
9989 (abbrev_table::abbrev_table): Now private.
9990 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9991
9992 2020-02-08 Tom Tromey <tom@tromey.com>
9993
9994 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9995 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9996 htab_up.
9997
9998 2020-02-08 Tom Tromey <tom@tromey.com>
9999
10000 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
10001 htab_up.
10002 (lookup_dwo_unit_in_dwp): Update.
10003 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
10004 on obstack.
10005
10006 2020-02-08 Tom Tromey <tom@tromey.com>
10007
10008 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
10009 obstack.
10010
10011 2020-02-08 Tom Tromey <tom@tromey.com>
10012
10013 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
10014 line_header_hash.
10015 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
10016 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
10017 Change type to htab_up.
10018
10019 2020-02-08 Tom Tromey <tom@tromey.com>
10020
10021 * dwarf2/read.c (allocate_type_unit_groups_table): Return
10022 htab_up. Don't allocate on obstack.
10023 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
10024 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
10025 Change type to htab_up.
10026
10027 2020-02-08 Tom Tromey <tom@tromey.com>
10028
10029 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
10030 Change type to htab_up.
10031 * dwarf2/read.c (create_signatured_type_table_from_index)
10032 (create_signatured_type_table_from_debug_names)
10033 (create_all_type_units, add_type_unit)
10034 (lookup_dwo_signatured_type, lookup_signatured_type)
10035 (process_skeletonless_type_unit): Update.
10036 (create_debug_type_hash_table, create_debug_types_hash_table):
10037 Change type of types_htab.
10038 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
10039 htab_up. Don't allocate on obstack.
10040 (create_cus_hash_table): Change type of cus_htab parameter.
10041 (struct dwo_file) <cus, tus>: Now htab_up.
10042 (lookup_dwo_signatured_type, lookup_dwo_cutu)
10043 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
10044 (queue_and_load_all_dwo_tus): Update.
10045 * dwarf2/index-write.c (write_gdbindex): Update.
10046 (write_debug_names): Update.
10047
10048 2020-02-08 Tom Tromey <tom@tromey.com>
10049
10050 * dwarf2/read.h (struct dwarf2_queue_item): Move from
10051 dwarf2/read.c. Remove "next" member. Add constructor ntad
10052 destructor.
10053 (struct dwarf2_per_objfile) <queue>: New member.
10054 * dwarf2/read.c (struct dwarf2_queue_item): Move to
10055 dwarf2/read.h.
10056 (dwarf2_queue, dwarf2_queue_tail): Remove.
10057 (class dwarf2_queue_guard): Add parameter to constructor. Use
10058 DISABLE_COPY_AND_ASSIGN.
10059 <m_per_objfile>: New member.
10060 <~dwarf2_queue_guard>: Rewrite.
10061 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
10062 Update.
10063 (~dwarf2_queue_item): New.
10064
10065 2020-02-08 Tom Tromey <tom@tromey.com>
10066
10067 * dwarf2/read.c (struct die_info) <has_children>: New member.
10068 (dw2_get_file_names_reader): Remove has_children.
10069 (dw2_get_file_names): Update.
10070 (read_cutu_die_from_dwo): Remove has_children.
10071 (cutu_reader::init_tu_and_read_dwo_dies)
10072 (cutu_reader::cutu_reader): Update.
10073 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
10074 Remove has_children.
10075 (build_type_psymtabs_1, process_skeletonless_type_unit)
10076 (load_partial_comp_unit, load_full_comp_unit): Update.
10077 (create_dwo_cu_reader): Remove has_children.
10078 (create_cus_hash_table, read_die_and_children): Update.
10079 (read_full_die_1,read_full_die): Remove has_children.
10080 (read_signatured_type): Update.
10081 (class cutu_reader) <has_children>: Remove.
10082
10083 2020-02-08 Tom Tromey <tom@tromey.com>
10084
10085 * dwarf2/expr.c: Rename from dwarf2expr.c.
10086 * dwarf2/expr.h: Rename from dwarf2expr.h.
10087 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
10088 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
10089 * dwarf2/frame.c: Rename from dwarf2-frame.c.
10090 * dwarf2/frame.h: Rename from dwarf2-frame.h.
10091 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
10092 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
10093 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
10094 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
10095 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
10096 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
10097 * dwarf2/loc.c: Rename from dwarf2loc.c.
10098 * dwarf2/loc.h: Rename from dwarf2loc.h.
10099 * dwarf2/read.c: Rename from dwarf2read.c.
10100 * dwarf2/read.h: Rename from dwarf2read.h.
10101 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
10102 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
10103 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
10104 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
10105 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
10106 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
10107 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
10108 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
10109 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
10110 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
10111 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
10112 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
10113 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
10114 Update.
10115 * Makefile.in (COMMON_SFILES): Update.
10116 (HFILES_NO_SRCDIR): Update.
10117
10118 2020-02-08 Tom Tromey <tom@tromey.com>
10119
10120 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
10121 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
10122
10123 2020-02-08 Tom Tromey <tom@tromey.com>
10124
10125 * dwarf2read.h (struct die_info): Don't declare.
10126
10127 2020-02-08 Tom Tromey <tom@tromey.com>
10128
10129 * dwarf2read.h (die_info_ptr): Remove typedef.
10130
10131 2020-02-08 Tom Tromey <tom@tromey.com>
10132
10133 * dwarf2read.c (read_call_site_scope)
10134 (handle_data_member_location, dwarf2_add_member_fn)
10135 (mark_common_block_symbol_computed, read_common_block)
10136 (attr_to_dynamic_prop, partial_die_info::read)
10137 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
10138 (dwarf2_symbol_mark_computed, set_die_type): Update.
10139 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
10140 method.
10141 (attr_form_is_block): Don't declare.
10142 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
10143
10144 2020-02-08 Tom Tromey <tom@tromey.com>
10145
10146 * dwarf2read.c (dwarf2_find_base_address, )
10147 (read_call_site_scope, rust_containing_type)
10148 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
10149 (handle_data_member_location, dwarf2_add_member_fn)
10150 (get_alignment, read_structure_type, process_structure_scope)
10151 (mark_common_block_symbol_computed, read_common_block)
10152 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
10153 (partial_die_info::read, read_attribute_value, new_symbol)
10154 (lookup_die_type, dwarf2_get_ref_die_offset)
10155 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
10156 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
10157 (dwarf2_symbol_mark_computed): Update.
10158 * dwarf2/attribute.h (struct attribute) <value_as_address,
10159 form_is_section_offset, form_is_constant, form_is_ref>: Declare
10160 methods.
10161 (value_as_address, attr_form_is_section_offset)
10162 (attr_form_is_constant, attr_form_is_ref): Don't declare.
10163 * dwarf2/attribute.c (attribute::value_as_address)
10164 (attribute::form_is_section_offset, attribute::form_is_constant)
10165 (attribute::form_is_ref): Now methods.
10166
10167 2020-02-08 Tom Tromey <tom@tromey.com>
10168
10169 * dwarf2read.c (struct attribute, DW_STRING)
10170 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
10171 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
10172 (attr_form_is_block, attr_form_is_section_offset)
10173 (attr_form_is_constant, attr_form_is_ref): Move.
10174 * dwarf2/attribute.h: New file.
10175 * dwarf2/attribute.c: New file, from dwarf2read.c.
10176 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
10177
10178 2020-02-08 Tom Tromey <tom@tromey.com>
10179
10180 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
10181 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
10182 Move.
10183 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
10184 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
10185 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
10186 abbrev.c.
10187 * dwarf2/abbrev.h: New file.
10188 * dwarf2/abbrev.c: New file, from dwarf2read.c.
10189 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
10190
10191 2020-02-08 Tom Tromey <tom@tromey.com>
10192
10193 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
10194 (dwarf2_section_size, dwarf2_get_section_info)
10195 (create_signatured_type_table_from_debug_names)
10196 (create_addrmap_from_aranges, read_debug_names_from_section)
10197 (get_gdb_index_contents_from_section, read_comp_unit_head)
10198 (error_check_comp_unit_head, read_abbrev_offset)
10199 (create_debug_type_hash_table, init_cu_die_reader)
10200 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
10201 (read_comp_units_from_section, create_cus_hash_table)
10202 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10203 (create_dwp_v2_section, dwarf2_rnglists_process)
10204 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
10205 (abbrev_table_read_table, read_indirect_string_at_offset_from)
10206 (read_indirect_string_from_dwz, read_addr_index_1)
10207 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
10208 (dwarf_decode_macro_bytes, dwarf_decode_macros)
10209 (fill_in_loclist_baton): Update.
10210 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
10211 get_containing_section, get_bfd_owner, get_bfd_section,
10212 get_file_name, get_id, get_flags, empty, read>: Declare methods.
10213 (dwarf2_read_section, get_section_name, get_section_file_name)
10214 (get_containing_section, get_section_bfd_owner)
10215 (get_section_bfd_section, get_section_name, get_section_file_name)
10216 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
10217 declare.
10218 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
10219 (dwarf2_section_info::get_bfd_owner)
10220 (dwarf2_section_info::get_bfd_section)
10221 (dwarf2_section_info::get_name)
10222 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
10223 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
10224 (dwarf2_section_info::read): Now methods.
10225 * dwarf-index-write.c (class debug_names): Update.
10226
10227 2020-02-08 Tom Tromey <tom@tromey.com>
10228
10229 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
10230 Move to dwarf2/section.h.
10231 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
10232 (get_section_bfd_section, get_section_name)
10233 (get_section_file_name, get_section_id, get_section_flags)
10234 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
10235 dwarf2/section.c.
10236 * dwarf2/section.h: New file.
10237 * dwarf2/section.c: New file, from dwarf2read.c.
10238 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10239
10240 2020-02-08 Tom Tromey <tom@tromey.com>
10241
10242 * dwarf2read.h (read_unsigned_leb128): Don't declare.
10243 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10244 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10245 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10246 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10247 * dwarf2/leb.h: New file, from dwarf2read.c.
10248 * dwarf2/leb.c: New file, from dwarf2read.c.
10249 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10250 Remove.
10251 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10252 (COMMON_SFILES): Add dwarf2/leb.c.
10253
10254 2020-02-08 Joel Brobecker <brobecker@adacore.com>
10255
10256 GDB 9.1 released.
10257
10258 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10259
10260 PR gdb/25190:
10261 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10262 * gdb/remote.c (remote_console_output): Update.
10263 * gdb/ui-file.c (fputs_unfiltered): Rename to...
10264 (ui_file_puts): ...this.
10265 * gdb/ui-file.h (ui_file_puts): Add declaration.
10266 * gdb/utils.c (emit_style_escape): Update.
10267 (flush_wrap_buffer): Update.
10268 (fputs_maybe_filtered): Update.
10269 (fputs_unfiltered): Add function.
10270
10271 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10272
10273 * gdb/event-loop.c (gdb_wait_for_event): Update.
10274 * gdb/printcmd.c (printf_command): Update.
10275 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10276 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10277 (gdb_os_flush_stderr): Update.
10278 * gdb/remote.c (remote_console_output): Update.
10279 * gdb/ui-file.c (gdb_flush): Rename to...
10280 (ui_file_flush): ...this.
10281 (stderr_file::write): Update.
10282 (stderr_file::puts): Update.
10283 * gdb/ui-file.h (gdb_flush): Rename to...
10284 (ui_file_flush): ...this.
10285 * gdb/utils.c (gdb_flush): Add function.
10286 * gdb/utils.h (gdb_flush): Add declaration.
10287
10288 2020-02-07 Tom Tromey <tromey@adacore.com>
10289
10290 PR breakpoints/24915:
10291 * source.c (find_and_open_source): Do not check basenames_may_differ.
10292
10293 2020-02-07 Tom Tromey <tom@tromey.com>
10294
10295 * README: Update gdbserver documentation.
10296 * gdbserver: Move to top level.
10297 * configure.tgt (build_gdbserver): Remove.
10298 * configure.ac: Remove --enable-gdbserver.
10299 * configure: Rebuild.
10300 * Makefile.in (distclean): Don't mention gdbserver.
10301
10302 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10303
10304 * source-cache.c (source_cache::ensure): Surround
10305 get_plain_source_lines with a try/catch.
10306 (source_cache::get_line_charpos): Get rid of try/catch
10307 and only check for the return value of "ensure".
10308 * tui/tui-source.c (tui_source_window::set_contents):
10309 Simplify "nlines" calculation.
10310
10311 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10312
10313 * MAINTAINERS (Write After Approval): Add myself.
10314
10315 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10316
10317 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10318 function call.
10319
10320 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10321
10322 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10323
10324 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
10325
10326 * nat/riscv-linux-tdesc.h: New file.
10327 * nat/riscv-linux-tdesc.c: New file, taking code from...
10328 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10329 ... here.
10330 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10331 NATDEPFILES.
10332
10333 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10334
10335 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10336 we don't set the fake simulator ptid to the null_ptid.
10337
10338 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
10339
10340 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10341 * gdbthread.h (class thread_info) <resumed>: Likewise.
10342 * infrun.c (resume_1): Likewise.
10343 (proceed): Likewise.
10344 (infrun_thread_stop_requested): Likewise.
10345 (stop_all_threads): Likewise.
10346 (handle_inferior_event): Likewise.
10347 (restart_threads): Likewise.
10348 (finish_step_over): Likewise.
10349 (keep_going_stepped_thread): Likewise.
10350 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10351 (linux_handle_extended_wait): Likewise.
10352 * record-btrace.c (get_thread_current_frame_id): Likewise.
10353 * record-full.c (record_full_wait_1): Likewise.
10354 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10355 * target.c (target_resume): Likewise.
10356 * thread.c (set_running_thread): Likewise.
10357
10358 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10359
10360 * f-valprint.c (f77_print_array_1): Changed datatype of index
10361 variable to LONGEST from int to enable it to contain bound
10362 values correctly.
10363
10364 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
10365
10366 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10367 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10368 offsets according to FLEN determined.
10369 (riscv_linux_nat_target::read_description): Determine FLEN
10370 dynamically.
10371 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10372 according to FLEN determined.
10373 (riscv_linux_nat_target::store_registers): Likewise.
10374
10375 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10376
10377 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10378 when reg->group is empty and reggroup is not.
10379
10380 2020-01-31 Tom Tromey <tromey@adacore.com>
10381
10382 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10383 Call beneath target's mourn_inferior after unpushing.
10384
10385 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10386
10387 PR tui/9765
10388 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10389 have enough lines to fill the screen, still return the lowest
10390 address we found.
10391
10392 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10393
10394 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10395 '-', '<', and '>' commands.
10396
10397 2020-01-29 Pedro Alves <palves@redhat.com>
10398 Sergio Durigan Junior <sergiodj@redhat.com>
10399
10400 * infcmd.c (construct_inferior_arguments): Assert that
10401 'argc' is greater than 0.
10402
10403 2020-01-29 Luis Machado <luis.machado@linaro.org>
10404
10405 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10406 (BRK_INSN_MASK): Define to 0xd4200000.
10407 (aarch64_program_breakpoint_here_p): New function.
10408 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10409 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10410 breakpoint.c.
10411 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10412 breakpoint.h
10413 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10414 call gdbarch_program_breakpoint_here_p.
10415 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10416 default_program_breakpoint_here_p, changed return type to bool and
10417 simplified.
10418 * breakpoint.h (program_breakpoint_here): Moved prototype to
10419 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10420 return type to bool.
10421 * gdbarch.c: Regenerate.
10422 * gdbarch.h: Regenerate.
10423 * gdbarch.sh (program_breakpoint_here_p): New method.
10424 * infrun.c (handle_signal_stop): Call
10425 gdbarch_program_breakpoint_here_p.
10426
10427 2020-01-26 Tom Tromey <tom@tromey.com>
10428
10429 * ctfread.c (struct ctf_fp_info): Reindent.
10430 (_initialize_ctfread): Remove.
10431
10432 2020-01-26 Tom Tromey <tom@tromey.com>
10433
10434 * psymtab.c (partial_map_expand_apply)
10435 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10436 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10437 (psym_print_stats, psym_expand_symtabs_for_function)
10438 (psym_map_symbol_filenames, psym_map_matching_symbols)
10439 (psym_expand_symtabs_matching)
10440 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10441 (maintenance_check_psymtabs): Use new methods.
10442 * psympriv.h (struct partial_symtab) <readin_p,
10443 get_compunit_symtab>: New methods.
10444 <readin, compunit_symtab>: Remove members.
10445 (struct standard_psymtab): New.
10446 (struct legacy_psymtab): Derive from standard_psymtab.
10447 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10448 standard_psymtab.
10449 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10450
10451 2020-01-26 Tom Tromey <tom@tromey.com>
10452
10453 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10454 read_dependencies. Add assert.
10455 * psymtab.c (partial_symtab::read_dependencies): New method.
10456 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10457 method.
10458 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10459 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10460 read_dependencies.
10461 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10462 Add assert.
10463
10464 2020-01-26 Tom Tromey <tom@tromey.com>
10465
10466 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10467 Call expand_psymtab.
10468 (xcoff_read_symtab): Call expand_psymtab.
10469 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10470 legacy_expand_psymtab.
10471 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10472 method.
10473 (struct legacy_psymtab) <expand_psymtab>: Implement.
10474 <legacy_expand_psymtab>: New member.
10475 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10476 (parse_partial_symbols): Set legacy_expand_psymtab.
10477 (psymtab_to_symtab_1): Change argument order. Call
10478 expand_psymtab.
10479 (new_psymtab): Set legacy_expand_psymtab.
10480 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10481 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10482 expand_psymtab.
10483 (dwarf2_psymtab::expand_psymtab): Rename from
10484 psymtab_to_symtab_1. Call expand_psymtab.
10485 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10486 (dbx_end_psymtab): Likewise.
10487 (dbx_psymtab_to_symtab_1): Change argument order. Call
10488 expand_psymtab.
10489 (dbx_read_symtab): Call expand_psymtab.
10490 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10491 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10492 (ctf_psymtab::read_symtab): Call expand_psymtab.
10493
10494 2020-01-26 Tom Tromey <tom@tromey.com>
10495
10496 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10497 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10498 messages.
10499 * mdebugread.c (mdebug_read_symtab): Remove prints.
10500 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10501 assert.
10502 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10503
10504 2020-01-26 Tom Tromey <tom@tromey.com>
10505
10506 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10507 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10508 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10509 legacy_symtab.
10510 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10511 * psymtab.c (psymtab_to_symtab): Call method.
10512 (dump_psymtab): Update.
10513 * psympriv.h (struct partial_symtab): Add virtual destructor.
10514 <read_symtab>: New method.
10515 (struct legacy_symtab): New.
10516 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10517 (struct pst_map) <pst>: Now a legacy_psymtab.
10518 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10519 (new_psymtab): Use legacy_psymtab.
10520 * dwarf2read.h (struct dwarf2_psymtab): New.
10521 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10522 * dwarf2read.c (dwarf2_create_include_psymtab)
10523 (dwarf2_build_include_psymtabs, create_type_unit_group)
10524 (create_partial_symtab, process_psymtab_comp_unit_reader)
10525 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10526 (set_partial_user): Use dwarf2_psymtab.
10527 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10528 (psymtab_to_symtab_1, process_full_comp_unit)
10529 (process_full_type_unit, dwarf2_ranges_read)
10530 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10531 (dwarf_decode_lines): Use dwarf2_psymtab.
10532 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10533 (add_address_entry_worker, write_one_signatured_type)
10534 (recursively_count_psymbols, recursively_write_psymbols)
10535 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10536 (write_debug_names): Likewise.
10537 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10538 <pst>: Now a legacy_psymtab.
10539 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10540 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10541 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10542 * ctfread.c (struct ctf_psymtab): New.
10543 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10544 ctf_psymtab.
10545 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10546 (create_partial_symtab): Return a ctf_psymtab.
10547 (scan_partial_symbols): Update.
10548
10549 2020-01-26 Tom Tromey <tom@tromey.com>
10550
10551 * xcoffread.c (xcoff_start_psymtab): Use new.
10552 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10553 renamed from start_psymtab_common.
10554 * psympriv.h (struct partial_symtab): Add new constructor.
10555 (start_psymtab_common): Don't declare.
10556 * mdebugread.c (parse_partial_symbols): Use new.
10557 * dwarf2read.c (create_partial_symtab): Use new.
10558 * dbxread.c (start_psymtab): Use new.
10559 * ctfread.c (create_partial_symtab): Use new.
10560
10561 2020-01-26 Tom Tromey <tom@tromey.com>
10562
10563 * xcoffread.c (xcoff_end_psymtab): Use new.
10564 * psymtab.c (start_psymtab_common): Use new.
10565 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10566 Update.
10567 * psympriv.h (struct partial_symtab): Add parameters to
10568 constructor. Don't inline.
10569 (allocate_psymtab): Don't declare.
10570 * mdebugread.c (new_psymtab): Use new.
10571 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10572 * dbxread.c (dbx_end_psymtab): Use new.
10573
10574 2020-01-26 Tom Tromey <tom@tromey.com>
10575
10576 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10577 allocate_psymtab. Update documentation.
10578 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10579 allocate_psymtab. Do not use new.
10580 (allocate_psymtab): Use new. Update.
10581
10582 2020-01-26 Tom Tromey <tom@tromey.com>
10583
10584 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10585 * psymtab.c (psym_print_stats): Update.
10586 * psympriv.h (struct partial_symtab) <readin,
10587 psymtabs_addrmap_supported, anonymous>: Now bool.
10588 * mdebugread.c (psymtab_to_symtab_1): Update.
10589 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10590 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10591 (process_full_comp_unit, process_full_type_unit): Update.
10592 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10593 * ctfread.c (psymtab_to_symtab): Update.
10594
10595 2020-01-26 Tom Tromey <tom@tromey.com>
10596
10597 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10598 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10599 * psymtab.c (psymtab_storage): Delete psymtabs.
10600 (psymtab_storage::allocate_psymtab): Use new.
10601 (psymtab_storage::discard_psymtab): Use delete.
10602 * psympriv.h (struct partial_symtab): Add constructor and
10603 initializers.
10604
10605 2020-01-26 Tom Tromey <tom@tromey.com>
10606
10607 * machoread.c: Do not include psympriv.h.
10608
10609 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10610
10611 * NEWS: Mention the new option and the set/show commands.
10612
10613 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10614
10615 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10616 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10617 (validate_exec_file): New variables, enums, functions.
10618 (exec_file_locate_attach, print_section_info): Style the filenames.
10619 (_initialize_exec): Install show_exec_file_mismatch_command and
10620 set_exec_file_mismatch_command.
10621 * gdbcore.h (validate_exec_file): Declare.
10622 * infcmd.c (attach_command): Call validate_exec_file.
10623 * remote.c ( remote_target::remote_add_inferior): Likewise.
10624
10625 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10626
10627 * frame.c (find_frame_sal): Move call to get_next_frame into more
10628 inner scope.
10629 * inline-frame.c (inilne_state) <inline_state>: Update argument
10630 types.
10631 (inilne_state) <skipped_symbol>: Rename to...
10632 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10633 (skip_inline_frames): Build vector of skipped symbols and use this
10634 to reate the inline_state.
10635 (inline_skipped_symbol): Add a comment and some assertions, fetch
10636 skipped symbol from the list.
10637
10638 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10639
10640 * buildsym.c (lte_is_less_than): Delete.
10641 (buildsym_compunit::end_symtab_with_blockvector): Create local
10642 lambda function to sort line table entries, and use
10643 std::stable_sort instead of std::sort.
10644 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10645 markers when looking for a previous line.
10646
10647 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10648
10649 * dwarf2read.c (lnp_state_machine::record_line): Include
10650 end_sequence parameter in debug print out. Record the line if we
10651 are at an end_sequence marker even if it's not the start of a
10652 statement.
10653 * symmisc.c (maintenance_print_one_line_table): Print end of
10654 sequence markers with 'END' not '0'.
10655
10656 2020-01-24 Pedro Alves <palves@redhat.com>
10657
10658 PR gdb/25410
10659 * thread.c (scoped_restore_current_thread::restore): Use
10660 switch_to_inferior_no_thread.
10661 * exec.c: Include "progspace-and-thread.h".
10662 (add_target_sections, remove_target_sections):
10663 scoped_restore_current_pspace_and_thread instead of
10664 scoped_restore_current_thread.
10665 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10666 and aspace to the inferior before calling clone_program_space.
10667 Remove stale comment.
10668
10669 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10670
10671 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10672 (arm_netbsd_nat_target::fetch_registers): ...this.
10673 (arm_nbsd_nat_target::store_registers): Rename to...
10674 (arm_netbsd_nat_target::store_registers): ...this.
10675
10676 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10677
10678 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10679 register_t.
10680
10681 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10682
10683 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10684 Update comment.
10685 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10686 Likewise.
10687 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10688 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10689 the correct replacement (iterate_over_regset_sections).
10690 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10691 Update comment.
10692
10693 2020-01-24 Graham Markall <graham.markall@embecosm.com>
10694
10695 PR gdb/23718
10696 * gdb/python/python.c (execute_gdb_command): Call
10697 async_enable_stdin in catch block.
10698
10699 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10700
10701 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10702 SWITCH_THRU_ALL_UIS.
10703
10704 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10705
10706 PR tui/9765
10707 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10708 comment, add extra parameter, and update to store previous symbol
10709 when appropriate.
10710 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10711 add extra parameter.
10712 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10713 remove unneeded parameter, add try/catch around gdb_print_insn,
10714 rewrite to add items to asm_lines vector.
10715 (tui_find_backward_disassembly_start_address): New function.
10716 (tui_find_disassembly_address): Updated throughout.
10717 (tui_disasm_window::set_contents): Update for changes to
10718 tui_disassemble.
10719 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10720 number of lines to scroll.
10721
10722 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10723
10724 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10725 (SECT_OFF_DATA): Likewise.
10726 (SECT_OFF_RODATA): Likewise.
10727 (SECT_OFF_TEXT): Likewise.
10728 (SECT_OFF_BSS): Likewise.
10729 (struct objfile) <text_section_offset, data_section_offset>: New
10730 methods.
10731 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10732 objfile::text_section_offset.
10733 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10734 * coffread.c (coff_symtab_read): Likewise.
10735 (enter_linenos): Likewise.
10736 (process_coff_symbol): Likewise.
10737 * ctfread.c (get_objfile_text_range): Likewise.
10738 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10739 Use objfile::data_section_offset.
10740 * dwarf2-frame.c (execute_cfa_program): Use
10741 objfile::text_section_offset.
10742 (dwarf2_frame_find_fde): Likewise.
10743 * dwarf2read.c (create_addrmap_from_index): Likewise.
10744 (create_addrmap_from_aranges): Likewise.
10745 (dw2_find_pc_sect_compunit_symtab): Likewise.
10746 (process_psymtab_comp_unit_reader): Likewise.
10747 (add_partial_symbol): Likewise.
10748 (add_partial_subprogram): Likewise.
10749 (process_full_comp_unit): Likewise.
10750 (read_file_scope): Likewise.
10751 (read_func_scope): Likewise.
10752 (read_lexical_block_scope): Likewise.
10753 (read_call_site_scope): Likewise.
10754 (dwarf2_rnglists_process): Likewise.
10755 (dwarf2_ranges_process): Likewise.
10756 (dwarf2_ranges_read): Likewise.
10757 (dwarf_decode_lines_1): Likewise.
10758 (new_symbol): Likewise.
10759 (dwarf2_fetch_die_loc_sect_off): Likewise.
10760 (dwarf2_per_cu_text_offset): Likewise.
10761 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10762 * hppa-tdep.c (read_unwind_info): Likewise.
10763 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10764 * psympriv.h (struct partial_symtab): Likewise.
10765 * psymtab.c (find_pc_sect_psymtab): Likewise.
10766 * solib-svr4.c (enable_break): Likewise.
10767 * stap-probe.c (relocate_address): Use
10768 objfile::data_section_offset.
10769 * xcoffread.c (enter_line_range): Use
10770 objfile::text_section_offset.
10771 (read_xcoff_symtab): Likewise.
10772
10773 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10774
10775 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10776 declaration to narrower scopes.
10777
10778 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10779
10780 * darwin-nat.h (struct darwin_exception_msg, enum
10781 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10782 Move up.
10783 (class darwin_nat_target) <wait_1, check_new_threads,
10784 decode_exception_message, decode_message, stop_inferior,
10785 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10786 * darwin-nat.c (darwin_check_new_threads): Rename to...
10787 (darwin_nat_target::check_new_threads): ... this.
10788 (darwin_suspend_inferior_it): Remove.
10789 (darwin_decode_exception_message): Rename to...
10790 (darwin_nat_target::decode_exception_message): ... this.
10791 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10792 (darwin_decode_message): Rename to...
10793 (darwin_nat_target::decode_message): ... this.
10794 (cancel_breakpoint): Rename to...
10795 (darwin_nat_target::cancel_breakpoint): ... this.
10796 (darwin_wait): Rename to...
10797 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10798 instead of iterate_over_inferiors.
10799 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10800 (darwin_stop_inferior): Rename to...
10801 (darwin_nat_target::stop_inferior): ... this.
10802 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10803 (darwin_init_thread_list): Rename to...
10804 (darwin_nat_target::init_thread_list): ... this.
10805 (darwin_ptrace_him): Rename to...
10806 (darwin_nat_target::ptrace_him): ... this.
10807 (darwin_nat_target::create_inferior): Pass lambda function to
10808 fork_inferior.
10809 (darwin_nat_target::detach): Call stop_inferior instead of
10810 darwin_stop_inferior.
10811 * fork-inferior.h (fork_inferior): Change init_trace_fun
10812 parameter to gdb::function_view.
10813 * fork-inferior.c (fork_inferior): Likewise.
10814
10815 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
10816
10817 * i386-cygwin-tdep.c (core_process_module_section): Update.
10818 * windows-nat.c (struct lm_info_windows): Add text_offset.
10819 (windows_xfer_shared_libraries): Update.
10820 * windows-tdep.c (windows_xfer_shared_library):
10821 Add text_offset_cached argument.
10822 * windows-tdep.h (windows_xfer_shared_library): Update.
10823
10824 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10825
10826 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10827
10828 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10829
10830 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10831 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10832 replace with range-based for.
10833 (gdbsim_interrupt_inferior): Remove.
10834 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10835 with a range-based for. Inline code from
10836 gdbsim_interrupt_inferior.
10837
10838 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10839
10840 * infrun.c (proceed): Fix indentation.
10841
10842 2020-01-21 Tom Tromey <tromey@adacore.com>
10843
10844 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10845 * python/python.c (python_extension_ops): Update.
10846 (gdbpy_colorize): New function.
10847 * python/lib/gdb/__init__.py (colorize): New function.
10848 * extension.h (ext_lang_colorize): Declare.
10849 * extension.c (ext_lang_colorize): New function.
10850 * extension-priv.h (struct extension_language_ops) <colorize>: New
10851 member.
10852 * cli/cli-style.c (_initialize_cli_style): Update help text.
10853
10854 2020-01-21 Luis Machado <luis.machado@linaro.org>
10855
10856 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10857 <cond>: Change type to bool.
10858 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10859 (aarch64_displaced_step_cb): Likewise.
10860 (aarch64_displaced_step_tb): Likewise.
10861
10862 2020-01-21 Luis Machado <luis.machado@linaro.org>
10863
10864 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10865 output.
10866
10867 2020-01-21 Luis Machado <luis.machado@linaro.org>
10868
10869 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10870 <pc_adjust>: Adjust the documentation.
10871 (aarch64_displaced_step_fixup): Check if PC really moved before
10872 adjusting it.
10873
10874 2020-01-19 Tom Tromey <tom@tromey.com>
10875
10876 * disasm.c (~gdb_disassembler): New destructor.
10877 (gdb_buffered_insn_length): Call disassemble_free_target.
10878 * disasm.h (class gdb_disassembler): Declare destructor. Use
10879 DISABLE_COPY_AND_ASSIGN.
10880
10881 2020-01-19 Tom Tromey <tom@tromey.com>
10882
10883 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10884 (die_reader_func_ftype): Remove.
10885 (cutu_reader): New class.
10886 (dw2_get_file_names_reader): Remove "data" parameter.
10887 (dw2_get_file_names): Use cutu_reader.
10888 (create_debug_type_hash_table): Update.
10889 (read_cutu_die_from_dwo): Update comment.
10890 (lookup_dwo_unit): Add dwo_name parameter.
10891 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10892 die_reader_func_ftype and data parameters.
10893 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10894 Remove die_reader_func_ftype and data parameters.
10895 (~cutu_reader): New; from init_cutu_and_read_dies.
10896 (cutu_reader::cutu_reader): Rename from
10897 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10898 and data parameters.
10899 (init_cutu_and_read_dies_simple): Remove.
10900 (struct process_psymtab_comp_unit_data): Remove.
10901 (process_psymtab_comp_unit_reader): Remove data parameter; add
10902 want_partial_unit and pretend_language parameters.
10903 (process_psymtab_comp_unit): Use cutu_reader.
10904 (build_type_psymtabs_reader): Remove data parameter.
10905 (build_type_psymtabs_1): Use cutu_reader.
10906 (process_skeletonless_type_unit): Likewise.
10907 (load_partial_comp_unit_reader): Remove.
10908 (load_partial_comp_unit): Use cutu_reader.
10909 (load_full_comp_unit_reader): Remove.
10910 (load_full_comp_unit): Use cutu_reader.
10911 (struct create_dwo_cu_data): Remove.
10912 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10913 dwo_unit parameters.
10914 (create_cus_hash_table): Use cutu_reader.
10915 (struct dwarf2_read_addr_index_data): Remove.
10916 (dwarf2_read_addr_index_reader): Remove.
10917 (dwarf2_read_addr_index): Use cutu_reader.
10918 (read_signatured_type_reader): Remove.
10919 (read_signatured_type): Use cutu_reader.
10920
10921 2020-01-19 Tom Tromey <tom@tromey.com>
10922
10923 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10924 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10925 (tui_wrefresh): Declare.
10926 * tui/tui-wingeneral.c (suppress_output): New global.
10927 (tui_suppress_output, ~tui_suppress_output): New constructor and
10928 destructor.
10929 (tui_wrefresh): New function.
10930 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10931 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10932 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10933 method.
10934 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10935 tui_wrefresh.
10936 (tui_data_window::no_refresh): New method.
10937 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10938 (tui_reg_command): Use tui_suppress_output
10939 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10940 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10941 method.
10942 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10943
10944 2020-01-19 Tom Tromey <tom@tromey.com>
10945
10946 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10947 Handle case where symtab is null.
10948
10949 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10950
10951 * linux-fork.c (one_fork_p): Simplify.
10952
10953 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10954
10955 * top.c (struct qt_args): Remove.
10956 (kill_or_detach): Change return type to void, replace `void *`
10957 parameter with a proper one.
10958 (print_inferior_quit_action): Likewise.
10959 (quit_confirm): Use range-based for loop to iterate over inferiors.
10960 (quit_force): Likewise.
10961
10962 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10963
10964 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10965 `void *` parameter with proper parameters.
10966 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10967 (print_one_inferior): Change return type to void, replace `void *`
10968 parameter with proper parameters.
10969 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10970 inferiors.
10971 (get_other_inferior): Remove.
10972 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10973 inferiors.
10974
10975 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10976
10977 * mi/mi-interp.c (report_initial_inferior): Remove.
10978 (mi_interp::init): Use range-based for to iterate over inferiors.
10979
10980 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10981
10982 * python/py-inferior.c (build_inferior_list): Remove.
10983 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10984
10985 2020-01-16 Christian Biesinger <cbiesinger@google.com>
10986
10987 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10988 (btrace_stitch_trace): Likewise.
10989 * charset.c (intermediate_encoding): Likewise (vaild).
10990 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10991 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10992 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10993
10994 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
10995
10996 * windows-tdep.c (windows_get_tlb_type):
10997 Add rtl_user_process_parameters type.
10998
10999 2020-01-16 Pedro Alves <palves@redhat.com>
11000 Norbert Lange <nolange79@gmail.com>
11001
11002 PR build/24805
11003 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
11004 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
11005 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
11006 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
11007 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
11008 (ps_plog): Redeclare exported functions with default visibility.
11009
11010 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
11011
11012 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
11013 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
11014
11015 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
11016
11017 * infcmd.c (post_create_inferior): Use get_thread_regcache
11018 instead of get_current_regcache.
11019
11020 2020-01-14 Tom Tromey <tom@tromey.com>
11021
11022 PR symtab/12535:
11023 * python/python.c (gdbpy_decode_line): Treat empty string the same
11024 as no argument.
11025
11026 2020-01-14 Tom Tromey <tom@tromey.com>
11027
11028 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
11029
11030 2020-01-14 Tom Tromey <tom@tromey.com>
11031
11032 * nat/linux-btrace.c: Don't include <config.h>.
11033 * nat/linux-ptrace.c: Don't include <config.h>.
11034 * nat/x86-linux-dregs.c: Don't include <config.h>.
11035
11036 2020-01-14 Tom Tromey <tom@tromey.com>
11037
11038 * configure: Rebuild.
11039 * configure.ac: Move many checks to ../gdbsupport/common.m4.
11040
11041 2020-01-14 Tom Tromey <tom@tromey.com>
11042
11043 * nat/x86-linux-dregs.c: Include configh.h.
11044 * nat/linux-ptrace.c: Include configh.h.
11045 * nat/linux-btrace.c: Include configh.h.
11046 * defs.h: Include config.h, bfd.h.
11047 * configure.ac: Don't source common.host.
11048 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
11049 * configure: Rebuild.
11050 * acinclude.m4: Update path.
11051 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
11052 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
11053 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
11054 (CLIBS): Add LIBSUPPORT.
11055 (CDEPS): Likewise.
11056 (COMMON_SFILES): Remove gdbsupport files.
11057 (HFILES_NO_SRCDIR): Likewise.
11058 (stamp-version): Update path to create-version.sh.
11059 (ALLDEPFILES): Remove gdbsupport files.
11060
11061 2020-01-14 Tom Tromey <tom@tromey.com>
11062
11063 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
11064 USE_WIN32API when needed.
11065 * configure.ac (USE_WIN32API): Don't define.
11066 (WIN32LIBS): Use WIN32APILIBS.
11067 * configure: Rebuild.
11068
11069 2020-01-14 Tom Tromey <tom@tromey.com>
11070
11071 * configure: Rebuild.
11072 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
11073
11074 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
11075
11076 * skip.c (skip_function_command): Make skip w/o arguments use the
11077 name of the inlined function if pc is inside any inlined function.
11078
11079 2020-01-14 Luis Machado <luis.machado@linaro.org>
11080
11081 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
11082 * infrun.c (resume_1): Likewise.
11083 (handle_inferior_event): Remove stale comment.
11084 * linux-nat.c (linux_nat_target::resume): Update comments.
11085 (save_stop_reason): Likewise.
11086 (linux_nat_filter_event): Likewise.
11087 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
11088
11089 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11090
11091 * elfread.c (record_minimal_symbol): Set section index to 0 for
11092 non-allocatable sections.
11093
11094
11095 2020-01-13 Ali Tamur <tamur@google.com>
11096
11097 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
11098 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
11099 to gdb::optional. Update comments.
11100 (dwo_file): Update comments.
11101 (read_attribute): Update API to take an additional out parameter,
11102 need_reprocess. This is used to mark attributes that need other
11103 attributes (e.g. str_offsets_base) for correct computation which may not
11104 have been read yet.
11105 (read_attribute_reprocess): New function declaration.
11106 (read_addr_index): Likewise.
11107 (read_dwo_str_index): Likewise.
11108 (read_stub_str_index): Likewise.
11109 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
11110 (lookup_addr_base): New function definition.
11111 (lookup_ranges_base): Likewise.
11112 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
11113 lookup_ranges_base.
11114 (init_cutu_and_read_dies): Update comments.
11115 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
11116 unit. This is used to inherit parent's str_offsets_base and addr_base.
11117 Update comments.
11118 (init_cutu_and_read_dies_simple): Reflect API changes.
11119 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
11120 (create_cus_hash_table): Change API to take parent compile unit.
11121 Reflect API changes.
11122 (open_and_init_dwo_file): Reflect API changes.
11123 (dwarf2_get_pc_bounds): Update comments.
11124 (dwarf2_record_block_ranges): Likewise.
11125 (read_full_die_1): Change implementation to reprocess attributes that
11126 need str_offsets_base and addr_base.
11127 (partial_die_info::read): Likewise.
11128 (read_attribute_reprocess): New function definition.
11129 (read_attribute_value): Change API to take an additional out parameter,
11130 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
11131 when a non-dwo compile unit has index based attributes.
11132 (read_attribute): Reflect API changes.
11133 (read_addr_index_1): Reflect API changes. Update comments.
11134 (dwarf2_read_addr_index_data): Reflect API changes.
11135 (dwarf2_read_addr_index): Likewise.
11136 (read_str_index): Change API and implementation. This becomes a helper
11137 to be used by the new string index related methods. Update error
11138 message and comments.
11139 (read_dwo_str_index): New function definition.
11140 (read_stub_str_index): Likewise.
11141 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
11142 * symfile.h (dwarf2_debug_sections): Likewise.
11143 * xcoffread.c (dwarf2_debug_sections): Likewise.
11144
11145 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11146
11147 * gdbcore.h (struct core_fns) <core_read_registers>: Change
11148 core_reg_sect type to gdb_byte *.
11149 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
11150 * cris-tdep.c (fetch_core_registers): Likewise.
11151 * corelow.c (core_target::get_core_register_section): Change
11152 type of `contents` to gdb::byte_vector.
11153
11154 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11155
11156 * tui/tui-wingeneral.c (box_win): Position the title in the center
11157 of the border.
11158
11159 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11160
11161 * corelow.c (core_target::get_core_register_section): Use
11162 std::vector instead of alloca.
11163
11164 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11165
11166 * warning.m4: Add -Wmissing-declarations to build_warnings.
11167 * configure: Re-generate.
11168
11169 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11170
11171 * python/python.c (init__gdb_module): Add declaration.
11172
11173 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11174
11175 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
11176 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
11177 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
11178 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
11179 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
11180 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
11181 * ada-exp.y (_initialize_ada_exp): Add declaration.
11182 * ada-lang.c (_initialize_ada_language): Add declaration.
11183 * ada-tasks.c (_initialize_tasks): Add declaration.
11184 * agent.c (_initialize_agent): Add declaration.
11185 * aix-thread.c (_initialize_aix_thread): Add declaration.
11186 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
11187 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
11188 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
11189 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
11190 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
11191 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
11192 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
11193 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
11194 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
11195 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
11196 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
11197 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
11198 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
11199 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
11200 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
11201 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
11202 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
11203 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
11204 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
11205 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
11206 * annotate.c (_initialize_annotate): Add declaration.
11207 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
11208 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
11209 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
11210 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
11211 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
11212 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
11213 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
11214 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
11215 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
11216 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
11217 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
11218 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
11219 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
11220 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
11221 * auto-load.c (_initialize_auto_load): Add declaration.
11222 * auxv.c (_initialize_auxv): Add declaration.
11223 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
11224 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
11225 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
11226 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
11227 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
11228 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
11229 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
11230 * breakpoint.c (_initialize_breakpoint): Add declaration.
11231 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
11232 * btrace.c (_initialize_btrace): Add declaration.
11233 * charset.c (_initialize_charset): Add declaration.
11234 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
11235 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11236 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11237 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11238 * cli/cli-script.c (_initialize_cli_script): Add declaration.
11239 * cli/cli-style.c (_initialize_cli_style): Add declaration.
11240 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11241 * coffread.c (_initialize_coffread): Add declaration.
11242 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11243 * compile/compile.c (_initialize_compile): Add declaration.
11244 * complaints.c (_initialize_complaints): Add declaration.
11245 * completer.c (_initialize_completer): Add declaration.
11246 * copying.c (_initialize_copying): Add declaration.
11247 * corefile.c (_initialize_core): Add declaration.
11248 * corelow.c (_initialize_corelow): Add declaration.
11249 * cp-abi.c (_initialize_cp_abi): Add declaration.
11250 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11251 * cp-support.c (_initialize_cp_support): Add declaration.
11252 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11253 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11254 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11255 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11256 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11257 * ctfread.c (_initialize_ctfread): Add declaration.
11258 * d-lang.c (_initialize_d_language): Add declaration.
11259 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11260 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11261 * dbxread.c (_initialize_dbxread): Add declaration.
11262 * dcache.c (_initialize_dcache): Add declaration.
11263 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11264 * disasm.c (_initialize_disasm): Add declaration.
11265 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11266 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11267 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11268 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11269 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11270 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11271 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11272 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11273 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11274 * elfread.c (_initialize_elfread): Add declaration.
11275 * exec.c (_initialize_exec): Add declaration.
11276 * extension.c (_initialize_extension): Add declaration.
11277 * f-lang.c (_initialize_f_language): Add declaration.
11278 * f-valprint.c (_initialize_f_valprint): Add declaration.
11279 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11280 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11281 * filesystem.c (_initialize_filesystem): Add declaration.
11282 * findcmd.c (_initialize_mem_search): Add declaration.
11283 * findvar.c (_initialize_findvar): Add declaration.
11284 * fork-child.c (_initialize_fork_child): Add declaration.
11285 * frame-base.c (_initialize_frame_base): Add declaration.
11286 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11287 * frame.c (_initialize_frame): Add declaration.
11288 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11289 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11290 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11291 * gcore.c (_initialize_gcore): Add declaration.
11292 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11293 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11294 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11295 * gdbarch.c (_initialize_gdbarch): Add declaration.
11296 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11297 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11298 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11299 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11300 * go-lang.c (_initialize_go_language): Add declaration.
11301 * go32-nat.c (_initialize_go32_nat): Add declaration.
11302 * guile/guile.c (_initialize_guile): Add declaration.
11303 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11304 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11305 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11306 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11307 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11308 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11309 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11310 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11311 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11312 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11313 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11314 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11315 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11316 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11317 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11318 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11319 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11320 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11321 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11322 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11323 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11324 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11325 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11326 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11327 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11328 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11329 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11330 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11331 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11332 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11333 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11334 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11335 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11336 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11337 * infcall.c (_initialize_infcall): Add declaration.
11338 * infcmd.c (_initialize_infcmd): Add declaration.
11339 * inflow.c (_initialize_inflow): Add declaration.
11340 * infrun.c (_initialize_infrun): Add declaration.
11341 * interps.c (_initialize_interpreter): Add declaration.
11342 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11343 * jit.c (_initialize_jit): Add declaration.
11344 * language.c (_initialize_language): Add declaration.
11345 * linux-fork.c (_initialize_linux_fork): Add declaration.
11346 * linux-nat.c (_initialize_linux_nat): Add declaration.
11347 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11348 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11349 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11350 * m2-lang.c (_initialize_m2_language): Add declaration.
11351 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11352 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11353 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11354 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11355 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11356 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11357 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11358 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11359 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11360 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11361 * machoread.c (_initialize_machoread): Add declaration.
11362 * macrocmd.c (_initialize_macrocmd): Add declaration.
11363 * macroscope.c (_initialize_macroscope): Add declaration.
11364 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11365 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11366 * maint.c (_initialize_maint_cmds): Add declaration.
11367 * mdebugread.c (_initialize_mdebugread): Add declaration.
11368 * memattr.c (_initialize_mem): Add declaration.
11369 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11370 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11371 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11372 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11373 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11374 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11375 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11376 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11377 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11378 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11379 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11380 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11381 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11382 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11383 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11384 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11385 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11386 * mipsread.c (_initialize_mipsread): Add declaration.
11387 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11388 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11389 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11390 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11391 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11392 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11393 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11394 * nto-procfs.c (_initialize_procfs): Add declaration.
11395 * objc-lang.c (_initialize_objc_language): Add declaration.
11396 * observable.c (_initialize_observer): Add declaration.
11397 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11398 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11399 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11400 * osabi.c (_initialize_gdb_osabi): Add declaration.
11401 * osdata.c (_initialize_osdata): Add declaration.
11402 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11403 * parse.c (_initialize_parse): Add declaration.
11404 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11405 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11406 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11407 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11408 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11409 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11410 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11411 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11412 * printcmd.c (_initialize_printcmd): Add declaration.
11413 * probe.c (_initialize_probe): Add declaration.
11414 * proc-api.c (_initialize_proc_api): Add declaration.
11415 * proc-events.c (_initialize_proc_events): Add declaration.
11416 * proc-service.c (_initialize_proc_service): Add declaration.
11417 * procfs.c (_initialize_procfs): Add declaration.
11418 * producer.c (_initialize_producer): Add declaration.
11419 * psymtab.c (_initialize_psymtab): Add declaration.
11420 * python/python.c (_initialize_python): Add declaration.
11421 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11422 * record-btrace.c (_initialize_record_btrace): Add declaration.
11423 * record-full.c (_initialize_record_full): Add declaration.
11424 * record.c (_initialize_record): Add declaration.
11425 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11426 * regcache.c (_initialize_regcache): Add declaration.
11427 * reggroups.c (_initialize_reggroup): Add declaration.
11428 * remote-notif.c (_initialize_notif): Add declaration.
11429 * remote-sim.c (_initialize_remote_sim): Add declaration.
11430 * remote.c (_initialize_remote): Add declaration.
11431 * reverse.c (_initialize_reverse): Add declaration.
11432 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11433 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11434 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11435 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11436 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11437 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11438 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11439 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11440 Add declaration.
11441 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11442 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11443 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11444 * rust-exp.y (_initialize_rust_exp): Add declaration.
11445 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11446 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11447 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11448 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11449 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11450 * score-tdep.c (_initialize_score_tdep): Add declaration.
11451 * ser-go32.c (_initialize_ser_dos): Add declaration.
11452 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11453 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11454 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11455 * ser-uds.c (_initialize_ser_socket): Add declaration.
11456 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11457 * serial.c (_initialize_serial): Add declaration.
11458 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11459 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11460 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11461 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11462 * skip.c (_initialize_step_skip): Add declaration.
11463 * sol-thread.c (_initialize_sol_thread): Add declaration.
11464 * solib-aix.c (_initialize_solib_aix): Add declaration.
11465 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11466 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11467 * solib-frv.c (_initialize_frv_solib): Add declaration.
11468 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11469 * solib-target.c (_initialize_solib_target): Add declaration.
11470 * solib.c (_initialize_solib): Add declaration.
11471 * source-cache.c (_initialize_source_cache): Add declaration.
11472 * source.c (_initialize_source): Add declaration.
11473 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11474 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11475 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11476 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11477 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11478 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11479 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11480 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11481 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11482 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11483 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11484 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11485 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11486 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11487 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11488 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11489 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11490 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11491 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11492 * stabsread.c (_initialize_stabsread): Add declaration.
11493 * stack.c (_initialize_stack): Add declaration.
11494 * stap-probe.c (_initialize_stap_probe): Add declaration.
11495 * std-regs.c (_initialize_frame_reg): Add declaration.
11496 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11497 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11498 * symfile.c (_initialize_symfile): Add declaration.
11499 * symmisc.c (_initialize_symmisc): Add declaration.
11500 * symtab.c (_initialize_symtab): Add declaration.
11501 * target.c (_initialize_target): Add declaration.
11502 * target-connection.c (_initialize_target_connection): Add
11503 declaration.
11504 * target-dcache.c (_initialize_target_dcache): Add declaration.
11505 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11506 * thread.c (_initialize_thread): Add declaration.
11507 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11508 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11509 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11510 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11511 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11512 * tracectf.c (_initialize_ctf): Add declaration.
11513 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11514 * tracefile.c (_initialize_tracefile): Add declaration.
11515 * tracepoint.c (_initialize_tracepoint): Add declaration.
11516 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11517 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11518 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11519 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11520 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11521 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11522 * tui/tui.c (_initialize_tui): Add declaration.
11523 * typeprint.c (_initialize_typeprint): Add declaration.
11524 * ui-style.c (_initialize_ui_style): Add declaration.
11525 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11526 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11527 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11528 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11529 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11530 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11531 * unittests/filtered_iterator-selftests.c
11532 (_initialize_filtered_iterator_selftests): Add declaration.
11533 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11534 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11535 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11536 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11537 * unittests/main-thread-selftests.c
11538 (_initialize_main_thread_selftests): Add declaration.
11539 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11540 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11541 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11542 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11543 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11544 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11545 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11546 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11547 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11548 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11549 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11550 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11551 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11552 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11553 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11554 declaration.
11555 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11556 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11557 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11558 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11559 * user-regs.c (_initialize_user_regs): Add declaration.
11560 * utils.c (_initialize_utils): Add declaration.
11561 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11562 * valops.c (_initialize_valops): Add declaration.
11563 * valprint.c (_initialize_valprint): Add declaration.
11564 * value.c (_initialize_values): Add declaration.
11565 * varobj.c (_initialize_varobj): Add declaration.
11566 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11567 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11568 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11569 * windows-nat.c (_initialize_windows_nat): Add declaration.
11570 (_initialize_check_for_gdb_ini): Add declaration.
11571 (_initialize_loadable): Add declaration.
11572 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11573 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11574 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11575 * xcoffread.c (_initialize_xcoffread): Add declaration.
11576 * xml-support.c (_initialize_xml_support): Add declaration.
11577 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11578 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11579 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11580 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11581
11582 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11583
11584 * regformats/regdat.sh: Generate declaration for init function.
11585
11586 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11587
11588 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11589 up.
11590 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11591 close_one_inferior>: New methods.
11592 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11593 pass down target to find_inferior_pid.
11594 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11595 Pass down target to find_inferior_ptid.
11596 (gdbsim_target::create_inferior): Pass down target to
11597 add_thread_silent.
11598 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11599 target down to find_inferior_ptid and switch_to_thread.
11600 (gdbsim_target::close): Update to call close_one_inferior.
11601 (struct resume_data): Remove.
11602 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11603 directly, rather than through a void pointer.
11604 (gdbsim_target::resume): Update to call resume_one_inferior.
11605
11606 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11607
11608 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11609
11610 2020-01-12 Pedro Alves <palves@redhat.com>
11611
11612 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11613 directly for the current inferior instead of
11614 discard_all_inferiors.
11615 (discard_all_inferiors): Delete.
11616
11617 2020-01-11 Tom Tromey <tom@tromey.com>
11618
11619 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11620 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11621 deprecated_safe_get_selected_frame.
11622
11623 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11624
11625 * inferior.c (print_inferior): Switch inferior before printing it.
11626
11627 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11628 Pedro Alves <palves@redhat.com>
11629
11630 * progspace-and-thread.c (switch_to_program_space_and_thread):
11631 Assert there's an inferior for PSPACE. Use
11632 switch_to_inferior_no_thread to switch the inferior too.
11633 * progspace.c (program_space::~program_space): Call
11634 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11635 (program_space::free_all_objfiles): Don't call clear_symtab_users
11636 here.
11637 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11638
11639 2020-01-10 Pedro Alves <palves@redhat.com>
11640
11641 * NEWS: Mention multi-target debugging, "info connections", and
11642 "add-inferior -no-connection".
11643
11644 2020-01-10 Pedro Alves <palves@redhat.com>
11645
11646 * infrun.c: Include "target-connection.h".
11647 (check_multi_target_resumption): New.
11648 (proceed): Call it.
11649 * target-connection.c (make_target_connection_string): Make
11650 extern.
11651 * target-connection.h (make_target_connection_string): Declare.
11652
11653 2020-01-10 Pedro Alves <palves@redhat.com>
11654
11655 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11656 * inferior.c (uiout_field_connection): New function.
11657 (print_inferior): Add new "connection-id" column.
11658 (add_inferior_command): Show connection number/string of added
11659 inferior.
11660 * process-stratum-target.h
11661 (process_stratum_target::connection_string): New virtual method.
11662 (process_stratum_target::connection_number): New field.
11663 * remote.c (remote_target::connection_string): New override.
11664 * target-connection.c: New file.
11665 * target-connection.h: New file.
11666 * target.c (decref_target): Remove process_stratum targets from
11667 the connection list.
11668 (target_stack::push): Add process_stratum targets to the
11669 connection list.
11670
11671 2020-01-10 Pedro Alves <palves@redhat.com>
11672
11673 Revert:
11674 2016-04-12 Pedro Alves <palves@redhat.com>
11675 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11676 Remove references to name.
11677 * serial.h (struct serial) <name>: Delete.
11678
11679 2020-01-10 Pedro Alves <palves@redhat.com>
11680
11681 * gdbarch-selftests.c (register_to_value_test): Remove "target
11682 already pushed" check.
11683
11684 2020-01-10 Pedro Alves <palves@redhat.com>
11685 John Baldwin <jhb@FreeBSD.org>
11686
11687 * aarch64-linux-nat.c
11688 (aarch64_linux_nat_target::thread_architecture): Adjust.
11689 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11690 (task_command_1): Likewise.
11691 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11692 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11693 (aix_thread_target::store_registers)
11694 (aix_thread_target::thread_alive): Adjust.
11695 * amd64-fbsd-tdep.c: Include "inferior.h".
11696 (amd64fbsd_get_thread_local_address): Pass down target.
11697 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11698 thread's gdbarch instead of target_gdbarch.
11699 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11700 get_last_target_status.
11701 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11702 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11703 inferiors.
11704 (update_inserted_breakpoint_locations): Skip if inferiors with no
11705 execution.
11706 (update_global_location_list): When handling moribund locations,
11707 find representative inferior for location's pspace, and use thread
11708 count of its process_stratum target.
11709 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11710 * bsd-uthread.c (bsd_uthread_target::wait): Use
11711 as_process_stratum_target and adjust thread_change_ptid and
11712 add_thread calls.
11713 (bsd_uthread_target::update_thread_list): Use
11714 as_process_stratum_target and adjust find_thread_ptid,
11715 thread_change_ptid and add_thread calls.
11716 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11717 find_thread_ptid call.
11718 * corelow.c (add_to_thread_list): Adjust add_thread call.
11719 (core_target_open): Adjust add_thread_silent and thread_count
11720 calls.
11721 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11722 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11723 * event-top.c (async_disconnect): Pop targets from all inferiors.
11724 * exec.c (add_target_sections): Push exec target on all inferiors
11725 sharing the program space.
11726 (remove_target_sections): Remove the exec target from all
11727 inferiors sharing the program space.
11728 (exec_on_vfork): New.
11729 * exec.h (exec_on_vfork): Declare.
11730 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11731 Pass it down.
11732 (fbsd_nat_target::update_thread_list): Adjust.
11733 (fbsd_nat_target::resume): Adjust.
11734 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11735 down.
11736 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11737 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11738 get_thread_arch_regcache call.
11739 * fork-child.c (gdb_startup_inferior): Pass target down to
11740 startup_inferior and set_executing.
11741 * gdbthread.h (struct process_stratum_target): Forward declare.
11742 (add_thread, add_thread_silent, add_thread_with_info)
11743 (in_thread_list): Add process_stratum_target parameter.
11744 (find_thread_ptid(inferior*, ptid_t)): New overload.
11745 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11746 parameter.
11747 (all_threads()): Delete overload.
11748 (all_threads, all_non_exited_threads): Add process_stratum_target
11749 parameter.
11750 (all_threads_safe): Use brace initialization.
11751 (thread_count): Add process_stratum_target parameter.
11752 (set_resumed, set_running, set_stop_requested, set_executing)
11753 (threads_are_executing, finish_thread_state): Add
11754 process_stratum_target parameter.
11755 (switch_to_thread): Use is_current_thread.
11756 * i386-fbsd-tdep.c: Include "inferior.h".
11757 (i386fbsd_get_thread_local_address): Pass down target.
11758 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11759 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11760 have_inferiors check.
11761 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11762 (inf_ptrace_target::attach): Adjust.
11763 * infcall.c (run_inferior_call): Adjust.
11764 * infcmd.c (run_command_1): Pass target to
11765 scoped_finish_thread_state.
11766 (proceed_thread_callback): Skip inferiors with no execution.
11767 (continue_command): Rename 'all_threads' local to avoid hiding
11768 'all_threads' function. Adjust get_last_target_status call.
11769 (prepare_one_step): Adjust set_running call.
11770 (signal_command): Use user_visible_resume_target. Compare thread
11771 pointers instead of inferior_ptid.
11772 (info_program_command): Adjust to pass down target.
11773 (attach_command): Mark target's 'thread_executing' flag.
11774 (stop_current_target_threads_ns): New, factored out from ...
11775 (interrupt_target_1): ... this. Switch inferior before making
11776 target calls.
11777 * inferior-iter.h
11778 (struct all_inferiors_iterator, struct all_inferiors_range)
11779 (struct all_inferiors_safe_range)
11780 (struct all_non_exited_inferiors_range): Filter on
11781 process_stratum_target too. Remove explicit.
11782 * inferior.c (inferior::inferior): Push dummy target on target
11783 stack.
11784 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11785 Add process_stratum_target parameter, and pass it down.
11786 (have_live_inferiors): Adjust.
11787 (switch_to_inferior_and_push_target): New.
11788 (add_inferior_command, clone_inferior_command): Handle
11789 "-no-connection" parameter. Use
11790 switch_to_inferior_and_push_target.
11791 (_initialize_inferior): Mention "-no-connection" option in
11792 the help of "add-inferior" and "clone-inferior" commands.
11793 * inferior.h: Include "process-stratum-target.h".
11794 (interrupt_target_1): Use bool.
11795 (struct inferior) <push_target, unpush_target, target_is_pushed,
11796 find_target_beneath, top_target, process_target, target_at,
11797 m_stack>: New.
11798 (discard_all_inferiors): Delete.
11799 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11800 (all_inferiors, all_non_exited_inferiors): Add
11801 process_stratum_target parameter.
11802 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11803 (target_last_proc_target): New global.
11804 (follow_fork_inferior): Push target on new inferior. Pass target
11805 to add_thread_silent. Call exec_on_vfork. Handle target's
11806 reference count.
11807 (follow_fork): Adjust get_last_target_status call. Also consider
11808 target.
11809 (follow_exec): Push target on new inferior.
11810 (struct execution_control_state) <target>: New field.
11811 (user_visible_resume_target): New.
11812 (do_target_resume): Call target_async.
11813 (resume_1): Set target's threads_executing flag. Consider resume
11814 target.
11815 (commit_resume_all_targets): New.
11816 (proceed): Also consider resume target. Skip threads of inferiors
11817 with no execution. Commit resumtion in all targets.
11818 (start_remote): Pass current inferior to wait_for_inferior.
11819 (infrun_thread_stop_requested): Consider target as well. Pass
11820 thread_info pointer to clear_inline_frame_state instead of ptid.
11821 (infrun_thread_thread_exit): Consider target as well.
11822 (random_pending_event_thread): New inferior parameter. Use it.
11823 (do_target_wait): Rename to ...
11824 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11825 down.
11826 (threads_are_resumed_pending_p, do_target_wait): New.
11827 (prepare_for_detach): Adjust calls.
11828 (wait_for_inferior): New inferior parameter. Handle it. Use
11829 do_target_wait_1 instead of do_target_wait.
11830 (fetch_inferior_event): Adjust. Switch to representative
11831 inferior. Pass target down.
11832 (set_last_target_status): Add process_stratum_target parameter.
11833 Save target in global.
11834 (get_last_target_status): Add process_stratum_target parameter and
11835 handle it.
11836 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11837 (context_switch): Check inferior_ptid == null_ptid before calling
11838 inferior_thread().
11839 (get_inferior_stop_soon): Pass down target.
11840 (wait_one): Rename to ...
11841 (poll_one_curr_target): ... this.
11842 (struct wait_one_event): New.
11843 (wait_one): New.
11844 (stop_all_threads): Adjust.
11845 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11846 event's target.
11847 (switch_back_to_stepped_thread): Also consider target.
11848 (print_stop_event): Update.
11849 (normal_stop): Update. Also consider the resume target.
11850 * infrun.h (wait_for_inferior): Remove declaration.
11851 (user_visible_resume_target): New declaration.
11852 (get_last_target_status, set_last_target_status): New
11853 process_stratum_target parameter.
11854 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11855 process_stratum_target parameter, and use it.
11856 (clear_inline_frame_state (thread_info*)): New.
11857 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11858 process_stratum_target parameter.
11859 (clear_inline_frame_state (thread_info*)): Declare.
11860 * linux-fork.c (delete_checkpoint_command): Pass target down to
11861 find_thread_ptid.
11862 (checkpoint_command): Adjust.
11863 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11864 instead of just tweaking inferior_ptid.
11865 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11866 (exit_lwp): Pass target down to find_thread_ptid.
11867 (attach_proc_task_lwp_callback): Pass target down to
11868 add_thread/set_running/set_executing.
11869 (linux_nat_target::attach): Pass target down to
11870 thread_change_ptid.
11871 (get_detach_signal): Pass target down to find_thread_ptid.
11872 Consider last target status's target.
11873 (linux_resume_one_lwp_throw, resume_lwp)
11874 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11875 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11876 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11877 (linux_nat_target::async_wait_fd): New.
11878 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11879 target down.
11880 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11881 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11882 * linux-thread-db.c (struct thread_db_info::process_target): New
11883 field.
11884 (add_thread_db_info): Save target.
11885 (get_thread_db_info): New process_stratum_target parameter. Also
11886 match target.
11887 (delete_thread_db_info): New process_stratum_target parameter.
11888 Also match target.
11889 (thread_from_lwp): Adjust to pass down target.
11890 (thread_db_notice_clone): Pass down target.
11891 (check_thread_db_callback): Pass down target.
11892 (try_thread_db_load_1): Always push the thread_db target.
11893 (try_thread_db_load, record_thread): Pass target down.
11894 (thread_db_target::detach): Pass target down. Always unpush the
11895 thread_db target.
11896 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11897 target down. Always unpush the thread_db target.
11898 (find_new_threads_callback, thread_db_find_new_threads_2)
11899 (thread_db_target::update_thread_list): Pass target down.
11900 (thread_db_target::pid_to_str): Pass current inferior down.
11901 (thread_db_target::get_thread_local_address): Pass target down.
11902 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11903 target down.
11904 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11905 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11906 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11907 (procfs_init_inferior): Rename to ...
11908 (procfs_target::procfs_init_inferior): ... this and adjust.
11909 (procfs_target::create_inferior, procfs_notice_thread)
11910 (procfs_do_thread_registers): Adjust.
11911 * ppc-fbsd-tdep.c: Include "inferior.h".
11912 (ppcfbsd_get_thread_local_address): Pass down target.
11913 * proc-service.c (ps_xfer_memory): Switch current inferior and
11914 program space as well.
11915 (get_ps_regcache): Pass target down.
11916 * process-stratum-target.c
11917 (process_stratum_target::thread_address_space)
11918 (process_stratum_target::thread_architecture): Pass target down.
11919 * process-stratum-target.h
11920 (process_stratum_target::threads_executing): New field.
11921 (as_process_stratum_target): New.
11922 * ravenscar-thread.c
11923 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11924 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11925 down.
11926 * record-btrace.c (record_btrace_target::info_record): Adjust.
11927 (record_btrace_target::record_method)
11928 (record_btrace_target::record_is_replaying)
11929 (record_btrace_target::fetch_registers)
11930 (get_thread_current_frame_id, record_btrace_target::resume)
11931 (record_btrace_target::wait, record_btrace_target::stop): Pass
11932 target down.
11933 * record-full.c (record_full_wait_1): Switch to event thread.
11934 Pass target down.
11935 * regcache.c (regcache::regcache)
11936 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11937 process_stratum_target parameter and handle it.
11938 (current_thread_target): New global.
11939 (get_thread_regcache): Add process_stratum_target parameter and
11940 handle it. Switch inferior before calling target method.
11941 (get_thread_regcache): Pass target down.
11942 (get_thread_regcache_for_ptid): Pass target down.
11943 (registers_changed_ptid): Add process_stratum_target parameter and
11944 handle it.
11945 (registers_changed_thread, registers_changed): Pass target down.
11946 (test_get_thread_arch_aspace_regcache): New.
11947 (current_regcache_test): Define a couple local test_target_ops
11948 instances and use them for testing.
11949 (readwrite_regcache): Pass process_stratum_target parameter.
11950 (cooked_read_test, cooked_write_test): Pass mock_target down.
11951 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11952 (get_thread_arch_aspace_regcache): Add process_stratum_target
11953 parameter.
11954 (regcache::target): New method.
11955 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11956 (regcache::registers_changed_ptid): Add process_stratum_target
11957 parameter.
11958 (regcache::m_target): New field.
11959 (registers_changed_ptid): Add process_stratum_target parameter.
11960 * remote.c (remote_state::supports_vCont_probed): New field.
11961 (remote_target::async_wait_fd): New method.
11962 (remote_unpush_and_throw): Add remote_target parameter.
11963 (get_current_remote_target): Adjust.
11964 (remote_target::remote_add_inferior): Push target.
11965 (remote_target::remote_add_thread)
11966 (remote_target::remote_notice_new_inferior)
11967 (get_remote_thread_info): Pass target down.
11968 (remote_target::update_thread_list): Skip threads of inferiors
11969 bound to other targets. (remote_target::close): Don't discard
11970 inferiors. (remote_target::add_current_inferior_and_thread)
11971 (remote_target::process_initial_stop_replies)
11972 (remote_target::start_remote)
11973 (remote_target::remote_serial_quit_handler): Pass down target.
11974 (remote_target::remote_unpush_target): New remote_target
11975 parameter. Unpush the target from all inferiors.
11976 (remote_target::remote_unpush_and_throw): New remote_target
11977 parameter. Pass it down.
11978 (remote_target::open_1): Check whether the current inferior has
11979 execution instead of checking whether any inferior is live. Pass
11980 target down.
11981 (remote_target::remote_detach_1): Pass down target. Use
11982 remote_unpush_target.
11983 (extended_remote_target::attach): Pass down target.
11984 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11985 (remote_target::append_resumption): Pass down target.
11986 (remote_target::append_pending_thread_resumptions)
11987 (remote_target::remote_resume_with_hc, remote_target::resume)
11988 (remote_target::commit_resume): Pass down target.
11989 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11990 (remote_target::interrupt_query)
11991 (remote_target::remove_new_fork_children)
11992 (remote_target::check_pending_events_prevent_wildcard_vcont)
11993 (remote_target::remote_parse_stop_reply)
11994 (remote_target::process_stop_reply): Pass down target.
11995 (first_remote_resumed_thread): New remote_target parameter. Pass
11996 it down.
11997 (remote_target::wait_as): Pass down target.
11998 (unpush_and_perror): New remote_target parameter. Pass it down.
11999 (remote_target::readchar, remote_target::remote_serial_write)
12000 (remote_target::getpkt_or_notif_sane_1)
12001 (remote_target::kill_new_fork_children, remote_target::kill): Pass
12002 down target.
12003 (remote_target::mourn_inferior): Pass down target. Use
12004 remote_unpush_target.
12005 (remote_target::core_of_thread)
12006 (remote_target::remote_btrace_maybe_reopen): Pass down target.
12007 (remote_target::pid_to_exec_file)
12008 (remote_target::thread_handle_to_thread_info): Pass down target.
12009 (remote_target::async_wait_fd): New.
12010 * riscv-fbsd-tdep.c: Include "inferior.h".
12011 (riscv_fbsd_get_thread_local_address): Pass down target.
12012 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
12013 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
12014 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
12015 Adjust.
12016 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
12017 * solib-svr4.c (enable_break): Pass down target.
12018 * spu-multiarch.c (parse_spufs_run): Pass down target.
12019 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
12020 * target-delegates.c: Regenerate.
12021 * target.c (g_target_stack): Delete.
12022 (current_top_target): Return the current inferior's top target.
12023 (target_has_execution_1): Refer to the passed-in inferior's top
12024 target.
12025 (target_supports_terminal_ours): Check whether the initial
12026 inferior was already created.
12027 (decref_target): New.
12028 (target_stack::push): Incref/decref the target.
12029 (push_target, push_target, unpush_target): Adjust.
12030 (target_stack::unpush): Defref target.
12031 (target_is_pushed): Return bool. Adjust to refer to the current
12032 inferior's target stack.
12033 (dispose_inferior): Delete, and inline parts ...
12034 (target_preopen): ... here. Only dispose of the current inferior.
12035 (target_detach): Hold strong target reference while detaching.
12036 Pass target down.
12037 (target_thread_name): Add assertion.
12038 (target_resume): Pass down target.
12039 (target_ops::beneath, find_target_at): Adjust to refer to the
12040 current inferior's target stack.
12041 (get_dummy_target): New.
12042 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
12043 has a thread running.
12044 (initialize_targets): Rename to ...
12045 (_initialize_target): ... this.
12046 * target.h: Include "gdbsupport/refcounted-object.h".
12047 (struct target_ops): Inherit refcounted_object.
12048 (target_ops::shortname, target_ops::longname): Make const.
12049 (target_ops::async_wait_fd): New method.
12050 (decref_target): Declare.
12051 (struct target_ops_ref_policy): New.
12052 (target_ops_ref): New typedef.
12053 (get_dummy_target): Declare function.
12054 (target_is_pushed): Return bool.
12055 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
12056 (all_matching_threads_iterator::all_matching_threads_iterator):
12057 Handle filter target.
12058 * thread-iter.h (struct all_matching_threads_iterator, struct
12059 all_matching_threads_range, class all_non_exited_threads_range):
12060 Filter by target too. Remove explicit.
12061 * thread.c (threads_executing): Delete.
12062 (inferior_thread): Pass down current inferior.
12063 (clear_thread_inferior_resources): Pass down thread pointer
12064 instead of ptid_t.
12065 (add_thread_silent, add_thread_with_info, add_thread): Add
12066 process_stratum_target parameter. Use it for thread and inferior
12067 searches.
12068 (is_current_thread): New.
12069 (thread_info::deletable): Use it.
12070 (find_thread_ptid, thread_count, in_thread_list)
12071 (thread_change_ptid, set_resumed, set_running): New
12072 process_stratum_target parameter. Pass it down.
12073 (set_executing): New process_stratum_target parameter. Pass it
12074 down. Adjust reference to 'threads_executing'.
12075 (threads_are_executing): New process_stratum_target parameter.
12076 Adjust reference to 'threads_executing'.
12077 (set_stop_requested, finish_thread_state): New
12078 process_stratum_target parameter. Pass it down.
12079 (switch_to_thread): Also match inferior.
12080 (switch_to_thread): New process_stratum_target parameter. Pass it
12081 down.
12082 (update_threads_executing): Reimplement.
12083 * top.c (quit_force): Pop targets from all inferior.
12084 (gdb_init): Don't call initialize_targets.
12085 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
12086 Declare.
12087 (windows_add_thread, windows_delete_thread): Adjust.
12088 (get_windows_debug_event): Rename to ...
12089 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
12090 * tracefile-tfile.c (tfile_target_open): Pass down target.
12091 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
12092 Forward declare.
12093 (switch_to_thread): Add process_stratum_target parameter.
12094 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
12095 parameter. Use it.
12096 (mi_on_resume): Pass target down.
12097 * nat/fork-inferior.c (startup_inferior): Add
12098 process_stratum_target parameter. Pass it down.
12099 * nat/fork-inferior.h (startup_inferior): Add
12100 process_stratum_target parameter.
12101 * python/py-threadevent.c (py_get_event_thread): Pass target down.
12102
12103 2020-01-10 Pedro Alves <palves@redhat.com>
12104
12105 * remote.c (remote_target::start_remote): Don't set inferior_ptid
12106 directly. Instead find the first thread in the thread list and
12107 use switch_to_thread.
12108
12109 2020-01-10 Pedro Alves <palves@redhat.com>
12110
12111 * remote.c (remote_target::remote_add_inferior): Don't bind a
12112 process to the current inferior if the current inferior is already
12113 bound to a process.
12114
12115 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12116 Pedro Alves <palves@redhat.com>
12117
12118 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
12119 If no process is specified, return null_ptid instead of
12120 inferior_ptid.
12121 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
12122 TARGET_WAITKIND_SIGNALLED with no pid.
12123
12124 2020-01-10 Pedro Alves <palves@redhat.com>
12125
12126 * remote.c (first_remote_resumed_thread): New.
12127 (remote_target::wait_as): Use it as default event_ptid instead of
12128 inferior_ptid.
12129
12130 2020-01-10 Pedro Alves <palves@redhat.com>
12131
12132 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
12133
12134 2020-01-10 Pedro Alves <palves@redhat.com>
12135
12136 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
12137 not -1.
12138
12139 2020-01-10 Pedro Alves <palves@redhat.com>
12140
12141 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
12142 ptid to get_last_target_status.
12143 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
12144 ptid to get_last_target_status.
12145 * infcmd.c (continue_command): Don't pass a target_waitstatus to
12146 get_last_target_status.
12147 (info_program_command): Don't pass a target_waitstatus to
12148 get_last_target_status.
12149 * infrun.c (init_wait_for_inferior): Use
12150 nullify_last_target_wait_ptid.
12151 (get_last_target_status): Handle nullptr arguments.
12152 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
12153 (print_stop_event): Don't pass a ptid to get_last_target_status.
12154 (normal_stop): Don't pass a ptid to get_last_target_status.
12155 * infrun.h (get_last_target_status, set_last_target_status): Move
12156 comments here and update.
12157 (nullify_last_target_wait_ptid): Declare.
12158 * linux-fork.c (fork_load_infrun_state): Remove local extern
12159 declaration of nullify_last_target_wait_ptid.
12160 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
12161 to get_last_target_status.
12162
12163 2020-01-10 Pedro Alves <palves@redhat.com>
12164
12165 * gdbthread.h (scoped_restore_current_thread)
12166 <dont_restore, restore, m_dont_restore>: Declare.
12167 * thread.c (thread_alive): Add assertion. Return bool.
12168 (switch_to_thread_if_alive): New.
12169 (prune_threads): Switch inferior/thread.
12170 (print_thread_info_1): Switch thread before calling target methods.
12171 (scoped_restore_current_thread::restore): New, factored out from
12172 ...
12173 (scoped_restore_current_thread::~scoped_restore_current_thread):
12174 ... this.
12175 (scoped_restore_current_thread::scoped_restore_current_thread):
12176 Add assertion.
12177 (thread_apply_all_command, thread_select): Use
12178 switch_to_thread_if_alive.
12179 * infrun.c (proceed, restart_threads, handle_signal_stop)
12180 (switch_back_to_stepped_thread): Switch current thread before
12181 calling target methods.
12182
12183 2020-01-10 Pedro Alves <palves@redhat.com>
12184
12185 * inferior.c (switch_to_inferior_no_thread): New function,
12186 factored out from ...
12187 (inferior_command): ... here.
12188 * inferior.h (switch_to_inferior_no_thread): Declare.
12189 * mi/mi-main.c (run_one_inferior): Use
12190 switch_to_inferior_no_thread.
12191
12192 2020-01-10 Pedro Alves <palves@redhat.com>
12193
12194 * infcmd.c (kill_command): Remove dead code.
12195
12196 2020-01-10 Pedro Alves <palves@redhat.com>
12197
12198 * remote.c (remote_target::mourn_inferior): No longer check
12199 whether the target is running.
12200
12201 2020-01-10 Pedro Alves <palves@redhat.com>
12202
12203 * corelow.c (core_target::has_execution): Change parameter type to
12204 inferior pointer.
12205 * inferior.c (number_of_live_inferiors): Use
12206 inferior::has_execution instead of target_has_execution_1.
12207 * inferior.h (inferior::has_execution): New.
12208 * linux-thread-db.c (thread_db_target::update_thread_list): Use
12209 inferior::has_execution instead of target_has_execution_1.
12210 * process-stratum-target.c
12211 (process_stratum_target::has_execution): Change parameter type to
12212 inferior pointer. Check the inferior's PID instead of
12213 inferior_ptid.
12214 * process-stratum-target.h
12215 (process_stratum_target::has_execution): Change parameter type to
12216 inferior pointer.
12217 * record-full.c (record_full_core_target::has_execution): Change
12218 parameter type to inferior pointer.
12219 * target.c (target_has_execution_1): Change parameter type to
12220 inferior pointer.
12221 (target_has_execution_current): Adjust.
12222 * target.h (target_ops::has_execution): Change parameter type to
12223 inferior pointer.
12224 (target_has_execution_1): Change parameter type to inferior
12225 pointer. Change return type to bool.
12226 * tracefile.h (tracefile_target::has_execution): Change parameter
12227 type to inferior pointer.
12228
12229 2020-01-10 Pedro Alves <palves@redhat.com>
12230
12231 * exceptions.c (print_flush): Remove current_top_target() check.
12232
12233 2020-01-10 Pedro Alves <palves@redhat.com>
12234
12235 * remote.c (show_remote_exec_file): Show the current inferior's
12236 exec-file instead of the command variable's value.
12237
12238 2020-01-10 Pedro Alves <palves@redhat.com>
12239
12240 * record-full.c (record_full_resume_ptid): New global.
12241 (record_full_target::resume): Set it.
12242 (record_full_wait_1): Use record_full_resume_ptid instead of
12243 inferior_ptid.
12244
12245 2020-01-10 Pedro Alves <palves@redhat.com>
12246
12247 * gdbthread.h (scoped_restore_current_thread)
12248 <dont_restore, restore, m_dont_restore>: Declare.
12249 * thread.c (thread_alive): Add assertion. Return bool.
12250 (switch_to_thread_if_alive): New.
12251 (prune_threads): Switch inferior/thread.
12252 (print_thread_info_1): Switch thread before calling target methods.
12253 (scoped_restore_current_thread::restore): New, factored out from
12254 ...
12255 (scoped_restore_current_thread::~scoped_restore_current_thread):
12256 ... this.
12257 (scoped_restore_current_thread::scoped_restore_current_thread):
12258 Add assertion.
12259 (thread_apply_all_command, thread_select): Use
12260 switch_to_thread_if_alive.
12261
12262 2020-01-10 George Barrett <bob@bob131.so>
12263
12264 * stap-probe.c (stap_modify_semaphore): Don't check for null
12265 semaphores.
12266 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12267 for null semaphores.
12268
12269 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12270
12271 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12272 all source windows, and maintain horizontal scroll status while
12273 doing so.
12274
12275 2020-01-09 Tom Tromey <tom@tromey.com>
12276
12277 PR tui/18932:
12278 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12279 update_source_window, not print_source_lines.
12280
12281 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12282
12283 * tui/tui.c (tui_enable): Register tui hooks after calling
12284 tui_display_main.
12285
12286 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12287
12288 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12289
12290 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
12291
12292 * thread.c (print_thread_info_1): Fix indentation.
12293
12294 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12295
12296 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12297 unique_xmalloc_ptr outside the if to always free the demangled name.
12298
12299 2020-01-08 Tom Tromey <tromey@adacore.com>
12300
12301 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12302 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12303 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12304 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12305 Remove.
12306 (section_offsets): New typedef.
12307 * symtab.c (fixup_section, get_msymbol_address): Update.
12308 * symmisc.c (dump_msymbols): Update.
12309 * symfile.h (relative_addr_info_to_section_offsets)
12310 (symfile_map_offsets_to_segments): Update.
12311 * symfile.c (build_section_addr_info_from_objfile)
12312 (init_objfile_sect_indices): Update.
12313 (struct place_section_arg): Change type of "offsets".
12314 (place_section): Update.
12315 (relative_addr_info_to_section_offsets): Change type of
12316 "section_offsets". Remove "num_sections" parameter.
12317 (default_symfile_offsets, syms_from_objfile_1)
12318 (set_objfile_default_section_offset): Update.
12319 (reread_symbols): No need to preserve section offsets by hand.
12320 (symfile_map_offsets_to_segments): Change type of "offsets".
12321 * stap-probe.c (relocate_address): Update.
12322 * stabsread.h (process_one_symbol): Update.
12323 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12324 (solib_target_relocate_section_addresses): Update.
12325 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12326 Update.
12327 * solib-frv.c (frv_relocate_main_executable): Update.
12328 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12329 * solib-aix.c (solib_aix_get_section_offsets): Change return
12330 type.
12331 (solib_aix_solib_create_inferior_hook): Update.
12332 * remote.c (remote_target::get_offsets): Update.
12333 * psymtab.c (find_pc_sect_psymtab): Update.
12334 * psympriv.h (struct partial_symbol) <address, text_low,
12335 text_high>: Update.
12336 * objfiles.h (obj_section_offset): Update.
12337 (struct objfile) <section_offsets>: Change type.
12338 <num_sections>: Remove.
12339 (objfile_relocate): Update.
12340 * objfiles.c (entry_point_address_query): Update
12341 (relocate_one_symbol): Change type of "section_offsets".
12342 (objfile_relocate1, objfile_relocate1): Change type of
12343 "new_offsets".
12344 (objfile_rebase1): Update.
12345 * mipsread.c (mipscoff_symfile_read): Update.
12346 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12347 parameter.
12348 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12349 (parse_external, psymtab_to_symtab_1): Update.
12350 * machoread.c (macho_symfile_offsets): Update.
12351 * ia64-tdep.c (ia64_find_unwind_table): Update.
12352 * hppa-tdep.c (read_unwind_info): Update.
12353 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12354 * dwarf2read.c (create_addrmap_from_index)
12355 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12356 (process_psymtab_comp_unit_reader, add_partial_symbol)
12357 (add_partial_subprogram, process_full_comp_unit)
12358 (read_file_scope, read_func_scope, read_lexical_block_scope)
12359 (read_call_site_scope, dwarf2_rnglists_process)
12360 (dwarf2_ranges_process, dwarf2_ranges_read)
12361 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12362 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12363 Update.
12364 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12365 Update.
12366 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12367 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12368 (process_one_symbol): Change type of "section_offsets".
12369 * ctfread.c (get_objfile_text_range): Update.
12370 * coffread.c (coff_symtab_read, enter_linenos)
12371 (process_coff_symbol): Update.
12372 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12373 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12374
12375 2020-01-08 Tom Tromey <tromey@adacore.com>
12376
12377 * dwarf2read.c (parse_macro_definition): Use std::string.
12378 (parse_macro_definition): Likewise.
12379
12380 2020-01-08 Tom Tromey <tromey@adacore.com>
12381
12382 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12383 (ATTR_ALLOC_CHUNK): Remove.
12384
12385 2020-01-08 Tom Tromey <tromey@adacore.com>
12386
12387 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12388
12389 2020-01-08 Tom Tromey <tromey@adacore.com>
12390
12391 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12392 (dwarf2_compute_name, open_dwo_file): Likewise.
12393 (process_enumeration_scope): Use std::vector.
12394 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12395 (partial_die_info::fixup, dwarf2_start_subfile)
12396 (guess_full_die_structure_name, dwarf2_name): Likewise.
12397 (determine_prefix): Update.
12398 (guess_full_die_structure_name): Make return type const.
12399 (partial_die_full_name): Return unique_xmalloc_ptr.
12400 (DW_FIELD_ALLOC_CHUNK): Remove.
12401
12402 2020-01-07 Tom Tromey <tromey@adacore.com>
12403
12404 PR build/24937:
12405 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12406
12407 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12408
12409 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12410
12411 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12412
12413 * stack.c (print_frame_info): Move disassemble_next_line code
12414 inside source_print block.
12415
12416 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12417
12418 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12419 gdb/signals.h, as we are now using native signal symbols.
12420
12421 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12422
12423 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12424 overflow by an early check of content vs threshold.
12425 * tui/tui-source.c (tui_source_window::line_is_displayed):
12426 Likewise.
12427
12428 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12429
12430 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12431
12432 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12433
12434 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12435 export table if no section contains it's RVA.
12436
12437 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12438
12439 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12440
12441 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
12442
12443 * source.c (print_source_lines_base): Set last_line_listed.
12444
12445 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12446
12447 * tui/tui-disasm.c: Remove trailing spaces.
12448
12449 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12450 Pedro Alves <palves@redhat.com>
12451
12452 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12453 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12454 (windows_gdb_signal_to_target): New function, uses the above
12455 enumeration to convert GDB internal signal codes to equivalent
12456 Windows codes.
12457 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12458 * windows-nat.c: Include "gdb_wait.h".
12459 (get_windows_debug_event): Extract the fatal exception from the
12460 exit status and convert to the equivalent Posix signal number.
12461 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12462 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12463 * gdbsupport/gdb_wait.c: New file, implements
12464 windows_status_to_termsig.
12465 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12466 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12467
12468 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12469
12470 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12471 show_layout.
12472
12473 2020-01-05 Luis Machado <luis.machado@linaro.org>
12474
12475 * aarch64-linux-nat.c
12476 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12477 and bfd_mach_aarch64.
12478
12479 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12480
12481 * ui-file.c (stdio_file::can_emit_style_escape)
12482 (tee_file::can_emit_style_escape): Ensure style is used also on
12483 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12484 to gdb_stdout.
12485 * main.c (set_gdb_data_directory): Use file style to output the
12486 warning that the given pathname is not a directory.
12487 * top.c (show_history_filename, gdb_safe_append_history)
12488 (show_gdb_datadir): Use file style.
12489
12490 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12491
12492 * solib-target.c (struct lm_info_target):
12493 Change offsets to be a unique_xmalloc_ptr.
12494 (solib_target_relocate_section_addresses): Update.
12495
12496 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12497
12498 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12499
12500 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12501
12502 * MAINTAINERS (Write After Approval): Add myself.
12503
12504 2020-01-02 Luis Machado <luis.machado@linaro.org>
12505
12506 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12507 Cell BE architecture.
12508 * target.h (struct target_ops) <thread_architecture>: Likewise.
12509
12510 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12511
12512 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12513
12514 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12515
12516 * MAINTAINERS (Write After Approval): Add myself.
12517
12518 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12519
12520 * gdbarch.sh: Update copyright year range of generated files.
12521
12522 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12523
12524 Update copyright year range in all GDB files.
12525
12526 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12527
12528 * copyright.py: Convert to Python 3.
12529
12530 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12531
12532 * copyright.py: Adapt after move of gnulib directory from gdb
12533 directory to toplevel directory.
12534
12535 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12536
12537 * copyright.py (main): Exit if run from the wrong directory.
12538
12539 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12540
12541 * top.c (print_gdb_version): Change copyright year to 2020.
12542
12543 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12544
12545 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
12546
12547 For older changes see ChangeLog-2019.
12548 \f
12549 Local Variables:
12550 mode: change-log
12551 left-margin: 8
12552 fill-column: 74
12553 version-control: never
12554 coding: utf-8
12555 End: